.menu {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    height: 100%;
    font-size: 18px;
    z-index: 3;
}

.menu .menu-wrapper {
    position: relative;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.menu .menu-footer {
    padding: 20px 0px;
    display: grid;
    gap: 20px;
}

.menu .menu__list {
    height: 100%;
    margin: 0;
    display: -ms-flexbox;
    display: flex;
}

.menu .menu__list > li {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.menu .menu__list > li:not(:last-child) {
    margin-right: 24px;
}

.menu .menu__list > li > a {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    font-size: 1em;
    line-height: normal;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--main-text-color);
    white-space: nowrap;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-align: center;
    align-items: center;
    text-transform: none;
}

.menu .menu__dropdown {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.menu .menu__dropdown-list {
    transform: translateZ(0px);
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: 52;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0px 100px;
}

.menu .menu__dropdown-list li:last-child {
    margin-bottom: auto;
}

.menu .menu__dropdown-list .menu__dropdown-list {
    top: -15px;
    left: 100%;
}

.menu .menu__dropdown-list-header {
    padding: 37px 0px;
    background: url("../img/logo-menu.svg") calc(100% - 100px) center no-repeat;
    margin-bottom: auto;
    position: relative;
}

.menu .menu__dropdown-list-header::after {
    content: "";
    display: block;
    height: 1px;
    width: 100vw;
    background: #646464;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.menu .menu__dropdown-list li a {
    font-weight: 400;
    font-size: var(--fluid-32-24);
    color: #fff;
    opacity: 0.5;
    margin-bottom: 16px;
    display: inline-block;
}

.menu .menu__dropdown-list li a.main-link {
    font-size: var(--fluid-72-40);
    margin-bottom: 40px;
    opacity: 1;
    transition: color var(--animation-duration) var(--timing-func);
}

.menu .menu__dropdown-list ul {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0px 16px;
    margin-bottom: 24px;
}

.menu .menu__dropdown-list ul a {
    font-size: var(--fluid-22-18);
}

.menu .menu__dropdown-list {
    pointer-events: none;
    -webkit-clip-path: inset(0% 0% 100% 0%);
    clip-path: inset(0% 0% 100% 0%);
    transition: -webkit-clip-path var(--animation-duration) var(--timing-func);
    transition: clip-path var(--animation-duration) var(--timing-func);
    transition: clip-path var(--animation-duration) var(--timing-func), -webkit-clip-path var(--animation-duration) var(--timing-func);
}

.menu .menu__dropdown-list > li {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 250ms ease, opacity 250ms ease;
    transition-delay: 0ms;
}

.menu__dropdown.hover > .menu__dropdown-list {
    -webkit-clip-path: inset(0% 0% 0% 0%);
    clip-path: inset(0% 0% 0% 0%);
    pointer-events: auto;
}

.menu__dropdown.hover > .menu__dropdown-list > li {
    transform: translateY(0px);
    opacity: 1;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(1) {
    transition-delay: 0.2s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(2) {
    transition-delay: 0.3s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(3) {
    transition-delay: 0.4s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(4) {
    transition-delay: 0.5s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(5) {
    transition-delay: 0.6s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(6) {
    transition-delay: 0.7s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(7) {
    transition-delay: 0.8s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(8) {
    transition-delay: 0.9s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(9) {
    transition-delay: 1s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(10) {
    transition-delay: 1.1s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(11) {
    transition-delay: 1.2s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(12) {
    transition-delay: 1.3s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(13) {
    transition-delay: 1.4s;
}

.menu__dropdown.hover > .menu__dropdown-list > li:nth-child(14) {
    transition-delay: 1.5s;
}

.menu .switch-back {
    width: 49px;
    height: 49px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
}

.menu-overlay {
    pointer-events: none;
    position: fixed;
    display: block;
    width: 100%;
    height: calc(100svh - 86px);
    top: 86px;
    right: 0;
    background: #fff;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--animation-duration) var(--timing-func);
}

.menu-overlay.active {
    transform: scaleY(1);
}

.nav > li > a {
    padding: 0;
}

.nav > li > a:hover,
.nav > li > a:focus {
    text-decoration: none;
    background-color: transparent;
}

.menu-burger {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: none;
    position: relative;
    width: 103px;
    height: 37px;
    overflow: hidden;
    border-radius: 0px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    transition: background var(--animation-duration) var(--timing-func);
}

.menu-burger span {
    width: 100%;
    height: 100%;
    display: -ms-flexbox;
    display: flex;
    gap: 4px;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    transition: transform var(--animation-duration) var(--timing-func);
    transform: translateY(-100%);
    font-weight: 700;
    font-size: 13px;
    line-height: 160%;
    color: #fff;
}

.menu-burger span svg {
    margin-top: -2px;
}

.menu-burger span:first-child {
    color: #0b0f19;
}

.menu-burger.active {
    background: #fff;
}

.menu-burger.active span {
    transform: translateY(0);
}

.header-search {
    height: 48px;
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.header-search input {
    height: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 0px 48px 0px 21px;
    width: 100%;
    font-weight: 400;
    font-size: 18px;
    color: #000;
}

.header-search input:-ms-input-placeholder {
    color: #000;
}

.header-search input::placeholder {
    color: #000;
}

.header-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 48px;
    border-radius: 0px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.header-search button svg path {
    transition: stroke var(--animation-duration) var(--timing-func);
}

.mobile-menu-search {
    padding: 20px 16px;
    background: #f0f0f0;
    margin-top: -20px;
}

.mobile-menu-search__box {
    position: relative;
    height: 46px;
}

.mobile-menu-search input {
    width: 100%;
    height: 100%;
    border-radius: 0px;
    background: #fff;
    padding-left: 20px;
    padding-right: 46px;
    outline: none;
    font-size: 14px;
    line-height: 140%;
    color: var(--main-text-color);
}

.mobile-menu-search input:-ms-input-placeholder {
    color: var(--main-text-color);
}

.mobile-menu-search input::placeholder {
    color: var(--main-text-color);
}

.mobile-menu-search button {
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    aspect-ratio: 1;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.header .header-search {
    max-width: 480px;
    margin-left: auto;
}

.header .menu-burger {
    margin-left: auto;
}

.header {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.header__wrapper {
    height: 123px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 56px;
}

.header .header-logo {
    position: relative;
    z-index: 2;
    -ms-flex: 0 0 206px;
    flex: 0 0 206px;
}

.header .header-logo img {
    width: 100%;
}

.mobile-menu-contacts__title {
    font-weight: 700;
    font-size: 15px;
    line-height: 130%;
    color: #0b0f19;
    margin-bottom: 20px;
}

.mobile-menu-contacts__list {
    display: grid;
    gap: 20px;
    font-size: 15px;
    line-height: 130%;
    color: #141517;
}

.mobile-menu-contacts a {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-contacts a[href^="tel:"]::before {
    content: url("../img/icons/phone_icon.svg");
}

.mobile-menu-contacts a[href^="mailto:"]::before {
    content: url("../img/icons/mail_icon.svg");
}

.header .header-nav-contacts {
    position: relative;
}

.header .header-nav-contacts ul {
    width: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 5px;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.header .header-nav-contacts a {
    font-weight: 700;
    font-size: 22px;
    transition: color var(--animation-duration) var(--timing-func);
}

.header .header-nav-icons ul {
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    -ms-flex-align: center;
    align-items: center;
}

.header .header-nav-icons ul a,
.header .header-nav-icons ul button {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    background: #f1f4f8;
    height: 39px;
    border-radius: 40px;
    padding: 0px 15px;
    transition: color var(--animation-duration) var(--timing-func);
    position: relative;
}

.header .header-nav-icons ul a span,
.header .header-nav-icons ul button span {
    font-weight: 500;
    font-size: 18px;
}

.header .header-nav-icons ul a::before,
.header .header-nav-icons ul button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    height: 0;
    width: 0;
    border-radius: 40px;
    background-color: #0000e4;
    transition: all var(--animation-duration) var(--timing-func);
}

.header .header-nav-icons ul a span,
.header .header-nav-icons ul button span {
    position: relative;
    z-index: 2;
}

.header .header-nav-icons ul a svg,
.header .header-nav-icons ul button svg {
    position: relative;
    z-index: 2;
}

.header .header-nav-icons ul a svg path,
.header .header-nav-icons ul button svg path {
    transition: fill var(--animation-duration) var(--timing-func);
}

@media (min-width: 1023.98px) {
    .menu .menu-wrapper {
        display: contents;
    }

    .menu .menu-footer {
        display: none;
    }

    .menu .menu__list {
        -ms-flex-align: center;
        align-items: center;
    }

    .menu .menu__list > li > a {
        height: 100%;
        position: relative;
        transition: color var(--animation-duration) var(--timing-func);
    }

    .menu .menu__list > li > a span {
        transition: 0.3s;
        background: linear-gradient(currentColor 0 0) bottom/var(--d, 0) 2px no-repeat;
    }

    .menu .menu__list > li.current-menu-item > a,
  .menu .menu__list > li:not(.current-menu-item):hover > a {
        color: var(--primary-color);
    }

    .menu .menu__list > li.current-menu-item > a span,
  .menu .menu__list > li:not(.current-menu-item):hover > a span {
        --d: 100%;
    }

    .menu .menu__list > li.current-menu-item > .menu__dropdown-arrow::before,
  .menu .menu__list > li:not(.current-menu-item):hover > .menu__dropdown-arrow::before {
        background: var(--primary-color);
    }

    .menu .menu__dropdown-list li > a {
        transition: opacity var(--animation-duration) var(--timing-func);
    }

    .menu .menu__dropdown-list li > a:hover {
        opacity: 1;
    }

    .menu-overlay {
        display: none;
    }
}

@media (max-width: 1660px) {
    .header .header-nav-icons ul {
        gap: 8px;
    }
}

@media (max-width: 1550px) {
    .header .header-nav-contacts a {
        font-size: 16px;
    }
}

@media (max-width: 1023.98px) {
    .menu {
        pointer-events: none;
    }

    .menu-wrapper,
  .menu-footer {
        pointer-events: auto;
    }

    .menu {
        height: auto;
        right: 15px;
        top: 123px;
        position: fixed;
        border: 1px solid var(--border-color);
        border-radius: 15px;
        width: 375px;
        font-size: 15px;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        overflow: hidden;
    }

    .menu.active {
        visibility: visible;
    }

    .menu .menu-wrapper {
        padding: 16px 0px;
    }

    .menu .menu__list {
        display: block;
        height: auto;
    }

    .menu .menu__list > li {
        height: auto;
        margin-right: 0 !important;
        margin-left: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .menu .menu__list > li > a {
        color: #141517;
        font-weight: 400;
        line-height: normal;
        letter-spacing: normal;
    }

    .menu .menu__dropdown {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .menu .menu__dropdown-list {
        padding: 0px 15px;
    }

    .menu .menu__dropdown-list .menu__dropdown-list {
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
    }

    .menu .menu__dropdown-list-header {
        background: url("../img/logo-menu.svg") calc(100% - 15px) center no-repeat;
    }

    .menu .menu__dropdown-list li a.main-link {
        margin-bottom: 24px;
    }

    .menu .menu__dropdown-list ul {
        margin-bottom: 18px;
    }

    .menu {
        -webkit-clip-path: inset(0% 0% 100% 0%);
        clip-path: inset(0% 0% 100% 0%);
        transition: -webkit-clip-path var(--animation-duration) var(--timing-func);
        transition: clip-path var(--animation-duration) var(--timing-func);
        transition: clip-path var(--animation-duration) var(--timing-func), -webkit-clip-path var(--animation-duration) var(--timing-func);
    }

    .menu.active {
        -webkit-clip-path: inset(0% 0% 0% 0%);
        clip-path: inset(0% 0% 0% 0%);
    }

    .menu .menu-wrapper {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .menu .menu__dropdown {
        position: static;
    }

    .menu-burger {
        display: block;
        position: relative;
        z-index: 2;
    }

    .header-search_des {
        display: none;
    }

    .header__wrapper {
        height: 86px;
    }

    .header .header-logo {
        -ms-flex: 0 0 150px;
        flex: 0 0 150px;
    }

    .header .header-nav-contacts {
        display: none;
    }
}

@media (max-width: 1023.98px) and (max-width: 1023.98px) {
    .menu {
        width: 100%;
        border-radius: 0px;
        top: 0;
        left: 0;
        padding-top: 86px;
        border: none;
        height: 100svh;
        padding-right: max(15px, (100% - 768px) / 2);
        padding-left: max(15px, (100% - 768px) / 2);
    }
}

@media (max-width: 1023.98px) and (max-width: 767.98px) {
    .menu {
        padding-top: 53px;
    }
}

@media (max-width: 767.98px) {
    .menu-overlay {
        height: calc(100svh - 53px);
        top: 53px;
    }

    .header__wrapper {
        height: 53px;
    }

    .header .header-logo {
        -ms-flex: 0 0 110px;
        flex: 0 0 110px;
    }

    .header .header-nav-icons {
        display: none;
    }
}

@media (any-hover: hover) {
    .menu .menu__dropdown-list li a.main-link:hover {
        color: var(--primary-color);
    }

    .header-search button:hover svg path {
        stroke: var(--primary-color);
    }

    .header .header-nav-contacts a:hover {
        color: #0000e4;
    }

    .header .header-nav-icons ul a:hover,
  .header .header-nav-icons ul button:hover {
        color: #fff;
    }

    .header .header-nav-icons ul a:hover::before,
  .header .header-nav-icons ul button:hover::before {
        width: 100%;
        top: 0;
        left: 0;
        height: 100%;
    }

    .header .header-nav-icons ul a:hover svg path,
  .header .header-nav-icons ul button:hover svg path {
        fill: #fff;
    }
}