/* ===== Site Navigation (mobile topbar + desktop header) ===== */

.site-topbar {
    display: none;
    position: relative;
    z-index: 200;
    width: 100%;
    max-width: 100vw;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(5, 45, 77, 0.1);
    box-sizing: border-box;
    overflow-x: clip;
}

.site-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
}

.site-topbar__logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 110px);
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-topbar__logo img {
    width: clamp(52px, 13vw, 68px);
    height: auto;
    max-width: 100%;
    display: block;
}

.site-topbar__tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-topbar__menu-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fff;
    border: 1px solid rgba(5, 45, 77, 0.18);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.site-topbar__menu-btn:hover {
    background: rgba(5, 45, 77, 0.05);
}

.site-topbar__menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #052D4D;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-topbar__menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-topbar__menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.site-topbar__menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-topbar__menu {
    display: none;
    flex-direction: column;
    padding: 8px 16px 14px;
    gap: 4px;
    border-top: 1px solid rgba(5, 45, 77, 0.08);
    max-width: 100%;
    box-sizing: border-box;
}

.site-topbar__menu.is-open {
    display: flex;
}

.site-topbar__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #052D4D;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    word-break: break-word;
}

.site-topbar__link:hover {
    background: rgba(5, 45, 77, 0.06);
    color: #052D4D;
}

/* Desktop header (inside landing-area) */
.site-header {
    display: none;
    grid-template-columns: minmax(70px, 160px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 1.5vw, 20px);
    padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 70px) 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

.site-header__logo,
.site-header__logo.logo {
    flex-shrink: 0;
    cursor: pointer;
    line-height: 0;
}

.site-header__logo img {
    width: clamp(90px, 10vw, 160px);
    height: auto;
    max-width: 100%;
    display: block;
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 0.9vw, 14px);
    min-width: 0;
}

.site-header__link {
    font-size: clamp(9px, 0.95vw, 15px);
    font-weight: 500;
    color: #f6f6f6;
    text-decoration: none;
    background-color: rgba(5, 45, 77, 1);
    padding: 6px clamp(5px, 0.75vw, 10px);
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1.3;
    transition: background-color 0.2s ease;
}

.site-header__link:hover {
    background-color: rgba(5, 45, 77, 0.88);
    color: #f6f6f6;
}

.site-header__social {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.site-header__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f6f6f6 !important;
    text-decoration: none;
    background-color: rgba(5, 45, 77, 1);
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.site-header__social a:hover {
    background-color: rgba(5, 45, 77, 0.88);
}

.site-header__social i {
    font-size: 20px;
}

/* Language select  shared base */
.lang-select {
    background-color: #052D4D;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
    flex-shrink: 0;
}

.site-topbar .lang-select {
    padding: 0 24px 0 10px;
    line-height: 40px;
    height: 40px;
    min-width: 54px;
    max-width: 64px;
}

.lang-select:focus {
    outline: 2px solid #0F569B;
    outline-offset: 1px;
}

.lang-select option {
    font-size: 13px;
    font-weight: 500;
    color: #052D4D;
    background: #fff;
}

.lang-select--header {
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: auto;
    line-height: 1.3;
    padding: 6px 24px 6px clamp(5px, 0.75vw, 10px);
    font-size: clamp(9px, 0.95vw, 15px);
    border-radius: 8px;
    min-width: 50px;
    max-width: 60px;
    vertical-align: middle;
}

/* Breakpoints */
@media (max-width: 1024px) {
    .site-topbar {
        display: block;
    }

    .site-header {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .site-topbar {
        display: none !important;
    }

    .site-header {
        display: grid;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .site-header__link {
        font-size: 10px;
        padding: 5px 6px;
    }

    .lang-select--header {
        font-size: 10px;
        padding: 5px 22px 5px 6px;
    }

    .lang-select--header option {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .site-topbar__inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .site-topbar__logo {
        max-width: calc(100% - 100px);
    }

    .site-topbar__tools {
        gap: 12px;
    }

    .site-topbar .lang-select {
        min-width: 48px;
        max-width: 54px;
        font-size: 12px;
        padding-left: 8px;
        padding-right: 20px;
    }

    .site-topbar__menu-btn {
        width: 36px;
        height: 36px;
    }
}
