.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    width: 100%;

    border-bottom: 1px solid transparent;

    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        border-color 300ms ease,
        box-shadow 300ms ease,
        background-color 300ms ease;
}


.site-header.is-scrolled {
    border-color: #e8e8e5;

    box-shadow:
        0 10px 30px -24px rgba(0, 0, 0, 0.5);
}


.site-header__inner {
    display: flex;

    width: min(calc(100% - 48px), 1240px);
    height: 64px;

    margin-inline: auto;

    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


.site-logo {
    display: block;

    width: 176px;

    flex-shrink: 0;

    line-height: 0;
}

.site-logo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


.site-nav {
    display: flex;

    min-width: 0;

    align-items: center;

    gap: 28px;
}

.site-nav a {
    position: relative;

    flex-shrink: 0;

    color: #777782;

    font-family: "Inter", sans-serif;
    font-size: 16.1px;
    font-weight: 400;

    line-height: 1.2;

    text-transform: none;
    white-space: nowrap;

    transition:
        color 200ms ease;
}

.site-nav a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -5px;
    left: 0;

    height: 2px;

    background: #dbf833;

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 300ms ease;
}

.site-nav a:hover {
    color: #171717;
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


.site-header__actions {
    display: flex;

    flex-shrink: 0;

    align-items: center;

    gap: 8px;
}

.header-contact {
    display: inline-flex;

    min-height: 44px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 20px;

    border-radius: 999px;

    background: #1c2041;
    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    text-transform: none;
    white-space: nowrap;

    transition:
        opacity 200ms ease;
}

.header-contact:hover {
    color: #ffffff;

    opacity: 0.92;
}

.header-contact svg {
    flex-shrink: 0;

    transition:
        transform 250ms ease;
}

.header-contact:hover svg {
    transform: translate(2px, -2px);
}



.language-switcher {
    display: inline-flex;
    flex-shrink: 0;

    align-items: center;

    gap: 3px;

    padding: 3px;

    border: 1px solid #e8e8e5;
    border-radius: 999px;

    background: #ffffff;
}


.language-switcher__link {
    display: flex;

    min-width: 32px;
    height: 32px;

    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border-radius: 999px;

    color: #777782;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 200ms ease,
        color 200ms ease;
}


.language-switcher__link:hover {
    color: #171717;
}


.language-switcher__link.is-active {
    background: #1c2041;
    color: #ffffff;
}


.menu-toggle {
    position: relative;

    display: none;

    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #e8e8e5;
    border-radius: 50%;

    background: #ffffff;
    color: #171717;

    cursor: pointer;

    overflow: hidden;

    transition:
        border-color 220ms ease,
        background-color 220ms ease;
}

.menu-toggle:hover {
    border-color: #cfcfca;
}


.menu-toggle svg {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 20px;
    height: 20px;

    pointer-events: none;

    transition:
        opacity 220ms ease,
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}


.menu-toggle__open {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        rotate(0deg)
        scale(1);
}


.menu-toggle__close {
    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(-35deg)
        scale(0.72);
}


.menu-toggle[aria-expanded="true"] .menu-toggle__open {
    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(35deg)
        scale(0.72);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        rotate(0deg)
        scale(1);
}


.mobile-menu {
    display: none;
}


@media (max-width: 1440px) {

    .site-header__inner {
        width: min(calc(100% - 40px), 1200px);

        gap: 20px;
    }

    .site-logo {
        width: 164px;
    }

    .site-nav {
        gap: 22px;
    }

    .site-nav a {
        font-size: 14.95px;
    }

    .header-contact {
        padding: 12px 18px;

        font-size: 13px;
    }
}


@media (max-width: 1280px) {

    .site-header__inner {
        width: calc(100% - 32px);

        gap: 16px;
    }

    .site-logo {
        width: 152px;
    }

    .site-nav {
        gap: 16px;
    }

    .site-nav a {
        font-size: 14.375px;
    }

    .header-contact {
        padding: 11px 15px;

        font-size: 12.5px;
    }
}


@media (max-width: 1023px) {

    .site-header {
        background:
            rgba(255, 255, 255, 0.94);
    }

    .site-header__inner {
        width: min(calc(100% - 40px), 1240px);

        gap: 16px;
    }

    .site-logo {
        width: 140px;
    }


    .site-nav {
        display: none;
    }


    .site-header__actions {
        margin-left: auto;
    }


    .menu-toggle {
        display: flex;
    }


    .mobile-menu {
        display: block;

        max-height: 0;

        overflow: hidden;

        border-top:
            1px solid transparent;

        background: #ffffff;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform: translateY(-6px);

        transition:
            max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 240ms ease,
            transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
            border-color 250ms ease,
            visibility 0s linear 520ms;
    }


    .mobile-menu.is-open {
        max-height: 520px;

        border-top-color: #e8e8e5;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);

        transition:
            max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 240ms ease,
            transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
            border-color 250ms ease,
            visibility 0s linear 0s;
    }


    .mobile-nav {
        display: flex;

        width: min(calc(100% - 40px), 1240px);

        margin-inline: auto;

        flex-direction: column;

        padding:
            8px 0 12px;
    }


    .mobile-nav > a {
        position: relative;

        display: flex;

        min-height: 46px;

        align-items: center;

        padding:
            12px 0;

        border-bottom:
            1px solid #e8e8e5;

        color: #171717;

        font-family: "Inter", sans-serif;
        font-size: 14px;
        font-weight: 400;

        line-height: 1.2;

        opacity: 0;

        transform: translateY(-5px);

        transition:
            color 200ms ease,
            opacity 240ms ease,
            transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    }


    .mobile-menu.is-open .mobile-nav > a {
        opacity: 1;

        transform: translateY(0);
    }


    .mobile-menu.is-open .mobile-nav > a:nth-child(1) {
        transition-delay: 30ms;
    }

    .mobile-menu.is-open .mobile-nav > a:nth-child(2) {
        transition-delay: 55ms;
    }

    .mobile-menu.is-open .mobile-nav > a:nth-child(3) {
        transition-delay: 80ms;
    }

    .mobile-menu.is-open .mobile-nav > a:nth-child(4) {
        transition-delay: 105ms;
    }

    .mobile-menu.is-open .mobile-nav > a:nth-child(5) {
        transition-delay: 130ms;
    }

    .mobile-menu.is-open .mobile-nav > a:nth-child(6) {
        transition-delay: 155ms;
    }


    .mobile-nav > a:hover {
        color: #1c2041;
    }


    .mobile-nav > a:last-child {
        border-bottom: 0;
    }


    .mobile-nav__contact {
        display: none !important;
    }
}


@media (max-width: 900px) {

    .site-header__inner {
        width: calc(100% - 32px);
    }

    .mobile-nav {
        width: calc(100% - 32px);
    }
}


@media (max-width: 639px) {

    .site-header__inner {
        width: calc(100% - 28px);

        height: 64px;

        gap: 10px;
    }


    .site-logo {
        width: 116px;
    }


    .site-header__actions {
        gap: 7px;
    }


    .language-switcher {
        gap: 2px;
        padding: 2px;
    }


    .language-switcher__link {
        min-width: 27px;
        height: 27px;

        padding: 0 6px;

        font-size: 10px;
    }


    .header-contact {
        min-height: 40px;

        gap: 6px;

        padding: 10px 13px;

        font-size: 12px;
    }


    .header-contact svg {
        width: 14px;
        height: 14px;
    }


    .menu-toggle {
        width: 40px;
        height: 40px;
    }


    .menu-toggle svg {
        width: 18px;
        height: 18px;
    }


    .mobile-nav {
        width: calc(100% - 28px);

        padding:
            6px 0 10px;
    }


    .mobile-nav > a {
        min-height: 44px;

        padding:
            11px 0;

        font-size: 14px;
    }
}


@media (max-width: 420px) {

    .site-header__inner {
        width: calc(100% - 20px);

        gap: 6px;
    }


    .site-logo {
        width: 104px;
    }


    .language-switcher__link {
        min-width: 25px;
        height: 25px;

        padding: 0 5px;

        font-size: 9.5px;
    }


    .header-contact {
        min-height: 38px;

        gap: 5px;

        padding: 9px 11px;

        font-size: 11px;
    }


    .header-contact svg {
        width: 12px;
        height: 12px;
    }


    .menu-toggle {
        width: 38px;
        height: 38px;
    }


    .menu-toggle svg {
        width: 17px;
        height: 17px;
    }


    .mobile-nav {
        width: calc(100% - 20px);
    }
}


@media (max-width: 375px) {

    .site-header__inner {
        width: calc(100% - 18px);

        gap: 5px;
    }


    .site-logo {
        width: 96px;
    }


    .header-contact {
        min-height: 36px;

        gap: 4px;

        padding:
            8px 9px;

        font-size: 10.5px;
    }


    .header-contact svg {
        width: 11px;
        height: 11px;
    }


    .menu-toggle {
        width: 36px;
        height: 36px;
    }


    .menu-toggle svg {
        width: 16px;
        height: 16px;
    }


    .mobile-nav {
        width: calc(100% - 18px);
    }
}


@media (max-width: 340px) {

    .site-header__inner {
        width: calc(100% - 14px);
    }


    .site-logo {
        width: 88px;
    }


    .language-switcher {
        gap: 1px;
    }


    .language-switcher__link {
        min-width: 23px;
        height: 23px;

        padding: 0 4px;

        font-size: 9px;
    }


    .header-contact {
        padding:
            8px 8px;

        font-size: 10px;
    }


    .header-contact svg {
        display: none;
    }


    .menu-toggle {
        width: 35px;
        height: 35px;
    }


    .mobile-nav {
        width: calc(100% - 14px);
    }
}


@media
(max-width: 1023px)
and
(max-height: 600px) {

    .mobile-menu.is-open {
        max-height:
            calc(100dvh - 64px);

        overflow-y: auto;

        overscroll-behavior:
            contain;

        -webkit-overflow-scrolling:
            touch;
    }


    .mobile-nav > a {
        min-height: 40px;

        padding:
            9px 0;
    }
}