/* ============ AI studio landing — строгая монохромная система ============ */
:root {
  --void: #000000;
  --smoke: #6a6b6c;
  --ash: #9c9c9d;
  --mist: #e6e6e6;
  --white: #ffffff;
  /* единственный свет в системе — чисто белый, как свет тропы в hero,
     без теплого и холодного подтона. Никаких цветных акцентов. */
  --g: 255, 255, 255;
  --font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hair: rgba(255, 255, 255, .08);
  --hair-2: rgba(255, 255, 255, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.02em;   /* -2%: базовый трекинг всего текста */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: -0.005em; }
.container { max-width: 1920px; margin: 0 auto; padding: 0 22px; }
/* одна левая линия на весь сайт — линия текста hero (20px рамка + 1px бордер +
   99px внутренний отступ = 120px от края). До 1920px контейнер не центрируется,
   а держит эти 120px; дальше оба (контейнер и hero-рамка) съезжают к центру синхронно */
@media (min-width: 1001px) {
  .container { padding-inline: max(22px, calc(120px - max(0px, (100% - 1920px) / 2))); }
}
section, footer { position: relative; z-index: 2; }
/* легкий ч/б туман (vanta.fog) — фиксированный слой под всем контентом */
.page-fog { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nowrap { white-space: nowrap; }
.pipe { color: rgba(255,255,255,.14); }

/* ============ reveal ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ HERO: рамка-контейнер с тропой, нав внутри ============ */
.hero { padding: 20px; min-height: calc(var(--svh, 1svh) * 100); display: flex; }
.hero__frame {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  border-radius: 28px; overflow: hidden;
  /* бок растет только за 1920px: текст hero всегда на общей линии контента */
  padding: 40px max(99px, calc((100% - 1880px) / 2 + 1px)) 56px;
  background: #000;
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero__assemble { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
/* заголовок собирается из частиц сцены, потом вспыхивает вместе с лучом башни */
.hero__title { transition: opacity .7s ease, text-shadow 1.1s ease; }
.hero__frame.is-scene .hin { animation: none; opacity: 1; transform: none; filter: none; }
.hero__sub, .hero__actions { transition: opacity .7s ease, text-shadow 1.1s ease; }
.hero__frame .hero__title.is-await, .hero__frame .hero__sub.is-await, .hero__frame .hero__actions.is-await, .hero__frame .hnav .is-await { opacity: 0; transition: none; animation: hero-failsafe .6s ease 6s forwards; }
/* страховка: если сцена не запустилась, интерфейс проявится сам */
@keyframes hero-failsafe { to { opacity: 1; } }
.hero__title.is-lit, .hero__title.is-flare, .hero__sub.is-lit, .hnav__logo.is-lit, .hnav__links.is-lit a { text-shadow: 0 0 34px rgba(255,255,255,.45), 0 0 90px rgba(255,255,255,.18); transition: opacity .7s ease, text-shadow .25s ease; }
/* кнопки заряжаются, когда в сцене вспыхивает сфера */
.hero__actions .btn { transition: transform .2s cubic-bezier(.2,.6,.2,1), box-shadow 1.2s ease; }
.hero__actions.is-lit .btn, .hero__actions.is-charged .btn, .hnav__cta.is-lit { box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 34px rgba(255,255,255,.28), 0 0 90px rgba(255,255,255,.1); transition: transform .2s cubic-bezier(.2,.6,.2,1), box-shadow .3s ease; }
/* второй слой тумана — поверх кадра hero, черное выбивается блендом */
.hero-fog {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; mix-blend-mode: screen; opacity: .75;
}
/* нав — плоский, без панели и свечения */
.hnav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.hnav__logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 21px; font-weight: 600; letter-spacing: -0.025em; color: #fff;
}
.hnav__star { font-size: 15px; line-height: 1; color: #fff; }
.hnav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; }
.hnav__links a { color: rgba(255,255,255,.62); font-size: 13.5px; font-weight: 400; letter-spacing: -0.005em; transition: color .16s ease; }
.hnav__links a:hover { color: var(--white); }
.hnav__cta {
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; color: #0a0b0d;
  background: linear-gradient(180deg, #ffffff, #e6e6e6);
  padding: 10px 19px; border-radius: 999px;
  box-shadow: rgba(0,0,0,.4) 0 6px 16px -6px, rgba(255,255,255,.9) 0 1px 0 0 inset;
  transition: transform .16s ease;
}
.hnav__cta:hover { transform: translateY(-1px); }
.hero__copy { position: relative; z-index: 2; max-width: 640px; margin: auto 0; padding: 40px 0; }
.hero__title {
  /* width: fit-content — фон градиента красит ровно бокс текста;
     без этого вылезшие за max-width глифы остаются прозрачными */
  width: fit-content; max-width: none;
  font-size: clamp(36px, 3.9vw, 62px);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.031em;
  margin-bottom: 26px;
  background: linear-gradient(135deg, #ffffff 46%, rgba(255,255,255,.66));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  font-weight: 400;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin-bottom: 38px;
}
.hero__actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.hero__actions .btn { font-size: 14px; padding: 13px 24px; }
/* вход hero: заголовок собирается из света (main.js), следом подзаголовок, кнопки, счетчик */
.hin { opacity: 0; transform: translateY(18px); filter: blur(8px); animation: hin 1.1s cubic-bezier(.16,1,.3,1) forwards; }
.hin--1 { animation-delay: 2.45s; }
.hin--2 { animation-delay: 2.7s; }
.hin--3 { animation-delay: 2.7s; }
@keyframes hin { to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .hin { animation: none; opacity: 1; transform: none; filter: none; } }
/* живой счетчик сцены */
.hstat {
  position: absolute; z-index: 2; right: max(99px, calc((100% - 1880px) / 2 + 1px)); bottom: 48px;
  display: grid; gap: 7px; min-width: 250px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,.42);
  font-variant-numeric: tabular-nums;
}
.hstat__row { display: flex; justify-content: space-between; gap: 28px; }
.hstat__row b { font-weight: 500; color: #fff; }
.hstat__live { position: absolute; left: -16px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: hlive 2s ease-in-out infinite; }
@keyframes hlive { 50% { opacity: .25; } }

/* ============ BUTTONS ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 15.5px; font-weight: 500; letter-spacing: -0.012em;
  padding: 15px 28px; border-radius: 999px;
  transition: transform .2s cubic-bezier(.2,.6,.2,1);
  will-change: transform;
}
.btn--lg { font-size: 17px; padding: 18px 34px; }
/* жидкий металл: платиновый mesh под текстом, чернильная типографика */
.btn--shader {
  color: #08090c; overflow: hidden; isolation: isolate;
  background: #e4e4e4;
}
.btn--shader::before {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  /* полупрозрачная вуаль поверх хрома — металл течет, текст читается */
  background: radial-gradient(90% 130% at 50% 50%, rgba(240,240,240,.42), rgba(240,240,240,.1) 82%);
  box-shadow:
    rgba(255,255,255,.95) 0 1px 0 0 inset,
    rgba(0,0,0,.22) 0 -1px 0 0 inset,
    rgba(0,0,0,.14) 0 0 0 1px inset;
  pointer-events: none;
}
/* ореол — белый, холодный, только opacity */
.btn--shader::after {
  content: ''; position: absolute; inset: -26px; z-index: -2; border-radius: 42px;
  background: radial-gradient(56% 74% at 50% 86%, rgba(var(--g), .38), transparent 72%);
  opacity: .55; transition: opacity .3s ease;
  pointer-events: none;
}
.btn--shader:hover { transform: translateY(-2px); }
.btn--shader:hover::after { opacity: 1; }
.btn--shader:active { transform: translateY(0) scale(.992); }
.btn__canvas { position: absolute; inset: -14%; z-index: -1; }
.btn__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.btn__label, .btn__arrow { position: relative; z-index: 3; }
.btn__arrow { font-size: 14px; transition: transform .2s ease; display: inline-block; }
.btn--shader:hover .btn__arrow, .case__link:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--ghost {
  color: rgba(255,255,255,.9);
  border: 1px solid var(--hair-2);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(12px);
  box-shadow: rgba(255,255,255,.07) 0 1px 0 0 inset;
  transition: transform .2s cubic-bezier(.2,.6,.2,1), background .2s ease, border-color .2s ease;
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }

/* ============ SECTIONS ============ */
.section { padding: 210px 0 0; }

/* ============ ABOUT: липкий вопрос ============ */
.ask { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0 clamp(30px, 4.5vw, 90px); }
.ask__side { position: relative; }
.ask__q { position: sticky; top: 38vh; height: 1.2em;
  font-size: clamp(30px, 3.1vw, 56px); font-weight: 250; letter-spacing: -.045em; line-height: 1.08; }
.ask__q span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.6,.2,1); }
.ask__q span.is-on { opacity: 1; transform: none; }
.ask__step { min-height: 40vh; padding-top: .28em; }
.ask__step:last-child { min-height: 30vh; }
.ask__a { font-size: clamp(22px, 1.95vw, 36px); font-weight: 250; letter-spacing: -.035em; line-height: 1.16;
  text-wrap: pretty; max-width: 760px; color: rgba(255,255,255,.2); transition: color .45s ease; }
.ask__step.is-on .ask__a { color: #fff; }
.ask__mq { display: none; }
@media (max-width: 1000px) {
  .ask { display: block; }
  /* на телефоне вопрос прилипает к верху экрана и меняется, ответы едут под ним */
  .ask__side { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; margin: 0 -18px; padding: 22px 18px 40px;
    background: linear-gradient(180deg, #000 60%, rgba(0,0,0,0)); }
  .ask__q { position: relative; top: 0; font-size: 34px; }
  .ask__step { min-height: 38vh; padding-top: 0; }
  .ask__step:last-child { min-height: 40vh; }
  .ask__a { font-size: 26px; }
}

/* ============ ABOUT: тонкая типографика + конкретика услуг ============ */
.about__text {
  font-size: clamp(30px, 2.9vw, 52px);
  font-weight: 250; letter-spacing: -0.02em; line-height: 1.22;
  color: rgba(255,255,255,.9);
  max-width: 1120px; text-wrap: balance;
}
.about__text b, .about__more b { font-weight: inherit; font-style: normal; color: #fff; }
.about__more {
  margin-top: 44px;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 300; letter-spacing: -0.014em; line-height: 1.6;
  color: rgba(255,255,255,.9);
  max-width: 980px; text-wrap: pretty;
}
.about__more + .about__more { margin-top: 22px; }
/* «печать»: слова проявляются каскадом (см. main.js) */
.about__text .w, .about__more .w { opacity: 0; filter: blur(6px); transition: opacity .45s ease, filter .45s ease; }
.about__text.is-typed .w, .about__more.is-typed .w { opacity: 1; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .about__text .w, .about__more .w { opacity: 1; filter: none; } }
.section__head { max-width: 760px; }
.section__num { color: rgba(255,255,255,.4); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.section__num::before {
  content: ''; width: 5px; height: 5px; border-radius: 1.5px; transform: rotate(45deg);
  background: rgba(var(--g), .85); box-shadow: 0 0 9px rgba(var(--g), .45);
}
.section__title {
  font-size: clamp(34px, 4.3vw, 60px);
  font-weight: 400; letter-spacing: -0.038em; line-height: 1.04;
  text-wrap: balance; margin-bottom: 22px;
  color: rgba(255,255,255,.97);
}
.section__sub { font-size: 17px; font-weight: 400; color: rgba(255,255,255,.5); max-width: 640px; line-height: 1.58; letter-spacing: -0.008em; margin-bottom: 74px; }

/* ============ GLASS CARD — один материал, один свет ============ */
.gcard {
  position: relative;
  border-radius: 24px;
  isolation: isolate;
  /* стекло: полупрозрачная чернильная база + блюр по фоновому mesh */
  background:
    radial-gradient(86% 44% at 50% 104%, rgba(var(--g), .26) 0%, rgba(var(--g), .1) 44%, transparent 74%),
    radial-gradient(140% 90% at 50% 124%, rgba(var(--g), .1) 0%, transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.016) 30%, rgba(255,255,255,0) 55%),
    rgba(10, 11, 15, .52);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -38px 64px -30px rgba(var(--g), .42),
    inset 0 0 46px -18px rgba(var(--g), .14),
    0 30px 70px -34px rgba(0,0,0,.85);
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
/* кант: волосяной, чуть светлее сверху и у нижней кромки */
.gcard::before {
  content: ''; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.22) 0%,
    rgba(255,255,255,.07) 26%,
    rgba(255,255,255,.06) 62%,
    rgba(var(--g), .38) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* hover: внутренний свет разгорается, только opacity */
.gcard::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(82% 42% at 50% 103%, rgba(var(--g), .16), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
  opacity: 0; transition: opacity .4s ease;
}
.gcard:hover { transform: translateY(-4px); }
.gcard:hover::after { opacity: 1; }
/* широкая панель не подпрыгивает — только разгорается */

/* ============ ЧТО УМЕЕТ AI — лента производства ============ */
/* конвейер: сам едет, сквозь стекло карт виден бегущий рельс, по краям — темнота.
   Набор станций клонируется в main.js, цикл бесшовный */
.belt-zone { position: relative; }
.belt-rail { position: absolute; left: 0; right: 0; top: 134px; z-index: 0; }
/* базовая нить рельса под штрихами */
.belt-rail::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgba(255,255,255,.055);
}
.belt-rail .dash { display: block; }
/* комета: сгусток света периодически пробегает по рельсу под картами */
.belt-rail::after {
  content: ''; position: absolute; top: -1px; left: -220px; width: 220px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5) 72%, rgba(255,255,255,.95));
  box-shadow: 0 0 14px rgba(var(--g), .4), 0 0 40px rgba(var(--g), .18);
  opacity: 0;
  animation: rail-pulse 7s cubic-bezier(.5,.05,.6,.9) infinite 1.6s;
}
@keyframes rail-pulse {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  52% { transform: translateX(calc(100vw + 440px)); opacity: 1; }
  53% { opacity: 0; }
  100% { transform: translateX(calc(100vw + 440px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .belt-rail::after { animation: none; } }
.belt-fade {
  position: absolute; top: 0; bottom: 0; width: 160px; z-index: 4; pointer-events: none;
}
.belt-fade--l { left: 0; background: linear-gradient(90deg, var(--void) 8%, transparent); }
.belt-fade--r { right: 0; background: linear-gradient(270deg, var(--void) 8%, transparent); }
.belt-wrap {
  position: relative; z-index: 1;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.belt-wrap::-webkit-scrollbar { display: none; }
.belt-wrap.is-drag { cursor: grabbing; }
.belt { display: flex; width: max-content; padding: 6px 0 28px; }
.belt__set { display: flex; align-items: stretch; gap: 18px; padding-right: 18px; }
.bitem {
  width: 300px; flex: none;
  display: flex; flex-direction: column;
  padding: 18px 20px 22px; border-radius: 20px;
  /* материал gcard, свечение приглушено под мелкий масштаб */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -30px 52px -26px rgba(var(--g), .3),
    inset 0 0 40px -18px rgba(var(--g), .1),
    0 24px 56px -30px rgba(0,0,0,.8);
}
.bitem__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.bitem__num { color: rgba(255,255,255,.3); }
.bitem__cut {
  font-size: 11px; color: rgba(255,255,255,.55);
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.bitem__art {
  height: 152px; margin: 14px 0 18px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  background: radial-gradient(66% 82% at 50% 50%, rgba(var(--g), .08), transparent 72%);
}
.bitem__title {
  position: relative; z-index: 2;
  font-size: 17px; font-weight: 500; letter-spacing: -0.022em;
  color: rgba(255,255,255,.94); margin-bottom: 10px;
}
.bitem__price { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.bitem__price s { color: rgba(255,255,255,.34); font-size: 13px; text-decoration-color: rgba(255,255,255,.28); }
.bitem__arr { color: rgba(255,255,255,.3); font-size: 13px; }
.bitem__price b {
  font-family: var(--mono); font-weight: 500; font-size: 21px; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 18px rgba(var(--g), .45);
}
/* пустой слот на ленте — ваш процесс */
.bitem--ask {
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.015);
}
.bitem--ask .bitem__art { background: none; }
.ask__plus { font-size: 42px; font-weight: 300; line-height: 1; color: rgba(255,255,255,.4); }
.bitem__ask { font-size: 13.5px; color: rgba(255,255,255,.45); line-height: 1.52; margin-bottom: 18px; }
.dash { position: relative; overflow: hidden; height: 1px; }
.dash::before {
  content: ''; position: absolute; left: -14px; top: 0; height: 1px; width: calc(100% + 28px);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 5px, transparent 5px 14px);
  animation: belt-run 1.4s linear infinite;
}
@keyframes belt-run { to { transform: translateX(14px); } }
/* рельс бежит в сторону движения ленты */
.dash--rev::before { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .dash::before { animation: none; } }

/* --- артефакты станций: стеклянные мини-макеты, монохром --- */
.ba {
  position: relative; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 34px -18px rgba(0,0,0,.7);
  width: 188px; padding: 26px 15px 15px;
}
.ba__dots {
  position: absolute; top: 7px; left: 10px; width: 4.5px; height: 4.5px; border-radius: 50%;
  background: rgba(255,255,255,.42);
  box-shadow: 8px 0 0 rgba(255,255,255,.22), 16px 0 0 rgba(255,255,255,.22);
}
.ba b { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); }
.ba b.h { height: 8px; width: 76%; background: rgba(255,255,255,.5); box-shadow: 0 0 10px rgba(255,255,255,.18); }
/* лендинг */
.ba-land { display: flex; flex-direction: column; gap: 7px; }
.ba-land__btn { width: 46px; height: 13px; border-radius: 999px; background: linear-gradient(180deg, #ffffff, #e4e4e4); box-shadow: 0 0 14px rgba(255,255,255,.2); margin-top: 2px; }
.ba-land__img { height: 32px; border-radius: 6px; background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); margin-top: 3px; }
/* презентация: веер слайдов */
.ba-slides { position: relative; width: 164px; height: 112px; }
.ba-slides .sl {
  position: absolute; inset: 0; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 14px 30px -16px rgba(0,0,0,.7);
  padding: 13px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.ba-slides .sl b { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.26); }
.ba-slides .sl b.h { height: 7px; background: rgba(255,255,255,.5); box-shadow: 0 0 10px rgba(255,255,255,.18); }
.sl--1 { transform: rotate(-5deg) translate(-11px, 5px); opacity: .4; }
.sl--2 { transform: rotate(3deg) translate(10px, 1px); opacity: .65; }
/* аналитика: график со свечением */
.ba-dash svg { display: block; width: 100%; height: 56px; filter: drop-shadow(0 0 10px rgba(255,255,255,.22)); }
.ba-dash__kpi { display: flex; gap: 8px; margin-top: 10px; }
/* контент: сетка постов (верх — картинка, низ — подпись) */
.ba-posts { display: grid; grid-template-columns: repeat(3, 50px); gap: 8px; }
.ba-posts i {
  height: 58px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0 64%, rgba(255,255,255,.04) 64%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ba-posts i.on { background: linear-gradient(180deg, rgba(255,255,255,.34) 0 64%, rgba(255,255,255,.08) 64%); box-shadow: 0 0 14px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.3); border-color: transparent; }
/* внутренний софт: сайдбар + строки */
.ba-app { display: flex; gap: 11px; width: 192px; }
.ba-app__side { width: 32px; border-right: 1px solid rgba(255,255,255,.1); padding-right: 9px; display: flex; flex-direction: column; gap: 8px; }
.ba-app__side b { height: 4.5px; }
.ba-app__main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ba-app__main .r { height: 12px; border-radius: 4.5px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.07); }
.ba-app__main .r.on { background: rgba(255,255,255,.3); border-color: transparent; box-shadow: 0 0 12px rgba(255,255,255,.2); }
/* бот поддержки: пузыри чата */
.ba-chat { display: flex; flex-direction: column; gap: 8px; width: 160px; }
.ba-chat i {
  display: block; height: 17px; width: 66%;
  border-radius: 10px 10px 10px 3px;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.ba-chat i.me {
  align-self: flex-end; width: 56%;
  border-radius: 10px 10px 3px 10px; border: 0;
  background: linear-gradient(180deg, #ffffff, #e0e0e0);
  box-shadow: 0 0 16px rgba(255,255,255,.25), inset 0 1px 0 rgba(255,255,255,.9);
}

/* ============ КЕЙСЫ: табы + обложка + единая стена кадров ============ */
.ftabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.ftab {
  font-family: var(--font); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(255,255,255,.55);
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.ftab:hover { color: #fff; border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.ftab.is-on {
  color: #0a0b0d; background: linear-gradient(180deg, #ffffff, #e6e6e6); border-color: transparent;
  box-shadow: rgba(0,0,0,.4) 0 6px 16px -6px, rgba(255,255,255,.9) 0 1px 0 0 inset;
  transform: none; cursor: default;
}

/* обложка флагмана — первая большая ячейка общей сетки */
.cwall__feat {
  grid-column: 1 / -1;
  position: relative; overflow: hidden;
  min-height: 520px;
  display: flex; flex-direction: column; justify-content: center;
  /* слева больше: копи обложки возвращается на линию контента секций */
  padding: 56px 64px 56px 134px;
  background: #000;
}
.cfeat__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 74% 50%;
  pointer-events: none; user-select: none;
}
/* кадр обложки теплый по всему полю — под копи уходит вуаль от левого края,
   чтобы заголовок лежал на черном, а не на дымке (справа сходит на нет) */
.cwall__feat::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.86) 26%, rgba(0,0,0,.5) 48%, transparent 68%);
}
.cfeat__copy { position: relative; z-index: 2; max-width: 480px; }
.cfeat__name {
  font-size: clamp(27px, 2.7vw, 41px); font-weight: 450;
  letter-spacing: -0.032em; line-height: 1.09; margin-bottom: 17px;
  color: rgba(255,255,255,.97);
}
.cfeat__desc { font-size: 15.5px; color: rgba(255,255,255,.6); line-height: 1.6; letter-spacing: -0.008em; max-width: 430px; margin-bottom: 32px; }
.cfeat__btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: #0a0b0d;
  background: linear-gradient(180deg, #ffffff, #e6e6e6);
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: rgba(0,0,0,.4) 0 6px 16px -6px, rgba(255,255,255,.9) 0 1px 0 0 inset;
  transition: transform .2s cubic-bezier(.2,.6,.2,1);
}
.cfeat__btn:hover { transform: translateY(-2px); }
.cfeat__btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* стена кейсов: одна структура — общая явная рамка, между ячейками общие
   волосяные линии (box-shadow ячеек в зазоре), фон везде черный */
.cwall {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px; overflow: hidden;
}
.cwall__feat, .cwall__cell { box-shadow: 0 0 0 1px rgba(255,255,255,.13); }
.cwall__cell { position: relative; display: block; height: 320px; background: #000; overflow: hidden; }
/* на широком контенте ячейки шире — растим высоту, чтобы кадры держали пропорцию */
@media (min-width: 1600px) { .cwall__cell { height: 390px; } }
.cwall__cell img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; user-select: none;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.cwall__cell:hover img { transform: scale(1.035); }
/* кадры цветные и светлые у пола — под подписью тихая вуаль, иначе текст тонет */
.cwall__veil { display: none; }
.cwall__cell::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.68) 48%, rgba(0,0,0,.92));
  pointer-events: none; z-index: 1;
}
.cwall__text {
  position: absolute; left: 30px; right: 30px; bottom: 25px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
  text-shadow: 0 1px 18px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.5);
}
.cwall__text b {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 22px; font-weight: 500; letter-spacing: -0.025em; color: rgba(255,255,255,.97);
}
.cwall__text b i { font-style: normal; font-size: 15px; color: rgba(255,255,255,.5); transition: transform .2s ease, color .2s ease; }
.cwall__cell:hover b i { transform: translate(2px, -2px); color: #fff; }
.cwall__text > span { font-size: 15.5px; letter-spacing: -0.01em; color: rgba(255,255,255,.66); line-height: 1.45; }
/* фильтр табов */
.cwall__feat.is-off, .cwall__cell.is-off { display: none; }

/* ячейки без кадра (скрины вставим позже): мини-макет в языке станций ленты,
   по центру, над текстом; тихое свечение позади */
.cwall__flat {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 74px;
  background: radial-gradient(46% 40% at 50% 42%, rgba(255,255,255,.05), transparent 72%);
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.cwall__cell:hover .cwall__flat { transform: scale(1.035); }

/* ссылка-действие в карточках ленты */
.case__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; color: rgba(255,255,255,.78);
  transition: color .18s ease;
}
.case__link:hover { color: var(--white); }
.case__link .btn__arrow { font-size: 12px; }

/* ============ УСЛУГИ: строки с ценами ============ */
.svc { border-top: 1px solid rgba(255,255,255,.1); }
.svc__row {
  display: grid; grid-template-columns: minmax(240px, 330px) 1fr auto;
  gap: 40px; align-items: baseline;
  padding: 27px 4px; border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .2s ease;
}
.svc__row:hover { background: rgba(255,255,255,.02); }
.svc__name { font-size: 19px; font-weight: 450; letter-spacing: -0.024em; color: rgba(255,255,255,.95); }
.svc__desc { font-size: 15px; font-weight: 300; letter-spacing: -0.008em; color: rgba(255,255,255,.62); line-height: 1.65; max-width: 660px; }
.svc__price {
  justify-self: end; white-space: nowrap;
  font-size: 16px; font-weight: 500; letter-spacing: -0.014em;
  color: rgba(255,255,255,.92); font-variant-numeric: tabular-nums;
}
.svc__note { margin-top: 20px; color: rgba(255,255,255,.38); }

/* ============ PROCESS: карточки на ногах + единый бегущий свет ============ */
/* Конструкция: карточки стоят на ногах над общей базой, на базе узлы-кольца,
   под ней шкала сроков. Поверх идет одна светящаяся полоса по единому маршруту
   (база → нога → обвод карточки → нога → база), путь строит main.js по реальным
   координатам. На мобиле раскладка поворачивается: рельс слева, узлы на нем,
   свет идет сверху вниз и так же обходит каждую карточку. */
.pf { position: relative; }
.pf__row {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; align-items: end; padding-bottom: 92px;
}
.pf__c {
  position: relative; margin-bottom: var(--m, 0px);
  border: 1px solid rgba(255,255,255,.11); border-radius: 16px;
  background: rgba(255,255,255,.018); padding: 20px 22px 24px;
}
.pf__c::after {
  content: ''; position: absolute; left: 26px; top: 100%; width: 1px;
  height: calc(92px + var(--m, 0px));
  background: rgba(255,255,255,.1);
}
.pf__row > .pf__c:nth-child(1) { --m: 0px; }
.pf__row > .pf__c:nth-child(2) { --m: 34px; }
.pf__row > .pf__c:nth-child(3) { --m: 68px; }
.pf__row > .pf__c:nth-child(4) { --m: 102px; }

.pf__i { display: block; font-size: 11px; color: rgba(255,255,255,.34); margin-bottom: 26px; }
.pf__c h3 {
  font-size: 16.5px; font-weight: 500; letter-spacing: -0.019em;
  color: rgba(255,255,255,.96); margin-bottom: 8px;
}
.pf__c p {
  font-size: 13px; font-weight: 300; letter-spacing: -0.005em; line-height: 1.6;
  color: rgba(255,255,255,.5);
}
.pf__t, .pf__node { display: none; }

/* база выходит за контейнер до краев экрана: вылеты считает main.js и кладет
   в переменные, чтобы не связываться с 100vw и полосой прокрутки */
.pf__base {
  position: relative; height: 1px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.pf__base::before {
  content: ''; position: absolute; top: 0; height: 1px;
  left: calc(-1 * var(--bleed-l, 0px)); right: calc(-1 * var(--bleed-r, 0px));
  background: rgba(255,255,255,.15);
}
.pf__base b { position: relative; display: block; }
.pf__base b::before {
  content: ''; position: absolute; left: 26px; top: 50%; transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--void); border: 1px solid rgba(255,255,255,.32);
  transition: border-color .4s ease;
}
.pf__base b::after {
  content: ''; position: absolute; left: 26px; top: 50%; transform: translate(-50%, -50%);
  width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.85);
  transition: box-shadow .4s ease;
}
.pf__base b.on::before { border-color: rgba(255,255,255,.9); }
.pf__base b.on::after { box-shadow: 0 0 9px 2px rgba(255,255,255,.55); }

.pf__foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 17px; }
.pf__foot span {
  font-size: 11.5px; color: rgba(255,255,255,.36); padding-left: 26px;
  transition: color .4s ease;
}
.pf__foot span.on { color: rgba(255,255,255,.72); }

.pf__flow { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.pf__flow path { fill: none; stroke: #fff; stroke-linecap: round; }
.pf__flow .dim { stroke-width: 1; opacity: .12; }
.pf__flow .far { stroke-width: 1.1; opacity: .26; }
.pf__flow .mid { stroke-width: 1.2; opacity: .55; }
.pf__flow .halo { stroke-width: 7; opacity: .45; filter: blur(5px); }
.pf__flow .head { stroke-width: 1.6; opacity: 1; }
.pf__flow .probe { stroke: none; }

@media (max-width: 860px) {
  .pf__row {
    grid-template-columns: 1fr; gap: 14px; align-items: stretch;
    padding: 0 0 0 34px;
  }
  .pf__row::before {
    content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
    width: 1px; background: rgba(255,255,255,.1);
  }
  .pf__c { margin-bottom: 0 !important; padding: 18px 20px 20px; }
  .pf__c::after {
    left: -24px; top: 26px; width: 24px; height: 1px;
    background: rgba(255,255,255,.1);
  }
  .pf__node {
    display: block; position: absolute; left: -24px; top: 26px;
    width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  }
  .pf__node::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: var(--void); border: 1px solid rgba(255,255,255,.32);
    transition: border-color .4s ease;
  }
  .pf__node::after {
    content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.85);
    transition: box-shadow .4s ease;
  }
  .pf__node.on::before { border-color: rgba(255,255,255,.9); }
  .pf__node.on::after { box-shadow: 0 0 9px 2px rgba(255,255,255,.55); }
  .pf__i { margin-bottom: 16px; }
  .pf__c h3 { font-size: 17px; }
  .pf__c p { font-size: 13.5px; }
  .pf__t {
    display: block; margin-top: 14px; font-size: 11.5px;
    color: rgba(255,255,255,.36); transition: color .4s ease;
  }
  .pf__t.on { color: rgba(255,255,255,.72); }
  .pf__base, .pf__foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pf__flow { display: none; }
}

/* ============ CTA ============ */
.cta {
  position: relative; overflow: hidden;
  margin: 210px 20px 20px;
  padding: 150px 0 130px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 28px;
  background: #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.cta__shader { position: absolute; inset: 0; z-index: 0; opacity: .8; }
.cta__shader canvas { display: block; width: 100% !important; height: 100% !important; }
.cta__veil {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(56% 46% at 50% 52%, rgba(0,0,0,.55) 0%, transparent 72%);
}
.cta__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(38px, 5vw, 72px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.03; margin-bottom: 22px; text-wrap: balance; }
.cta__sub { font-size: 17px; color: rgba(255,255,255,.62); max-width: 540px; line-height: 1.58; letter-spacing: -0.008em; margin-bottom: 42px; }
.cta__actions { margin-bottom: 24px; }
.cta__note { color: rgba(255,255,255,.45); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--hair); padding: 28px 0; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__meta { color: rgba(255,255,255,.32); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: rgba(255,255,255,.5); transition: color .16s ease; }
.footer__links a:hover { color: var(--white); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .hero { padding: 12px; }
  .hero__frame { padding: 26px 30px 38px; border-radius: 22px; }
  .hstat { right: 30px; bottom: 30px; }
  .hero__copy { max-width: 560px; padding: 90px 0 70px; }
  .cwall__feat { padding: 40px 36px; min-height: 440px; }
  .cfeat__img { object-position: 78% 50%; }
  .cwall { grid-template-columns: 1fr 1fr; }
  .cwall__cell { height: 280px; }
  .cmore__grid { grid-template-columns: 1fr 1fr; gap: 18px 26px; }
  .cmore__i + .cmore__i { border-left: 0; padding-left: 0; }
  .svc__row { grid-template-columns: minmax(180px, 240px) 1fr auto; gap: 24px; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hnav__links { display: none; }
  .section { padding-top: 120px; }
  /* обе строки со своими .nowrap обязаны влезать в узкую рамку */
  .hero__title { font-size: clamp(26px, 7.6vw, 33px); letter-spacing: -0.028em; }
  /* узкое окно кадра смещаем в темную зону картинки: текст на черном,
     свечение тропы входит снизу и справа */
  .hero__copy { margin: 0; padding: 70px 0 0; }
  .hstat { left: 30px; right: auto; bottom: 26px; min-width: 0; width: calc(100% - 60px); }
  .hero__title, .hero__sub { text-shadow: 0 2px 28px rgba(0,0,0,.9), 0 0 60px rgba(0,0,0,.7); }
  .svc__row { grid-template-columns: 1fr; gap: 8px; padding: 22px 2px; }
  .svc__price { justify-self: start; }
  .bitem { width: 268px; }
  .ftabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -18px 22px; padding: 2px 18px 6px;
  }
  .ftabs::-webkit-scrollbar { display: none; }
  .ftab { flex: none; }
  /* обложка на узком: текст сверху, кадр полной шириной вниз */
  .cwall__feat { padding: 30px 24px 0; min-height: 0; justify-content: flex-start; }
  .cwall__feat::before { display: none; } /* на узком копи над кадром — вуаль не нужна */
  .cfeat__copy { order: 1; max-width: none; }
  .cfeat__img { order: 2; position: static; height: 250px; width: 108%; margin: 10px -4% 0; object-position: 62% 50%; }
  .cwall { grid-template-columns: 1fr; }
  .cwall__cell { height: 230px; }
  /* на узком текст занимает половину кадра — под него уходит мягкая подложка,
     чтобы подпись читалась и на светлых кадрах (тень одна уже не держит) */
  .cwall__cell::after { height: 80%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8) 42%, rgba(0,0,0,.94)); }
  .belt-fade { width: 54px; }
  .cta { margin: 130px 12px 12px; padding: 110px 0 95px; border-radius: 22px; }
}

/* ============ ПОПАП КЕЙСА ============ */
/* десктоп — модальное окно по центру; мобилка — bottom sheet на весь экран.
   Панель — темное стекло: обводка, немного черного, блюр. Порядок документа:
   заголовок → подзаголовок → кадр → факты → тонкий светлый текст.
   Анимации только на opacity/transform; ниже зерна (999) */
.cmodal[hidden] { display: none; }
.cmodal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.cmodal__back {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s ease;
  cursor: pointer;
}
.cmodal.is-open .cmodal__back { opacity: 1; }
.cmodal__panel {
  position: relative;
  width: min(840px, 100%); max-height: min(90vh, 980px);
  display: flex; flex-direction: column;
  background: rgba(6,6,7,.55);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.09);
  opacity: 0; transform: translateY(26px) scale(.97);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.cmodal.is-open .cmodal__panel { opacity: 1; transform: none; }
.cmodal__close {
  position: absolute; top: 20px; right: 20px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16); cursor: pointer;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.cmodal__close svg { display: block; }
.cmodal__close:hover { color: #fff; border-color: rgba(255,255,255,.4); transform: rotate(90deg); }
.cmodal__grip { display: none; }
.cmodal__scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }

/* шапка: заголовок и подзаголовок, много воздуха */
.cmodal__head { padding: 54px 58px 30px; }
.cmodal__title {
  font-size: clamp(26px, 3vw, 37px); font-weight: 450;
  letter-spacing: -0.033em; line-height: 1.13; text-wrap: balance;
  color: rgba(255,255,255,.97);
  padding-right: 40px; margin-bottom: 16px;
}
.cmodal__tag {
  font-size: 18px; font-weight: 300; letter-spacing: -0.014em; line-height: 1.6;
  color: rgba(255,255,255,.82); text-wrap: pretty;
  max-width: 620px;
}

/* кадр кейса — отдельная скругленная картинка */
.cmodal__pic {
  display: block; width: calc(100% - 116px); margin: 8px auto 0;
  height: clamp(230px, 36vh, 350px); object-fit: cover;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.13);
  background: #000; user-select: none;
}
.cmodal__pic[hidden] { display: none; }

.cmodal__body { padding: 40px 58px 72px; }
/* сроки и стоимость — отдельная карточка, выделена дизайном */
.cmodal__facts {
  display: flex; flex-wrap: wrap; gap: 16px 0;
  border: 1px solid rgba(255,255,255,.11); border-radius: 20px;
  background: rgba(255,255,255,.025); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding: 26px 32px;
  margin-bottom: 52px;
}
.cmodal__facts[hidden] { display: none; }
.cmodal__fact { flex: 1 1 0; min-width: 150px; display: flex; flex-direction: column; gap: 6px; padding: 2px 32px; border-left: 1px solid rgba(255,255,255,.11); }
.cmodal__fact:first-child { padding-left: 0; border-left: 0; }
.cmodal__fact b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.cmodal__fact span { font-size: 13.5px; letter-spacing: -0.005em; color: rgba(255,255,255,.5); }

/* текст: тонкий, светлый, свободный; заголовки секций — чистые, без линий */
.cmodal__text h4 {
  font-size: 17.5px; font-weight: 500; letter-spacing: -0.018em;
  color: #fff; margin: 54px 0 18px;
}
.cmodal__text h4:first-child { margin-top: 0; }
.cmodal__text p {
  font-size: 15.5px; font-weight: 300; letter-spacing: -0.011em; line-height: 1.85;
  color: rgba(255,255,255,.88); text-wrap: pretty;
}
.cmodal__text p + p { margin-top: 22px; }
.cmodal__text b { font-weight: 500; color: #fff; }
/* списки: строки с волосяными линиями */
.cmodal__text ul { list-style: none; margin: 22px 0 10px; border-bottom: 1px solid rgba(255,255,255,.09); }
.cmodal__text ul li {
  padding: 15px 2px; border-top: 1px solid rgba(255,255,255,.09);
  font-size: 15px; font-weight: 300; letter-spacing: -0.011em; line-height: 1.6;
  color: rgba(255,255,255,.85);
}
/* шаги: моно-номер + строка, те же волосяные линии */
.cmodal__text ol { list-style: none; margin: 22px 0 10px; counter-reset: step; border-bottom: 1px solid rgba(255,255,255,.09); }
.cmodal__text ol li {
  counter-increment: step;
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 2px; border-top: 1px solid rgba(255,255,255,.09);
  font-size: 15px; font-weight: 300; letter-spacing: -0.011em; line-height: 1.65;
  color: rgba(255,255,255,.88);
}
.cmodal__text ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.38);
}
/* пара карточек: две сущности рядом */
.cmodal__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 12px; }
.cmodal__duo > div {
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  background: rgba(255,255,255,.025); box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  padding: 22px 24px;
}
.cmodal__duo h5 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.014em; color: #fff; margin-bottom: 8px; }
.cmodal__text .cmodal__duo p { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.78); }
/* крупный вынос — одна мысль тонким крупным */
.cmodal__text .big {
  font-size: 20px; font-weight: 250; letter-spacing: -0.022em; line-height: 1.5;
  color: rgba(255,255,255,.95); text-wrap: balance;
  margin: 44px 0;
}

@media (max-width: 720px) {
  /* bottom sheet на весь экран: выезжает снизу, сверху остается кромка фона */
  .cmodal { padding: 0; align-items: flex-end; }
  .cmodal__panel {
    width: 100%; height: calc(100dvh - 14px); max-height: none;
    border-radius: 24px 24px 0 0; border-bottom: 0;
    transform: translateY(100%);
  }
  .cmodal__grip {
    display: block; position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 4;
    touch-action: none; cursor: grab;
  }
  .cmodal__grip::after {
    content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.32);
  }
  .cmodal__head { padding: 40px 24px 22px; }
  .cmodal__pic { width: calc(100% - 48px); height: 215px; border-radius: 16px; }
  .cmodal__body { padding: 28px 24px 50px; }
  /* факты столбиком, без лесенки из бордеров */
  .cmodal__facts { flex-direction: column; gap: 16px; margin-bottom: 34px; }
  .cmodal__duo { grid-template-columns: 1fr; }
  .cmodal__fact { padding: 0; border-left: 0; }
  .cmodal__close { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmodal__back, .cmodal__panel { transition: none; }
  .cmodal__panel { opacity: 1; transform: none; }
}
