:root {
    --paper: #f7f4ee;
    --paper-strong: #fffdf8;
    --ink: #111210;
    --muted: #5c6058;
    --line: #d9d2c4;
    --gold: #b08d57;
    --wine: #8a1538;
    --sage: #dfe7dd;
    --stone: #e6e9ed;
    --charcoal: #181a18;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
}

.font-serif { font-family: "Noto Serif SC", serif; }

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.page-hero {
    padding: 96px 0 76px;
    border-bottom: 1px solid var(--line);
}

.section {
    padding: 92px 0;
}

.label {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    color: var(--wine);
    background: rgba(255, 253, 248, 0.78);
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.page-title {
    max-width: 880px;
    margin: 18px 0 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.02;
    font-weight: 900;
}

.lede {
    max-width: 720px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 44px;
}

.section-head h2 {
    margin: 18px 0 0;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.08;
    font-weight: 900;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 6px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
    background: var(--wine);
    color: #fff;
    border: 1px solid var(--wine);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 48px;
    align-items: start;
}

.panel {
    border: 1px solid var(--line);
    background: var(--paper-strong);
    padding: 32px;
    border-radius: 8px;
}

.dark-band {
    background: var(--charcoal);
    color: #fff;
}

.dark-band .section-head p,
.dark-band .muted {
    color: rgba(255,255,255,0.72);
}

.dark-band .label {
    background: transparent;
    border-color: rgba(255,255,255,0.22);
    color: #d2b477;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    border: 1px solid var(--line);
    background: var(--paper-strong);
    padding: 28px;
    border-radius: 8px;
}

.card strong,
.metric strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.card h3 {
    margin: 16px 0 0;
    font-size: 24px;
    font-weight: 900;
}

.card p,
.metric p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.76;
}

.rule-list {
    border: 1px solid var(--line);
    background: var(--paper-strong);
}

.rule-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 28px;
    padding: 28px;
    border-bottom: 1px solid var(--line);
}

.rule-row:last-child { border-bottom: 0; }

.rule-row small {
    color: var(--wine);
    font-weight: 900;
}

.rule-row h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.rule-row p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

input, select, textarea {
    width: 100%;
    border: 1px solid #c7c0b4;
    border-radius: 6px;
    background: #fbf8f0;
    color: var(--ink);
    padding: 14px;
    font-size: 15px;
    outline: none;
}

textarea { min-height: 116px; resize: vertical; }

input:focus, select:focus, textarea:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.12);
}

.fine-print {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1024px) {
    .page-hero { padding: 76px 0 58px; }
    .section { padding: 72px 0; }
    .section-head,
    .split {
        grid-template-columns: 1fr;
    }
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 28px, 1180px); }
    .page-title { font-size: 42px; }
    .section-head h2 { font-size: 34px; }
    .panel,
    .card,
    .rule-row { padding: 22px; }
    .rule-row,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .btn { width: 100%; }
}
