﻿:root {
    --background: #071118;
    --background-light: #0d1c26;
    --surface: rgba(13, 28, 38, 0.88);
    --surface-solid: #10232e;
    --surface-border: rgba(202, 169, 101, 0.22);
    --primary: #d8b66c;
    --primary-light: #f3d999;
    --primary-dark: #987539;
    --accent: #5fc8df;
    --text: #f5f1e8;
    --text-muted: #9cafb8;
    --danger: #ff7b7b;
    --success: #64d7a1;
    --container: 1180px;
    --radius: 18px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

body::selection {
    color: #071118;
    background: var(--primary-light);
}

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

button,
input {
    font: inherit;
}

.site-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(41, 126, 145, 0.18), transparent 32%),
        radial-gradient(circle at 85% 5%, rgba(216, 182, 108, 0.12), transparent 28%),
        linear-gradient(145deg, #061017, #0b1b25 48%, #071118);
}

.site-background::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(5, 15, 21, 0.82);
    backdrop-filter: blur(18px);
}

.header-content {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary-light);
    font-family: "Cinzel", serif;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(216, 182, 108, 0.16);
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-family: "Cinzel", serif;
    font-size: 17px;
}

.brand-text small {
    margin-top: 5px;
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.main-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation a {
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.main-navigation a:hover {
    color: var(--text);
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 1px;
    background: var(--primary);
    transition: right .2s ease;
}

.main-navigation a:hover::after {
    right: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #10130f;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 14px 30px rgba(216, 182, 108, 0.18);
}

.button-ghost {
    border-color: rgba(255,255,255,.12);
    color: var(--text-muted);
    background: rgba(255,255,255,.035);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: transparent;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.site-main {
    min-height: calc(100vh - 300px);
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(4, 13, 18, .78);
}

.footer-grid {
    padding-block: 60px 42px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
}

.footer-brand {
    margin-bottom: 15px;
    color: var(--primary-light);
    font-family: "Cinzel", serif;
    font-size: 23px;
}

.footer-grid p {
    max-width: 380px;
    color: var(--text-muted);
}

.footer-grid h3 {
    margin: 0 0 18px;
    font-family: "Cinzel", serif;
    font-size: 14px;
    color: var(--primary);
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid a {
    color: var(--text-muted);
    font-size: 14px;
}

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

.footer-bottom {
    padding-block: 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #738891;
    font-size: 12px;
}

.page-shell {
    min-height: 720px;
    padding-block: 100px;
}

.page-heading {
    max-width: 720px;
    margin-bottom: 45px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 12px 0 18px;
    font-family: "Cinzel", serif;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
}

.page-heading p {
    color: var(--text-muted);
    font-size: 18px;
}

.content-card {
    padding: 34px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

@media (max-width: 980px) {
    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        padding: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--surface-border);
        border-radius: 14px;
        background: #091820;
        box-shadow: var(--shadow);
    }

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

    .header-actions {
        display: none;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-text {
        display: none;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
