/* ===== NGB — фирменные переменные из брендбука ===== */
:root {
  --cream: #FBF7F2;
  --navy: #2D3548;
  --blue: #5B8DEF;
  --blue-light: #B8D1F5;
  --peach: #F4C8A8;
  --orange: #F4711D;
  --orange-soft: #FFB35C;
  --navy-soft: rgba(45, 53, 72, 0.72);
  /* Шрифты по брендбуку (стр. 21): заголовки — Geist Bold, акцент — Caveat,
     основной текст — Tilda Sans (пока не самохостится, отсюда Nunito во --font-body). */
  --font-display: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 8px 32px rgba(45, 53, 72, 0.10);
  --header-h: 92px; /* высота плавающей навигации + отступ сверху (для scroll-padding и hero) */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* clip не создаёт scroll-контейнер — sticky-шапка продолжает работать,
     а блобы могут выходить за края секций и перетекать между блоками */
  overflow-x: clip;
}

/* ===== Киношное зерно + виньетка поверх всего сайта ===== */
body::after {
  content: '';
  position: fixed;
  inset: -120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .08;
  pointer-events: none;
  z-index: 2000;
  animation: grain 8s steps(8) infinite;
  mix-blend-mode: overlay;
}
/* мягкая виньетка по краям — киношная глубина */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1999;
  background: radial-gradient(120% 120% at 50% 45%, transparent 62%, rgba(20, 24, 36, .14) 100%);
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-40px, 20px); }
  30% { transform: translate(30px, -35px); }
  50% { transform: translate(-25px, 45px); }
  70% { transform: translate(45px, 15px); }
  90% { transform: translate(-30px, -30px); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
ul, dl { margin: 0; padding: 0; }
li { list-style: none; }

/* Широкоформат: контент идёт почти в край экрана, как hero (а не узкая колонка
   1160). --wide — общий потолок, --pad — боковые поля. Секции full-bleed красят
   фон на всю ширину, а контент держат в том же --wide. */
:root { --wide: 1440px; --pad: clamp(20px, 4.6vw, 88px); }
.container { width: min(var(--wide), 100% - var(--pad) * 2); margin-inline: auto; }

/* Собранный вертикальный ритм: было 9vw→132px (стек между секциями ~230px —
   кавернозно, разреженные блоки «проваливались»). 6.2vw→~96px даёт единый
   спокойный ритм без пустых полос. */
.section { padding: clamp(56px, 6.2vw, 96px) 0; }

/* ===== Постерные заголовки секций — язык hero на весь сайт =====
   Секции открываются так же, как hero: гигантский Geist uppercase, а ВНУТРИ
   строк живут фирменные шейпы (облако-капсула, астериск-круг, стрелка).
   Компоненты hero__badge/hero__circle/hero__pill посчитаны в em, поэтому
   работают на любом кегле. Вторая строка сдвинута — editorial-асимметрия,
   а не центрированный шаблон. */
.poster-title {
  margin: 0 0 .4em;
  display: flex;
  flex-direction: column;
  gap: clamp(2px, .4vw, 8px);
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--navy);
}
.poster-title .hero__line { gap: clamp(6px, 1vw, 18px); }
/* сдвиг строк каскадом — плакатная диагональ чтения */
.poster-title .hero__line + .hero__line { margin-left: clamp(28px, 7vw, 140px); }
.poster-title .hero__line + .hero__line + .hero__line { margin-left: clamp(56px, 14vw, 280px); }
.section--dark .poster-title { color: var(--cream); }
.section--blue .poster-title { color: #fff; }
/* компакт-вариант для узких колонок (aside в FAQ) */
.poster-title--sm { font-size: clamp(30px, 3.6vw, 54px); }
.poster-title--sm .hero__line + .hero__line { margin-left: clamp(16px, 2.5vw, 48px); }
/* Надзаголовок-eyebrow — editorial-иерархия вместо голого H2 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--dark .eyebrow, .section--blue .eyebrow { color: var(--blue-light); }
.section__title { font-size: clamp(32px, 5.4vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
.section__subtitle { font-size: clamp(17px, 2.2vw, 22px); color: var(--navy-soft); margin-bottom: 48px; max-width: 60ch; }

/* Full-bleed: секция-фон на всю ширину окна, даже если предок ограничен */
.section--bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  /* пружинная кривая с перелётом — эффект инерции, как в character-анимации */
  transition:
    transform .65s cubic-bezier(.22, 1.61, .36, 1),
    box-shadow .45s ease,
    background-color .3s ease,
    color .3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 30px rgba(45, 53, 72, .20); }
.btn:active { transform: translateY(-1px) scale(.96); transition-duration: .15s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #4a7de6; }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.btn--ghost-light { border-color: var(--cream); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--navy); }
.btn--lg { padding: 16px 34px; font-size: 18px; }

/* ===== Шапка ===== */
/* Плавающая навигация: стеклянный скруглённый прямоугольник, оторван от краёв, левитирует */
.header {
  position: sticky;
  top: 14px;
  z-index: 100;
  width: min(1560px, 100% - 28px);
  margin: 14px auto 0;
  border-radius: 22px;
  /* .78, а не .55: над тёмными секциями (Кейсы) полупрозрачное стекло смешивалось
     с нави и шапка выглядела грязно-серой — плотнее фон держит кремовый тон везде */
  background: rgba(251, 247, 242, 0.78);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 38px rgba(45, 53, 72, .14), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: box-shadow .3s ease, transform .3s ease;
}
.header.is-scrolled {
  box-shadow: 0 16px 46px rgba(45, 53, 72, .20), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.header__inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: auto;
  padding: 0 12px 0 22px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .04em;
}
.header__nav { display: flex; gap: 24px; margin-left: auto; }
.header__nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  opacity: .8;
  transition: opacity .15s;
}
.header__nav a:hover { opacity: 1; color: var(--blue); }
.header__cta { margin-left: 4px; padding: 9px 20px; font-size: 15px; }
/* В шапке кнопке некуда прыгать: общий btn:hover (translateY -4px, scale 1.04)
   вылезал за границы стеклянного бара. Оставляем только лёгкое затемнение. */
.header__cta:hover { transform: none; box-shadow: 0 6px 16px rgba(45, 53, 72, .18); }
.header__cta:active { transform: scale(.96); }
.header__burger { display: none; }

/* ===== Прогресс скролла ===== */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  z-index: 200;
}

/* ===== Градиентный акцент: медленный мягкий перелив голубой↔оранжевый ===== */
.accent-gradient {
  /* симметричный градиент (одинаковый по краям) — движение зациклено без стыка;
     плавные переходы через промежуточные тона, без резких границ */
  background: linear-gradient(100deg,
    var(--blue) 0%,
    var(--orange-soft) 24%,
    var(--orange) 50%,
    var(--orange-soft) 76%,
    var(--blue) 100%);
  background-size: 300% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 11s ease-in-out infinite alternate;
}
@keyframes shimmer {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .accent-gradient {
    animation: none;
    background: linear-gradient(100deg, var(--blue), var(--orange));
    background-clip: text;
    -webkit-background-clip: text;
  }
}

/* ===== Hero (полноэкранный: первый экран — только hero) ===== */
/* Общий .container — 1160px, и на широком мониторе hero упирался в этот потолок:
   на 2000px он занимал 58% ширины, а в мокапе плакат идёт почти в край (82.3%
   = 662 из 802). Поэтому у hero своя ширина — доля экрана, а не фикс.
   Потолок 1520px нужен, чтобы на очень широких мониторах заголовок не разносило
   на пол-экрана по высоте (у .hero min-height: 100vh). Кегль ниже привязан к той
   же пропорции (fs = .1336 × ширина контейнера), поэтому строки добирают до
   правого края и до потолка, и после него. */
.hero .container { width: min(1520px, 82.3%); }
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 0 28px;
  /* overflow не режем: блобы перетекают в следующий блок */
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1; /* за контентом, но поверх фона body — видно сквозь секции */
}
.hero__blob--orange {
  width: 440px; height: 440px;
  background: var(--orange-soft);
  top: 4%; right: -140px;
  opacity: .45;
}
.hero__blob--blue {
  width: 460px; height: 460px;
  background: var(--blue);
  bottom: -230px; left: -160px; /* сидит на границе блоков и мягко уходит в «Кто мы» */
  opacity: .22;
}
.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* воздуха между заголовком и подзаголовком было слишком много */
  gap: clamp(16px, 2vw, 30px);
}

/* ===== Hero: заголовок-плакат ===== */
.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0px, .3vw, 5px);
  /* Кегль считан, а не подобран: чтобы строки добирали до правого края,
     fs = .1336 × ширина контейнера (проверено — заполнение 100/99.5/99.5%).
     Контейнер = 82.3vw → fs = 11vw; на потолке 1520px → fs = 203px.
     Оба потолка срабатывают на одной ширине (~1847px), поэтому строки
     продолжают добирать до края и после него. */
  font-family: var(--font-display);
  font-size: clamp(38px, 10.85vw, 200px);
  font-weight: 700;
  /* Шаг строки в мокапе = 1.44 cap (замер: cap 62, шаг 89.5). При cap .7097em
     это ≈ 1em с учётом gap ниже — строки не липнут друг к другу, как было при .88. */
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__line {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 22px);
  /* слова и шейпы вылетают за край экрана; горизонтальный скролл
     не появляется благодаря overflow-x: clip на html/body */
  min-width: 0;
}
.hero__word { white-space: nowrap; }

/* Пилюля-фото: персонаж НЕ вписан в овал целиком — по мокапу голова и телефон
   выходят за верхний край пилюли, а режется только низ, по её скруглению.
   Поэтому вместо overflow: hidden — clip-path с отрицательным верхним инсетом:
   область отсечения продолжается на 150% высоты вверх (там персонаж виден),
   а снизу заканчивается ровно по краю пилюли со скруглением .37em = половина
   высоты. Важно: clip-path не создаёт containing block, поэтому вся система
   кадрирования --fx/--fy/--cx/--cy ниже продолжает считаться от самой пилюли. */
.hero__pill {
  position: relative;
  /* Размеры шейпов заданы в долях cap-height букв, как в мокапе, а не «на глаз»:
     cap Geist 700 = .7097em (замерено), в мокапе высота пилюли = ровно 1 cap. */
  height: .71em;
  border-radius: 999px;
  background: var(--peach);
  clip-path: inset(-150% 0 0 0 round 0 0 .355em .355em);
  /* Safari: без этого отсечение не работает у трансформируемого предка */
  isolation: isolate;
}
.hero__pill--peach { flex: 1; min-width: 40px; }
/* Пилюля с парнем: по мокапу тоже персиковая (не голубая), ширина 1.774 cap */
.hero__pill--photo { width: 1.259em; flex: none; }
/* Кадрирование по фокусной точке, а не по центру:
   --fx/--fy — точка на самом фото (лицо), --cx/--cy — куда её посадить внутри пилюли.
   Проценты в translate считаются от размеров фото, в left/top — от пилюли,
   поэтому лицо попадает в овал независимо от пропорций исходника. */
.hero__photo {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--cy, 50%);
  height: var(--ph, 200%);
  width: auto;
  max-width: none;
  translate: calc(-1 * var(--fx, 50%)) calc(-1 * var(--fy, 50%));
}
/* Вылет за верх пилюли считается, а не подбирается: макушка стоит на
   (cy - fy·ph) от верха пилюли, в долях её высоты. По мокапу макушка должна
   торчать над пилюлей на 31% (девушка) и 40% (парень) — отсюда cy.
   Прежний инвариант cy >= fy·ph (макушка внутри) теперь нарушен намеренно. */
.hero__photo--girl { --ph: 209%; --fx: 33%; --fy: 26%; --cx: 34%; --cy: 27%; }
.hero__photo--guy  { --ph: 158%; --fx: 46%; --fy: 20%; --cx: 50%; --cy: -12.8%; }

/* Кружок со стрелкой ↗ в конце первой строки.
   По мокапу — голубая заливка и СИНЯЯ стрелка (а не синий круг с белой). */
.hero__circle {
  flex: none;
  height: .71em; /* d = 1 cap */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.hero__circle svg { width: 45%; height: 45%; }
/* Фирменная стрелка ↗ (ФИГУРЫ/Формы/стрелка22, синяя #5B8DEF). В мокапе она
   заметно крупнее тонкой рисованной — занимает ~60% диаметра круга. */
.hero__circle-arrow { width: 58%; height: 58%; }

/* Шейпы в мокапе не голые: каждый сидит в своей подложке.
   Размеры сняты с мокапа при cap 62px и пересчитаны в доли cap:
   капсула облака 111×62 → 1.79×1 cap, само облако 65×39 → 59% ширины подложки;
   круг астериска d=61 → .984 cap, глиф в нём — 78% диаметра. */
.hero__badge {
  flex: none;
  height: .71em;
  display: grid;
  place-items: center;
}
.hero__badge--cloud {
  width: 1.271em;
  border-radius: 999px;
  background: var(--blue-light);
}
.hero__badge--star {
  height: .698em;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--blue);
}

.hero__shape { flex: none; }
.hero__shape--cloud { width: 59%; height: auto; }
/* Астериск в мокапе голубой, исходник залит синим. Перекрашен копией файла,
   а не CSS-маской: сайт открывают и через file://, где маска-SVG не грузится
   (каждый файл — свой origin) и глиф пропадает целиком. */
.hero__shape--star { width: 78%; height: auto; }

/* Подзаголовок + рисованная стрелка в одну линию */
.hero__lead {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.hero__subtitle {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  color: var(--navy-soft);
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Hero: появление при загрузке =====
   Слова вылетают по X: НОВОЕ слева, ПОКОЛЕНИЕ справа, БЛОГЕРОВ слева.
   Шейпы и овалы НЕ летят из-за края кадра: сначала по сторонам растягивается
   тонкая полоска, затем она раскрывается по высоте с перелётом (bounce). */
@keyframes hero-in-left  { from { opacity: 0; transform: translateX(calc(-100% - 16vw)); } }
@keyframes hero-in-right { from { opacity: 0; transform: translateX(calc(100% + 16vw)); } }
@keyframes hero-in-up    { from { opacity: 0; transform: translateY(28px); } }
@keyframes hero-pop {
  0%   { opacity: 0; transform: scale(0, .05); }
  1%   { opacity: 1; }
  38%  { transform: scale(1.05, .05); }  /* полоска растянулась по сторонам */
  62%  { transform: scale(1, 1.16); }    /* раскрылась по высоте с перелётом */
  78%  { transform: scale(1, .92); }
  90%  { transform: scale(1, 1.04); }
  100% { opacity: 1; transform: scale(1, 1); }
}
/* фото проявляется уже после того, как овал раскрылся — иначе его сплющит вместе с пилюлей */
@keyframes hero-photo-in {
  from { opacity: 0; translate: calc(-1 * var(--fx, 50%)) calc(-1 * var(--fy, 50%) + 12%); }
  to   { opacity: 1; translate: calc(-1 * var(--fx, 50%)) calc(-1 * var(--fy, 50%)); }
}

.hero [data-anim] {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(.16, .84, .3, 1);
  animation-fill-mode: both;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.hero [data-anim="left"]  { animation-name: hero-in-left; }
.hero [data-anim="right"] { animation-name: hero-in-right; }
.hero [data-anim="up"]    { animation-name: hero-in-up; }
.hero [data-anim="pop"] {
  animation-name: hero-pop;
  animation-duration: .78s;
  animation-timing-function: cubic-bezier(.4, .8, .5, 1);
}
.hero__photo {
  animation: hero-photo-in .5s cubic-bezier(.22, 1.61, .36, 1) both;
  /* стартует к концу раскрытия своей пилюли */
  animation-delay: calc(var(--d, 0s) + .42s);
}

@media (prefers-reduced-motion: reduce) {
  /* Убираем движение, но не саму анимацию: мягче, а не «ничего».
     Остаётся фейд с тем же стаггером — порядок появления читается, елозенья нет. */
  @keyframes hero-fade-in { from { opacity: 0; } to { opacity: 1; } }
  .hero [data-anim],
  .hero__photo {
    animation-name: hero-fade-in;
    animation-duration: .4s;
    animation-timing-function: ease-out;
    transform: none;
  }
  .hero__photo { translate: calc(-1 * var(--fx, 50%)) calc(-1 * var(--fy, 50%)); }
  html { scroll-behavior: auto; }
}

.hero__stats {
  position: relative;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  /* матовое стекло: полупрозрачный фон + размытие блобов сзади + тонкая кромка */
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 10px 34px rgba(45, 53, 72, .08), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.stat__num {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  color: var(--blue);
}
.stat__num--orange { color: var(--orange); }
.stat__label { color: var(--navy-soft); font-weight: 600; }

/* ===== Появление при скролле ===== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.16, .84, .3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Кто мы — широкая асимметрия ===== */
.about__top {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.about__title { max-width: 15ch; margin-bottom: 26px; }
.about__lead { max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--navy-soft); }
.about__lead p { margin: 0 0 1em; }

/* Парящие 3D-объекты справа — общий класс float-3d даёт мягкое парение */
.float-3d {
  filter: drop-shadow(0 24px 40px rgba(45, 53, 72, .22));
  will-change: transform;
}
/* Было: 3 объекта на независимых % координатах (6/4, 2/34, 40/2) — читалось
   как случайный разброс без общего центра. Теперь один кластер: все три
   позиционируются от ОДНОЙ точки (центр контейнера), внахлёст, как стопка
   стикеров — большой шар в центре, средний и звезда цепляются за его край. */
.about__objects {
  position: relative;
  height: clamp(200px, 22vw, 300px);
  display: grid;
  place-items: center;
}
/* Позиционирование через transform (не translate!): keyframe floaty анимирует
   именно свойство translate для парения — если положение задавать тем же
   translate, анимация переопределяет его на "translate:0 0" и все три
   объекта схлопываются в одну точку. transform не конфликтует с floaty. */
.about__obj { position: absolute; top: 50%; left: 50%; animation: floaty 7s ease-in-out infinite; }
.about__obj--1 { width: clamp(140px, 18vw, 220px); transform: translate(-50%, -50%); animation-duration: 7.5s; }
.about__obj--2 { width: clamp(76px, 9.5vw, 128px); transform: translate(-128%, -18%); animation-duration: 6s; }
.about__obj--3 { width: clamp(58px, 7vw, 92px);    transform: translate(62%, 46%);   animation-duration: 8s; }

/* Миссия — широкая панель с фирменной текстурой и 3D-объектом */
.about__mission {
  position: relative;
  background:
    radial-gradient(120% 160% at 100% 0%, #6f9bf2 0%, var(--blue) 46%, #4a78d8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 68px) clamp(32px, 5vw, 72px);
  margin-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(74, 120, 216, .28);
}
.about__mission p {
  margin: 0;
  max-width: 20ch;
  position: relative;
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.about__mission-label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .85;
  margin-bottom: 16px;
  font-weight: 800;
}
.about__mission-obj {
  position: absolute;
  right: clamp(-40px, -2vw, 0px); bottom: -30px;
  width: clamp(160px, 24vw, 320px);
  filter: drop-shadow(0 20px 40px rgba(20, 40, 90, .4));
  animation: floaty 8s ease-in-out infinite;
  pointer-events: none;
}
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.principle-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 2.6vw, 40px) clamp(24px, 2vw, 32px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .55s cubic-bezier(.22, 1.61, .36, 1), box-shadow .45s ease;
}
.principle-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1.61, .36, 1);
}
.principle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(45, 53, 72, .16);
}
.principle-card:hover::after { transform: scaleX(1); }
.principle-card__icon {
  width: clamp(72px, 6vw, 96px); height: clamp(72px, 6vw, 96px);
  object-fit: contain;
  margin: -6px 0 16px -8px;
  filter: drop-shadow(0 12px 22px rgba(91, 141, 239, .32));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.principle-card:hover .principle-card__icon { transform: scale(1.12) rotate(-5deg); }
.principle-card h3 { font-size: clamp(20px, 1.6vw, 24px); margin-bottom: 8px; }
.principle-card p { margin: 0; color: var(--navy-soft); }

/* ===== Кейсы (тёмная секция, full-bleed) ===== */
.section--dark { position: relative; background: var(--navy); color: var(--cream); overflow: hidden; }
.section--dark .section__title { color: var(--cream); }
.section--dark .section__subtitle { color: rgba(251,247,242,.7); }
.cases__sub { max-width: 40ch; }
.cases .container { position: relative; z-index: 1; }
/* Дорогая глубина без предметов: мягкое фирменное голубое свечение в нави-полотне */
.cases::before {
  content: '';
  position: absolute;
  width: 56vw; height: 56vw;
  right: -18vw; top: -14vw;
  background: radial-gradient(circle, rgba(91, 141, 239, .16), transparent 62%);
  pointer-events: none;
}
.cases::after {
  content: '';
  position: absolute;
  width: 40vw; height: 40vw;
  left: -16vw; bottom: -12vw;
  background: radial-gradient(circle, rgba(244, 200, 168, .10), transparent 60%);
  pointer-events: none;
}
/* Креативная карточка кейса: крупное фото + «трансформация» цифрами */
.case-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  background: rgba(251, 247, 242, .05);
  border: 1px solid rgba(251, 247, 242, .12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* субтитл выше уже даёт 48px — двойной отступ разваливал первый экран секции */
  margin-top: 20px;
  backdrop-filter: blur(6px);
}
.case-card__media { position: relative; margin: 0; min-height: 100%; }
.case-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  min-height: 420px;
}
.case-card__badge {
  position: absolute;
  top: 20px; left: 20px;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.case-card__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 72px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: linear-gradient(to top, rgba(20, 24, 36, .92) 20%, transparent);
}
.case-card__name { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: #fff; }
.case-card__role { font-size: 14px; color: rgba(251, 247, 242, .82); }
.case-card__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.case-card__transform-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-light);
  font-weight: 800;
  margin-bottom: 8px;
}
.case-card__transform-nums {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 900;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
}
.case-card__transform-nums b { color: rgba(251, 247, 242, .5); }
.case-card__transform-nums .grow {
  background: linear-gradient(100deg, var(--blue) 20%, var(--orange) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-card__transform-nums i {
  font-style: normal;
  color: var(--orange);
  font-size: .62em;
}
.case-card__story-text { margin: 0; font-size: 16px; color: rgba(251, 247, 242, .85); }
.case-card__results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.res {
  background: rgba(251, 247, 242, .07);
  border-radius: 16px;
  padding: 16px 18px;
  border-left: 3px solid rgba(251, 247, 242, .22);
}
.res--blue { border-left-color: var(--blue); }
.res--orange { border-left-color: var(--orange); }
.res strong { display: block; font-size: 20px; color: #fff; }
.res span { font-size: 13px; color: rgba(251, 247, 242, .65); }

.cta-repeat {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-repeat p { font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; margin: 0; }
.cta-repeat__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Команда ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .55s cubic-bezier(.22, 1.61, .36, 1), box-shadow .45s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 53, 72, .14);
}
.team-card__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
}
.team-card__avatar--navy { background: var(--navy); }
.team-card__avatar--blue { background: var(--blue); }
.team-card__avatar--peach { background: var(--peach); color: var(--navy); }
.team-card h3 { font-size: 19px; margin-bottom: 2px; }
.team-card__role {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}
.team-card p { margin: 0; font-size: 15px; color: var(--navy-soft); }

.press { margin-top: 56px; }
.press__title { font-weight: 900; font-size: 20px; text-align: center; margin-bottom: 20px; }
/* Плавная бесшовная лента в контейнере. Затухание широкое (14%), поэтому пилюли
   мягко растворяются в фоне у краёв, а не обрубаются и не «серят» на полпилюли —
   так делают премиальные логотип-строки. Движение линейное и медленное. */
.press__marquee {
  overflow: hidden;
  padding: 30px 0;
  /* Широкое затухание с плавным «носком» (полупрозрачные стопы у самого края),
     чтобы белая пилюля не серела на полпути, а мягко таяла в фоне — «в даль». */
  --fade: linear-gradient(90deg,
    transparent 0,
    rgba(0,0,0,.12) 4%,
    rgba(0,0,0,.5) 10%,
    #000 20%, #000 80%,
    rgba(0,0,0,.5) 90%,
    rgba(0,0,0,.12) 96%,
    transparent 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.press__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
/* Пауза при наведении — можно прочитать/навести на конкретную пилюлю */
@media (hover: hover) and (pointer: fine) {
  .press__marquee:hover .press__track { animation-play-state: paused; }
}
/* Каждая группа = ровно половина трека: внутренний gap + равный ему padding-right,
   поэтому -50% в конце цикла точно стыкует конец одной группы с началом второй. */
.press__set {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}
.press__set span {
  background: #fff;
  border-radius: 999px;
  padding: 13px 34px;
  font-weight: 800;
  color: var(--navy-soft);
  box-shadow: 0 6px 16px rgba(45, 53, 72, .10);
  white-space: nowrap;
}
@keyframes marquee {
  /* сдвиг ровно на ОДНУ из трёх групп (33.333%) — набегает следующая копия,
     стык бесшовный, а две оставшиеся группы всегда закрывают вьюпорт (нет дыры) */
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
@media (prefers-reduced-motion: reduce) {
  .press__track { animation: none; }
}

/* ===== Заявка (full-bleed синий) ===== */
.section--blue {
  position: relative;
  background: radial-gradient(130% 130% at 15% 0%, #6f9bf2 0%, var(--blue) 52%, #4a78d8 100%);
  color: #fff;
  overflow: hidden;
}
.section--blue .section__title { color: #fff; }
.apply__deco { position: absolute; pointer-events: none; z-index: 0; }
.apply__deco--1 { width: clamp(140px, 16vw, 260px); right: 3%; top: 12%; animation: floaty 8s ease-in-out infinite; }
/* Было right:30% — попадало прямо под форму, наружу торчал только край сердца
   («как-то криво стоит»). Перенесено в левый нижний угол секции, в открытое
   синее поле, где форма и текст его не перекрывают. */
.apply__deco--2 { width: clamp(70px, 7vw, 108px); left: 4%; bottom: 6%; animation: floaty 6s ease-in-out infinite; opacity: .9; }
.apply__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.apply__intro .section__title { font-size: clamp(34px, 5vw, 60px); }
.apply__intro p { font-size: clamp(18px, 2.4vw, 22px); opacity: .92; }
.apply__sticker { width: 220px; margin-top: 28px; transform: rotate(-6deg); }
.apply__form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--navy);
  box-shadow: 0 20px 48px rgba(45, 53, 72, .25);
}
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid rgba(45, 53, 72, .15);
  background: #fff;
  font: inherit;
  color: var(--navy);
  transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--blue); }
.field input.field--error { border-color: #e46a6a; }
.apply__submit { width: 100%; }
.apply__note { text-align: center; margin: 14px 0 6px; color: var(--navy-soft); font-weight: 600; }
.apply__alt { text-align: center; margin: 0; font-size: 15px; color: var(--navy-soft); }
.apply__success {
  margin: 16px 0 0;
  text-align: center;
  font-weight: 800;
  color: var(--blue);
}

/* ===== Материалы ===== */
.materials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.materials__head .section__subtitle { margin-bottom: 0; }
.materials__obj {
  /* было до 220px — шар «висел» оторванно в углу; меньше и ниже = часть головы */
  width: clamp(104px, 11vw, 156px);
  flex: none;
  filter: drop-shadow(0 22px 40px rgba(45, 53, 72, .2));
  animation: floaty 7s ease-in-out infinite;
}
.materials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.material-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .55s cubic-bezier(.22, 1.61, .36, 1), box-shadow .45s ease;
}
.material-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 53, 72, .14);
}
.material-card:nth-child(2) .material-card__type {
  background: rgba(244, 113, 29, .12);
  color: var(--orange);
}
.material-card:nth-child(3) .material-card__type {
  background: rgba(244, 200, 168, .4);
  color: #c05e1a;
}
.material-card img {
  width: clamp(84px, 7vw, 104px); height: clamp(84px, 7vw, 104px);
  object-fit: contain; margin: -4px 0 10px -6px;
  filter: drop-shadow(0 14px 24px rgba(91, 141, 239, .3));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.material-card:hover img { transform: scale(1.1) rotate(-4deg); }
.material-card__type {
  display: inline-block;
  background: rgba(91, 141, 239, .12);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.material-card h3 { font-size: 19px; flex-grow: 1; }
.material-card .btn { margin-top: 16px; }

/* ===== FAQ — широкая раскладка: липкий заголовок слева, список справа ===== */
.faq__container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq__aside { position: sticky; top: 120px; }
.faq__aside .section__subtitle { margin-bottom: 32px; max-width: 32ch; }
/* Контактная карточка — якорь левой колонки вместо парящей монеты */
.faq__contact {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.faq__contact-sticker {
  width: 84px;
  flex: none;
  margin-top: 2px;
  filter: drop-shadow(0 10px 20px rgba(45, 53, 72, .14));
}
.faq__contact-body { min-width: 0; }
.faq__contact-title { font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.faq__contact-text { margin: 0 0 18px; color: var(--navy-soft); font-size: 15px; }
.faq__list { min-width: 0; }
.faq-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.faq-item[open] { box-shadow: 0 18px 40px rgba(45, 53, 72, .14); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 56px 22px 26px;
  font-weight: 800;
  font-size: 18px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(91, 141, 239, .12);
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  /* та же пружина, что у раскрытия — плюсик доворачивается с лёгким перелётом */
  transition: transform .42s cubic-bezier(.34, 1.3, .64, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 22px; margin: 0; color: var(--navy-soft); }

.cta-repeat--light { color: var(--navy); }
.faq__container .cta-repeat--light { grid-column: 1 / -1; margin-top: 40px; }

/* ===== Модальное окно заявки =====
   Модалка (в отличие от поповера) появляется по центру → transform-origin центр,
   вход scale(.95)+opacity с ease-out ~.28s (по Emil: не scale(0), не ease-in). */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 36, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 40px 90px rgba(20, 24, 36, .45);
  opacity: 0;
  transform: scale(.95) translateY(10px);
  transition: opacity .24s ease-out, transform .28s cubic-bezier(.22, 1.61, .36, 1);
}
.modal.is-open .modal__dialog { opacity: 1; transform: scale(1) translateY(0); }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(45, 53, 72, .07);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .12s ease;
}
.modal__close:hover { background: rgba(45, 53, 72, .14); }
.modal__close:active { transform: scale(.92); }
.modal__head { margin-bottom: 26px; padding-right: 36px; }
.modal__title { font-size: clamp(26px, 4vw, 34px); font-weight: 900; letter-spacing: -.01em; margin: 10px 0 10px; }
.modal__text { margin: 0; color: var(--navy-soft); }
.modal__submit { width: 100%; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) {
  .modal__dialog { transform: none; transition: opacity .2s ease; }
  .modal.is-open .modal__dialog { transform: none; }
}

/* ===== Футер ===== */
.footer { background: var(--navy); color: var(--cream); padding: 56px 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 247, 242, .15);
}
.footer__name { font-weight: 900; font-size: 18px; margin: 16px 0 4px; }
.footer__tagline { color: rgba(251, 247, 242, .7); margin: 0; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contacts a:not(.btn) {
  color: rgba(251, 247, 242, .85);
  text-decoration: none;
  font-weight: 700;
}
.footer__nav a:hover, .footer__contacts a:not(.btn):hover { color: var(--blue-light); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__contacts .btn { margin-top: 10px; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  font-size: 14px;
  color: rgba(251, 247, 242, .6);
}
.footer__legal a { color: rgba(251, 247, 242, .6); }

/* ===== Декор из брендбука ===== */
.spin-slow { animation: spin 26s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* мягкое покачивание и парение для стикеров — «живой» премиальный вид */
@keyframes wiggle { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

@media (prefers-reduced-motion: reduce) {
  .spin-slow, .apply__sticker, .faq__sticker,
  .about__obj, .about__mission-obj, .materials__obj, .faq__obj,
  .apply__deco { animation: none !important; }
}

/* Hero — рисованная стрелка с петлёй (ФИГУРЫ/стрелки/Ресурс 2, перекрашена
   в персиковый). Прежняя «стрелка 15» была без петли, в мокапе петля есть.
   Поворот +25° ставит её в положение с мокапа: остриё влево на подзаголовок,
   дуга сверху, петля справа, хвост уходит вниз-вправо.
   Наклон — через независимый rotate: transform занят анимацией появления,
   а translate — параллаксом в main.js. */
.hero__arrow {
  flex: none;
  width: clamp(120px, 20vw, 240px);
  rotate: 25deg;
}

.cases { position: relative; }
.cases__head { position: relative; margin-bottom: 26px; }

/* Заявка — солнце-стикер в свободном нижнем углу левой колонки */
/* Было 12vh (~96px) — солнце-стикер отрывался от текста огромным провалом.
   Небольшой фикс-отступ: стикер сидит сразу под интро, блок центрируется цельно. */
.apply__stickers { margin-top: 40px; }
.apply__sticker {
  width: 210px;
  transform-origin: 50% 90%;
  animation: wiggle 6s ease-in-out infinite, floaty 6.5s ease-in-out infinite;
}

/* FAQ — стикер «Вам письмо» над финальным CTA, по центру, с запасом */
.faq__sticker {
  width: 132px;
  margin: 8px auto 20px;
  animation: floaty 6s ease-in-out infinite;
}

.materials .container { position: relative; }

/* Интерактивность декоративных стикеров — оживают при наведении.
   Только на устройствах с курсором: на таче hover «залипает» после тапа. */
.apply__sticker, .faq__sticker {
  pointer-events: auto;
  transition: scale .55s cubic-bezier(.34, 1.56, .64, 1), filter .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .apply__sticker:hover, .faq__sticker:hover {
    scale: 1.16;
  }
}
.about .container { position: relative; }

/* ===== Страница кейсов =====
   Переиспользует ровно те же компоненты, что и блок «Кейсы» на главной
   (.section--dark, .case-card, .cases__deco, eyebrow) — раньше здесь была
   отдельная светлая вёрстка (.project-card), из-за чего страница выглядела
   как другой сайт. Ритм секций светлый→тёмный→светлый повторяет главную:
   красить всю страницу в navy было хуже — стеклянная светлая шапка нелепо
   просвечивала поверх тёмного контента, а тёмный подвал сливался с контентом
   без единой границы. */
/* Первый экран страницы кейсов собран плотнее: заголовок-постер, субтитл и верх
   карточки видны сразу, без прокрутки ради смысла. Снизу у светлой шапки малый
   отступ — тёмное полотно начинается почти сразу после субтитла. */
.page-hero { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(20px, 2.5vw, 36px); }
.page-hero .section__subtitle { margin-bottom: 0; }
/* тёмной секции с карточкой — полноценное дыхание снизу, карточка не липнет к границе */
.page-hero + .section--dark { padding-bottom: clamp(72px, 8vw, 120px); }
.page-hero + .section--dark .case-card { margin-top: clamp(28px, 3.5vw, 52px); }

/* Карточки-заглушки будущих кейсов — светлые, в паре со светлой CTA-секцией
   перед подвалом (тот же паттерн, что и в конце FAQ на главной). */
.case-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: clamp(64px, 8vw, 112px);
}
.case-soon {
  padding: clamp(36px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(91, 141, 239, .10), rgba(244, 113, 29, .08));
  border: 2px dashed rgba(91, 141, 239, .4);
  text-align: center;
}
.case-soon h2 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.case-soon p { margin: 0; color: var(--navy-soft); }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .hero__lead { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__arrow { align-self: center; }
  /* Новые широкие сетки редизайна → одна колонка на планшете/телефоне */
  .about__top { grid-template-columns: 1fr; gap: 24px; }
  .about__objects { height: clamp(160px, 40vw, 240px); order: -1; }
  .faq__container { grid-template-columns: 1fr; gap: 28px; }
  .faq__aside { position: static; }
  .faq__obj { display: none; }
  .materials__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* На мобилке шар занимал отдельную пустую строку без явной цели — читалось
     как случайный разрыв. Тот же паттерн, что и для cases__deco/apply__deco/
     faq__obj: чисто декоративные парящие объекты на узких экранах скрываем. */
  .materials__obj { display: none; }
  .apply__deco { display: none; }
  .about__mission-obj { width: 130px; right: -18px; bottom: -26px; opacity: .55; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .materials__grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .case-card__img { min-height: 380px; object-position: 50% 12%; }
  .case-card__body { padding: 28px; }
  .apply__inner { grid-template-columns: 1fr; gap: 24px; }
  .apply__stickers { display: none; }
  .case-soon-grid { grid-template-columns: 1fr; }
  .about__mission { padding-right: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { min-height: 0; }
  .hero__blob--orange { width: 260px; height: 260px; right: -100px; }
  .hero__blob--blue { width: 240px; height: 240px; left: -110px; }
  .hero__stats { grid-template-columns: 1fr; }
  /* на телефоне строка «БЛОГЕРОВ * фото» не влезает — оставляем только звезду */
  .hero__pill--photo { display: none; }
  .principles { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: var(--cream);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(45, 53, 72, .1);
    transform: translateY(-130%);
    transition: transform .25s ease;
    z-index: 99;
  }
  .header__nav.is-open { transform: translateY(0); }
  .header__cta { margin-left: auto; padding: 10px 18px; font-size: 15px; }
  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .header__burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .2s, opacity .2s;
  }
  .header__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
