/* MAXIMUM — вебинар «Поступление-2027». Десктоп, планшет (≤1099) и телефон (≤719). */

@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #FD7E14;
  --orange-hover: #EE6F06;
  --orange-soft: #FFF1E3;
  --ink: #1A1A1E;
  --dark: #18191C;
  --body: #62646B;
  --gray: #F7F7F8;
  --cream: #FFF8F1;
  --white: #FFFFFF;
  --line: #E7E7EA;
  --line-dark: rgba(255, 255, 255, 0.12);
  --on-dark: rgba(255, 255, 255, 0.74);
  --error: #D93A1E;

  --radius-card: 24px;
  --radius-btn: 8px;
  --container: 1200px;
  --gutter: 40px;
  --header-h: 72px;
  --section-y: 112px;
  --btn-h: 56px;

  --font: "Golos Text", Arial, sans-serif;
}

/* База */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: normal; color: var(--orange); }
p { text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Общие компоненты */
.section { padding: var(--section-y) 0; }
.section--gray { background: var(--gray); }

/* Тёмные разделы: база #18191C и слабое оранжевое свечение в углах, текстовая зона остаётся тёмной. */
.dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 420px at 100% 0%, rgba(253, 126, 20, 0.42), transparent 70%),
    radial-gradient(560px 400px at 0% 100%, rgba(253, 126, 20, 0.34), transparent 70%);
  pointer-events: none;
}
/* Тонкая сетка, как на первом экране maximumtest.ru; гаснет к краям. */
.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* Оранжевые пятна на светлых разделах — фирменный приём из макета. */
.glow { position: relative; isolation: isolate; overflow: clip; }
.glow::before,
.glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.30), rgba(253, 126, 20, 0) 68%);
  pointer-events: none;
}
.glow::before { left: -240px; top: 12%; }
.glow::after { right: -240px; bottom: -6%; }

/* Рукописное подчёркивание акцентного слова — фирменный приём maximumtest.ru. */
.u { position: relative; display: inline-block; }
.u::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: -0.16em;
  height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5C48 4.5 112 3 197 6.5' fill='none' stroke='%23FD7E14' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M22 13.5C70 9.5 128 8.6 182 10.4' fill='none' stroke='%23FD7E14' stroke-width='2' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}

.h2 {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head { margin-bottom: 48px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}
.tag--accent { background: var(--orange); color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--btn-h);
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--orange);
  color: var(--white);
  font: 600 17px/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(253, 126, 20, 0.45); outline-offset: 3px; }
.btn .ico { width: 20px; height: 20px; stroke-width: 2; }
.btn__arrow { transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { height: 64px; padding: 0 36px; font-size: 18px; box-shadow: 0 12px 32px rgba(253, 126, 20, 0.35); }
.dark .btn { box-shadow: 0 12px 32px rgba(253, 126, 20, 0.28); }
.btn--block { width: 100%; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { background: var(--gray); }
.btn[disabled] { cursor: progress; opacity: 0.85; }

/* Поля формы */
.field { position: relative; display: block; }
.field__input {
  width: 100%;
  height: var(--btn-h);
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1 var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input::placeholder { color: #9A9CA3; }
.field__input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.18); }
.field.is-invalid .field__input { border-color: var(--error); }
.field__error { display: block; min-height: 0; color: var(--error); font-size: 14px; line-height: 1.3; }
.field.is-invalid .field__error { margin-top: 6px; }
.lead-form__fail { color: var(--error); font-size: 15px; font-weight: 500; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__brand img { width: 160px; height: auto; }
.header__city { padding-left: 24px; border-left: 1px solid var(--line); color: var(--body); font-size: 15px; }
.header__date { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 15px; font-weight: 500; }
.header__date .ico { width: 20px; height: 20px; color: var(--orange); }
.header .btn { gap: 0; }

/* 01. Первый экран.
   Правки к макету: заголовок 600 вместо сверхжирного, без плашки «Иллюстрация» на фото;
   под датой — карточка «бонусы и подарки» и одна большая кнопка, форма открывается окном.
   Наклейка с датой на фото — приём из наклеек maximumtest.ru. */
.hero { padding: 56px 0 80px; }
/* Дополнительное свечение за фото. */
.hero.dark::before {
  background:
    radial-gradient(520px 420px at 100% 0%, rgba(253, 126, 20, 0.42), transparent 70%),
    radial-gradient(560px 400px at 0% 100%, rgba(253, 126, 20, 0.34), transparent 70%),
    radial-gradient(420px 360px at 82% 78%, rgba(253, 126, 20, 0.26), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--on-dark); font-size: 16px; }
.hero__title {
  margin-top: 22px;
  max-width: 15em;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__lead { margin-top: 20px; max-width: 36em; color: var(--on-dark); font-size: 19px; line-height: 1.5; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; font-size: 16px; font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts .ico { width: 22px; height: 22px; color: var(--orange); }

.hero__gift {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 640px;
  margin: 32px 0 32px;
  padding: 20px 24px 20px 20px;
  border: 1px solid rgba(253, 126, 20, 0.35);
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(253, 126, 20, 0.16), rgba(255, 255, 255, 0.03) 60%);
}
.hero__gift-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }
.hero__gift-ico .ico { width: 30px; height: 30px; }
.hero__gift-title { font-size: 19px; line-height: 1.3; font-weight: 600; }
.hero__gift-title + p { margin-top: 6px; color: var(--on-dark); font-size: 15px; line-height: 1.45; }
.hero__gift a { color: var(--white); font-weight: 500; text-decoration-color: rgba(253, 126, 20, 0.8); text-underline-offset: 3px; }
.hero__gift a:hover { color: var(--orange); }

.hero__media { position: relative; }
.hero__media picture { display: block; }
.hero__media img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius-card);
}
.sticker {
  position: absolute;
  top: -22px;
  left: -34px;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 600;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 6px var(--dark), 0 14px 30px rgba(0, 0, 0, 0.35);
}
.sticker::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}
.sticker b { font-size: 40px; line-height: 1; font-weight: 700; }
.sticker small { margin-top: 3px; font-size: 13px; font-weight: 500; opacity: 0.9; }

/* 02. Что даст участие.
   Правки к макету: иллюстрации внутри карточек, справа снизу; плашка про 10/11 класс убрана по просьбе пользователя. */
.value__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.value-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 16px;
  align-items: end;
  min-height: 300px;
  padding: 40px 32px 32px 40px;
  border-radius: var(--radius-card);
  background: var(--gray);
  overflow: hidden;
}
.value-card__text { align-self: start; }
.value-card__text p { margin-top: 14px; color: var(--body); font-size: 18px; }
.value-card__art { width: 196px; height: auto; transition: transform 0.3s ease; }
.value-card:hover .value-card__art { transform: rotate(-3deg) scale(1.04); }
.value-card { border: 1px solid var(--line); background: linear-gradient(160deg, var(--white), var(--gray)); box-shadow: 0 10px 30px rgba(26, 26, 30, 0.05); }


/* 03. Программа.
   Правки к макету: пять тем без дублирующих иконок рядом с номерами; огромная карточка во всю
   ширину заменена двумя колонками — слева заголовок, тема эфира, ведущий и кнопка (липкая колонка). */
.program__grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 80px; align-items: start; }
.program__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.program__topic { margin-top: 24px; font-size: 20px; line-height: 1.45; font-weight: 500; }
.speaker { display: flex; align-items: center; gap: 14px; margin: 28px 0 32px; color: var(--body); font-size: 16px; line-height: 1.4; }
.speaker__ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--orange-soft); color: var(--orange); }

.topics { padding: 8px 40px; border-radius: var(--radius-card); background: var(--white); box-shadow: 0 16px 40px rgba(26, 26, 30, 0.06); }
.topic {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
}
.topic + .topic { border-top: 1px solid var(--line); }
.topic__num { position: relative; color: var(--orange); font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.topic__num::after { content: ""; position: absolute; top: 2px; right: 10px; bottom: 2px; width: 1px; background: var(--line); }
.topic__title { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.topic p { margin-top: 8px; max-width: 40em; color: var(--body); font-size: 17px; }

/* 04. Совместный просмотр.
   Правки к макету: три одинаковые колонки (фото + две карточки) заменены на фото и колонку
   с двумя карточками; карточка родителей кремовая, как в макете. */
.family__grid { display: grid; grid-template-columns: 540px minmax(0, 1fr); gap: 80px; align-items: center; }
.family__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-card); }
.family__lead { margin-top: 20px; color: var(--body); font-size: 19px; }
.role { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; margin-top: 16px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.role:first-of-type { margin-top: 32px; }
.role--parent { border-color: rgba(253, 126, 20, 0.22); background: var(--cream); }
.role--parent .role__ico { background: var(--white); }
.role p { margin-top: 8px; color: var(--body); font-size: 18px; }
.role__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--orange-soft); color: var(--orange); }
.role__ico .ico { width: 28px; height: 28px; }

/* 05. Подарок за присутствие в эфире.
   Правки к макету: заголовок сокращён с трёх строк по центру до колонки слева; жёлтая плашка
   «Нужно уточнить» убрана с экрана (см. README, раздел «Сверить до запуска»). */
.gift__grid { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 72px; align-items: center; }
.gift__lead { margin: 24px 0 36px; color: var(--on-dark); font-size: 19px; }
.gift__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gift-item {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}
.gift-item:hover { border-color: rgba(253, 126, 20, 0.5); }
.gift-item__ico { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); }
.gift-item__ico .ico { width: 28px; height: 28px; }
.gift-item__spark { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; fill: var(--orange); }
.gift-item__num { position: absolute; top: 24px; right: 28px; color: rgba(255, 255, 255, 0.4); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gift-item__title { margin-top: 20px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.gift-item p { margin-top: 8px; color: var(--on-dark); font-size: 16px; }

/* 07. Вопросы.
   Правки к макету: открыт один ответ, вопросы о дате и бесплатности первыми,
   вопрос про два мессенджера — последним. */
.faq__grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 80px; align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__aside p { margin: 24px 0 32px; color: var(--body); font-size: 18px; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 16px; background: var(--gray); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.qa[open] { background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px rgba(26, 26, 30, 0.06); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 22px 28px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--orange); }
.qa__q:focus-visible { outline: 3px solid rgba(253, 126, 20, 0.45); outline-offset: 4px; border-radius: 4px; }
.qa__toggle { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--orange); color: var(--white); transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.qa__toggle .ico { width: 20px; height: 20px; stroke-width: 2; }
.qa[open] .qa__toggle { transform: rotate(45deg); }
.qa__a { max-width: 40em; padding: 0 84px 26px 28px; margin-top: -6px; color: var(--body); font-size: 18px; }

/* 06 + 08. Заявка и финал.
   Правки к макету: блок заявки и финальный блок объединены — одинаковые списки подарков шли
   дважды подряд. «Орбита» осталась фоном за формой. Убраны схема «Заявка → канал → эфир»
   и три жёлтые плашки «Нужно уточнить». */
.register { background: var(--dark) url("../assets/img/final-orbit.webp") no-repeat 100% 50% / auto 120%; }
.register__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; align-items: center; }
.register__when { margin-top: 20px; color: var(--on-dark); font-size: 19px; }
.register__label { margin: 40px 0 20px; font-size: 18px; font-weight: 600; }
.perks { display: grid; gap: 20px; max-width: 560px; }
.perk { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.perk p { padding-top: 2px; color: var(--on-dark); font-size: 17px; line-height: 1.5; }
.perk b { color: var(--white); font-weight: 600; }
.perk__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(253, 126, 20, 0.16); color: var(--orange); }

.form-card { padding: 40px; border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.form-card__title { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.form-card .lead-form { display: grid; gap: 12px; margin-top: 24px; }
.form-card__hint { color: var(--body); font-size: 14px; line-height: 1.45; }
.form-card .btn { margin-top: 8px; }
.form-card__note { margin-top: 4px; color: var(--body); font-size: 13px; line-height: 1.45; }

/* Подвал. Правка к макету: жёлтая плашка «Нужно уточнить» убрана, реквизиты — до запуска. */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; gap: 28px; }
.footer__inner img { width: 130px; }
.footer__org { padding-left: 28px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.footer__city { margin-left: auto; color: var(--body); font-size: 15px; }

/* 09. Экран после заявки — модальное окно. */
.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 40px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.modal::backdrop { background: rgba(24, 25, 28, 0.6); backdrop-filter: blur(2px); }
.modal__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--gray); color: var(--ink); cursor: pointer; }
.modal__close:hover { background: var(--line); }
.modal__check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }
.modal__check .ico { width: 28px; height: 28px; stroke-width: 2.2; }
.modal__title { margin-top: 20px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.modal__when { margin-top: 12px; font-size: 16px; font-weight: 500; text-wrap: balance; }
.modal__text { margin-top: 12px; color: var(--body); font-size: 16px; }
.modal__actions { display: grid; gap: 10px; margin-top: 24px; }
.modal__invite { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--body); font-size: 15px; }
.modal__demo { margin-top: 12px; color: #9A9CA3; font-size: 13px; }

/* Окно заявки */
.modal--form { width: min(480px, calc(100vw - 32px)); overflow: hidden; }
.modal--form::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.28), transparent 68%);
  pointer-events: none;
}
.modal__eyebrow { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-right: 40px; color: var(--body); font-size: 14px; font-weight: 500; }
.modal__eyebrow .tag { height: 28px; font-size: 14px; }
.modal--form .modal__title { margin-top: 18px; font-size: 28px; }
.modal--form .lead-form { position: relative; display: grid; gap: 12px; margin-top: 24px; }
.modal--form .btn { margin-top: 4px; }
.modal[open] { animation: modal-in 0.2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }

/* Спиннер в кнопке во время отправки */
.btn.is-loading .btn__arrow { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Узкий десктоп 1100–1279: сжимаем колонки, сетка та же. */
@media (max-width: 1279px) {
  :root { --gutter: 32px; --section-y: 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
  .hero__title { font-size: 46px; }
  .hero__media img { height: 540px; }
  .topics { padding: 8px 32px; }
  .program__grid, .faq__grid { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; }
  .family__grid { grid-template-columns: 460px minmax(0, 1fr); gap: 56px; }
  .gift__grid { grid-template-columns: 400px minmax(0, 1fr); gap: 56px; }
  .register__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; }
  .value-card { grid-template-columns: minmax(0, 1fr) 160px; padding: 36px 28px 28px 36px; }
  .value-card__art { width: 160px; }
  .header__city { display: none; }
}

/* ===== Планшет 720–1099 и телефон ≤719 =====
   Общий принцип: одна колонка, порядок «заголовок → текст → карточки → кнопка».
   Где кнопка в макете идёт после списка, колонка-обёртка разворачивается через display: contents
   и элементы получают order. */
@media (max-width: 1099px) {
  :root { --gutter: 32px; --section-y: 80px; }
  .h2 { font-size: 38px; }

  .header__city { display: none; }

  .hero { padding: 40px 0 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__title { max-width: 16em; font-size: 44px; }
  .hero__gift { max-width: none; }
  .hero__media { max-width: 560px; }
  .hero__media img { height: 480px; }
  .sticker { left: -16px; }

  .value-card { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding: 28px; }
  .value-card__art { order: -1; width: 168px; }

  .program__grid { display: flex; flex-direction: column; gap: 0; }
  .program__aside { display: contents; }
  .program__topic { order: 0; }
  .speaker { order: 0; margin: 24px 0 32px; }
  .topics { order: 1; }
  .program__aside .btn { order: 2; align-self: flex-start; margin-top: 32px; }

  .family__grid { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }

  .gift__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .gift__content { display: contents; }
  .gift__lead { margin: 20px 0 32px; }
  .gift__list { order: 1; }
  .gift__content .btn { order: 2; align-self: flex-start; margin-top: 32px; }

  .faq__grid { display: flex; flex-direction: column; gap: 0; }
  .faq__aside { display: contents; }
  .faq__list { order: 1; margin-top: 32px; }
  .faq__aside p { order: 2; margin: 32px 0 16px; }
  .faq__aside .btn { order: 3; align-self: flex-start; }

  /* «Орбита» уходит вниз, за форму, чтобы не ложиться под текст. */
  .register { background-position: 100% 100%; background-size: auto 62%; }
  .register__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .form-card { max-width: 560px; }

  .footer__inner { flex-wrap: wrap; gap: 12px 28px; }
}

@media (max-width: 719px) {
  :root { --gutter: 20px; --section-y: 64px; --btn-h: 54px; --header-h: 60px; }
  body { font-size: 16px; }
  .h2 { font-size: 28px; line-height: 1.15; }
  .h3 { font-size: 20px; }
  .btn { width: 100%; gap: 8px; padding: 0 14px; font-size: 16px; white-space: normal; }
  .btn--sm { width: auto; height: 40px; padding: 0 16px; font-size: 14px; }
  .btn--lg { height: 58px; font-size: 17px; }

  .header__inner { gap: 12px; }
  .header__brand img { width: 128px; }
  .header__date { display: none; }
  .header .btn { margin-left: auto; }

  .glow::before, .glow::after { width: 280px; height: 280px; }
  .glow::before { left: -190px; }
  .glow::after { right: -190px; }
  .dark::before {
    background:
      radial-gradient(300px 260px at 100% 0%, rgba(253, 126, 20, 0.4), transparent 70%),
      radial-gradient(320px 260px at 0% 100%, rgba(253, 126, 20, 0.32), transparent 70%);
  }

  /* 01: кнопка сразу после фактов, карточка подарка и фото — ниже (так в мобильном макете). */
  .hero { padding: 28px 0 48px; }
  .hero__grid { gap: 32px; }
  .hero__content { display: flex; flex-direction: column; }
  .hero__eyebrow { align-items: flex-start; flex-direction: column; gap: 10px; font-size: 14px; }
  .hero__title { margin-top: 16px; font-size: 30px; line-height: 1.12; text-wrap: wrap; }
  .hero__lead { margin-top: 14px; font-size: 16px; }
  .facts { flex-direction: column; gap: 10px; margin-top: 20px; font-size: 15px; }
  .facts .ico { width: 20px; height: 20px; }
  .hero__content > .btn { order: 1; margin-top: 24px; }
  .hero__gift { order: 2; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; margin: 20px 0 0; padding: 16px; }
  .hero__gift-ico { width: 48px; height: 48px; }
  .hero__gift-ico .ico { width: 24px; height: 24px; }
  .hero__gift-title { font-size: 17px; }
  .hero__gift-title + p { font-size: 14px; }
  .hero__media img { height: 360px; object-position: 50% 30%; border-radius: 20px; }
  .sticker { top: -14px; left: -6px; width: 92px; height: 92px; font-size: 12px; box-shadow: 0 0 0 4px var(--dark), 0 10px 24px rgba(0, 0, 0, 0.35); }
  .sticker::before { inset: 5px; }
  .sticker b { font-size: 30px; }
  .sticker small { font-size: 11px; }

  .section-head { margin-bottom: 28px; }
  .value__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .value-card { padding: 24px 20px; border-radius: 20px; min-height: 0; }
  .value-card__art { align-self: center; width: 150px; }
  .value-card__text p { font-size: 16px; }

  .program__topic { margin-top: 18px; font-size: 17px; }
  .speaker { margin: 20px 0 24px; font-size: 15px; }
  .speaker__ico { width: 44px; height: 44px; }
  .topics { padding: 4px 20px; border-radius: 20px; }
  .topic { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .topic__num { font-size: 28px; }
  .topic__num::after { right: 6px; }
  .topic__title { font-size: 17px; }
  .topic p { font-size: 15px; }
  .program__aside .btn { margin-top: 24px; }

  /* 04: карточки перед фото, как в мобильном макете. */
  .family__grid { display: flex; flex-direction: column; gap: 28px; }
  .family__media { order: 1; }
  .family__media img { aspect-ratio: 4 / 3; object-position: 50% 30%; border-radius: 20px; }
  .family__lead { margin-top: 14px; font-size: 16px; }
  .role { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .role:first-of-type { margin-top: 24px; }
  .role__ico { width: 44px; height: 44px; border-radius: 12px; }
  .role__ico .ico { width: 22px; height: 22px; }
  .role p { font-size: 15px; }

  .gift__lead { margin: 14px 0 24px; font-size: 16px; }
  .gift__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gift-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 20px 18px; }
  .gift-item__ico { grid-row: span 2; width: 48px; height: 48px; }
  .gift-item__ico .ico { width: 24px; height: 24px; }
  .gift-item__title { margin-top: 0; padding-right: 28px; font-size: 17px; }
  .gift-item p { margin-top: 4px; font-size: 15px; }
  .gift-item__num { top: 20px; right: 18px; font-size: 13px; }
  .gift__content .btn { margin-top: 24px; }

  .faq__list { gap: 8px; margin-top: 24px; }
  .qa { border-radius: 14px; }
  .qa__q { gap: 16px; padding: 16px 16px 16px 18px; font-size: 16px; }
  .qa__toggle { width: 32px; height: 32px; }
  .qa__a { padding: 0 18px 18px; font-size: 15px; }
  .faq__aside p { margin: 24px 0 14px; font-size: 15px; }

  .register { background-size: auto 380px; background-position: 72% 100%; }
  .register__when { margin-top: 14px; font-size: 16px; }
  .register__label { margin: 28px 0 16px; font-size: 17px; }
  .perks { gap: 16px; }
  .perk { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .perk__ico { width: 40px; height: 40px; border-radius: 10px; }
  .perk__ico .ico { width: 22px; height: 22px; }
  .perk p { padding-top: 0; font-size: 15px; }
  .register__grid { gap: 32px; }
  .form-card { padding: 24px 20px; border-radius: 20px; }
  .form-card__title { font-size: 22px; }
  .form-card .lead-form { margin-top: 18px; }

  .footer { padding: 28px 0 32px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__org { padding-left: 0; border-left: 0; }
  .footer__city { margin-left: 0; }

  .modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 28px 20px 24px; border-radius: 20px; overflow-y: auto; }
  .modal__close { top: 12px; right: 12px; }
  .modal__title, .modal--form .modal__title { font-size: 22px; }
  .modal__text { font-size: 15px; }
  .modal__actions .btn { font-size: 15px; }
}

/* Узкие телефоны: короче кнопка в шапке, меньше заголовок. */
@media (max-width: 400px) {
  .header__cta-extra { display: none; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 27px; }
  .h2 { font-size: 26px; }
  .header__brand img { width: 116px; }
}
