:root {
    --bg: #0c0c0b;
    --bg-soft: #131311;
    --surface: #171715;
    --surface-2: #1d1d1a;
    --border: rgba(211, 189, 145, 0.18);
    --border-strong: rgba(211, 189, 145, 0.4);
    --text: #f3efe6;
    --text-soft: #cfc7b7;
    --text-muted: #9e9687;
    --accent: #d3bd91;
    --accent-strong: #e4cf9f;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1280px;
    --header-height: 88px;
    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(211, 189, 145, 0.06), transparent 32%),
        linear-gradient(180deg, #0f0f0d 0%, #090909 100%);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-main {
    min-height: 60vh;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 9, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(211, 189, 145, 0.09), rgba(211, 189, 145, 0.02));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-text small {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-top: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-soft);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    border: 1px solid transparent;
}

.nav-list a:hover,
.nav-list a.is-active {
    color: var(--text);
    background: rgba(211, 189, 145, 0.08);
    border-color: rgba(211, 189, 145, 0.18);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #17140f;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.mobile-nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px auto;
    transition: transform var(--transition), opacity var(--transition);
}

/* Footer */
.site-footer {
    /*margin-top: 96px;*/
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(0, 0, 0, 0.08)),
        rgba(8, 8, 8, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand p {
    max-width: 30ch;
    color: var(--text-soft);
    margin: 18px 0 0;
}

.footer-column h3 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li + li {
    margin-top: 10px;
}

.footer-column a {
    color: var(--text-soft);
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--text);
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Mobile */
@media (max-width: 980px) {
    .mobile-nav-toggle {
        display: inline-block;
        position: relative;
        z-index: 1002;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 16px 24px;
        background: rgba(10, 10, 9, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: var(--shadow);
    }

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

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-list a {
        min-height: 48px;
        border-radius: 14px;
        padding-inline: 16px;
        background: rgba(255, 255, 255, 0.02);
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .header-inner {
        min-height: 76px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .brand-text strong {
        font-size: 1.45rem;
    }

    .brand-text small {
        font-size: 0.68rem;
        letter-spacing: 0.18em;
    }

    .site-nav {
        top: 76px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer {
        margin-top: 72px;
        padding-top: 36px;
    }
}