﻿.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 15px;
}

.site-header .container {
    position: relative;
}

.header-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(55, 65, 81, .68);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 18px 46px rgba(30, 41, 59, .24);
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 165px;
    color: #fff;
    text-decoration: none;
}

.header-logo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.header-logo__icon img {
    width: 42px;
    height: 42px;
}

.header-logo__text {
    display: grid;
    line-height: 1.05;
}

.header-logo__text strong {
    font-family: "Cuprum", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
}

.header-logo__text small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.header-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    background: rgba(255, 255, 255, .82);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: .15s all;
}

.header-toggle__close {
    display: none;
}

.header-menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
}

.header-nav a,
.header-nav__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 13px 9px;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    transition: color .18s ease;
    z-index: 0;
}

.header-nav a::before,
.header-nav__button::before {
    content: "";
    position: absolute;
    inset: 6px 0;
    z-index: 0;
    background: rgba(255, 255, 255, .16);
    border-radius: 16px;
    opacity: 0;
    transition: opacity .18s ease;
}

.header-nav a > *,
.header-nav__button > * {
    position: relative;
    z-index: 1;
}

.header-nav a:hover,
.header-nav__button:hover,
.header-nav__button.is-active {
    color: #fff;
}

.header-nav a:hover::before,
.header-nav__button:hover::before,
.header-nav__button.is-active::before {
    opacity: 1;
}

.header-nav__button i {
    font-size: 11px;
    transition: transform .18s ease;
}

.header-nav__button.is-active .header-nav__chevron {
    transform: rotate(180deg);
}

.header-nav__icon,
.header-nav__label-mobile,
.header-nav .header-nav__mobile-only {
    display: none;
}

.header-search {
    display: none;
    position: relative;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    margin: 0 0px 0 22px;
    padding: 4px;
    color: #374151;
    background: #fff;
    border-radius: 999px;
}

@media (min-width: 992px) {
    .site-header.is-search-open .header-search {
        display: flex;
    }

    .site-header.is-search-open .header-nav,
    .site-header.is-search-open .header-phone,
    .site-header.is-search-open [data-search-toggle] {
        display: none;
    }
}

.header-search__scope {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 0 0 auto;
    height: 42px;
    padding: 0 22px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    background: #f4f5f6;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.header-search__scope i {
    font-size: 12px;
    transition: transform .18s ease;
}

.site-header.is-search-scope-open .header-search__scope i {
    transform: rotate(180deg);
}

.header-search__scope-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    width: min(490px, 78vw);
    padding: 6px;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 22px 58px rgba(30, 41, 59, .18);
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.site-header.is-search-scope-open .header-search__scope-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.header-search__scope-menu div {
    padding: 5px;
}
.header-search__scope-menu button {
    min-height: 55px;
    padding: 0 18px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    background: transparent;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
}

.header-search__scope-menu button:hover,
.header-search__scope-menu button.is-active {
    background: #f4f5f6;
}

.header-search__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid #d1d5db;
}

.header-search__field input {
    width: 100%;
    height: 42px;
    padding: 0;
    color: #374151;
    font-size: 17px;
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search__field input::placeholder {
    color: #9ca3af;
}

.header-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #4daa41;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: 10px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone i {
    display: none;
}

.header-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #374151;
    text-decoration: none;
    background: rgba(255, 255, 255, .74);
    border-radius: 50%;
    transition: .15s all;
}

.header-round:hover,
.header-toggle:hover {
    background: #fff;
    color: #4daa41;
}

.header-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    background: #4daa41;
    border-radius: 999px;
    font-size: 15px;
    border: 1px solid transparent;
    transition: .15s all;
}

.header-appointment:hover {
    background: #fff;
    color: #4daa41;
    border-color: #4daa41;
}

.header-mega {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    z-index: 1;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 22px;
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    color: #374151;
    background: #fff;
    border: 1px solid rgba(55, 65, 81, .08);
    border-radius: 24px;
    box-shadow: 0 22px 58px rgba(30, 41, 59, .18);
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.header-mega.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.header-mega__lead {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-content: start;
    align-items: center;
    column-gap: 12px;
    min-height: 170px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #4daa41, #accb49);
    border-radius: 18px;
}

.header-mega__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #4daa41;
    background: #fff;
    border-radius: 50%;
}

.header-mega__icon i {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.header-mega__lead strong {
    display: block;
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 600;
}

.header-mega__lead p {
    grid-column: 1 / -1;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .88);
    line-height: 1.45;
}

.header-mega__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.header-mega__links a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 13px 15px;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    background: #f6f7f8;
    border-radius: 14px;
}

.header-mega__links a:hover {
    color: #4daa41;
    background: #f0f7ee;
}

.mobile-menu {
    display: none;
}

.mobile-search {
    display: none;
}

@media (max-width: 1199px) {
    .header-logo {
        min-width: auto;
    }

    .header-phone {
        display: none;
    }
}

@media (max-width: 991px) {
    .site-header {
        padding-top: 10px;
    }

    .site-header .container {
        position: static;
    }

    .header-panel {
        align-items: center;
        min-height: 60px;
        padding: 8px 12px;
        background: rgba(55, 65, 81, .4);
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 24px;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .header-logo {
        min-width: 0;
        margin-right: auto;
    }

    .header-logo__icon {
        width: 42px;
        height: 42px;
        background: transparent;
    }

    .header-logo__icon img {
        width: 34px;
        height: 34px;
    }

    .header-logo__text {
        display: grid;
    }

    .header-logo__text strong {
        font-size: 20px;
    }

    .header-logo__text small {
        display: none;
    }

    .header-menu {
        order: 2;
        flex: 0 0 auto;
        min-width: auto;
    }

    .header-search {
        display: none;
    }

    .mobile-search {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        padding: 18px 0 24px;
        overflow-y: auto;
        background: #fff;
        transform: translateX(-100%);
        transition: transform .32s ease;
    }

    .site-header.is-search-open .mobile-search {
        transform: translateX(0);
    }

    .mobile-search__bar {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        flex: 1 1 auto;
        min-height: 52px;
        padding: 4px;
        background: #fff;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
    }

    .mobile-search__container {
        max-width: none;
        padding-right: 18px;
        padding-left: 18px;
    }

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

    .mobile-search__back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 20px;
        width: 20px;
        height: 52px;
        color: #9ca3af;
        background: transparent;
        border: 0;
        cursor: pointer;
        z-index: 2;
    }

    .mobile-search .header-search__field {
        height: 42px;
        margin-left: 16px;
        padding-left: 0;
        border-left: 0;
    }

    .header-search__scope-menu {
        top: 150px;
        right: 16px;
        left: 16px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: auto;
    }

    .header-nav {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        margin: 0;
        gap: 6px;
    }

    .header-phone {
        display: inline-flex;
        font-size: 15px;
    }

    .header-phone i {
        display: none;
    }

    .header-round,
    .header-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        color: #374151;
        background: rgba(255, 255, 255, .72);
        border-radius: 50%;
    }

    .header-toggle {
        order: 3;
        margin-left: 8px;
        color: #374151;
        font-size: 18px;
        border: 0;
    }

    .site-header.is-menu-open .header-toggle__open {
        display: none;
    }

    .site-header.is-menu-open .header-toggle__close {
        display: inline-block;
    }

    .header-mega {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: block;
        padding: 108px 0 36px;
        overflow-y: auto;
        color: #111827;
        background: #fff;
        transform: translateX(-100%);
        transition: transform .32s ease;
    }

    .site-header.is-menu-open .mobile-menu {
        transform: translateX(0);
    }

    .mobile-menu__container {
        display: flex;
        flex-direction: column;
        gap: 9px;
        min-height: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .mobile-menu__link {
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 61px;
        width: calc(100% - 34px);
        padding: 0 17px;
        color: #111827;
        font-size: 19px;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        margin-left: 17px;
    }

    .mobile-menu__link.is-active .mobile-menu__chevron {
        transform: rotate(180deg);
    }

    .mobile-menu__link_has-submenu.is-active {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        border-bottom-color: transparent;
    }

    .mobile-submenu {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 48px;
        margin-top: -9px;
        padding: 10px 50px 18px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-top: 0;
        border-radius: 0 0 18px 18px;
        width: calc(100% - 34px);
        margin-left: 17px;
    }

    .mobile-submenu.is-active {
        display: grid;
    }

    .mobile-submenu a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0;
        color: #111827;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
        background: transparent;
    }

    .mobile-menu__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 24px;
        height: 24px;
        color: #fff;
        font-size: 12px;
        background: #4daa41;
        border-radius: 7px;
    }

    .mobile-menu__chevron {
        margin-left: -8px;
        color: #6b7280;
        font-size: 11px;
    }

    .mobile-menu__arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-left: auto;
        color: #374151;
        font-size: 12px;
        background: #f0f0f0;
        border-radius: 50%;
        text-decoration: none;
    }

    .mobile-menu__bottom {
        display: none;
    }
}

@media (max-width: 575px) {
    .site-header .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .header-panel {
        min-height: 54px;
        padding: 8px 10px;
        border-radius: 18px;
    }

    .header-logo {
        gap: 6px;
    }

    .header-logo__icon {
        width: 28px;
        height: 28px;
    }

    .header-logo__icon img {
        width: 30px;
        height: 30px;
    }

    .header-logo__text strong {
        font-size: 19px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-phone span,
    .header-appointment {
        display: none;
    }

    .site-header.is-search-open .header-appointment {
        display: none;
    }

    .header-phone i {
        display: inline-block;
    }

    .header-round,
    .header-phone,
    .header-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        color: #fff;
        background: transparent;
    }

    .header-round:hover,
    .header-phone:hover,
    .header-toggle:hover {
        color: #fff;
        background: transparent;
    }

    .header-toggle {
        color: #4daa41;
        font-size: 20px;
    }

    .header-toggle:hover,
    .header-toggle:focus {
        color: #4daa41;
        background: transparent;
    }

    .mobile-menu {
        padding: 82px 0 22px;
    }

    .header-search {
        padding: 76px 18px 22px;
    }

    .mobile-search {
        padding: 18px 0 22px;
    }

    .header-search__field input {
        font-size: 16px;
    }

    .header-search__scope-menu {
        top: 132px;
        grid-template-columns: 1fr 1fr;
        border-radius: 20px;
    }

    .header-search__scope-menu button {
        min-height: 46px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 14px;
    }

    .mobile-menu__container {
        gap: 18px;
    }

    .mobile-menu__link {
        min-height: 26px;
        padding: 0;
        gap: 10px;
        font-size: 18px;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .mobile-submenu {
        gap: 9px;
        grid-template-columns: 1fr;
        margin-top: -8px;
        padding: 0 0 0 27px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mobile-submenu a {
        min-height: 24px;
        padding: 0;
        font-size: 15px;
        background: transparent;
        border-radius: 0;
    }

    .mobile-menu__icon {
        width: 17px;
        height: 17px;
        font-size: 9px;
        border-radius: 5px;
    }

    .mobile-menu__chevron {
        margin-left: -6px;
    }

    .mobile-menu__arrow {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .mobile-menu__bottom {
        display: grid;
        gap: 7px;
        margin-top: auto;
    }

    .mobile-menu__city,
    .mobile-menu__phone,
    .mobile-menu__appointment {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        color: #111827;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;
        background: #f5f5f5;
        border-radius: 14px;
    }

    .mobile-menu__appointment {
        color: #fff;
        background: #4daa41;
        border-radius: 18px;
    }
}
