:root {
    --site-gold: #936a3b;
    --site-gold-dark: #72502d;
    --site-ink: #24211e;
    --site-muted: #68635d;
    --site-paper: #ffffff;
    --site-soft: #f1f2f3;
    --site-line: rgba(58, 45, 31, .14);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body.modal-open {
    overflow: hidden;
}

.site-header {
    position: sticky;
    z-index: 500;
    top: 0;
    border-bottom: 1px solid var(--site-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--site-ink);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.site-brand:hover {
    color: var(--site-gold-dark);
}

.site-brand__mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--site-gold);
    font-size: 19px;
    font-weight: 900;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-navigation a,
.site-navigation button {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 14px;
    align-items: center;
    border: 0;
    border-radius: 7px;
    color: var(--site-ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.site-navigation a:hover,
.site-navigation button:hover,
.site-navigation a:focus-visible,
.site-navigation button:focus-visible {
    color: var(--site-gold-dark);
    background: #f5f1eb;
    outline: none;
}

.site-navigation .site-navigation__primary {
    color: #fff;
    background: var(--site-gold);
}

.site-navigation .site-navigation__primary:hover,
.site-navigation .site-navigation__primary:focus-visible {
    color: #fff;
    background: var(--site-gold-dark);
}

.site-menu-toggle {
    display: none;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--site-line);
    border-radius: 7px;
    color: var(--site-ink);
    background: #fff;
    font-weight: 800;
}

.e-download > .btn[type="button"] {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.site-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
}

.site-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 21, 18, .68);
    backdrop-filter: blur(4px);
}

.site-modal__dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    padding: 42px;
    overflow: auto;
    border-radius: 10px;
    background: var(--site-paper);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    transform: translateY(16px) scale(.98);
    transition: transform .2s ease;
}

.site-modal.is-open .site-modal__dialog {
    transform: translateY(0) scale(1);
}

.site-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--site-muted);
    background: #f1f1f1;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

.site-modal__close:hover,
.site-modal__close:focus-visible {
    color: #fff;
    background: var(--site-gold);
    outline: none;
}

.site-modal__eyebrow {
    margin: 0 0 8px;
    color: var(--site-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.site-modal h2 {
    margin: 0 42px 25px 0;
    color: var(--site-ink);
    font-size: clamp(27px, 4vw, 36px);
    line-height: 1.15;
}

.site-modal__steps {
    display: grid;
    margin: 0 0 22px;
    padding-left: 24px;
    gap: 13px;
    color: var(--site-muted);
    font-size: 17px;
}

.site-modal code {
    padding: 3px 7px;
    border-radius: 6px;
    background: #eeeeee;
}

.site-modal__address {
    display: block;
    margin: 20px 0;
    padding: 15px 18px;
    border: 1px dashed rgba(147, 106, 59, .5);
    border-radius: 8px;
    color: var(--site-gold-dark);
    background: #faf7f2;
    font-size: 19px;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.site-modal__note {
    margin: 0 0 26px;
    padding: 14px 16px;
    border-left: 4px solid var(--site-gold);
    color: var(--site-muted);
    background: var(--site-soft);
}

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

.site-modal__cancel {
    border: 1px solid var(--site-line);
    color: var(--site-ink);
    background: #f1f1f1;
    cursor: pointer;
}

@media (max-width: 860px) {
    .site-menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: 12px 20px 18px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--site-line);
        background: #fff;
        box-shadow: 0 14px 28px rgba(35, 29, 22, .1);
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation a,
    .site-navigation button {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .site-brand span:last-child {
        font-size: 15px;
    }

    .site-modal {
        padding: 12px;
    }

    .site-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 34px 22px 24px;
    }

    .site-modal__actions .btn {
        width: 100%;
    }
}
