﻿/* ─── Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #0055a5;
    --primary-h: #003f7d;
    --accent: #e8f0fa;
    --text: #1a1a1a;
    --text-muted: #555;
    --border: #d8dde5;
    --card-bg: #fff;
    --radius: 6px;
}

body {
    font-family: 'Titillium Web', sans-serif;
    color: var(--text);
    background: #f5f7fa;
    margin: 0;
}

/* ─── uhr Banner ───────────────────────────────────── */
.uhr-banner {
    background: #e9ecf0;
    overflow: hidden;
}

/* DESKTOP: full-width banner, title floats left inside it */
@media (min-width: 768px) {
    .uhr-banner {
        position: relative;
        height: 200px;
    }

    .uhr-banner__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .uhr-banner__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 38%, transparent 65%);
    }

    .uhr-banner__text {
        /*position: absolute;
        top: 50%;
        left: 40px;
        transform: translateY(-50%);*/
    }
}

/* MOBILE: image small + title side by side */
@media (max-width: 767.98px) {
    .uhr-banner {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 18px 20px;
    }

    .uhr-banner__img {
        width: 180px;
        max-width: 180px;
        height: 110px;
        object-fit: cover;
        border-radius: var(--radius);
        flex-shrink: 0;
    }

    .uhr-banner__overlay {
        display: none;
    }

    .uhr-banner__text {
        flex: 1;
    }
}

.uhr-banner__breadcrumb {
    font-size: .75rem;
    font-weight: 400;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 6px;
}

.uhr-banner__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.15;
}

/* ─── Page Body ─────────────────────────────────────── */
.page-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ─── Section ───────────────────────────────────────── */
.section-block {
    margin-bottom: 56px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ─── Product Cards ─────────────────────────────────── */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* card widths: 4 per row → desktop, 2 → tablet, 1 → mobile */
.product-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
    cursor: pointer;
}

    .product-card:hover {
        box-shadow: 0 8px 28px rgba(0,85,165,.13);
        transform: translateY(-4px);
    }

.product-card__img-wrap {
    overflow: hidden;
    height: 170px;
    background: #dde2e9;
}

    .product-card__img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

.product-card:hover .product-card__img-wrap img {
    transform: scale(1.07);
}

.product-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__grade {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}

.product-card__sub {
    font-size: .73rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 8px;
}

.product-card__desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin: 0 0 14px;
}

.product-card__link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: .03em;
    display: inline-block;
}

    .product-card__link:hover {
        color: var(--primary-h);
        text-decoration: underline;
    }

.head-image{
    margin-bottom:10px;
}

.head-image img {
    width: 100%;
    height: auto;
    max-width: 900px;
}

.uhr-banner-top{
    margin-top:20px;
    padding:40px 10px;
}
/* Responsive breakpoints */
@media (max-width: 900px) {
    .product-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 100%;
    }
}

/* Only 2 cards in Section 2 → don't stretch to full width */
.products-grid--two .product-card {
    flex: 0 0 calc(50% - 10px);
    max-width: 280px;
}

@media (max-width: 480px) {
    .products-grid--two .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


@media (min-width: 992px){


    .section-title {
        font-size: 1.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--text);
        border-bottom: 2px solid var(--border);
        padding-bottom: 10px;
        margin-bottom: 16px;
    }
    
    .uhr-banner-top {
        margin-top: 20px;
        padding: 10px 5px;
    }
}