* {
    box-sizing: border-box;
}

:root {
    --header-background: rgba(68, 79, 73, 0.98);
    --header-hover: #718980;
    --dropdown-background: rgba(157, 175, 167, 0.98);
    --dropdown-hover: rgba(255, 255, 255, 0.34);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    min-height: 78px;
    background: var(--header-background);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.30);
}

.header-inner {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
}

.brand-main {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.08em;
}

.brand-sub {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.main-navigation {
    display: flex;
    align-items: stretch;
    min-height: 78px;
}

.main-navigation > a,
.dropdown-toggle {
    min-height: 78px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    border: 0;
    text-decoration: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.main-navigation > a:hover,
.dropdown-toggle:hover,
.main-navigation > a.active,
.dropdown-toggle.active,
.nav-item-dropdown.open .dropdown-toggle {
    background: var(--header-hover);
}

.nav-item-dropdown {
    position: relative;
    display: flex;
}

.dropdown-arrow {
    margin-left: 7px;
    font-size: 0.85rem;
    transition: transform 160ms ease;
}

.nav-item-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 245px;
    padding: 10px 0;
    display: none;
    background: var(--dropdown-background);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 13px 22px;
    color: #111111;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: var(--dropdown-hover);
}

.language-label {
    margin-left: auto;
}

.language-select {
    min-height: 42px;
    max-width: 170px;
    padding: 0 32px 0 12px;
    color: #ffffff;
    background: rgba(35, 43, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    cursor: pointer;
}

.language-select option {
    color: #111111;
    background: #ffffff;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    padding: 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px auto;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu-button.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-button.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1000px) {
    .header-inner {
        width: calc(100% - 24px);
    }

    .mobile-menu-button {
        display: block;
    }

    .language-label {
        margin-left: 0;
    }

    .main-navigation {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        background: rgba(53, 63, 58, 0.99);
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation > a,
    .dropdown-toggle {
        width: 100%;
        min-height: 54px;
        padding: 0 18px;
        justify-content: flex-start;
    }

    .nav-item-dropdown {
        display: block;
    }

    .dropdown-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        padding: 4px 0 8px;
        display: none;
        box-shadow: none;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-item-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding-left: 34px;
    }
}

@media (max-width: 560px) {
    .site-header,
    .header-inner {
        min-height: 70px;
    }

    .main-navigation {
        top: 70px;
    }

    .brand {
        min-width: 52px;
    }

    .brand-main {
        font-size: 1.85rem;
    }

    .brand-sub {
        display: none;
    }

    .language-select {
        max-width: 145px;
        min-height: 40px;
        font-size: 0.84rem;
    }
}
