/* v21-reaction — «Реакция»: the plainest page; the only motion is the button's one flinch. */
:root {
  --ground: #eeeeea;
  --ground-2: #e3e4de;
  --ink: #1d1f24;
  --ink-soft: #5a5d66;
  --line: #c9cac3;
  --accent: #1f5f5b;
  --accent-deep: #164845;
  --accent-ink: #ffffff;
  --display: "Vollkorn", Georgia, serif;
  --text: "Geologica", system-ui, sans-serif;
  --measure: 65ch;
  --gutter: 1rem;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1rem; max-width: var(--measure); }
.muted { color: var(--ink-soft); }
.wrap { max-width: 44rem; margin-inline: auto; }
.hero, .section, .footer { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 48rem) { .hero, .section, .footer { padding-left: 2rem; padding-right: 2rem; } }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.3; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8vw, 5.25rem); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-top: 0; }
h3 { font-size: 1.35rem; }

/* hero */
.hero { padding-top: 3rem; padding-bottom: 2rem; }
@media (min-width: 48rem) { .hero { padding-top: 5rem; padding-bottom: 4rem; } }
/* on tall desktop screens, balance the hero in the first viewport instead of leaving a void beneath it */
@media (min-width: 64rem) and (min-height: 44rem) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
  .hero .wrap { width: 100%; }
}
.lede { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.4; max-width: 34ch; }
.support { color: var(--ink-soft); max-width: 48ch; }
/* facts: label/value pairs, two columns from tablet up */
.facts { margin: 1.75rem 0; padding: 0; border-top: 1px solid var(--line); max-width: var(--measure); display: grid; grid-template-columns: 1fr; column-gap: 2.5rem; }
.facts div { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.15rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd[hidden] { display: none; }
@media (min-width: 36rem) { .facts { grid-template-columns: 1fr 1fr; } }

.picker { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1.5rem 0 1.75rem; }
.picker__label { color: var(--ink-soft); margin-right: 0.25rem; }
.picker button {
  font: inherit; font-weight: 500; line-height: 1.4; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background 0.2s ease-out, color 0.2s ease-out;
}
.picker button:hover { background: var(--ground-2); }
.picker button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.btn {
  display: inline-block; font: inherit; font-weight: 600; line-height: 1.4; cursor: pointer;
  padding: 0.95rem 1.6rem; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; text-align: center;
  transition: background 0.2s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease-out;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px -6px rgba(31, 95, 91, 0.55); }
.btn--primary:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled, .btn--primary[data-loading] { background: var(--ink-soft); cursor: progress; box-shadow: none; }
.btn--primary[data-loading]::after { content: "…"; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ground-2); color: var(--ink); }
.cta-row { margin: 0 0 0.75rem; }
.cta { width: 100%; }
@media (min-width: 30rem) { .cta { width: auto; min-width: 18rem; } }

/* the one flinch */
.cta.is-flinching { transform: translateX(var(--flinch, 24px)); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
.cta.is-holding { background: var(--accent-deep); }
/* the invitation under the button: one wording for a pointer, one for touch */
.cta-invite { color: var(--ink-soft); font-size: 0.95rem; max-width: 40ch; margin: 0 0 1rem; }
.cta-invite[hidden] { display: none; }
.cta-invite__fine { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cta-invite__fine { display: inline; }
  .cta-invite__touch { display: none; }
}
/* the explanation, once the reaction has happened */
.cta-note {
  font-family: var(--display); font-size: 1.25rem; line-height: 1.4; color: var(--ink);
  max-width: 34ch; margin: 1.25rem 0 1rem; padding-top: 0.9rem;
  border-top: 2px solid var(--accent);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-note[hidden] { display: none; }
.cta-note.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .cta.is-flinching, .cta-note { transition: none; }
  .cta.is-flinching { transform: none; }
  .cta-note { opacity: 1; transform: none; }
}
.callback { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.2rem; }
.hero__link { margin-top: 0.5rem; }

/* sections */
.section { padding-top: 2.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .section { padding-top: 4.5rem; padding-bottom: 4.5rem; } }
.section--form { background: var(--ground-2); border-top: 0; }
.concepts { margin: 1.5rem 0 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.concepts div { display: grid; grid-template-columns: 1fr; gap: 0.15rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 36rem) { .concepts div { grid-template-columns: 12rem 1fr; } }
.concepts dt { font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.concepts dd { margin: 0; }
.steps { padding-left: 1.4rem; max-width: var(--measure); margin: 0 0 1.25rem; }
.steps li { padding: 0.3rem 0; padding-left: 0.3rem; }
.steps li::marker { font-weight: 600; color: var(--accent-deep); }

.people { display: grid; gap: 1.5rem; max-width: var(--measure); }
@media (min-width: 40rem) { .people { grid-template-columns: 12rem 1fr; } }
.photo {
  aspect-ratio: 4 / 5; border: 1px dashed var(--line); border-radius: 8px; background: #fbfaf7;
  display: grid; place-items: center; color: var(--ink-soft); padding: 1rem; text-align: center;
}
.person__name { font-family: var(--display); font-size: 1.35rem; font-weight: 500; margin-bottom: 0.5rem; }

/* form */
.note { display: inline-block; font-size: 0.93rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem 0.7rem; margin-bottom: 1.5rem; }
form { max-width: 36rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend, .field label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.95rem; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; cursor: pointer; line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--ink); background: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input { margin: 0; accent-color: var(--accent); }
.field { margin: 0 0 1.25rem; }
.field[hidden] { display: none; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  font: inherit; width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  caret-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: #66747a; }
input:focus-visible, textarea:focus-visible { border-color: var(--accent); }
.hint { font-size: 0.93rem; color: var(--ink-soft); margin: 0.5rem 0 0; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1.5rem; max-width: var(--measure); }
.consent input { margin: 0.3rem 0 0; accent-color: var(--accent); }
.done { max-width: 36rem; padding: 1.5rem; border: 1px solid var(--accent); border-radius: 8px; background: #fff; }
.done[hidden] { display: none; }

/* logistics + faq */
.faq { margin: 2rem 0 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.faq div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; }
.faq dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* countdown */
.countdown { text-align: left; }
.countdown__label { color: var(--ink-soft); margin-bottom: 0.5rem; }
.countdown__numbers { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin: 0 0 0.75rem; }
.countdown__numbers span { display: flex; flex-direction: column; line-height: 1.3; }
.countdown__numbers b { font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.3; font-variant-numeric: tabular-nums; }
.countdown__numbers small { font-size: 0.93rem; color: var(--ink-soft); }
.countdown__status { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.3; margin: 0 0 0.5rem; }
.countdown__live, .countdown__ended { display: none; }
[data-countdown][data-state="live"] .countdown__before, [data-countdown][data-state="ended"] .countdown__before { display: none; }
[data-countdown][data-state="live"] .countdown__live { display: block; }
[data-countdown][data-state="ended"] .countdown__ended { display: block; }
.countdown__date { font-weight: 500; margin: 0; }

/* footer */
.footer { padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.footer p { margin-bottom: 0.5rem; }
