:root {
  --red: #ee2724;
  --red-dark: #c3151a;
  --ink: #212121;
  --text: #3f3f3f;
  --muted: #686868;
  --line: #d5d5d5;
  --soft: #f5f5f5;
  --soft-red: #fff1ef;
  --white: #fff;
  --blue: #006a9f;
  --green: #177245;
  --danger: #b42318;
  --max: 1240px;
  --shadow: 0 18px 45px rgba(24, 24, 24, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.ui-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 76px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: white; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.45rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; line-height: 1.2; }
.lead { max-width: 740px; color: var(--muted); font-size: 1.2rem; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--red);
  font-size: 1.25rem;
  font-weight: 900;
}
.brand-name { font-size: 1.45rem; }
.brand-sub { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { position: relative; text-decoration: none; font-weight: 700; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 3px;
  background: var(--red);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn { display: none; border: 0; background: transparent; padding: 9px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 21px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: white; }
.btn-dark { background: var(--ink); color: white; }
.btn-link { padding-inline: 0; color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.07fr .93fr; min-height: 660px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 7vw 72px max(20px, calc((100vw - var(--max))/2)); }
.hero-copy p { max-width: 680px; font-size: 1.23rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 25px; }
.hero-art {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(33,33,33,.12), rgba(33,33,33,.64)),
    linear-gradient(120deg, #e9e9e9 0 17%, transparent 17% 22%, #c7c7c7 22% 48%, #858585 48% 67%, #313131 67%);
}
.hero-art::before, .hero-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.58); }
.hero-art::before { inset: 10% 13% 12% 18%; transform: skewY(-8deg); }
.hero-art::after { width: 42%; height: 74%; right: 10%; top: 7%; background: rgba(238,39,36,.85); mix-blend-mode: multiply; }
.hero-caption { position: absolute; left: 34px; right: 34px; bottom: 30px; z-index: 2; display: flex; justify-content: space-between; color: white; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.card { border: 1px solid var(--line); background: white; padding: 28px; }
.card-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; background: var(--soft-red); color: var(--red); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--red); font-weight: 800; text-decoration: none; }

.prize-card { position: relative; min-height: 410px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); color: white; }
.prize-card.featured { grid-column: span 2; }
.prize-visual { position: absolute; inset: 0; opacity: .62; background: linear-gradient(145deg, transparent 0 25%, rgba(238,39,36,.9) 25% 45%, transparent 45%), repeating-linear-gradient(90deg, #555 0 2px, #222 2px 14px); }
.prize-card:nth-child(2) .prize-visual { background: linear-gradient(30deg, #222 0 45%, #777 45% 65%, #ee2724 65%); }
.prize-card:nth-child(3) .prize-visual { background: linear-gradient(140deg, #d8d8d8 0 30%, #414141 30% 72%, #ee2724 72%); }
.prize-content { position: absolute; inset: auto 0 0; z-index: 2; padding: 28px; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.prize-rank { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border: 2px solid white; font-size: 1.6rem; font-weight: 900; }
.prize-card.featured .prize-rank { background: var(--red); border-color: var(--red); }

.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 78px; }
.step-card::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; left: 24px; color: var(--red); font-size: 2rem; font-weight: 900; }
.step-visual { height: 120px; margin: -28px -28px 24px; background: var(--soft); display: grid; place-items: center; color: var(--red); }
.step-visual .ui-icon { font-size: 48px; }

.resource-card { display: flex; min-height: 180px; padding: 0; overflow: hidden; text-decoration: none; }
.resource-copy { flex: 1; padding: 25px; }
.resource-art { width: 38%; background: repeating-linear-gradient(45deg,#1f1f1f 0 10px,#333 10px 20px); position: relative; }
.resource-art::after { content: ""; position: absolute; inset: 22%; border: 2px solid var(--red); transform: rotate(8deg); }

.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 42px; background: var(--red); color: white; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin-bottom: 0; color: rgba(255,255,255,.84); }
.cta-band .btn { background: white; color: var(--ink); }

.site-footer { background: var(--ink); color: white; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 50px; padding: 56px 0 38px; }
.footer-brand { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-links h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { display: block; margin: 9px 0; color: #d5d5d5; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid #4b4b4b; color: #bbb; font-size: .9rem; }

.page-hero { padding: 64px 0 38px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg,var(--soft) 0 63%, var(--soft-red) 63%); }
.page-hero h1 { font-size: clamp(2.7rem,5vw,4.7rem); }

.rules-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 64px; align-items: start; }
.rules-toc { position: sticky; top: 105px; border: 1px solid var(--line); background: white; }
.rules-toc h3 { padding: 20px; margin: 0; background: var(--soft); }
.rules-toc a { display: block; padding: 13px 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.rules-toc a.active { border-left: 4px solid var(--red); color: var(--ink); font-weight: 800; }
.rules-content section { scroll-margin-top: 110px; padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.rules-content h2 { font-size: 2rem; }
.rules-mobile { display: none; margin-bottom: 24px; border: 1px solid var(--line); }
.rules-mobile summary { padding: 16px; font-weight: 800; cursor: pointer; }
.rules-mobile a { display: block; padding: 10px 16px; border-top: 1px solid var(--line); text-decoration: none; }

.wizard-header .header-inner { min-height: 72px; }
.wizard-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); min-height: calc(100vh - 72px); }
.wizard-side { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--soft); }
.wizard-side-head { padding: 28px 24px 18px; }
.wizard-side-head strong { display: block; color: var(--red); font-size: 1.15rem; }
.wizard-steps { flex: 1; }
.wizard-step-link { display: flex; gap: 11px; align-items: center; width: 100%; padding: 15px 24px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.wizard-step-link.active { background: var(--red); color: white; }
.wizard-step-link.completed .material-symbols-outlined { color: var(--green); }
.wizard-step-link.active.completed .material-symbols-outlined { color: white; }
.wizard-save { padding: 20px 24px; border-top: 1px solid var(--line); }
.wizard-main { min-width: 0; padding: 0 40px 130px; }
.progress-wrap { position: sticky; top: 72px; z-index: 30; padding-top: 18px; background: white; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .83rem; font-weight: 800; }
.progress-bar { height: 8px; background: var(--soft); overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); transition: width .35s ease; }
.wizard-content { width: min(900px,100%); margin: 0 auto; padding-top: 44px; }
.wizard-content h1 { font-size: clamp(2.25rem,5vw,3.6rem); }
.form-section { margin: 30px 0; border: 1px solid var(--line); background: white; }
.form-section-title { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: .85rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; padding: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: white;
  padding: 12px 13px;
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border: 2px solid var(--ink); padding: 11px 12px; }
.field .error-text { display: none; color: var(--danger); font-size: .8rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-text { display: block; }
.help { color: var(--muted); font-size: .85rem; }

.info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.info-panel { padding: 30px; border: 2px solid var(--ink); }
.time-panel { display: grid; place-items: center; padding: 30px; background: var(--ink); color: white; text-align: center; }
.time-panel strong { display: block; font-size: 2.5rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 9px; margin: 10px 0; }
.check-list .ui-icon { color: var(--red); }

.upload-card { padding: 24px; border: 1px solid var(--line); background: white; }
.upload-zone { position: relative; display: grid; place-items: center; min-height: 170px; padding: 24px; border: 2px dashed #aaa; background: var(--soft); text-align: center; transition: .2s; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--red); background: var(--soft-red); }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-list { display: grid; gap: 10px; margin-top: 14px; }
.upload-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); }
.upload-item button { border: 0; background: transparent; color: var(--danger); }

.checkbox-row { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checkbox-row input { width: 21px; height: 21px; margin-top: 3px; accent-color: var(--red); }
.checkbox-row label { flex: 1; }

.review-card { margin-bottom: 18px; border: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--soft); }
.review-body { padding: 20px; }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 24px; }
.review-item span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.review-item strong { display: block; margin-top: 3px; }

.wizard-actions {
  position: fixed;
  left: 270px;
  right: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}
.wizard-actions-inner { width: min(980px,calc(100% - 48px)); min-height: 86px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.exit-link { color: var(--muted); font-size: .9rem; }

.success { text-align: center; padding: 74px 20px; }
.success-icon { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 50%; background: var(--green); color: white; }
.success-icon .ui-icon { font-size: 48px; }
.reference { display: inline-block; margin: 20px 0; padding: 13px 18px; background: var(--soft); font-weight: 900; letter-spacing: .08em; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: 350px; padding: 14px 18px; background: var(--ink); color: white; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 18px 20px 24px; border-bottom: 1px solid var(--line); background: white; }
  .main-nav.open { display: flex; }
  .main-nav a.active::after { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 20px; }
  .hero-art { min-height: 390px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .rules-layout { grid-template-columns: 1fr; gap: 0; }
  .rules-toc { display: none; }
  .rules-mobile { display: block; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .wizard-side-head, .wizard-save { display: none; }
  .wizard-steps { display: flex; overflow-x: auto; }
  .wizard-step-link { min-width: max-content; padding: 12px 16px; }
  .wizard-main { padding: 0 20px 120px; }
  .wizard-actions { left: 0; }
  .progress-wrap { top: 72px; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4, .stats, .footer-top, .footer-links, .form-grid, .info-grid, .review-grid { grid-template-columns: 1fr; }
  .prize-card.featured { grid-column: span 1; }
  .stats .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats .stat:last-child { border-bottom: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .footer-bottom { flex-direction: column; }
  .page-hero { background: var(--soft); }
  .form-grid { padding: 18px; }
  .wizard-actions-inner { width: calc(100% - 24px); min-height: 76px; }
  .wizard-actions .btn { padding: 10px 14px; min-height: 44px; }
  .exit-link { display: none; }
}
