body.no-scroll {
    overflow: hidden;
}


main {
    padding-top: var(--space-xl);
}

.top-header-wrapper {
    background: #eceff6;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.top-header {
    display: none;
}

.top-header.top-header--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header.top-header--mobile .inline-nav {
    gap: var(--space-half);
}

.top-header.top-header--mobile .top-header-action {
    padding: 0 0.5rem;
}

.top-header-action {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 1.25rem;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    font-size: inherit;
}

.inline-nav {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.inline-nav.inline-nav--wider {
    gap: 1.25rem;
}


.inline-nav.inline-nav--wider .top-header-action {
    height: 2.25rem;
}

.inline-nav.inline-nav--wider .top-header-action .top-header-action__span {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    display: none;
}

.inline-nav .inline-nav__item {
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: flex;
}

.inline-nav .inline-nav__item .link {
    color: #7d828b;
    text-decoration: none;
}

.inline-nav .inline-nav__item .link.active,
.inline-nav .inline-nav__item .link:hover {
    color: #151617;
}

.navigation-wrapper {
    border-bottom: 1px solid #ebeef2;
    background: white;
    display: none;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav .nav__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav .nav__link.active,
.nav .nav__link:hover {
    color: var(--on-surface);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn.btn--login {
    padding: 0.5rem 0.75rem;
    border: none;
    cursor: pointer;
    border-radius: 5rem;
    background: #ebeef2;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.btn.btn--login span {
    padding: 0 0.25rem;
}

.btn.btn--login svg {
    color: #858fa3;
}

.brand {
    line-height: 0;
}

/* @media (min-width: 561px) { */
@media (min-width: 1080px) {
    .top-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .top-header.top-header--mobile {
        display: none;
    }

    .navigation-wrapper {
        display: block;
    }

    .navigation {
        display: flex;
    }

    .navigation-wrapper {
        display: block;
    }

    .top-header-wrapper {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

    .inline-nav.inline-nav--wider {
        gap: 1.25rem;
    }

    .inline-nav {
        gap: 1rem;
    }

    .header {
        position: statis;
    }
}





.header {
    /* position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10; */
    position: relative;
    z-index: 1002;
}

.mega-menu-wrapper {
    display: none;
    position: fixed;
    top: var(--space-l);
    /* высота навбара — подстрой под себя */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-special-overlay);
    /* полупрозрачный фон */
    z-index: 1001;
    /* ниже навбара, но выше контента */
    overflow-y: auto;
}

.mega-menu {
    background: var(--container-higher);
    padding: var(--space-l) 0;
    box-shadow: 0px 10px 10px 0px rgba(20, 20, 20, 0.08);
    max-height: 80vh;
    overflow-y: auto;
    min-height: 50vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.mega-menu.contact-menu {
    z-index: 5;
}

.contact-menu .contact-menu__header {
    display: flex;
    justify-content: space-between;
}

.contact-menu .contact-menu__title {
    --font-size: var(--headline-2-font-size);
    --line-height: var(--headline-2-line-height);
    --font-weight: var(--headline-2-font-weight);
    --font-family: var(--headline-2-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--on-surface);
}

.contact-menu .contact-menu__close-button {
    color: var(--on-surface-variant);
    cursor: pointer;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.mega-menu-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2x);
    align-items: stretch;
}

.mega-menu-nav.mega-menu-nav__contacts {
    gap: var(--space-1x);
    margin-bottom: var(--space-x);
}

.mega-menu.contact-menu .button-main-menu {
    margin-right: var(--space-2x);
}

.mega-menu-nav:not(:last-child) {
    margin-bottom: var(--space-md);
}

.mega-menu-nav .mega-menu-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
    padding-left: unset;
}

.mega-menu-nav .mega-menu-nav__link.mega-menu-nav__link--head {
    --font-size: var(--headline-2-font-size);
    --line-height: var(--headline-2-line-height);
    --font-weight: var(--headline-2-font-weight);
    --font-family: var(--headline-2-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--on-surface);
}

.mega-menu-nav .mega-menu-nav__link {
    --font-size: var(--lead-font-size);
    --line-height: var(--lead-line-height);
    --font-weight: var(--lead-font-weight);
    --font-family: var(--lead-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--on-surface-variant);
    text-decoration: none;
}

.mega-menu-nav .mega-menu-nav__link:hover {
    color: var(--on-surface);
}

.menu-card-col {
    justify-self: flex-end;
    margin-left: auto;
}

.mega-menu-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3x);
    border-radius: var(--radius-12);
    background-color: var(--container-high);
    gap: var(--space-2x);
    text-align: center;
}

.mega-menu-card .mega-menu-card__title {
    --font-size: var(--headline-2-font-size);
    --line-height: var(--headline-2-line-height);
    --font-weight: var(--headline-2-font-weight);
    --font-family: var(--headline-2-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
}

.mega-menu-card .mega-menu-card__img {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.mega-menu-card .mega-menu-card__img img {
    max-height: var(--dimension-44);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Mobile header */

.mobile-header-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    background-color: var(--container);
    right: 0;
    left: 0;
    bottom: 0;
}

.mobile-header-menu.open {
    display: flex;
}

.mobile-header {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-header .mobile-header__actions {
    flex-grow: 1;
    background-color: var(--container-higher);
}

.mobile-login {
    display: flex;
    flex-direction: column;
    padding: 0.75rem var(--space-2x);
    border-top: 1px solid var(--outline-variant);
    background-color: var(--container-higher);
}

.mobile-header .mobile-header__container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-header .mobile-header__body {
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-tab .mobile-tab__nav {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
}

.mobile-tab .mobile-tab__nav .tab-nav {
    padding: 0.25rem;
    gap: 0.25rem;
}

.mobile-tab .mobile-tab__nav .tab-button {
    padding: 0.625rem var(--space-2x);
    height: 2.5rem;
}

.mobile-tab .mobile-tab__nav .tab-button.active {
    background-color: var(--primary);
    color: var(--on-primary);
}

.tab-nav.tab-nav--underline {
    background-color: transparent;
    padding: 0;
    justify-content: center;
    gap: var(--space-3x);
    margin-bottom: var(--space-2x);
}

.tab-nav.tab-nav--underline .tab-button {
    padding: 0.375rem 0;
    height: auto;
    color: var(--on-surface-variant);
    font-size: var(--small-font-size);
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.tab-nav.tab-nav--underline .tab-button.active {
    background-color: transparent;
    color: var(--on-surface);
    border-color: var(--primary);
}

.mobile-menu {
    padding: 0.75rem 0;
    border-radius: var(--radius-12) var(--radius-12) 0 0;
    background-color: var(--container-higher);
}

.mobile-header-menu a {
    color: var(--on-surface);
    text-decoration: none;
    font-weight: 400;
}

.mobile-menu .mobile-menu__item {
    display: flex;
    flex-direction: column;
}

.mobile-menu .mobile-menu__button {
    text-decoration: none;
    padding: 0.75rem var(--space-base) 0.75rem var(--space-2x);
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 600;
    justify-content: space-between;
}

.mobile-menu button.mobile-menu__button::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--on-surface);
    transform: rotate(180deg);
    transition: 0.3s all ease-in-out;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9' preserveAspectRatio='xMidYMid meet'><rect width='100%' height='100%' fill='none'/><path d='M1.33341 1.33333L8.00008 8L14.6667 1.33333' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' vector-effect='non-scaling-stroke'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9' preserveAspectRatio='xMidYMid meet'><rect width='100%' height='100%' fill='none'/><path d='M1.33341 1.33333L8.00008 8L14.6667 1.33333' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' vector-effect='non-scaling-stroke'/></svg>") no-repeat center / contain;
}

.mobile-menu .mobile-menu__button {
    font-family: var(--body-font-family);
}

.mobile-menu .mobile-menu__button.collapsed::after {
    transform: rotate(0deg);
    transition: 0.3s all ease-in-out;
}


.mobile-header-menu .link-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2x);
    text-align: left;
    align-items: stretch;
    padding: var(--space-half) 0;
}

.mobile-header-menu .link-list__link {
    padding: 0 var(--space-2x);
    font-weight: 600;
    padding: 0 var(--space-3x);
}

.mobile-header-menu .link-list.link-list--inner {
    gap: var(--space-base);
}

.mobile-header-menu .link-list.link-list--inner__list {
    font-weight: 400;
    gap: var(--space-base);
}

.mobile-header-menu .link-list.link-list--inner__list .link-list__link {
    font-weight: 400;
    gap: var(--space-base);
    color: var(--on-surface-variant);
}


.mobile-header .mobile-header__search {
    padding: var(--space-2x);
}

.mobile-header-menu .mobile-search {
    display: flex;
    padding: var(--space-base) var(--space-2x);
    gap: 0.75rem;
    align-items: center;
    line-height: 1.2;
    border: 1px solid var(--outline-variant);
    color: var(--on-surface-variant);
    border-radius: var(--radius-12);
}

.mobile-header-menu .mobile-header .mobile-header__contacts {
    padding: var(--space-2x);
    display: flex;
    flex-direction: column;
    gap: var(--space-2x);
}

.mobile-header-menu .mobile-short-number {
    font-size: var(--lead-font-size);
    line-height: 1;
    font-weight: 600;
}

.mobile-header-menu .mobile-contact {
    display: flex;
    align-items: center;
    gap: var(--space-base);
    color: var(--on-surface-variant);
}

.mobile-menu-trigger {
    color: var(--on-surface);
}

.x-icon {
    color: var(--on-surface);
    display: none;
}

.mobile-menu-trigger.opened .x-icon {
    display: block;
}

.mobile-menu-trigger.opened .burger-icon {
    display: none;
}

@media (min-width: 1080px) {
    .mobile-header-menu.open {
        display: none;
    }

    .nav-actions .button span {
        display: none;
    }

    .main-menu-nav {
        gap: .5rem;
    }

    body.no-scroll {
        overflow: unset;
    }

}

@media (min-width: 1200px) {

    .main-menu-nav {
        gap: 1rem;
    }
}

@media (min-width: 1400px) {
    .inline-nav.inline-nav--wider .top-header-action .top-header-action__span {
        display: inline;
    }

    .nav-actions .button span {
        display: block;
    }
}