.mobile-menu__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: #162d50;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(22, 45, 80, 0.18);
    transition: background 0.25s ease, transform 0.25s ease;
}

.header__cta:hover {
    background: #1e3a5f;
    color: #ffffff;
    transform: translateY(-1px);
}

.header .nav {
    gap: clamp(20px, 2.2vw, 34px);
}

.mobile-menu__toggle:hover {
    border-color: rgba(13, 148, 136, 0.45);
    background: #ffffff;
}

.mobile-menu__toggle-lines,
.mobile-menu__toggle-lines::before,
.mobile-menu__toggle-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #162d50;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu__toggle-lines {
    position: relative;
}

.mobile-menu__toggle-lines::before,
.mobile-menu__toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.mobile-menu__toggle-lines::before { top: -6px; }
.mobile-menu__toggle-lines::after { top: 6px; }

.mobile-menu__backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    width: min(84vw, 340px);
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -18px 0 50px rgba(15, 23, 42, 0.14);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu__brand {
    color: #162d50;
    font-size: 15px;
    font-weight: 800;
}

.mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #162d50;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.mobile-menu__links {
    display: grid;
    gap: 6px;
    padding: 18px 0;
}

.mobile-menu__links a,
.mobile-menu__phone {
    display: flex;
    align-items: center;
    min-height: 46px;
    border-radius: 8px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu__links a {
    padding: 0 12px;
}

.mobile-menu__links a:hover,
.mobile-menu__links a:focus {
    background: #f7f8fa;
    color: #162d50;
}

.nav a.is-active,
.nav a[aria-current="page"] {
    color: #162d50;
    font-weight: 800;
}

.mobile-menu__links a.is-active,
.mobile-menu__links a[aria-current="page"] {
    background: #f7f8fa;
    color: #162d50;
    font-weight: 800;
}

.mobile-menu__phone {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
    color: #162d50;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu__backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-menu-open .mobile-menu {
    transform: translateX(0);
}

body.mobile-menu-open .mobile-menu__toggle-lines {
    transform: rotate(45deg);
}

body.mobile-menu-open .mobile-menu__toggle-lines::before {
    transform: translateY(6px) rotate(90deg);
}

body.mobile-menu-open .mobile-menu__toggle-lines::after {
    opacity: 0;
}

@media (max-width: 900px) {
    .mobile-menu__toggle {
        display: inline-flex;
    }

    .header__right {
        gap: 10px;
    }

    .header__cta {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .footer__inner {
        max-width: 100%;
    }

    .footer__links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
        max-width: 100%;
    }
}

@media (min-width: 901px) {
    .mobile-menu,
    .mobile-menu__backdrop {
        display: none;
    }
}
