html:has(.landing-page) {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

.landing-page .landing-utility,
.public-content-shell .landing-utility {
    display: grid;
    grid-template-columns: minmax(160px, 245px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 46px);
    padding: 28px 0 20px;
}

.landing-page .landing-brand img,
.public-content-shell .landing-brand img {
    width: min(230px, 100%);
}

.landing-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.landing-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #eee5dc;
    border-radius: 13px;
    background: rgba(255, 253, 250, .82);
    color: #38332f;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(42, 29, 19, .035);
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.landing-nav a::after {
    content: none;
}

.landing-nav a:hover,
.landing-nav a:focus-visible {
    transform: translateY(-2px);
    border-color: #f15a24;
    background: #fff0e8;
    color: #d9480f;
    box-shadow: 0 7px 16px rgba(241, 90, 36, .12);
}

.landing-site-language {
    display: flex;
    align-items: center;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.landing-menu-toggle {
    display: none;
}

.language-globe {
    color: #ef5a22;
    font-size: 15px;
    line-height: 1;
}

.language-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.landing-site-language select {
    appearance: none;
    min-width: 132px;
    min-height: 42px;
    padding: 0 38px 0 39px;
    border: 1px solid #ead6c8;
    border-radius: 14px;
    outline: none;
    background: linear-gradient(135deg, #fffdfa, #fff5ed);
    color: #211d1a;
    box-shadow: 0 5px 15px rgba(42, 29, 19, .07), inset 0 1px 0 rgba(255, 255, 255, .85);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.landing-site-language select:hover,
.landing-site-language select:focus-visible {
    border-color: #f15a24;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(241, 90, 36, .12), 0 7px 18px rgba(42, 29, 19, .07);
}

.language-chevron {
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 8px;
    color: #e6531d;
    font-size: 19px;
    line-height: 1;
}

.language-globe {
    pointer-events: none;
    position: absolute;
    z-index: 1;
    left: 13px;
    color: #ef5a22;
    font-size: 17px;
    line-height: 1;
}

.landing-page [id] {
    scroll-margin-top: 24px;
}

@media (max-width: 900px) {
    .landing-page .landing-utility,
    .public-content-shell .landing-utility {
        grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) auto;
        gap: 16px;
    }

    .landing-nav {
        gap: 6px;
    }

    .landing-nav a {
        font-size: 11px;
        min-height: 39px;
        padding: 0 11px;
    }
}

@media (max-width: 700px) {
    .landing-page .landing-utility,
    .public-content-shell .landing-utility {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0 10px;
        padding-top: 20px;
    }

    .landing-page .landing-brand img,
    .public-content-shell .landing-brand img {
        width: min(190px, 56vw);
    }

    .landing-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 13px;
        padding: 13px;
        border: 1px solid #eee5dc;
        border-radius: 18px;
        background: rgba(255, 253, 250, .97);
        box-shadow: 0 14px 30px rgba(42, 29, 19, .09);
    }

    .landing-page .landing-utility.menu-open .landing-nav,
    .public-content-shell .landing-utility.menu-open .landing-nav {
        display: flex;
    }

    .landing-nav a {
        font-size: 12px;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 12px;
        background: #fff;
        box-shadow: none;
    }

    .landing-header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 8px;
    }

    .landing-site-language select {
        min-width: 106px;
        min-height: 42px;
        font-size: 11px;
    }

    .landing-menu-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        border: 1px solid #ead6c8;
        border-radius: 14px;
        background: linear-gradient(135deg, #fffdfa, #fff1e7);
        color: #211d1a;
        box-shadow: 0 5px 15px rgba(42, 29, 19, .07);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .landing-menu-toggle span {
        width: 17px;
        height: 2px;
        border-radius: 3px;
        background: #e6531d;
        transition: transform .2s ease, opacity .2s ease;
    }

    .landing-menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .landing-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .landing-menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.landing-page) {
        scroll-behavior: auto;
    }

    .landing-nav a,
    .landing-site-language select,
    .landing-menu-toggle span {
        transition: none;
    }
}

@media (max-width: 380px) {
    .landing-page .landing-brand img,
    .public-content-shell .landing-brand img {
        width: 120px;
    }

    .landing-site-language select {
        min-width: 96px;
        padding-right: 30px;
        padding-left: 34px;
    }

    .landing-header-actions {
        gap: 7px;
    }
}
