/* =========================================================
   Tokens (из Figma)
   ========================================================= */
:root {
  --c-bg-dark: #04030c;
  --c-bg-navy: #08071b;
  --c-card: #252433;
  --c-body: #b5b5c2;
  --c-white: #fff;
  --c-red: #ff0000;
  /* Кнопки: белый текст на этих красных — контраст ≥ 5.3:1 (WCAG AA) */
  --grad-red: linear-gradient(-51deg, #d10024 4%, #d60046 91%);
  /* Акцентный текст на тёмном фоне — контраст ≥ 5.5:1 */
  --grad-text: linear-gradient(90deg, #ff3d5e 0%, #ff4a3d 100%);
  --c-muted: #8f8da8;
  --c-bg-hero: #09081d;
  --c-surface: #12111f;
  --c-surface-2: #1c1b29;
  --c-card-hover: #2b2a3b;
  --c-header: rgba(8, 7, 27, .92);
  --c-backdrop: rgba(4, 3, 12, .72);
  --accent: #ff4d6d;            /* акцент для текста/рамок, ≥ 5:1 на фоне */
  --accent-rgb: 255, 20, 70;    /* для свечений */
  --accent2-rgb: 90, 70, 255;   /* второй тон свечений */
  --btn-fg: #fff;
  --mark-dot: 255, 61, 94;      /* цвет точки и «заряда» в знаке Hero */
  --mark-tint: 150, 110, 255;   /* оттенок части частиц */

  --container: 1720px;
  --pad: clamp(16px, 5.2vw, 100px);
  --radius-lg: clamp(24px, 2.08vw, 40px);

  /* Типографическая шкала (мобайл → десктоп) */
  --fs-h1: clamp(2.125rem, 1.5rem + 2.5vw, 3.5rem);       /* 34 → 56  заголовок Hero */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.75vw, 3rem);       /* 30 → 48  заголовки секций */
  --fs-xl: clamp(1.375rem, 1.15rem + .95vw, 2rem);        /* 22 → 32  крупный абзац-заявление */
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.75rem);        /* 20 → 28  заголовки карточек и пунктов */
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);      /* 17 → 20  лид-абзац */
  --fs-p: clamp(.9375rem, .9rem + .15vw, 1.0625rem);      /* 15 → 17  основной текст */
  --fs-sm: .875rem;                                       /* 14       подписи, даты, кнопки-теги */
  --fs-xs: .8125rem;                                      /* 13       надзаголовки */
  --fs-num: clamp(2.75rem, 2.1rem + 2.6vw, 4.5rem);       /* 44 → 72  крупные цифры */
  --fs-tag: clamp(1.125rem, .95rem + .75vw, 1.75rem);     /* 18 → 28  теги в бегущей строке */
  --fs-btn: 1rem;
  --fs-h4: var(--fs-h3);

  --section-y: clamp(72px, 7.3vw, 136px);

  /* Кривые сглаживания */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-drop: cubic-bezier(.34, 1.45, .55, 1);   /* лёгкий «пружинящий» перелёт капли */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg-dark);
  color: var(--c-white);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.h2 { margin: 0; font-size: var(--fs-h2); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.h4 { margin: 0; font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.icon-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--c-red);
  border-radius: 20px;
  background: var(--c-bg-dark);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
}
.btn-outline:hover { background: var(--c-card-hover); box-shadow: 0 0 0 1px var(--c-red), 0 0 24px rgba(var(--accent-rgb), .45); }
.btn-outline:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* =========================================================
   GOOEY — «жидкая капля»
   ---------------------------------------------------------
   .gooey__fill   — слой под SVG-фильтром #goo: заливка карточки (.gooey__body) + капля (.gooey__drop).
                    Текст и картинки в фильтр НЕ попадают, поэтому не размываются.
   --notch        — радиус выреза в углу карточки (анимируется через @property).
   --btn / --gap  — диаметр кнопки и ширина зазора. Всё в clamp(), поэтому пересчитывается на любом экране.
   ========================================================= */
@property --notch {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.gooey {
  --btn: clamp(64px, 5.1vw, 98px);
  --gap: clamp(10px, 0.75vw, 14px);
  --fill: var(--c-card);
  --notch-open: calc(var(--btn) / 2 + var(--gap));
  position: relative;
  isolation: isolate;
}
.gooey--lg {
  --btn: clamp(84px, 10.1vw, 194px);
  --gap: clamp(12px, 1.15vw, 22px);
}



.gooey__fill {
  position: absolute;
  inset: 0;
  z-index: -2;
  filter: url(#goo);
  pointer-events: none;
}

/* Маска-вырез: круг в правом нижнем углу, центр совпадает с центром кнопки */
.gooey__body,
.gooey__masked {
  -webkit-mask: radial-gradient(circle at calc(100% - var(--btn) / 2) calc(100% - var(--btn) / 2),
    transparent var(--notch), #000 calc(var(--notch) + 0.5px));
          mask: radial-gradient(circle at calc(100% - var(--btn) / 2) calc(100% - var(--btn) / 2),
    transparent var(--notch), #000 calc(var(--notch) + 0.5px));
}
.gooey__body {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--fill);
}

/* Капля: в покое — маленькая и «утоплена» внутри заливки, поэтому невидима */
.gooey__drop {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--btn);
  height: var(--btn);
  border-radius: 50%;
  background: var(--fill);
  transform: translate(calc(var(--btn) * -0.9), calc(var(--btn) * -0.9)) scale(.3);
  transition: transform .5s var(--ease-in-out);
}
/* Капля того же цвета, что и карточка: в фильтре нет второго цвета — значит, нет розового «ореола» */

/* Кликабельная кнопка поверх капли (вне фильтра — иконка остаётся чёткой) */
.gooey__btn {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: var(--btn);
  height: var(--btn);
  border-radius: 50%;
  color: var(--btn-fg);
  background: var(--grad-red);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), .22);
  opacity: 0;
  transform: scale(.55);
  transition: opacity .15s ease, transform .25s ease-in;
}
.gooey__btn .icon-arrow { width: 38%; height: 38%; }
.gooey__btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; opacity: 1; }

/* --- Состояние «капля отделилась» --- */
.gooey-trigger:is(:hover, :focus-within) { --notch: var(--notch-open); }
.gooey-trigger:is(:hover, :focus-within) .gooey { --notch: var(--notch-open); }
.gooey-trigger:is(:hover, :focus-within) .gooey__drop {
  transform: scale(.94);               /* чуть меньше кнопки — край капли не выглядывает */
  transition: transform .65s cubic-bezier(.5, 0, .15, 1);
}
.gooey-trigger:is(:hover, :focus-within) .gooey__btn {
  opacity: 1;
  transform: none;
  transition: opacity .2s ease .42s, transform .5s var(--ease-drop) .4s;
}
.gooey__btn .icon-arrow { transition: transform .35s var(--ease-out); }
.gooey__btn:hover .icon-arrow { transform: translate(2px, -2px); }

/* --notch задаём на .gooey, чтобы маска и вырез считались от её размеров */
.gooey { transition: --notch .55s cubic-bezier(.5, 0, .15, 1); }

/* На тач-устройствах hover нет — кнопка всегда «отделена» */
@media (hover: none) {
  .gooey { --notch: var(--notch-open); }
  .gooey__drop { transform: scale(.94); }
  .gooey__btn { opacity: 1; transform: none; }
}

/* =========================================================
   Наши кейсы + автокарусель
   ========================================================= */
.cases {
  --info-pad: clamp(24px, 2.34vw, 45px);
  --case-gap: clamp(16px, 1.56vw, 30px);
  padding: var(--section-y) 0;
  background: var(--c-bg-dark);
}
.cases__head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(32px, 3.1vw, 60px);
}

/* Статичная шахматная сетка: картинка 1136 / описание 552, порядок меняется через строку */
.cases__grid {
  display: flex;
  flex-direction: column;
  gap: var(--case-gap);
}
.case {
  display: grid;
  grid-template-columns: minmax(0, 1136fr) minmax(0, 552fr);
  gap: var(--case-gap);
}
.case--reverse { grid-template-columns: minmax(0, 552fr) minmax(0, 1136fr); }
.case--reverse .case__shot { order: 2; }

.case__shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
}
.case__shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top left;
  transition: transform 1.2s var(--ease-out);
}
/* Пропорция 1136×590 задаёт минимальную высоту; если описание выше — картинка тянется на всю строку */
.case__shot::before { content: ""; display: block; aspect-ratio: 1136 / 590; }
.case:hover .case__shot img { transform: scale(1.03); }

.case__info { min-height: 100%; padding: var(--info-pad) var(--info-pad) calc(var(--info-pad) + var(--btn) * .35); }
.case__content { display: flex; flex-direction: column; gap: 10px; }
.case__text { margin: 0; color: var(--c-body); font-size: var(--fs-p); line-height: 1.5; }
.case__meta { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0; }
.case__row { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.case__row dt { font-size: var(--fs-p); font-weight: 700; line-height: 1.5; }
.case__row dd { margin: 5px 0 0; color: var(--c-body); font-size: var(--fs-p); line-height: 1.5; }
.case__stats { display: flex; gap: clamp(24px, 3.1vw, 60px); }
.case__stats span { display: flex; flex-direction: column; }
.case__stats strong { color: #fff; font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }

/* =========================================================
   Баннер с VR-персонажем
   ========================================================= */
.cta-wrap { padding-block: var(--section-y) calc(var(--section-y) / 2); background: var(--c-bg-navy); max-width: none; }
.cta {
  --fill: linear-gradient(100deg, #b8001c 0%, #cc0026 45%, #d1003e 100%);   /* белый текст ≥ 5.5:1 */
  max-width: var(--container);
  margin-inline: auto;
  min-height: clamp(360px, 25.5vw, 489px);
  display: flex;
  align-items: center;
  padding: clamp(32px, 4.2vw, 80px) clamp(24px, 4.2vw, 80px);
}
.cta__photo {
  position: absolute; inset: 0; z-index: -1;
  border-radius: var(--radius-lg);
  background: url("../assets/network.webp") right center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: .28;
  pointer-events: none;
}
.cta__content { position: relative; z-index: 2; max-width: min(850px, 48%); display: flex; flex-direction: column; gap: clamp(16px, 1.56vw, 30px); }
.cta__text { margin: 0; max-width: 699px; font-size: var(--fs-p); line-height: 1.5; }
.cta__character {
  position: absolute;
  right: 7%;
  bottom: 0;
  width: clamp(380px, 46%, 800px);
  z-index: 1;
  pointer-events: none;
  perspective: 1200px;
}
.cta__parallax {
  transform-origin: 50% 100%;
  will-change: transform;
}
.cta__parallax img { width: 100%; height: auto; }
.cta__photo { will-change: transform; transform: scale(1.04); }

/* =========================================================
   Неоновое свечение (VR-персонаж и фото)
   Анимируются только opacity и transform — это делает видеокарта, без перерисовки.
   ========================================================= */
.glow-figure { position: relative; isolation: isolate; }
.glow-figure img { filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), .4)); }
.cta__character::before {
  content: "";
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(var(--accent-rgb), .55), transparent 72%),
    radial-gradient(closest-side at 65% 40%, rgba(var(--accent2-rgb), .5), transparent 70%);
  opacity: .35;
  transform: scale(.85);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
  pointer-events: none;
}
.cta:hover .cta__character::before { opacity: 1; transform: scale(1.08); animation: glow-breathe 2.6s ease-in-out .8s infinite; }

@keyframes glow-breathe {
  0%, 100% { opacity: 1;   transform: scale(1.08); }
  50%      { opacity: .7;  transform: scale(1.16); }
}

/* =========================================================
   Основатель
   ========================================================= */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 680px);
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 4.7vw, 90px);
  padding-block: calc(var(--section-y) / 2) var(--section-y);
  background: var(--c-bg-navy);
  max-width: none;
}
.founder__photo { position: relative; isolation: isolate; }
.founder__photo img {
  width: 100%; height: auto;
  /* Превью-картинка с фоном: края растворяем, чтобы фото «сидело» в свечении.
     Для PNG с прозрачным фоном эту маску можно удалить. */
  -webkit-mask: radial-gradient(75% 70% at 50% 46%, #000 62%, transparent 100%);
          mask: radial-gradient(75% 70% at 50% 46%, #000 62%, transparent 100%);
}
.founder__glow {
  position: absolute;
  inset: -6% -10% 10%;
  z-index: -1;
  border-radius: 50%;
  /* Мягкость задана градиентом, а не filter: blur — так дешевле */
  background:
    radial-gradient(closest-side, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), .15) 55%, transparent),
    radial-gradient(closest-side at 72% 62%, rgba(var(--accent2-rgb), .4), transparent);
  opacity: .7;
  transform: scale(.92);
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out);
  pointer-events: none;
}
.founder__photo:hover .founder__glow { transform: scale(1.1); opacity: 1; animation: glow-breathe-soft 2.6s ease-in-out .8s infinite; }
@keyframes glow-breathe-soft {
  0%, 100% { opacity: 1;  transform: scale(1.1); }
  50%      { opacity: .75; transform: scale(1.18); }
}

.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.founder__text { margin-top: clamp(20px, 2.1vw, 40px); display: flex; flex-direction: column; gap: 1em; font-size: var(--fs-p); line-height: 1.5; color: #fff; }
.founder__text p { margin: 0; }

/* =========================================================
   Ниши — бегущие строки
   ========================================================= */
.niches {
  padding-block: var(--section-y);
  background: var(--c-bg-dark);
  overflow: hidden;
}
.niches__title { text-align: center; margin-bottom: clamp(32px, 3.1vw, 60px); padding-inline: var(--pad); }

.marquee { overflow: hidden; padding-block: 15px; }
.marquee + .marquee { margin-top: 0; }
.marquee__track { display: flex; gap: clamp(12px, 1.56vw, 30px); width: max-content; will-change: transform; }
.marquee__track > li { flex: none; }

.tag {
  --glow: 0;
  display: grid;
  place-items: center;
  min-width: clamp(140px, 13vw, 260px);
  height: clamp(64px, 6.25vw, 120px);
  padding-inline: clamp(24px, 2.1vw, 40px);
  border-radius: clamp(18px, 1.7vw, 32px);
  background: var(--c-card);
  font-size: var(--fs-tag);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0);
  transition:
    color .35s var(--ease-out),
    box-shadow .45s var(--ease-out),
    background-color .45s var(--ease-out),
    transform .45s var(--ease-out),
    text-shadow .45s var(--ease-out);
}
.tag:hover,
.tag:focus-visible {
  outline: none;
  color: var(--accent);
  background: var(--c-card-hover);
  transform: translateY(-4px);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), .75);
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 0 18px rgba(var(--accent-rgb), .65),
    0 0 48px rgba(var(--accent-rgb), .35),
    inset 0 0 24px rgba(var(--accent-rgb), .25);
}

/* =========================================================
   Опыт — аккордеон
   ========================================================= */
.exp {
  --date-col: clamp(120px, 11.3vw, 216px);
  --col-gap: clamp(16px, 2.1vw, 40px);
  --icon: clamp(44px, 2.9vw, 56px);
  padding-block: var(--section-y);
  background: var(--c-bg-navy);
}
.exp__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-bottom: clamp(40px, 4.2vw, 80px);
}

.exp__lead { margin: 0; max-width: 460px; color: var(--c-body); font-size: var(--fs-p); line-height: 1.5; }

.exp__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .1); }
.exp__item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .1); }

/* Красная линия-индикатор слева у открытого пункта */
.exp__item::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 2px;
  background: var(--grad-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--ease-out);
}
.exp__item.is-open::before { transform: scaleY(1); }

.exp__heading { margin: 0; font: inherit; }
.exp__toggle {
  display: grid;
  grid-template-columns: var(--date-col) minmax(0, 1fr) var(--icon);
  align-items: center;
  gap: var(--col-gap);
  width: 100%;
  padding: clamp(24px, 2.1vw, 40px) 0 clamp(24px, 2.1vw, 40px) clamp(16px, 1.25vw, 24px);
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* Без рамки вокруг заголовка: фокус с клавиатуры показываем подчёркиванием */
.exp__toggle:focus { outline: none; }
.exp__toggle:focus-visible .exp__role { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

.exp__date {
  align-self: start;
  padding-top: .55em;
  color: var(--c-body);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .3s var(--ease-out);
}
.exp__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.exp__role {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  transition: transform .5s var(--ease-out);
}
.exp__dot { color: var(--c-body); }
.exp__company {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.exp__sub { color: var(--c-body); font-size: var(--fs-p); line-height: 1.5; }

/* Плюс → минус в круге; у открытого — красная заливка */
.exp__icon {
  position: relative;
  width: var(--icon);
  height: var(--icon);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: box-shadow .4s var(--ease-out), background .4s var(--ease-out), transform .5s var(--ease-out);
}
.exp__icon::before,
.exp__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 36%; height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease-out);
}
.exp__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.exp__item.is-open .exp__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.exp__item.is-open .exp__icon { background: var(--grad-red); box-shadow: 0 0 24px rgba(var(--accent-rgb), .45); }

.exp__toggle:hover .exp__date { color: #fff; }
.exp__toggle:hover .exp__role { transform: translateX(6px); }
.exp__toggle:hover .exp__icon { box-shadow: inset 0 0 0 1px var(--c-red), 0 0 18px rgba(var(--accent-rgb), .35); transform: rotate(90deg); }
.exp__item.is-open .exp__toggle:hover .exp__icon { transform: none; }

/* Плавное раскрытие по высоте через grid-template-rows: 0fr → 1fr */
.exp__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-in-out);
}
.exp__item.is-open .exp__panel { grid-template-rows: 1fr; }
.exp__panel-inner { min-height: 0; overflow: hidden; }
.exp__details {
  margin-left: calc(var(--date-col) + var(--col-gap) + clamp(16px, 1.25vw, 24px));
  margin-right: calc(var(--icon) + var(--col-gap));
  max-width: 980px;
  padding-bottom: clamp(28px, 2.6vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.56vw, 30px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .5s var(--ease-out);
}
.exp__item.is-open .exp__details { opacity: 1; transform: none; transition-delay: .15s; }

.exp__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.exp__stats li {
  display: flex; flex-direction: column; gap: 4px;
  padding: clamp(16px, 1.25vw, 24px);
  border-radius: 20px;
  background: var(--c-card);
}
.exp__stats strong { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.exp__stats span { color: var(--c-body); font-size: var(--fs-sm); line-height: 1.4; }

.exp__bullets { margin: 0; padding: 0; list-style: none; }
.exp__bullets li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  font-size: var(--fs-p);
  line-height: 1.5;
}
.exp__bullets li::before {
  content: "→";
  position: absolute;
  left: 0; top: 12px;
  color: var(--c-red);
}

.exp__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.exp__tags li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--c-card);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: box-shadow .3s var(--ease-out), color .3s var(--ease-out);
}
.exp__tags li:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 14px rgba(var(--accent-rgb), .4); }

.exp__cv { margin-top: clamp(32px, 3.1vw, 60px); }

@media (max-width: 767px) {
  .exp__head { flex-direction: column; align-items: flex-start; }
  .exp__toggle { grid-template-columns: minmax(0, 1fr) var(--icon); row-gap: 8px; padding-left: 14px; }
  .exp__date { grid-column: 1; grid-row: 1; padding-top: 0; }
  .exp__main { grid-column: 1; grid-row: 2; }
  .exp__icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .exp__details { margin-left: 14px; margin-right: 0; }
  .exp__stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
  .cta__content { max-width: none; }
  .case { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .case--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .cta { padding-right: 40%; }
  .cta__character { right: 0; width: 52%; }
}

@media (max-width: 767px) {
  .cases__head .btn-outline { padding: 12px 14px; }
  .cases { --case-gap: 16px; }
  .cases__grid { gap: 40px; }
  .case,
  .case--reverse { grid-template-columns: 1fr; gap: 12px; }
  .case--reverse .case__shot { order: 0; }
  .case__stats { padding-right: calc(var(--btn) + 8px); }

  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px 0; min-height: 0; }
  .cta__content { padding-right: 0; max-width: none; }
  .cta__character { position: relative; right: auto; align-self: flex-start; width: 92%; margin-top: 12px; margin-left: -4%; }

  .founder { grid-template-columns: 1fr; justify-items: center; }
  .founder__photo { width: min(80vw, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* =========================================================
   Заглушки для фото
   ========================================================= */
.shot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
}
.shot-placeholder__bar {
  display: flex; align-items: center; gap: 8px;
  height: clamp(32px, 2.6vw, 48px);
  padding-inline: 18px;
  background: var(--c-surface-2);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.shot-placeholder__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot-placeholder__bar i:nth-child(2) { background: #febc2e; }
.shot-placeholder__bar i:nth-child(3) { background: #28c840; }
.shot-placeholder__bar b { flex: 0 1 40%; height: 18px; margin-left: 16px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.shot-placeholder__body {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(60% 80% at 80% 100%, rgba(var(--accent-rgb), .22), transparent 70%),
    radial-gradient(50% 70% at 10% 0%, rgba(var(--accent2-rgb), .18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 40px),
    var(--c-surface);
}
.shot-placeholder__tag {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
}
.shot-placeholder__note { color: var(--c-body); font-size: clamp(12px, .8vw, 15px); }

.photo-placeholder {
  aspect-ratio: 580 / 736;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(var(--accent-rgb), .16), transparent 70%),
    var(--c-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: var(--c-body);
  text-align: center;
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1.5;
  transition: transform .8s var(--ease-out), box-shadow .6s var(--ease-out);
}
.photo-placeholder svg { width: 38%; fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 3; }
.founder__photo:hover .photo-placeholder { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45), 0 0 60px rgba(var(--accent-rgb), .25); }

.founder__facts {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(24px, 2.1vw, 40px);
}
.founder__facts li {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 140px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--c-card);
}
.founder__facts strong { font-size: var(--fs-h4); font-weight: 500; line-height: 1.2; }
.founder__facts span { color: var(--c-body); font-size: clamp(13px, .85vw, 16px); }

/* =========================================================
   Футер
   ========================================================= */
.footer {
  overflow: hidden;
  padding: clamp(64px, 6.25vw, 120px) var(--pad) 0;
  background: var(--c-bg-dark);
  color: var(--c-body);
}
.footer a { text-decoration: none; transition: color .25s var(--ease-out); }
.footer a:hover { color: #fff; }
.footer a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

.footer__contacts {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
  padding-bottom: clamp(40px, 4.2vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__mail {
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.footer .footer__mail:hover { color: var(--accent); background-size: 100% 2px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--c-card);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.footer__social a:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 16px rgba(var(--accent-rgb), .4); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 40px;
  padding-block: clamp(24px, 2.6vw, 48px) clamp(8px, 1vw, 16px);
  font-size: var(--fs-sm);
}
.footer__bar p { margin: 0; }

/* Большая подпись: JS подгоняет размер шрифта под ширину, низ букв обрезан как в макете */
.footer__mark {
  margin: 0 calc(var(--pad) * -1);
  height: .74em;
  overflow: hidden;
  color: #eeece8;
  font-size: 18vw;          /* запасное значение, пока не отработал JS */
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer__mark-inner {
  display: inline-block;
  transform: translateY(35%);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity .8s ease;
}
.footer__mark.is-visible .footer__mark-inner { transform: translateY(-2%); opacity: 1; }
.footer__dot {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .footer__bar { flex-direction: column; align-items: flex-start; }
}


/* =========================================================
   Общие утилиты
   ========================================================= */
.text-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Появление при скролле: только opacity + transform */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s var(--ease-out), translate .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: none; }

/* =========================================================
   Коротко обо мне
   ========================================================= */
.intro {
  padding-block: var(--section-y);
  background: var(--c-bg-hero);           /* продолжает низ Hero */
}
.intro__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 24px clamp(24px, 4vw, 80px);
  margin-bottom: clamp(56px, 6.25vw, 120px);
}
.intro__eyebrow { padding-top: .6em; }
.intro__statement {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.intro__muted { color: var(--c-muted); }

.intro__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.intro__stats li {
  padding: clamp(28px, 2.6vw, 48px) clamp(16px, 1.5vw, 28px) 0;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.intro__stats li:first-child { border-left: 0; padding-left: 0; }
.intro__num {
  margin: 0;
  display: flex;
  align-items: flex-start;
  font-size: var(--fs-num);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.intro__num sup { font-size: .5em; line-height: 1; margin-left: .04em; }
.intro__num--word { font-size: var(--fs-h2); padding-top: .35em; letter-spacing: -.02em; }
.intro__label { margin: clamp(16px, 1.25vw, 24px) 0 0; max-width: 260px; color: var(--c-body); font-size: var(--fs-sm); line-height: 1.5; }

@media (max-width: 900px) {
  .intro__top { grid-template-columns: 1fr; }
  .intro__stats { grid-template-columns: 1fr 1fr; }
  .intro__stats li { padding-bottom: 28px; }
  .intro__stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .intro__stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* =========================================================
   Поп-ап контактов
   ========================================================= */
html.is-locked { overflow: hidden; }

.modal {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.modal::backdrop {
  background: var(--c-backdrop);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.is-open::backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  overflow: hidden;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 28px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .25s ease, transform .4s var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__glow {
  position: absolute;
  top: -120px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .35), transparent);
  pointer-events: none;
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease, transform .4s var(--ease-out);
}
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.contact__person { position: relative; display: flex; align-items: center; gap: 12px; padding-right: 52px; }
.contact__avatar {
  position: relative;
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-card);
  box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 4px var(--accent);
  font-size: 15px; font-weight: 700;
}
.contact__avatar i {
  position: absolute; right: -2px; bottom: -2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #2fd16b;
  box-shadow: 0 0 0 3px var(--c-surface);
}
.contact__avatar i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #2fd16b;
  animation: status-ping 2s ease-out infinite;
}
@keyframes status-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.4); opacity: 0; } }
.contact__name { display: block; font-size: 16px; font-weight: 500; }
.contact__status { display: block; margin-top: 2px; color: #4fe08a; font-size: 13px; letter-spacing: .02em; }

.modal__title {
  position: relative;
  margin: 22px 0 8px;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
.contact__lead { position: relative; margin: 0 0 20px; color: var(--c-body); font-size: var(--fs-p); line-height: 1.5; }

.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact__card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 14px;
  border-radius: 18px;
  background: var(--c-card);
  text-decoration: none;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), background-color .3s ease;
}
.contact__card:hover,
.contact__card:focus-visible {
  outline: none;
  background: var(--c-card-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 20px rgba(var(--accent-rgb), .3);
}
.contact__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: #eeece8;
  box-shadow: 0 3px 0 #bdbab3;     /* «клавиша» как в референсе */
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__card:hover .contact__icon { transform: translateY(2px); box-shadow: 0 1px 0 #bdbab3; }
.contact__arrow {
  position: absolute; top: 14px; right: 14px;
  color: var(--c-body);
  transition: transform .35s var(--ease-out), color .25s ease;
}
.contact__arrow .icon-arrow { width: 18px; height: 18px; }
.contact__card:hover .contact__arrow { color: var(--accent); transform: translate(2px, -2px); }
.contact__channel { font-size: 1rem; font-weight: 500; }
.contact__handle { margin-top: 2px; color: var(--c-body); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact__copy {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, .18);
}
.contact__copy-label { color: var(--c-muted); font-size: 13px; }
.contact__copy-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); }
.contact__copy-btn {
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #04030c;
  font: 500 14px/1 "Inter", sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background-color .25s ease, color .25s ease;
}
.contact__copy-btn:hover { transform: scale(1.04); }
.contact__copy-btn:active { transform: scale(.97); }
.contact__copy-btn.is-done { background: var(--grad-red); color: #fff; }
.contact__copy-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Мобильный: снизу, как bottom sheet */
@media (max-width: 520px) {
  .modal { width: 100vw; margin: auto 0 0; max-height: 92dvh; }
  .modal__panel { border-radius: 24px 24px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .contact__grid { gap: 8px; }
  .contact__icon { margin-bottom: 12px; }
}
.modal__title:focus { outline: none; }
.founder__role { margin: 10px 0 0; color: var(--c-body); font-size: var(--fs-p); }
.niches__eyebrow { text-align: center; }
.cases__head { align-items: flex-end; }

/* =========================================================
   Общие правки
   ========================================================= */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 72px; }
.btn-outline .icon-arrow { width: 18px; height: 18px; }

/* =========================================================
   Кейсы: подсказка в покое + клик по всей карточке
   ========================================================= */
.cases__head { align-items: flex-end; }
.cases__lead { margin: 0; max-width: 460px; color: var(--c-body); font-size: var(--fs-p); line-height: 1.5; }
.case { cursor: pointer; }
.case__hint {
  position: absolute;
  right: calc(var(--btn) / 2 - 14px);
  bottom: calc(var(--btn) / 2 - 14px);
  display: grid; place-items: center;
  width: 28px; height: 28px;
  color: var(--c-body);
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.case__hint .icon-arrow { width: 22px; height: 22px; }
.gooey-trigger:is(:hover, :focus-within) .case__hint { opacity: 0; transform: translate(6px, 6px); }
.cta__hint { color: rgba(255, 255, 255, .8); z-index: 2; }
@media (hover: none) { .case__hint { display: none; } }
.case:focus-within { outline: none; }

/* =========================================================
   01 Обо мне
   ========================================================= */
.intro__top { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; }
.intro__photo { margin-top: 18px; }
.intro__photo .photo-placeholder { aspect-ratio: 440 / 560; }
.intro__bio { margin: clamp(20px, 2vw, 32px) 0 0; max-width: 720px; color: var(--c-body); font-size: var(--fs-p); line-height: 1.6; }
@media (max-width: 900px) {
  .intro__top { grid-template-columns: 1fr; }
  .intro__photo { max-width: 260px; }
}

/* =========================================================
   03 Подход
   ========================================================= */
.process { padding-block: var(--section-y); background: var(--c-bg-dark); }
.process__head { margin-bottom: clamp(32px, 3.1vw, 56px); }
.process__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: none;
}
.process__step {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(20px, 1.8vw, 28px);
  border-radius: 24px;
  background: var(--c-card);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.process__step:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5), 0 16px 40px rgba(0, 0, 0, .3); }
.process__num { color: var(--accent); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.process__title { margin: 0; font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.process__text { margin: 0; color: var(--c-body); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 1100px) { .process__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .process__list { grid-template-columns: 1fr; } }

/* =========================================================
   05 Форматы
   ========================================================= */
.formats { padding-block: var(--section-y); background: var(--c-bg-navy); }
.formats__head { margin-bottom: clamp(32px, 3.1vw, 56px); }
.formats__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.format {
  padding: clamp(24px, 2vw, 32px);
  border-radius: 24px;
  background: var(--c-card);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.format:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5); }
.format__title { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.01em; }
.format__text { margin: 0; color: var(--c-body); font-size: var(--fs-p); line-height: 1.55; }
.formats__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin: clamp(32px, 3vw, 48px) 0 0; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.formats__facts dt { color: var(--c-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; }
.formats__facts dd { margin: 8px 0 0; font-size: var(--fs-p); line-height: 1.5; }
@media (max-width: 900px) {
  .formats__list { grid-template-columns: 1fr; }
  .formats__facts { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Сферы: заголовок + кнопка паузы
   ========================================================= */
.niches { padding-block: calc(var(--section-y) * .7); }
.niches__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.niches__title { margin: 0; font-size: var(--fs-h3); font-weight: 500; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 0; border-radius: 999px;
  background: var(--c-card); color: #fff;
  font: 500 var(--fs-sm)/1 "Inter", sans-serif;
  cursor: pointer;
}
.marquee-toggle:hover { background: var(--c-card-hover); }
.marquee-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.marquee-toggle__icon { width: 10px; height: 12px; border: solid #fff; border-width: 0 3px; }
.marquee-toggle[aria-pressed="true"] .marquee-toggle__icon {
  width: 0; height: 0; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff;
}
span.tag { cursor: default; }

/* =========================================================
   Модалки: кейсы + контакты
   ========================================================= */
.modal--case { width: min(560px, calc(100vw - 32px)); }
.modal--case .modal__title { margin: 0 52px 20px 0; font-size: var(--fs-h3); line-height: 1.2; }
.modal--case .eyebrow { position: relative; padding-right: 52px; }
.modal__stats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.modal__stats li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--c-card); }
.modal__stats strong { font-size: 2rem; font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.modal__stats span { color: var(--c-body); font-size: var(--fs-sm); }
.modal__story { position: relative; display: grid; gap: 14px; margin: 0; }
.modal__story dt { color: var(--accent); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.modal__story dd { margin: 6px 0 0; font-size: var(--fs-p); line-height: 1.55; }
.modal__note { position: relative; margin: 20px 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--c-body); font-size: var(--fs-sm); line-height: 1.5; }
.modal--case .btn-primary { position: relative; width: 100%; }
.contact__cv {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding: 12px;
  border-radius: 999px;
  color: #d9d8e4; font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.contact__cv:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.contact__cv .icon-arrow { width: 16px; height: 16px; }


/* =========================================================
   Направления: чипы, заметка про NDA, Figma
   ========================================================= */
.case__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.case__chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: var(--fs-xs);
}
.case__row dd { color: var(--c-body); }
.exp__note {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), .08);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25);
  color: var(--c-body);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.contact__figma {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  margin: -8px 0 18px;
  color: #fff;
  font-size: var(--fs-sm);
}
.contact__figma span { color: var(--accent); }


/* =========================================================
   Главная: карточки проектов
   ========================================================= */
.projects { padding-block: var(--section-y); background: var(--c-bg-navy); }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--case-gap, 24px); }
.pcard__link {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--c-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.pcard__link:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45), 0 24px 60px rgba(0, 0, 0, .35); }
.pcard__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.pcard__cover { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; background: var(--c-surface); overflow: hidden; }
.pcard__cover-body {
  flex: 1; display: grid; place-items: center;
  background:
    radial-gradient(60% 80% at 80% 100%, rgba(var(--accent-rgb), .25), transparent 70%),
    radial-gradient(50% 70% at 10% 0%, rgba(var(--accent2-rgb), .2), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 40px);
  transition: transform 1.2s var(--ease-out);
}
.pcard__link:hover .pcard__cover-body { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 32px); }
.pcard__meta { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.pcard__title { margin: 0; padding-right: 56px; font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.pcard__arrow {
  position: absolute; right: clamp(20px, 2vw, 32px); bottom: clamp(20px, 2vw, 32px);
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  transition: background .35s var(--ease-out), color .35s ease, transform .4s var(--ease-out);
}
.pcard__arrow .icon-arrow { width: 20px; height: 20px; }
.pcard__link:hover .pcard__arrow { background: var(--grad-red); color: var(--btn-fg); transform: rotate(45deg); }
@media (max-width: 760px) { .pcards { grid-template-columns: 1fr; } }

/* =========================================================
   Страница проекта
   ========================================================= */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--grad-red); transform-origin: 0 50%; transform: scaleX(0); }

.proj-hero { padding: clamp(110px, 10vw, 150px) 0 calc(var(--section-y) * .6); background: var(--c-bg-hero); }
.proj-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: clamp(28px, 3vw, 48px);
  color: var(--c-body); font-size: var(--fs-sm); text-decoration: none;
  transition: color .2s ease, gap .3s var(--ease-out);
}
.proj-back:hover { color: #fff; gap: 12px; }
.proj-title {
  margin: 0; max-width: 18em;
  font-size: var(--fs-h1); font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
  text-wrap: balance;
}
.proj-title em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proj-lead { margin: 20px 0 0; max-width: 720px; color: var(--c-body); font-size: var(--fs-lead); line-height: 1.55; }
.proj-cover { margin-top: clamp(40px, 4vw, 64px); }
.proj-meta {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
  margin: clamp(28px, 3vw, 40px) 0 0; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.proj-meta dt { color: var(--c-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; }
.proj-meta dd { margin: 8px 0 0; font-size: var(--fs-p); line-height: 1.45; }

.proj-media {
  position: relative; display: flex; flex-direction: column; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.proj-media__body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(60% 80% at 80% 100%, rgba(var(--accent-rgb), .2), transparent 70%),
    radial-gradient(50% 70% at 10% 0%, rgba(var(--accent2-rgb), .16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px);
}

.proj-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  padding-block: var(--section-y);
  background: var(--c-bg-dark); max-width: none;
}
.page-project main { background: var(--c-bg-dark); }
.proj-toc { position: sticky; top: 96px; align-self: start; }
.proj-toc__label { margin: 0 0 14px; color: var(--c-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; }
.proj-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid rgba(255, 255, 255, .1); }
.proj-toc a {
  position: relative; display: block;
  padding: 8px 0 8px 18px;
  color: var(--c-body); font-size: var(--fs-sm); text-decoration: none;
  transition: color .2s ease;
}
.proj-toc a::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px;
  background: var(--grad-red); transform: scaleY(0); transition: transform .35s var(--ease-out);
}
.proj-toc a:hover { color: #fff; }
.proj-toc a.is-active { color: #fff; }
.proj-toc a.is-active::before { transform: scaleY(1); }

.proj-content { max-width: 960px; display: flex; flex-direction: column; gap: var(--section-y); }
.proj-section { scroll-margin-top: 90px; }
.proj-section > .h2 { margin-bottom: clamp(24px, 2.6vw, 40px); }
.proj-prose { display: flex; flex-direction: column; gap: 1em; max-width: 720px; font-size: var(--fs-lead); line-height: 1.6; color: #e7e6ef; }
.proj-prose p { margin: 0; }
.proj-h3 { margin: 0; font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }

.proj-features { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 64px); }
.proj-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 3vw, 48px); }
.proj-feature--rev .proj-feature__text { order: 2; }
.proj-feature__text { display: flex; flex-direction: column; gap: 12px; }
.proj-feature__text p { margin: 0; color: var(--c-body); font-size: var(--fs-p); line-height: 1.6; }
.proj-feature__num { color: var(--accent); font-size: var(--fs-sm); font-weight: 600; }

.proj-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.proj-results li { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 32px); border-radius: 24px; background: var(--c-card); }
.proj-results strong { font-size: var(--fs-num); font-weight: 500; line-height: 1; letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proj-results span { color: var(--c-body); font-size: var(--fs-sm); line-height: 1.5; }

.proj-iters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.proj-iter { display: flex; flex-direction: column; gap: 14px; }
.proj-iter p { margin: 0; color: var(--c-body); font-size: var(--fs-p); line-height: 1.55; }
.proj-iter .proj-h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; }
.proj-iter__step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-card); color: var(--accent); font-size: 13px; font-weight: 600; }

.proj-quote {
  margin: 0; padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--accent2-rgb), .08));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25);
  font-size: var(--fs-xl); line-height: 1.35; letter-spacing: -.01em;
}

.proj-next { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding-bottom: var(--section-y); background: var(--c-bg-dark); max-width: none; }
.proj-next__card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  min-height: 220px; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg); background: var(--c-card); text-decoration: none;
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.proj-next__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.proj-next__title { margin-top: auto; padding-right: 64px; font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.proj-next__meta { color: var(--c-muted); font-size: var(--fs-sm); }
.proj-next__arrow { position: absolute; right: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad-red); color: var(--btn-fg); transition: transform .4s var(--ease-out); }
.proj-next__card:hover .proj-next__arrow { transform: rotate(45deg); }
.proj-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.proj-cta__title { margin: 0; font-size: var(--fs-h3); font-weight: 500; }
.proj-cta .btn-primary { align-self: flex-start; }

/* Подсказки для заполнения — видны, чтобы не забыть заменить */
.todo {
  display: inline; padding: 1px 6px; border-radius: 6px;
  background: rgba(246, 200, 80, .12);
  outline: 1px dashed rgba(246, 200, 80, .55);
  color: #f6dc8c;
  font-size: .92em;
}

@media (max-width: 1024px) {
  .proj-layout { grid-template-columns: 1fr; }
  .proj-toc { display: none; }
  .proj-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .proj-feature, .proj-feature--rev { grid-template-columns: 1fr; }
  .proj-feature--rev .proj-feature__text { order: 0; }
  .proj-results, .proj-iters { grid-template-columns: 1fr; }
  .proj-meta { grid-template-columns: 1fr 1fr; }
  .proj-next { grid-template-columns: 1fr; }
}
a.case__shot { display: block; color: inherit; text-decoration: none; }
a.case__shot .shot-placeholder__note { transition: color .3s ease; }
a.case__shot:hover .shot-placeholder__note { color: #fff; }
.case { cursor: default; }
a.case__shot, .case .gooey__btn { cursor: pointer; }

/* =========================================================
   Живые мини-интерфейсы в карточках направлений
   ========================================================= */
.shot-live { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--c-surface); }
.shot-live__body {
  position: relative; flex: 1; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 100%, rgba(var(--accent-rgb), .22), transparent 70%),
    radial-gradient(50% 70% at 10% 0%, rgba(var(--accent2-rgb), .18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 32px);
}
.mk {
  --d: 7s;
  width: min(74%, 420px);
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(14px, 1.4vw, 22px);
  border-radius: 20px;
  background: rgba(14, 13, 27, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .45);
  font-size: clamp(11px, .9vw, 15px);
  transform: perspective(900px) rotateX(6deg) rotateY(-8deg);
  transition: transform .8s var(--ease-out);
}
.case:hover .mk { transform: perspective(900px) rotateX(0) rotateY(0) scale(1.03); }
.mk * { animation-play-state: paused !important; }
.case.is-visible .mk * { animation-play-state: running !important; }
.mk-title { margin: 0; font-size: 1.25em; font-weight: 600; }
.mk-btn {
  position: relative; display: grid; place-items: center; height: 2.8em; margin-top: 4px;
  border-radius: 10px; background: var(--grad-red); color: var(--btn-fg); font-weight: 600; overflow: hidden;
}
.mk-btn em { font-style: normal; grid-area: 1 / 1; }

/* --- Регистрация --- */
.mk-onb__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mk-onb__steps i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.mk-onb__steps i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: mk-fill var(--d) infinite; }
.mk-onb__steps i:nth-child(2)::after { animation-name: mk-fill2; }
.mk-onb__steps i:nth-child(3)::after { animation-name: mk-fill3; }
@keyframes mk-fill  { 0%, 5% { transform: scaleX(0); } 25%, 95% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes mk-fill2 { 0%, 30% { transform: scaleX(0); } 50%, 95% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes mk-fill3 { 0%, 55% { transform: scaleX(0); } 72%, 95% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.mk-field { display: flex; flex-direction: column; gap: 2px; padding: .6em .8em; border-radius: 10px; background: var(--c-card); }
.mk-field small { color: var(--c-muted); font-size: .8em; }
.mk-field b { font-weight: 500; white-space: nowrap; overflow: hidden; width: 0; }
.mk-type { animation: mk-type var(--d) steps(13) infinite; border-right: 1.5px solid var(--accent); width: 13ch; }
@keyframes mk-type { 0%, 4% { width: 0; } 22%, 95% { width: 13ch; } 100% { width: 0; } }
.mk-dots { animation: mk-dots var(--d) steps(8) infinite; width: 8ch; letter-spacing: .1em; }
@keyframes mk-dots { 0%, 24% { width: 0; } 36%, 95% { width: 8.5ch; } 100% { width: 0; } }
.mk-otp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-otp i { display: grid; place-items: center; height: 2.4em; border-radius: 8px; background: var(--c-card); font-style: normal; font-weight: 600; color: transparent; animation: mk-otp var(--d) infinite; }
.mk-otp i:nth-child(2) { animation-name: mk-otp2; }
.mk-otp i:nth-child(3) { animation-name: mk-otp3; }
.mk-otp i:nth-child(4) { animation-name: mk-otp4; }
@keyframes mk-otp  { 0%, 42% { color: transparent; box-shadow: none; } 45%, 95% { color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); } 100% { color: transparent; } }
@keyframes mk-otp2 { 0%, 47% { color: transparent; box-shadow: none; } 50%, 95% { color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); } 100% { color: transparent; } }
@keyframes mk-otp3 { 0%, 52% { color: transparent; box-shadow: none; } 55%, 95% { color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); } 100% { color: transparent; } }
@keyframes mk-otp4 { 0%, 57% { color: transparent; box-shadow: none; } 60%, 95% { color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); } 100% { color: transparent; } }
.mk-onb .mk-btn em:first-child { animation: mk-out var(--d) infinite; }
.mk-btn__done { opacity: 0; animation: mk-in var(--d) infinite; }
@keyframes mk-out { 0%, 70% { opacity: 1; transform: none; } 74%, 96% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; } }
@keyframes mk-in  { 0%, 72% { opacity: 0; transform: translateY(8px); } 76%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* --- Бонусы --- */
.mk-promo__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-bonus {
  display: flex; flex-direction: column; gap: 2px; padding: .8em .6em;
  border-radius: 12px; background: var(--c-card); text-align: center;
  animation: mk-pick var(--d) infinite;
}
.mk-bonus:nth-child(2) { animation-delay: calc(var(--d) / -1.5); }
.mk-bonus:nth-child(3) { animation-delay: calc(var(--d) / -3); }
.mk-bonus i { font-style: normal; font-size: 1.4em; }
.mk-bonus b { font-size: 1.25em; letter-spacing: -.02em; }
.mk-bonus small { color: var(--c-body); font-size: .75em; line-height: 1.2; }
@keyframes mk-pick {
  0%, 30%, 100% { transform: none; box-shadow: none; }
  6%, 26% { transform: translateY(-8px) scale(1.06); box-shadow: inset 0 0 0 2px var(--accent), 0 12px 28px rgba(var(--accent-rgb), .35); }
}

/* --- Платежи --- */
@property --num { syntax: "<integer>"; inherits: false; initial-value: 250; }
.mk-pay__bal { display: flex; justify-content: space-between; align-items: baseline; padding: .7em .9em; border-radius: 12px; background: var(--c-card); }
.mk-pay__bal small { color: var(--c-muted); }
.mk-pay__bal b { font-size: 1.4em; letter-spacing: -.02em; }
.mk-count { --num: 250; counter-reset: n var(--num); animation: mk-num var(--d) infinite; }
.mk-count::after { content: counter(n); }
@keyframes mk-num { 0%, 62% { --num: 250; } 75%, 96% { --num: 350; } 100% { --num: 250; } }
.mk-pay__amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-pay__amounts i { padding: .7em 0; border-radius: 8px; background: var(--c-card); font-style: normal; font-weight: 600; text-align: center; }
.mk-pay__amounts i:nth-child(3) { animation: mk-chip var(--d) infinite; }
@keyframes mk-chip { 0%, 12% { background: var(--c-card); color: inherit; } 18%, 96% { background: #fff; color: #0e0d1b; } 100% { background: var(--c-card); } }
.mk-pay__methods { display: grid; gap: 5px; }
.mk-pay__methods li { padding: .6em .8em; border-radius: 8px; background: var(--c-card); }
.mk-pay__methods li:first-child { animation: mk-method var(--d) infinite; }
@keyframes mk-method { 0%, 25% { box-shadow: none; } 30%, 96% { box-shadow: inset 0 0 0 1.5px var(--accent); } 100% { box-shadow: none; } }
.mk-pay__status { position: relative; display: flex; align-items: center; gap: 8px; height: 2.8em; padding: 0 .9em; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.mk-pay__status em { font-style: normal; animation: mk-proc var(--d) infinite; }
.mk-pay__ok { position: absolute; left: .9em; color: #4fe08a; font-weight: 600; opacity: 0; animation: mk-okin var(--d) infinite !important; }
.mk-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: mk-spin .8s linear infinite, mk-proc var(--d) infinite; }
@keyframes mk-spin { to { rotate: 360deg; } }
@keyframes mk-proc { 0%, 38% { opacity: 0; } 42%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes mk-okin { 0%, 64% { opacity: 0; transform: scale(.8); } 68%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* --- Дизайн-система --- */
.mk-ds__swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mk-ds__swatches i { aspect-ratio: 1; border-radius: 8px; animation: mk-pop var(--d) infinite backwards; }
.mk-ds__swatches i:nth-child(1) { background: var(--accent); }
.mk-ds__swatches i:nth-child(2) { background: rgb(var(--accent2-rgb)); animation-delay: .12s; }
.mk-ds__swatches i:nth-child(3) { background: #eeece8; animation-delay: .24s; }
.mk-ds__swatches i:nth-child(4) { background: var(--c-card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); animation-delay: .36s; }
.mk-ds__swatches i:nth-child(5) { background: #2fd16b; animation-delay: .48s; }
@keyframes mk-pop { 0% { transform: scale(0); opacity: 0; } 8%, 90% { transform: none; opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.mk-ds__type { display: flex; align-items: center; gap: 12px; padding: .5em .8em; border-radius: 10px; background: var(--c-card); }
.mk-ds__type b { font-size: 2em; letter-spacing: -.03em; animation: mk-pop var(--d) .6s infinite backwards; }
.mk-ds__type span { flex: 1; display: grid; gap: 5px; }
.mk-ds__type span i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); transform-origin: left; animation: mk-line var(--d) infinite backwards; }
.mk-ds__type span i:nth-child(1) { width: 100%; animation-delay: .7s; }
.mk-ds__type span i:nth-child(2) { width: 75%; animation-delay: .8s; }
.mk-ds__type span i:nth-child(3) { width: 50%; animation-delay: .9s; }
@keyframes mk-line { 0% { transform: scaleX(0); } 8%, 90% { transform: none; } 100% { transform: scaleX(0); } }
.mk-ds__comps { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; gap: 8px; }
.mk-ds__comps > * { animation: mk-pop var(--d) infinite backwards; }
.mk-ds__comps > :nth-child(2) { animation-delay: 1.1s; }
.mk-ds__comps > :nth-child(3) { animation-delay: 1.2s; }
.mk-ds__comps > :nth-child(4) { animation-delay: 1.3s; }
.mk-ds__comps > :nth-child(1) { animation-delay: 1s; }
.mk-ds__btn { padding: .6em; border-radius: 8px; background: var(--grad-red); color: var(--btn-fg); font-weight: 600; text-align: center; }
.mk-ds__toggle { position: relative; width: 36px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .15); justify-self: center; }
.mk-ds__toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: mk-toggle 2.4s ease-in-out infinite; }
@keyframes mk-toggle { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(16px); } }
.mk-ds__chip { padding: .4em .6em; border-radius: 999px; background: rgba(255, 255, 255, .08); text-align: center; }
.mk-ds__check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); justify-self: center; }
.mk-ds__check i { font-style: normal; font-size: 11px; color: var(--btn-fg); font-weight: 700; }
.mk-ds__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mk-ds__grid i { height: 18px; border-radius: 4px; background: rgba(var(--accent-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); animation: mk-pop var(--d) infinite backwards; }
.mk-ds__grid i:nth-child(n) { animation-delay: calc(1.4s + var(--i, 0) * .06s); }
.mk-ds__grid i:nth-child(2) { --i: 1; } .mk-ds__grid i:nth-child(3) { --i: 2; } .mk-ds__grid i:nth-child(4) { --i: 3; } .mk-ds__grid i:nth-child(5) { --i: 4; } .mk-ds__grid i:nth-child(6) { --i: 5; }

@media (prefers-reduced-motion: reduce) {
  .mk *, .mk { animation: none !important; }
  .mk-field b { width: auto; border: 0; }
  .mk-otp i { color: #fff; }
  .mk-btn__done { display: none; }
  .mk-pay__ok, .mk-spin, .mk-pay__status em:not(.mk-pay__ok) { opacity: 1; }
  .mk-spin, .mk-pay__status em:first-of-type { display: none; }
}
@media (max-width: 767px) {
  .mk { width: min(86%, 320px); font-size: 11px; }
  .case__shot { aspect-ratio: 16 / 11; }
}

/* =========================================================
   «Обо мне»: слова загораются при прокрутке
   ========================================================= */
.js .intro__statement .w { opacity: .16; transition: opacity .35s ease; }
.js .intro__statement .w.is-lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .intro__statement .w { opacity: 1; } }

/* =========================================================
   Подход: таймлайн, который «рисуется» скроллом
   ========================================================= */
.process__list { position: relative; padding-top: 44px; }
.process__list::before,
.process__list::after {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; border-radius: 2px;
}
.process__list::before { background: rgba(255, 255, 255, .1); }
.process__list::after { background: var(--grad-red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.process__step::before {
  content: ""; position: absolute; left: clamp(20px, 1.8vw, 28px); top: -36px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-bg-dark); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
  transition: background .4s ease, box-shadow .4s ease, transform .4s var(--ease-out);
}
.process__step.is-on::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .2), 0 0 18px rgba(var(--accent-rgb), .6); transform: scale(1.15); }
.process__step { opacity: .55; transition: opacity .5s ease, transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.process__step.is-on { opacity: 1; }
.no-js .process__step, .process--static .process__step { opacity: 1; }
@media (max-width: 640px) {
  .process__list { padding-top: 0; padding-left: 32px; }
  .process__list::before, .process__list::after { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process__list::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .process__step::before { left: -31px; top: 26px; }
}

/* =========================================================
   Свет за курсором на карточках
   ========================================================= */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .16), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.spot:hover::after { opacity: 1; }

/* =========================================================
   Футер: волна букв при наведении
   ========================================================= */
.footer__mark-inner .ch { display: inline-block; transition: transform .5s var(--ease-out), color .3s ease; }
.footer__mark:hover .ch { transform: translateY(-.06em); }
.footer__mark-inner .ch:hover { transform: translateY(-.14em) !important; color: var(--accent); }
.footer__mark { pointer-events: auto; }
.footer__dot .ch { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Фото в «Обо мне» */
.intro__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.intro__img { display: block; width: 100%; height: auto; aspect-ratio: 880 / 1120; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.intro__photo:hover .intro__img { transform: scale(1.03); }
.intro__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.contact__avatar { overflow: visible; }
.contact__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Шапка на мобильном: всё помещается */
@media (max-width: 560px) {
  .header { padding-inline: 16px; }
  .header__inner { gap: 8px; }
  .header__logo { font-size: 15px; }
  .header__actions { gap: 2px; }
  .header__lang { padding: 8px 10px; }
  .header__cv { display: none; }
  .header .btn-primary--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
}
@media (max-width: 360px) { .header__logo { font-size: 14px; } .header .btn-primary--sm { padding: 0 12px; } }

/* =========================================================
   Учебный кейс Paywall
   ========================================================= */
.case__badge { display: inline-flex; align-self: flex-start; margin: 0 0 6px; padding: 5px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), .14); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; }
.case__shot--img { position: relative; display: flex !important; flex-direction: column; background: var(--c-surface); }
.pw-cover {
  position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2%; overflow: hidden; padding-top: 5%;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(var(--accent-rgb), .28), transparent 70%),
    radial-gradient(50% 70% at 10% 0%, rgba(var(--accent2-rgb), .2), transparent 70%), var(--c-surface);
}
.pw-cover img { display: block; border-radius: 16px 16px 0 0; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: transform .8s var(--ease-out); }
.pw-cover__main { width: 30%; z-index: 2; }
.pw-cover__side { width: 25%; opacity: .7; transform: translateY(10%); }
.case:hover .pw-cover__main { transform: translateY(-4%); }
.case:hover .pw-cover__side--l { transform: translateY(6%) rotate(-3deg); }
.case:hover .pw-cover__side--r { transform: translateY(6%) rotate(3deg); }

.pw-hero { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2%; margin-top: clamp(40px, 4vw, 64px); padding: 6% 4% 0; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(55% 80% at 50% 100%, rgba(var(--accent-rgb), .3), transparent 70%), radial-gradient(40% 60% at 10% 10%, rgba(var(--accent2-rgb), .22), transparent 70%), var(--c-surface);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.pw-hero img { display: block; border-radius: 18px 18px 0 0; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.pw-hero__main { width: 22%; z-index: 2; }
.pw-hero__s { width: 17%; opacity: .75; }
.pw-hero__s--1, .pw-hero__s--4 { width: 15%; opacity: .5; transform: translateY(8%); }

.pw-goal { margin-top: 28px; }
.pw-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.pw-app { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--c-card); }
.pw-app__head { display: flex; flex-direction: column; gap: 8px; }
.pw-app__stats { display: flex; gap: 14px; margin: 0; color: var(--c-muted); font-size: var(--fs-xs); }
.pw-app__stats b { color: #fff; font-weight: 600; }
.pw-app__list { display: grid; gap: 10px; margin: 0; }
.pw-app__list dt { color: var(--c-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.pw-app__list dd { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.5; }
.pw-app__note { margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); color: var(--c-body); font-size: var(--fs-sm); line-height: 1.5; }
.pw-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pw-shot { margin: 0; }
.pw-shot img { display: block; width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.pw-shot figcaption { margin-top: 10px; color: var(--c-body); font-size: var(--fs-sm); text-align: center; }

.pw-patterns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pw-pattern { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--c-card); }
.pw-pattern p { margin: 0; color: var(--c-body); font-size: var(--fs-p); line-height: 1.55; }
.pw-figure { margin: 24px 0 0; padding: 20px; border-radius: var(--radius-lg); background: #e9e9ec; }
.pw-figure img { display: block; width: min(100%, 620px); margin: 0 auto; border-radius: 12px; }
.pw-figure figcaption { margin-top: 12px; color: #4a4a55; font-size: var(--fs-sm); text-align: center; }

.pw-table-wrap { overflow-x: auto; margin-bottom: 24px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pw-table-wrap:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pw-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: var(--fs-sm); }
.pw-table th, .pw-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.pw-table thead th { background: var(--c-card); color: var(--c-body); font-weight: 500; font-size: var(--fs-xs); line-height: 1.3; }
.pw-table tbody th { text-align: left; font-weight: 600; }
.pw-table thead th:first-child { text-align: left; }
.pw-table .is-yes { color: #4fe08a; font-weight: 700; background: rgba(47, 209, 107, .06); }
.pw-table .is-no { color: var(--c-muted); }
.pw-table tbody tr:hover { background: rgba(255,255,255,.03); }

.pw-concept { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pw-concept__phone { margin: 0; position: sticky; top: 100px; }
.pw-concept__phone img { display: block; width: 100%; border-radius: 28px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 80px rgba(var(--accent-rgb), .2); }
.pw-qa { display: grid; gap: 18px; margin: 0; }
.pw-qa dt { color: var(--accent); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.pw-qa dd { margin: 6px 0 0; font-size: var(--fs-p); line-height: 1.6; }
.pw-sub { margin: 28px 0 12px; font-size: var(--fs-h3); font-weight: 500; }
.pw-triggers { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pw-triggers li { padding: 14px 16px; border-radius: 14px; background: var(--c-card); color: var(--c-body); font-size: var(--fs-p); line-height: 1.5; }
.pw-triggers b { color: #fff; font-weight: 600; }

.pw-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.pw-metrics li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; padding: 20px; border-radius: 20px; background: var(--c-card); }
.pw-metrics strong { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--accent-rgb), .15); color: var(--accent); }
.pw-metrics b { font-weight: 600; }
.pw-metrics span { color: var(--c-body); font-size: var(--fs-sm); line-height: 1.5; }

@media (max-width: 900px) {
  .pw-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-patterns, .pw-metrics { grid-template-columns: 1fr; }
  .pw-concept { grid-template-columns: 1fr; }
  .pw-concept__phone { position: static; max-width: 300px; margin: 0 auto; }
  .pw-hero__s--1, .pw-hero__s--4 { display: none; }
  .pw-hero__main { width: 36%; } .pw-hero__s { width: 28%; }
}
.case__shot--img { display: block !important; }
.case__shot--img .shot-placeholder__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.case__shot--img .pw-cover { position: absolute; inset: 0; padding-top: 9%; }
.case__shot--img .pw-cover img { position: relative; inset: auto; height: auto; object-fit: initial; }
.case__shot--img .pw-cover__main { width: 28%; }
.case__shot--img .pw-cover__side { width: 22%; }
.case:hover .case__shot--img .pw-cover img { scale: 1; }

/* Кнопки в футере: иконка по центру */
.footer__social a { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.footer__social .icon-arrow { width: 16px; height: 16px; flex: none; }

/* =========================================================
   Кейс Growly
   ========================================================= */
.gr-cover { align-items: center; padding: 8% 6% 0 !important; background: radial-gradient(60% 80% at 50% 100%, rgba(205,229,83,.22), transparent 70%), #10142b; }
.case__shot--img .gr-cover__img { width: 78%; border-radius: 0; box-shadow: none; transition: transform .8s var(--ease-out); }
.case:hover .gr-cover__img { transform: translateY(-3%) scale(1.02); }

.gr-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 24px; margin-top: clamp(40px, 4vw, 64px); padding: clamp(24px, 3vw, 48px); border-radius: var(--radius-lg);
  background: radial-gradient(60% 80% at 80% 100%, rgba(205,229,83,.18), transparent 70%), radial-gradient(50% 70% at 10% 0%, rgba(67,102,230,.25), transparent 70%), #10142b; }
.gr-hero__logo { width: 100%; border-radius: 22px; }
.gr-hero__screens { width: 100%; }

.gr-pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gr-pains li { padding: 16px 18px; border-radius: 16px; background: var(--c-card); font-size: var(--fs-p); line-height: 1.45; }
.gr-pains li::before { content: "•"; margin-right: 10px; color: #CDE553; }

.gr-personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.gr-persona { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--c-card); }
.gr-persona__age { margin: 0; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: rgba(205,229,83,.15); color: #CDE553; font-size: var(--fs-xs); font-weight: 600; }
.gr-persona > p { margin: 0; color: var(--c-body); font-size: var(--fs-sm); line-height: 1.5; }
.gr-persona dl { display: grid; gap: 10px; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.gr-persona dt { color: var(--c-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.gr-persona dd { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.5; }

.gr-gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.gr-gaps li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--c-card); }
.gr-gaps b { font-weight: 600; }
.gr-gaps span { color: var(--c-body); font-size: var(--fs-sm); line-height: 1.5; }

.gr-assoc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.gr-assoc li { padding: 8px 14px; border-radius: 10px; background: #CDE553; color: #151515; font-size: var(--fs-sm); font-weight: 500; }
.gr-senses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gr-sense { padding: 22px; border-radius: 22px; background: var(--c-card); }
.gr-sense p { margin: 8px 0 0; color: var(--c-body); font-size: var(--fs-p); line-height: 1.55; }

.gr-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.gr-loop li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 20px 22px; border-radius: 20px; background: var(--c-card); font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.gr-loop li span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #CDE553; color: #151515; font-size: 15px; font-weight: 700; }
.gr-loop li:last-child::after { content: "↺"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: #CDE553; font-size: 28px; }

.gr-figure { margin: 24px 0 0; }
.gr-figure img { display: block; width: 100%; border-radius: var(--radius-lg); }
.gr-figure--dark { padding: clamp(16px, 3vw, 40px); border-radius: var(--radius-lg); background: #10142b; }
.gr-id { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.gr-id .gr-figure { margin: 0; }
.gr-icons { display: block; width: 100%; max-width: 420px; margin-top: 12px; border-radius: 16px; }
.gr-colors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gr-color { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); }
.gr-color__sw { aspect-ratio: 1 / 1.4; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); margin-bottom: 6px; }
.gr-color b { font-size: var(--fs-sm); font-weight: 600; }
.gr-color code { color: var(--c-muted); font-family: ui-monospace, monospace; }
.gr-color > span:last-child { color: var(--c-body); line-height: 1.4; }
.gr-next { margin-top: 24px; }

@media (max-width: 900px) {
  .gr-hero, .gr-id { grid-template-columns: 1fr; }
  .gr-personas, .gr-loop { grid-template-columns: 1fr; }
  .gr-pains, .gr-gaps { grid-template-columns: 1fr; }
  .gr-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- CV на трёх языках ---------- */
.cv-langs { display: inline-flex; gap: 4px; vertical-align: middle; }
.cv-langs a { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: inherit; text-decoration: none; opacity: .7; transition: opacity .2s, border-color .2s, color .2s; }
.cv-langs a:hover, .cv-langs a:focus-visible { opacity: 1; border-color: var(--accent); color: var(--accent); }
.cv-langs a[aria-current] { opacity: 1; border-color: currentColor; }
.social__cv { display: inline-flex; align-items: center; gap: 10px; }
.contact__cvrow, .exp__cvrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Компактная первая картинка кейса ---------- */
.pw-hero { height: clamp(300px, 32vw, 430px); align-items: flex-start; padding: clamp(28px, 3vw, 44px) 4% 0; }
.pw-hero__main { width: 18%; }
.pw-hero__s { width: 14%; margin-top: 6%; }
.pw-hero__s--1, .pw-hero__s--4 { width: 12%; margin-top: 11%; transform: none; }
.gr-hero { height: clamp(300px, 32vw, 430px); overflow: hidden; align-items: start; padding-bottom: 0; }
.gr-hero__logo { align-self: center; max-height: calc(100% - 24px); object-fit: contain; }
@media (max-width: 760px) {
  .pw-hero { height: 340px; }
  .pw-hero__main { width: 40%; } .pw-hero__s { width: 30%; margin-top: 12%; }
  .gr-hero { height: auto; overflow: visible; padding-bottom: 24px; }
}
.gr-hero { grid-template-rows: minmax(0, 1fr); }
.gr-hero__logo { height: auto; max-height: 100%; }
@media (max-width: 760px) { .gr-hero { grid-template-rows: auto; } }

/* ---------- Направления под NDA ---------- */
.nda { margin-top: clamp(64px, 7vw, 110px); }
.nda__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 28px; }
.nda__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.nda__lock { font-size: 8px; animation: ndaPulse 1.8s ease-in-out infinite; }
@keyframes ndaPulse { 50% { opacity: .25; } }
.nda__h { margin: 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.nda__cta p { margin: 0 0 16px; color: var(--c-muted, rgba(255,255,255,.65)); font-size: var(--fs-p, 17px); line-height: 1.5; }
.nda__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.nda__tile { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 18px; border-radius: var(--radius-lg); background: var(--c-card, rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .5s var(--ease-out), box-shadow .5s; }
.nda__tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); }
.nda__shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius-lg) - 6px); background: var(--c-surface); margin-bottom: 6px; }
.nda__shot > * { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
.nda__shot .mk { position: absolute; left: 50%; top: 50%; width: 78%; transform: translate(-50%, -50%) scale(.82); }
.nda__shot .shot-placeholder__bar { display: none; }
.nda__title { margin: 0 6px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.nda__text { margin: 0 6px; font-size: 14px; line-height: 1.5; color: var(--c-muted, rgba(255,255,255,.6)); }
.nda__chips { margin: auto 6px 0; }
@media (max-width: 1100px) { .nda__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nda__head { grid-template-columns: 1fr; } .nda__grid { grid-template-columns: 1fr; } }
.nda__tile.is-visible .mk * { animation-play-state: running !important; }
@media (max-width: 760px) {
  .nda__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .nda__grid::-webkit-scrollbar { display: none; }
  .nda__tile { scroll-snap-align: start; }
}
@media (hover: none) { .mark__hint { display: none; } }
.is-static .reveal, .is-static .process__step { opacity: 1 !important; translate: none !important; }
.is-static .intro__statement .w { opacity: 1 !important; }

/* ---------- TL;DR ---------- */
.tldr { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); max-width: 720px; }
.tldr__title { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.tldr__title span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--c-muted, rgba(255,255,255,.55)); }
.tldr__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0; }
.tldr__list div { display: grid; gap: 2px; }
.tldr__list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted, rgba(255,255,255,.5)); }
.tldr__list dd { margin: 0; font-size: 15px; line-height: 1.4; }
.tldr__list a { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .6); text-underline-offset: 3px; }
@media (max-width: 760px) { .tldr__list { grid-template-columns: 1fr; } }
.header__langs { display: inline-flex; gap: 2px; }
.footer__langs { display: inline-flex; gap: 16px; }
/* TL;DR — на всю ширину под фото и текстом */
.intro .tldr { max-width: none; margin: clamp(32px, 4vw, 56px) 0 clamp(40px, 4vw, 64px); padding: clamp(20px, 2.2vw, 32px); }
.intro .tldr__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 32px; align-items: start; }
.intro .tldr__list div { align-content: start; }
@media (max-width: 1100px) { .intro .tldr__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .intro .tldr__list { grid-template-columns: 1fr; } }
.contact__person { gap: 0; }
