:root {
    --red: #b4232d;
    --red-dark: #7d1620;
    --ink: #17212b;
    --muted: #667085;
    --line: #e6e9ed;
    --paper: #ffffff;
    --wash: #f6f8fa;
    --success: #147d64;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
.container { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }
.topbar { background: var(--red-dark); height: 6px; }
.nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--red); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 650; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--red); }
.hero { padding: 76px 0 66px; background: linear-gradient(120deg, #fff 0%, #fff 58%, #f8e9eb 58%, #f1d8db 100%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { margin: 12px 0 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
.hero p { max-width: 650px; color: var(--muted); font-size: 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { border: 0; border-radius: 9px; padding: 13px 20px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: white; border: 1px solid var(--line); }
.hero-card { padding: 28px; border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 16px 44px rgba(66,19,24,.12); }
.hero-stat { padding: 15px 0; border-bottom: 1px solid var(--line); }
.hero-stat:last-child { border: 0; }
.hero-stat strong { display: block; font-size: 20px; }
.hero-stat span { color: var(--muted); font-size: 14px; }
.section { padding: 64px 0; }
.section-title { max-width: 620px; margin-bottom: 28px; }
.section-title h2 { font-size: 32px; margin: 6px 0 8px; letter-spacing: -.025em; }
.section-title p { color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card-number { color: var(--red); font-weight: 850; font-size: 13px; }
.card h3 { margin: 10px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.page { padding: 54px 0 80px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 40px; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 680px; }
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 700; }
input, select, textarea {
    width: 100%; border: 1px solid #cfd4dc; background: white; border-radius: 8px;
    padding: 11px 12px; font: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(180,35,45,.12); border-color: var(--red); }
textarea { resize: vertical; min-height: 108px; }
.error { color: #b42318; font-size: 13px; }
.alert { border-radius: 9px; padding: 13px 15px; margin-bottom: 22px; }
.alert-error { background: #fff0f0; color: #921c1c; border: 1px solid #facccc; }
.alert-success { background: #ecfdf7; color: #08674f; border: 1px solid #b9ebda; }
.side-note h3 { margin-top: 0; }
.side-note ul { padding-left: 20px; color: var(--muted); }
.schedule-groups { display: grid; gap: 12px; }
.schedule-group { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.schedule-group strong { display: block; margin-bottom: 8px; }
.schedule-option { display: flex; gap: 9px; align-items: flex-start; padding: 9px; border-radius: 7px; font-size: 14px; }
.schedule-option:hover { background: var(--wash); }
.schedule-option input { width: auto; margin-top: 4px; }
.ticket { max-width: 650px; margin-inline: auto; text-align: center; }
.ticket .check { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); margin: 0 auto 18px; font-size: 32px; }
.ticket-number { margin: 24px 0; padding: 22px; background: var(--wash); border: 1px dashed #aeb6c1; border-radius: 10px; }
.ticket-number span { color: var(--muted); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.ticket-number strong { font-size: 34px; letter-spacing: .08em; }
.details { text-align: left; display: grid; gap: 10px; margin: 22px 0; }
.detail { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail span { color: var(--muted); }
footer { background: #171b21; color: #c8ced7; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 800px) {
    .hero-grid, .form-shell { grid-template-columns: 1fr; }
    .hero { background: linear-gradient(180deg, #fff 0%, #fff 72%, #f5e3e5 72%); }
    .cards { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .panel { padding: 20px; }
    .footer-inner { flex-direction: column; }
}
