/* =========================
   Header
========================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 14px 0 0;
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(100deg, #fff, #fff6f6 42%, #ffeaea);
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid #ead3d3;
    box-shadow: 0 10px 30px rgba(18, 25, 20, 0.09);
}

.flash-wrap {
    margin-top: 96px;
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #efd5d5;
    background: #fff;
    padding: 3px;
    box-shadow: 0 6px 16px rgba(18, 25, 20, 0.12);
}

.brand-text {
    font-weight: 700;
    color: #7a1212;
}

/* NAV */
.main-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
}

.lang-switch select {
    border: 1px solid #d8baba;
    background: #fff;
    color: #7a1212;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 112px;
}

.main-nav a {
    font-weight: 700;
    color: #555;
    font-size: 0.96rem;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #8e1414;
}

/* CTA */
.nav-cta-btn {
    background: linear-gradient(120deg, #8e1414, #a61b1b);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #b64a4a;
    box-shadow: 0 8px 16px rgba(122, 18, 18, 0.2);
}

/* MOBILE */
.menu-toggle {
    display: none;
    border: 1px solid #d8baba;
    background: #fff;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #7a1212;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-shortcuts .lang-switch {
    display: none;
}

.lang-quick-btn {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #7a1212;
    font-weight: 800;
    cursor: pointer;
}

.lang-quick-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.lang-quick-code {
    display: none;
}

/* =========================
   Inner Header
========================= */

.inner-page-header {
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 156px 0 78px;
    background-image: var(--inner-header-bg);
    background-size: cover;
    background-position: center 42%;
    position: relative;
    overflow: hidden;
}

.inner-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 208, 208, 0.18), transparent 35%),
        linear-gradient(110deg, rgba(18, 16, 31, 0.72), rgba(98, 26, 26, 0.55) 52%, rgba(176, 39, 39, 0.42));
}

.inner-page-header-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-left: 0;
    margin-right: auto;
    padding: 26px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 231, 231, 0.46);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 240, 240, 0.08));
    backdrop-filter: blur(3px);
    box-shadow: 0 18px 36px rgba(8, 15, 26, 0.3);
}

.inner-page-kicker {
    margin-bottom: 0.75rem;
    color: rgba(255, 240, 240, 0.98);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.inner-page-header h1 {
    color: #fff;
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.01em;
    text-shadow: 0 8px 22px rgba(5, 13, 26, 0.44);
}

.inner-page-header p {
    margin: 0;
    color: rgba(248, 250, 252, 0.98);
    font-size: 1.08rem;
    line-height: 1.6;
    text-shadow: 0 8px 20px rgba(5, 13, 26, 0.35);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        border-color: #d9b8b8;
        background: linear-gradient(180deg, #fff, #fff6f6);
        box-shadow: 0 6px 14px rgba(122, 18, 18, 0.12);
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #ffffff, #fff8f8);
        padding: 10px;
        border-radius: 16px;
        margin: 0 0.55rem;
        border: 1px solid #ecd8d8;
        box-shadow: 0 16px 30px rgba(20, 26, 21, 0.18);
        z-index: 1200;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease;
        gap: 4px;
    }

    .main-nav a {
        width: 100%;
        text-align: left;
        padding: 8px 11px;
        border-radius: 10px;
        border: 1px solid transparent;
        background: #fff;
        color: #4a4a4a;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .main-nav a:hover,
    .main-nav a.is-active {
        color: #8e1414;
        background: linear-gradient(180deg, #fff7f7, #fff0f0);
        border-color: #e6c1c1;
    }

    .main-nav .lang-switch {
        width: 100%;
        margin-top: 2px;
    }

    .main-nav .lang-switch select {
        width: 100%;
        height: 40px;
        border-radius: 10px;
        border: 1px solid #d8baba;
        background: #fff;
        color: #7a1212;
        font-weight: 700;
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .main-nav .nav-cta-btn {
        width: 100%;
        margin-top: 2px;
        text-align: center;
        justify-content: center;
        border-radius: 10px;
        padding: 9px 12px;
        font-size: 0.92rem;
        display: inline-flex;
        align-items: center;
        background: linear-gradient(120deg, #8e1414, #a61b1b);
        border: 1px solid #b64a4a;
        color: #fff !important;
        box-shadow: 0 8px 16px rgba(122, 18, 18, 0.2);
    }

    .mobile-shortcuts .lang-switch {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border: 1px solid #d9b8b8;
        border-radius: 11px;
        background: linear-gradient(180deg, #fff, #fff7f7);
        box-shadow: 0 6px 14px rgba(122, 18, 18, 0.1);
    }

    .mobile-shortcuts .lang-switch .lang-quick-btn:active {
        transform: scale(0.97);
    }

    .main-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .brand-text {
        display: block;
        font-size: 0.98rem;
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border-width: 2px;
        padding: 2px;
    }

    .site-header {
        padding-top: 10px;
    }

    .navbar {
        padding: 10px 10px 10px 12px;
        border-radius: 15px;
        min-height: 62px;
        background: linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 244, 0.94));
        border-color: rgba(202, 154, 154, 0.5);
        backdrop-filter: blur(6px);
        box-shadow: 0 14px 24px rgba(95, 22, 22, 0.2);
    }

    .brand {
        gap: 9px;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .mobile-shortcuts {
        gap: 7px;
        flex-shrink: 0;
    }

    .flash-wrap {
        margin-top: 86px;
    }

    .inner-page-header {
        min-height: 380px;
        padding: 128px 0 52px;
        background-position: center;
    }

    .inner-page-header-content {
        margin-right: 0;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .inner-page-header h1 {
        font-size: clamp(1.65rem, 7.6vw, 2.35rem);
    }

    .inner-page-header p {
        font-size: 0.98rem;
    }
}
