.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus,
.focus-visible-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 999;
    width: auto;
    height: auto;
    padding: 12px 20px;
    clip: auto;
    border-radius: 999px;
    background: #fff;
    color: var(--forest);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 16px;
}

.main-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.desktop-menu,
.desktop-actions {
    display: flex;
    align-items: center;
}

.desktop-menu {
    gap: 28px;
}

.desktop-actions {
    gap: 12px;
}

.desktop-menu a {
    color: var(--forest2);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease;
}

.desktop-menu a:hover {
    color: var(--leaf);
}

.language-switcher {
    padding: 4px;
    border-radius: 999px;
    background: var(--sage);
    font-size: 14px;
    font-weight: 900;
}

.language-switcher a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--forest);
    text-decoration: none;
    opacity: .6;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher a.active {
    background: #fff;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--forest);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
    transition: transform .2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--sage);
    color: var(--forest);
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    max-width: 1280px;
    margin: 12px auto 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 32px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.mobile-menu-inner {
    display: grid;
    gap: 12px;
    font-weight: 800;
}

.mobile-menu-inner>a {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(228, 238, 220, .65);
    color: var(--forest);
    text-decoration: none;
}

.mobile-menu-inner>a.mobile-cta {
    background: var(--forest);
    color: #fff;
}

.mobile-lang {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

.mobile-lang a {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--sage);
    color: var(--forest);
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 1024px) {

    .desktop-menu,
    .desktop-actions {
        display: none;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .code-logo svg {
        width: 165px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px;
    }

    .main-nav {
        border-radius: 28px;
    }

    .code-logo svg {
        width: 145px;
    }
}