:root {
    --warm-1: #7a3e00;
    --warm-2: #c96f00;
    --warm-3: #f0b35c;
    --sport-1: #0d5b44;
    --sport-2: #168f63;
    --cream: #fff8f0;
    --ink: #2d241b;
    --muted: #6f6253;
    --line: #e9dccd;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(201,111,0,0.12), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(22,143,99,0.12), transparent 45%),
        linear-gradient(150deg, #fffaf4 0%, #fff6eb 42%, #fffdf7 100%);
    font-family: "Montserrat", "Segoe UI", sans-serif;
}

.cover-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(120deg, #4b2500 0%, #8b4500 46%, #0d5b44 100%);
    color: #fff;
}

.cover-hero::before,
.cover-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.25;
}

.cover-hero::before {
    width: 380px;
    height: 380px;
    right: -120px;
    top: -120px;
    background: #f0b35c;
}

.cover-hero::after {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -120px;
    background: #37b77a;
}

.cover-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 52px 24px 42px;
    position: relative;
    z-index: 2;
}

.cover-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
}

.cover-title {
    margin: 10px 0 8px;
    font-family: "Bebas Neue", "Trebuchet MS", sans-serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: 0.03em;
}

.cover-subtitle {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
}

.cover-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-chip {
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
}

.top-actions {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.btn-proposal {
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-proposal:hover {
    transform: translateY(-1px);
}

.btn-back {
    color: #fff;
    background: linear-gradient(120deg, #0d5b44, #168f63);
    box-shadow: 0 8px 18px rgba(13,91,68,0.24);
}

.btn-print {
    color: #fff;
    background: linear-gradient(120deg, #7a3e00, #c96f00);
    box-shadow: 0 8px 18px rgba(122,62,0,0.24);
}

.page-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 42px;
}

.proposal-page {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(87,60,32,0.08);
    padding: 28px;
    position: relative;
    overflow: hidden;
    page-break-after: always;
}

.proposal-page:last-child {
    page-break-after: auto;
}

.proposal-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--warm-2), var(--warm-3), var(--sport-2));
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.page-number {
    background: #fff3e3;
    border: 1px solid #f5d1a5;
    color: #8b4a00;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    min-width: 76px;
    text-align: center;
}

.page-title {
    margin: 0;
    font-family: "Bebas Neue", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    font-size: clamp(28px, 3.4vw, 40px);
    color: #613101;
}

.page-subtitle {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.grid-2 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    border: 1px solid #ead8c1;
    background: linear-gradient(180deg, #fffdfa 0%, #fff8ef 100%);
    border-radius: 14px;
    padding: 14px;
}

.card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #5f2f00;
}

.card p,
.card li {
    margin: 0;
    color: #5d554c;
    font-size: 13px;
    line-height: 1.6;
}

.card ul {
    margin: 0;
    padding-left: 18px;
}

.highlight {
    background: #f2fff9;
    border-color: #c6e8da;
}

.highlight h4 {
    color: #0d5b44;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.kpi {
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #f1d4af;
    background: #fff9f1;
}

.kpi .num {
    font-size: 24px;
    font-weight: 800;
    color: #8b4500;
}

.kpi .lbl {
    font-size: 12px;
    color: #6f6253;
}

.form-illustration {
    border: 1px dashed #cdaf86;
    border-radius: 12px;
    background: #fffdf8;
    padding: 12px;
}

.form-illustration .form-title {
    font-weight: 700;
    color: #6a3500;
    margin-bottom: 8px;
    font-size: 13px;
}

.field-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
}

.field {
    border: 1px solid #e7d8c8;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.field .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8f7f6f;
}

.field .value {
    margin-top: 3px;
    font-size: 12px;
    color: #3a3028;
}

.pillar {
    border-left: 4px solid #d07d19;
    padding: 8px 10px;
    background: #fff6eb;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #5b4f42;
}

.timeline {
    position: relative;
    padding-left: 16px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8d1b5;
}

.step {
    position: relative;
    padding-left: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #5e5549;
}

.step::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d17a16;
}

.foot {
    margin-top: 12px;
    color: #7e7163;
    font-size: 12px;
}

@media (max-width: 980px) {
    .grid-2,
    .grid-3,
    .kpi-strip {
        grid-template-columns: 1fr;
    }
    .proposal-page {
        padding: 20px;
    }
}

@media print {
    body {
        background: #fff;
    }
    .top-actions,
    .cover-meta .meta-chip:last-child {
        display: none;
    }
    .cover-hero {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .proposal-page {
        box-shadow: none;
        margin-top: 8mm;
    }
}
