/* ===== NGB — фирменные переменные из брендбука ===== */
:root {
  --cream: #E8F1FB;
  --navy: #232B40;
  --blue: #2B5AE8;
  --blue-light: #B8D1F5;
  --peach: #F4C8A8;
  --orange: #F04A21;
  --orange-soft: #FF8A3D;
  --pill-yellow: #FFE066;
  --navy-soft: rgba(35, 43, 64, 0.72);
  --font-display: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  /* Единая шкала внутренних отступов карточек */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 16px;
  --gap-xl: 24px;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 8px 32px rgba(35, 43, 64, 0.10);
  --header-h: 92px;
}

*, *::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);
  /* Матовое стекло собрано слоями в фоне body, а не оверлеем поверх страницы */
  background-color: #D8E7F8;
  background-image:
    radial-gradient(85% 65% at 76% 4%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%),
    radial-gradient(65% 55% at 10% 2%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 64%),
    linear-gradient(168deg, #F6FAFE 0%, #E6F1FC 40%, #D5E6F8 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  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='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .13;
  pointer-events: none;
  z-index: 2000;
  animation: grain 1.1s steps(6) infinite;
  mix-blend-mode: multiply;
  will-change: transform;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  16% { transform: translate(-14px, 9px); }
  33% { transform: translate(11px, -13px); }
  50% { transform: translate(-9px, 16px); }
  66% { transform: translate(15px, 6px); }
  83% { transform: translate(-12px, -10px); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
@media (max-width: 720px) {
  body::after { animation: none; opacity: .1; }
}

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; }

:root { --wide: 1440px; --pad: clamp(20px, 4.6vw, 88px); }
.container { width: min(var(--wide), 100% - var(--pad) * 2); margin-inline: auto; }

.section { padding: clamp(56px, 6.2vw, 96px) 0; }

.poster-title {
  margin: 0 0 .16em;
  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(16px, 2.4vw, 44px); }
.poster-title .hero__line + .hero__line + .hero__line { margin-left: clamp(32px, 4.8vw, 88px); }
.section--dark .poster-title { color: var(--cream); }
.section--blue .poster-title { color: #fff; }
.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 {
  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; text-wrap: pretty; }
p { text-wrap: pretty; }

.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;
  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(35, 43, 64, .20); }
.btn:active { transform: translateY(-1px) scale(.96); transition-duration: .15s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #2450DC; }
.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(1520px, 82.3%);
  margin: 14px auto 0;
  border-radius: 22px;
  background: rgba(232, 241, 251, 0.90);
  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(35, 43, 64, .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(35, 43, 64, .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; }
/* Блок с заявкой и контактами — только для полноэкранного мобильного меню */
.nav__foot { display: none; }
.nav__close { display: none; }
.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; }
.header__cta:hover { transform: none; box-shadow: 0 6px 16px rgba(35, 43, 64, .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) ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 0 28px;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}
.hero__blob--orange {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--orange) 0%, var(--orange-soft) 55%, transparent 72%);
  top: 2%; right: -150px;
  opacity: .62;
}
.hero__blob--blue { display: none; }
.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);
  font-family: var(--font-display);
  font-size: clamp(38px, 10.85vw, 200px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__line {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 22px);
  min-width: 0;
}
.hero__word { white-space: nowrap; }

.hero__pill {
  position: relative;
  height: .71em;
  border-radius: 999px;
  background: var(--peach);
  clip-path: inset(-150% 0 0 0 round 0 0 .355em .355em);
  isolation: isolate;
}
.hero__pill--peach { flex: 1; min-width: 40px; }
.hero__pill--photo { width: 1.259em; flex: none; }
.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%));
}
/* Растворяем нижний край кадра — срез по светлой одежде читался полосой */
.hero__photo {
  --fade: linear-gradient(180deg, #000 90%, transparent 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.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;
  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%; }
.hero__circle-arrow { width: 58%; height: 58%; }

.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; }
.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; }

@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; }
}

.niches {
  position: relative;
  /* Тот же левый край, что у заголовка hero */
  max-width: min(var(--wide), 100% - var(--pad) * 2);
  margin-inline: auto;
  margin-top: clamp(14px, 2.2vw, 34px);
  margin-bottom: -36px;
  overflow: hidden;
  padding: 20px 0 42px;
  --fade: linear-gradient(90deg,
    transparent 0,
    rgba(0,0,0,.12) 3%,
    rgba(0,0,0,.5) 8%,
    #000 16%, #000 84%,
    rgba(0,0,0,.5) 92%,
    rgba(0,0,0,.12) 97%,
    transparent 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.niches__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.niches__set { display: flex; gap: 14px; padding-right: 14px; }
.niches__set span {
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  padding: 14px 30px;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(35, 43, 64, .08), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.niches__set span.is-accent {
  background: linear-gradient(120deg, var(--orange-soft), var(--orange));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(240, 74, 33, .28);
}
.niches__set span.is-dark {
  background: var(--navy);
  border-color: transparent;
  color: var(--cream);
  box-shadow: 0 12px 26px rgba(35, 43, 64, .24);
}
@media (prefers-reduced-motion: reduce) {
  .niches__track { animation: none; }
}

/* ===== Появление при скролле ===== */
.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: 62ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--navy-soft); }
.about__lead p { margin: 0 0 1em; text-wrap: pretty; }

.float-3d {
  filter: drop-shadow(0 24px 40px rgba(35, 43, 64, .22));
  will-change: transform;
}
.about__objects {
  position: relative;
  height: clamp(200px, 22vw, 300px);
  display: grid;
  place-items: center;
}
.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; }

.about__mission {
  position: relative;
  background:
    radial-gradient(120% 160% at 100% 0%, #4A7BF0 0%, var(--blue) 46%, #1E45C8 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-sticker {
  position: absolute;
  right: clamp(-10px, 1vw, 24px);
  bottom: clamp(-16px, -1vw, -6px);
  width: clamp(96px, 11vw, 168px);
  rotate: -8deg;
  pointer-events: none;
  filter: drop-shadow(0 14px 30px rgba(20, 40, 90, .35));
}
.about__mission p {
  margin: 0;
  max-width: 34ch;
  position: relative;
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.mission-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.22em);
}
.mission-word--accent { color: var(--orange-soft); }
.about__mission.is-visible .mission-word {
  animation: mission-word-in .6s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(.35s + var(--i) * .28s);
}
@keyframes mission-word-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mission-word { opacity: 1; transform: none; }
  .about__mission.is-visible .mission-word { animation: none; }
}
.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::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--orange);
}
.principle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(35, 43, 64, .16);
}
.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(43, 90, 232, .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); font-size: clamp(15px, 1.15vw, 17px); }
.nowrap { white-space: nowrap; }

/* ===== Кейсы (тёмная секция, 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: 56ch; }
.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(43, 90, 232, .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(232, 241, 251, .05);
  border: 1px solid rgba(232, 241, 251, .12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  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(232, 241, 251, .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(232, 241, 251, .5); }
.case-card__transform-nums .grow { color: var(--orange); }
.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(232, 241, 251, .85); }
.case-card__results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.res {
  background: rgba(232, 241, 251, .07);
  border-radius: 16px;
  padding: 16px 18px;
  border-left: 3px solid rgba(232, 241, 251, .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(232, 241, 251, .65); }
.res--link { padding: 0; border-left-color: var(--blue-light); transition: background .25s ease; }
.res--link a {
  display: block;
  padding: 16px 40px 16px 18px;
  text-decoration: none;
  position: relative;
}
.res--link a::after {
  content: '→';
  position: absolute;
  right: 16px; top: 50%;
  translate: 0 -50%;
  color: var(--blue-light);
  font-size: 17px;
  transition: translate .3s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .res--link:hover { background: rgba(232, 241, 251, .12); }
  .res--link:hover a::after { translate: 4px -50%; }
}
.res--link a:active { transform: scale(.98); }

.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;
  max-width: 100%;
}
.cta-repeat__actions .btn { max-width: 100%; }

/* ===== Команда ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.team-card {
  display: flex;
  flex-direction: column;
  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(35, 43, 64, .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: var(--gap-lg);
}
.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__ava {
  display: block;
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--gap-lg);
  background: var(--peach);
  box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(35, 43, 64, .18);
}
.team-card__ava img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 22%);
  transform: scale(var(--zoom, 1)) rotate(var(--rot, 0deg));
  transform-origin: var(--fx, 50%) var(--fy, 22%);
}
.team-card h3 { font-size: 19px; margin-bottom: var(--gap-xs); }
.team-card__role {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: var(--gap-md);
}
.team-card p { margin: 0; font-size: 15px; color: var(--navy-soft); }
.team-card--more {
  grid-column: 1 / -1;
  display: flex;
  /* row: базовый .team-card задаёт column */
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 14px;
  background: linear-gradient(120deg, rgba(43, 90, 232, .08), rgba(240, 74, 33, .06));
  border: 2px dashed rgba(43, 90, 232, .35);
  box-shadow: none;
}
.team-card--more:hover { transform: none; box-shadow: none; }
.team-card__more-num {
  flex: none;
  font-size: 32px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.02em;
}
.team-card--more p { font-size: 17px; font-weight: 700; color: var(--navy); white-space: nowrap; }

.press__title { margin-top: 56px; font-weight: 900; font-size: 20px; text-align: center; margin-bottom: 20px; }
.press__marquee {
  position: relative;
  max-width: min(var(--wide), 100% - var(--pad) * 2);
  margin-inline: auto;
  overflow: hidden;
  margin-bottom: -36px;
  padding: 20px 0 42px;
  --fade: linear-gradient(90deg,
    transparent 0,
    rgba(0,0,0,.12) 3%,
    rgba(0,0,0,.5) 8%,
    #000 16%, #000 84%,
    rgba(0,0,0,.5) 92%,
    rgba(0,0,0,.12) 97%,
    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; }
}
.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(35, 43, 64, .10);
  white-space: nowrap;
}
/* Сдвиг на ширину одной группы — в пикселях из JS (--shift), процент как фолбэк */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--shift, 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%, #4A7BF0 0%, var(--blue) 52%, #1E45C8 100%);
  color: #fff;
  overflow: hidden;
}
.section--blue .section__title { color: #fff; }
.section--blue .hero__circle {
  background: linear-gradient(140deg, #FFE0C6, var(--peach));
  box-shadow: 0 0 0 .05em rgba(255, 255, 255, .55), 0 .12em .3em rgba(20, 40, 90, .3);
}
.apply__deco { position: absolute; pointer-events: none; z-index: 0; }
.apply__deco--1 { width: clamp(110px, 12vw, 176px); left: 4%; top: 2%; animation: floaty 8s ease-in-out infinite; }
.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__form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--navy);
  box-shadow: 0 20px 48px rgba(35, 43, 64, .25);
}
.field { display: block; margin-bottom: 18px; }
/* Honeypot: скрыто визуально, но остаётся в DOM для ботов */
.field-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.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(35, 43, 64, .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%; }
/* Согласие на обработку ПДн — обязательная галочка перед отправкой */
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--navy-soft);
  cursor: pointer;
}
.field-consent input {
  flex: none;
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.field-consent a { color: var(--blue); font-weight: 700; }
.field-consent a:hover { color: var(--orange); }
.field-consent.field--error { color: var(--orange); }
.field-consent.field--error input { outline: 2px solid var(--orange); outline-offset: 2px; }

.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 {
  width: clamp(104px, 11vw, 156px);
  flex: none;
  filter: drop-shadow(0 22px 40px rgba(35, 43, 64, .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(35, 43, 64, .14);
}
.material-card:nth-child(2) .material-card__type {
  background: rgba(43, 90, 232, .14);
  color: var(--blue);
}
.material-card:nth-child(3) .material-card__type {
  background: rgba(244, 200, 168, .45);
  color: #c05e1a;
}
.material-card img {
  width: clamp(84px, 7vw, 104px); height: clamp(84px, 7vw, 104px);
  object-fit: contain; margin: -4px 0 var(--gap-md) -6px;
  filter: drop-shadow(0 14px 24px rgba(43, 90, 232, .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(240, 74, 33, .14);
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: var(--gap-md);
}
/* Растянутый h3 держит кнопки всех карточек на одной линии */
.material-card h3 { font-size: 19px; margin: 0; flex-grow: 1; }
.material-card .btn { margin-top: var(--gap-lg); }

.club-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(26px, 3vw, 38px) clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 180% at 100% 0%, #4A7BF0 0%, var(--blue) 48%, #1E45C8 100%);
  color: #fff;
  box-shadow: 0 24px 56px rgba(43, 90, 232, .26);
}
.club-banner__obj {
  position: absolute;
  right: -40px; bottom: -70px;
  width: clamp(150px, 18vw, 240px);
  opacity: .35;
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}
.club-banner__body { position: relative; z-index: 1; flex: 1; }
.club-banner__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 8px;
}
.club-banner__title { margin: 0 0 6px; font-size: clamp(20px, 2vw, 27px); font-weight: 900; letter-spacing: -.01em; }
.club-banner__text { margin: 0; max-width: 62ch; opacity: .92; }
.club-banner .btn { position: relative; z-index: 1; flex: none; background: var(--cream); color: var(--navy); }
.club-banner .btn:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .club-banner__obj { animation: none; }
}

/* ===== FAQ — широкая раскладка: липкий заголовок слева, список справа ===== */
.faq { padding-top: 0; }
.faq__list .faq-item:last-child { margin-bottom: 0; }
.faq__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq__list { order: 1; }
.faq__aside { order: 2; 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(35, 43, 64, .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(35, 43, 64, .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(43, 90, 232, .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; }

.case-item {
  background: rgba(232, 241, 251, .05);
  border: 1px solid rgba(232, 241, 251, .14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.case-item__head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3vw, 44px);
}
.case-item__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--cream);
}
.case-item__role { margin: 12px 0 0; color: rgba(232, 241, 251, .68); font-size: 15.5px; }
.case-item__scale {
  text-align: right;
  color: var(--blue-light);
}
.case-item__scale b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--cream);
}
.case-item__scale span { font-size: 13.5px; color: rgba(232, 241, 251, .6); }

.case-item__body {
  background: var(--cream);
  border-top: 2px solid var(--navy);
  padding: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.case-block {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--navy);
  padding: clamp(20px, 2.2vw, 28px);
}
.case-block__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.case-block p { margin: 0; color: var(--navy-soft); font-size: 15.5px; line-height: 1.6; }
.case-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.case-block li {
  position: relative;
  padding-left: 20px;
  color: var(--navy-soft);
  font-size: 15.5px;
  line-height: 1.5;
}
.case-block li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
/* «Что сделали» — во всю ширину, в две колонки */
.case-block--did { grid-column: 1 / -1; }
.case-block--did ul { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 26px; }

/* Результат — тёмная плашка */
.case-block--result {
  grid-column: 1 / -1;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 4px 5px 0 var(--blue);
}
.case-block--result .case-block__label { color: var(--blue-light); }
.case-block--result ul {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 22px;
}
.case-block--result li {
  padding-left: 0;
  color: var(--cream);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.45;
}
.case-block--result li::before {
  position: static;
  display: block;
  width: 22px; height: 3px;
  margin-bottom: 10px;
  background: var(--orange);
}
.case-nda {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(35, 43, 64, .08);
  border: 1px dashed rgba(35, 43, 64, .3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.case-team {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(35, 43, 64, .12);
  padding-top: clamp(18px, 2vw, 26px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.case-team__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-soft);
  width: 100%;
}
.case-team__person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 18px 7px 7px;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.case-team__ava {
  display: block;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--peach);
}
.case-team__ava img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 18%);
  transform: scale(var(--zoom, 1));
}
.case-team__person i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}
.case-team__id { display: grid; line-height: 1.2; }
.case-team__name { font-size: 14.5px; font-weight: 800; color: var(--navy); }
.case-team__role { font-size: 12px; color: var(--navy-soft); }

.cases__slider { position: relative; }
.cases__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.cases__track::-webkit-scrollbar { display: none; }
.cases__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin-top: 0;
  margin-bottom: 0;
}
.cases__nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(20px, 2.4vw, 30px);
}
.cases__arrow {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(232, 241, 251, .28);
  background: rgba(232, 241, 251, .06);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.cases__arrow img {
  width: 42px;
  filter: brightness(1.7) saturate(1.2);
}
.cases__arrow--next img { scale: -1 1; }
@media (hover: hover) and (pointer: fine) {
  .cases__arrow:hover { background: var(--blue); border-color: var(--blue); }
  .cases__arrow:hover img { filter: brightness(3); }
  .cases__arrow:not(.cases__arrow--next):hover { transform: translateX(-3px); }
  .cases__arrow--next:hover { transform: translateX(3px); }
}
.cases__arrow:active { transform: scale(.94); }
.cases__arrow[disabled] { opacity: .3; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .cases__track { scroll-behavior: auto; }
}

.cases__team-note {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(32px, 4vw, 56px);
}
.cases__team-note h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--navy);
}
.cases__team-note p { color: var(--navy-soft); margin: 0 0 22px; }
.cases__team-note__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .case-item__head { grid-template-columns: 1fr; align-items: start; }
  .case-item__scale { text-align: left; }
  .case-item__body { grid-template-columns: 1fr; }
}

.case-stage-card {
  display: flex;
  flex-direction: column;
  background: rgba(232, 241, 251, .05);
  border: 1px solid rgba(232, 241, 251, .14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(28px, 3.5vw, 52px);
}
.case-stage__head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 48px) clamp(24px, 2.8vw, 36px);
  min-height: clamp(230px, 23.5vw, 332px);
}
.case-stage__id { align-self: end; }
.case-stage__badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-stage__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.6vw, 92px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--cream);
}
/* Длинные названия — меньшим кеглем */
.case-stage__name--long { font-size: clamp(26px, 3.9vw, 54px); letter-spacing: -.025em; }
.case-stage__role { margin: 10px 0 0; color: rgba(251,247,242,.65); font-size: 15px; }
.case-stage__desc { margin: 0; color: rgba(251,247,242,.8); font-size: clamp(14px, 1.35vw, 16px); }

/* Сетка сцены: [стикеры] [фигура] [стикеры], три ряда равной высоты */
.case-stage {
  /* ширина фигуры и производная от неё высота сцены — одни для всех карточек */
  --fig-w: clamp(220px, 25vw, 340px);
  --stage-pad: clamp(28px, 3.5vw, 56px);
  position: relative;
  flex: 1;
  background: var(--cream);
  padding: var(--stage-pad) clamp(20px, 3vw, 48px) 0;
  min-height: calc(var(--fig-w) * 4 / 3 + var(--stage-pad));
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--fig-w) minmax(0, 1fr);
  /* треть высоты фигуры на ряд */
  grid-template-rows: repeat(3, calc(var(--fig-w) * 4 / 9));
  column-gap: clamp(10px, 1.6vw, 24px);
  align-items: center;
}
.case-stage__photo {
  position: relative;
  z-index: 2;
  width: var(--fig-w);
  display: block;
  margin-inline: auto;
  border-radius: 999px 999px 0 0;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: end;
  object-fit: cover;
  object-position: 50% 12%;
  aspect-ratio: 3 / 4;
}
/* Заглушка для кейсов без портрета */
.case-stage__figure {
  position: relative;
  z-index: 2;
  width: var(--fig-w);
  aspect-ratio: 3 / 4;
  /* сброс браузерного margin у figure */
  margin: 0 auto;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: end;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(43, 90, 232, .16), transparent 62%),
    linear-gradient(180deg, var(--blue-light), rgba(184, 209, 245, .35));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.case-stage__figure img {
  width: 58%;
  filter: drop-shadow(0 22px 40px rgba(20, 40, 90, .28));
  animation: floaty 7s ease-in-out infinite;
}
.case-stage__figure figcaption {
  position: absolute;
  bottom: 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  .case-stage__figure img { animation: none; }
}

.case-stage__aside { display: flex; flex-direction: column; gap: 20px; }
.case-producers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.case-producers__label {
  width: 100%;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232, 241, 251, .45);
}
.case-producer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 6px;
  background: rgba(232, 241, 251, .08);
  border: 1px solid rgba(232, 241, 251, .2);
  border-radius: 999px;
  text-decoration: none;
}
.case-producer img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 18%);
  transform: scale(var(--zoom, 1)) rotate(var(--rot, 0deg));
  transform-origin: var(--fx, 50%) var(--fy, 18%);
  flex: none;
}
.case-producer__id { display: flex; flex-direction: column; line-height: 1.2; }
.case-producer__name { font-size: 13px; font-weight: 800; color: var(--cream); }
.case-producer__role { font-size: 10.5px; font-weight: 700; color: rgba(232, 241, 251, .55); }

.case-stage__stickers { display: contents; }
.case-sticker {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  box-shadow: 4px 5px 0 var(--navy);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}
.case-sticker b {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
}
.case-sticker span { font-size: 11.5px; font-weight: 700; color: rgba(35, 43, 64, .62); }
.case-sticker--grow { background: var(--orange); }
.case-sticker--grow b { color: #fff; font-size: clamp(20px, 2.4vw, 32px); }
.case-sticker--grow span { color: rgba(255, 255, 255, .8); }
.case-sticker--blue { background: var(--blue); }
.case-sticker--blue b { color: #fff; }
.case-sticker--blue span { color: rgba(255, 255, 255, .78); }
.case-sticker--peach { background: var(--peach); }
.case-sticker--cream { background: #fff; }
/* Слева 1–2, справа 3–5; justify-self прижимает стикер к фигуре */
.case-sticker--1 { grid-column: 1; grid-row: 1; justify-self: end; rotate: -6deg; }
.case-sticker--2 { grid-column: 1; grid-row: 2; justify-self: end; rotate: 4deg; }
.case-sticker--3 { grid-column: 3; grid-row: 1; justify-self: start; rotate: 5deg; }
.case-sticker--4 { grid-column: 3; grid-row: 2; justify-self: start; rotate: -4deg; }
.case-sticker--5 { grid-column: 3; grid-row: 3; justify-self: start; rotate: 3deg; }
.case-sticker {
  transition: translate .45s cubic-bezier(.22, 1, .36, 1),
              rotate .4s cubic-bezier(.22, 1, .36, 1),
              scale .4s cubic-bezier(.22, 1, .36, 1),
              box-shadow .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  a.case-sticker:hover { rotate: 0deg; scale: 1.05; box-shadow: 6px 7px 0 var(--navy); }
}

a.case-sticker { cursor: pointer; background: var(--blue); padding-right: 46px; }
a.case-sticker b { color: #fff; }
a.case-sticker .case-sticker__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .92);
  font-weight: 800;
}
a.case-sticker .case-sticker__go {
  position: absolute;
  right: 12px; top: 50%;
  translate: 0 -50%;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  animation: sticker-nudge 2.4s ease-in-out infinite;
}
@keyframes sticker-nudge {
  0%, 78%, 100% { translate: 0 -50%; }
  86%           { translate: 4px -50%; }
}
@media (prefers-reduced-motion: reduce) {
  a.case-sticker b { animation: none; }
}
.case-stage__seal {
  position: absolute;
  z-index: 3;
  left: 5%; bottom: 8%;
  width: clamp(78px, 8vw, 112px);
  animation: spin 26s linear infinite;
}
@media (max-width: 960px) {
  .case-stage__head { grid-template-columns: 1fr; align-items: start; }
  /* Фиксированная высота шапки — граница держится на одном уровне у всех карточек */
  .cases__slide .case-stage__head {
    min-height: 580px;
    align-content: space-between;
  }
  .case-stage {
    display: block;
    padding-bottom: clamp(20px, 4vw, 32px);
    min-height: 0;
    background: var(--cream);
  }
  .case-stage__photo { width: min(280px, 72%); margin: 0 auto; border-radius: 999px 999px 24px 24px; }
  .case-stage__stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
  }
  .case-sticker {
    /* relative — иначе .case-sticker__go улетает к предку выше по дереву */
    position: relative;
    rotate: none;
    box-shadow: 3px 4px 0 var(--navy);
  }
  .case-stage__seal { display: none; }
  .case-stage__aside { gap: 16px; }
  .case-stage__desc { display: none; }
}

.resident { margin-top: clamp(56px, 7vw, 96px); }
.resident + .resident { margin-top: clamp(64px, 8vw, 112px); }
.resident__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(232, 241, 251, .14);
}
.resident__ava { position: relative; flex: none; }
.resident__ava img:first-child {
  width: clamp(84px, 9vw, 124px);
  height: clamp(84px, 9vw, 124px);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 3px solid var(--blue);
}
.resident__shape {
  position: absolute;
  right: -10px; bottom: -6px;
  width: clamp(30px, 3.2vw, 44px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
.resident__badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.resident__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--cream);
}
.resident__note {
  margin: 0;
  max-width: 56ch;
  color: rgba(232, 241, 251, .68);
  font-size: clamp(14px, 1.3vw, 16px);
}
.resident__count {
  flex: none;
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.resident__count b {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--orange);
}
.resident__count span {
  font-size: 13px;
  line-height: 1.25;
  color: rgba(232, 241, 251, .6);
  text-align: left;
}
.resident__sub { margin-top: clamp(28px, 3.4vw, 44px); }
.resident__sub-title {
  margin: 0 0 4px;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 800;
  color: var(--cream);
}
.resident__next {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 22px 26px;
  border: 2px dashed rgba(232, 241, 251, .18);
  border-radius: var(--radius);
  color: rgba(232, 241, 251, .55);
  font-size: 15px;
  text-align: center;
}
@media (max-width: 720px) {
  .resident__head { grid-template-columns: auto 1fr; gap: 16px; }
  .resident__count { grid-column: 1 / -1; justify-content: flex-start; }
  .resident__note { font-size: 14px; }
}
.press-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 2.8vw, 36px);
}
.press-grid a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 40px 12px 20px;
  position: relative;
  text-decoration: none;
  background: rgba(232, 241, 251, .07);
  border: 1px solid rgba(232, 241, 251, .14);
  border-radius: 999px;
  transition: background .25s ease, border-color .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.press-grid b { font-size: 15px; font-weight: 800; color: var(--cream); }
.press-grid i {
  font-style: normal;
  font-size: 12px;
  color: rgba(184, 209, 245, .75);
  letter-spacing: .02em;
}
.press-grid li:nth-child(4n+1) a { background: rgba(43, 90, 232, .22); border-color: rgba(43, 90, 232, .5); }
.press-grid li:nth-child(6n+3) a { background: rgba(240, 74, 33, .18); border-color: rgba(240, 74, 33, .45); }
.press-grid a::after {
  content: '↗';
  position: absolute;
  right: 15px; top: 50%;
  translate: 0 -50%;
  color: var(--blue-light);
  font-size: 15px;
  transition: translate .3s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .press-grid a:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
  }
  .press-grid a:hover b,
  .press-grid a:hover i { color: #fff; }
  .press-grid a:hover::after { translate: 3px -50%; color: #fff; }
}
.press-grid a:active { transform: scale(.985); }

.guide {
  max-width: min(100%, 900px);
  margin-inline: auto;
}

.guide-page .page-hero .container > * { max-width: 900px; margin-inline: auto; }
.guide-page .page-hero .poster-title {
  align-items: flex-start;
  font-size: clamp(32px, 5.6vw, 76px);
}
.guide-page .page-hero .poster-title .hero__line { flex-wrap: wrap; row-gap: .12em; }
.guide__lead {
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--navy-soft);
  max-width: 62ch;
  margin: 0 0 clamp(28px, 3vw, 40px);
}
.guide-page .page-hero .pill-cloud { max-width: 900px; }

.guide__toc {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.8vw, 38px) clamp(24px, 3vw, 44px);
  box-shadow: var(--shadow);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.guide__toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.guide__toc ol {
  counter-reset: toc;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(28px, 3vw, 56px);
}
.guide__toc li {
  counter-increment: toc;
  break-inside: avoid;
  padding-bottom: 13px;
}
.guide__toc ol { margin-bottom: -13px; }
.guide__toc a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  padding-left: 34px;
  position: relative;
  transition: color .25s ease, translate .25s cubic-bezier(.22, 1, .36, 1);
}
.guide__toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13.5px;
}
@media (hover: hover) and (pointer: fine) {
  .guide__toc a:hover { color: var(--blue); translate: 3px 0; }
}

.guide h2 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--navy);
  margin: clamp(48px, 5.4vw, 82px) 0 20px;
  scroll-margin-top: 110px;
}
.guide h2::before {
  content: '';
  display: block;
  width: 56px; height: 3px;
  border-radius: 2px;
  background: var(--blue);
  margin: 0 0 clamp(16px, 1.6vw, 22px);
}
.guide h3 {
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 800;
  margin: 32px 0 10px;
}
.guide p { margin: 0 0 1.05em; line-height: 1.75; font-size: clamp(16.5px, 1.3vw, 18.5px); color: var(--navy-soft); }
.guide strong { color: var(--navy); font-weight: 800; }
.guide h2 + p {
  font-size: clamp(17.5px, 1.45vw, 21px);
  line-height: 1.6;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 1.3em;
}

.guide__flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(22px, 2.4vw, 32px) clamp(24px, 2.8vw, 38px);
  background: var(--navy);
  border-radius: var(--radius-lg);
  margin: clamp(26px, 3vw, 38px) 0;
}
.guide__flow span {
  color: var(--cream);
  font-weight: 800;
  font-size: clamp(14.5px, 1.35vw, 18px);
}
.guide__flow i {
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 20px);
}
/* На узком экране цепочка разворачивается вертикально, стрелки — вниз */
@media (max-width: 640px) {
  .guide__flow { flex-direction: column; }
  .guide__flow i { display: inline-block; transform: rotate(90deg); }
}

.guide__steps {
  counter-reset: step;
  /* сброс padding-inline-start у ol */
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: clamp(24px, 2.6vw, 34px) 0;
}
.guide__steps li {
  counter-increment: step;
  position: relative;
  padding: clamp(22px, 2.2vw, 30px) clamp(22px, 2.2vw, 28px) clamp(22px, 2.2vw, 30px) clamp(22px, 2.2vw, 28px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.6;
  font-size: 15.5px;
  color: var(--navy-soft);
}
.guide__steps li::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}
.guide__steps li:nth-child(4n+2)::before { background: var(--orange); }
.guide__steps li:nth-child(4n+3)::before { background: var(--pill-yellow); color: var(--navy); }
.guide__steps li:nth-child(4n+4)::before { background: var(--peach); color: var(--navy); }
.guide__steps b { display: block; color: var(--navy); font-size: 17.5px; margin-bottom: 8px; line-height: 1.3; }

.guide__errors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  margin: clamp(24px, 2.6vw, 34px) 0 8px;
}
.mistake {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mistake::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--orange);
}
.mistake:nth-child(3n+2)::before { background: var(--blue); }
.mistake:nth-child(3n+3)::before { background: var(--pill-yellow); }
.mistake__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.mistake:nth-child(3n+2) .mistake__num { color: var(--blue); }
.mistake:nth-child(3n+3) .mistake__num { color: #B8860B; }
.mistake__title { font-size: clamp(17px, 1.7vw, 20px); font-weight: 800; margin: 0 0 10px; color: var(--navy); }
.mistake p { margin: 0 0 12px; }
.mistake__note {
  border-left: 3px solid;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 8px !important;
}
.mistake__note b { font-weight: 800; }
.mistake__note--bad { border-color: var(--orange); background: rgba(240, 74, 33, .07); }
.mistake__note--good { border-color: var(--blue); background: rgba(43, 90, 232, .07); }
.mistake__note--good:last-child, .mistake__note--bad:last-child { margin-bottom: 0 !important; }

.guide__compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: clamp(24px, 2.6vw, 34px) 0;
}
.guide__compare div {
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--radius);
  border: 2px solid;
}
.guide__compare b {
  display: block;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.guide__compare p { margin: 0; font-size: 16px; line-height: 1.6; }
.guide__compare--before { border-color: rgba(240, 74, 33, .35); background: rgba(240, 74, 33, .05); }
.guide__compare--before b { color: var(--orange); }
.guide__compare--after { border-color: rgba(43, 90, 232, .35); background: rgba(43, 90, 232, .05); }
.guide__compare--after b { color: var(--blue); }

.guide__quote {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 3.4vw, 52px);
  margin: clamp(32px, 3.6vw, 52px) 0;
}
.guide__quote-who {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin: 0 0 16px;
}
.guide__quote p { color: rgba(232, 241, 251, .88); font-size: clamp(16px, 1.55vw, 20px); line-height: 1.6; }
.guide__quote p:last-child { margin-bottom: 0; }

.guide__result {
  display: flex;
  align-items: baseline;
  gap: 8px 20px;
  flex-wrap: wrap;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 2.8vw, 38px) clamp(28px, 3vw, 42px);
  margin: clamp(26px, 3vw, 38px) 0;
}
.guide__result b {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.guide__result span { font-weight: 700; font-size: clamp(15px, 1.3vw, 17px); opacity: .94; }

.guide__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 clamp(32px, 3.4vw, 48px);
}
.guide__metrics div {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 32px) clamp(22px, 2.2vw, 28px);
  box-shadow: var(--shadow);
}
.guide__metrics b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.85vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 10px;
  white-space: nowrap;
}
/* Резерв под 2 строки нужен, только когда карточки стоят в ряд */
@media (min-width: 600px) {
  .guide__metrics b { min-height: 2em; }
}
.guide__metrics span { font-size: 14.5px; color: var(--navy-soft); line-height: 1.4; }
.guide__author {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 241, 251, .18);
  font-size: 14px !important;
  color: rgba(232, 241, 251, .65) !important;
}
.guide__author strong { color: var(--cream); }

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 6px;
  margin: clamp(20px, 2.4vw, 30px) 0 clamp(28px, 3vw, 40px);
}
.pill-cloud span {
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(13.5px, 1.35vw, 16.5px);
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 4px 14px rgba(35, 43, 64, .12);
}
.pill-cloud span:nth-child(5n+1) { background: var(--blue);        rotate: -3deg; }
.pill-cloud span:nth-child(5n+2) { background: var(--orange);      rotate: 2deg;  margin-left: -6px; }
.pill-cloud span:nth-child(5n+3) { background: var(--pill-yellow); color: var(--navy); rotate: -2deg; }
.pill-cloud span:nth-child(5n+4) { background: var(--blue-light);  color: var(--navy); rotate: 3deg;  margin-left: -8px; }
.pill-cloud span:nth-child(5n+5) { background: var(--peach);       color: var(--navy); rotate: -1deg; }
@media (prefers-reduced-motion: no-preference) {
  .pill-cloud span { transition: rotate .35s cubic-bezier(.22, 1, .36, 1), translate .35s cubic-bezier(.22, 1, .36, 1); }
  @media (hover: hover) and (pointer: fine) {
    .pill-cloud span:hover { rotate: 0deg; translate: 0 -3px; }
  }
}

.guide__club {
  background: radial-gradient(120% 140% at 100% 0%, #4A7BF0 0%, var(--blue) 55%, #1E45C8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  margin: clamp(32px, 3.6vw, 48px) 0;
}
.guide__club-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 12px;
}
.guide__club h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.guide__club p { color: rgba(255, 255, 255, .88); margin-bottom: 18px; }
.club-accent { color: var(--orange-soft); font-weight: 800; }
.guide__club .btn--club {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.guide__club .btn--club:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.guide__download {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 2px dashed rgba(43, 90, 232, .4);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: clamp(32px, 4vw, 48px) 0 0;
}
.guide__download-txt { flex: 1; min-width: 200px; }
.guide__download b { display: block; font-size: 16px; color: var(--navy); margin-bottom: 3px; }
.guide__download span { font-size: 14px; color: var(--navy-soft); }

.guide__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.8vw, 34px) clamp(26px, 3vw, 40px);
  margin: clamp(32px, 3.6vw, 48px) 0 0;
}
/* специфичнее .guide p — иначе перебивает margin */
.guide__cta .guide__cta-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--navy);
}

.guide__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 34px);
  margin: clamp(32px, 4vw, 48px) 0 0;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .25s ease;
}
.guide__next-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}
.guide__next-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--cream);
}
.guide__next-arrow {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(232, 241, 251, .1);
  display: grid;
  place-items: center;
  font-size: 19px;
  transition: translate .3s cubic-bezier(.22, 1, .36, 1), background .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .guide__next:hover { background: #1a2032; transform: translateY(-2px); }
  .guide__next:hover .guide__next-arrow { translate: 5px 0; background: var(--blue); }
}
.guide__next:active { transform: scale(.985); }
@media (max-width: 560px) {
  .guide__next { flex-direction: column; align-items: flex-start; }
  .guide__next-arrow { align-self: flex-end; margin-top: -38px; }
}
@media (max-width: 960px) {
  .guide__lead { max-width: none; }
}
@media (max-width: 720px) {
  .guide__toc ol { columns: 1; }
  .guide__compare { grid-template-columns: 1fr; }
  .guide__steps { grid-template-columns: 1fr; }
  .guide__errors { grid-template-columns: 1fr; }
}

.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(35, 43, 64, .07);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .12s ease;
}
.modal__close:hover { background: rgba(35, 43, 64, .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; }
}

/* ===== Кейсы: мини-карточки + модалка ===== */
.cases-mini__head {
  text-align: center;
  max-width: 620px;
  margin: clamp(52px, 6vw, 84px) auto clamp(24px, 2.6vw, 32px);
}
.cases-mini__head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin: 0 0 8px; color: var(--cream); }
.cases-mini__head p { margin: 0; color: rgba(232, 241, 251, .68); font-size: 15px; }
.cases-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
}
.case-mini {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  row-gap: 12px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  background: rgba(232, 241, 251, .05);
  border: 1px solid rgba(232, 241, 251, .13);
  border-radius: 20px;
  padding: 22px;
  color: var(--cream);
  font-family: inherit;
  transition: transform .28s cubic-bezier(.34, 1.28, .64, 1), background .2s ease, border-color .2s ease;
}
.case-mini:hover, .case-mini:focus-visible {
  transform: translateY(-4px);
  background: rgba(232, 241, 251, .09);
  border-color: rgba(232, 241, 251, .28);
}
.case-mini__badge {
  justify-self: start;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--blue-light);
  color: var(--navy);
}
/* Резерв под две строки имени */
.case-mini__name { font-size: 19px; font-weight: 800; line-height: 1.25; min-height: 2.5em; }
.case-mini__role { font-size: 13.5px; line-height: 1.4; min-height: 2.8em; color: rgba(232, 241, 251, .62); }
.case-mini__stats {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(232, 241, 251, .12);
}
.case-mini__stat { display: grid; gap: 1px; font-size: 12.5px; line-height: 1.35; color: rgba(232, 241, 251, .62); }
.case-mini__stat b { font-size: 15px; color: var(--cream); font-weight: 800; }
.case-mini__cta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Модалка кейса: помещается в экран целиком, без внутренней прокрутки --- */
.modal--case { padding: clamp(12px, 2vw, 24px); }
/* Прокручивается вся карточка одним куском */
.modal__dialog--case {
  width: min(1060px, 100%);
  max-height: min(92dvh, 780px);
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background: #262F45;
  border: 1px solid rgba(232, 241, 251, .14);
  box-shadow: 0 40px 90px rgba(12, 16, 28, .55);
}
.modal__case-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Крестик плавает поверх прокручиваемого контента */
.modal--case .modal__close {
  top: 14px; right: 14px;
  z-index: 2;
  background: #323C57;
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(12, 16, 28, .4);
}
.modal--case .modal__close:hover { background: #3D4869; }

.case-modal-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 32px);
  color: var(--cream);
}
.case-modal__head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  padding-right: 44px;
}
.case-modal__id { display: grid; gap: 10px; align-content: start; justify-items: start; }
.case-modal__badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--orange);
  color: #fff;
}
.case-modal__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}
.case-modal__role { margin: 0; font-size: 14px; line-height: 1.4; color: rgba(232, 241, 251, .62); }
.case-modal__intro { display: grid; gap: 16px; align-content: start; }
.case-modal__desc { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(232, 241, 251, .82); }
.case-modal__producers { display: grid; gap: 8px; }
.case-modal__producers-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(232, 241, 251, .45);
}
.case-modal__producers-list { display: flex; flex-wrap: wrap; gap: 8px; }
.case-modal__producer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  background: rgba(232, 241, 251, .08);
  border: 1px solid rgba(232, 241, 251, .12);
}
.case-modal__producer img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.case-modal__producer-id { display: grid; gap: 1px; }
.case-modal__producer-name { font-size: 13px; font-weight: 800; line-height: 1.2; }
.case-modal__producer-role { font-size: 11.5px; line-height: 1.2; color: rgba(232, 241, 251, .55); }

.case-modal__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.case-modal__stat {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(232, 241, 251, .07);
  border: 1px solid rgba(232, 241, 251, .1);
  font-size: 12px;
  line-height: 1.3;
  color: rgba(232, 241, 251, .6);
}
.case-modal__stat b { font-size: 17px; font-weight: 800; color: var(--cream); letter-spacing: -.01em; }

.case-modal__blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.case-modal__author {
  margin: 0;
  font-size: 12.5px;
  color: rgba(232, 241, 251, .5);
}
.case-modal__block {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(232, 241, 251, .05);
  border: 1px solid rgba(232, 241, 251, .1);
}
.case-modal__block--wide { grid-column: 1 / -1; }
.case-modal__block--result { background: rgba(43, 90, 232, .16); border-color: rgba(120, 160, 250, .3); }
.case-modal__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(232, 241, 251, .5);
}
.case-modal__block--result .case-modal__label { color: var(--blue-light); }
.case-modal__block p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(232, 241, 251, .84); }
.case-modal__block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.case-modal__block li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(232, 241, 251, .84);
}
.case-modal__block li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.case-modal__block--result li::before { background: var(--blue-light); }
.case-modal__nda { font-size: 13.5px; font-weight: 700; color: var(--blue-light); }

/* Объёмные блоки — в две колонки */
.case-modal__block--wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

/* Одиночный блок в ряду — на всю ширину */
.case-modal__block:first-child:has(+ .case-modal__block--wide),
.case-modal__block--wide + .case-modal__block--result,
.case-modal__block:last-child:nth-child(odd) { grid-column: 1 / -1; }
.case-modal__block--wide + .case-modal__block--result ul,
.case-modal__block:last-child:nth-child(odd) ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

@media (max-width: 900px) {
  .case-modal__head { grid-template-columns: 1fr; gap: 16px; }
  .case-modal__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-modal__blocks { grid-template-columns: 1fr; }
  .case-modal__block--wide ul,
  .case-modal__block--wide + .case-modal__block--result ul,
  .case-modal__block:last-child:nth-child(odd) ul { grid-template-columns: 1fr; }
  .modal__dialog--case { max-height: 92dvh; }
  .case-modal-card { gap: 16px; }
}
@media (max-width: 640px) {
  .cases-mini { grid-template-columns: 1fr; }
  /* В одну колонку резерв не нужен */
  .case-mini__name, .case-mini__role { min-height: 0; }
  .case-modal__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case-modal__name { font-size: 22px; }
}

/* ===== Страница услуг ===== */
.services {
  display: grid;
  gap: clamp(20px, 2.2vw, 28px);
  margin-bottom: clamp(40px, 4.4vw, 64px);
}
/* Номер и заголовок слева, перечень справа, «Результат» — полосой внизу */
.service {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(26px, 3vw, 42px);
}
.service__head { display: grid; gap: var(--gap-md); align-content: start; justify-items: start; }
.service__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--orange);
}
.service:nth-child(2) .service__num { color: var(--blue); }
.service:nth-child(3) .service__num { color: #B8860B; }
.service__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--navy);
}
.service__lead { margin: 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--navy-soft); }
.service__body { display: grid; gap: var(--gap-md); align-content: start; }
.service__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.service__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.service__list li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.5;
  color: var(--navy-soft);
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.service:nth-child(2) .service__list li::before { background: var(--blue); }
.service:nth-child(3) .service__list li::before { background: #B8860B; }
.service__result {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  gap: var(--gap-sm);
  padding: clamp(18px, 1.8vw, 24px) clamp(20px, 2vw, 28px);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cream);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}
.service__result-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
}
/* Кнопка во всю ширину карточки */
.service__cta { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service__cta { justify-self: stretch; text-align: center; }
}

/* ===== Футер ===== */
.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(232, 241, 251, .15);
}
.footer__name { font-weight: 900; font-size: 18px; margin: 16px 0 4px; }
.footer__tagline { color: rgba(232, 241, 251, .7); margin: 0; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contacts a:not(.btn) {
  color: rgba(232, 241, 251, .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(232, 241, 251, .6);
}
.footer__legal a { color: rgba(232, 241, 251, .6); }
.footer__legal { justify-content: space-between; align-items: flex-start; }
.footer__req {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}
.footer__req a { text-decoration: none; }
.footer__req a:hover { color: var(--orange-soft); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
@media (max-width: 720px) {
  .footer__legal { flex-direction: column; gap: 16px; }
}

/* ===== Декор из брендбука ===== */
.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__arrow {
  flex: none;
  width: clamp(120px, 19vw, 230px);
  rotate: -4deg;
}

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

.apply__stickers { margin-top: 64px; }
.apply__sticker {
  width: 210px;
  transform-origin: 50% 90%;
  animation: wiggle 6s ease-in-out infinite, floaty 6.5s ease-in-out infinite;
}

.faq__sticker {
  width: 132px;
  margin: 8px auto 20px;
  animation: floaty 6s ease-in-out infinite;
}

.materials .container { position: relative; }

.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 { scale: 1.08; }
  .faq__sticker:hover { scale: 1.16; }
}
.about .container { position: relative; }

.page-hero { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(16px, 2vw, 28px); }
.page-hero .section__subtitle { margin-bottom: 0; margin-top: 4px; }
.page-hero + .section--dark { padding-bottom: clamp(72px, 8vw, 120px); }
.page-hero + .section--dark .case-card { margin-top: clamp(28px, 3.5vw, 52px); }

.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(43, 90, 232, .10), rgba(240, 74, 33, .08));
  border: 2px dashed rgba(43, 90, 232, .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); }
.case-soon-grid--single { grid-template-columns: 1fr; }

.case-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.case-draft {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff 30%, rgba(43, 90, 232, .07) 100%);
  border: 2px dashed rgba(43, 90, 232, .34);
}
.case-draft__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff, var(--peach));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 10px 26px rgba(35, 43, 64, .12);
  overflow: hidden;
}
.case-draft__photo img {
  width: 74%;
  filter: drop-shadow(0 10px 18px rgba(35, 43, 64, .22));
  animation: floaty 7s ease-in-out infinite;
}
.case-draft__photo-note {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.case-draft__badge {
  display: inline-block;
  background: rgba(43, 90, 232, .12);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.case-draft h2 { font-size: clamp(19px, 1.7vw, 23px); color: var(--navy); margin: 0 0 8px; }
.case-draft p { margin: 0 0 18px; font-size: 15px; color: var(--navy-soft); }
.case-draft__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-draft__metrics li {
  background: rgba(255, 255, 255, .75);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}
.case-draft__metrics b { display: block; font-size: 22px; font-weight: 900; color: var(--blue); line-height: 1.1; }
.case-draft__metrics span { font-size: 11px; font-weight: 700; color: var(--navy-soft); }
@media (prefers-reduced-motion: reduce) {
  .case-draft__photo img { animation: none; }
}

/* ===== Адаптив ===== */
@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 { order: 0; position: static; }
  .faq__list { order: 1; }
  .faq__obj { display: none; }
  .materials__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .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; }
  .club-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .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; }
  .case-draft-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; padding-bottom: 16px; }
  .poster-title { font-size: 27px; }
  .about.section { padding-top: 44px; }
  .hero__blob--orange { width: 260px; height: 260px; right: -100px; }
  .hero__blob--blue { width: 240px; height: 240px; left: -110px; }
  .hero__pill--photo { display: none; }
  .principles { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .about__objects { display: none; }
  .case-draft { grid-template-columns: 1fr; }
  .case-draft__photo { width: 120px; }

  .header__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    /* Всё содержимое — одним центрированным блоком */
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(130% 130% at 15% 0%, #4A7BF0 0%, var(--blue) 52%, #1E45C8 100%);
    /* 88px = плавающая шапка 72px плюс воздух */
    padding: 88px var(--pad) 28px;
    gap: clamp(2px, 1.2vh, 10px);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s .42s;
    z-index: 99;
    overscroll-behavior: contain;
    overflow-y: auto;
    counter-reset: navitem;
  }
  .header__nav.is-open { visibility: visible; transform: translateY(0); transition-delay: 0s; }
  /* Своя кнопка закрытия: бургер шапки перекрыт открытым меню */
  .nav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px;
    right: var(--pad);
    width: 46px; height: 46px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background .2s ease, transform .18s ease;
  }
  .nav__close:active { background: rgba(255, 255, 255, .26); transform: scale(.92); }
  /* «Снежинка» из брендбука — в пустой правый угол */
  .header__nav::after {
    content: '';
    position: absolute;
    right: -78px;
    top: 18px;
    width: 260px; height: 260px;
    background: url("../assets/shape-asterisk-light.svg") no-repeat center / contain;
    opacity: .12;
    pointer-events: none;
    animation: spin 34s linear infinite;
  }

  .header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(232, 241, 251, .94);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    backdrop-filter: blur(28px) saturate(1.6);
  }
  .header__nav a {
    font-family: var(--font-display);
    font-size: clamp(30px, 8.5vw, 46px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.03em;
    line-height: 1.16;
    /* На синем фоне — белый текст */
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .42s cubic-bezier(.32, .72, 0, 1);
  }
  /* Нумерация пунктов 01…07 — счётчиком, без правок разметки */
  .header__nav > a { counter-increment: navitem; display: flex; align-items: baseline; gap: 12px; }
  .header__nav > a::before {
    content: counter(navitem, decimal-leading-zero);
    font-size: .34em;
    font-weight: 800;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .45);
  }
  .header__nav a:active { color: var(--peach); }
  .header__nav.is-open > a,
  .header__nav.is-open .nav__foot { opacity: 1; transform: none; }
  /* nth-of-type: крестик стоит первым ребёнком nav и сбивает nth-child */
  .header__nav.is-open > a:nth-of-type(1) { transition-delay: .10s; }
  .header__nav.is-open > a:nth-of-type(2) { transition-delay: .15s; }
  .header__nav.is-open > a:nth-of-type(3) { transition-delay: .20s; }
  .header__nav.is-open > a:nth-of-type(4) { transition-delay: .25s; }
  .header__nav.is-open > a:nth-of-type(5) { transition-delay: .30s; }
  .header__nav.is-open > a:nth-of-type(6) { transition-delay: .35s; }
  .header__nav.is-open > a:nth-of-type(7) { transition-delay: .40s; }
  .header__nav.is-open .nav__foot { transition-delay: .46s; }

  /* Нижний блок меню: заявка + контакты */
  .nav__foot {
    display: grid;
    /* Колонка по ширине контактов, кнопка её заполняет */
    grid-template-columns: max-content;
    gap: 14px;
    width: 100%;
    margin-top: clamp(24px, 4.5vh, 40px);
    padding-top: clamp(20px, 3.5vh, 30px);
    border-top: 1px solid rgba(255, 255, 255, .22);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .42s cubic-bezier(.32, .72, 0, 1);
  }
  .nav__foot .nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    /* stretch: кнопка по ширине колонки */
    justify-self: stretch;
    padding: 14px 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(12, 26, 64, .26);
    /* сброс opacity:0 от .header__nav a */
    opacity: 1;
    transform: none;
    transition: transform .18s ease;
  }
  .nav__foot .nav__cta::before { content: none; }
  .nav__foot .nav__cta:active { transform: scale(.96); color: var(--blue); }
  .nav__contacts { display: grid; gap: 6px; }
  .nav__contacts a {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
    color: rgba(255, 255, 255, .78);
    opacity: 1;
    transform: none;
    transition: color .2s ease;
  }
  .nav__contacts a::before { content: none; }
  .nav__contacts a:active { color: var(--peach); }
  .header__cta {
    margin-left: auto;
    padding: 0 16px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    border-width: 1px;
  }
  .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); }

  .poster-title {
    font-size: clamp(32px, 9.6vw, 46px);
    letter-spacing: -.035em;
    line-height: .98;
    margin-bottom: .5em;
  }
  .poster-title .hero__line + .hero__line,
  .poster-title .hero__line + .hero__line + .hero__line { margin-left: 0; }
  .poster-title--sm { font-size: clamp(30px, 8.6vw, 40px); }
  .section__title { font-size: clamp(28px, 8vw, 38px); line-height: 1.06; }
  .section__subtitle { font-size: 16px; margin-bottom: 28px; }

  .hero__arrow { display: none; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 1; padding: 15px 12px; font-size: 15px; }
  .hero__subtitle { font-size: 16px; }
  /* На телефоне пилюли облегчены до тегов */
  .niches { margin-top: 20px; margin-bottom: -30px; padding: 10px 0 34px; }
  .niches__set { gap: 8px; padding-right: 8px; }
  .niches__set span {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: none;
    border-color: rgba(255, 255, 255, .55);
  }
  .niches__set span.is-accent,
  .niches__set span.is-dark { box-shadow: none; }

  .about__objects { height: 132px; }
  .about__obj--1 { width: 104px; }
  .about__obj--2 { width: 58px; }
  .about__obj--3 { width: 44px; }

  .footer { padding: 40px 0 20px; }
  .footer__inner { gap: 26px; padding-bottom: 24px; }
  .footer__nav,
  .footer__contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }
  .footer__contacts { align-items: start; }
  .footer__brand img { width: 56px; height: auto; }
  .footer__name { font-size: 16px; margin: 12px 0 4px; }
  .footer__tagline { font-size: 14px; }
  .footer__legal { gap: 8px 18px; padding-top: 16px; font-size: 13px; }

  :root { --header-h: 78px; }
  .header {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    width: calc(100% - 24px);
    border-radius: 18px;
  }
  .header__inner { height: 56px; padding: 0 8px 0 14px; gap: 10px; }
  .header__logo img { width: 38px; height: 38px; }

  .section { padding: 48px 0; }
  .about__mission { padding: 32px 26px; }
  .about__mission-sticker { display: none; }
  .about__mission p { font-size: 24px; }
  .case-card__body { padding: 24px; }
  .case-card__img { min-height: 300px; }
  .case-card__results { grid-template-columns: 1fr; gap: 10px; }
}

/* ===== Баннер про cookie ===== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 2vw, 24px);
  translate: -50% 0;
  z-index: 400;
  width: min(720px, calc(100% - 24px));
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(35, 43, 64, .26);
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity .45s ease,
              transform .6s cubic-bezier(.34, 1.28, .64, 1);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie.is-expanded { width: min(760px, calc(100% - 24px)); }
.cookie__inner { padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px); overflow: hidden; }

/* Компактное состояние */
.cookie__short {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
}
.cookie__text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy-soft);
}
.cookie__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.cookie__actions .btn { padding: 11px 22px; font-size: 14.5px; }
/* Второе действие — текстом, не кнопкой */
.cookie__link {
  background: none;
  border: none;
  padding: 6px 2px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(35, 43, 64, .3);
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.cookie__link:hover { color: var(--blue); text-decoration-color: var(--blue); }

/* Раскрытый выбор */
.cookie__details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(35, 43, 64, .12);
  display: grid;
  gap: 14px;
}
/* display: grid сильнее атрибута hidden — иначе свёрнутый блок занимает место */
.cookie__details[hidden] { display: none; }
.cookie__opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.cookie__opt input {
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.cookie__opt input:disabled { cursor: default; opacity: .55; }
.cookie__opt-body { display: grid; gap: 3px; }
.cookie__opt-body b { font-size: 14.5px; font-weight: 800; color: var(--navy); }
.cookie__opt-body i {
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  color: var(--navy-soft);
}
.cookie__details-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cookie__policy {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.cookie__policy:hover { color: var(--orange); }
.cookie__details-foot .btn { padding: 11px 24px; font-size: 14.5px; }

@media (max-width: 640px) {
  .cookie__short { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie__actions { justify-content: space-between; }
  .cookie__actions .btn { flex: 1; justify-content: center; }
  .cookie__details-foot { flex-direction: column; align-items: stretch; }
  .cookie__details-foot .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie { transition: opacity .2s ease; transform: none; }
}

/* Старт лент — после применения шрифта и расчёта шага в пикселях */
.niches__track, .press__track { animation-play-state: paused; }
.marquee-ready .niches__track,
.marquee-ready .press__track { animation-play-state: running; }

/* ===== Печать / экспорт в PDF ===== */
@media print {
  .header, .cookie, .modal, .progress, body::before, body::after,
  .footer__nav, .footer__contacts, .btn, .service__cta, .case-mini__cta,
  .header__cta, .hero__actions, .cta-repeat, .apply, [data-modal-open] {
    display: none !important;
  }
  body { background: #fff !important; }
  .page-hero, .section { padding-top: 12px !important; }
  a { color: inherit; text-decoration: none; }
  /* Не режем блоки-плашки по границе листа */
  .guide__club, .guide__quote, .guide__result, .guide__compare > div,
  .guide__metrics > div, .mistake, .guide__toc, .guide__next,
  .case-modal-card, .service {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
