/* Лендинг вебинара 12.09 — версия v1 (визуально как Framer, с правками).
   Палитра и шрифт сняты с webinar-parents.framer.ai. Mobile-first. */

:root {
  /* ============ РАЗМЕРЫ И РИТМ — ТЕЛЕФОН ============
     Каждое значение правится независимо от десктопа: десктопный набор — ниже,
     в блоке @media (min-width: 1000px). Одна строка = один размер на одном типе экрана. */
  --h1-size: 2.1rem;        /* главный заголовок */
  --h1-lh: 1.08;
  --h2-size: 1.7rem;        /* заголовки секций */
  --h2-lh: 1.12;
  --lead-size: 1.1rem;      /* подзаголовок под H1 */
  --lead-lh: 1.42;
  --meta-size: 0.95rem;     /* служебная строка (дата, «для родителей 12–16») */
  --body-size: 17px;        /* базовый текст страницы */
  --list-size: 1.05rem;     /* пункты «для кого» и «что вынесете» */
  --list-lh: 1.42;
  --final-size: 1.75rem;    /* финальная фраза кампании */
  --final-sub-size: 1.15rem;
  --btn-size: 1rem;         /* кнопки */
  --btn-pad: 0.85rem 1.6rem;
  --sec-pad: 40px;          /* вертикальный отступ секций */
  --text-max: 680px;        /* ширина текстовой колонки hero */

  --ink: #25282b;
  --ink-2: #52575c;
  --muted: #a0a4a8;
  --line: #cacccf;
  --brand: #b51259;
  --brand-2: #d94a88;
  --brand-3: #f29bc1;
  --sky: #d6e3ef;
  --sky-2: #e8f1f7;
  --sky-3: #9bb3d5;
  --paper: #ffffff;
  --dark: #25282b;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1280px;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 24px;
  --sticky-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.has-sticky { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- типографика ---------- */
.h2 {
  margin: 0 0 1rem;
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: var(--h2-lh);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.h2--center { text-align: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block;
  padding: var(--btn-pad);
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: var(--btn-size);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #9e0f4e; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--block { display: block; width: 100%; }

/* ---------- шапка ---------- */
.top { padding: 14px 0; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top__brand { font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.top__nav { display: none; }

/* ---------- hero ---------- */
.hero { padding: 18px 0 8px; text-align: center; }
.hero__title {
  margin: 0 0 0.8rem;
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: var(--h1-lh);
  letter-spacing: -0.015em;
  color: var(--brand);
  text-wrap: balance;
}
.hero__lead {
  margin: 0 auto 0.9rem;
  max-width: var(--text-max);
  font-size: var(--lead-size);
  line-height: var(--lead-lh);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__meta {
  margin: 0 auto 1.1rem;
  font-size: var(--meta-size);
  font-weight: 600;
  color: var(--ink);
}
.hero__meta .dot { color: var(--brand-2); padding: 0 .2em; }
.hero__cta { margin: 0 0 1.4rem; }
.hero__cta .btn { min-width: 240px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; object-fit: cover; border-radius: var(--radius); }  /* cover: при смене высоты блока фото кадрируется, не растягивается (бриф) */
.datebadge {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(232, 241, 247, .94);
  backdrop-filter: blur(4px);
  color: var(--ink);
  text-align: left;
}
.datebadge strong { font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.datebadge span { font-size: 0.75rem; color: var(--ink-2); }

/* ---------- 100 мест ---------- */
.seats {
  margin: 16px auto 0;
  font-size: 0.85rem;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- для кого ---------- */
.who { padding: var(--sec-pad) 0 calc(var(--sec-pad) * .6); }
.who__grid { display: grid; gap: 24px; }
.pains { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.pains li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: var(--list-size);
  line-height: var(--list-lh);
  border-top: 1px solid var(--line);
}
.pains li:last-child { border-bottom: 1px solid var(--line); }
.pains li::before { content: ''; position: absolute; left: 0; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.who__cta { margin: 1.4rem 0 0; }
.who__media img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.pains { margin-bottom: 0; }

/* ---------- что вынесете ---------- */
.learn { padding: calc(var(--sec-pad) * .6) 0 var(--sec-pad); }
.learn__grid { display: grid; gap: 24px; }
/* телефон: сначала пункты, потом фото, под фото — итоговая строка (просьба команды) */
.learn__grid .takeaways { order: 1; }
.learn__grid .learn__media { order: 2; }
.learn__grid .learn__key { order: 3; }
.learn__key {
  margin: 0;
  font-size: var(--list-size);
  line-height: var(--list-lh);
  font-weight: 700;
  color: var(--brand);
}
.learn__media img { width: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 719px) {
  /* на телефоне — во всю ширину экрана: схема отчёта на ноутбуке должна читаться (просьба команды) */
  .learn__media { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .learn__media img { border-radius: 0; }
}
.takeaways { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.takeaways li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--list-size);
  font-weight: 500;
  line-height: var(--list-lh);
}
.takeaways li { display: flex; align-items: baseline; }
.takeaways .n { flex: 0 0 2.1em; font-weight: 800; color: var(--brand-2); }
.takeaways li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- спикер ---------- */
.speaker { padding: calc(var(--sec-pad) * .6) 0 var(--sec-pad); }
.speaker__card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sky);
}
.speaker__quote { margin: 0; padding: 28px 22px 26px; font-size: 1rem; line-height: 1.5; }
.speaker__quote::before { content: '\201C'; display: block; font-size: 3rem; font-weight: 800; line-height: .6; color: var(--sky-3); margin-bottom: .8rem; }
.speaker__quote p { margin: 0 0 .8rem; }
.speaker__quote footer { margin-top: 1.2rem; display: flex; flex-direction: column; }
.speaker__quote footer strong { font-size: 1.1rem; font-weight: 700; }
.speaker__quote footer span { font-size: 0.85rem; color: var(--ink-2); }
.speaker__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; aspect-ratio: 1 / 1; }

/* ---------- финал ---------- */
.final { padding: var(--sec-pad) 0; text-align: center; background: var(--sky-2); }
.final__title {
  margin: 0 auto .9rem;
  max-width: 900px;
  font-size: var(--final-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--brand);
  text-wrap: balance;
}
.final__sub { margin: 0; font-size: var(--final-sub-size); font-weight: 600; }
.final__cta { margin: 0; font-size: 1.05rem; color: var(--ink-2); }

/* ---------- форма ---------- */
.register { padding: var(--sec-pad) 0 calc(var(--sec-pad) * 1.3); background: var(--dark); color: #fff; }
.register__title { margin-bottom: .4rem; }
.register__when { margin: 0 0 1.6rem; text-align: center; color: #c9cdd1; font-weight: 500; }
.form { max-width: 440px; margin: 0 auto; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: #c9cdd1; }
.field input {
  display: block; width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #3a3e42;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}
.field input::placeholder { color: #a9adb1; }
.field input:focus { outline: 3px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand-2); }
.field input[aria-invalid="true"] { border-color: var(--brand-3); outline: 2px solid var(--brand-3); }
.hint { margin: .35rem 0 0; font-size: .8rem; color: #c9cdd1; }
.nope { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 0 0 1rem; }
.form__error {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  background: #fff0f5;
  color: #8a0c44;
  font-size: .95rem;
}
.form__note { margin: 1rem 0 0; text-align: center; font-size: .9rem; color: #e2e5e8; }
.form__legal { margin: .6rem 0 0; text-align: center; font-size: .75rem; color: #9aa0a6; }
.form__legal a { color: #c9cdd1; }

/* ---------- подвал ---------- */
.foot { padding: 32px 0 36px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.social a {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.foot__line { margin: 0; text-align: center; font-size: .8rem; color: var(--ink-2); }

/* ---------- липкая кнопка (телефон) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.sticky[hidden] { display: none; }
.sticky .btn { font-size: .95rem; padding: .9rem 1rem; }

/* ---------- десктоп ---------- */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .who__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-items: stretch; gap: 0 48px; }
  .who__text { grid-column: 1; grid-row: 1; }
  .who__cta { grid-column: 1; grid-row: 2; margin-top: 1.6rem; }
  .who__media { grid-column: 2; grid-row: 1; }
  .who__media img { height: 100%; object-fit: cover; object-position: 50% 30%; }  /* смысловой центр — головы и лист, режем снизу */
  .learn__grid { grid-template-columns: minmax(0, 460px) 1fr; align-items: start; gap: 16px 48px; }
  .learn__grid .learn__media { order: 0; grid-column: 1; grid-row: 1 / span 2; }
  .learn__grid .takeaways { order: 0; grid-column: 2; grid-row: 1; }
  .learn__grid .learn__key { order: 0; grid-column: 2; grid-row: 2; }
  .learn__media img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }  /* квадратный файл в квадратном слоте — без обрезки; экран с отчётом целиком */
  .speaker__card { grid-template-columns: 1fr 1fr; }
  .speaker__quote { padding: 44px 40px; font-size: 1.05rem; display: flex; flex-direction: column; justify-content: center; }
  .speaker__media img { aspect-ratio: auto; max-height: 540px; }
  .form { max-width: 480px; }
}

@media (min-width: 1000px) {
  /* ============ РАЗМЕРЫ И РИТМ — ДЕСКТОП ============
     Тот же набор, что в :root; правится независимо от телефона. */
  :root {
    --gutter: 80px;
    --h1-size: 3.6rem;
    --h1-lh: 1.05;
    --h2-size: 2.5rem;
    --h2-lh: 1.1;
    --lead-size: 1.3rem;
    --lead-lh: 1.45;
    --meta-size: 1.05rem;
    --body-size: 18px;
    --list-size: 1.15rem;
    --list-lh: 1.45;
    --final-size: 3rem;
    --final-sub-size: 1.25rem;
    --btn-size: 1.05rem;
    --btn-pad: 0.95rem 2rem;
    --sec-pad: 72px;
    --text-max: 760px;
  }
  .top { padding: 18px 0; }
  .top__nav { display: flex; gap: 28px; }
  .top__nav a { font-size: .95rem; text-decoration: none; color: var(--ink-2); }
  .top__nav a:hover { color: var(--ink); }
  .hero { padding: 40px 0 12px; }
  .hero__title { max-width: 1000px; margin-left: auto; margin-right: auto; }
  .hero__cta { margin-bottom: 2rem; }
  .hero__media img { border-radius: var(--radius-lg); }
  .datebadge { left: auto; right: 18px; top: 18px; bottom: auto; padding: 14px 20px; }
  .datebadge strong { font-size: 1.5rem; }
  .datebadge span { font-size: .9rem; }
  .seats { margin-top: 22px; font-size: .9rem; }
  .ty { padding: 56px 0 88px; }
  .ty__sign-photo { width: 64px; height: 64px; flex-basis: 64px; }

  .sticky { display: none !important; }
}

/* ---------- страница «спасибо» ---------- */
.ty { padding: 32px 0 56px; text-align: center; }
.ty__wrap { max-width: 640px; }
.ty__title {
  margin: 0 0 .8rem;
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: var(--h1-lh);
  letter-spacing: -0.015em;
  color: var(--brand);
}
.ty__lead { margin: 0 auto 1.8rem; font-size: var(--lead-size); line-height: var(--lead-lh); color: var(--ink-2); }
.ty__when {
  margin: 0 0 1.6rem;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 100%);
}
.ty__when-day { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.ty__when-time { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 600; color: var(--brand); }
.ty__when-where { margin: .5rem 0 0; font-size: .9rem; color: var(--ink-2); }
.ty__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.ty__tip { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn--ghost:hover { background: var(--sky-2); }
.ty__sign {
  display: flex; align-items: center; gap: 14px;
  margin: 2.4rem 0 0; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.ty__sign-photo { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; object-fit: cover; }
.ty__sign-text p { margin: 0; }
.ty__sign-note { font-size: .95rem; color: var(--ink-2); margin-bottom: .25rem !important; }
.ty__sign-name { font-size: 1.05rem; font-weight: 700; }
.ty__sign-role { font-size: .85rem; color: var(--ink-2); }

/* ---------- политика ---------- */
.legal { padding: 32px 0 48px; }
.legal__wrap { max-width: 720px; }
.legal .h2 { text-transform: none; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.legal p { margin: 0 0 1rem; }
.legal__draft { padding: .6rem 1rem; border-radius: 10px; background: #fff9eb; color: #6b4e00; font-size: .9rem; }
