/* == TOP NAV == */
.topnav {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13,41,112,0.08);
    position: sticky;
    top: 0;
    z-index: 1040;
    overflow: visible;
}

/* Topnav right: contacts + lang */
.topnav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

    .contact-item svg { color: var(--text-muted); flex-shrink: 0; }
    .contact-item:hover { color: var(--navy); }
    .contact-item:hover svg { color: var(--navy); }

.contact-divider {
    width: 1px;
    height: 16px;
    background: rgba(13,41,112,0.12);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-low);
    border: 1px solid var(--surface-highest);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    padding: 5px 12px;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.lang-btn svg {
    display: block;
    flex-shrink: 0;
}

    .lang-btn:hover {
        background: var(--surface-high);
        color: var(--navy);
    }

/* Mobile: hide contacts entirely, show lang icon only */
@media (max-width: 768px) {
    .topnav .contact-group,
    .topnav .contact-divider { display: none; }

    .lang-btn { padding: 5px 10px; }
}

/* Very small screens: icon-only lang button + smaller logo to prevent overflow */
@media (max-width: 420px) {
    .topnav-logo {
        height: 46px;
        max-width: 160px;
    }

    .lang-btn span {
        display: none;
    }

    .lang-btn {
        padding: 7px 9px;
    }
}

.topnav-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

    .topnav .nav-link {
        color: var(--text-muted);
        font-weight: 500;
        font-size: 0.88rem;
        padding: 0.4rem 0;
        transition: color .2s;
    }

        .topnav .nav-link:hover {
            color: var(--navy);
        }

        .topnav .nav-link.active {
            color: var(--navy);
            font-weight: 700;
            border-bottom: 2px solid var(--cyan);
        }

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    border: none;
    background: transparent;
    transition: background .2s, color .2s;
}

    .icon-btn:hover {
        background: var(--navy-soft);
        color: var(--navy);
    }

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 991.98px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
    }

    .topnav-links {
        display: none !important;
    }
}
