/* Стили сайта ИИшки.
   Сначала телефон (mobile-first), ниже правки для планшета (от 768px)
   и компьютера (от 1024px). Все фирменные цвета собраны в :root. */

/* ---------- Шрифты (лежат в проекте, не грузятся с Google) ---------- */

@font-face {
  font-family: "Onest";
  src: url("/fonts/onest/cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest/latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono/cyrillic.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono/latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Цвета и общие значения ---------- */

:root {
  --bg: #F0F1F5;              /* фон страницы */
  --grid-dot: rgba(176, 187, 217, 0.4); /* точки сетки на фоне */
  --ink: #111833;             /* основной текст и тени */
  --blue: #2257DA;            /* фирменный синий */
  --orange: #FA6A38;          /* акцент */
  --teal: #1AAFB6;            /* бирюзовый маскота */
  --visor: #0042B3;           /* синий визора */
  --spark: #FFC93C;           /* жёлтые искры */
  --green: #22A45D;           /* зелёный с баннера «Разбор» */
  --purple: #7B5CF0;          /* фиолетовый иконки «дизайн» */
  --muted: #969CAC;           /* вторичный текст */
  --muted-light: #B3BACA;
  --text-soft: #4A5168;       /* текст абзацев, мягче основного */
  --pink: #F8DBDD;            /* розовая подсветка */
  --error: #F0394B;           /* ошибки */
  --card: #FFFFFF;            /* карточки */

  --blob-blue: #AFC5EC;
  --blob-peach: #E3C8C1;
  --blob-mint: #D8EDF2;

  --radius: 24px;
  --radius-small: 16px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 0 12px 32px rgba(17, 24, 51, 0.08), 0 2px 6px rgba(17, 24, 51, 0.04);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --container: 1200px;
  --gutter: 16px;
}

/* ---------- Основа ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  background-color: var(--bg);
  /* Точечная сетка как на обложках */
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

/* Мягкие размытые пятна. Отдельный слой на весь экран,
   чтобы при прокрутке они оставались на месте */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 95% 0%, rgba(175, 197, 236, 0.75), transparent 70%),
    radial-gradient(36vmax 36vmax at 0% 55%, rgba(227, 200, 193, 0.6), transparent 70%),
    radial-gradient(38vmax 38vmax at 100% 100%, rgba(216, 237, 242, 0.9), transparent 70%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

h1, h2, h3, p {
  margin: 0;
}

/* Заголовки переносятся ровнее, без одиноких слов в последней строке */
h1, h2, h3 {
  text-wrap: balance;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main {
  flex: 1;
}

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

.mono {
  font-family: var(--font-mono);
}

/* Пиксель-арт увеличиваем без размытия */
.pixel {
  image-rendering: pixelated;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--card);
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Фирменные приёмы ---------- */

.accent-blue {
  color: var(--blue);
}

/* Синяя плашка с жёсткой тенью, как «ГАЙД» на баннере */
.plate {
  display: inline-block;
  padding: 0.08em 0.4em 0.12em;
  background: var(--blue);
  color: #fff;
  box-shadow: 0.12em 0.12em 0 var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Тёмная скруглённая плашка вокруг слова, как «Claude Code» на обложке */
.chip-dark {
  display: inline-block;
  padding: 0 0.3em 0.06em;
  border-radius: 0.22em;
  background: var(--ink);
  color: #fff;
}

/* Пунктирное подчёркивание, как «командой разработчиков» */
.underline-dots {
  background-image: linear-gradient(90deg, var(--green) 50%, transparent 50%);
  background-size: 6px 3px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 4px;
}

.spark {
  position: absolute;
  width: 26px;
  height: 26px;
}

.handle {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

/* При наведении тень уменьшается, кнопка «вдавливается» */
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--big {
  min-height: 60px;
  padding: 14px 30px;
  font-size: 19px;
}

.btn--small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--small:hover {
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--light {
  background: var(--card);
  color: var(--ink);
}

/* ---------- Шапка ---------- */

.header {
  position: relative;
  z-index: 10;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.logo__mascot {
  width: 34px;
  height: auto;
}
.logo__text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.header__burger-close,
.header.is-open .header__burger-open {
  display: none;
}
.header.is-open .header__burger-close {
  display: inline-flex;
}

/* На телефоне меню выпадает панелью под шапкой */
.nav {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: var(--gutter);
  right: var(--gutter);
  flex-direction: column;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}
.header.is-open .nav {
  display: flex;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav__link:hover {
  background: var(--bg);
}

/* ---------- Первый экран ---------- */

.hero {
  padding: 16px 0 56px;
  overflow: hidden; /* искры-украшения не должны давать горизонтальную прокрутку */
}

.hero__inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.hero__title {
  margin-top: 8px;
  font-size: clamp(36px, 10vw, 66px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__title span {
  display: block;
}

.hero__subtitle {
  max-width: 560px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 18px;
}

.hero__text .btn {
  margin-top: 28px;
}

.hero__art {
  position: relative;
  align-self: center;
  width: 170px;
}
.hero__mascot {
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 24px rgba(17, 24, 51, 0.12));
}
.hero__spark--1 { top: 0; right: -34px; width: 30px; height: 30px; }
.hero__spark--2 { bottom: 18%; left: -38px; width: 20px; height: 20px; }
.hero__spark--3 { display: none; }

/* ---------- Секции ---------- */

.section {
  padding: 40px 0;
}
.section--last {
  padding-bottom: 72px;
}

.section__head {
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section__subtitle {
  margin-top: 10px;
  color: var(--text-soft);
}

.empty {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

/* ---------- Каталог и карточки ---------- */

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.card__cover {
  position: relative;
  display: block;
  padding: 12px 12px 0;
  color: var(--ink);
  text-decoration: none;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.card__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.card__title a {
  color: inherit;
  text-decoration: none;
}
.card__title a:hover {
  color: var(--blue);
}

.card__text {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 16px;
}

.card__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price__now {
  font-size: 22px;
  font-weight: 800;
}
.price__old {
  color: var(--muted);
  font-size: 16px;
}

.badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--spark);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

/* Обложка. Картинка или нарисованная в фирменном стиле */
.cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.cover:not(.cover--img) {
  --accent: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
  padding: 18px;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(175, 197, 236, 0.9), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(227, 200, 193, 0.6), transparent 50%),
    radial-gradient(var(--grid-dot) 1.2px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 16px 16px;
}
.cover.cover--orange { --accent: var(--orange); }
.cover.cover--green { --accent: var(--green); }
.cover.cover--teal { --accent: var(--teal); }

.cover__handle {
  color: var(--muted);
  font-size: 12px;
}
.cover__plate {
  padding: 2px 10px 4px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
}
.cover__title {
  max-width: 72%;
  margin-top: 4px;
  font-size: clamp(22px, 6.4vw, 28px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.cover__mascot {
  position: absolute;
  right: 8px;
  bottom: -6px;
  width: 27%;
  max-width: 110px;
}

/* ---------- Что внутри ---------- */

.inside {
  display: grid;
  gap: 32px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Круглые белые «кружки» с цветными иконками, как на обложке 1 */
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.feature__icon--orange { color: var(--orange); }
.feature__icon--green { color: var(--green); }
.feature__icon--purple { color: var(--purple); }
.feature__icon--blue { color: var(--blue); }

.feature__title {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feature__text {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.4;
}

/* Временные макеты страниц гайда */
.pages {
  position: relative;
  height: 300px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.page-mock {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 62%;
  aspect-ratio: 3 / 4;
  padding: 18px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.page-mock--1 { left: 0; top: 10px; transform: rotate(-4deg); }
.page-mock--2 { right: 0; top: 30px; transform: rotate(4deg); }

.page-mock__plate {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}
.page-mock__plate--orange { background: var(--orange); }

.page-mock__line {
  height: 8px;
  border-radius: 4px;
  background: #E3E6EE;
}
.page-mock__line--title { height: 14px; width: 80%; background: var(--ink); }
.page-mock__line--short { width: 55%; }

.page-mock__shot {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blob-blue), var(--blob-mint));
}

.page-mock__code {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border-radius: 8px;
  background: var(--ink);
}
.page-mock__code i {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.page-mock__code i:nth-child(2) { width: 70%; background: var(--teal); }
.page-mock__code i:nth-child(4) { width: 45%; }

/* ---------- Для кого ---------- */

.audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.audience__card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.audience__num {
  color: var(--muted);
  font-size: 14px;
}

.audience__title {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.audience__text {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 16px;
}

/* ---------- Отзывы ---------- */

.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.review__img {
  display: block;
  margin-top: 14px;
  border-radius: 12px;
}
.review__name {
  margin-top: 14px;
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-wrap .section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.faq-wrap__mascot {
  width: 72px;
  flex-shrink: 0;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  border-radius: var(--radius-small);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}

.faq__plus {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--blue);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__plus {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 18px 18px;
  color: var(--text-soft);
}

/* ---------- Контакты ---------- */

.contacts {
  position: relative;
  padding: 32px 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.contacts__spark {
  top: 18px;
  right: 22px;
}

.contacts__title {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.contacts__text {
  margin-top: 12px;
  color: var(--text-soft);
}

.contacts__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- Подвал ---------- */

.footer {
  border-top: 1px solid rgba(17, 24, 51, 0.08);
  background: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

.footer__inner {
  display: grid;
  gap: 24px;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 32px var(--gutter);
}

.footer__seller p + p {
  margin-top: 4px;
}
.footer__seller {
  color: var(--text-soft);
}
.footer__name {
  color: var(--ink);
  font-weight: 700;
}

.footer__docs {
  display: grid;
  gap: 4px;
}
.footer__docs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
}

.footer__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Значки способов оплаты (упрощённые, без официальных логотипов) */
.pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 56px;
  padding: 0 10px;
  border: 1px solid rgba(17, 24, 51, 0.12);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.pay--sbp { color: var(--purple); }
.pay--mir { color: var(--green); }
.pay--visa { color: #1A1F71; font-style: italic; }
.pay--mc i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EB001B;
}
.pay--mc i + i {
  margin-left: -7px;
  background: #F79E1B;
  mix-blend-mode: multiply;
}

.footer__copy {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Страницы 404 и 500 ---------- */

.stub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  padding: 40px 0 72px;
}
.stub__mascot {
  width: 140px;
}
.stub__code {
  color: var(--muted);
}
.stub__title {
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.stub__text {
  color: var(--text-soft);
}
.stub .btn {
  margin-top: 8px;
}

/* =========================================================
   Планшет: от 768px
   ========================================================= */

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding: 32px 0 72px;
  }
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .hero__text {
    flex: 1;
  }
  .hero__art {
    width: 230px;
    flex-shrink: 0;
  }

  .section {
    padding: 56px 0;
  }

  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .audience,
  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-wrap__mascot {
    width: 96px;
  }

  .contacts {
    padding: 48px 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__copy {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Компьютер: от 1024px
   ========================================================= */

@media (min-width: 1024px) {
  /* Меню в строку, бургер не нужен */
  .header__burger {
    display: none;
  }
  .nav,
  .header.is-open .nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .nav__link--tg {
    margin-left: 8px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 3px 3px 0 var(--ink);
  }
  .nav__link--tg:hover {
    background: var(--card);
    color: var(--blue);
  }

  .hero {
    padding: 48px 0 96px;
  }
  .hero__art {
    width: 360px;
    margin-right: 40px;
  }
  .hero__spark--1 { top: -10px; right: -40px; width: 40px; height: 40px; }
  .hero__spark--2 { bottom: 22%; left: -60px; width: 26px; height: 26px; }
  .hero__spark--3 { display: block; top: 30%; right: -64px; width: 20px; height: 20px; }

  .section {
    padding: 64px 0;
  }
  .section__head {
    margin-bottom: 32px;
  }

  .catalog {
    grid-template-columns: repeat(3, 1fr);
  }
  .cover__title {
    font-size: 26px;
  }

  .inside {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .audience {
    grid-template-columns: repeat(4, 1fr);
  }
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
  }
  .faq-wrap .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-wrap__mascot {
    width: 130px;
  }

  .footer__inner {
    grid-template-columns: 1.2fr 1.2fr 1fr;
    align-items: start;
  }
  .footer__pay {
    justify-content: flex-end;
  }
}


/* =========================================================
   Страница инструкции
   ========================================================= */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0 20px;
  color: var(--muted);
  font-size: 15px;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-weight: 600;
}

.product-hero {
  display: grid;
  gap: 24px;
}

.product-hero__cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}
.product-hero__cover .badge {
  top: 22px;
  right: 22px;
}

.product-hero__title {
  font-size: clamp(34px, 9vw, 60px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.product-hero__subtitle {
  margin-top: 12px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-hero__desc {
  margin-top: 14px;
  color: var(--text-soft);
}

.facts {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}
.fact .icon {
  flex-shrink: 0;
  color: var(--blue);
}

.product-hero__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.price--big .price__now {
  font-size: 32px;
}
.price--big .price__old {
  font-size: 20px;
}

/* Что ты получишь */
.gets {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.gets__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-small);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  line-height: 1.4;
}
.gets__check {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

/* Оглавление */
.toc {
  margin: 24px 0 0;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  list-style: none;
}
.toc__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  font-weight: 600;
  line-height: 1.35;
}
.toc__item + .toc__item {
  border-top: 1px dashed #DCE0EA;
}
.toc__num {
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Превью страниц: листаются свайпом */
.previews {
  display: flex;
  gap: 14px;
  margin: 20px calc(var(--gutter) * -1) 0;
  padding: 6px var(--gutter) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.previews__item {
  flex: 0 0 68%;
  max-width: 300px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  scroll-snap-align: start;
}
.previews__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Для кого */
.for-whom {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.for-whom__item {
  padding: 18px 20px;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-small);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

/* Блок покупки */
.buy-box {
  position: relative;
  padding: 28px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}
.buy-box__spark {
  top: 16px;
  right: 18px;
}
/* Тёмная плашка с названием переносится вместе с текстом, а не блоком */
.buy-box__title .chip-dark {
  display: inline;
  padding: 0.04em 0.28em 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.buy-box__title {
  padding-right: 30px;
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.buy-box .price {
  margin-top: 16px;
}
.buy-box__soon {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-soft);
}

.page-product .faq {
  margin-top: 24px;
}

.catalog--others {
  margin-top: 24px;
}

/* Прилипающая кнопка покупки на телефоне */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(0);
  transition: transform 0.2s ease;
}
.sticky-buy[hidden] {
  display: flex;
  transform: translateY(110%);
  visibility: hidden;
}
/* Чтобы плашка не закрывала низ подвала */
.page-product .footer {
  padding-bottom: 84px;
}

.sticky-buy__price {
  font-size: 20px;
  font-weight: 800;
}
.sticky-buy .btn {
  flex: 1;
  max-width: 260px;
  min-height: 48px;
  box-shadow: 3px 3px 0 var(--ink);
}

/* Окно крупного просмотра превью */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 56px 12px 40px;
  border: 0;
  background: rgba(17, 24, 51, 0.92);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.lightbox__close {
  top: 8px;
  right: 8px;
}
.lightbox__nav--prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__count {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
}

@media (min-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }
  .gets,
  .for-whom {
    grid-template-columns: 1fr 1fr;
  }
  .previews__item {
    flex-basis: 40%;
  }
  .buy-box {
    padding: 40px;
  }
  /* На планшете и компьютере прилипающая кнопка не нужна */
  .sticky-buy,
  .sticky-buy[hidden] {
    display: none;
  }
  .page-product .footer {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .product-hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    padding-bottom: 16px;
  }
  .gets {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .product-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .previews {
    margin: 20px 0 0;
    padding: 6px 0 18px;
  }
  .previews__item {
    flex-basis: 46%;
  }
  .lightbox {
    padding: 48px 80px;
  }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
}

/* =========================================================
   Юридические документы: спокойно и удобно для чтения
   ========================================================= */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 72px;
}
.legal__title {
  font-size: clamp(30px, 7vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.legal__date {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.legal__warning {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--pink);
  color: var(--ink);
  font-size: 15px;
}
.legal__body {
  margin-top: 28px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
.legal__body h2 {
  margin: 32px 0 12px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: 16px;
}
.legal__body h2:first-child {
  margin-top: 0;
}
.legal__body p + p {
  margin-top: 10px;
}
.legal__body ul {
  margin: 10px 0;
  padding-left: 22px;
  list-style: disc;
}
.legal__body li + li {
  margin-top: 6px;
}
.legal__lead {
  margin-bottom: 8px;
  font-weight: 700;
}
.legal__body .legal__details {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--bg);
  list-style: none;
}
.legal__docs {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}
.legal__docs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
}

/* =========================================================
   Плашка про cookie
   ========================================================= */

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  background: var(--card);
  box-shadow: var(--shadow-hard);
  font-size: 15px;
  line-height: 1.45;
}
.cookie[hidden] {
  display: none;
}
.cookie__text {
  flex: 1 1 300px;
}
.cookie__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.cookie__decline {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cookie__decline:hover {
  background: var(--bg);
  color: var(--ink);
}

@media (min-width: 768px) {
  .legal__body {
    padding: 40px 44px;
    font-size: 17px;
  }
}

/* =========================================================
   Форма покупки
   ========================================================= */

.buy-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}
.field__label {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid #D3D8E4;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color 0.15s ease;
}
.field__input:focus {
  border-color: var(--blue);
  outline: none;
}
.field__hint {
  color: var(--text-soft);
  font-size: 15px;
}
.field__hint--error,
.field__error {
  color: var(--error);
  font-size: 15px;
  font-weight: 600;
}
.field__fix {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Способы оплаты: две крупные плитки, СБП первая и выбрана */
.methods {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.methods legend {
  margin-bottom: 8px;
}
.method {
  position: relative;
  display: block;
  cursor: pointer;
}
.method__radio {
  position: absolute;
  opacity: 0;
}
.method__body {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 12px 16px 12px 52px;
  border: 2px solid #D3D8E4;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.method__body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 2px solid #B3BACA;
  border-radius: 50%;
  background: #fff;
}
.method__radio:checked + .method__body {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.method__radio:checked + .method__body::before {
  border: 7px solid var(--blue);
}
.method__radio:focus-visible + .method__body {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.method__title {
  font-size: 17px;
  font-weight: 800;
}
.method__text {
  color: var(--text-soft);
  font-size: 14px;
}

/* Галочки согласий, удобные для пальца */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.check__box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.buy-form__submit {
  width: 100%;
  margin-top: 4px;
}
.buy-form__submit:disabled {
  border-color: #B3BACA;
  background: #C9D0DF;
  color: #fff;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.buy-form__missing {
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
}
.buy-form__note {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.promo__toggle {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.promo__row {
  display: flex;
  gap: 10px;
}
.promo__row[hidden] {
  display: none;
}

/* =========================================================
   Страница заказа
   ========================================================= */

.order {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 0 80px;
  text-align: center;
}
.order__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.order__state[hidden] {
  display: none;
}
.order__mascot {
  width: 140px;
}
.order__title {
  font-size: clamp(36px, 9vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.order__lead {
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.order__text,
.order__note {
  color: var(--text-soft);
}
.order__support {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.order__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.order__spinner {
  width: 56px;
  height: 56px;
  border: 6px solid #D3D8E4;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Жёлтая полоса тестового режима */
.test-bar {
  position: relative;
  z-index: 50;
  padding: 8px 16px;
  background: var(--spark);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}