/* v10-exercise — «Попробуйте сейчас»: a one-minute noticing exercise is the hero */

:root {
  --accent: #5b4b8a;
  --accent-deep: #45376d;
  --accent-soft: #e7e2f1;
  --ground: #f6f4fa;
  --surface: #ffffff;
  --ink: #221e33;
  --ink-soft: #5f5a72;
  --line: #d9d4e6;
  --measure: 66ch;
  --gutter: 1rem;
  --radius: 0.5rem;
  --ease: cubic-bezier(0.16, 1, 0.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(--ground);
  color: var(--ink);
  font-family: 'Commissioner', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-soft); }
a { color: var(--accent-deep); text-underline-offset: 0.2em; }
.text-link { display: inline-block; margin-top: 0.75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.hero { padding: 1.5rem 1rem 2rem; }
@media (min-width: 48rem) { .hero { padding: 3rem 2rem 3.5rem; } }
.hero__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-areas: "head" "exercise" "rest";
}
.offer-head { grid-area: head; }
.exercise { grid-area: exercise; }
.offer-rest { grid-area: rest; }

.lede { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); line-height: 1.35; max-width: 28ch; margin: 0.9rem 0 0.6rem; }
.lede-support { color: var(--ink-soft); max-width: 44ch; margin: 0; }

@media (min-width: 64rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head exercise" "rest exercise";
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
  }
  .exercise { align-self: center; }
}

/* the exercise */
.exercise {
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 64rem) { .exercise { border: 0; padding: 0; } }

.exercise__ask { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.9rem); line-height: 1.3; font-weight: 500; max-width: 22ch; margin: 0 0 1rem; }
.rings { display: flex; gap: clamp(0.75rem, 3vw, 1.5rem); margin: 0 0 1rem; }
.ring {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  width: clamp(4.25rem, 20vw, 8.5rem);
  aspect-ratio: 1;
  cursor: pointer;
  color: var(--accent);
  border-radius: 50%;
}
.ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring__stroke { fill: none; stroke: currentColor; stroke-width: 2.2; }
.ring__fill {
  fill: currentColor;
  transform-origin: 50% 50%;
  transform: scale(0);
  transition: transform 700ms var(--ease);
}
.ring:hover .ring__stroke { stroke-width: 3; }
.ring[aria-pressed="true"] .ring__fill { transform: scale(1); }
.ring:active .ring__fill { transition-duration: 200ms; }
@media (prefers-reduced-motion: reduce) { .ring__fill { transition: none; } }

.exercise__attention { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 0.75rem; }
.exercise__bridge { font-weight: 500; max-width: 34ch; margin: 0 0 0.5rem; }
.exercise__skip {
  appearance: none; background: none; border: 0; padding: 0.25rem 0;
  font: inherit; font-size: 0.95rem; color: var(--ink-soft); cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em;
}
.exercise__skip:hover { color: var(--ink); }

/* offer: subdued until the exercise is done or skipped, never hidden */
.offer-rest { transition: opacity 500ms var(--ease); }
.hero:not(.is-ready) .offer-rest { opacity: 0.78; }
@media (prefers-reduced-motion: reduce) { .offer-rest { transition: none; } }

.facts { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.facts li { position: relative; padding-left: 0.9rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--accent); }
.facts li:first-child { font-weight: 600; }

.picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.picker button {
  appearance: none; font: inherit; font-weight: 500; cursor: pointer;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent-deep);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.picker button:hover { background: var(--accent-soft); }
.picker button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* buttons */
.button {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.5rem; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.button--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(69, 55, 109, 0.6); }
.button--primary:hover { background: var(--accent-deep); box-shadow: 0 10px 22px -10px rgba(69, 55, 109, 0.7); }
.button--primary:active { transform: translateY(1px); }
.button--primary:disabled, .button--primary[data-loading] { background: var(--ink-soft); cursor: progress; box-shadow: none; }
.button--secondary { background: var(--surface); color: var(--accent-deep); border-color: var(--accent); }
.button--secondary:hover { background: var(--accent-soft); }
.hero .button--primary { width: 100%; text-align: center; }
@media (min-width: 40rem) { .hero .button--primary { width: auto; } }

/* ---------- sections ---------- */
.section { padding: 2.5rem 1rem; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.5rem 1rem; }
@media (min-width: 48rem) { .section, .section--tint { padding: 4rem 2rem; } }
.wrap { max-width: 72rem; margin: 0 auto; }

.concepts { margin: 1.5rem 0 0; padding: 0; max-width: 72rem; }
.concepts > div { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.5rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.concepts > div:last-child { border-bottom: 1px solid var(--line); }
.concepts dt { font-weight: 600; color: var(--accent-deep); }
.concepts dd { margin: 0; }
@media (max-width: 30rem) { .concepts > div { grid-template-columns: 1fr; gap: 0.2rem; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.25rem; max-width: var(--measure); }
.steps li { counter-increment: step; position: relative; padding: 0.4rem 0 0.4rem 2.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.35rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--accent);
  color: var(--accent-deep); font-weight: 600; font-size: 0.95rem; display: grid; place-items: center;
}

.people { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 48rem) { .people { grid-template-columns: 16rem 1fr; align-items: start; } }
.photo-frame {
  aspect-ratio: 4 / 5; max-width: 16rem; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--ground); display: grid; place-items: center; color: var(--ink-soft); padding: 1rem;
}
.people__name { font-weight: 600; font-size: 1.2rem; }

/* form */
.preview-note { display: inline-block; font-size: 0.95rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; margin-bottom: 1.5rem; }
.form { max-width: 36rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.form legend, .form label:not(.choice):not(.consent) { 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.55rem 0.9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); margin: 0; }
.field { margin: 0 0 1.25rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.75rem 0.9rem;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: #6f6a82; }
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: #a23b4a; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1.5rem; }
.consent input { accent-color: var(--accent); margin-top: 0.3rem; flex: none; }
.microcopy { font-size: 0.95rem; margin-top: 1rem; max-width: var(--measure); }
.done { max-width: 36rem; padding: 1.5rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.done h3 { margin-bottom: 0.75rem; }

/* logistics + faq */
.logistics { max-width: var(--measure); }
.faq { margin: 2rem 0 0; padding: 0; max-width: var(--measure); }
.faq > div { display: grid; grid-template-columns: 1fr; gap: 0.2rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; }
.faq dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 48rem) { .faq > div { grid-template-columns: 1fr 1fr; gap: 1rem; } }
/* countdown */
.countdown { text-align: center; }
.countdown__label { color: var(--ink-soft); margin-bottom: 0.5rem; }
.countdown__numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 1.75rem; margin: 0 auto 0.75rem; }
.countdown__numbers b { display: block; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.countdown__numbers small { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.25rem; }
.countdown__status { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.countdown__live, .countdown__ended { display: none; }
.countdown[data-state="live"] .countdown__before, .countdown[data-state="ended"] .countdown__before { display: none; }
.countdown[data-state="live"] .countdown__live { display: block; }
.countdown[data-state="ended"] .countdown__ended { display: block; }
.countdown__date { color: var(--ink); margin: 0; }

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

/* explicit leading on controls (after the font shorthands) */
.picker button, .button, .choice, .field input, .field textarea, .exercise__skip, .ring { line-height: 1.4; }
