/* ==========================================================================
   OKTTA — главная. Вёрстка по макету Figma (кадр 1440px).
   ========================================================================== */

/* Шрифт из UI-кита: PP Neue Corp Normal Medium — одно начертание на весь сайт.
   Диапазон 400–700 указывает браузеру брать этот же файл для любого веса,
   чтобы он не дорисовывал «фальшивый» жирный. Символа ₽ в шрифте нет —
   он подставляется из запасного шрифта Inter. */
@font-face {
  font-family: "PP Neue Corp";
  src: url("fonts/PPNeueCorp-NormalMedium.b17ca47e5898.woff2") format("woff2"),
       url("fonts/PPNeueCorp-NormalMedium.b2e971f78228.woff") format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* --- Цвета из UI-кита --- */
  --black: #171717;
  --white: #ffffff;
  --bg-page: #f6f6f6;
  --bg-card: #fcfcfc;

  --black-60: rgba(23, 23, 23, .6);
  --black-40: rgba(23, 23, 23, .4);
  --black-10: rgba(23, 23, 23, .1);
  --black-5:  rgba(23, 23, 23, .05);

  --white-70: rgba(255, 255, 255, .7);
  --white-50: rgba(255, 255, 255, .5);
  --white-20: rgba(255, 255, 255, .2);
  --white-8:  rgba(255, 255, 255, .08);

  /* пятна фона */
  --spot-pink:   #ee99cc;
  --spot-green:  #99eeaa;
  --spot-blue:   #99cdee;
  --spot-sand:   #eecd99;
  --spot-violet: #bc99ee;

  /* --- Типографика из UI-кита --- */
  --fs-display: 130px; --lh-display: 1;   --ls-display: -.01em;
  --fs-h1: 56px;       --lh-h1: 1;        --ls-h1: -.01em;
  --fs-h2: 40px;       --lh-h2: 1;        --ls-h2: -.01em;
  --fs-h3: 32px;       --lh-h3: 1.1;      --ls-h3: -.01em;
  --fs-h4: 24px;       --lh-h4: 1.1;
  --fs-b16: 16px; --fs-b14: 14px; --fs-b12: 12px; --lh-body: 1.4;

  /* --- Семантические алиасы (используются ниже) --- */
  --bg: var(--bg-page);
  --surface: var(--white);
  --surface-2: var(--bg-card);
  --ink: var(--black);
  --muted: var(--black-40);
  --text-2: var(--black-60);
  --line: var(--black);
  --chip: var(--black-5);

  --dark-bg: var(--black);
  --dark-surface: #2b2b2b;   /* white 8% поверх #171717 — непрозрачно, чтобы сайдбар не просвечивал */
  --dark-ink: var(--white);
  --dark-muted: var(--white-50);
  --dark-line: var(--white-20);

  --gutter: 20px;          /* внешний отступ страницы */
  --sidebar-w: 304px;      /* ширина сайдбара */
  --col-gap: 22px;         /* зазор между сайдбаром и контентом */
  --content-left: calc(var(--gutter) + var(--sidebar-w) + var(--col-gap));

  --radius: 4px;
  --font: "PP Neue Corp", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 var(--fs-b14)/var(--lh-body) var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.muted { color: var(--muted); }

/* --- Логотип-вордмарк --- */
/* Логотип — SVG из айдентики (Oktta_logo_black.svg), цвет берёт от текста: на тёмном он белый */
.logo { display: inline-block; width: 106px; line-height: 0; color: inherit; }
.logo__svg { display: block; width: 100%; height: auto; }
.logo--xs { width: 52px; }

/* --- Каркас: липкий сайдбар + колонка контента --- */
.shell { position: relative; }
.sidebar-track {
  position: absolute;
  top: var(--gutter);
  bottom: var(--sec-gap);   /* сайдбар доезжает до низа баннера Telegram (= нижний отступ .tg-wrap), не заходит в футер */
  left: var(--gutter);
  width: var(--sidebar-w);
  z-index: 20;
  pointer-events: none;
}
.sidebar {
  position: sticky;
  top: var(--gutter);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2 * var(--gutter));   /* во всю высоту окна */
  min-height: 560px;
  padding: 28px 10px 10px;
  background: var(--surface);
  border-radius: 5px;
  box-shadow: none;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.sidebar__logo { margin: 0 0 0 12px; align-self: flex-start; }
.sidebar__nav { display: flex; flex-direction: column; margin-top: 56px; padding: 0 12px; }
.sidebar__nav a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-b16); line-height: 30px; min-height: 30px;
  transition: opacity .2s;
}

.count { color: var(--muted); }
.sidebar__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.showreel {
  position: relative; display: block;
  aspect-ratio: 282 / 148;
  border-radius: 5px;
  overflow: hidden; clip-path: inset(0 round 5px);
  background: linear-gradient(135deg, #f2f2f2 0%, #d8d8d8 55%, #bfbfbf 100%);
}
.showreel img, .showreel__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* в превью шоурила слева пара чёрных колонок пикселей — чуть увеличиваем, чтобы край не был виден */
.showreel__video { scale: 1.03; }
/* Квадратная «стеклянная» кнопка: размытие того, что под ней, чёткие края */
.glass-play {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 8px;
  color: #fff;
  background: rgba(22, 20, 32, .38);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 20px rgba(0, 0, 0, .12);
}
.glass-play svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.showreel__play {
  position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px;
  transition: transform .35s var(--ease), background-color .35s ease;
}
.showreel:hover .showreel__play, .showreel:focus-visible .showreel__play, .showreel.is-hover .showreel__play { transform: scale(1.08); background-color: rgba(22, 20, 32, .5); }
.showreel img, .showreel__video { transition: transform .6s var(--ease); }
.showreel:hover img, .showreel.is-hover img, .showreel:hover .showreel__video, .showreel.is-hover .showreel__video { transform: scale(1.04); }

/* Шоурил на весь экран: растёт из карточки в сайдбаре, курсор над видео — кнопка «пауза» */
.reel {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 12, 14, 0); cursor: none;
  transition: background-color .6s var(--ease);
}
.reel.is-open { background: rgba(12, 12, 14, .94); }
.reel__video {
  position: absolute; display: block; background: #000; object-fit: cover;
  transform-origin: 0 0; border-radius: var(--radius);
  transition: transform .75s cubic-bezier(.76, 0, .24, 1), border-radius .75s cubic-bezier(.76, 0, .24, 1);
}
.reel.is-open .reel__video { border-radius: 0; }
.reel__cursor {
  position: fixed; left: 0; top: 0; margin: -28px 0 0 -28px; width: 56px; height: 56px; border-radius: 10px;
  pointer-events: none; opacity: 0; transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease;
}
.reel__cursor svg { width: 18px; height: 18px; }
.reel.is-open.has-pointer .reel__cursor { opacity: 1; transform: scale(1); }
.reel:focus { outline: none; }
@media (hover: none) {
  .reel { cursor: auto; }
  .reel__cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reel, .reel__video { transition: none; }
}


.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cta {
  display: flex; flex-direction: column;
  min-height: 128px; padding: 12px 14px;
  border-radius: var(--radius);
  font-size: var(--fs-b14); line-height: var(--lh-body);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
/* Наведение: снизу вверх поднимается заливка, как у строк «Услуг».
   Заливка — фон самой плитки (растущий градиент), а не отдельный слой поверх:
   так по скруглённым углам не просвечивает тёмный фон. */
.cta {
  background-image: linear-gradient(var(--cta-fill), var(--cta-fill));
  background-repeat: no-repeat; background-position: 0 calc(100% + 2px); background-size: 100% 0;
  transition: background-size .5s var(--ease), background-color 0s, color .35s var(--ease);
}
/* Когда заливка поднялась, фон плитки тоже становится её цветом — на сглаженном крае угла не остаётся тёмной каймы. */
.cta:is(:hover, :focus-visible, .is-hover),
.sidebar.is-dark .cta:is(:hover, :focus-visible, .is-hover) {
  background-size: 100% calc(100% + 4px); background-color: var(--cta-fill);
  transition: background-size .5s var(--ease), background-color 0s .5s, color .35s var(--ease);
}
.cta--primary { --cta-fill: var(--spot-pink); }
.cta--secondary { --cta-fill: #c6ff1a; }
.cta:hover, .cta:focus-visible, .cta.is-hover,
.sidebar.is-dark .cta:hover, .sidebar.is-dark .cta.is-hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cta { transition-duration: .2s; } }
.cta__icon { width: 12px; height: 12px; opacity: .6; margin-bottom: auto; }
.cta__icon--play { width: 16px; height: 16px; margin: -2px 0 auto -2px; opacity: .7; }
.cta__icon--download { width: 16px; height: 16px; margin: -2px 0 auto -2px; opacity: .4; }
.cta__sub { opacity: .55; }
.cta--primary { background-color: var(--black); color: var(--white); }
.cta--secondary { background-color: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--black-5); }
.cta--secondary:is(:hover, :focus-visible, .is-hover) { box-shadow: none; }

/* Сайдбар над тёмной секцией. На десктопе поверх лежит тёмная копия (.sidebar__dark),
   обрезанная по границам тёмной секции: цвет «проходит» сквозь сайдбар вместе с границей блока. */
.sidebar.sidebar__dark {
  /* на полпикселя шире: перекрывает сглаженный светлый край сайдбара под ней, без «уголков» */
  position: absolute; inset: -.5px; height: auto; min-height: 0; margin: 0; z-index: 1; border-radius: 5.5px;
  pointer-events: none; clip-path: inset(100% 0 0 0); transition: none;
}
.sidebar.is-dark { background: var(--dark-surface); color: var(--dark-ink); box-shadow: none; }
.sidebar.is-dark .count { color: var(--dark-muted); }
.sidebar.is-dark .cta--primary { background-color: #fff; color: var(--ink); }
.sidebar.is-dark .cta--secondary { background-color: var(--white-8); color: var(--white); box-shadow: none; }

/* --- Общие секции --- */
.content { padding: 0 var(--gutter) 0 var(--content-left); }
.label {
  font-size: var(--fs-b14); line-height: var(--lh-body);   /* Body 14 из UI-кита */
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.ph {
  position: relative; overflow: hidden;
  /* при увеличении картинки на ховере браузер «теряет» скругление углов — маска держит его */
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black);
  clip-path: inset(0 round var(--ph-r, 5px));
  background: #e2e2e2;
  border-radius: var(--ph-r, 5px);
}
.ph img, .ph > video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .5s ease; }
.ph > video { display: block; will-change: transform; backface-visibility: hidden; }
.pjg__tile, .project__media { -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.is-missing {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px),
    #e4e4e4;
}

/* --- HERO --- */
/* Фон шапки: три мягких пятна. Цвета плавно перетекают по палитре (pink → violet → blue → green → sand),
   а пятна медленно «дышат» — чуть сжимаются и снова раскрываются. */
@property --hero-a { syntax: '<color>'; inherits: false; initial-value: #ee99cc; }
@property --hero-b { syntax: '<color>'; inherits: false; initial-value: #99cdee; }
@property --hero-c { syntax: '<color>'; inherits: false; initial-value: #99cdee; }
@property --hero-s { syntax: '<number>'; inherits: false; initial-value: 1; }
.hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--gutter);
  padding-bottom: 72px;
  background:
    radial-gradient(calc(40% * var(--hero-s)) calc(55% * var(--hero-s)) at 52% 45%, color-mix(in srgb, var(--hero-a) 26%, transparent) 0%, transparent 70%),
    radial-gradient(calc(60% * (2 - var(--hero-s))) calc(75% * (2 - var(--hero-s))) at 72% 25%, color-mix(in srgb, var(--hero-b) 45%, transparent) 0%, transparent 75%),
    radial-gradient(calc(50% * var(--hero-s)) calc(70% * var(--hero-s)) at 25% 70%, color-mix(in srgb, var(--hero-c) 28%, transparent) 0%, transparent 75%),
    var(--bg);
  animation: hero-colors 24s ease-in-out infinite, hero-breathe 9s ease-in-out infinite alternate;
}
@keyframes hero-colors {
  0%, 100% { --hero-a: #ee99cc; --hero-b: #99cdee; --hero-c: #99cdee; }
  20% { --hero-a: #bc99ee; --hero-b: #99cdee; --hero-c: #ee99cc; }
  40% { --hero-a: #99cdee; --hero-b: #bc99ee; --hero-c: #99eeaa; }
  60% { --hero-a: #99eeaa; --hero-b: #99cdee; --hero-c: #bc99ee; }
  80% { --hero-a: #eecd99; --hero-b: #ee99cc; --hero-c: #99cdee; }
}
@keyframes hero-breathe { from { --hero-s: .82; } to { --hero-s: 1.12; } }
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } }
.hero::after { /* мягкий переход в серый фон */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, rgba(246,246,246,0), var(--bg));
  pointer-events: none;
}
.hero::after { z-index: -1; } /* переход под контентом, но над фоном шапки */
.hero .content { position: relative; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-left: 22px; }
.rank { display: flex; gap: 14px; align-items: flex-start; }
/* Анимированные логотипы рейтингов: белый фон видео «растворяется» в фоне шапки */
.rank__media { position: relative; flex: none; width: 50px; height: 60px; margin-top: -4px; }
.rank__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply; opacity: 0; transition: opacity .5s ease;
}
.rank__video.is-active { opacity: 1; }
/* Цифры и подписи рейтингов крутятся «барабаном» */
.rank { --roll: cubic-bezier(.76, 0, .24, 1); --num-h: 50px; }
.rank__body { display: flex; align-items: flex-start; }
.rank__num {
  flex: none; overflow: hidden; padding-right: 14px; box-sizing: content-box;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: width .8s var(--roll), padding .8s var(--roll);
}
.rank__window {
  height: var(--num-h); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.rank__reel, .rank__unit-reel { display: flex; flex-direction: column; align-items: flex-start; transition: transform .8s var(--roll); }
.rank__reel span {
  display: flex; align-items: center; justify-content: flex-start; height: var(--num-h); white-space: nowrap;
  font-size: 54px; line-height: .9; font-weight: 500; letter-spacing: -.04em;
  /* Металлический перелив: мягкий светлый отблеск неспешно проходит по цифре */
  background: linear-gradient(100deg, #4e4e4e 0%, #5f5f5f 32%, #8c8c8c 44%, #a9a9a9 50%, #8c8c8c 56%, #5f5f5f 68%, #4e4e4e 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rank-shimmer 6s ease-in-out infinite;
}
@keyframes rank-shimmer { 0% { background-position: 100% 0; } 70%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .sol:hover, .sol:active { scale: none; } }
@media (prefers-reduced-motion: reduce) { .stats__screen { transform: none; } .stats__swap > p { transition: none; } }
@media (prefers-reduced-motion: reduce) { .rank__reel span { animation: none; background-position: 50% 0; } }
.rank__unit { height: 18px; overflow: hidden; margin-top: 2px; }
.rank__unit-reel small { display: block; height: 18px; line-height: 18px; font-size: var(--fs-b12); white-space: nowrap; }
.rank__texts { display: grid; overflow: hidden; }
.rank__texts p {
  grid-area: 1 / 1; font-size: var(--fs-b12); line-height: 1.2; padding-top: 3px;
  opacity: 0; transform: translateY(105%);
  transition: transform .8s var(--roll), opacity .6s ease;
}
.rank__texts p.is-active { opacity: 1; transform: none; }
.rank__texts p.is-prev { opacity: 0; transform: translateY(-105%); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.assistant { display: flex; gap: 14px; align-items: center; font-size: var(--fs-b12); line-height: var(--lh-body); padding-top: 6px; text-align: left; }
/* Иконка ассистента: покой — волна в рамке; наведение — «Play» на размытой плашке; воспроизведение — «Пауза» */
.assistant__icon {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 4px;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: box-shadow .3s ease;
}
.assistant__icon::before {  /* матовая светлая плашка: под ней размыт эквалайзер */
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  background: rgba(246, 246, 248, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 6px 18px rgba(0, 0, 0, .08);
  opacity: 0; transition: opacity .3s ease;
}
.assistant__icon > * { grid-area: 1 / 1; position: relative; transition: opacity .25s ease, transform .3s ease; }
.assistant__wave { display: flex; align-items: center; gap: 2px; transition: filter .3s ease, opacity .3s ease; }
.assistant__play, .assistant__pause { width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); opacity: 0; transform: scale(.6); }
/* Покой: эквалайзер в рамке. Наведение: размытый эквалайзер под матовой плашкой + «плей».
   Играет: эквалайзер чёткий и двигается. Играет + наведение: размытый эквалайзер + «пауза». */
.assistant:hover .assistant__icon, .assistant:focus-visible .assistant__icon { box-shadow: inset 0 0 0 1px transparent; }
.assistant:hover .assistant__icon::before, .assistant:focus-visible .assistant__icon::before { opacity: 1; }
.assistant:hover .assistant__wave, .assistant:focus-visible .assistant__wave { filter: blur(2px); }
.assistant:not(.is-playing):hover .assistant__play, .assistant:not(.is-playing):focus-visible .assistant__play,
.assistant.is-playing:hover .assistant__pause, .assistant.is-playing:focus-visible .assistant__pause { opacity: 1; transform: none; }
.assistant.is-playing .assistant__icon i { animation-play-state: running; }
.assistant__icon i { width: 2px; background: #333; border-radius: 1px; animation: wave 1.2s ease-in-out infinite; animation-play-state: paused; }
.assistant__icon i:nth-child(1){height:8px;animation-delay:-.2s}
.assistant__icon i:nth-child(2){height:16px;animation-delay:-.4s}
.assistant__icon i:nth-child(3){height:12px;animation-delay:-.6s}
.assistant__icon i:nth-child(4){height:18px;animation-delay:-.8s}
.assistant__icon i:nth-child(5){height:8px;animation-delay:-1s}
@keyframes wave { 50% { transform: scaleY(.45); } }

.hero__title {
  max-width: 1020px;
  margin: 238px 0 0 32px;
  font-size: clamp(34px, 3.9vw, var(--fs-h1));
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
}
/* Первый экран страницы (курс) в стиле главной: заголовок и кнопка вместо ленты клиентов */
.hero--page { padding-bottom: 96px; }
.hero--page .hero__title { margin-top: 200px; }
.hero--page .hero__title span { color: var(--muted); }
.hero__btn { margin: 48px 0 0 32px; padding: 18px 28px; font-size: var(--fs-b16); }
@media (max-width: 1023px) { .hero--page .hero__title { margin-top: 96px; } .hero__btn { margin-left: 0; } }
@media (max-width: 767px) { .hero--page .hero__title { margin-top: 48px; } .hero__btn { margin-top: 32px; } }
/* Бегущая строка клиентов */
.clients {
  --fade: clamp(48px, 9vw, 140px);  /* ширина затухания и размытия по краям */
  position: relative; overflow: hidden;
  margin: 72px 0 0 32px; padding: 8px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.clients::before, .clients::after {   /* размытие нарастает к краю */
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--fade); z-index: 1; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.clients::before { left: 0;  -webkit-mask-image: linear-gradient(to right, #000, transparent); mask-image: linear-gradient(to right, #000, transparent); }
.clients::after  { right: 0; -webkit-mask-image: linear-gradient(to left,  #000, transparent); mask-image: linear-gradient(to left,  #000, transparent); }
.clients__track { display: flex; width: max-content; animation: clients-marquee 70s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients__list { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.clients__list li { display: flex; align-items: center; height: 36px; flex: none; }
.clients__list img { display: block; filter: brightness(0); opacity: .82; }
@keyframes clients-marquee { to { transform: translateX(-50%); } }

/* --- ПРОЕКТЫ --- */
.projects { padding-bottom: 110px; }
.project + .project { margin-top: 64px; }
.project__media { display: block; }
.project__media > .ph { aspect-ratio: 1072 / 553; }
.project__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.project__media--duo > .ph { aspect-ratio: 534 / 517; }
.project__media:hover img, .project__media:hover .ph > video { transform: scale(1.025); }
.project__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.client { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-b14); }
.client__ava {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 11px; font-weight: 600; flex: none;
}
.client__ava--mp { background: #c6f36b; color: var(--black); font-weight: 700; letter-spacing: -.04em; }
.client__ava--yamaha { background: #4a1f86; color: var(--white); }
/* Загруженная иконка клиента показывается как есть, во весь кружок */
.client__ava { overflow: hidden; }
.client__ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.client__ava--lev { background: #2a2a2a; color: #d9c49a; font-family: Georgia, serif; }
.client__ava--sofa { background: #ece6f6; color: #7a5cc4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 9px; border-radius: 3px; background: var(--chip); color: var(--muted); font-size: var(--fs-b12); line-height: var(--lh-body); }
.project__title { margin-top: 14px; max-width: 520px; font-size: var(--fs-h4); line-height: var(--lh-h4); }

/* --- УСЛУГИ (тёмная) --- */
.services { background: var(--dark-bg); color: var(--dark-ink); padding: 112px 0 80px; }
.services .label { border-color: var(--white-50); margin-bottom: 0; }
.acc { border-bottom: 1px solid var(--dark-line); padding: 36px 0 32px; transition: border-color .4s var(--ease); }
.services .label { transition: border-color .4s var(--ease); }
.acc__head { display: flex; width: 100%; justify-content: space-between; align-items: center; text-align: left; }
.acc__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.acc__icon { position: relative; width: 22px; height: 22px; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor;
  transition: transform .3s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__sub { padding-top: 14px; color: var(--dark-muted); font-size: var(--fs-b12); }
.acc__sub i { font-style: normal; margin: 0 6px; }
/* Плавное раскрытие: строка сетки растёт от 0fr до 1fr, содержимое проявляется следом */
.acc__fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.65, 0, .35, 1); }
.acc__fold > div { min-height: 0; overflow: hidden; }
.acc__fold--body .acc__body { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .5s var(--ease); }
.acc.is-open .acc__fold--body { grid-template-rows: 1fr; }
.acc.is-open .acc__fold--body .acc__body { opacity: 1; transform: none; transition-delay: .12s; }
/* Строка-подсказка под закрытым пунктом сворачивается, когда пункт открыт */
.acc__fold--sub { grid-template-rows: 1fr; }
.acc__fold--sub .acc__sub { transition: opacity .3s ease; }
.acc.is-open .acc__fold--sub { grid-template-rows: 0fr; }
.acc.is-open .acc__fold--sub .acc__sub { opacity: 0; }
.acc__body { padding-top: 30px; }
.acc__head[disabled] { cursor: default; }
.arrow-list span { display: inline-flex; align-items: center; gap: 12px; }
.arrow-list span::before {
  content: "→"; display: inline-grid; place-items: center;
  flex: none; width: 20px; height: 20px; border-radius: 3px; background: var(--white-8); color: var(--white-70); font-size: 13px; line-height: 1;
}
@media (prefers-reduced-motion: reduce) { .acc__fold, .acc__fold--body .acc__body, .acc__fold--sub .acc__sub { transition: none; } }

.arrow-list {
  display: grid; grid-template-columns: repeat(2, max-content); grid-auto-flow: column; grid-template-rows: repeat(4, auto);
  gap: 12px 92px; font-size: var(--fs-b16);
}
.acc .arrow-list { grid-template-rows: repeat(3, auto); }   /* в услугах на главной — по 3 в столбик */
.arrow-list a { display: inline-flex; align-items: center; gap: 12px; transition: opacity .2s; }
.arrow-list a::before {
  content: "→"; display: inline-grid; place-items: center;
  flex: none; width: 20px; height: 20px; border-radius: 3px; background: var(--white-8); color: var(--white-70); font-size: 13px; line-height: 1;
}
.arrow-list a:hover { opacity: .6; }
.acc__text { margin-top: 32px; max-width: 700px; color: var(--dark-muted); font-size: var(--fs-b14); line-height: var(--lh-body); }
.cases {
  --cols: 3; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * 8px) / var(--cols));
  gap: 8px; margin-top: 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab;
}
.cases::-webkit-scrollbar { display: none; }
.cases.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cases.is-drag .case { pointer-events: none; }
.cases .case { scroll-snap-align: start; }
.cases-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.cases-nav + .cases { margin-top: 0; }
.cases-nav[hidden] { display: none; }
.cases-nav button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dark-surface); color: var(--white); transition: opacity .2s, background-color .2s; }
.cases-nav button:hover { background: #333; }
.cases-nav button:disabled { opacity: .3; cursor: default; }
.cases-nav svg { width: 16px; height: 16px; }
.acc .acc__more { display: flex; width: fit-content; margin-top: 32px; padding: 14px 24px; background-color: var(--dark-surface); font-size: var(--fs-b16); }
.acc__more + .cases, .acc__more + .cases-nav, .acc__more + .cases-nav[hidden] + .cases { margin-top: 40px; }
.case { position: relative; display: block; border-radius: 5px; overflow: hidden; clip-path: inset(0 round 5px); isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.case .ph { aspect-ratio: 352 / 290; background: #2b2b2b; }
.case .ph::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, rgba(23,23,23,0), rgba(23,23,23,.6)); }
.case:hover img, .case:hover .ph > video { transform: scale(1.04); }
.case__info { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.case__info .client { font-size: var(--fs-b16); gap: 8px; }
.case__info .client__ava { width: 30px; height: 30px; font-size: 10px; }
.dots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-b12); color: var(--white); }
.dots li { display: inline-flex; align-items: center; gap: 10px; }
.dots li + li::before { content: ""; width: 3px; height: 3px; background: currentColor; }

/* --- РЕШЕНИЯ --- */
.solutions { padding-top: 32px; padding-bottom: 80px; }
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sol {
  position: relative; display: flex; flex-direction: column;
  min-height: 262px; padding: 24px 24px 28px;
  background: var(--surface-2); border-radius: var(--radius);
  transition: background-color .25s, scale .45s var(--ease);
}
/* Ховер: плитка слегка «прожимается» внутрь, по клику — ещё чуть сильнее */
.sol:hover { background: var(--white); scale: .985; }
.sol:active { scale: .97; transition-duration: .25s, .15s; }
.sol__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 4px; overflow: hidden; position: relative;
  color: #fff; font-size: 10px; line-height: 1.15;
}
.sol__icon--recom { background: linear-gradient(135deg, #e8f0ff, #b9cdf6); }
.sol__icon--recom i { width: 30px; height: 30px; border-radius: 50%; border: 6px solid #3f7df0; border-right-color: #9cc0ff; border-bottom-color: #c9dcff; }
.sol__icon--tryon { background: #ef4b2b; }
.sol__icon--tryon i { width: 22px; height: 22px; background:
  linear-gradient(#fff,#fff) center/6px 22px no-repeat,
  linear-gradient(#fff,#fff) center/22px 6px no-repeat; }
.sol__icon--tryon i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #ef4b2b; }
.sol__icon--alert { background: #161616; justify-items: start; align-content: end; padding: 0 0 10px 8px; text-align: left; }
.sol__icon--pimly { background: #161616; }
.sol__icon--pimly i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.sol__icon--pimly i:nth-child(1) { left: 18px; top: 18px; }
.sol__icon--pimly i:nth-child(2) { left: 32px; top: 18px; }
.sol__icon--pimly i:nth-child(3) { left: 25px; top: 30px; }
.sol__icon--finomo {
  background:
    radial-gradient(60% 40% at 50% 80%, rgba(140,180,255,.6), transparent 70%),
    linear-gradient(160deg, #2a46c9 0%, #1b2a8a 60%, #0f1756 100%);
}
.sol__arrow {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--black-5); border-radius: 4px; color: var(--ink);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.sol__arrow svg { width: 16px; height: 16px; }
.sol:hover .sol__arrow { background: var(--ink); color: #fff; }
.sol__title { margin-top: 56px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.sol__text { margin-top: 18px; max-width: 470px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--text-2); }

/* Курс */
.course {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 78px; padding: 0;
  border-radius: var(--radius); overflow: hidden;
  /* Одно свечение на всю карточку, с центром у левого края картинки: оно проходит
     и под текстом, и по белой рамке вокруг картинки — без резкой границы. */
  background:
    radial-gradient(circle 440px at calc(50% + 10px) 50%,
      #fff 0%, color-mix(in srgb, var(--spot-blue) 22%, #fff) 45%, color-mix(in srgb, var(--spot-blue) 8%, #fff) 75%, #fff 100%);
}
.course__body {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 48px 48px 48px 48px;
}
.badge { padding: 6px 9px; border: 1px solid var(--black-10); border-radius: 5px; font-size: var(--fs-b12); color: var(--text-2); }
.course__title { margin-top: 32px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.course__text { margin-top: 14px; max-width: 340px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chip { padding: 6px 10px; border-radius: 5px; font-size: var(--fs-b12); line-height: var(--lh-body); }
.chip--violet { background: color-mix(in srgb, var(--spot-violet) 30%, #fff); }
.chip--blue { background: color-mix(in srgb, var(--spot-blue) 35%, #fff); }
.chip--green { background: color-mix(in srgb, var(--spot-green) 35%, #fff); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 40px; padding: 12px 19px;
  background: var(--black); color: var(--white); border-radius: 4px; font-size: var(--fs-b14);
  background-image: linear-gradient(#c6ff1a, #c6ff1a);
  background-repeat: no-repeat; background-position: 0 calc(100% + 2px); background-size: 100% 0;
  transition: background-size .5s var(--ease), background-color 0s, color .35s var(--ease);
}
/* Наведение как у плиток: снизу поднимается салатовая заливка, текст темнеет. */
.btn:hover, .btn:focus-visible {
  color: var(--ink); background-size: 100% calc(100% + 4px); background-color: #c6ff1a;
  transition: background-size .5s var(--ease), background-color 0s .5s, color .35s var(--ease);
}
@media (prefers-reduced-motion: reduce) { .btn { transition-duration: .2s; } }
.course__art {
  position: relative; overflow: hidden; min-height: 400px;
  margin: 10px; border-radius: 5px;
  /* небо: насыщенный голубой сверху справа → светлый внизу слева, с мягким светом у левого края */
  background:
    radial-gradient(240px 240px at 0% 50%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .35) 45%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(205deg, #4b8fca 0%, #7fb2de 38%, #bcd7ef 70%, #e2eef9 100%);
}
/* Слова на «колесе»: центр колеса далеко слева, слово стоит на радиусе и повёрнуто вдоль него.
   Колесо крутится — слова плывут вверх по дуге. Сверху и снизу слова тают. */
.course__words {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(rgba(0,0,0,.25), #000 28%, #000 72%, rgba(0,0,0,.25));
          mask-image: linear-gradient(rgba(0,0,0,.25), #000 28%, #000 72%, rgba(0,0,0,.25));
}
.course__wheel {
  --R: 620px; --step: 4deg;
  position: absolute; top: 50%; left: calc(20% - var(--R)); width: 0; height: 0;
  animation: course-wheel calc(var(--n) * 2.6s) linear infinite;
}
@keyframes course-wheel { from { transform: rotate(-7deg); } to { transform: rotate(calc(-7deg - var(--n) * var(--step))); } }
.course__wheel span {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  transform: rotate(calc((var(--c) * var(--n) + var(--j) - var(--n) - 3) * var(--step))) translate(var(--R), -50%);
  color: rgba(255, 255, 255, .95); white-space: nowrap;
  font-size: clamp(22px, 2.4vw, 34px); line-height: 1; font-weight: 500; letter-spacing: -.01em;
}
@media (prefers-reduced-motion: reduce) { .course__wheel { animation: none; transform: rotate(-7deg); } }

/* --- НОВОСТИ --- */
.news { padding: 0 0 24px; }   /* сверху хватает нижнего отступа «Решений» */
.news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 88px; align-items: start; }
.news__head { display: flex; justify-content: space-between; font-size: var(--fs-b12); color: var(--muted); margin-bottom: 12px; }
.news-main .ph { aspect-ratio: 1 / 1; overflow: hidden; }
.news-main:hover img { transform: scale(1.025); }
.news-list { padding-top: 36px; max-width: 382px; }
.news-list li + li { margin-top: 22px; }
.news-item {
  display: block; padding-bottom: 24px;
  /* линия снизу вырастает слева направо при наведении */
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
/* При наведении — только линия под новостью, текст не подчёркивается */
.news-item:hover, .news-item:focus-visible { background-size: 100% 1px; }
.news-item__row { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-b16); line-height: var(--lh-body); }
.news-item__row img, .news-item__row.is-missing::before {
  content: ""; width: 50px; height: 50px; object-fit: cover; flex: none; border-radius: 5px;
}
.news-item__row.is-missing { background: none; }
.news-item__row.is-missing::before { background: repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 6px, transparent 6px 12px), #e4e4e4; }

/* --- ЦИФРЫ --- */
/* Цифры: секция высотой в несколько экранов, внутри — закреплённый на экране блок.
   Шаг прокрутки на одну цифру — 60vh. */
.stats {
  --row: 190px; --num: var(--fs-display); --pin-h: 560px;
  position: relative; height: calc(var(--pin-h) + (var(--count) - 1) * 60vh); margin-bottom: 72px;
}
/* Блок высотой со своё содержимое прилипает по центру экрана — перед ним нет пустого экрана */
.stats__pin { position: sticky; top: calc(50vh - var(--pin-h) / 2); height: var(--pin-h); display: flex; align-items: center; }
.stats__pin > .content { width: 100%; }
.stats__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.stats__swap { display: grid; justify-items: center; }
.stats__swap > p {
  grid-area: 1 / 1; text-align: center; opacity: 0; transform: translateY(24px);
  transition: opacity .2s ease, transform .4s var(--ease);
}
/* Новая подпись появляется, когда старая уже ушла: тексты не накладываются */
.stats__swap > p.is-active { opacity: 1; transform: none; transition: opacity .45s ease .18s, transform .6s var(--ease) .12s; }
.stats__swap > p.is-prev { transform: translateY(-24px); }
.stats__caption { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.stats__note { font-size: var(--fs-b12); line-height: var(--lh-body); color: var(--muted); }
.stats__drum {
  position: relative; width: 520px; height: var(--pin-h); display: grid; place-items: center; perspective: 1200px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
/* Столбец цифр. Сдвиг задаёт скрипт через --shift (в строках): 0 — первая цифра по центру. */
.stats__col {
  position: absolute; left: 50%; top: 50%; width: max-content;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, calc(var(--row) * (-.5 - var(--shift, 0))));
  will-change: transform;
}
.stats__col span {
  height: var(--row); display: grid; place-items: center; white-space: nowrap;
  font-size: var(--num); line-height: 1; letter-spacing: var(--ls-display);
}
.stats__col--ghost { color: var(--black-10); }
.stats__screen {
  position: relative; width: 372px; height: 238px; background: #111; border-radius: 5px; overflow: hidden;
  transform: rotateX(calc(var(--tilt, 0) * 9deg)) rotateZ(calc(var(--tilt, 0) * -2.5deg));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35);
  will-change: transform;
}
.stats__img { position: absolute; inset: 20px 70px; background: #222; opacity: 0; transition: opacity .6s ease; }
.stats__img.is-active { opacity: 1; }
.stats__img img, .stats__img video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.stats__col--in { color: var(--white); }
/* Внутри карточки столбец стоит на том же месте, что и снаружи: центр карточки = центр барабана. */
.stats__screen .stats__col { top: 50%; }

/* --- TELEGRAM --- */
.tg-wrap { padding-bottom: 120px; }
.tg {
  position: relative; overflow: hidden;
  min-height: 390px; padding: 40px 44px 44px;
  border-radius: var(--radius);
  /* как в макете: насыщенное жёлтое пятно справа и мягкий белый свет под кружками */
  background:
    radial-gradient(16% 34% at 88% 92%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(42% 85% at 76% 52%, #f2dc88 0%, rgba(242, 220, 136, .75) 35%, rgba(242, 220, 136, .25) 62%, rgba(242, 220, 136, 0) 82%),
    #e3e1d9;
  display: flex; flex-direction: column;
}
.tg__top { display: flex; justify-content: space-between; align-items: center; }
.tg__logo { width: 84px; }
.tg__plus { display: block; width: 40px; height: 40px; margin: -12px -8px 0 0; color: var(--ink); }
.tg__title { margin-top: 58px; max-width: 620px; min-height: 2em; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.caret { display: inline-block; width: 2px; height: .95em; margin-left: 2px; vertical-align: -.1em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tg__bottom { display: flex; align-items: center; gap: 30px; margin-top: auto; padding-top: 40px; }
.tg__info { display: flex; flex-direction: column; font-size: var(--fs-b14); line-height: var(--lh-body); }
.tg__bottom .btn { margin-top: 0; }
.tg__badges { position: absolute; right: 42px; bottom: 44px; display: flex; }
.tg__circle { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; }
.tg__circle--light { background: #fff; margin-right: -14px; }
.tg__circle--dark { background: #161616; position: relative; }
.tg__circle--dark svg { width: 45px; height: 45px; }

/* --- ФУТЕР --- */
/* Фон футера: яркое розовое пятно по центру, как в макете. Цвет плавно переливается
   (розовый → фиолетовый → песочный), пятно чуть плывёт и «дышит». */
@property --foot-a { syntax: '<color>'; inherits: false; initial-value: #ee99cc; }
@property --foot-b { syntax: '<color>'; inherits: false; initial-value: #eecd99; }
@property --foot-x { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --foot-s { syntax: '<number>'; inherits: false; initial-value: 1; }
.footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(calc(48% * var(--foot-s)) calc(80% * var(--foot-s)) at var(--foot-x) 76%, color-mix(in srgb, var(--foot-a) 62%, transparent) 0%, color-mix(in srgb, var(--foot-a) 34%, transparent) 38%, color-mix(in srgb, var(--foot-a) 10%, transparent) 62%, transparent 82%),
    radial-gradient(26% 38% at calc(100% - var(--foot-x) + 14%) 30%, color-mix(in srgb, var(--foot-b) 26%, transparent) 0%, transparent 70%),
    var(--bg);
  animation: foot-colors 22s ease-in-out infinite, foot-drift 13s ease-in-out infinite alternate;
}
@keyframes foot-colors {
  0%, 100% { --foot-a: #ee99cc; --foot-b: #eecd99; }
  33% { --foot-a: #d9a0ee; --foot-b: #99cdee; }
  66% { --foot-a: #f0a8c0; --foot-b: #eecd99; }
}
@keyframes foot-drift { from { --foot-x: 46%; --foot-s: .94; } to { --foot-x: 54%; --foot-s: 1.06; } }
@media (prefers-reduced-motion: reduce) { .footer { animation: none; } }
.footer__inner { padding: 50px var(--gutter) 0; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 720px; }
.footer__cols h4 { font-weight: 500; color: var(--muted); font-size: var(--fs-b12); margin-bottom: 18px; }
.footer__cols a { display: block; font-size: var(--fs-b14); line-height: 30px; }

.footer__side { display: flex; flex-direction: column; gap: 22px; }
.cta-pair--wide { gap: 8px; max-width: 664px; }
.cta-pair--wide .cta { min-height: 126px; }
.cta-pair--wide .cta--secondary { box-shadow: none; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: block; padding: 5px 12px; border-radius: 4px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--black-10);
  font-size: var(--fs-b14); line-height: var(--lh-body);
  transition: box-shadow .35s var(--ease);
}
.socials a:hover, .socials a:focus-visible { box-shadow: inset 0 0 0 1px rgba(23,23,23,.5); }
.footer__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 108px; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.footer__links { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 12px 70px; max-width: 664px; white-space: nowrap; }   /* прижаты вправо с постоянным отступом: убрали телефон — почта сдвигается вправо */
.footer__links a { position: relative; transition: opacity .35s var(--ease); }
.footer__links a:hover { opacity: .55; }
/* Плашка «Скопировано» над почтой и телефоном */
.copy-tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5;
  padding: 6px 10px; border-radius: 4px;
  background: var(--black); color: var(--white);
  font-size: var(--fs-b12); line-height: 1.2; white-space: nowrap; pointer-events: none;
  opacity: 0; translate: -50% 4px;
  transition: opacity .25s var(--ease), translate .25s var(--ease);
}
.copy-tip.is-on { opacity: 1; translate: -50% 0; }
[data-copy].is-copied { opacity: 1 !important; }
.footer__legal { display: flex; gap: 20px; margin-top: 108px; font-size: var(--fs-b14); color: var(--muted); }
.footer__wordmark { display: block; width: calc(100% - 2 * var(--gutter)); height: auto; margin: 40px var(--gutter) -5%; color: var(--black); }

/* --- Мобильная шапка --- */
.m-header { display: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --sidebar-w: 260px; }
  .hero__title { margin-top: 180px; }
  .cta { min-height: 112px; }
  .arrow-list { gap: 12px 56px; }
  .stats { --row: 140px; --num: 96px; }
  .stats__screen { width: 320px; }
  .stats__drum { width: 420px; }
  .stats__screen { height: 210px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 16px; --content-left: var(--gutter); }
  body { padding-top: 60px; }
  body.menu-open { overflow: hidden; }

  .m-header {
    position: fixed; z-index: 40; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; padding: 0 var(--gutter);
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    transition: background-color .35s var(--ease), color .35s var(--ease);
  }
  .m-header.is-dark { background: rgba(34,34,34,.92); color: #fff; }
  .m-header .logo { width: 92px; }
  .burger { position: relative; width: 28px; height: 28px; }
  .burger span { position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
  .burger span:nth-child(1) { top: 10px; }
  .burger span:nth-child(2) { top: 17px; }
  .menu-open .burger span:nth-child(1) { top: 13.5px; transform: rotate(45deg); }
  .menu-open .burger span:nth-child(2) { top: 13.5px; transform: rotate(-45deg); }

  /* сайдбар → выпадающее меню */
  .sidebar-track { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; width: auto; z-index: 39; }
  .sidebar {
    position: absolute; inset: 0; height: auto; min-height: 0;
    border-radius: 0; padding: 12px var(--gutter) var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .menu-open .sidebar { opacity: 1; visibility: visible; transform: none; }
  .sidebar__logo { display: none; }
  .sidebar.sidebar__dark { display: none; }
  .sidebar__nav { margin-top: 8px; padding: 0; }
  .sidebar__nav a { font-size: 26px; line-height: 1.6; min-height: 1.6em; }
  .sidebar__bottom { padding-top: 32px; }
  .showreel { max-width: 420px; }

  .hero__top { padding-left: 0; }
  .hero__title, .clients { margin-left: 0; }
  .hero__title { margin-top: 96px; }
  .clients { margin-top: 48px; }

  .services { padding-top: 72px; }
  .cases { --cols: 2; }

  .news__grid { gap: 0 40px; }

  .stats__row { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .stats { --pin-h: 640px; }
  .stats__drum { height: 380px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__contacts { grid-template-columns: 1fr; margin-top: 64px; }
  .footer__links { justify-content: flex-start; flex-wrap: wrap; }
  .footer__legal { margin-top: 56px; }
}

@media (max-width: 767px) {
  .hero { padding-bottom: 48px; }
  .hero__top { flex-direction: column; gap: 18px; }
  .rank { --num-h: 42px; }
  .rank__reel span { font-size: 44px; }
  .hero__title { margin-top: 64px; font-size: clamp(30px, 8.4vw, 40px); }
  .clients__list { gap: 40px; padding-right: 40px; }
  .clients__track { animation-duration: 55s; }

  .projects { padding-bottom: 72px; }
  .project + .project { margin-top: 64px; }
  .project__media > .ph { aspect-ratio: 4 / 3; }
  .project__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .project__title { font-size: 20px; }

  .acc { padding: 26px 0 22px; }
  .acc__title { font-size: 26px; }
  .arrow-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .cases { --cols: 1.15; }

  .sol-grid { grid-template-columns: 1fr; }
  .sol { min-height: 0; }
  .sol__title { margin-top: 36px; font-size: 26px; }

  .course { grid-template-columns: 1fr; margin-top: 48px; }
  .course__body { padding: 28px 24px 32px; }
  .course__title { margin-top: 24px; font-size: 26px; }
  .course__art { min-height: 240px; order: -1; margin: 8px 8px 0; }

  .news { padding: 0 0 72px; }
  .news__grid { grid-template-columns: 1fr; }
  .news-list { padding-top: 32px; max-width: none; }

  .stats { --row: 110px; --num: 76px; }
  .stats__caption { font-size: 22px; }
  .stats__drum { width: 100%; }
  .stats__screen { width: min(100%, 300px); height: 190px; }
  .stats__img { inset: 16px 48px; }

  .tg-wrap { padding-bottom: 72px; }
  .tg { min-height: 0; padding: 24px 20px 24px; }
  .tg__title { margin-top: 36px; font-size: 28px; }
  .tg__bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 120px; }
  .tg__badges { right: 20px; bottom: 24px; }
  .tg__circle { width: 64px; height: 64px; }
  .tg__circle--dark svg { width: 32px; height: 32px; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .footer__contacts { font-size: 20px; }
  .footer__links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Страницы из конструктора (/about/ и т. п.) ===== */
.page { position: relative; padding: 140px 0 120px; min-height: 100vh; }
.page__content { max-width: calc(var(--content-left) + 900px); }
.page__h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 500; margin: 0 0 48px; }
.page__h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 500; margin: 72px 0 24px; }
.page__h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 500; margin: 48px 0 16px; }
.page__h1 + .page__h2, .page__content > :first-child { margin-top: 0; }
.page__text { font-size: 18px; line-height: 1.5; color: var(--text-2); }
.page__text p { margin: 0 0 1em; }
.page__text h2, .page__text h3 { color: var(--ink); font-weight: 500; margin: 1.6em 0 .6em; line-height: 1.15; }
.page__text h2 { font-size: var(--fs-h4); }
.page__text ul, .page__text ol { margin: 0 0 1em; padding-left: 1.3em; }
.page__text ul { list-style: disc; }
.page__text ol { list-style: decimal; }
.page__text li::marker { color: var(--muted); }
.page__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page__text blockquote { margin: 1em 0; padding-left: 20px; border-left: 2px solid var(--ink); color: var(--ink); }
.page__figure { margin: 40px 0; }
.page__figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.page__figure .ph { aspect-ratio: auto; }
.page__figure .ph img, .page__duo .ph img { height: auto; display: block; }
.page__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 40px 0; }
.page__video { display: block; width: 100%; margin: 40px 0; background: #000; }
.page__quote { margin: 56px 0; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.page__quote p { margin: 0; }
.page__quote cite { display: block; margin-top: 16px; font-size: 14px; font-style: normal; color: var(--muted); letter-spacing: 0; }
.page__button { margin: 40px 0; }
@media (max-width: 767px) {
  .page { padding: 100px 0 80px; }
  .page__h1 { font-size: 36px; margin-bottom: 32px; }
  .page__h2 { font-size: 28px; margin-top: 48px; }
  .page__text { font-size: 16px; }
  .page__quote { font-size: 22px; }
  .page__duo { grid-template-columns: 1fr; }
}
.sol__icon--image img { width: 100%; height: 100%; object-fit: cover; }

/* Ховер ссылок меню, как на finomoapp.ru: текст уезжает вверх, снизу выезжает его копия */
.roll { --roll-h: 1.4em; display: inline-block; height: var(--roll-h); line-height: var(--roll-h); overflow: hidden; vertical-align: middle; }
.roll__in { display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.65, 0, .35, 1); }
.roll__in > span { display: block; height: var(--roll-h); white-space: nowrap; }
a:hover > .roll .roll__in, a:focus-visible > .roll .roll__in,
a:hover > .nav-label > .roll .roll__in, a:focus-visible > .nav-label > .roll .roll__in,
.sidebar__dark .is-hover > .roll .roll__in, .sidebar__dark .is-hover > .nav-label > .roll .roll__in { transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .roll__in { transition: none; } }
/* 1.4em даёт дробные пиксели (22.4px): при перекате текст «прыгает» на 1px. Округляем до целого. */
@supports (height: round(1em, 1px)) { .roll { --roll-h: round(1.4em, 1px); } }

/* ===== Появление контента при прокрутке =====
   Классы ставит script.js (раздел 9), поэтому без JS всё видно сразу.
   Используются анимации и свойства translate/scale: они не перебивают transition и transform
   самих элементов (ховеры). После окончания классы снимаются. */
.rv { opacity: 0; }
.rv-pending main, .rv-pending .footer { opacity: 0; }
.rv.is-in { animation: rv-in .9s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0s) both; }
.rv.is-in .ph img { animation: rv-zoom 1.6s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0s) both; }
@keyframes rv-in { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: none; } }
@keyframes rv-zoom { from { scale: 1.08; } to { scale: 1; } }

/* Заголовки появляются по словам: каждое слово всплывает и проявляется из размытия */
.rv-w { display: inline-block; opacity: 0; }
.rv-split.is-in .rv-w { animation: rv-word .9s cubic-bezier(.2, .7, .2, 1) calc(var(--rv-d, 0s) + var(--i) * 45ms) both; }
@keyframes rv-word { from { opacity: 0; translate: 0 .4em; filter: blur(8px); } to { opacity: 1; translate: none; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) { .rv, .rv-w { opacity: 1; animation: none !important; } }

/* ===== Ховер услуги: строку снизу вверх заливает цветом плашки ===== */
.acc { position: relative; }
.acc::before {
  content: ""; position: absolute; inset: -1px 0; z-index: 0;
  background: var(--dark-surface);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .5s var(--ease);
  pointer-events: none;
}
.acc > * { position: relative; z-index: 1; }
/* Заливка идёт ровно по краям линий; заголовок и подпись при этом отъезжают от левого края, плюс — от правого.
   У раскрытой услуги заливки нет, чтобы не перекрашивать весь блок с кейсами. */
.acc__title, .acc__sub, .acc__icon { transition: translate .5s var(--ease); }
.acc__fold--sub .acc__sub { transition: opacity .3s ease, translate .5s var(--ease); }
@media (hover: hover) {
  .acc:not(.is-open):hover::before { clip-path: inset(0 0 0 0); }
  /* линии над строкой и под ней гаснут — заливка без рамок */
  .acc:not(.is-open):hover, .services .content > :has(+ .acc:not(.is-open):hover) { border-color: transparent; }
  .acc:not(.is-open):hover .acc__title, .acc:not(.is-open):hover .acc__sub { translate: 24px 0; }
  .acc:not(.is-open):hover .acc__icon { translate: -24px 0; }
}
@media (prefers-reduced-motion: reduce) { .acc::before, .acc__title, .acc__sub, .acc__icon { transition: none; } }

/* ===== Скелетон: пока картинка грузится, на её месте мерцает перелив (класс ставит script.js) ===== */
.ph.is-loading {
  background: linear-gradient(100deg, #e2e2e2 35%, #efefef 50%, #e2e2e2 65%) 0 0 / 250% 100%;
  animation: skeleton 1.4s linear infinite;
}
.services .ph.is-loading, .stats .ph.is-loading { background-image: linear-gradient(100deg, #2b2b2b 35%, #363636 50%, #2b2b2b 65%); }
.ph.is-loading img { opacity: 0; }
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .ph.is-loading, .cs .ph.is-missing { animation: none; } }

/* ===== Прелоадер: буквы логотипа по очереди выезжают снизу,
   затем экран уезжает вверх. Показывается раз за сессию: класс is-preload ставит скрипт в <head>. ===== */
.preloader { display: none; }
.is-preload .preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--bg-page); color: var(--black);
  transition: clip-path .9s cubic-bezier(.76, 0, .24, 1);
  clip-path: inset(0 0 0 0);
}
.is-preload { overflow: hidden; }
.preloader__box { width: min(260px, 52vw); }
.preloader__logo { display: block; width: 100%; height: auto; overflow: hidden; }
.preloader__logo > * {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: pl-letter .9s cubic-bezier(.2, .8, .2, 1) both;
}
.preloader__logo > :nth-child(2) { animation-delay: .08s; }
.preloader__logo > :nth-child(3) { animation-delay: .16s; }
.preloader__logo > :nth-child(4) { animation-delay: .24s; }
.preloader__logo > :nth-child(5) { animation-delay: .32s; }
@keyframes pl-letter { from { transform: translateY(115%); } to { transform: none; } }
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader.is-done .preloader__box { transform: translateY(-40px); opacity: 0; transition: transform .7s var(--ease), opacity .4s ease; }

/* ==========================================================================
   Страница кейса: /projects/<code>/
   Первый экран — карточка с фоном на всю колонку контента, ниже блоки из админки.
   ========================================================================== */
.case-hero { padding-top: var(--gutter); }
.case-hero__box {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  height: clamp(440px, 60vh, 600px); padding: 28px 32px 32px;
  border-radius: 5px; clip-path: inset(0 round 5px);
  /* без обложки — тот же мягкий градиент, что в шапке главной */
  background:
    radial-gradient(45% 60% at 70% 30%, color-mix(in srgb, var(--spot-blue) 45%, transparent), transparent 75%),
    radial-gradient(40% 55% at 25% 75%, color-mix(in srgb, var(--spot-pink) 30%, transparent), transparent 75%),
    var(--bg-card);
}
.case-hero__box.has-cover { color: var(--white); background: var(--dark-surface); }
.case-hero__bg { position: absolute; inset: 0; z-index: -1; }
.case-hero__bg img, .case-hero__bg video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: case-cover 1.8s var(--ease) both;
}
@keyframes case-cover { from { scale: 1.08; } to { scale: 1; } }
.case-hero__bg::after { /* текст читается на любой картинке */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(23,23,23,.35) 0%, rgba(23,23,23,0) 30%, rgba(23,23,23,0) 45%, rgba(23,23,23,.7) 100%);
}
.case-hero__top { display: flex; justify-content: flex-end; align-items: flex-start; gap: 16px; min-height: 26px; }
.has-cover .case-hero__tags li { background: var(--white-20); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.case-hero__body .client { margin-bottom: 20px; }
.case-hero__title {
  max-width: 1000px;
  font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1);
}
.case-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 28px; }
.case-hero__desc { max-width: 520px; font-size: var(--fs-b16); line-height: var(--lh-body); color: var(--text-2); }
.has-cover .case-hero__desc { color: var(--white-70); }
.case-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }
.case-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 4px;
  background: var(--black-5); font-size: var(--fs-b14); line-height: var(--lh-body);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.case-link svg { width: 14px; height: 14px; }
.case-link:hover { background: var(--black-10); }
.case-link--main { background: var(--black); color: var(--white); }
.case-link--main:hover { background: #333; }
.has-cover .case-link { background: var(--white-20); color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.has-cover .case-link:hover { background: rgba(255,255,255,.32); }
.has-cover .case-link--main { background: var(--white); color: var(--black); }
.has-cover .case-link--main:hover { background: #e9e9e9; }

/* Блоки: отступы между разделами, картинки подряд — вплотную, как карточки на главной */
.cs { padding-top: 120px; }
.case-body > .cs:last-child { padding-bottom: var(--sec-gap); }   /* низ последнего блока = низ сайдбара */
/* Медиа подряд (картинки, галереи, видео, видео по ссылке, отзыв-карточка) — вплотную, 4px.
   Текстовые блоки (лид, заголовок, текст) и остальные отступают как раньше. */
:is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-review) + :is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-review) { padding-top: 4px; }
/* Кейс начинается с медиа — оно встаёт под обложку вплотную, как медиа подряд */
.case-body:not(.case-body--cards) > :is(.cs-image, .cs-gallery, .cs-video, .cs-embed):first-child { padding-top: 4px; }
/* Текст рядом с медиа — чуть ближе, чем между разделами */
:is(.cs-lead, .cs-text, .cs-plain) + :is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-review),
:is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-review) + :is(.cs-lead, .cs-text, .cs-plain, .cs-heading) { padding-top: 80px; }
@media (max-width: 767px) {
  :is(.cs-lead, .cs-text, .cs-plain) + :is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-review),
  :is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-review) + :is(.cs-lead, .cs-text, .cs-plain, .cs-heading) { padding-top: 48px; }
}
.cs-heading__title { max-width: 1000px; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.cs-heading__title--h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.cs-heading__title--h3 { max-width: 760px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.cs-heading + .cs { padding-top: 40px; }
.cs-text__body { max-width: 760px; margin-left: auto; }
.cs-figure { margin: 0; }
.cs-figure .ph img, .cs-duo .ph img { display: block; height: auto; }
.cs-figure .ph:not(.is-loading):not(.is-missing) { background: transparent; }   /* у загруженных PNG прозрачный фон */
/* Картинка кейса не загрузилась — на её месте остаётся мерцающий скелетон, а не штриховка */
.cs .ph.is-missing { background: linear-gradient(100deg, #e2e2e2 35%, #efefef 50%, #e2e2e2 65%) 0 0 / 250% 100%; animation: skeleton 1.4s linear infinite; }
.cs-figure .ph.is-missing:not([style]) { aspect-ratio: 16 / 9; }
.cs-figure figcaption, .cb-slider__slide figcaption { margin-top: 10px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.cs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cs-duo .ph { aspect-ratio: 534 / 517; }
.cs-duo .ph img { height: 100%; }
video.cs-video { display: block; width: 100%; border-radius: 5px; background: #000; }   /* только сам ролик: у секции блока «Видео» тот же класс */
/* Видео с Vimeo/YouTube. Фоновые ролики (без управления) не перехватывают мышь — листается страница. */
.cs-frame { position: relative; width: 100%; overflow: hidden; border-radius: 5px; background: #000; }
.cs-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-frame.is-loop iframe { pointer-events: none; }

/* Заголовок с текстом: крупная фраза слева, текст справа */
.cb-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--col-gap); align-items: start; }
.cb-lead__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.cb-lead__text { font-size: var(--fs-b16); line-height: var(--lh-body); }
.cb-lead__text p:last-child { margin-bottom: 0; }
.cb-lead > :only-child { grid-column: 1 / -1; max-width: 1000px; }

/* Цифры проекта */
.cb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px var(--col-gap); }
.cb-stats li { display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
/* размер цифры подстраивается под ширину колонки: «0,0 млн» не налезает на соседнюю */
.cb-stats__value { font-size: min(var(--fs-display), 25cqi); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.cb-stats__text { max-width: 260px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--text-2); }

/* Слайдер: лента с прокруткой, стрелки — как у плиток решений */
.cb-slider__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cb-slider__head h2 { font-size: inherit; line-height: inherit; }
.cb-slider__nav { display: flex; align-items: center; gap: 4px; margin-bottom: -2px; }
.cb-slider__count { margin-right: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cb-slider__count b { font-weight: inherit; color: var(--ink); }
.cb-slider__btn {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 4px; background: var(--black-5); color: var(--ink); cursor: pointer;
  transition: background-color .45s var(--ease), color .45s var(--ease), opacity .3s ease;
}
.cb-slider__btn svg { width: 16px; height: 16px; }
.cb-slider__btn:hover { background: var(--ink); color: var(--white); }
.cb-slider__btn:disabled { opacity: .35; pointer-events: none; }
.cb-slider__track {
  display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  outline: none;
}
.cb-slider__track::-webkit-scrollbar { display: none; }
.cb-slider__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.cb-slider__track.is-anim { scroll-snap-type: none; }
.cb-slider__track.is-drag * { pointer-events: none; }
.cb-slider__slide { flex: 0 0 78%; margin: 0; scroll-snap-align: start; }
.cb-slider__slide .ph { aspect-ratio: 16 / 10; }
.cb-slider__slide .ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-slider__slide:only-child { flex-basis: 100%; }

/* Отзыв — белая карточка, как плитки решений */
.cb-review {
  position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: 40px var(--col-gap); margin: 0;
  padding: 40px; border-radius: 5px; background: var(--white);
}
.cb-review__text {
  grid-column: 2; margin: 0;
  font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.01em;
}
.cb-review__text::before { content: "«"; } .cb-review__text::after { content: "»"; }
.cb-review__who { grid-column: 1; grid-row: 1; display: flex; align-items: flex-end; gap: 12px; align-self: end; }
.cb-review__who b { display: block; font-weight: inherit; font-size: var(--fs-b16); }
.cb-review__who span span { display: block; font-size: var(--fs-b14); color: var(--muted); }
.cb-review__photo { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--chip); }
.cb-review__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Команда */
.cb-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px var(--col-gap); }
.cb-team__item { display: flex; flex-direction: column; }
.cb-team__photo { aspect-ratio: 1; margin-bottom: 14px; }
.cb-team__name { font-size: var(--fs-b16); line-height: var(--lh-body); }
.cb-team__role { font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.cb-team:not(:has(.cb-team__photo)) .cb-team__item { padding-top: 12px; border-top: 1px solid var(--black-10); }

/* Следующий проект */
.case-next { padding-bottom: 120px; }
.case-next__link { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: stretch; }
.case-next__text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-right: 56px; }
.case-next__title { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.case-next__arrow { top: 0; right: 0; }
.case-next__link:hover .case-next__arrow { background: var(--ink); color: #fff; }
.case-next__ph { aspect-ratio: 1072 / 553; }
.case-next__link:hover .case-next__ph img { transform: scale(1.025); }

/* На обычных страницах новые блоки идут той же сеткой */
.page__cblock { margin: 72px 0; }

@media (max-width: 1279px) {
  .cb-team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .case-hero__box { height: auto; min-height: 480px; }
}
@media (max-width: 767px) {
  .case-hero__box { padding: 18px 18px 22px; gap: 32px; }
  .case-hero__title { font-size: clamp(30px, 8.4vw, 40px); }
  .case-hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .case-links { justify-content: flex-start; }
  .cs { padding-top: 72px; }
  .case-body > .cs:last-child, .case-next { padding-bottom: var(--sec-gap); }
  .cs-heading__title { font-size: 28px; }
  .cs-heading__title--h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .cs-heading__title--h3 { font-size: 22px; }
  .cs-heading + .cs { padding-top: 24px; }
  .cs-duo { grid-template-columns: 1fr; }
  .cb-lead, .cb-review { grid-template-columns: 1fr; gap: 20px; }
  .cb-lead__title { font-size: 24px; }
  .cb-stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .cb-stats__value { font-size: min(56px, 26cqi); }
  .cb-slider__slide { flex-basis: 88%; }
  .cb-review { padding: 24px 20px; }
  .cb-review__text { grid-column: 1; font-size: 18px; }
  .cb-review__who { grid-row: 2; }
  .cb-team { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .case-next__link { grid-template-columns: 1fr; }
  .case-next__title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .case-hero__bg img, .case-hero__bg video { animation: none; } }

/* ===== Сайдбар на странице кейса: все кейсы стопкой, как на handh.ru.
   Список листается по карточкам; сверху и снизу из-за него выглядывают
   края скрытых карточек — по одной-две, каждая следующая уже. ===== */
.sidebar__bottom--cases { flex: 1; min-height: 0; margin-top: 14px; }
.cnav { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* окно списка — по целым карточкам; края стопки едут за его низом */
.cnav__stack { position: relative; flex: none; padding: 14px 0; }
.cnav__list {
  position: relative; z-index: 1;
  height: 0; overflow-y: auto; overscroll-behavior: contain;
  transition: height .35s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
  scrollbar-width: none;
  border-radius: 5px;
}
.cnav__list::-webkit-scrollbar { display: none; }
.cnav__layer {
  position: absolute; z-index: 0; height: 24px; border-radius: 5px;
  opacity: 0; transition: opacity .35s var(--ease), translate .35s var(--ease);
}
.cnav__layer--t1, .cnav__layer--b1 { left: 8px; right: 8px; background: #ededed; }
.cnav__layer--t2, .cnav__layer--b2 { left: 16px; right: 16px; background: #f2f2f2; }
.cnav__layer--t1 { top: 7px; translate: 0 7px; }
.cnav__layer--t2 { top: 0; translate: 0 14px; }
.cnav__layer--b1 { bottom: 7px; translate: 0 -7px; }
.cnav__layer--b2 { bottom: 0; translate: 0 -14px; }
.cnav.has-above-1 .cnav__layer--t1, .cnav.has-above-2 .cnav__layer--t2,
.cnav.has-below-1 .cnav__layer--b1, .cnav.has-below-2 .cnav__layer--b2 { opacity: 1; translate: 0 0; }
.cnav__item {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 7px; border-radius: 5px; background: var(--bg-page);
  transition: background-color .3s var(--ease);
}
.cnav__item:hover { background: #ececec; }
.cnav__ava {
  flex: none; display: grid; place-items: center; overflow: hidden;
  width: 34px; height: 34px; border-radius: 7px;
  font-size: var(--fs-b12); font-weight: 700; letter-spacing: -.04em;
}
.cnav__ava img { width: 100%; height: 100%; object-fit: cover; }
.cnav__text { min-width: 0; display: flex; flex-direction: column; }
.cnav__text b { font-weight: inherit; font-size: var(--fs-b14); line-height: var(--lh-body); }
.cnav__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-b12); line-height: var(--lh-body); color: var(--muted); }
/* текущий кейс */
.cnav__item.is-current {
  position: relative; isolation: isolate; overflow: hidden; clip-path: inset(0 round 5px);
  flex-direction: column; align-items: flex-start; gap: 14px; padding: 10px;
  background: var(--dark-surface); color: var(--white);
}
.cnav__item.is-current::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(23,23,23,.15), rgba(23,23,23,.75)), var(--cover, none) center / cover;
}
.cnav__item.is-current .cnav__ava { width: 38px; height: 38px; border-radius: 8px; font-size: var(--fs-b14); }
.cnav__item.is-current .cnav__text b { font-size: 20px; line-height: var(--lh-h4); }
.cnav__item.is-current .cnav__text span { white-space: normal; color: var(--white-70); line-height: 1.25; margin-top: 4px; }
.sidebar.is-dark .cnav__item:not(.is-current) { background: #333; }
.sidebar.is-dark .cnav__layer--t1, .sidebar.is-dark .cnav__layer--b1 { background: #3a3a3a; }
.sidebar.is-dark .cnav__layer--t2, .sidebar.is-dark .cnav__layer--b2 { background: #333; }
@media (max-width: 1023px) {
  .sidebar__bottom--cases { flex: none; }
  .cnav { display: none; }   /* в мобильном меню стопка не нужна */
  .sidebar--cases .snav-btn { display: none; }   /* и меню кейса там раскрыто сразу */
  .sidebar--cases .sidebar__nav--folded { max-height: none; opacity: 1; margin-top: 8px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .cnav__item, .cnav__layer { transition: none; } }

/* ==========================================================================
   Все проекты: /projects/
   ========================================================================== */
.pjs { padding: 48px 0 120px; }
.pjs__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap;
  margin-bottom: 56px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.pjs__title { max-width: 640px; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
/* Фильтр — теги-плашки напротив заголовка, в стиле кнопок сайта */
.pjs__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 70%; }
.pjs__tag {
  padding: 6px 10px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--black-5); color: var(--text-2); font: inherit; font-size: var(--fs-b14); line-height: var(--lh-body);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pjs__tag:hover { background: var(--black-10); color: var(--ink); }
.pjs__tag.is-active { background: var(--black); color: var(--white); }
/* карточки — те же, что в «Проектах» на главной: одна широкая картинка или две рядом */
.pjs__list .project.is-hidden { display: none; }
.pj { transition: opacity .35s var(--ease), translate .5s var(--ease); }
.pj.is-leave { opacity: 0; translate: 0 -12px; pointer-events: none; }
.pj.is-enter { opacity: 0; translate: 0 24px; }
/* отступ между карточками считаем только между видимыми (после фильтра) */
.pjs__list .project + .project { margin-top: 0; }
.pjs__list .project:not(.is-hidden) ~ .project:not(.is-hidden) { margin-top: 64px; }
.pjs__empty { color: var(--muted); }
.pjs__more { display: flex; justify-content: center; margin-top: 88px; }
/* Крутилка подгрузки — как прелоадер на oktta.ru: 12 «спиц» поворачиваются шагами */
.pjs__loader {
  width: 40px; aspect-ratio: 1; display: grid; border-radius: 50%;
  background:
    linear-gradient(0deg, rgb(0 0 0 / 50%) 30%, #0000 0 70%, rgb(0 0 0 / 100%) 0) 50% / 8% 100%,
    linear-gradient(90deg, rgb(0 0 0 / 25%) 30%, #0000 0 70%, rgb(0 0 0 / 75%) 0) 50% / 100% 8%;
  background-repeat: no-repeat;
  animation: pjs-spin 1s infinite steps(12);
}
.pjs__loader::before, .pjs__loader::after { content: ""; grid-area: 1 / 1; border-radius: 50%; background: inherit; opacity: .915; transform: rotate(30deg); }
.pjs__loader::after { opacity: .83; transform: rotate(60deg); }
.pjs__loader[hidden] { display: none; }
@keyframes pjs-spin { to { transform: rotate(1turn); } }
@media (max-width: 767px) {
  .pjs { padding: 48px 0 72px; }
  .pjs__title { font-size: 28px; }
  .pjs__tags { justify-content: flex-start; max-width: none; }
  .pjs__head { margin-bottom: 32px; }
  .pjs__list .project:not(.is-hidden) ~ .project:not(.is-hidden) { margin-top: 64px; }
}

/* ==========================================================================
   Переход между страницами (как на ochen.digital): старая страница уходит вверх
   и гаснет, новая выезжает снизу. Боковое меню и мобильная шапка стоят на месте.
   Работает в браузерах с View Transitions (Chrome, Edge, Safari 18.2+), в остальных —
   обычный переход.
   ========================================================================== */
@view-transition { navigation: auto; }
#sidebar { view-transition-name: sidebar; }
.m-header { view-transition-name: m-header; }
/* сайдбар и шапка не анимируются вовсе: новая версия встаёт на место старой сразу, без сдвига и мерцания */
::view-transition-group(sidebar), ::view-transition-group(m-header),
::view-transition-new(sidebar), ::view-transition-new(m-header) { animation: none; }
::view-transition-old(sidebar), ::view-transition-old(m-header) { animation: none; opacity: 0; }
::view-transition-old(root) { animation: vt-out .8s cubic-bezier(.76, 0, .24, 1) both; }
::view-transition-new(root) { animation: vt-in .9s cubic-bezier(.76, 0, .24, 1) both; }
@keyframes vt-out { to { transform: translateY(-18vh); opacity: .2; } }
@keyframes vt-in { from { transform: translateY(100vh); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ==========================================================================
   Курсор на проектах: белый круг со стрелкой едет за мышью
   ========================================================================== */
.cursor-go {
  position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none;
  display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: var(--white); color: var(--black);
  scale: 0; transition: scale .45s cubic-bezier(.2, .9, .3, 1.2);
  will-change: translate, scale;
}
.cursor-go svg { width: 24px; height: 24px; transition: rotate .45s var(--ease); rotate: -45deg; }
.cursor-go.is-on { scale: 1; }
.cursor-go.is-on svg { rotate: 0deg; }
.has-cursor-go [data-cursor], .has-cursor-go [data-cursor] * { cursor: none; }

/* ==========================================================================
   Услуги: /services/ — как раскрытый пункт «Услуг» на главной, только светлый:
   название слева, справа ссылки на дополнительные услуги со стрелками и описание, ниже кейсы.
   ========================================================================== */
.svp { padding: 48px 0 120px; }
/* каждая услуга — плашка во всю ширину, как плитки «Решений» */
.svp__item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px var(--col-gap);   /* доп. услуги — с середины карточки */
  padding: 28px 28px 32px; border-radius: var(--radius); background: var(--surface-2);
  transition: background-color .25s;
}
.svp__item + .svp__item { margin-top: 8px; }
.svp__item:hover { background: var(--white); }
.svp__left { display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.svp__name { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.svp__lead { font-size: var(--fs-h4); line-height: var(--lh-h4); }
/* доп. услуги — тегами под названием, у низа карточки */
.svp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 32px; }
.svp__tags li { padding: 5px 10px; border-radius: 4px; background: var(--black-5); color: var(--text-2); font-size: var(--fs-b14); line-height: var(--lh-body); }
/* описание — справа сверху, место под стрелку */
.svp__text { max-width: 520px; padding: 6px 56px 0 0; font-size: var(--fs-b16); line-height: var(--lh-body); color: var(--text-2); }
@media (max-width: 1023px) {
  /* в одну колонку: название, ссылки, описание */
  .svp__item { display: flex; flex-direction: column; }
  .svp__left { display: contents; }
  .svp__name { order: 1; padding-right: 48px; } .svp__lead { order: 2; } .svp__text { order: 3; padding: 0; } .svp__tags { order: 4; margin-top: 0; padding-top: 0; }
}
@media (max-width: 767px) {
  .svp { padding-top: 32px; }
  .svp__item { gap: 20px; padding: 20px 18px 24px; }
  .svp__name { font-size: 28px; }
  .svp__lead { font-size: 20px; }
}

/* Карточка в «Услугах», у которой есть своя страница: стрелка в углу и ссылка на названии */
.svp__item { position: relative; }
.svp__arrow { top: 24px; right: 24px; }
/* карточка-ссылка (без доп. услуг): ховер как у плиток «Решений» — прожимается, квадрат стрелки темнеет */
.svp__item--link { transition: background-color .25s, scale .45s var(--ease); }
.svp__item--link:hover { background: var(--white); scale: .985; }
.svp__item--link:active { scale: .97; transition-duration: .25s, .15s; }
.svp__item--link:hover .svp__arrow { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .svp__item--link:hover, .svp__item--link:active { scale: none; } }

/* ==========================================================================
   Страница услуги: /services/<code>/ (по мотивам agima.ru/approach/development)
   ========================================================================== */
.svh { padding: 48px 0 0; }
.svh__crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 56px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.svh__crumbs a { color: var(--ink); transition: opacity .2s; }
.svh__crumbs a:hover { opacity: .6; }
.svh__title { max-width: 1000px; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.svh__title span { color: var(--muted); }
.svh__text { max-width: 640px; margin-top: 32px; font-size: var(--fs-b16); line-height: var(--lh-body); color: var(--text-2); }
.svh .arrow-list { gap: 12px 56px; }
.svh .arrow-list a::before, .svh .arrow-list span::before { background: var(--black-5); color: var(--text-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.svh .arrow-list a:hover { opacity: 1; }
.svh .arrow-list a:hover::before { background: var(--black); color: var(--white); }
.svh .arrow-list span { color: var(--text-2); }

/* Этапы — просто текстом: номер, название и описание, срок серым справа */
.cb-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cb-steps__item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 8px 24px; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--black-10);
}
.cb-steps__item:first-child { border-top: 0; padding-top: 0; }
.cb-steps__n { font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.cb-steps__title { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.cb-steps__text { max-width: 640px; margin-top: 10px; font-size: var(--fs-b16); line-height: var(--lh-body); color: var(--text-2); }
.cb-steps__time { font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); white-space: nowrap; }

/* Технологии: группы-карточки с плашками */
.cb-tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.cb-tech__group { padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.cb-tech__title { font-size: var(--fs-b16); line-height: var(--lh-body); margin-bottom: 16px; }
.cb-tech__list { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-tech__list li { padding: 5px 10px; border-radius: 4px; background: var(--black-5); font-size: var(--fs-b14); line-height: var(--lh-body); }

/* Плитки (подход): как «Решения» */
.cb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.cb-cards__item { display: flex; flex-direction: column; min-height: 240px; padding: 24px 24px 28px; border-radius: var(--radius); background: var(--surface-2); }
.cb-cards__n { font-size: var(--fs-b14); color: var(--muted); font-variant-numeric: tabular-nums; }
.cb-cards__title { margin-top: auto; padding-top: 48px; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.cb-cards__text { margin-top: 12px; max-width: 460px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--text-2); }

/* Таблица (формат работы) */
.cb-table { width: 100%; border-collapse: collapse; font-size: var(--fs-b16); line-height: var(--lh-body); }
.cb-table th, .cb-table td { padding: 20px 24px 20px 0; border-top: 1px solid var(--black-10); text-align: left; vertical-align: top; font-weight: inherit; }
.cb-table thead th { padding-top: 0; border-top: 0; font-size: var(--fs-b14); color: var(--muted); }
.cb-table tbody th { width: 34%; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.cb-table td { color: var(--text-2); }
/* В кейсах слева длинные формулировки проблем — текст мельче */
.case-body .cb-table tbody th { font-size: var(--fs-b16); line-height: var(--lh-body); }
@media (min-width: 768px) { .case-body .cb-table tbody th { width: 30%; } }

/* Рейтинги */
.cb-ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px var(--col-gap); }
.cb-ratings li { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--black-10); }
.cb-ratings__n { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.cb-ratings__text { font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--text-2); }
.cb-ratings__note { margin-top: 24px; font-size: var(--fs-b14); color: var(--muted); }

@media (max-width: 767px) {
  .svh { padding-top: 32px; }
  .svh__crumbs { margin-bottom: 32px; }
  .svh__title { font-size: clamp(30px, 8.4vw, 40px); }
  .cb-steps__item { grid-template-columns: 32px 1fr; }
  .cb-steps__time { grid-column: 2; }
  .cb-steps__title { font-size: 20px; }
  .cb-table, .cb-table tbody, .cb-table tr, .cb-table th, .cb-table td { display: block; width: auto; }
  .cb-table thead { display: none; }
  .cb-table tbody th { width: auto; padding-bottom: 8px; font-size: 20px; }
  .cb-table td { padding-top: 0; border-top: 0; }
  .cb-ratings__n { font-size: 40px; }
}

/* Страница услуги: разделы на белых плашках, идут вплотную с зазором 8px, как карточки «Услуг».
   Подпись раздела (линия с текстом) превращается в заголовок плашки. */
.case-body--cards .cs, .svs-cases { padding-top: 8px; }
.case-body--cards > .cs:first-child { padding-top: 56px; }
.case-body--cards > .cs:last-child { padding-bottom: 0; }
.svs-cases { padding-bottom: 120px; }
.cs__card { padding: 36px 40px 40px; border-radius: var(--radius); background: var(--white); }
.cs__card > .label, .cs__card .cb-slider__head {
  margin-bottom: 28px; padding: 0; border: 0;
  font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3);
}
.cs__card .cb-tech__group, .cs__card .cb-cards__item { background: var(--bg-page); }
.cs__card .cb-steps__item:first-child, .cs__card .cb-ratings li { border-top-color: var(--black-10); }
.cs__card .project + .project { margin-top: 56px; }
@media (max-width: 767px) {
  .cs__card { padding: 22px 18px 24px; }
  .cs__card > .label, .cs__card .cb-slider__head { font-size: 24px; margin-bottom: 20px; }
  .case-body--cards > .cs:first-child { padding-top: 32px; }
  .svs-cases { padding-bottom: 72px; }
}

/* ==========================================================================
   Блоки для «О компании» и других страниц: фото в ряд, медиа, отзывы, клиенты, услуги
   ========================================================================== */
/* Фото в ряд — портреты команды */
.cb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* карточка: фото на всю плашку, имя и должность — сверху слева, поверх фото (фото на тёмном фоне) */
.cb-photos li { position: relative; overflow: hidden; border-radius: 5px; background: var(--black); }
.cb-photos__ph { aspect-ratio: 3 / 4; border-radius: 0; }
.cb-photos__cap { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; padding: 24px 26px 48px;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0)); color: var(--white); pointer-events: none; }
.cb-photos__name { font-size: var(--fs-b16); line-height: var(--lh-body); }
.cb-photos__role { font-size: var(--fs-b14); line-height: var(--lh-body); color: rgba(255,255,255,.55); }

/* Медиа — карточки публикаций */
.cb-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cb-media__card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 12px 12px 20px; border-radius: var(--radius); background: var(--bg-page);
  transition: background-color .25s, scale .45s var(--ease);
}
.cb-media__card:hover { scale: .985; }
.cb-media__card:hover .cb-media__arrow { background: var(--ink); color: #fff; }
.cb-media__ph { aspect-ratio: 680 / 500; margin-bottom: 16px; }
.cb-media__card:hover .cb-media__ph img { transform: scale(1.04); }
.cb-media__source { padding: 0 8px; font-size: var(--fs-b12); line-height: var(--lh-body); color: var(--muted); }
.cb-media__title { margin-top: 6px; padding: 0 8px; font-size: var(--fs-b16); line-height: var(--lh-body); }
.cb-media__arrow { top: 24px; right: 24px; background: var(--white); }

/* Отзывы — слайдер карточек */
.cb-reviews__slide { flex-basis: calc(50% - 2px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 340px; padding: 28px; border-radius: var(--radius); background: var(--bg-page); }
.cb-reviews__text { margin: 0; font-size: var(--fs-b16); line-height: var(--lh-body); }
.cb-reviews__who { display: flex; align-items: center; gap: 12px; }
.cb-reviews__who b { display: block; font-weight: inherit; font-size: var(--fs-b14); }
.cb-reviews__who span span { display: block; font-size: var(--fs-b12); color: var(--muted); }
.cb-reviews__ava { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--black); color: var(--white); font-size: var(--fs-b14); }
.cb-reviews__ava img { width: 100%; height: 100%; object-fit: cover; }
.cb-reviews .cb-slider__track { cursor: grab; }

/* Клиенты — логотипы на плитках */
.cb-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cb-clients li { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--bg-page); }
.cb-clients img { max-width: 70%; height: auto; filter: brightness(0); opacity: .8; transition: opacity .3s; }
.cb-clients li:hover img { opacity: 1; }

/* Услуги — карточки со стрелкой */
.cb-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cb-services__card {
  position: relative; display: flex; flex-direction: column; gap: 24px; height: 100%; min-height: 200px;
  padding: 24px; border-radius: var(--radius); background: var(--bg-page);
  transition: scale .45s var(--ease);
}
.cb-services__card:hover { scale: .985; }
.cb-services__card:hover .cb-services__arrow { background: var(--ink); color: #fff; }
.cb-services__arrow { top: 20px; right: 20px; background: var(--white); }
.cb-services__name { padding-right: 48px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.cb-services .svp__tags { margin-top: auto; padding-top: 0; }
.cb-services .svp__tags span { padding: 5px 10px; border-radius: 4px; background: var(--white); color: var(--text-2); font-size: var(--fs-b14); line-height: var(--lh-body); }

/* Обычные страницы: первый экран без хлебных крошек */
.page-body > .cs:first-child { padding-top: 48px; }

@media (max-width: 1023px) { .cb-media { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .cb-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cb-photos__cap { padding: 14px 14px 32px; }
  .cb-photos__name, .cb-photos__role { font-size: var(--fs-b14); }
  .cb-clients { grid-template-columns: 1fr 1fr; }
  .cb-media, .cb-services { grid-template-columns: 1fr; }
  .cb-reviews__slide { flex-basis: 88%; min-height: 300px; padding: 20px; }
  .cb-services__name { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .cb-media__card:hover, .cb-services__card:hover { scale: none; } }

/* Тёмная плашка (например, таблица рейтингов на «О компании») */
.cs__card--dark { background: var(--black); color: var(--white); }
.cb-table--dark th, .cb-table--dark td { border-top-color: var(--white-20); }
.cb-table--dark thead th { color: var(--white-50); }
.cb-table--dark td { color: var(--white-50); transition: color .3s var(--ease); }
.cb-table--dark tbody th { transition: translate .45s var(--ease); }
.cb-table[data-hover-media] tbody tr[data-media] { cursor: default; }
@media (hover: hover) {
  .cb-table--dark tbody tr:hover td { color: var(--white); }
  .cb-table--dark tbody tr[data-media]:hover th { translate: 12px 0; }
}

/* Картинка/видео, которое едет рядом с курсором над строкой таблицы */
.hover-media {
  position: fixed; left: 0; top: 0; z-index: 800; pointer-events: none;
  width: 220px; aspect-ratio: 440 / 528; margin: -132px 0 0 28px;
  border-radius: 24px; overflow: hidden;
  scale: .6; opacity: 0; transform-origin: 0 50%;
  transition: scale .45s cubic-bezier(.2, .9, .3, 1.15), opacity .25s ease;
  will-change: translate, scale;
}
.hover-media.is-on { scale: 1; opacity: 1; }
.hover-media > video, .hover-media > img { filter: url(#hm-key); }
.hover-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.hover-media > .is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hover-media { transition: opacity .2s ease; scale: 1; } }

/* Барабан ценностей («О компании»): как «Цифры» на главной, но в карточке — номер
   металлическим переливом, как цифра рейтинга в шапке главной */
.cb-drum__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.stats--values { margin-bottom: 0; }
.stats--values .stats__screen { background: var(--white); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.stats--values .stats__col--in span {
  background: linear-gradient(100deg, #4e4e4e 0%, #5f5f5f 32%, #8c8c8c 44%, #a9a9a9 50%, #8c8c8c 56%, #5f5f5f 68%, #4e4e4e 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rank-shimmer 6s ease-in-out infinite;
}
.stats--values .stats__caption { max-width: 300px; }
.stats--values .stats__note { max-width: 320px; font-size: var(--fs-b14); }
@media (prefers-reduced-motion: reduce) { .stats--values .stats__col--in span { animation: none; background-position: 50% 0; } }

/* ==========================================================================
   Формы заявок: «Контакты» (короткая) и «Бриф» (письмо с полями в тексте)
   ========================================================================== */
.lform { display: flex; flex-direction: column; }
.lform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lform__field { display: block; border-bottom: 1px solid var(--black-10); transition: border-color .3s var(--ease); }
.lform__field:focus-within { border-color: var(--ink); }
.lform__field { position: relative; }
.lform__field input, .lform__field textarea {
  display: block; width: 100%; padding: 30px 0 10px; border: 0; background: none; resize: none; outline: none;
  font: inherit; font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--ink);
}
.lform input::placeholder, .lform textarea::placeholder { color: var(--black-40); }
/* подпись-плейсхолдер: при фокусе или вводе уезжает вверх и уменьшается */
.lform__ph {
  position: absolute; left: 0; top: 30px; pointer-events: none; transform-origin: 0 0;
  font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--black-40);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.lform__field :focus + .lform__ph, .lform__field :not(:placeholder-shown) + .lform__ph { transform: translateY(-24px) scale(.58); color: var(--muted); }
/* выбор проекта и бюджета — прямоугольные плашки, как фильтры */
.lform__group { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.lform__legend { margin-bottom: 12px; padding: 0; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.lform__chips { gap: 6px; }
.lform__chips .brf__chip span { padding: 8px 12px; border-radius: 4px; font-size: var(--fs-b14); }
.lform__foot { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.lform__submit {
  flex: none; padding: 16px 32px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--black); color: var(--white); font: inherit; font-size: var(--fs-b16); line-height: var(--lh-body);
  transition: background-color .25s, scale .45s var(--ease);
}
.lform__submit:hover { background: #333; }
.lform__submit:active { scale: .97; }
.lform__submit[disabled] { opacity: .5; pointer-events: none; }
.lform__agree { display: flex; gap: 10px; align-items: flex-start; max-width: 380px; cursor: pointer;
  font-size: var(--fs-b12); line-height: var(--lh-body); color: var(--text-2); }
.lform__agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lform__box { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--black-40); border-radius: 4px; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.lform__agree input:checked + .lform__box { background: var(--black); border-color: var(--black); }
.lform__agree input:checked + .lform__box::after { content: ""; width: 9px; height: 5px; border: 1.5px solid #fff; border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
.lform__agree input:focus-visible + .lform__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.lform__agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lform__error { margin-top: 16px; font-size: var(--fs-b14); color: #d23b3b; }
.lform__thanks { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lform__thanks[hidden], .lform[hidden], .lform__error[hidden] { display: none; }
.lform__thanks-title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.lform__thanks-text { max-width: 520px; font-size: var(--fs-b16); line-height: var(--lh-body); color: var(--text-2); }
.lform__thanks-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lform__thanks .btn { margin-top: 8px; }
.lform__thanks:not([hidden]) { animation: rv-in .7s var(--ease) both; }

/* --- Контакты --- */
.ctc { padding: var(--gutter) 0 120px; }   /* заголовка нет — плашка вровень с сайдбаром */
.ctc__card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; padding: 40px; border-radius: var(--radius); background: var(--white); }
.ctc__say { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: var(--ls-h2); }
.ctc__say a[href^='tel'], .ctc__say a[href^='mailto'] { white-space: nowrap; }
/* предлог не остаётся в конце строки: «в telegram», «на почту» переносятся целиком */
.ctc__nb { white-space: nowrap; }
.ctc__say a { text-decoration: underline dotted var(--black-40); text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color .3s; }
.ctc__say a:hover { text-decoration-color: var(--ink); }
.ctc__tg { color: #2aabee; white-space: nowrap; }
.ctc__tg svg { display: inline-block; width: .8em; height: .8em; margin-right: .15em; vertical-align: -.05em; }
.ctc__formwrap { align-self: end; }
.ctc__label { margin: 72px 0 20px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.ctc__label--gap { margin-top: 40px; }
.ctc__info .ctc__col > .ctc__label:first-child { margin-top: 0; }   /* контакты стоят первыми на странице — вровень с сайдбаром */
.ctc__channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ctc__channel {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 24px;
  border-radius: var(--radius); background: var(--white); transition: scale .45s var(--ease);
}
.ctc__channel:hover { scale: .985; }
.ctc__channel:hover .ctc__arrow, .ctc__brief:hover .ctc__arrow { background: var(--ink); color: #fff; }
.ctc__arrow { top: 20px; right: 20px; }
.ctc__ava { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--black); color: var(--white); font-size: var(--fs-h4); }
.ctc__ava img { width: 100%; height: 100%; object-fit: cover; }
.ctc__ch-title { margin-top: 24px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.ctc__ch-text { margin-top: 12px; max-width: 460px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--text-2); }
.ctc__handle { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 32px; font-size: var(--fs-b14); }
.ctc__handle svg { width: 18px; height: 18px; }
.ctc__info { display: grid; grid-template-columns: 1fr 1fr minmax(260px, 1fr); gap: 0 var(--col-gap); align-items: start; }
.ctc__col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ctc__big { position: relative; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); transition: opacity .35s var(--ease); }
.ctc__big:hover { opacity: .6; }
.ctc__socials { margin-top: 0; }
.ctc__brief {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 24px;
  border-radius: var(--radius); background: var(--black); color: var(--white); transition: scale .45s var(--ease);
}
.ctc__brief:hover { scale: .985; }
.ctc__brief .ctc__arrow { background: var(--white-20); color: var(--white); }
.ctc__brief:hover .ctc__arrow { background: var(--white); color: var(--black); }
.ctc__brief-title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ctc__brief-text { margin-top: 8px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--white-50); }

/* --- Бриф --- */
.brf { padding: var(--gutter) 0 120px; }   /* заголовка нет — плашка вровень с сайдбаром */
.brf__card { padding: 48px; border-radius: var(--radius); background: var(--white); }
.brf__form { gap: 0; }
.brf__line { font-size: var(--fs-h2); line-height: 1.3; letter-spacing: var(--ls-h2); padding: 0; }
.brf__input {
  min-width: 4ch; max-width: 100%; padding: 0 2px; border: 0; border-bottom: 2px dotted var(--black-40); background: none; outline: none;
  font: inherit; color: var(--ink); transition: border-color .3s var(--ease);
}
/* значок автозаполнения Safari встаёт внутрь поля, съедает ширину и сдвигает текст — прячем его */
.brf__input::-webkit-contacts-auto-fill-button, .brf__input::-webkit-credentials-auto-fill-button { display: none !important; visibility: hidden; pointer-events: none; position: absolute; right: 0; }
.brf__input:focus { border-bottom-color: var(--ink); border-bottom-style: solid; }
.brf__group { margin: 40px 0 0; padding: 0; border: 0; min-width: 0; display: block; }
.brf__group > legend { margin-bottom: 16px; }
.brf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brf__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.brf__chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: var(--bg-page); font-size: var(--fs-b16); line-height: var(--lh-body);
  transition: background-color .25s var(--ease), color .25s var(--ease), scale .3s var(--ease);
}
.brf__chip:hover span { background: var(--black-10); }
.brf__chip input:checked + span { background: var(--black); color: var(--white); }
.brf__chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.brf__chip:active span { scale: .96; }
.brf__text {
  display: block; width: 100%; margin-top: 16px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--black-10); background: none; outline: none; resize: none;
  font: inherit; font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--ink);
}
.brf__text:focus { border-bottom-color: var(--ink); }
.brf .lform__foot { margin-top: 48px; }

@media (max-width: 1023px) {
  .ctc__card { grid-template-columns: 1fr; }
  .ctc__info { grid-template-columns: 1fr 1fr; gap: 40px var(--col-gap); }
  .ctc__brief { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 767px) {
  .ctc, .brf { padding: 32px 0 72px; }
  .ctc__card, .brf__card { padding: 22px 18px 26px; }
  .ctc__say { font-size: 26px; }
  .lform__field input, .lform__field textarea, .lform__ph { font-size: 20px; }
  .ctc__channels, .ctc__info { grid-template-columns: 1fr; }
  .ctc__channel { min-height: 0; }
  .ctc__big { font-size: 22px; }
  .ctc__label { margin-top: 48px; }
  .brf__line { font-size: 24px; }
  .brf__chip span { font-size: var(--fs-b14); padding: 8px 12px; }
  .brf__text { font-size: 18px; }
}

/* Сайдбар доезжает до низа контента: у страниц из плашек внизу тот же отступ, что у главной (120px) */
.case-body--cards:last-child { padding-bottom: var(--sec-gap); }


/* Звёздочка у пункта меню («Курс ✦»), градиент мягче бывшей плашки */
.nav-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.nav-star { flex: none; width: 12px; height: 12px; margin-left: -2px; translate: 0 -.3em; }

/* ==========================================================================
   Блог: /blog/ — карточки статей, темы в сайдбаре
   ========================================================================== */
.blog { padding: 48px 0 120px; }
.blog__feed[hidden] { display: none; }
.blog__feed > * + * { margin-top: 72px; }
/* подпись над заголовком: тема плашкой и где опубликовано */
.bmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.bmeta__tag { padding: 0 6px; border-radius: 3px; background: var(--black-5); color: var(--text-2); }
/* карточки: три и две в ряд */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 8px; }
.bgrid--two { grid-template-columns: repeat(2, 1fr); }
.bcard { display: flex; flex-direction: column; }
.bcard__ph { aspect-ratio: 4 / 3; }
.bgrid--two .bcard__ph { aspect-ratio: 16 / 11; }
.bcard:hover .bcard__ph img, .blist__row:hover .blist__ph img { transform: scale(1.04); }
.bcard__body { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.bcard__title { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.bgrid--two .bcard__title { font-size: 28px; }
/* широкая: картинка слева, заголовок справа на белой плашке */
.bgrid--wide { grid-template-columns: 1fr; }
.bgrid--wide .bcard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bgrid--wide .bcard__ph { aspect-ratio: 16 / 11; }
.bgrid--wide .bcard__body {
  justify-content: center; gap: 16px; margin: 0; padding: 40px;
  border-radius: 5px; background: var(--white); transition: background-color .4s var(--ease);
}
.bgrid--wide .bcard__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
/* список: строки на белой плашке — тема, заголовок, превью */
.blist { padding: 8px 32px; border-radius: 5px; background: var(--white); }
.blist__row {
  display: grid; grid-template-columns: 160px 1fr 160px; align-items: center; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--black-10);
}
.blist__row:first-child { border-top: 0; }
.blist__title { font-size: var(--fs-h4); line-height: var(--lh-h4); transition: opacity .3s var(--ease); }
.blist__ph { aspect-ratio: 16 / 11; }
.blist__row:hover .blist__title { opacity: .6; }
@media (max-width: 1279px) {
  .bgrid--wide .bcard__title { font-size: 28px; }
  .bgrid--wide .bcard__body { padding: 28px; }
}
@media (max-width: 1023px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .bgrid--wide .bcard { grid-template-columns: 1fr; }
  .blist__row { grid-template-columns: 1fr 120px; }
  .blist__row .bmeta { grid-column: 1 / -1; }
  .blist__row .blist__title { grid-row: 2; }
}
@media (max-width: 767px) {
  .blog { padding: 32px 0 72px; }
  .blog__feed > * + * { margin-top: 40px; }
  .bgrid, .bgrid--two { grid-template-columns: 1fr; gap: 40px; }
  .bcard__title, .bgrid--two .bcard__title, .blist__title { font-size: 20px; }
  .bgrid--wide .bcard__body { padding: 24px 20px; }
  .bgrid--wide .bcard__title { font-size: 24px; }
  .blist { padding: 4px 16px; }
  .blist__row { grid-template-columns: 1fr 88px; gap: 8px 16px; padding: 16px 0; }
}

/* ==========================================================================
   Решения: /solutions/ — плитки во всю ширину с логотипом, как на главной
   ========================================================================== */
.solp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 280px; }
.solp__left { gap: 0; justify-content: space-between; }
.solp__left .svp__name { margin-top: 48px; }
.solp__right { display: flex; flex-direction: column; justify-content: flex-end; padding-right: 56px; }
.solp__right .svp__text { padding: 6px 0 0; }
@media (max-width: 1023px) { .solp .solp__left { display: flex; } .solp__right { padding-right: 0; } }
/* по две плитки в ряд: логотип сверху, название и описание прижаты к низу */
.solp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.solp-grid .svp__item + .svp__item { margin-top: 0; }
.solp-grid .solp { display: flex; flex-direction: column; gap: 0; min-height: 360px; }
.solp-grid .solp__left { display: flex; flex: 1 0 auto; min-height: 0; }
.solp-grid .solp__left .svp__name { margin-top: auto; padding-top: 48px; padding-right: 0; }
.solp-grid .solp__right { justify-content: flex-start; padding-right: 0; }
.solp-grid .solp__right .svp__text { max-width: 560px; padding: 16px 0 0; }
@media (max-width: 767px) {
  .solp-grid { grid-template-columns: minmax(0, 1fr); }
  .solp-grid .solp { min-height: 0; }
  .solp-grid .solp__left .svp__name { padding-top: 32px; }
}

/* ==========================================================================
   Раскрывающийся список (документы, частые вопросы)
   ========================================================================== */
.cb-acc { display: flex; flex-direction: column; gap: 8px; }
.cb-acc__item { border-radius: var(--radius); background: var(--bg-page); }
.cb-acc__head {
  display: grid; grid-template-columns: 64px 1fr 32px; align-items: center; gap: 24px; width: 100%;
  padding: 8px 20px 8px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.cb-acc__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 5px; background: var(--white);
  font-size: var(--fs-b14); color: var(--muted); font-variant-numeric: tabular-nums;
}
.cb-acc__icon svg { width: 24px; height: 24px; color: var(--ink); }
.cb-acc__title { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.cb-acc__plus { position: relative; width: 32px; height: 32px; border-radius: 4px; background: var(--white); transition: background-color .3s var(--ease); }
.cb-acc__plus::before, .cb-acc__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor;
  transition: rotate .45s var(--ease);
}
.cb-acc__plus::after { rotate: 90deg; }
.cb-acc__item.is-open .cb-acc__plus::after { rotate: 0deg; }
.cb-acc__head:hover .cb-acc__plus { background: var(--ink); color: var(--white); }
/* документ: вся строка — ссылка на скачивание; справа формат и размер, стрелка вместо плюса */
.cb-acc__get { grid-template-columns: 64px 1fr auto 32px; }
.cb-acc__meta { font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); white-space: nowrap; }
.cb-acc__arrow { display: grid; place-items: center; }
.cb-acc__arrow::before, .cb-acc__arrow::after { content: none; }
.cb-acc__arrow svg { width: 16px; height: 16px; transition: translate .35s var(--ease); }
.cb-acc__get:hover .cb-acc__arrow svg { translate: 0 2px; }
.cb-acc__fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.cb-acc__item.is-open .cb-acc__fold { grid-template-rows: 1fr; }
.cb-acc__fold > div { min-height: 0; overflow: hidden; }
.cb-acc__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 4px 76px 28px 96px; }
.cb-acc__text { max-width: 720px; font-size: var(--fs-b16); line-height: var(--lh-body); color: var(--text-2); }
.cb-acc__dl {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 5px;
  background: var(--black); color: var(--white); font-size: var(--fs-b14); transition: background-color .25s;
}
.cb-acc__dl:hover { background: #333; }
.cb-acc__ext { padding: 2px 6px; border-radius: 3px; background: var(--white-20); font-size: var(--fs-b12); letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .cb-acc__fold, .cb-acc__plus::after { transition: none; } }
@media (max-width: 767px) {
  .cb-acc__head { grid-template-columns: 44px 1fr 28px; gap: 14px; padding: 6px 12px 6px 6px; }
  .cb-acc__icon { width: 44px; height: 44px; }
  .cb-acc__icon svg { width: 20px; height: 20px; }
  .cb-acc__title { font-size: 18px; }
  .cb-acc__plus { width: 28px; height: 28px; }
  .cb-acc__get { grid-template-columns: 44px 1fr 28px; }
  .cb-acc__get .cb-acc__meta { display: none; }
  .cb-acc__body { padding: 0 14px 20px 64px; }
}

/* ==========================================================================
   Медиа («О компании»): как «Новости» главной, картинка слева меняется по строке
   ========================================================================== */
.cb-press { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.cb-press__stage { position: sticky; top: 24px; aspect-ratio: 1; border-radius: 5px; overflow: hidden; background: #e2e2e2; }
.cb-press__pic { position: absolute; inset: 0; opacity: 0; scale: 1.06; transition: opacity .5s var(--ease), scale .9s var(--ease); }
.cb-press__pic.is-active { opacity: 1; scale: 1; }
.cb-press__n {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 4px 10px; border-radius: 4px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-b14); color: var(--muted); font-variant-numeric: tabular-nums;
}
.cb-press__n b { font-weight: inherit; color: var(--ink); }
.cb-press__list { margin: 0; padding: 0; list-style: none; }
.cb-press__row {
  position: relative; display: grid; grid-template-columns: 1fr 32px; align-items: start; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--black-10);
}
.cb-press__list li:first-child .cb-press__row { padding-top: 0; }
.cb-press__row::after { /* линия снизу вырастает слева направо, как в «Новостях» */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.cb-press__row.is-active::after, .cb-press__row:hover::after { transform: scaleX(1); }
.cb-press__thumb { display: none; }
.cb-press__body { display: flex; flex-direction: column; gap: 6px; }
.cb-press__source { font-size: var(--fs-b12); line-height: var(--lh-body); color: var(--muted); }
.cb-press__title { font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--text-2); transition: color .3s var(--ease); }
.cb-press__row.is-active .cb-press__title { color: var(--ink); }
.cb-press__arrow { position: static; background: var(--bg-page); }
.cb-press__row.is-active .cb-press__arrow { background: var(--ink); color: var(--white); }
.label--big { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); padding-bottom: 16px; border-bottom-color: var(--ink); margin-bottom: 40px; }
/* Медиа без белой плашки: строка при наведении получает белую подложку */
.cb-press__row { padding: 22px 20px; margin: 0 0 0 -20px; border-radius: 8px; border-bottom-color: transparent; box-shadow: 0 1px 0 var(--black-10);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.cb-press__list li:first-child .cb-press__row { padding-top: 22px; }
.cb-press__row::after { display: none; }
.cb-press__row:hover, .cb-press__row:focus-visible { background-color: var(--white); box-shadow: 0 1px 0 transparent; }
.cb-press__list li:has(+ li > .cb-press__row:hover) .cb-press__row { box-shadow: 0 1px 0 transparent; }
.cb-press__row:hover .cb-press__title { color: var(--ink); }
.cb-press__arrow { background: var(--white); transition: background-color .3s var(--ease), color .3s var(--ease); }

/* Шторки (Ценности на «О нас») */
.cb-panels { --closed: 72px; --r: 20px; display: flex; height: clamp(460px, 38vw, 580px); }
.cb-panels__item {
  position: relative; z-index: calc(20 - var(--i)); display: flex; flex: 0 0 calc(var(--closed) + var(--r)); min-width: 0;
  margin-left: calc(var(--r) * -1); border-radius: var(--r); overflow: hidden; color: var(--white);
  background: color-mix(in srgb, #1a1a1a, #4a4a4a calc(var(--i) * 18%));
  transition: flex-grow .7s var(--ease), flex-basis .7s var(--ease);
}
.cb-panels__item:first-child { margin-left: 0; flex-basis: var(--closed); }
.cb-panels__item.is-open { flex-grow: 1; }
.cb-panels__hit {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  width: 100%; padding: 28px 0 24px; padding-right: calc((var(--closed) - 36px) / 2); border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left;
}
.cb-panels__item.is-open .cb-panels__hit { cursor: default; }
.cb-panels__n { width: 36px; text-align: center; font-size: var(--fs-h4); line-height: 1; font-variant-numeric: tabular-nums; }
.cb-panels__side {
  flex: 1; display: block; margin: 24px 0 20px; width: 36px; min-height: 0;
  writing-mode: vertical-rl; rotate: 180deg; text-align: start; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-size: 20px; line-height: 36px; letter-spacing: var(--ls-h3); transition: opacity .3s var(--ease);
}
.cb-panels__pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--white); }
.cb-panels__pm::before, .cb-panels__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--ink); transition: rotate .4s var(--ease); }
.cb-panels__pm::after { rotate: 90deg; }
.cb-panels__item.is-open .cb-panels__pm::after { rotate: 0deg; }
.cb-panels__item.is-open .cb-panels__side { opacity: 0; }
.cb-panels__item.is-open .cb-panels__n { align-self: flex-start; width: auto; margin-left: calc(var(--r) + 24px); }
.cb-panels__item.is-open:first-child .cb-panels__n { margin-left: 24px; }
.cb-panels__body {
  position: absolute; left: calc(var(--r) + 24px); bottom: 24px; width: min(460px, calc(100% - 140px));
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .35s var(--ease), translate .5s var(--ease);
}
.cb-panels__item:first-child .cb-panels__body { left: 24px; }
.cb-panels__item.is-open .cb-panels__body { opacity: 1; translate: 0 0; transition-delay: .3s; }
.cb-panels__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.cb-panels__text { margin-top: 14px; font-size: var(--fs-b16); line-height: var(--lh-body); color: rgba(255,255,255,.55); }
.cb-panels__item:not(.is-open):hover .cb-panels__pm { scale: 1.08; }
.cb-panels__pm { transition: scale .3s var(--ease); }

@media (max-width: 767px) {
  .cb-press { grid-template-columns: 1fr; }
  .cb-press__stage { display: none; }
  .cb-press__row { grid-template-columns: 72px 1fr 28px; gap: 14px; }
  .cb-press__row, .cb-press__list li:first-child .cb-press__row { margin: 0; padding: 16px 0; border-radius: 0; }
  .cb-press__row:hover { background-color: transparent; }
  .cb-press__thumb { display: block; aspect-ratio: 1; }
  .cb-press__title { font-size: 17px; color: var(--ink); }
  /* шторки на телефоне — стопкой: закрытая строка с номером и заголовком, открытая с текстом */
  .cb-panels { flex-direction: column; height: auto; gap: 6px; }
  .cb-panels__item, .cb-panels__item:first-child { flex: none; margin: 0; flex-direction: column; border-radius: 12px; }
  .cb-panels__hit { position: relative; flex-direction: row; align-items: center; gap: 14px; padding: 18px 16px; }
  .cb-panels__item.is-open .cb-panels__n, .cb-panels__item.is-open:first-child .cb-panels__n { align-self: center; width: 36px; margin: 0; }
  .cb-panels__side { flex: 1; width: auto; margin: 0; writing-mode: horizontal-tb; rotate: none; line-height: 1.2; font-size: 18px; white-space: normal; }
  .cb-panels__item.is-open .cb-panels__side { opacity: 1; }
  .cb-panels__body, .cb-panels__item:first-child .cb-panels__body { position: static; display: none; width: auto; padding: 0 16px 20px; opacity: 1; translate: none; }
  .cb-panels__item.is-open .cb-panels__body { display: block; }
  .cb-panels__title { display: none; }
  .cb-panels__text { margin-top: 0; }
}

/* ==========================================================================
   Отзывы стопкой: впереди текущий, слева выглядывают следующие
   ========================================================================== */
.cb-deck__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.cb-deck__head h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.cb-deck__stack { position: relative; margin-right: 48px; transition: height .5s var(--ease); }
.cb-deck__card {
  position: absolute; left: 0; right: 0; top: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; height: 400px;
  padding: 32px 36px; border-radius: var(--radius); background: var(--bg-page);
  box-shadow: 1px 0 0 rgba(255,255,255,.9);
  transform-origin: 100% 50%;
  transition: translate .7s var(--ease), scale .7s var(--ease), opacity .5s var(--ease), background-color .5s var(--ease);
}
.cb-deck__text {
  margin: 0; max-width: 820px; font-size: var(--fs-h4); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;   /* длинные — с многоточием */
}
.cb-deck__card[data-d="0"] { z-index: 5; }
.cb-deck__card[data-d="1"] { z-index: 4; translate: 16px 0; scale: .96; background: #ececec; }
.cb-deck__card[data-d="2"] { z-index: 3; translate: 30px 0; scale: .92; background: #e4e4e4; }
.cb-deck__card[data-d="3"] { z-index: 2; translate: 42px 0; scale: .88; background: #dddddd; }
.cb-deck__card[data-d="far"] { z-index: 1; translate: 42px 0; scale: .88; opacity: 0; }
.cb-deck__card[data-d="gone"] { z-index: 6; translate: -60px 0; opacity: 0; pointer-events: none; }
.cb-deck__card:not([data-d="0"]) > * { opacity: 0; transition: opacity .2s; }
.cb-deck__card[data-d="0"] > * { opacity: 1; transition: opacity .45s .2s; }
@media (max-width: 767px) {
  .cb-deck__stack { margin-right: 24px; }
  .cb-deck__card { padding: 22px 20px; height: 320px; }
  .cb-deck__text { -webkit-line-clamp: 8; }
  .cb-deck__text { font-size: 17px; }
  .cb-deck__card[data-d="1"] { translate: 10px 0; }
  .cb-deck__card[data-d="2"] { translate: 18px 0; }
  .cb-deck__card[data-d="3"], .cb-deck__card[data-d="far"] { translate: 24px 0; }
  .cb-deck__head h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .cb-deck__card { transition: opacity .2s; } }

/* Кнопка на странице из плашек — без своей плашки, сразу под предыдущей */
.case-body--cards .cs-button { padding-top: 24px; }
.case-body--cards .cs-button + .cs { padding-top: 32px; }
.case-body--cards .cs-button .btn { margin-top: 0; }

/* Блок «Кнопка» на страницах (сейчас только «Курс») — во всю ширину и выше обычной */
.cs-button .btn { display: flex; width: 100%; padding: 22px 24px; font-size: var(--fs-b16); line-height: var(--lh-body); }

/* ===== Блог: карточки статей (как в oimachi) ===== */
.bpost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bpost-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bpost {
  display: flex; flex-direction: column; padding: 22px; border-radius: 8px;
  transition: background-color .35s var(--ease);
}
.bpost:hover, .bpost:focus-visible { background-color: var(--white); }
.bpost__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bpost__meta { font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.bpost__pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--black-10); transition: background-color .3s var(--ease); }
.bpost__pm::before, .bpost__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: rotate .35s var(--ease); }
.bpost__pm::after { rotate: 90deg; }
.bpost:hover .bpost__pm { background: var(--bg-page); }
.bpost.is-current .bpost__pm { background: var(--ink); color: var(--white); }
.bpost.is-current .bpost__pm::after { rotate: 0deg; }
.bpost__title { margin-top: 6px; font-size: var(--fs-h4); line-height: 1.25; letter-spacing: var(--ls-h3); }
/* в сетке по 3: заголовок всегда в 3 строки (длиннее — многоточие), картинки стоят на одной высоте */
.bpost-grid--3 .bpost__title { min-height: 3.75em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bpost__text {
  margin-top: 8px; font-size: var(--fs-b16); line-height: var(--lh-body); color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bpost__ph { margin-top: 22px; aspect-ratio: 16 / 10; }
.bpost__ph img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.bpost:hover .bpost__ph img { scale: 1.025; }

/* сайдбар на странице статьи: кнопка «Меню» раскрывает обычное меню, ниже — статьи карточками */
.snav-btn {
  display: flex; justify-content: space-between; align-items: center; margin: 40px 0 0; padding: 0 12px; height: 44px;
  border: 0; border-radius: 5px; background: var(--bg-page); color: inherit; font: inherit; font-size: var(--fs-b16); cursor: pointer;
  transition: background-color .3s var(--ease);
}
.snav-btn:hover { background: var(--black-10); }
.snav-btn__pm { position: relative; width: 14px; height: 14px; }
.snav-btn__pm::before, .snav-btn__pm::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; margin-top: -.75px; background: currentColor; transition: rotate .35s var(--ease); }
.snav-btn__pm::after { rotate: 90deg; }
.snav-btn[aria-expanded="true"] .snav-btn__pm::after { rotate: 0deg; }
.sidebar__nav--folded { margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .3s var(--ease), margin-top .5s var(--ease); }
.sidebar__nav--folded.is-open { max-height: 420px; opacity: 1; margin-top: 12px; }
.sidebar__bottom--posts { flex: 1; min-height: 0; margin-top: 10px; }
.spost { height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; border-radius: 5px; }
.spost::-webkit-scrollbar { display: none; }
.spost .bpost { flex: none; padding: 14px; border-radius: 5px; background: var(--bg-page); }
.spost .bpost:hover { background: var(--black-10); }
.spost .bpost.is-current { background: var(--bg-page); box-shadow: inset 0 0 0 1px var(--ink); }
.spost .bpost__meta { font-size: var(--fs-b12); }
.spost .bpost__pm { width: 22px; height: 22px; background: var(--white); }
.spost .bpost__pm::before, .spost .bpost__pm::after { width: 10px; margin-left: -5px; }
.spost .bpost.is-current .bpost__pm { background: var(--ink); }
.spost .bpost__title { font-size: var(--fs-b16); line-height: 1.3; letter-spacing: 0; }
.spost .bpost__text { font-size: var(--fs-b14); }
.spost .bpost__ph { margin-top: 12px; }

/* страница статьи */
.post { padding: var(--gutter) 0 0; }
.post__head { max-width: 860px; padding: 24px 0 48px; }
.post__meta { font-size: var(--fs-b14); color: var(--muted); }
.post__title { margin-top: 16px; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 400; }
.post__lead { margin-top: 24px; font-size: var(--fs-h4); line-height: 1.35; color: var(--text-2); }
.post__src { margin-top: 28px; }
.post__cover { aspect-ratio: 16 / 9; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__body > .cs:first-child { padding-top: 72px; }

@media (max-width: 767px) {
  .bpost-grid { grid-template-columns: 1fr; gap: 4px; }
  .bpost { padding: 16px 0; }
  .bpost:hover { background-color: transparent; }
  .bpost__title { font-size: 20px; }
  .post__title { font-size: 34px; }
  .post__lead { font-size: 18px; }
  .post__head { padding: 8px 0 32px; }
}

/* ===== Цифры на главной: сетка карточек ===== */
.kpi { padding: 24px 0 72px; }
.kpi__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.kpi__card {
  position: relative; grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px; padding: 24px; border-radius: 5px; background: var(--black-5); overflow: hidden;
}
.kpi__card:nth-child(4n+1), .kpi__card:nth-child(4n) { grid-column: span 3; }
.kpi__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kpi__name { margin: 0; font-size: var(--fs-b16); line-height: var(--lh-body); }
.kpi__value { margin: 0; font-size: 88px; line-height: 1; letter-spacing: -.02em; }
.kpi__deco { position: absolute; right: 24px; bottom: 24px; display: none; color: var(--black-40); }
.kpi__card:nth-child(4n+1) .kpi__deco--stars, .kpi__card:nth-child(4n) .kpi__deco--lines { display: grid; }
.kpi__card:last-child:nth-child(odd):not(:nth-child(4n+1)) .kpi__deco--lines { display: grid; }
.kpi__deco--stars { grid-template-columns: repeat(5, 12px); gap: 8px 10px; align-items: center; justify-items: center; }
.kpi__deco--stars i, .kpi__deco--stars b {
  width: 10px; height: 10px; background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.kpi__deco--stars b { position: relative; width: 18px; height: 18px; margin: -4px; border-radius: 50%; background: var(--ink); clip-path: none; }
.kpi__deco--stars b::after {
  content: ""; position: absolute; inset: 5px; background: var(--white);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.kpi__deco--lines { width: 150px; gap: 6px; justify-items: start; }
.kpi__deco--lines i { position: relative; width: var(--w); height: 1px; background: var(--black-40); }
.kpi__deco--lines i::after { content: ""; position: absolute; right: -2px; top: -1.5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.kpi__deco--lines b { position: relative; width: 62%; height: 1px; margin-top: 2px; background: repeating-linear-gradient(90deg, var(--black-40) 0 2px, transparent 2px 4px); }
.kpi__deco--lines b::after { content: ""; position: absolute; right: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
@media (max-width: 1023px) {
  .bpost-grid--3 { grid-template-columns: 1fr 1fr; }
  .kpi__value { font-size: 72px; }
}
@media (max-width: 767px) {
  .bpost-grid--3 { grid-template-columns: 1fr; }
  .kpi { padding: 8px 0 48px; }
  .kpi__grid { grid-template-columns: 1fr; gap: 4px; }
  .kpi__card, .kpi__card:nth-child(4n+1), .kpi__card:nth-child(4n) { grid-column: auto; min-height: 180px; padding: 20px; }
  .kpi__value { font-size: 64px; }
  .kpi__deco { right: 20px; bottom: 20px; }
}
.bpost-grid--3 .bpost__text { display: none; }
@media (max-width: 767px) { .bpost-grid--3 .bpost__title { min-height: 0; } }

/* Главная: одинаковые отступы между блоками. Каждый блок отступает только снизу;
   тёмные «Услуги» держат отступ внутри своего фона сверху и снизу, поэтому блок после них отступает и сверху. */
:root { --sec-gap: 60px; }
@media (max-width: 1023px) { :root { --sec-gap: 48px; } }
@media (max-width: 767px) { :root { --sec-gap: 32px; } }
.hero:not(.hero--page) { padding-bottom: var(--sec-gap); }
.projects { padding-bottom: var(--sec-gap); }
.services { padding-top: var(--sec-gap); padding-bottom: var(--sec-gap); }
.services + section { padding-top: var(--sec-gap); }
.solutions { padding-bottom: var(--sec-gap); }
.solutions .course { margin-top: var(--sec-gap); }
.news { padding: 0 0 var(--sec-gap); }
.kpi--home { padding: 0 0 var(--sec-gap); }
.tg-wrap { padding-bottom: var(--sec-gap); }

/* Надпись над заголовком первого экрана («AI-native»): мелко и серым */
.hero__kicker { display: block; margin-bottom: 20px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); color: var(--muted); }
@media (max-width: 767px) { .hero__kicker { margin-bottom: 12px; font-size: 20px; line-height: 1.25; } }

/* Мобильное меню снизу (до 1024px). Тёмное стекло: панель «Меню» с белой кнопкой,
   над ней по нажатию раскрывается меню с размытием фона. Бургер в верхней шапке скрыт. */
.mbar { display: none; }
@media (max-width: 1023px) {
  .m-header .burger { display: none; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mbar { display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; pointer-events: none; }
  .mbar__scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,.28);
    opacity: 0; transition: opacity .35s var(--ease);
  }
  .mbar.is-open .mbar__scrim { opacity: 1; pointer-events: auto; }
  .mbar__bar, .mbar__panel {
    position: absolute; left: 12px; right: 12px; max-width: 520px; margin: 0 auto;
    color: #fff; border-radius: 8px;
    background: rgba(23,23,23,.72);
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 10px 40px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.08);
    pointer-events: auto;
  }
  .mbar__bar {
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 8px; height: 60px; padding: 6px;
  }
  .mbar__toggle {
    flex: 1; display: flex; align-items: center; justify-content: space-between; align-self: stretch;
    padding: 0 14px 0 14px; color: inherit; font-size: var(--fs-b16); text-align: left;
  }
  .mbar__icon { position: relative; width: 22px; height: 14px; }
  .mbar__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s var(--ease), top .35s var(--ease); }
  .mbar__icon i:nth-child(1) { top: 0; }
  .mbar__icon i:nth-child(2) { top: 6px; }
  .mbar__icon i:nth-child(3) { top: 12px; }
  .mbar.is-open .mbar__icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .mbar.is-open .mbar__icon i:nth-child(2) { opacity: 0; }
  .mbar.is-open .mbar__icon i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .mbar__btn {
    position: relative; display: grid; align-self: stretch; place-items: center; min-width: 148px; padding: 0 20px;
    border-radius: 4px; background: #fff; color: var(--ink); font-size: var(--fs-b16); overflow: hidden;
  }
  .mbar__btn > span { grid-area: 1 / 1; transition: transform .4s var(--roll, var(--ease)), opacity .3s var(--ease); }
  .mbar__btn-close { transform: translateY(110%); opacity: 0; }
  .mbar.is-open .mbar__btn-open { transform: translateY(-110%); opacity: 0; }
  .mbar.is-open .mbar__btn-close { transform: none; opacity: 1; }

  .mbar__panel {
    bottom: calc(80px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain;
    padding: 24px 20px 20px;
    background: rgba(23,23,23,.58);
    -webkit-backdrop-filter: blur(32px) saturate(1.5); backdrop-filter: blur(32px) saturate(1.5);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: 50% 100%;
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .45s;
  }
  .mbar.is-open .mbar__panel { opacity: 1; visibility: visible; transform: none; }
  .mbar__label { font-size: var(--fs-b14); color: rgba(255,255,255,.5); }
  .mbar__label--line { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
  .mbar__nav { display: flex; flex-direction: column; margin-top: 12px; }
  .mbar__nav a { font-size: 30px; line-height: 1.35; letter-spacing: -.01em; }
  .mbar__nav a span { color: rgba(255,255,255,.4); font-size: var(--fs-b16); vertical-align: top; }
  .mbar__socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: var(--fs-b16); }
  .mbar__deck {
    display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 24px;
    border-radius: 4px; background: #fff; color: var(--ink); font-size: var(--fs-b16);
  }
  /* Пока меню открыто, страница под ним не прокручивается */
  html.mbar-open, html.mbar-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .mbar__panel, .mbar__scrim, .mbar__btn > span, .mbar__icon i { transition: none; }
}

/* ===== 3D-иконки решений: плитка с толщиной, выдавленный знак, зацикленная анимация ===== */
.i3d {
  --t1: #4b5bff; --t2: #2433d6; --edge: #18239e; --g: #fff; --ge: #c9d0ff;
  position: relative; display: block; width: 60px; height: 60px;
  perspective: 260px;
}
.i3d__shadow {
  position: absolute; left: 10%; right: 10%; bottom: -8px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent);
  filter: blur(2px); animation: i3d-shadow 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1.4s);
}
.i3d__body {
  position: absolute; inset: 0; transform-style: preserve-3d;
  animation: i3d-tilt 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1.4s);
}
.i3d__edge, .i3d__face { position: absolute; inset: 0; border-radius: 14px; }
.i3d__edge { background: var(--edge); transform: translateZ(calc(var(--z) * 1px - 6px)); }
.i3d__face {
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 22% 6%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(80% 60% at 80% 110%, rgba(0,0,0,.22), transparent 60%),
    linear-gradient(155deg, var(--t1), var(--t2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 5px rgba(0,0,0,.18);
}
.i3d__glyph { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(10px); }
.i3d__spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.i3d__layer {
  position: absolute; inset: 11px; color: var(--ge);
  transform: translateZ(calc((var(--z) - 3.5) * 1px));
}
.i3d__layer:last-child { color: var(--g); filter: drop-shadow(0 1px 0 rgba(255,255,255,.35)); }
.i3d__layer svg { display: block; width: 100%; height: 100%; overflow: visible; }
.i3d__pulse { display: none; }

@keyframes i3d-tilt {
  0%, 100% { transform: rotateX(16deg) rotateY(-20deg); }
  50% { transform: rotateX(6deg) rotateY(20deg); }
}
@keyframes i3d-shadow { 0%, 100% { translate: -3px 0; } 50% { translate: 3px 0; } }

/* Финомо — знак переворачивается, как монета */
.i3d--finomo .i3d__spin { animation: i3d-flip 5s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes i3d-flip { 0%, 35% { transform: rotateY(0); } 65%, 100% { transform: rotateY(360deg); } }

/* Реком+ — лупа «ищет» по кругу, искра мерцает */
.i3d--recom { --t1: #ff6a3d; --t2: #f02d17; --edge: #a8170a; --ge: #ffc2b2; }
.i3d--recom .i3d__spin { animation: i3d-scan 4s ease-in-out infinite; }
.i3d--recom .i3d-spark { transform-box: fill-box; transform-origin: center; animation: i3d-twinkle 2s ease-in-out infinite; }
@keyframes i3d-scan {
  0%, 100% { transform: translate(0, 0); } 25% { transform: translate(3px, -2px); }
  50% { transform: translate(0, -4px); } 75% { transform: translate(-3px, -2px); }
}
@keyframes i3d-twinkle { 0%, 100% { scale: .55; rotate: 0deg; opacity: .7; } 50% { scale: 1.15; rotate: 90deg; opacity: 1; } }

/* Pimly — «голова» знака подпрыгивает над телом */
.i3d--pimly { --t1: #3a3a3a; --t2: #0d0d0d; --edge: #000; --ge: #7d7d7d; }
.i3d--pimly .i3d-head { transform-box: fill-box; transform-origin: 50% 100%; animation: i3d-hop 2.8s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes i3d-hop {
  0%, 55%, 100% { translate: 0 0; scale: 1 1; }
  62% { translate: 0 0; scale: 1.08 .9; }
  74% { translate: 0 -60px; scale: .95 1.05; }
  86% { translate: 0 0; scale: 1.06 .92; }
  93% { translate: 0 0; scale: 1 1; }
}

/* Alert Radar — щит «бьётся», молния вспыхивает */
.i3d--alert { --t1: #ffe94d; --t2: #f7c600; --edge: #b88f00; --g: #1c1c1c; --ge: #5c4a00; }
.i3d--alert .i3d__spin { animation: i3d-beat 2.4s ease-in-out infinite; }
.i3d--alert .i3d-bolt { animation: i3d-bolt 2.4s steps(1) infinite; }
@keyframes i3d-beat { 0%, 100% { scale: 1; } 8% { scale: 1.08; } 20% { scale: 1; } }
@keyframes i3d-bolt { 0%, 30%, 40%, 100% { opacity: 1; } 34% { opacity: .2; } }

/* Примерка украшений — кольцо поворачивается то одной, то другой стороной */
.i3d--tryon { --t1: #8a1530; --t2: #4d0716; --edge: #2c020b; --g: #f3f3f6; --ge: #9b9ba6; }
.i3d--tryon .i3d__spin { animation: i3d-swing 3.6s ease-in-out infinite; }
@keyframes i3d-swing { 0%, 100% { transform: rotateY(-62deg); } 50% { transform: rotateY(62deg); } }

/* Laymint — скобки кода «дышат», косая черта качается */
.i3d--laymint { --t1: #f1f4ff; --t2: #c4cffa; --edge: #8f9fe0; --g: #5a4cf0; --ge: #2f259e; }
.i3d--laymint .i3d-lt, .i3d--laymint .i3d-gt, .i3d--laymint .i3d-slash { transform-box: fill-box; transform-origin: center; }
.i3d--laymint .i3d-lt { animation: i3d-lt 3s ease-in-out infinite; }
.i3d--laymint .i3d-gt { animation: i3d-gt 3s ease-in-out infinite; }
.i3d--laymint .i3d-slash { animation: i3d-slash 3s ease-in-out infinite; }
@keyframes i3d-lt { 0%, 100% { translate: 0; } 50% { translate: -2.5px; } }
@keyframes i3d-gt { 0%, 100% { translate: 0; } 50% { translate: 2.5px; } }
@keyframes i3d-slash { 0%, 100% { rotate: 0deg; } 50% { rotate: 16deg; } }

/* Sampler — половинки «S» расходятся по диагонали разреза и снова собираются */
.i3d--sampler { --t1: #3a3a3a; --t2: #161616; --edge: #000; --ge: #8a8a8a; }
.i3d--sampler .i3d-s1 { animation: i3d-s1 3.2s cubic-bezier(.65,0,.35,1) infinite; }
.i3d--sampler .i3d-s2 { animation: i3d-s2 3.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes i3d-s1 { 0%, 30%, 85%, 100% { translate: 0 0; } 50%, 65% { translate: -5px -6px; } }
@keyframes i3d-s2 { 0%, 30%, 85%, 100% { translate: 0 0; } 50%, 65% { translate: 5px 6px; } }

@media (prefers-reduced-motion: reduce) {
  .i3d *, .i3d *::before { animation: none !important; }
  .i3d__body { transform: rotateX(12deg) rotateY(-14deg); }
}

/* ===== Страница «Услуги»: каждая услуга — белая карточка, как раскрытый пункт услуг на главной ===== */
.svc { padding: 32px 32px 32px; border-radius: var(--radius); background: var(--surface-2); }
.svc + .svc { margin-top: 8px; }
.svc__name { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin-bottom: 32px; }
.svc__name a { transition: opacity .2s; }
.svc__name .roll { --roll-h: 1.2em; }
.svc .arrow-list { grid-template-rows: repeat(3, auto); }
.svc .arrow-list span, .svc .arrow-list a { color: var(--ink); }
.svc .arrow-list a::before, .svc .arrow-list span::before { background: var(--black-5); color: var(--text-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.svc .arrow-list a:hover { opacity: 1; }
.svc .arrow-list a:hover::before { background: var(--black); color: var(--white); }
.svc__text { max-width: 700px; margin-top: 32px; color: var(--text-2); font-size: var(--fs-b16); line-height: var(--lh-body); }
.svc__more { display: flex; width: fit-content; margin-top: 32px; padding: 14px 24px; font-size: var(--fs-b16); }
.svc__more + .cases, .svc__more + .cases-nav, .svc__more + .cases-nav[hidden] + .cases { margin-top: 40px; }
/* «Подробнее» — в правом верхнем углу карточки, на уровне названия */
@media (min-width: 768px) {
  .svc { position: relative; }
  .svc__name { padding-right: 200px; }
  .svc__more { position: absolute; top: 32px; right: 32px; margin-top: 0; }
  .svc__more + .cases, .svc__more + .cases-nav, .svc__more + .cases-nav[hidden] + .cases { margin-top: 32px; }
}
@media (max-width: 767px) {
  .svc { padding: 20px 18px 24px; }
  .svc__name { font-size: 28px; margin-bottom: 20px; }
}
.svc .case__info, .svc .case__info .client { color: #fff; }

/* Блок «Простой текст»: обычный (не жирный) текст, серый или чёрный; можно поставить в правую колонку */
.cb-plain { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--col-gap); }
.cb-plain__text { grid-column: 1 / -1; max-width: 1000px; font-size: var(--fs-b16); line-height: var(--lh-body); font-weight: 400; color: var(--text-2); }
.cb-plain__text.is-black { color: var(--ink); }
.cb-plain--right .cb-plain__text { grid-column: 2; }
@media (max-width: 767px) { .cb-plain { grid-template-columns: 1fr; } .cb-plain--right .cb-plain__text { grid-column: 1; } }

/* ===== «Кейсы»: кейсы одной компании одним блоком ===== */
.pjg__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pjg--three .pjg__tiles { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pjg--three .pjg__tile:first-child { grid-row: 1 / 3; }
.pjg__tile { position: relative; display: block; border-radius: 5px; overflow: hidden; isolation: isolate; color: #fff; }
.pjg__tile .ph { height: 100%; aspect-ratio: 534 / 400; }
.pjg--three .pjg__tile:first-child .ph { position: absolute; inset: 0; aspect-ratio: auto; }   /* высоту задают две правые плитки */
.pjg--three .pjg__tile:not(:first-child) .ph { aspect-ratio: 534 / 400; }
.pjg__tile .ph::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(to bottom, rgba(23,23,23,0), rgba(23,23,23,.65)); pointer-events: none; }
.pjg__tile:hover img, .pjg__tile:hover .ph > video { transform: scale(1.04); }
.pjg__name { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-size: var(--fs-b16); line-height: var(--lh-body); }
.pjg--three .pjg__tile:first-child .pjg__name { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.pjg__count { color: var(--muted); margin-left: 4px; }
@media (max-width: 767px) {
  .pjg__tiles, .pjg--three .pjg__tiles { grid-template-columns: 1fr; grid-template-rows: none; }
  .pjg--three .pjg__tile:first-child { grid-row: auto; }
  .pjg--three .pjg__tile:first-child .ph { position: relative; aspect-ratio: 534 / 400; }
}

/* ===== Мобильная главная по макету (до 768px) ===== */
@media (max-width: 767px) {
  /* Проекты: одна картинка почти квадратная, две — друг под другом во всю ширину */
  .project__media > .ph { aspect-ratio: 1 / 1; }
  .project__media--duo { grid-template-columns: 1fr; }
  .project__media--duo > .ph { aspect-ratio: 5 / 4; }

  /* Услуги: кейсы лентой, листаются пальцем вбок, следующая карточка выглядывает справа */
  .cases {
    display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
  }
  .cases::-webkit-scrollbar { display: none; }
  .cases .case, .cases .case:last-child { flex: 0 0 78%; scroll-snap-align: start; }

}

/* Нижнее меню: панель тянется почти до верха экрана, чтобы пункты помещались без прокрутки */
@media (max-width: 1023px) {
  .mbar__panel { max-height: calc(100dvh - 104px - env(safe-area-inset-bottom)); }
}
@media (max-width: 1023px) and (max-height: 620px) {
  .mbar__panel { padding: 18px 20px 16px; }
  .mbar__nav a { font-size: 26px; }
  .mbar__label--line { margin-top: 16px; padding-top: 14px; }
  .mbar__deck { margin-top: 16px; }
}

/* ===== Планшет по макету (768–1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Услуги: три кейса в ряд, как на макете */
  .cases { grid-template-columns: repeat(3, 1fr); }
  .cases .case:last-child { display: block; }
}
@media (max-width: 1023px) {
  /* Подвал: сначала кнопки «Есть задача / Презентация» во всю ширину и соцсети, потом колонки ссылок */
  .footer__side { order: -1; }
  .footer__top { gap: 48px; }
  .cta-pair--wide { max-width: none; }
}

/* ===== Мобильная шапка по макету (до 1024px): белая карточка с отступами, закреплена сверху,
   бургер в серой плашке раскрывает меню такой же карточкой под ней ===== */
@media (max-width: 1023px) {
  body { padding-top: 80px; }
  /* шапка не закреплена: уезжает вместе со страницей; закрепляется, только пока открыто меню */
  .m-header {
    position: absolute;
    top: 12px; left: 12px; right: 12px; height: 56px; padding: 0 8px 0 16px;
    border-radius: 8px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.06);
  }
  .m-header.is-dark { background: rgba(34,34,34,.92); }
  .m-header .burger { display: block; width: 40px; height: 40px; border-radius: 6px; background: var(--black-5); transition: background-color .3s var(--ease); }
  .m-header.is-dark .burger { background: rgba(255,255,255,.12); }
  .m-header .burger span { left: 12px; right: 12px; }
  .m-header .burger span:nth-child(1) { top: 16px; }
  .m-header .burger span:nth-child(2) { top: 23px; }
  .menu-open .m-header .burger span:nth-child(1), .menu-open .m-header .burger span:nth-child(2) { top: 19.5px; }
  .menu-open .m-header { position: fixed; }
  /* градиент первого экрана заходит под шапку */
  .hero { margin-top: -80px; padding-top: calc(80px + var(--gutter)); }
  /* пока меню открыто, шапка белая и сливается с карточкой меню */
  .menu-open .m-header, .menu-open .m-header.is-dark { background: #fff; color: var(--ink); box-shadow: none; }
  .menu-open .m-header .burger { background: var(--black-5); }

  .sidebar-track { top: 12px; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .sidebar {
    inset: 0 0 auto; max-height: 100%; padding: 72px 16px 16px;
    border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.12);
  }
  .sidebar__nav { margin-top: 0; }
  .sidebar__nav a { display: flex; justify-content: space-between; font-size: 18px; line-height: 1.6; min-height: 0; }
  .sidebar__nav a .count { color: var(--muted); }
  .sidebar__bottom { padding-top: 24px; }
  .showreel { max-width: none; }

  /* нижнее меню: телефон и почта */
  .mbar__contacts { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 20px; line-height: 1.3; }
}

/* Кейсы: у команды без фото линий над именами нет */
.case-body:not(.case-body--cards):not(.post__body) .cb-team .cb-team__item { padding-top: 0; border-top: 0; }

/* Открытый кейс в стопке: своя заливка из админки и тёмный текст для светлого фона */
.cnav__item.is-current.is-filled { background: var(--nav-bg); }
.cnav__item.is-current.is-filled::before { display: none; }
.cnav__item.is-current.is-ink { color: var(--ink); }
.cnav__item.is-current.is-ink .cnav__text span { color: rgba(23, 23, 23, .6); }

/* Отзыв с подписью («Отзыв») после медиа отступает как текстовый блок, а не встаёт вплотную */
:is(.cs-image, .cs-gallery, .cs-video, .cs-embed) + .cs-review:has(.label) { padding-top: 80px; }
@media (max-width: 767px) { :is(.cs-image, .cs-gallery, .cs-video, .cs-embed) + .cs-review:has(.label) { padding-top: 48px; } }

/* Открытый кейс в стопке — не ссылка: без курсора-руки и без подсветки */
.cnav__item.is-current { cursor: default; }

/* Аватар с обводкой (галочка «Аватар: обводка» в кейсе): тонкая рамка поверх картинки,
   светлая на тёмном и цветном фоне, тёмная на светлых карточках стопки */
.cnav__ava.is-outlined, .client__ava.is-outlined { position: relative; }
.cnav__ava.is-outlined::after, .client__ava.is-outlined::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.cnav__item:not(.is-current) .cnav__ava.is-outlined::after,
.cnav__item.is-current.is-ink .cnav__ava.is-outlined::after { box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .14); }

/* Слайдер рядом с медиа в кейсе — отступ вдвое меньше обычного */
:is(.cs-image, .cs-gallery, .cs-video, .cs-embed) + .cs-slider,
.cs-slider + :is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-slider) { padding-top: 60px; }
@media (max-width: 767px) {
  :is(.cs-image, .cs-gallery, .cs-video, .cs-embed) + .cs-slider,
  .cs-slider + :is(.cs-image, .cs-gallery, .cs-video, .cs-embed, .cs-slider) { padding-top: 36px; }
}

/* Первый экран кейса залит цветом вместо картинки (поле «Страница кейса: цвет первого экрана») */
/* цвет задаётся прямо в style; текст, теги и ссылки — как на обложке с картинкой (.has-cover) */

/* Мобильный: все обложки кейсов 366×240; в сборнике названия одного размера */
@media (max-width: 767px) {
  .project__media > .ph, .project__media--duo > .ph,
  .pjg__tile .ph, .pjg--three .pjg__tile:first-child .ph, .pjg--three .pjg__tile:not(:first-child) .ph { aspect-ratio: 366 / 240; }
  .pjg--three .pjg__tile:first-child .pjg__name { font-size: var(--fs-b16); line-height: var(--lh-body); }
}

/* Планшет: обложки кейсов 736×376, сборники и пары — друг под другом во всю ширину */
@media (min-width: 768px) and (max-width: 1023px) {
  .project__media--duo, .pjg__tiles, .pjg--three .pjg__tiles { grid-template-columns: 1fr; grid-template-rows: none; }
  .pjg--three .pjg__tile:first-child { grid-row: auto; }
  .project__media > .ph, .project__media--duo > .ph,
  .pjg__tile .ph, .pjg--three .pjg__tile:not(:first-child) .ph { aspect-ratio: 736 / 376; }
  .pjg--three .pjg__tile:first-child .ph { position: relative; aspect-ratio: 736 / 376; }
  .pjg--three .pjg__tile:first-child .pjg__name { font-size: var(--fs-b16); line-height: var(--lh-body); }
}

/* ===== Внутренние страницы: хлебные крошки и заголовок «Название (N)» над линией ===== */
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 56px; font-size: var(--fs-b14); line-height: var(--lh-body); color: var(--muted); }
.crumbs a, .crumbs__sep { flex: none; color: var(--ink); }
.crumbs a { transition: opacity .2s; }
.crumbs a:hover { opacity: .6; }
.crumbs__cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs--tight { margin-bottom: 24px; }
.pjs, .svp, .blog, .svh, .ctc, .brf, .post, .case-hero { padding-top: 40px; }
.post__head { padding-top: 0; }
.pjs__head { align-items: baseline; margin-bottom: 24px; padding-bottom: 24px; }
.pjs__title, .pjs__count { max-width: none; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.pjs__count { color: var(--muted); }
.pjs__tags { justify-content: flex-start; max-width: none; margin-bottom: 24px; }
@media (max-width: 1023px) {
  .pjs, .svp, .blog, .svh, .ctc, .brf, .post, .case-hero { padding-top: 24px; }
}
@media (max-width: 767px) {
  .crumbs { margin-bottom: 32px; }
  .crumbs--tight { margin-bottom: 16px; }
  .pjs__title, .pjs__count { font-size: clamp(30px, 8.4vw, 40px); }
  .pjs__head { margin-bottom: 24px; padding-bottom: 16px; }
}

/* ===== Мобильная шапка: без плашки — логотип слева, справа «Начать проект» и бургер ===== */
@media (max-width: 1023px) {
  .m-header { left: 0; right: 0; padding: 0 var(--gutter); background: transparent; box-shadow: none; backdrop-filter: none; }
  .m-header.is-dark { background: transparent; }
  .m-header__right { display: flex; align-items: center; gap: 8px; }
  .m-header__cta {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 6px;
    border: 1px solid var(--black-10); background: rgba(255,255,255,.5);
    font-size: var(--fs-b16); line-height: 1; color: inherit; white-space: nowrap;
    transition: background-color .3s var(--ease), border-color .3s var(--ease);
  }
  .m-header__cta:hover { background: #fff; }
  .m-header.is-dark .m-header__cta { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
  /* меню открыто: шапка снова белая карточка поверх меню, кнопка проекта есть в самом меню */
  .menu-open .m-header { left: 12px; right: 12px; padding: 0 8px 0 16px; }
  .menu-open .m-header__cta { display: none; }
}

/* «Кейсы»: когда подгружать больше нечего, место под крутилку не держим — футер сразу после отступа секции */
.pjs__more:has(> .pjs__loader[hidden]) { display: none; }

/* Статья блога: текст от левого края и чёрный, подзаголовки на ступень меньше */
.post__body .cs-text__body { margin-left: 0; color: var(--ink); }
.post__body .cs-heading__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.post__body .cs-heading__title--h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
@media (max-width: 767px) {
  .post__body .cs-heading__title { font-size: 24px; }
  .post__body .cs-heading__title--h3 { font-size: 20px; }
}

/* Открытая статья в сайдбаре — не ссылка: без курсора-руки и без подсветки при наведении */
.spost .bpost.is-current { cursor: default; }
.spost .bpost.is-current:hover { background: var(--bg-page); }
.spost .bpost.is-current:hover .bpost__ph img { scale: 1; }

/* Сайдбар статьи: открытая плитка — светлая обводка, квадрат с минусом белый */
.spost .bpost.is-current { box-shadow: inset 0 0 0 1px var(--black-40); }
.spost .bpost.is-current .bpost__pm { background: var(--white); color: var(--ink); }

/* Статья: блоки плотнее (в 2,5 раза меньше, чем в кейсах), отзыв-цитата обычным крупным текстом без полей */
.post__body > .cs { padding-top: 48px; }
.post__body > .cs-heading + .cs { padding-top: 16px; }
.post__body > .cs:first-child { padding-top: 56px; }
.post__body .page__quote { margin: 0; font-size: var(--fs-h4); line-height: 1.35; letter-spacing: 0; }
@media (max-width: 1023px) {
  .post__body > .cs { padding-top: 32px; }
  .post__body > .cs-heading + .cs { padding-top: 12px; }
  .post__body > .cs:first-child { padding-top: 40px; }
  .post__body .page__quote { font-size: 20px; }
}

/* Статья: один отзыв — белая карточка по высоте текста, без пустого места под стопку */
.post__body .cb-deck__head { margin-bottom: 16px; }
.post__body .cb-deck__stack:has(> .cb-deck__card:only-child) { margin-right: 0; height: auto !important; }
.post__body .cb-deck__card:only-child { position: relative; height: auto; gap: 24px; padding: 28px 32px; background: var(--white); }
.post__body .cb-deck__card:only-child .cb-deck__text { display: block; font-size: 20px; }
@media (max-width: 767px) {
  .post__body .cb-deck__card:only-child { padding: 20px; }
  .post__body .cb-deck__card:only-child .cb-deck__text { font-size: 17px; }
}

/* Активный пункт меню: точка перед названием; на самой странице пункт не кликается */
.nav-dot { display: inline-block; flex: none; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.nav-label .nav-dot { margin-right: 0; }
.mbar__nav a .nav-dot { width: 8px; height: 8px; margin-right: 12px; }
a.is-current:not([href]) { cursor: default; }
a.is-current:not([href]):hover > .nav-label > .roll .roll__in,
.sidebar__dark a.is-current:not([href]).is-hover > .nav-label > .roll .roll__in { transform: none; }

/* Картинка или видео в «Цифрах проекта» и в «Плитках» (страница «Поддержка») */
.cb-stats--media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--col-gap); }
.cb-stats__media { aspect-ratio: 1812 / 936; margin-top: 12px; border-radius: var(--radius); background: #000; }
.cb-stats__media img, .cb-stats__media > video { object-fit: contain; }
.cb-cards__media { aspect-ratio: 4 / 3; margin-top: 24px; border-radius: var(--radius); }
.cb-cards__media img[src$=".svg"] { object-fit: contain; }
.cb-cards__media:has(img[src$=".svg"]) { aspect-ratio: 16 / 9; background: none; }
.cb-cards__item--media .cb-cards__title { padding-top: 24px; }
@media (max-width: 767px) {
  .cb-stats--media { grid-template-columns: 1fr; gap: 32px; }
}
/* Шторки на странице услуги стоят без плашки — отступ от плашки над ними */
.case-body--cards .cs-cards:has(.cb-panels) { padding-top: 48px; }
@media (max-width: 767px) { .case-body--cards .cs-cards:has(.cb-panels) { padding-top: 32px; } }

/* Низ контента перед футером — на одной линии с низом сайдбара (он заканчивается на --sec-gap выше футера) */
main > :is(.pjs, .svp, .svs-cases, .brf):last-child { padding-bottom: var(--sec-gap); }

/* Плашка раздела и картинка/видео сразу под ней — одна тема, одна белая подложка */
.case-body--cards > .cs:has(> .content > .cs__card:not(.cs__card--dark)):has(+ :is(.cs-image, .cs-video, .cs-gallery)) .cs__card { border-radius: var(--radius) var(--radius) 0 0; }
.case-body--cards > .cs:has(> .content > .cs__card:not(.cs__card--dark)) + :is(.cs-image, .cs-video, .cs-gallery) { padding-top: 0; }
.case-body--cards > .cs:has(> .content > .cs__card:not(.cs__card--dark)) + :is(.cs-image, .cs-video, .cs-gallery) > .content > * {
  position: relative; padding: 0 40px 40px;
}
/* белая подложка — на неподвижном контейнере, чтобы при появлении картинки она не «отрывалась» от текста */
.case-body--cards > .cs:has(> .content > .cs__card:not(.cs__card--dark)) + :is(.cs-image, .cs-video, .cs-gallery) > .content { position: relative; isolation: isolate; }
.case-body--cards > .cs:has(> .content > .cs__card:not(.cs__card--dark)) + :is(.cs-image, .cs-video, .cs-gallery) > .content::before {
  content: ''; position: absolute; z-index: -1; inset: 0 var(--gutter) 0 var(--content-left);
  border-radius: 0 0 var(--radius) var(--radius); background: var(--white);
}
@media (max-width: 767px) {
  .case-body--cards > .cs:has(> .content > .cs__card:not(.cs__card--dark)) + :is(.cs-image, .cs-video, .cs-gallery) > .content > * { padding: 0 18px 24px; }
}

/* Плашки услуг: подпись → заголовок → текст друг под другом.
   Без подписи заголовок плашки — главный; с подписью он меньше, вторичный. */
.cs__card > .cb-lead { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.cs__card > .cb-lead > .cb-lead__title { max-width: 900px; }
.cs__card > .cb-lead > .cb-lead__text { max-width: 720px; }
.cs__card > .label + .cb-lead { gap: 16px; }
.cs__card > .label + .cb-lead > .cb-lead__title { max-width: 720px; font-size: var(--fs-h4); line-height: 1.2; letter-spacing: 0; }
@media (max-width: 767px) {
  .cs__card > .cb-lead { gap: 20px; }
  .cs__card > .label + .cb-lead { gap: 12px; }
  .cs__card > .label + .cb-lead > .cb-lead__title { font-size: 20px; }
}

/* Этапы на плашках услуг: минималистичный список — номер, название, тонкая линия под строкой */
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) { gap: 0; }
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__item { border-radius: 0; background: none; border-bottom: 1px solid var(--black-10); }
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__head { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) 20px; gap: 24px; padding: 16px 0; }
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__icon {
  display: block; width: auto; height: auto; border-radius: 0; background: none;
  font-size: 20px; line-height: 1.3; color: var(--ink);
}
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__title { font-size: 20px; line-height: 1.3; }
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__plus { width: 20px; height: 20px; background: none; color: var(--muted); transition: color .3s var(--ease); }
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__head:hover .cb-acc__plus { background: none; color: var(--ink); }
.cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__body { padding: 0 44px 20px calc((100% - 68px) / 3.6 + 24px); }
@media (max-width: 767px) {
  .cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__head { grid-template-columns: 28px 1fr 20px; gap: 12px; padding: 14px 0; }
  .cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__icon,
  .cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__title { font-size: 17px; }
  .cs__card .cb-acc:not(:has(.cb-acc__get, .cb-acc__icon svg)) .cb-acc__body { padding: 0 0 18px 40px; }
}

/* Карточки «Что вы получите»: пиксельная заливка при наведении (рисует script.js) */
.cb-cards__item { position: relative; overflow: hidden; isolation: isolate; }
.cb-cards__px { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.cb-cards__item.is-px .cb-cards__title { color: var(--white); }
.cb-cards__item.is-px .cb-cards__text { color: var(--white-70); }
.cb-cards__item.is-px .cb-cards__n { color: var(--white-50); }
.cb-cards__item:has(> .cb-cards__px) :is(.cb-cards__title, .cb-cards__text, .cb-cards__n) { transition: color .3s var(--ease); }

/* Карточки, вид «Колонки»: без подложек, линия сверху и тонкие линии между колонками */
.cb-cards--cols { gap: 0; border-top: 1px solid var(--black-10); }
.cb-cards--cols > .cb-cards__item, .cs__card .cb-cards--cols > .cb-cards__item {
  min-height: 0; padding: 32px 32px 8px; border-radius: 0; background: none; border-left: 1px solid var(--black-10);
}
.cb-cards--cols > .cb-cards__item:first-child { border-left: 0; padding-left: 0; }
.cb-cards--cols .cb-cards__n { display: none; }
.cb-cards--cols .cb-cards__title { margin-top: 0; padding-top: 0; font-size: 20px; line-height: 1.3; }
.cb-cards--cols .cb-cards__text { margin-top: 10px; }
@media (max-width: 767px) {
  .cb-cards--cols > .cb-cards__item, .cs__card .cb-cards--cols > .cb-cards__item { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--black-10); }
  .cb-cards--cols > .cb-cards__item:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* «Соединить с блоком выше»: соседние разделы на одной белой плашке */
.case-body--cards > .cs:has(+ .cs--join) .cs__card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 32px; }
.case-body--cards > .cs--join { padding-top: 0; }
.case-body--cards > .cs--join .cs__card { border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 32px; }
@media (max-width: 767px) {
  .case-body--cards > .cs:has(+ .cs--join) .cs__card { padding-bottom: 20px; }
  .case-body--cards > .cs--join .cs__card { padding-top: 20px; }
}

/* Все 3D-иконки решений — мягкая матовая плитка: пастельный градиент, скруглённые грани,
   рассеянный свет, знак с мягкой тенью, размытая цветная тень под плиткой */
.i3d--finomo  { --t1: #8c95ff; --t2: #5562f2; --edge: #4450d6; --g: #fff;    --ge: #dfe2ff; --sh: rgba(40,48,140,.22); }
.i3d--recom   { --t1: #ff9a78; --t2: #f2593d; --edge: #d2422a; --g: #fff;    --ge: #ffd9cc; --sh: rgba(170,60,30,.22); }
.i3d--pimly   { --t1: #6a6a6a; --t2: #3a3a3a; --edge: #2c2c2c; --g: #fff;    --ge: #a8a8a8; --sh: rgba(0,0,0,.2); }
.i3d--alert   { --t1: #fff09a; --t2: #f7d44a; --edge: #ddb52c; --g: #4a4a4a; --ge: #9a8640; --sh: rgba(150,120,0,.22); }
.i3d--tryon   { --t1: #b34a63; --t2: #7e2239; --edge: #651a2c; --g: #fbf6f7; --ge: #d9b3bc; --sh: rgba(110,20,40,.22); }
.i3d--laymint { --t1: #ffffff; --t2: #dbe2fd; --edge: #b9c5f2; --g: #6a5ff2; --ge: #a9a3f6; --sh: rgba(70,80,170,.18); }
.i3d--sampler { --t1: #6a6a6a; --t2: #3a3a3a; --edge: #2c2c2c; --g: #fff;    --ge: #a8a8a8; --sh: rgba(0,0,0,.2); }
.i3d .i3d__edge, .i3d .i3d__face { border-radius: 18px; }
.i3d .i3d__edge { background: linear-gradient(160deg, color-mix(in srgb, var(--edge) 75%, #fff), var(--edge)); }
.i3d .i3d__face {
  background:
    radial-gradient(70% 55% at 28% 14%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(90% 70% at 78% 105%, color-mix(in srgb, var(--edge) 35%, transparent), transparent 70%),
    linear-gradient(160deg, var(--t1), var(--t2));
  box-shadow: inset 0 2px 3px rgba(255,255,255,.6), inset 0 -4px 10px color-mix(in srgb, var(--edge) 30%, transparent), inset 0 0 0 1px rgba(255,255,255,.12);
}
.i3d .i3d__layer { color: var(--ge); }
.i3d .i3d__layer:last-child {
  color: var(--g);
  filter: drop-shadow(0 1.5px 2px color-mix(in srgb, var(--edge) 45%, transparent)) drop-shadow(0 -0.5px 0 rgba(255,255,255,.7));
}
.i3d .i3d__shadow {
  left: 2%; right: 2%; bottom: -12px; height: 18px;
  background: radial-gradient(closest-side, var(--sh, rgba(0,0,0,.2)), transparent);
  filter: blur(5px);
}

/* Название кейса в карточке — до середины блока */
.project__title { max-width: 50%; }
@media (max-width: 767px) { .project__title { max-width: none; } }

/* Страница услуги: «Методы и инструменты» — белые карточки с рамкой, внутри список со стрелками, как на «Услугах» */
.svs-body .cb-tech { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.svs-body .cb-tech__group { padding: 28px; border: 1px solid var(--black-10); border-radius: var(--radius); background: var(--white); }
.svs-body .cb-tech__title { margin-bottom: 24px; font-size: 20px; line-height: 1.3; }
.svs-body .cb-tech__list { display: grid; gap: 12px; }
.svs-body .cb-tech__list li {
  display: flex; align-items: center; gap: 12px; padding: 0; border-radius: 0; background: none;
  color: var(--ink); font-size: var(--fs-b16); line-height: var(--lh-body);
}
.svs-body .cb-tech__list li::before {
  content: "→"; display: inline-grid; place-items: center;
  flex: none; width: 20px; height: 20px; border-radius: 3px; background: var(--black-5); color: var(--text-2); font-size: 13px; line-height: 1;
}
@media (max-width: 767px) { .svs-body .cb-tech__group { padding: 22px 18px; } }

/* «Другие услуги» после кейсов: идёт вплотную к кейсам, отступ снизу — у последнего блока */
.svs-cases:has(+ .svs-other) { padding-bottom: 0; }
.svs-other { padding-top: 96px; }
.svs-other__title { margin-bottom: 32px; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.svs-other .svc { background: var(--white); }
@media (max-width: 767px) { .svs-other { padding-top: 56px; } .svs-other__title { font-size: 28px; margin-bottom: 20px; } }

/* Списки подуслуг: если пунктов ровно 4 — по два в каждом столбике */
@media (min-width: 768px) { .arrow-list:has(> :nth-child(4):last-child) { grid-template-rows: repeat(2, auto); } }
/* Плитки на телефоне: с картинками (не иконками) — по две в ряд; только с заголовком — ниже */
@media (max-width: 767px) {
  .cb-cards:has(.cb-cards__media img:not([src$=".svg"])) { grid-template-columns: 1fr 1fr; }
  .cb-cards:has(.cb-cards__media img:not([src$=".svg"])) .cb-cards__item { min-height: 0; padding: 12px 12px 16px; }
  .cb-cards:has(.cb-cards__media img:not([src$=".svg"])) .cb-cards__media { margin-top: 12px; }
  .cb-cards:has(.cb-cards__media img:not([src$=".svg"])) .cb-cards__title { padding-top: 12px; font-size: var(--fs-b16); line-height: 1.25; }
  .cb-cards__item:not(.cb-cards__item--media):not(:has(.cb-cards__text)) { min-height: 112px; }
  .cb-cards__item:not(.cb-cards__item--media):not(:has(.cb-cards__text)) .cb-cards__title { padding-top: 24px; }
}
