/* Праздничный «мультяшный 3D»: терракотово-красный фон, белая надпись,
   кремовые карточки, зелёные кнопки и золотые акценты. */
:root {
  color-scheme: light;
  --bg: #c8432f;
  --bg-hi: #dc5a42;
  --floor: #d6553d;
  --cream: #fff4e6;
  --cream-dark: #f2dcc3;
  --ink: #3a2018;
  --muted: #8a6a58;
  --line: #e6cbb1;
  --green: #3f7a3a;
  --green-dark: #2a5a29;
  --red: #d63a2f;
  --gold: #ffd36b;
  --white: #ffffff;
  --radius: 24px;
  --font-title: "Lobster", "Comic Sans MS", cursive;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--bg);
  background-image: radial-gradient(900px 520px at 78% 8%, var(--bg-hi), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap {
  max-width: 1040px; margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

/* Полупрозрачная плашка на красном фоне */
.board {
  background: rgba(255, 255, 255, .13);
  border: 2px solid rgba(255, 255, 255, .32);
  border-radius: 20px;
  color: var(--white);
}

/* Кремовая карточка */
.parch {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(120, 28, 16, .28), 0 18px 36px rgba(90, 20, 10, .22);
}
.panel { padding: 28px; }

/* Заголовок секции */
.plaque {
  margin: 0 0 18px; font-family: var(--font-title); font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; color: var(--white);
  text-shadow: 0 3px 0 rgba(120, 28, 16, .35);
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding: 56px 0 24px; }
.hero-text { min-width: 0; }
.eyebrow { margin: 0 0 8px; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0 0 18px; font-family: var(--font-title); font-weight: 400; font-size: clamp(3.4rem, 11vw, 6.2rem); line-height: .95; color: var(--white); transform: rotate(-4deg); transform-origin: left bottom; text-shadow: 0 5px 0 rgba(120, 28, 16, .35); }
h1 span { display: block; }
h1 span + span { margin-left: .6em; }
.lead { margin: 0 0 24px; max-width: 460px; font-size: 1.08rem; color: #ffeadd; }
.scene { width: 100%; max-width: 520px; height: auto; justify-self: center; filter: drop-shadow(0 12px 18px rgba(90, 20, 10, .3)); }

.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.facts .board { padding: 12px 14px; }
.facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; }

/* Кнопка */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; border: 0;
  font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--white);
  padding: 15px 34px; border-radius: 999px; background: var(--green);
  box-shadow: 0 6px 0 var(--green-dark), 0 12px 20px rgba(60, 20, 10, .3);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--green-dark), 0 14px 24px rgba(60, 20, 10, .3); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--green-dark); }
.btn:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.wide { width: 100%; }

/* Секции */
.section { max-width: 760px; margin: 0 auto; padding: 32px 0 8px; }
.note { margin: 0 0 16px; padding: 16px 18px; font-size: 1rem; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 10px 18px; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 12px 0; align-items: center; }
.steps li + li { border-top: 2px dashed rgba(255, 255, 255, .28); }
.steps li::before {
  content: counter(s); grid-row: span 2; align-self: center; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-title); font-size: 1.4rem;
  color: #7a2a14; background: radial-gradient(circle at 35% 30%, #fff0b8, var(--gold) 55%, #e0a93a);
  box-shadow: 0 3px 0 rgba(120, 28, 16, .3);
}
.steps b { font-size: 1.1rem; }
.steps span { color: #ffeadd; font-size: .98rem; }

.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rules li { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.rules i {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-family: var(--font-title); font-size: 1.2rem; color: var(--white);
  background: radial-gradient(circle at 35% 30%, #ff7a6e, var(--red) 60%, #a92a20);
}
.rules div { min-width: 0; }
.rules b { color: #a92a20; }

/* Форма */
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-family: var(--font-title); font-size: 1.5rem; line-height: 1.2; color: var(--green); }
.field { display: block; margin-bottom: 14px; font-weight: 700; font-size: .98rem; }
.field small { display: block; margin-top: 4px; font-weight: 400; font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #b59d8a; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(63, 122, 58, .2); }
.invalid { border-color: var(--red) !important; background: #fff1ee !important; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; user-select: none;
  background: var(--white); border: 2px solid var(--line); transition: all .12s;
}
.chips label:hover span { border-color: var(--green); }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 3px 0 var(--green-dark); }
.chips input:focus-visible + span { outline: 4px solid var(--gold); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.consent input {
  flex: none; appearance: none; width: 24px; height: 24px; margin: 1px 0 0; cursor: pointer;
  background: var(--white); border: 2px solid var(--line); border-radius: 7px; display: grid; place-items: center;
}
.consent input:checked { background: var(--green); border-color: var(--green); }
.consent input:checked::after { content: ""; width: 5px; height: 11px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.consent input:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }

.status { min-height: 1.5em; margin: 14px 0 0; text-align: center; font-weight: 700; }
.status.err { color: var(--red); }

.success { text-align: center; }
.success .face { width: 96px; height: auto; }
.success h3 { margin: 6px 0 6px; font-family: var(--font-title); font-weight: 400; font-size: 2.2rem; line-height: 1.1; color: var(--red); }
.success p { margin: 0; }

.footer { padding: 48px 0 56px; text-align: center; font-weight: 700; color: #ffeadd; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .scene { max-width: 400px; }
  .panel { padding: 20px; }
}
