/* ===================================================================
   MEDIA FORGE — лендинг вакансии, media-forge.ru
   Тёмная база + раскалённый оранжевый акцент («forge» — кузница).
   Родня сайту Тивари по структуре, но своя палитра и свои блоки.
   =================================================================== */

/* ─── Токены ─────────────────────────────────────────────────────── */
:root {
  /* Фон: три ступени, разница едва заметна — именно так и надо */
  --bg:         #0d0d0d;
  --bg-alt:     #121212;
  --bg-card:    #171717;
  --bg-card-2:  #1d1a18;

  /* Текст тёплый, не чисто-серый: на чёрном это читается дороже */
  --text:       #b8b3ac;  /* 9.3:1 на --bg */
  --text-dim:   #8a857c;  /* 5.1:1 — приглушённый, но проходит WCAG AA */
  --white:      #f5f3f0;

  /* Акцент. --acc проверен на --bg: 7.4:1, мелкий текст читается.
     --acc-deep только для градиентов и обводок, текстом не использовать. */
  --acc:        #ff7a3c;
  --acc-soft:   #ffc4a3;
  --acc-deep:   #a34a1c;
  --acc-rgb:    255, 122, 60;

  --line:       rgba(255, 255, 255, .07);
  --line-2:     rgba(255, 255, 255, .12);

  --r:      14px;
  --r-sm:   10px;
  --r-lg:   22px;
  --ease:   cubic-bezier(.22, 1, .36, 1);
  --ease-2: cubic-bezier(.4, 0, .2, 1);

  --shell:  1240px;
  --pad:    32px;
}

/* ─── Сброс ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* Атрибут hidden прячется браузерной таблицей стилей, а её бьёт ЛЮБОЙ
   авторский display. Стоит написать .foo { display: flex } — и элемент
   с hidden останется на странице: невидимым, но кликабельным, накрыв
   собой полсайта. Эта строка закрывает проблему на корню. */
[hidden] { display: none !important; }

::selection { background: var(--acc); color: #0d0d0d; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed; top: -100px; left: 20px; z-index: 200;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--acc); color: #0d0d0d; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 20px; }

/* ─── Зерно: главный трюк «дорогого» тёмного фона ────────────────── */
.grain {
  position: fixed; inset: -50%;
  z-index: 1; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  16%      { transform: translate(-6%, -3%); }
  33%      { transform: translate(3%, -6%); }
  50%      { transform: translate(-3%, 6%); }
  66%      { transform: translate(6%, 3%); }
  83%      { transform: translate(-6%, 3%); }
}

/* ─── Полоса прогресса ───────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 101; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--acc-deep), var(--acc));
  transition: width .1s linear;
}

/* ─── Раскладка ──────────────────────────────────────────────────── */
.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--pad);
}

.section { position: relative; z-index: 2; padding: 140px 0; }
.section--alt { background: var(--bg-alt); }

/* ─── Типографика ────────────────────────────────────────────────── */
.h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--white);
  /* Длинные слова («продюсирования») на узком экране в строку не влезают.
     body{overflow-x:hidden} их не переносит, а молча срезает по краю экрана —
     поэтому разрешаем перенос принудительно. */
  overflow-wrap: break-word;
}

.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--acc); opacity: .5;
}

.head { margin-bottom: 72px; max-width: 720px; }
.head__note { margin-top: 24px; font-size: 17px; color: var(--text-dim); max-width: 560px; }

.link-arr {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--acc);
  white-space: nowrap;
  transition: gap .3s var(--ease);
}
.link-arr:hover { gap: 14px; }

/* ─── Кнопки ─────────────────────────────────────────────────────── */
.btn {
  --h: 54px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 30px;
  border: 1px solid transparent; border-radius: 100px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: color .35s var(--ease-2), border-color .35s var(--ease-2), transform .2s var(--ease-2);
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 22px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 38px; font-size: 16px; }
.btn--xl { --h: 68px; padding: 0 44px; font-size: 17px; }

/* Заливка едет из центра — сдержанно, без цирка */
.btn--primary { background: var(--acc); color: #0d0d0d; font-weight: 600; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--acc-soft);
  transform: scaleX(0); transform-origin: center;
  transition: transform .45s var(--ease);
}
.btn--primary:hover::before { transform: scaleX(1); }
.btn--primary > * { position: relative; z-index: 1; }

.btn--ghost { border-color: var(--line-2); color: var(--white); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .05);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn--ghost:hover { border-color: var(--acc); }
.btn--ghost:hover::before { transform: scaleX(1); }

/* ─── Логотип ────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--acc);
  box-shadow: 0 0 14px rgba(var(--acc-rgb), .55);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(45deg); }
.logo__word {
  font-family: Montserrat, sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: .18em; color: var(--white);
  white-space: nowrap;
}

/* ─── Хедер ──────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease-2), border-color .4s var(--ease-2), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(13, 13, 13, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__in {
  height: 78px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: 14.5px; color: var(--text);
  transition: color .3s var(--ease-2);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--acc);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__act { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line-2); border-radius: 50%;
  cursor: pointer;
  place-items: center; gap: 5px;
}
.burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ─── Мобильное меню ─────────────────────────────────────────────── */
.mmenu {
  position: fixed; inset: 78px 0 0; z-index: 99;
  background: var(--bg);
  padding: 32px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease-2), transform .35s var(--ease);
}
.mmenu.is-open { opacity: 1; transform: none; }
.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-family: Montserrat, sans-serif;
  font-size: 24px; font-weight: 600; color: var(--white);
  letter-spacing: -.01em;
}
.mmenu__nav a span { font-size: 12px; color: var(--acc); font-family: Inter, sans-serif; font-weight: 500; }
.mmenu__foot { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--text-dim); }
.mmenu__foot .btn { width: 100%; }

/* ─── Хиро ───────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 110px;
  overflow: hidden;
}

/* Тёплое свечение сверху — «горн» за сценой */
.hero__glow {
  position: absolute; top: -32%; left: 50%;
  width: min(1100px, 130vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--acc-rgb), .14) 0%, rgba(var(--acc-rgb), .045) 38%, transparent 66%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.09); }
}

.hero__in { position: relative; }

.hero__h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 86px);
  line-height: 1.04;
  letter-spacing: -.028em;
  color: var(--white);
  margin-bottom: 32px;
  overflow-wrap: break-word;
}
.hero__h1 em {
  font-style: normal;
  color: var(--acc);
  /* Тонкая подсветка под ключевым словом */
  background: linear-gradient(transparent 62%, rgba(var(--acc-rgb), .17) 62%);
}

/* Строки выезжают из-под маски — самый убедительный reveal для заголовка */
.hero__h1 .line { display: block; overflow: hidden; }
.js .hero__h1 .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.hero.is-in .line:nth-child(1) > span { transform: none; transition-delay: .1s; }
.hero.is-in .line:nth-child(2) > span { transform: none; transition-delay: .22s; }
.hero.is-in .line:nth-child(3) > span { transform: none; transition-delay: .34s; }

.hero__sub { font-size: clamp(16px, 1.5vw, 19px); max-width: 56ch; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ─── Полоска фактов под хиро ────────────────────────────────────── */
.facts {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0 52px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts b {
  font-family: Montserrat, sans-serif; font-weight: 700;
  font-size: clamp(19px, 2vw, 24px); letter-spacing: -.02em;
  color: var(--white);
  white-space: nowrap;
}
.facts span { font-size: 13px; color: var(--text-dim); }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll i {
  width: 1px; height: 46px;
  background: linear-gradient(var(--acc), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 40%; background: var(--acc);
  animation: drop 2.1s var(--ease-2) infinite;
}
@keyframes drop {
  0%        { transform: translateY(-100%); }
  60%, 100% { transform: translateY(250%); }
}

/* ─── Задачи ─────────────────────────────────────────────────────── */
/* Сетка на «схлопнутых» бордерах: тонкие линии вместо тяжёлых карточек */
.task {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.task__i {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 240px; padding: 40px 38px 36px;
  background: var(--bg);
  transition: background .5s var(--ease-2);
}
/* Подсветка ползёт снизу при наведении */
.task__i::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(var(--acc-rgb), .08), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease-2);
}
.task__i:hover { background: var(--bg-card); }
.task__i:hover::before { opacity: 1; }

.task__n {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: .1em;
  color: var(--acc); opacity: .55;
  margin-bottom: 26px;
  transition: opacity .4s var(--ease-2);
}
.task__i:hover .task__n { opacity: 1; }

.task__i h3 {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 23px; letter-spacing: -.01em; line-height: 1.25;
  color: var(--white);
  margin-bottom: 14px;
}
.task__i p { font-size: 15px; color: var(--text-dim); line-height: 1.6; max-width: 46ch; }

/* ─── Условия / цифры ────────────────────────────────────────────── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 44px;
}
.stat { border-top: 1px solid var(--line-2); padding-top: 28px; }
.stat__n {
  display: block;
  font-family: Montserrat, sans-serif; font-weight: 700;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1; letter-spacing: -.04em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat__l {
  display: block; margin: 16px 0 14px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--acc);
}
.stat p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

/* ─── Как попасть ────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  transition: border-color .5s var(--ease-2);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { border-top-color: var(--acc); }

.step__n {
  font-family: Montserrat, sans-serif; font-weight: 700;
  font-size: 54px; line-height: 1; letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color .5s var(--ease-2);
}
.step:hover .step__n { -webkit-text-stroke-color: var(--acc); }

.step__b { max-width: 660px; }
.step__b h3 {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.015em;
  color: var(--white);
  margin-bottom: 14px;
}
.step__b p { font-size: 16px; color: var(--text-dim); }
.step__out {
  display: inline-block; margin-top: 22px;
  padding: 7px 16px;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 12.5px; color: var(--acc);
  transition: border-color .4s var(--ease-2), background .4s var(--ease-2);
}
.step:hover .step__out { border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .06); }

/* ─── Карточки «что важно» / «о проекте» ─────────────────────────── */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why__i {
  position: relative;
  padding: 36px 32px 34px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .5s var(--ease-2), transform .5s var(--ease), background .5s var(--ease-2);
}
.why__i::before {
  content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0; transition: opacity .5s var(--ease-2);
}
.why__i:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: var(--bg-card-2);
}
.why__i:hover::before { opacity: .7; }
.why__i h3 {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 18px; line-height: 1.35; letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 14px;
}
.why__i p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }

/* ─── Финальный CTA ──────────────────────────────────────────────── */
.cta { padding-bottom: 150px; }
.cta__box {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 84px 60px 76px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}
.cta__glow {
  position: absolute; z-index: -1;
  bottom: -60%; left: 50%; transform: translateX(-50%);
  width: min(860px, 120%); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--acc-rgb), .16) 0%, rgba(var(--acc-rgb), .05) 40%, transparent 68%);
  pointer-events: none;
}
.cta__box .eyebrow { justify-content: center; }
.cta__note {
  margin: 26px auto 0;
  max-width: 46ch;
  font-size: 17px; color: var(--text-dim);
}
.cta__btn { margin-top: 40px; }
.cta__btn-ic { display: inline-flex; }
.cta__small { margin-top: 22px; font-size: 13.5px; color: var(--text-dim); }

/* ─── Футер ──────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 80px 0 34px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p { margin-top: 20px; font-size: 14.5px; color: var(--text-dim); max-width: 30ch; }

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__col h4 {
  margin-bottom: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  font-family: Inter, sans-serif;
}
.footer__col a,
.footer__col span { font-size: 14.5px; color: var(--text); }
.footer__col span { color: var(--text-dim); }
.footer__col a { transition: color .3s var(--ease-2); }
.footer__col a:hover { color: var(--acc); }

.footer__bot {
  padding-top: 30px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}

/* ─── Reveal при скролле ─────────────────────────────────────────── */
/* Скрываем только под .js — без скрипта контент виден сразу, а не никогда */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-2), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

/* ─── Адаптив ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .facts { gap: 0 36px; }
  .cta__box { padding: 68px 40px 62px; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .section { padding: 96px 0; }
  .nav { display: none; }
  .header__act .btn { display: none; }
  .burger { display: grid; }
  .head { margin-bottom: 52px; }
  .task { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .step__n { font-size: 40px; }
  /* Четыре факта в один ряд на телефоне не влезают — кладём в 2×2 */
  .facts { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}

@media (max-width: 620px) {
  .why { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__scroll { display: none; }
  .task__i { min-height: 0; padding: 32px 26px; }
  /* На мобильном hover нет — открываем номер сразу */
  .task__n { opacity: 1; }
  .cta__box { padding: 54px 24px 48px; }
  .cta__btn { width: 100%; --h: 60px; padding: 0 20px; font-size: 16px; }
}

/* Факты стоят в два столбца по ~155px, а «от 60 000 ₽» с nowrap при 19px
   занимает ровно столько же — впритык. Снимаем кегль на ступень. */
@media (max-width: 400px) {
  .facts b { font-size: 18px; }
}

/* Самое длинное слово на сайте — «продюсирования»: при 32px это 296px.
   Колонка равна ширине экрана минус 44px паддингов, то есть кегль перестаёт
   влезать где-то ниже 340px. Там (и только там) опускаем заголовки на ступень,
   чтобы на обычных 360-375px они остались крупными. */
@media (max-width: 340px) {
  .h2 { font-size: 28px; }
  .hero__h1 { font-size: 34px; }
}

/* ─── Уважение к настройкам пользователя ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__h1 .line > span { transform: none; }
  .grain { animation: none; }
}
