/*
Theme Name: Recraft AI Ru
Theme URI: https://recraftai.icu/
Author: Recraft AI Ru
Description: Тема сайта Recraft AI Ru. Язык дизайна — «афиша»: первый экран на всю высоту окна с фоновым видео и гигантским заголовком по нижнему краю, меню висит чёрной пилюлей по центру верха. Внутри страниц геометрия жёсткая — скругление 5 пикселей, как на офсайте.
Version: 1.0.0
Text Domain: rcf-theme
*/

/* ============================================================
   1. ТОКЕНЫ — палитра снята с recraft.ai
   ============================================================ */
:root {
  --bg:        #000000;   /* офсайт — чистый чёрный */
  --surface:   #0b0b0b;
  --surface-2: #141414;
  --ink:       #ffffff;
  --ink-2:     #e4e4e4;   /* светло-серый офсайта */
  --muted:     #9a9a9a;
  --muted-2:   #707070;   /* приглушённый офсайта */
  --line:      rgba(255,255,255,.14);
  --line-2:    rgba(255,255,255,.3);
  --lime:      #d2fc31;   /* акцент офсайта, кислотный */
  --lime-2:    #b8e01c;
  --orange:    #ff5b15;   /* полоса анонса на офсайте */
  --violet:    #6a3eff;   /* третий тон, очень редко */

  /* Скругление 5px — самое мелкое в сетке и прямо с офсайта. Единственное
     исключение — первый экран: там радиус крупный, потому что это «экран»
     внутри страницы, а не элемент интерфейса. */
  --r:      5px;
  --r-hero: 28px;
  --pad:    20px;
  --maxw:   1760px;
  --maxw-text: 1760px;

  --f-display: 'Alumni Sans', 'Arial Narrow', sans-serif;
  --f-text:    'Source Sans 3', 'Segoe UI', sans-serif;
  --f-meta:    'Tektur', 'Consolas', monospace;
}

/* ============================================================
   2. БАЗА
   ============================================================ */
*, *::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(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); text-decoration: none; }
a:hover { color: #e6ff7a; }
.content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Alumni Sans — узкий гротеск, поэтому крупные кегли не распирают строку.
   Офсайт набирает заголовки смешанным начертанием: часть слов курсивом.
   Класс .it даёт этот приём, не превращая его в украшение на каждом слове. */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 1.2rem + 6vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.4rem); margin-top: 1.2em; }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; margin-top: 1.3em; }
.it { font-style: italic; }

p { margin: 0 0 1.05em; color: var(--muted); }
.content p { color: var(--ink-2); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; color: var(--ink-2); }
li { margin-bottom: .45em; }
li::marker { color: var(--lime); }
strong { color: var(--ink); font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap--text { max-width: var(--maxw-text); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--lime); color: #000; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================================
   3. ПЕРВЫЙ ЭКРАН — портирован из hero.txt
   Полноэкранный блок со скруглением, фоновое видео, шумовой слой,
   градиент, меню-пилюля по центру верха, гигантский заголовок внизу.
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;            /* svh, а не vh: на мобильных vh считается от
                                развёрнутого окна, и низ блока с заголовком
                                уезжает под адресную строку браузера */
  min-height: 560px;
  margin: var(--pad) 0 0;
  border-radius: var(--r-hero);
  overflow: hidden;
  background: #0a0a0a;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Шумовой слой из hero.txt. SVG-турбулентность вместо картинки: файла не
   нужно, масштабируется без муара, весит ноль. */
.hero__noise {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
}
/* Градиент сверху и снизу. Верх нужен под меню-пилюлю, низ — под заголовок:
   без него белый текст на светлом кадре видео становится нечитаемым. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 26%),
    linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 34%, rgba(0,0,0,0) 62%);
}

/* Меню чёрной пилюлей по центру верхнего края — приём из hero.txt */
.navpill {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 20;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 40px);
  background: #000;
  padding: 12px clamp(18px, 2.4vw, 34px) 14px;
  border-radius: 0 0 22px 22px;
  max-width: calc(100% - 2 * var(--pad));
}
.navpill a {
  font-family: var(--f-meta); font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.72);
  transition: color .16s ease;
}
.navpill a:hover, .navpill a.is-here { color: var(--lime); }

.hero__body {
  position: absolute; inset: auto 0 0 0; z-index: 10;
  padding: 0 clamp(16px, 3vw, 44px) clamp(18px, 2.4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}
@media (min-width: 1000px) {
  .hero__body { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 34px; }
}

/* Гигантский заголовок по нижнему краю. Кегль в vw — как в hero.txt, где
   он доходит до 20vw; здесь потолок ниже, потому что русские слова длиннее
   английского «Prisma» и на 20vw строка выходит за край окна. */
.hero__giant {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 11.5vw, 13rem);
  line-height: .82;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__side { display: flex; flex-direction: column; gap: 18px; padding-bottom: clamp(6px, 1vw, 20px); }
.hero__side p { margin: 0; color: rgba(255,255,255,.78); font-size: clamp(.94rem, .9rem + .2vw, 1.05rem); }

/* Выезд слов снизу — WordsPullUp из hero.txt.
   Класс .is-ready ставит скрипт. Пока его нет, слова ВИДНЫ: если стартовать
   с opacity 0 и ждать JS, при выключенном скрипте заголовок первого экрана
   исчезнет совсем. */
.pullup__w { display: inline-block; }
.pullup.is-ready .pullup__w {
  opacity: 0;
  transform: translateY(.32em);
  animation: rcf-pull .6s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rcf-pull { to { opacity: 1; transform: none; } }

/* ============================================================
   4. КНОПКИ — подпись слева, стрелка в круге справа (hero.txt)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-meta); font-weight: 600; font-size: .8rem;
  letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, gap .18s ease;
}
.btn__dot {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; display: grid; place-items: center;
  transition: transform .18s ease;
}
.btn__dot svg { width: 15px; height: 15px; }
.btn:hover { gap: 14px; }
.btn:hover .btn__dot { transform: scale(1.08); }

.btn--lime { background: var(--lime); color: #0a0a0a; }
.btn--lime .btn__dot { background: #0a0a0a; color: var(--lime); }
.btn--lime:hover { background: #e2ff5c; color: #0a0a0a; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost .btn__dot { background: rgba(255,255,255,.1); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--light { background: var(--ink-2); color: #0a0a0a; }
.btn--light .btn__dot { background: #0a0a0a; color: var(--ink-2); }

.btn--lg { font-size: .9rem; padding: 6px 6px 6px 24px; }
.btn--lg .btn__dot { width: 40px; height: 40px; }

.cta__short { display: none; }

/* ============================================================
   5. ШАПКА ВНУТРЕННИХ СТРАНИЦ
   На первом экране меню висит пилюлей поверх видео, на остальных
   страницах нужна обычная строка — иначе пилюля повиснет над пустотой.
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(0,0,0,.9); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 62px; }

.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--ink); }
.logo__mark { width: 24px; height: 24px; flex-shrink: 0; }
.logo__text { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.logo__text i { font-style: italic; color: var(--lime); }

.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a { font-family: var(--f-meta); font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 8px 11px; border-radius: var(--r); white-space: nowrap; transition: color .16s ease, background .16s ease; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav a.is-here { color: var(--lime); }

.header-cta { flex-shrink: 0; }

.burger { display: none; width: 38px; height: 38px; flex-shrink: 0; background: none; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 13px 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ============================================================
   6. СЕКЦИИ, СЕТКИ, КАРТОЧКИ
   ============================================================ */
.section { padding: clamp(40px, 6vw, 96px) 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(20px, 3vw, 44px); }
.section-head h2 { margin: 0; max-width: 30ch; }
.section-head p { margin: 0; max-width: 44ch; }

.grid { display: grid; gap: clamp(10px, 1.4vw, 18px); margin-bottom: 20px;}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 22px; height: 22px; color: var(--lime); margin-bottom: 16px; }
.card__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }

/* Плитка с кадром: изображение сверху, подпись на плашке снизу */
.tile { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tile__pic { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.tile__pic img, .tile__pic video { width: 100%; height: 100%; object-fit: cover; }
.tile__label { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 10px; border-radius: var(--r); background: rgba(0,0,0,.66); backdrop-filter: blur(6px); font-family: var(--f-meta); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.tile__body { padding: 16px 18px; }
.tile__body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tile__body p { margin: 0; font-size: .92rem; }

/* Плитка-ссылка в галерее на главной. Кадр наезжает на рамку при
   наведении, поэтому обрезку ставим на сам .tile__pic: у .tile
   overflow уже есть, но без него на pic увеличенный кадр залезал бы
   на подпись снизу. Двигается только transform — раскладка стоит. */
.tile--link { display: block; color: inherit; }
.tile--link:hover { color: inherit; border-color: var(--line-2); }
.tile__pic { overflow: hidden; }
.tile__pic img { transition: transform .45s cubic-bezier(.2, .6, .2, 1); }
.tile--link:hover .tile__pic img,
.tile--link:focus-visible .tile__pic img { transform: scale(1.07); }
.tile--link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.tile--link .tile__body h3 { transition: color .2s ease; }
.tile--link:hover .tile__body h3 { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  .tile__pic img { transition: none; }
  .tile--link:hover .tile__pic img,
  .tile--link:focus-visible .tile__pic img { transform: none; }
}

/* Одиночный кадр в тексте страницы */
.shot { margin: 0 0 clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); max-width: 1000px;}
.shot__pic { aspect-ratio: 4 / 3; background: var(--surface-2); }
.shot__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { padding: 12px 16px; font-family: var(--f-meta); font-size: .72rem; letter-spacing: .04em; color: var(--muted-2); }

/* Врезка: акцентная полоса слева, без заливки цветом */
.panel { border: 1px solid var(--line); border-left: 2px solid var(--lime); border-radius: var(--r); padding: 18px 20px; background: var(--surface); margin: 0 0 24px; }
.panel--orange { border-left-color: var(--orange); }
.panel--violet { border-left-color: var(--violet); }
.panel__label { font-family: var(--f-meta); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 8px; }
.panel > *:last-child { margin-bottom: 0; }

/* Крупное число — Tektur вместо моношрифта */
.big { font-family: var(--f-meta); font-weight: 600; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.big span { color: var(--lime); }
.big-note { font-family: var(--f-meta); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin-top: 8px; }

/* ============================================================
   7. ТАБЛИЦЫ — карточки на узких экранах через data-label
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 26px; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
table.data thead th { background: var(--surface-2); font-family: var(--f-meta); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { font-family: var(--f-meta); color: var(--ink); }

@media (max-width: 720px) {
  .table-wrap { overflow-x: visible; border: 0; }
  table.data { min-width: 0; }
  table.data thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
  table.data tr:last-child { margin-bottom: 0; }
  table.data td { padding: 10px 14px 10px 44%; position: relative; min-height: 20px; }
  table.data td::before { content: attr(data-label); position: absolute; left: 14px; top: 10px; width: 38%; font-family: var(--f-meta); font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
}

/* ============================================================
   8. FAQ, ЗВЁЗДЫ, КРОШКИ, ПЕРЕЛИНКОВКА
   ============================================================ */
.faq { border-top: 1px solid var(--line); margin-bottom: 30px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; text-transform: uppercase; color: var(--ink); padding: 18px 44px 18px 0; position: relative; }
.faq__q::after { content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 2px; background: var(--lime); }
.faq__q::before { content: ""; position: absolute; right: 17px; top: calc(50% - 5px); width: 2px; height: 12px; background: var(--lime); transition: transform .22s ease; }
.faq__item.is-open .faq__q::before { transform: scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { margin: 0 0 18px; }

.stars { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.stars__bg, .stars__fg { display: flex; gap: 2px; }
.stars__bg { color: var(--line-2); }
.stars__fg { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; white-space: nowrap; color: var(--lime); }
.stars svg { width: var(--star-size, 18px); height: var(--star-size, 18px); flex-shrink: 0; fill: currentColor; stroke: currentColor; }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.rating__val { font-family: var(--f-display); font-weight: 800; font-size: 4rem; line-height: .9; color: var(--lime); }

.crumbs { font-family: var(--f-meta); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); padding: 20px 0 0; }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--lime); }
.crumbs__sep { margin: 0 8px; }
.crumbs__here { color: var(--muted); }

.page-head { padding: 8px 0 4px; }
.page-lead { font-size: clamp(1rem, .94rem + .3vw, 1.14rem); color: var(--muted);     max-width: 70ch; }

.related { margin-top: 54px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; transition: border-color .16s ease, background .16s ease; }
.related a:hover { border-color: var(--lime); background: var(--surface); color: var(--ink); }
.related a svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--lime); }

/* ============================================================
   9. ПОДВАЛ
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(50px, 7vw, 100px); padding: clamp(34px, 4vw, 60px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.footer-col h4 { font-family: var(--f-meta); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; font-weight: 400; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); font-size: .93rem; }
.footer-col a:hover { color: var(--lime); }
.footer-note { border-top: 1px solid var(--line); padding-top: 20px; font-size: .82rem; color: var(--muted-2); }
.footer-note p { margin: 0 0 6px; color: var(--muted-2); }

/* ============================================================
   10. АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Меню-пилюля на узком экране не помещается в строку: пунктов шесть,
     и они уезжают за край. Прячем её — вместо неё работает обычная шапка,
     которая на главной как раз с этой ширины и показывается. */
  .navpill { display: none; }
}

/* На широкой главной шапка не нужна: навигацию держит пилюля поверх видео.
   Ниже 860px пилюля скрыта, и шапка становится единственным способом уйти
   с главной — поэтому прячется она только в паре с видимой пилюлей. */
@media (min-width: 861px) {
  .site-header--front { display: none; }
}
/* Первый экран занимает всю высоту окна, а на узкой главной над ним стоит
   шапка. Без вычета её высоты низ блока с заголовком уезжает за экран. */
@media (max-width: 860px) {
  .hero { height: calc(100svh - 62px); }
}

@media (max-width: 620px) {
  :root { --pad: 12px; --r-hero: 18px; }
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .related ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta__full { display: none; }
  .cta__short { display: inline; }
  .header-cta .btn { font-size: .72rem; padding: 4px 4px 4px 12px; }
  .header-cta .btn__dot { width: 28px; height: 28px; }
  .header-row { gap: 10px; }
  .hero__body { padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  /* Слова заголовка обязаны остаться видимыми: без анимации правило
     .pullup.is-ready оставило бы их с opacity 0 навсегда. */
  .pullup.is-ready .pullup__w { opacity: 1; transform: none; }
}
