.site-header {
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 64px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s ease;
}

.site-logo {
    display: block;
    margin-right: 0;
}

/* Navigation */

.main-navigation {
    flex: none;
    display: block;
    justify-content: unset;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 44px;
    align-items: center;
}

/* Top-level items */
.main-navigation > ul > li {
    position: relative;
}

/* Hide submenus by default */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 260px;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 500;
    padding: 0;
    overflow: hidden;
    list-style: none;
    flex-direction: column;
    gap: 0;
}

/* Pointer bridge — prevents gap between item and dropdown */
.main-navigation > ul > li::after {
    content: '';
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}

.main-navigation > ul > li:hover::after {
    display: block;
}

/* Show dropdown on hover */
.main-navigation > ul > li:hover > .sub-menu {
    display: flex;
}

/* Dropdown link styles */
.main-navigation .sub-menu li {
    display: block;
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 24px;
    font-family: var(--font-neo);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-black);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.main-navigation .sub-menu a:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

/* Top-level link hover */
.main-navigation > ul > li > a:hover {
    color: var(--color-accent);
}

/* All nav links base */
.main-navigation a {
    font-family: var(--font-neo);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-white);
    white-space: nowrap;
    text-decoration: none;
}

/* Header Actions */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    margin-left: 0;
}

.lang-switcher {
    position: relative;
}

.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lang-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.lang-switcher__current {
    font-family: var(--font-neo);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-white);
    white-space: nowrap;
    display: block;
}

.lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    min-width: 140px;
    overflow: hidden;
    z-index: 600;
}

.lang-switcher.is-open .lang-switcher__dropdown {
    display: block;
}

.lang-switcher__option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-neo);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-black);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background-color 0.15s;
}

.lang-flag {
    flex-shrink: 0;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.lang-switcher__option:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.lang-switcher__option.is-active {
    color: var(--color-primary);
    font-weight: 500;
}

.btn-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-neo);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    width: 200px;
    height: 44px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.burger-btn img {
    width: 40px;
    height: 40px;
    display: block;
}

/* Responsive */

@media (max-width: 1170px) {
    .site-header {
        padding: 12px 16px;
    }

    .site-logo img {
        width: 126px;
        height: 36px;
    }

    .main-navigation {
        display: none;
    }

    .btn-partner {
        display: none;
    }

    .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lang-switcher span {
        transform: translateY(1px);
    }
    .lang-switcher__current {
        transform: translateY(1px);
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 24px;
        flex-shrink: 0;
    }
}

@media (min-width: 1171px) {
    .site-header {
        position: sticky;
    }
}
