.site--header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    max-width: none;
    margin: 0 auto;
    padding: 24px max(var(--pad), calc((100% - 1280px) / 2));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 112px;
}

.wordmark {
    font-family: 'GOST', sans-serif;
    font-size: 28px;
    letter-spacing: .05em;
    text-decoration: none;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site--nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    align-items: center;
    gap: 12px;
    width: 300px;
    max-width: 100%;
    font-family: 'GOST', sans-serif;
    font-size: 20px;
}

    .site--nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 0;
        text-align: center;
        text-decoration: none;
    }

.site--header > .wordmark {
    justify-self: start;
}

.site--header > .site--contact {
    justify-self: end;
}

.site--nav .lang--switch {
    width: 44px;
}

.site--nav a.active {
    color: var(--gold-soft);
}

.site--footer {
    color: var(--text-muted);
    font-family: 'GOST', sans-serif;
    font-size: 18px;
}

.footer--inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px 48px;
    padding-block: 36px 24px;
    border-top: 1px dashed var(--seam);
}

.footer--brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 14px;
    min-width: 0;
    color: var(--linen);
    text-decoration: none;
}

    .footer--brand > .wordmark--button {
        flex-shrink: 0;
    }

.footer--brand-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.footer--name {
    font-size: 26px;
    letter-spacing: .06em;
    line-height: 1;
}

.footer--note {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: .04em;
}

.footer--links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 32px;
}

    .footer--links a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        color: var(--text-soft);
        text-decoration: none;
    }

        .footer--links a > span:last-child {
            color: var(--gold-soft);
        }

.footer--bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 18px;
    border-top: 1px solid rgb(138 117 86 / .25);
    font-size: 15px;
    letter-spacing: .03em;
}

    .footer--bottom .lang--switch {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        color: var(--gold-soft);
        font-size: 18px;
        text-decoration: none;
    }

.site--footer a:hover {
    color: var(--linen-bright);
}

.site--footer a:focus-visible {
    outline: 2px dashed var(--gold-soft);
    outline-offset: 5px;
}

@media (max-width: 600px) {
    .footer--inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 28px;
    }

    .footer--links {
        justify-content: flex-start;
        gap: 12px 28px;
    }

    .footer--name {
        font-size: 24px;
    }

    .footer--bottom {
        padding-top: 16px;
    }
}
.site--header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: max(var(--pad), calc((100% - 1280px) / 2));
    right: max(var(--pad), calc((100% - 1280px) / 2));
    border-bottom: 1px dashed var(--seam);
    opacity: .55;
}

.wordmark--button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--linen);
    border-radius: 50%;
    font: 26px/1 Georgia, serif;
}

.wordmark--note {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--text-muted);
}

.site--contact {
    padding: 10px 0;
    border-bottom: 1px solid var(--seam);
    font-size: 18px;
    text-decoration: none;
}


@media (max-width: 900px) {
    .site--contact {
        display: none;
    }

    .site--header {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 760px) {
    .site--header {
        min-height: 132px;
        padding-block: 18px;
        gap: 8px 20px;
        grid-template-columns: minmax(0, 1fr);
    }

    .wordmark {
        font-size: 23px;
    }

    .site--nav {
        justify-self: start;
        gap: 12px;
        font-size: 18px;
    }
}

.site--header {
    background-color: var(--cloth);
    transition: transform .22s ease, box-shadow .22s ease;
}

.site--header--scrolled {
    box-shadow: 0 8px 24px rgb(0 0 0 / .25);
}

.site--header--hidden {
    transform: translateY(-100%);
}

.site--header:focus-within {
    transform: translateY(0);
}

html {
    scroll-padding-top: 148px;
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 176px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site--header {
        transition: none;
    }
}
.skip--link {
    position: fixed;
    top: 12px;
    left: var(--pad);
    z-index: 100;
    max-width: calc(100% - 2 * var(--pad));
    padding: 14px 20px;
    border-radius: var(--corner);
    color: var(--patch-ink);
    background: var(--linen);
    font-size: 20px;
    transform: translateY(calc(-100% - 24px));
}

.skip--link:focus {
    transform: none;
    outline: 2px dashed var(--gold-soft);
    outline-offset: 3px;
    color: var(--patch-ink);
}
