.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e3d9d1;
}

.site-header__bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    height: 72px;
    gap: 24px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header__brand,
.site-header__actions {
    display: flex;
    flex: 1;
    min-width: 0;
}

.site-header__brand {
    align-items: center;
}

.site-header__actions {
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.site-logo {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 143px;
    height: 42px;
}

.site-logo__icon-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 53px;
    height: 42px;
    overflow: hidden;
}

.site-logo__icon {
    position: absolute;
    top: -13.49%;
    left: 0;
    width: 100%;
    max-width: none;
    height: 126.98%;
}

.site-logo__wordmark-frame {
    position: absolute;
    inset: 26.97% 0 7.92% 45.45%;
}

.site-logo__wordmark {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
}

.site-nav {
    display: none;
    align-items: center;
    flex-shrink: 0;
    gap: 32px;
}

.site-nav__link {
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: var(--ls-14);
    color: #7a726d;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: #f28a4b;
}

.language-switcher {
    position: relative;
    display: none;
    flex-shrink: 0;
}

.language-switcher__button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    gap: 8px;
    padding: 0 16px 0 12px;
    background: #fff;
    border: 1px solid rgba(46, 42, 40, 0.3);
    border-radius: 17px;
    cursor: pointer;
    transition: border-color 160ms ease;
}

.language-switcher__button:hover,
.language-switcher__button[aria-expanded="true"] {
    border-color: #f28a4b;
}

.language-switcher__icon {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.language-switcher__current {
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: var(--ls-14);
    color: #2e2a28;
    white-space: nowrap;
}

.language-switcher__menu {
    position: absolute;
    top: 52px;
    right: 0;
    z-index: 60;
    width: 240px;
    max-height: min(520px, calc(100vh - 96px));
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e3d9d1;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(46, 42, 40, 0.16);
}

.language-switcher__menu.is-hidden {
    display: none;
}

.language-switcher__option {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: var(--ls-14);
    color: #7a726d;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.language-switcher__option:hover {
    color: #f28a4b;
    background: #fef0eb;
}

.language-switcher__option.is-active {
    color: #2e2a28;
    background: #f8f3ee;
}

.site-header__download {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 13px 22px;
    background: #f28a4b;
    border-radius: 17px;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.site-header__download:hover {
    background: #e07a3b;
}

.site-header__download-label {
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: var(--ls-14);
    color: #fff;
    white-space: nowrap;
}

.menu-toggle {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #2e2a28;
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 240ms ease,
        opacity 240ms ease;
}

.mobile-nav {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #e3d9d1;
}

.mobile-nav.is-hidden {
    display: none;
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    margin: 0;
    list-style: none;
}

.mobile-nav__link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: var(--ls-16);
    color: #2e2a28;
    text-decoration: none;
    border-bottom: 1px solid #e3d9d1;
    transition: color 160ms ease;
}

.mobile-nav__link.is-active {
    color: #f28a4b;
}

.mobile-nav__link--last {
    border-bottom: 0;
}

.mobile-nav__languages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px 16px;
    padding: 16px 0;
    border-top: 1px solid #e3d9d1;
}

.mobile-nav__language-link {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: var(--ls-14);
    color: #2e2a28;
    text-align: center;
    text-decoration: none;
}

.mobile-nav__language-link.is-active {
    color: #f28a4b;
}

@media (max-width: 500px) {
    .mobile-nav__languages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 501px) and (max-width: 1024px) {
    .mobile-nav__languages {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.mobile-nav__download-item {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
}

.mobile-nav__download {
    display: block;
    width: 250px;
    max-width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: var(--ls-15);
    color: #fff;
    text-align: center;
    text-decoration: none;
    background: #f28a4b;
    border-radius: 17px;
    transition: background-color 160ms ease;
}

.mobile-nav__download:hover {
    background: #e07a3b;
}

@media (min-width: 1024px) {
    .site-header__bar {
        padding: 0 24px;
    }

    .site-nav,
    .language-switcher,
    .site-header__download {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }
}
