/* v5-standard — the category standard, done well */
:root {
  --bg: #F1F3F1;
  --surface: #FFFFFF;
  --tint: #E6EAE7;
  --ink: #1E2A2F;
  --ink-2: #4F5F65;
  --line: #D3D9D5;
  --accent: #2E6B70;
  --accent-ink: #245659;
  --accent-soft: #E1ECEC;
  --sky-1: #E3ECF1;
  --sky-2: #F3E5D9;
  --measure: 68ch;
  --radius: 12px;
  --font-display: 'Alegreya', Georgia, 'Times New Roman', serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.15; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: .5rem; }

p { margin: 0 0 1rem; }
.prose { max-width: var(--measure); }
.muted { color: var(--ink-2); }
.placeholder { color: var(--ink-2); }
.optional { color: var(--ink-2); font-weight: 400; }

.wrap { max-width: 72rem; margin-inline: auto; }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(5.5rem, 13vw, 9.5rem) clamp(16px, 5vw, 48px) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 25% 0%, var(--sky-1) 0%, transparent 70%),
    radial-gradient(80% 55% at 78% 8%, var(--sky-2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-inner > * { animation: rise .9s var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: .06s; }
.hero-inner > :nth-child(3) { animation-delay: .12s; }
.hero-inner > :nth-child(4) { animation-delay: .18s; }
.hero-inner > :nth-child(5) { animation-delay: .24s; }
.hero-inner > :nth-child(6) { animation-delay: .3s; }
@keyframes rise { from { opacity: .55; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-inner > * { animation: none; } }

.facts {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 0;
  font-size: .9375rem;
  color: var(--ink-2);
}
.facts li { padding: 0 .85rem; border-left: 1px solid var(--line); line-height: 1.35; }
.facts li:first-child { border-left: 0; color: var(--accent-ink); font-weight: 500; }
.facts li span[hidden] { display: none; }

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1.02;
  margin: 0 auto .9rem;
  max-width: 14ch;
}
.lede {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  margin: 0 auto .75rem;
}
.support { color: var(--ink-2); max-width: 44ch; margin: 0 auto 2rem; }

.picker {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.picker button {
  font: 500 .9375rem/1 var(--font-body);
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.15rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.picker button:hover { color: var(--ink); }
.picker button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.picker button:focus-visible { outline-offset: 1px; }

.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 0; }
.link-quiet { color: var(--ink-2); font-size: .9375rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  font: 600 1.0625rem/1 var(--font-body);
  text-decoration: none;
  border-radius: 999px;
  padding: 1.05rem 1.85rem;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(36, 86, 89, .55);
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(36, 86, 89, .6); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .65; cursor: default; transform: none; }
.btn[data-loading] .btn-text { visibility: hidden; }
.btn[data-loading]::after { content: 'Отправляем…'; position: absolute; inset: 0; display: grid; place-items: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.75rem, 8vw, 6.5rem) clamp(16px, 5vw, 48px); }
.section-tint { background: var(--tint); }

.concepts { display: grid; gap: 1.75rem; margin: 2.5rem 0 0; }
.concept { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.concept dt { font: 500 1.55rem/1.2 var(--font-display); margin-bottom: .35rem; }
.concept dd { margin: 0; color: var(--ink-2); max-width: 32ch; }
@media (min-width: 48rem) {
  .concepts { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.steps { list-style: none; margin: 1.75rem 0 1.5rem; padding: 0; max-width: var(--measure); display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; align-items: baseline; }
.step-n {
  font: 500 1.4rem/2.25rem var(--font-display);
  color: var(--accent-ink);
  width: 2.25rem; height: 2.25rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.reassure { margin-bottom: 1.5rem; }

.people { display: grid; gap: 1.75rem; align-items: start; margin-top: 1.5rem; }
.photo {
  aspect-ratio: 4 / 5;
  max-width: 18rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--accent-ink);
  font-size: .9375rem;
}
.person-name { font: 500 1.4rem/1.3 var(--font-display); margin-bottom: .5rem; }
@media (min-width: 48rem) {
  .people { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3rem; }
}

/* ---------- Form ---------- */
.form-panel {
  background: var(--surface);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 40rem;
  margin-top: 1.75rem;
  box-shadow: 0 28px 48px -36px rgba(30, 42, 47, .45);
}
.field { margin: 0 0 1.4rem; padding: 0; border: 0; min-width: 0; }
.field legend, .field > label { display: block; font-weight: 500; margin-bottom: .55rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #66747A; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: .6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9375rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.choice:hover span { border-color: var(--ink-2); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-check { margin-top: 1.6rem; }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; font-size: .9375rem; line-height: 1.5; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--accent); }

.microcopy { font-size: .875rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1.5rem; }
.btn-submit { width: 100%; text-align: center; }
.preview-note { font-size: .8125rem; color: var(--ink-2); text-align: center; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }

.done {
  max-width: 40rem;
  margin-top: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
  background: var(--accent-soft);
}
.done h3 { margin-bottom: 1rem; }
.done p:last-child { margin-bottom: 0; }

/* ---------- Where / FAQ ---------- */
.where { margin-top: 1.5rem; }
.where h3 { margin-bottom: .6rem; }
.faq-title { margin-top: 3rem; margin-bottom: .75rem; }
.faq { max-width: var(--measure); border-top: 1px solid var(--line); padding-top: .5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--ink-2); transition: transform .25s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { margin: -.25rem 0 1.1rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Countdown ---------- */
.countdown { text-align: center; }
.cd-label { color: var(--ink-2); margin-bottom: 1.25rem; }
.cd-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem clamp(1.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.cd-grid > div { display: grid; min-width: 4.5rem; }
.cd-num { font: 500 clamp(2.5rem, 6vw, 4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cd-word { font-size: .875rem; color: var(--ink-2); margin-top: .4rem; }
.cd-status { font: 500 clamp(1.6rem, 3vw, 2.25rem)/1.2 var(--font-display); margin-bottom: 1rem; }
.cd-date { color: var(--ink-2); margin: 0; }
.countdown .cd-live, .countdown .cd-ended { display: none; }
.countdown[data-state="live"] .cd-before, .countdown[data-state="ended"] .cd-before { display: none; }
.countdown[data-state="live"] .cd-live { display: block; }
.countdown[data-state="ended"] .cd-ended { display: block; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.25rem clamp(16px, 5vw, 48px) 3rem; font-size: .9375rem; color: var(--ink-2); }
.footer p { margin-bottom: .5rem; }
.footer p:last-child { margin-bottom: 0; }
