@layer layout {
    .wrap {
        width: min(var(--wrap-max), calc(100% - var(--wrap-gutter)));
        max-width: var(--wrap-max);
        margin-inline: auto;
        padding: 0;
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .section {
        padding: var(--section-y) 0;
    }

    header.top {
        position: fixed;
        inset: 0 0 auto;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: var(--header-height);
        padding: 0 28px;
        background: rgba(16, 43, 37, .98);
        color: var(--pure-white);
        transition: min-height .25s ease, background .25s ease, box-shadow .25s ease;
    }

    header.top.scrolled {
        min-height: 68px;
        background: rgba(16, 43, 37, .94);
        box-shadow: var(--shadow-header);
        backdrop-filter: blur(14px);
    }

    .top-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        width: min(1320px, 100%);
        min-height: inherit;
        margin: auto;
    }

    .top .logo {
        display: flex;
        flex: none;
        align-items: center;
        gap: 10px;
        width: 118px;
        font: 600 .8rem/1.15 var(--font-sans);
        letter-spacing: .14em;
    }

    .top .logo img {
        width: 100%;
        height: 48px;
        object-fit: contain;
        object-position: left center;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 1.8vw, 27px);
        margin-left: auto;
    }

    .desktop-nav a {
        color: rgba(255, 255, 255, .84);
        font-size: var(--text-sm);
        font-weight: 550;
        text-decoration: none;
        white-space: nowrap;
        transition: color .2s ease;
    }

    .desktop-nav a:hover {
        color: var(--gold);
    }

    .header-actions {
        display: flex;
        flex: none;
        align-items: center;
        gap: 18px;
    }

    .burger {
        display: none;
        width: 42px;
        height: 42px;
        padding: 10px 8px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--pure-white);
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px auto;
        border-radius: 2px;
        background: currentColor;
        transition: transform .24s ease;
    }

    .burger.is-open span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .burger.is-open span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .drawer {
        position: fixed;
        inset: var(--header-height) 0 0 auto;
        z-index: 49;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: min(440px, 100%);
        padding: 22px 28px 28px;
        overflow: auto;
        background: var(--pine-deep);
        transform: translateX(102%);
        transition: transform .38s cubic-bezier(.2, .75, .25, 1);
    }

    .drawer.open {
        transform: translateX(0);
    }

    .drawer > a:not(.btn) {
        display: flex;
        justify-content: space-between;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-on-dark);
        color: #f4f2e9;
        font: 500 1.25rem/1.2 var(--font-serif);
        text-decoration: none;
    }

    .drawer > a span {
        color: var(--gold);
        font: 600 .68rem var(--font-sans);
    }

    .drawer-contact {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 22px;
        padding: 20px 0;
        color: #c6d3ca;
        font-size: var(--text-md);
    }

    .drawer-contact a {
        padding: 0;
        border: 0;
    }

    .drawer .btn {
        margin-top: 8px;
    }

    .drawer .adm {
        margin-top: auto;
        padding-top: 28px;
        color: #b6c4bc;
        font: 600 var(--text-sm) var(--font-sans);
        text-align: center;
    }

    .site-footer {
        padding: 54px 24px 30px;
        background: var(--pine-deep);
        color: var(--light);
        font-size: .85rem;
        text-align: center;
    }

    .footer-inner {
        display: grid;
        justify-items: center;
        gap: 10px;
    }

    .footer-brand {
        display: block;
        width: 108px;
        margin-bottom: 8px;
    }

    .footer-brand img {
        width: 100%;
        height: 45px;
        object-fit: contain;
    }

    .footer-inner p {
        font-size: var(--text-md);
    }

    .footer-inner a {
        color: var(--text-footer-link);
        text-decoration: none;
    }

    .footer-inner a:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .footer-inner > small {
        margin-top: 14px;
        color: var(--text-footer-muted);
        font-size: .7rem;
    }
}
