.site-header,
.site-header.scrolled {
    min-height: 72px;
    background: #1454c4;
    box-shadow: 0 8px 24px rgba(8, 43, 103, 0.18);
}

.site-header .container {
    width: min(1200px, calc(100% - 48px));
    min-height: 72px;
    margin: 0 auto;
    padding: 0;
}

.site-header .c-brand-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.site-header .logo-text,
.site-header .nav-link {
    color: #fff;
}

.site-header .logo-subtitle {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.site-header .nav-links {
    gap: 18px;
}

.site-header .nav-link {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.site-header .nav-link::after {
    height: 3px;
    background: #f6b81a;
}

.site-header .nav-link:hover,
.site-header .nav-link[aria-current="page"] {
    color: #fff;
}

.site-header .nav-link[aria-current="page"]::after {
    width: 100%;
}

.navbar.site-header .nav-link.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: #124aa8;
    line-height: 1.4;
}

.navbar.site-header .nav-login::after { display: none; }
.navbar.site-header .nav-link.nav-login:hover { background: #e8f1ff; color: #103d86; }
.navbar.site-header .nav-login:focus-visible { outline: 3px solid #f6b81a; outline-offset: 4px; }

.site-header .btn-primary {
    border-color: #f6b81a;
    background: #f6b81a;
    color: #10213f;
    box-shadow: 0 4px 0 #a66a00;
    white-space: nowrap;
}

.site-header .btn-primary:hover {
    background: #ffd15c;
    color: #10213f;
}

.site-header .mobile-menu-toggle {
    color: #fff;
}

.site-header .mobile-menu-icon {
    display: grid;
    width: auto;
    height: auto;
    gap: 6px;
    background: none;
}

.site-header .mobile-menu-icon i {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
}

.site-header .mobile-menu-label {
    width: auto;
    height: auto;
    background: none;
    color: currentColor;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.site-header .mobile-menu-toggle.active .mobile-menu-icon i:first-child {
    transform: translateY(4px) rotate(45deg);
}

.site-header .mobile-menu-toggle.active .mobile-menu-icon i:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.contact-page .site-header + main {
    padding-top: 72px;
}

.site-footer .container {
    width: min(1200px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
    gap: 64px;
}

.site-footer .footer-brand {
    max-width: 310px;
}

.site-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px;
    max-width: none;
    text-align: left;
}

.site-footer .footer-links-group {
    min-width: 0;
    text-align: left;
}

.site-footer .footer-links-group h4 {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.site-footer .footer-links-group a,
.site-footer .footer-links-group span {
    display: block;
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.55;
}

.site-footer .footer-links-group a:hover {
    color: #fff;
    opacity: 1;
}

@media (max-width: 1080px) {
    .site-header .logo-subtitle {
        display: none;
    }

    .site-header .nav-links {
        gap: 14px;
    }
}

@media (max-width: 960px) {
    .navbar.site-header .mobile-menu-toggle {
        display: inline-flex;
        min-width: 70px;
        height: 40px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding: 0 11px;
        border: 1px solid rgba(255, 255, 255, 0.68);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.08);
    }

    .navbar.site-header .nav-links {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        display: flex;
        width: 100%;
        max-width: none;
        padding: 18px 24px 24px;
        flex-direction: column;
        gap: 0;
        background: #0f3f99;
        box-shadow: 0 14px 24px rgba(8, 35, 82, 0.24);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-120%);
    }

    .navbar.site-header .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar.site-header .nav-link {
        width: 100%;
        padding: 13px 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        color: #fff;
        font-size: 14px;
    }

    .navbar.site-header .nav-links .btn {
        width: 100%;
        margin-top: 16px;
    }

    .navbar.site-header .nav-link.nav-login {
        min-height: 48px;
        margin-top: 16px;
    }

    .navbar.site-header .nav-links {
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
    }

    .site-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-footer .footer-brand {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .site-header .container,
    .site-footer .container {
        width: min(100% - 32px, 1200px);
    }

    .site-footer .footer-content {
        align-items: start;
        text-align: left;
    }

    .site-footer .footer-brand {
        width: 100%;
        text-align: left;
    }

    .site-footer .footer-links {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        text-align: left;
    }
}
