header {
    transition: all 0.25s ease-in;
    border-bottom: 1px solid transparent;
}

header._header-scroll {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--main-bg-clr);
}

.menu {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    height: 100%;
    font-size: var(--fluid-8);
}

.menu .menu-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-clr) #fff;
}

.menu .menu-wrapper::-webkit-scrollbar {
    width: 12px;
}

.menu .menu-wrapper::-webkit-scrollbar-track {
    background: #fff;
}

.menu .menu-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-clr);
    border-radius: 0px;
    border: 3px solid #fff;
}

.menu .menu-footer {
    display: grid;
    gap: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-clr);
}

.menu .menu__list {
    height: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

.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 {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    visibility: hidden;
    pointer-events: none;
}

.menu .menu__dropdown-list::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
}

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

.menu .menu__dropdown-list li a {
    display: block;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-family: var(--font-family);
    font-size: var(--fluid-8);
    font-weight: 500;
    letter-spacing: normal;
    line-height: normal;
    color: var(--main-txt-clr);
    text-transform: none;
}

.menu .menu__dropdown-arrow {
    position: relative;
    background-color: transparent;
    width: 24px;
    height: 24px;
    transition: transform var(--animation-duration) var(--timing-func);
}

.menu .menu__dropdown-arrow::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    -webkit-mask-image: url('data:image/svg+xml,<svg width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 11L6 6L1 1" stroke="%239397AD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
    mask-image: url('data:image/svg+xml,<svg width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 11L6 6L1 1" stroke="%239397AD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
    background: #9397ad;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: auto;
    mask-size: auto;
    transition: background var(--animation-duration) var(--timing-func);
    transform: rotate(90deg);
}

.menu-overlay {
    position: fixed;
    display: block;
    width: 100%;
    height: 100vh;
    top: 0;
    right: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(95, 96, 98, 0.3);
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
    transition: transform 0s, opacity 0.5s;
    backdrop-filter: blur(10px);
}

.menu-overlay.active {
    transform: scaleY(1);
    opacity: 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: 113px;
    height: 50px;
    overflow: hidden;
    background: var(--primary-clr);
    border-radius: 51px;
    border: 1px solid var(--primary-clr);
}

.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: 600;
    font-size: 16px;
    line-height: 160%;
    color: #fff;
}

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

.menu-burger span:first-child {
    background: #fff;
    color: #000;
}

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

.header {
    position: relative;
}

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

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

.header__btn {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 30px;
}

.header__wrapper {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 16px;
    height: 82px;
}

.mobile-menu-contacts__title {
    font-weight: 600;
    font-size: 15px;
    line-height: 130%;
    margin-bottom: 20px;
}

.mobile-menu-contacts__list {
    display: grid;
    gap: 16px;
}

.mobile-menu-contacts__list a {
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-contacts__list a[href^="tel:"]::before {
    content: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.94444C0 8.60254 5.39746 14 12.0556 14C12.3559 14 12.6538 13.989 12.9487 13.9674C13.2871 13.9426 13.4563 13.9302 13.6103 13.8416C13.7379 13.7681 13.8589 13.6379 13.9228 13.5053C14 13.3453 14 13.1585 14 12.7851V10.5939C14 10.2798 14 10.1228 13.9483 9.9882C13.9027 9.8693 13.8285 9.76344 13.7324 9.6799C13.6235 9.58532 13.476 9.53166 13.1808 9.42434L10.6866 8.51736C10.3433 8.3925 10.1716 8.33007 10.0087 8.34066C9.86505 8.35001 9.72682 8.39903 9.6094 8.48227C9.47622 8.57666 9.38223 8.73332 9.19425 9.04662L8.55556 10.1111C6.49455 9.1777 4.8237 7.50468 3.88889 5.44444L4.95338 4.80575C5.26668 4.61777 5.42334 4.52378 5.51773 4.3906C5.60097 4.27318 5.64999 4.13495 5.65934 3.99132C5.66993 3.82843 5.6075 3.65674 5.48264 3.31337L4.57566 0.819164C4.46834 0.524037 4.41468 0.37647 4.3201 0.267631C4.23657 0.171491 4.1307 0.0973377 4.0118 0.0516843C3.87719 0 3.72017 0 3.40614 0H1.2149C0.841461 0 0.654742 0 0.49465 0.0771966C0.362057 0.141133 0.231885 0.262122 0.158435 0.389692C0.0697527 0.543718 0.0573619 0.712926 0.0325804 1.05134C0.0109868 1.34622 0 1.64405 0 1.94444Z' fill='%236e99c6' /%3E%3C/svg%3E");
}

.mobile-menu-contacts__list a[href^="mailto:"]::before {
    content: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.0433872 1.3106C0.220264 0.560186 0.917196 0 1.75 0H12.25C13.0828 0 13.7797 0.560186 13.9566 1.3106L7 5.40441L0.0433872 1.3106ZM0 2.27254V8.2579L5.0778 5.26071L0 2.27254ZM5.91623 5.75411L0.167887 9.14709C0.448529 9.717 1.05147 10.1111 1.75 10.1111H12.25C12.9485 10.1111 13.5515 9.717 13.8321 9.14709L8.08377 5.75411L7 6.39188L5.91623 5.75411ZM8.9222 5.26071L14 8.2579V2.27254L8.9222 5.26071Z' fill='%236e99c6' /%3E%3C/svg%3E");
}

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

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

    .menu .menu__dropdown-list {
        background-color: #fff;
        max-width: 240px;
        width: -webkit-max-content;
        width: max-content;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 10px;
        box-shadow: 9px 11px 29px 0 rgba(125, 138, 152, 0.15);
    }

    .menu .menu__dropdown-list li a {
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
    }

    .menu .menu__list li {
        height: 100%;
    }

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

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

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

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

    .menu .menu__dropdown-list li > a:hover {
        color: var(--primary-clr);
    }

    .menu .menu__dropdown-list .menu__dropdown-arrow {
        width: 40px;
        height: 24px;
        padding-right: 24px;
    }

    .menu .menu__dropdown-list {
        opacity: 0;
        transform: rotateX(-90deg);
        transition: transform 450ms ease;
        transform-origin: top;
        transform-style: preserve-3d;
    }

    .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 {
        visibility: visible;
        opacity: 1;
        transform: rotateX(0deg);
        pointer-events: auto;
    }

    .menu__dropdown.hover > .menu__dropdown-list > li {
        transform: translateY(0px);
        opacity: 1;
        transition-delay: calc(sibling-index() * 0.07s);
    }

    .menu-overlay {
        display: none;
    }
}

@media (min-width: 1223.98px) and (any-hover: hover) {
    .menu__dropdown:hover > .menu__dropdown-list {
        visibility: visible;
        opacity: 1;
        transform: rotateX(0deg);
        pointer-events: auto;
    }

    .menu__dropdown:hover > .menu__dropdown-list > li {
        transform: translateY(0px);
        opacity: 1;
        transition-delay: calc(sibling-index() * 0.07s);
    }
}

@media (max-width: 1299.98px) {
    .menu .menu__list {
        gap: 10px;
    }
}

@media (max-width: 1223.98px) {
    .menu {
        background: var(--main-bg-clr);
        pointer-events: none;
        height: auto;
        max-height: calc(100svh - 125px);
        position: fixed;
        right: 15px;
        top: 82px;
        width: 375px;
        border-radius: 16px;
        font-size: 15px;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        transition: all var(--animation-duration) var(--timing-func);
        -webkit-clip-path: inset(0 0 100% 0 round 0px);
        clip-path: inset(0 0 100% 0 round 0px);
    }

    .menu.active {
        pointer-events: auto;
        -webkit-clip-path: inset(0 0 0 0 round 0px);
        clip-path: inset(0 0 0 0 round 0px);
    }

    .menu .menu-wrapper {
        height: auto;
        width: 100%;
        max-width: 768px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 15px;
        padding-right: 15px;
        overflow-y: auto;
    }

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

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

    .menu .menu__list > li > a {
        -ms-flex-pack: start;
        justify-content: flex-start;
        color: var(--main-txt-clr);
        font-weight: 500;
        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::before {
        display: none;
    }

    .menu .menu__dropdown-list {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translate(0px, 0px);
        pointer-events: auto;
        border: 0;
        height: auto;
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 35px;
    }

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

    .menu .menu__dropdown-list li a {
        padding-left: 0;
        padding-right: 0;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 15px;
        color: var(--main-txt-clr);
        font-weight: 500;
        -ms-flex-preferred-size: calc(100% - 30px);
        flex-basis: calc(100% - 30px);
        width: calc(100% - 30px);
    }

    .menu .menu__dropdown .menu__dropdown-arrow {
        width: 25px;
        height: 25px;
        padding-right: 0;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .menu .menu__dropdown .menu__dropdown-arrow._spoller-active::before {
        transform: rotateZ(-90deg);
    }

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

    .header .header-logo {
        margin-right: auto;
    }
}

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

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

@media (max-width: 1023.98px) {
    .menu .menu-wrapper {
        border-top: 1px solid var(--border-clr);
        padding-left: 0;
        padding-right: 0;
    }

    .menu-burger {
        height: 42px;
        width: 103px;
    }

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

    .header__btn {
        display: none;
    }

    .header__wrapper {
        height: 73px;
    }
}

@media (max-width: 767.98px) {
    .header .header-logo {
        -ms-flex: 0 0 133px;
        flex: 0 0 133px;
    }

    .header__wrapper {
        height: 53px;
    }
}

@media (any-hover: hover) {
    .menu .menu__dropdown-arrow {
        display: none;
    }
}