:root {
    --ink: #07070b;
    --panel: #10131d;
    --panel-2: #15141d;
    --violet: #24182d;
    --gold: #d8ab55;
    --amber: #efc06d;
    --emerald: #2c8b71;
    --mist: #f7f0df;
    --muted: #b9b0c2;
    --line: rgba(247, 240, 223, 0.15);
    --wrap: min(1160px, calc(100vw - 36px));
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(7, 7, 11, 0.92), rgba(7, 7, 11, 0.96)),
        url("../images/wallpaper.jpg") center top / cover fixed;
    color: var(--mist);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

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

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px max(18px, calc((100vw - 1160px) / 2));
    background: rgba(7, 7, 11, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.main-nav,
.site-footer nav,
.hero__actions,
.hero__summary,
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero {
    min-height: clamp(380px, 42vw, 500px);
    display: grid;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(7, 7, 11, 0.9) 0%, rgba(7, 7, 11, 0.62) 42%, rgba(7, 7, 11, 0.18) 100%),
        linear-gradient(0deg, rgba(7, 7, 11, 0.72) 0%, rgba(7, 7, 11, 0) 42%),
        url("../images/hero.image.jpg") center / cover no-repeat;
}

.hero__inner {
    width: var(--wrap);
    margin: 0 auto;
    padding: clamp(58px, 8vw, 96px) 0 34px;
}

.hero__content {
    width: min(650px, 100%);
}

.eyebrow,
.feature-grid span {
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

.hero h1 {
    margin-top: 8px;
    color: var(--gold);
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
}

.hero__lead {
    width: min(590px, 100%);
    margin: 12px 0 22px;
    color: #fff8e8;
    font-size: clamp(1.15rem, 2.3vw, 1.8rem);
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid rgba(216, 171, 85, 0.54);
    color: #fff4dd;
    background: rgba(16, 19, 29, 0.72);
    font-weight: 700;
}

.button--primary {
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #1b1206;
}

.hero__summary {
    width: min(760px, 100%);
    margin-top: 28px;
}

.hero__summary span,
.category-list span {
    border: 1px solid var(--line);
    padding: 9px 13px;
    background: rgba(247, 240, 223, 0.06);
    color: #f6ead1;
}

.intro-band,
.split-band,
.legal-note,
.site-footer,
.page-hero,
.admin-main {
    width: var(--wrap);
    margin: 0 auto;
}

.intro-band {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
    gap: clamp(24px, 5vw, 68px);
    padding: clamp(38px, 6vw, 72px) 0;
}

.intro-band h2,
.split-band h2,
.page-hero h1,
.admin-main h1 {
    margin-top: 10px;
    color: #fff8e8;
    font-size: clamp(1.75rem, 3vw, 3rem);
}

.intro-band p,
.intro-band div,
.split-band p,
.split-band div,
.feature-grid p,
.feature-grid div,
.legal-note,
.page-hero p,
.admin-grid p {
    color: var(--muted);
}

.feature-grid {
    width: var(--wrap);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-grid article {
    min-height: 220px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(16, 19, 29, 0.92), rgba(36, 24, 45, 0.78));
}

.feature-grid h3 {
    margin-top: 10px;
    color: #fff8e8;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.split-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    padding: clamp(44px, 7vw, 88px) 0;
}

.category-list {
    align-content: start;
}

.legal-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0 clamp(42px, 6vw, 70px);
}

.legal-note > p,
.legal-note > div {
    margin: 0;
    padding: 18px;
    border-left: 2px solid rgba(216, 171, 85, 0.65);
    background: rgba(16, 19, 29, 0.6);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.site-footer span {
    display: block;
    color: var(--muted);
}

.page-hero {
    min-height: 58vh;
    display: grid;
    align-content: center;
    padding: clamp(48px, 7vw, 88px) 0;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: #0d101d;
    border-right: 1px solid var(--line);
}

.admin-sidebar strong {
    color: var(--gold);
    margin-bottom: 12px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.admin-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    background: rgba(247, 240, 223, 0.04);
}

.admin-grid span {
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-grid strong {
    display: block;
    margin-top: 6px;
    color: #fff8e8;
    font-size: 1.35rem;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 96px 20px 64px;
    background:
        linear-gradient(135deg, rgba(7, 7, 11, 0.92), rgba(16, 19, 29, 0.74)),
        url("../images/hero.image.jpg") center / cover no-repeat;
}

.auth-form {
    width: min(430px, 100%);
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(7, 7, 11, 0.86);
    backdrop-filter: blur(16px);
}

.auth-form h1 {
    color: var(--gold);
    font-size: 2.4rem;
}

.auth-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    background: rgba(247, 240, 223, 0.08);
    color: var(--mist);
    padding: 10px 12px;
    font: inherit;
}

.form-error {
    margin: 0;
    color: #ffd0c7;
}

.form-success {
    margin: 18px 0 0;
    color: #d7ffe8;
}

.admin-logout {
    margin-top: 20px;
}

.admin-lead {
    max-width: 780px;
    color: var(--muted);
}

.seo-editor-list,
.content-editor {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.seo-editor {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    background: rgba(247, 240, 223, 0.04);
}

.seo-editor__head,
.seo-editor__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.seo-editor__head strong {
    color: #fff8e8;
    font-size: 1.2rem;
}

.seo-editor__head span {
    color: var(--amber);
    font-weight: 800;
}

.seo-editor label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.seo-editor input,
.seo-editor textarea,
.content-editor input,
.content-editor textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(7, 7, 11, 0.45);
    color: var(--mist);
    padding: 10px 12px;
    font: inherit;
}

.content-editor__field {
    display: grid;
    gap: 7px;
}

.content-editor__field span {
    color: var(--mist);
    font-weight: 800;
}

.content-editor__field small {
    display: block;
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 860px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: 430px;
        background-position: 60% center;
    }

    .intro-band,
    .feature-grid,
    .split-band,
    .legal-note,
    .admin-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        min-height: auto;
    }
}
