/* Значения — из Figma (см. design-tokens.md). Внутри .scene-inner — пиксели макета 1920. */
:root {
  /* стилевой код иллюстраций — docs/style-code.md */
  --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.07));
  --glass-base: #1b2747;
  --glass-edge: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.1) 28%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.4));
  /* зернистость — растр того же SVG-шума (feTurbulence fractalNoise 0.9, 2 октавы, плитка 160px), отрисованный Chrome в 1x/2x:
     процедурный шум считался на GPU при каждой растеризации стекла и давал рывок ~250 мс, когда ноутбук входил в кадр.
     Исходник: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") */
  --glass-noise: image-set(url("assets/glass-noise.png") 1x, url("assets/glass-noise@2x.png") 2x);
  --glass-shadow: 0 30px 60px rgba(0, 4, 18, 0.35);
  --accent: #8fb4ff;
  --on-glass: #c9d6f7;
  --dark: #18233a;
  --gray: #8e939e; /* бренд-серый (Main/Gray): рамки, иконки, декор. Для ТЕКСТА — токены ниже (контраст) */
  --text-muted: #6b7080; /* вторичный текст на светлом фоне: 4.5+ на белом и #f3f6ff–#f5f5f5 */
  --text-muted-on-dark: #b8bdc8; /* вторичный текст на тёмном фоне и стекле: 4.5+ на #18233a и стекле карточек */
  --gray-200: #e9e9ea;
  --gray-300: #dcdcdf;
  --blue: #3e74ed;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  /* белый: в субпиксельных зазорах между закреплёнными секциями не просвечивает тёмная полоса
     (тёмные секции — hero, «Полный цикл», «Решения, в которых мы сильны» — со своим фоном) */
  background: var(--white);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Сцена ---------- */
.scene {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--dark);
}
/* до инициализации (GSAP + layout.json) сцена скрыта — без вспышки немасштабированного макета */
html:not([data-ready]) .scale-box { visibility: hidden; }
.scene-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 980px;
  transform-origin: 0 0; /* translate + scale ставит main.js */
}

/* ---------- Hero ---------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  padding: 24px 96px 0;
  z-index: 2;
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 12px 32px;
  border-radius: 500px;
  background: rgba(117, 117, 117, 0.29);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
}
.header__logo img { width: 51px; height: 34px; }
.header__right { display: flex; align-items: center; gap: 32px; height: 64px; }
.header__nav { display: flex; gap: 12px; }
.header__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 160px;
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.36px;
  white-space: nowrap;
}
.header__socials { display: flex; gap: 8px; }
.social {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray);
  border-radius: 500px;
}
.social__icn { position: absolute; }
.social__icn--tg { left: 20%; top: 21.25%; width: 60%; height: 57.5%; }
.social__icn--chat { left: 20%; top: 20%; width: 60%; height: 60%; }

.stage {
  will-change: opacity;
  position: absolute;
  left: 448px;
  top: 480.97px;
  width: 1024px;
  height: 720px;
  /* на старте контур полупрозрачный (как у Revolut), при скролле доходит до белого (main.js) */
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 32px;
  overflow: hidden;
}
.stage__glow {
  position: absolute;
  left: 671.59px;
  top: 216.53px;
  width: 352.41px;
  height: 344.85px;
}
.stage__glow img,
.card__glow img,
.card__glow-mid-ellipse img {
  position: absolute;
  max-width: none;
  width: 100%;
  height: 100%;
}
.stage__glow img { inset: -102.08% -99.89%; width: auto; height: auto; }

.hero-text { position: absolute; left: 128px; top: 212px; width: 1664px; }
.hero-text__title {
  position: absolute;
  top: 0;
  width: 1664px;
  color: var(--white);
  font-size: 98px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.96px;
}
.hero-text__lead {
  position: absolute;
  top: 328px; /* в Figma 280; опущено на 48px по просьбе — перенести в макет */
  width: 1664px;
  color: var(--gray-300);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.24px;
}
.btn {
  position: absolute;
  top: 494px; /* в Figma 406; опущена на 40 + 48px по просьбе — перенести в макет */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 119px;
  padding: 0 48px;
  border-radius: 32px;
  background: var(--blue);
  color: var(--white);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

/* ---------- Лист «Что мы делаем» ---------- */
/* Секция лежит сразу в финальной позиции; её белый фон (.sheet__bg) раскрывается из контура
   сцены hero через clip-path, а заголовок и карточки появляются поверх — не обрезаются. */
.sheet {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  padding: 100px 128px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  z-index: 1;
  pointer-events: none; /* невидимая секция не перекрывает кнопки hero */
}
.sheet__title, .card { pointer-events: auto; }
.sheet__bg {
  position: absolute;
  left: -1000px; /* шире макета на 1000px с каждой стороны — в конце фон раскрывается на всю ширину окна (main.js) */
  top: 0;
  width: 3920px;
  height: 2400px; /* закрывает экран при любом соотношении сторон */
  background: var(--white);
  border-radius: 48px 48px 0 0;
  z-index: -1;
}
.sheet__title {
  color: var(--dark);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.2px;
}
.cards { display: flex; gap: 24px; align-items: stretch; pointer-events: none; }
.card {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  height: 546px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 33px; /* 32 + рамка 1px */
  isolation: isolate;
}
.card::before { /* фон/рамка/тень отдельным слоем — у средней карточки проявляется в финале (--frame) */
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(62, 116, 237, 0.04);
  border-radius: 28px;
  background: linear-gradient(to bottom, #f3f6ff, #fff);
  box-shadow: 0 6px 18px rgba(24, 35, 58, 0.06);
  opacity: var(--frame, 1);
  z-index: -1;
}
.card--left { gap: 24px; }
.card--mid, .card--right { justify-content: space-between; }

.card__img {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 219px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(to right, #1c2b57, #0d1424);
}
.card__glow { position: absolute; left: 258.86px; top: 20.49px; width: 300px; height: 220px; }
.card__glow img { inset: -36.36% -26.67%; width: auto; height: auto; }
.card__glow-mid { position: absolute; left: 123.33px; top: -54.55px; width: 258.27px; height: 328.1px; }
.card__glow-mid-ellipse { position: absolute; left: 99.36px; top: 10.92px; width: 352.41px; height: 344.85px; }
.card__glow-mid-ellipse img { inset: -102.08% -99.89%; width: auto; height: auto; }
.card__pic { position: absolute; left: 83.8px; top: 0; width: 305.07px; height: 305.07px; object-fit: cover; }

.card__body { position: relative; width: 100%; display: flex; flex-direction: column; }
.card__body--gap { flex: 1 0 0; gap: 24px; }
.card__body--between { flex: 1 0 0; justify-content: space-between; padding-top: 24px; }
.card__body--tags { gap: 22px; padding-top: 24px; }
.card__title {
  color: var(--dark);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.32px;
  text-align: center;
}
/* ---------- Теги услуг: ссылки на addamant.ru ----------
   Только токены ДС Адаманта: Main/Dark #18233A, Main/White, System/Gray 100/200/300, --text-muted. Без синего и без стекла.
   Вариант ховера выбирается ОДНИМ классом на .cards: tagfx-d (рамка navy + стрелка ↗), tagfx-e (инверсия в navy),
   tagfx-f (серая заливка Gray 200 + стрелка ↗), tagfx-g (подчёркивание-ссылка).
   Анимируются только transform / opacity / color / clip-path / border-color. */
.tags { display: flex; flex-wrap: wrap; gap: 6px; --tag-ease: cubic-bezier(0.23, 1, 0.32, 1); }
.tags > li { position: relative; }
.tag {
  display: flex;
  align-items: center;
  height: 55px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  color: var(--dark);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.36px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate; /* слои ховера — под текстом, но над белым фоном тега */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s var(--tag-ease), color 0.2s var(--tag-ease), transform 0.16s var(--tag-ease);
}
.tag::before, .tag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tag::before, .tag::after { z-index: -1; opacity: 0; transition: opacity 0.2s ease-out, transform 0.22s var(--tag-ease), clip-path 0.22s var(--tag-ease); }
.tag__arrow { /* ↗ в правом верхнем углу: не двигает текст и не меняет ширину тега */
  position: absolute; top: 6px; right: 6px;
  color: var(--dark);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.18s ease-out, transform 0.22s var(--tag-ease);
  pointer-events: none;
}
.tag__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tag:active { transform: scale(0.97); }

/* D. Chips hover из ДС: рамка Gray 200 → Main/Dark, фон и текст не меняются; тонкая стрелка ↗ проявляется */
/* E. Инверсия как у кнопок gray / small white: фон Main/Dark, текст Main/White; заливка поднимается снизу,
      белая копия текста (::after, attr(data-text)) открывается тем же clip-path на той же границе */
.tagfx-e .tag::before { opacity: 1; background: var(--dark); transform: translateY(100%); }
.tagfx-e .tag::after {
  content: attr(data-text) / ""; z-index: 1; opacity: 1;
  display: flex; align-items: center; padding: 16px; /* те же поля, что у тега: копия ложится точно на текст */
  color: var(--white); clip-path: inset(100% 0 0 0);
}
.tagfx-e .tag__arrow, .tagfx-g .tag__arrow { display: none; }
/* F. Как кнопка small gray: фон Gray 200 (#E9E9EA) проявляется под текстом Main/Dark, стрелка ↗ */
.tagfx-f .tag::before { background: var(--gray-200); }
/* G. Подчёркивание-ссылка: линия Main/Dark прорисовывается слева направо под текстом, уходит вправо; рамка Gray 200 → Gray 300 */
.tagfx-g .tag::before {
  inset: auto 16px 11px 16px; height: 1px; border-radius: 1px; opacity: 1;
  background: var(--dark); transform: scaleX(0); transform-origin: right center;
}

@media (hover: hover) and (pointer: fine) {
  .tagfx-d .tag:is(:hover, :focus-visible) { border-color: var(--dark); }
  .tagfx-d .tag:is(:hover, :focus-visible) .tag__arrow, .tagfx-f .tag:is(:hover, :focus-visible) .tag__arrow { opacity: 1; transform: none; }

  .tagfx-e .tag:is(:hover, :focus-visible) { border-color: var(--dark); }
  .tagfx-e .tag:is(:hover, :focus-visible)::before { transform: translateY(0); }
  .tagfx-e .tag:is(:hover, :focus-visible)::after { clip-path: inset(0); }

  .tagfx-f .tag:is(:hover, :focus-visible)::before { opacity: 1; }

  .tagfx-g .tag:is(:hover, :focus-visible) { border-color: var(--gray-300); }
  .tagfx-g .tag:is(:hover, :focus-visible)::before { transform: scaleX(1); transform-origin: left center; }
}

@media (prefers-reduced-motion: reduce) { /* без движения: только плавное проявление цвета и прозрачности */
  .tag__arrow { transform: none; }
  .tag:active { transform: none; }
  .tagfx-e .tag::before, .tagfx-g .tag::before { transform: none; opacity: 0; }
  .tagfx-e .tag::after { clip-path: none; opacity: 0; }
  .tagfx-e .tag:is(:hover, :focus-visible)::before, .tagfx-e .tag:is(:hover, :focus-visible)::after,
  .tagfx-g .tag:is(:hover, :focus-visible)::before { opacity: 1; }
}
.card__note {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--gray-200); /* Figma 412:3124 */
  border-radius: 16px;
  background: var(--white);
}
.card__emoji {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #f5f5f5;
  font-size: 28px;
  line-height: 1.2;
}
.card__note p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.32px;
}

/* ---------- Фрагменты ---------- */
.frags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* снизу не режем (на окнах выше макета фрагменты hero видны целиком), по бокам — по краю сцены; в финале — по слоту */
  clip-path: inset(0px 0px -1000px 0px round 0px);
}
/* слои картинок боковых карточек: срез только по низу слота, с мягким краем (main.js) */
.frags[data-slot] {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--cut) - var(--fade)), transparent var(--cut));
  mask-image: linear-gradient(to bottom, #000 calc(var(--cut) - var(--fade)), transparent var(--cut));
}
.frag {
  position: absolute;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.frag img {
  position: absolute;
  max-width: none;
}

/* ---------- «Почему нам доверяют» (412:3218) ---------- */
/* Экран закрепляется (js/why.js); внутри — макет 1920×980, масштабируется как сцена выше. */
.why, .pin-spacer:has(> .why) {
  --why-bg: #eef1f7;     /* фон секции: холодный светлый, без свечения */
  --why-bg-end: #dde6f9; /* низ секции: уход в бренд-синий перед тёмным блоком */
}
.why {
  position: relative;
  z-index: 1;
  clip-path: inset(0 0 -100vh 0); /* сверху режем по краю секции, вниз — не режем */
  height: 100vh;
  overflow-x: clip; /* по горизонтали режем (без горизонтального скролла), вниз — нет, как в макете */
  overflow-y: visible;
  /* верх секции начинается в цвет низа «Кейсов» (#f4f6fa) и за 220px уходит в #eef1f7 — стык без линии */
  background:
    linear-gradient(to bottom, #f4f6fa 0, #f3f5fa 20%, #f2f4f9 40%, #f0f3f8 60%, #eff2f7 80%, var(--why-bg) 100%) top / 100% 220px no-repeat,
    var(--why-bg);
}
/* то же при закреплении: pin-spacer ScrollTrigger шире самой секции — за ним не должен проступать белый body */
.pin-spacer:has(> .why) { background: var(--why-bg); }
/* низ секции: мягкий вертикальный переход к тёмному «Полному циклу» (вариант A), под карточками */
.why::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(300px * var(--s, 1));
  background: linear-gradient(to bottom, rgba(221, 230, 249, 0), var(--why-bg-end));
  pointer-events: none;
}
/* без анимации (reduced-motion, кадры ?p/?c): карточки стоят по макету — высота секции 412:3218 */
.why--static { height: calc(1567px * var(--s, 1)); }
.why--static .why__inner { height: 1567px; }
.why__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 980px;
  transform-origin: 0 0;
}
.why__title {
  position: absolute;
  left: 128px;
  top: 100px;
  width: 555px;
  color: var(--dark);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.2px;
}
.why__col { position: absolute; inset: 0; }
.why-card {
  position: absolute; /* top — из Figma, в разметке */
  left: 811px;
  width: 981px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 33px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  background: linear-gradient(to bottom, #fff, #f6f9ff);
  box-shadow: 0 1px 2px rgba(24, 35, 58, 0.04), 0 14px 36px rgba(24, 35, 58, 0.07);
}
.why-card__num { color: var(--text-muted); font-size: 18px; line-height: 1.3; }
.why-card__title {
  margin-bottom: 0;
  color: var(--dark);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.24px;
}
.why-card__text { color: var(--text-muted); font-size: 18px; line-height: 1.3; letter-spacing: -0.108px; }
.why-card__text--gray { color: var(--text-muted); letter-spacing: 0; }


/* Lenis: рекомендованные стили */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Микровзаимодействие «Связаться»: за фоном кнопки у курсора — очень мягкое синее свечение,
   сама кнопка едва заметно темнеет — свечение читается глубже. Без transform: он создал бы
   контекст наложения, и свечение оказалось бы поверх кнопки, а не за ней. */
.btn { transition: background-color 0.35s ease; }
.btn::before {
  content: "";
  position: absolute;
  inset: -70px;
  z-index: -1; /* за фоном кнопки */
  border-radius: 80px;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 116, 237, 0.55), rgba(62, 116, 237, 0.18) 45%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.btn:hover { background: #3768d6; }
.btn:hover::before { opacity: 1; }
.btn:active { background: #3360c8; }
.btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.85); outline-offset: 4px; }

/* ---------- «Полный цикл разработки» (412:3261): автослайдер ---------- */
/* Обычный поток страницы; макет 1920×970 масштабируется (--s ставит main.js). */
.cycle {
  position: relative;
  z-index: 3; /* наезжает на закреплённый блок отраслей */
  height: 100vh; /* на всю высоту экрана; макет 1920×1080 вписывается и центрируется (main.js) */
  overflow-x: clip;   /* без горизонтального скролла от масштабированного макета */
  overflow-y: visible; /* тень над верхним краем выходит на блок отраслей */
  --side: 0px;   /* боковой отступ фона: 128px·s внизу экрана → 0 к середине (js/main.js) */
  --shade: 0;    /* сила затенения блока отраслей */
}
/* тёмный фон: сужен на --side с боков, скругление сверху; мягкая тень над верхним краем */
.cycle__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--side);
  right: var(--side);
  background: var(--dark);
  border-radius: calc(48px * var(--s, 1)) calc(48px * var(--s, 1)) 0 0;
  /* мягкая тень по краю наезда (как в макете mock-why): малый вынос и радиус, без серой дымки над кромкой */
  box-shadow: 0 calc(-16px * var(--s, 1)) calc(56px * var(--s, 1)) rgba(24, 35, 58, calc(0.1 * var(--shade)));
}
/* затенение блока отраслей над наезжающим блоком: глубина и эффект наложения */
.cycle__shade {
  /* только мягкая тень у кромки наезжающего блока (глубина), без серой заливки всей секции выше;
     вниз — под весь блок, чтобы боковые зазоры суженного фона были в той же тени (без резкой линии) */
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-260px * var(--s, 1));
  bottom: 0;
  /* синий тон фона секции, а не тёмный navy: на светлом #EEF1F7 тёмная заливка даёт мутно-серый */
  background: linear-gradient(to bottom, rgba(47, 98, 219, 0) 0, rgba(47, 98, 219, 0.02) calc(150px * var(--s, 1)),
    rgba(47, 98, 219, 0.06) calc(260px * var(--s, 1)), rgba(47, 98, 219, 0.06));
  opacity: var(--shade);
  pointer-events: none;
}
.cycle__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px; /* секция 412:3261 */
  transform-origin: 0 0;
  overflow: hidden;
}
.cycle__slide { position: absolute; inset: 0; }
.cycle__text {
  position: absolute;
  top: 100px;
  left: 0;
  width: 1920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: var(--white);
  text-align: center;
}
.cycle__title { font-size: 60px; font-weight: 500; line-height: 1.1; letter-spacing: -1.2px; }
.cycle__lead { font-size: 42px; font-weight: 400; line-height: 1.1; letter-spacing: -0.42px; color: var(--gray-300); /* System/Gray/Gray 300, как в макете */ }
.cycle__media { /* 460:3381 / 461:3488: 1007.3×542, по центру; от текста 128px (было 64 по макету) */
  position: absolute;
  left: 456.4px;
  top: 410px;
  width: 1007.3px;
  height: 542px;
}
.cycle__media--placeholder {
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(44, 60, 102, 0.9), rgba(12, 20, 40, 0.96));
  box-shadow: inset 0 0 0 2px rgba(159, 184, 255, 0.18);
}
.chart { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__val { fill: #ffffff; /* прозрачность 86% — атрибут fill-opacity */ font-size: 40px; font-weight: 500; letter-spacing: -0.4px; font-family: "Manrope", sans-serif; }
.chart__dot, .chart__tip { opacity: 0; } /* показывает js/cycle.js */
/* индикатор 481:2339: стеклянные «пилюли» 35×8, текущая — 100px с синим прогрессом */
.cycle__bars {
  position: absolute;
  left: 0;
  top: 1024px; /* 48px от низа экрана (1080 − 48 − 8) */
  width: 1920px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.cycle__bar {
  position: relative;
  width: 35px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: var(--dark);
  box-shadow:
    inset 0 4.73px 10.88px rgba(160, 182, 255, 0.35),
    inset 0 0 18.92px rgba(0, 0, 0, 0.25),
    0 0 28px rgba(33, 115, 255, 0.28);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cycle__bar.is-active { width: 100px; }
.cycle__bar span { /* прогресс текущего слайда; ширину ведёт js/cycle.js */
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 32px;
  background: var(--blue);
}
.cycle__bar:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 4px; }

/* круговая диаграмма (слайд 2, по картинке 461:3488): идёт фоном к тексту — мягкие тона, низкий контраст */
.donut { display: block; width: 100%; height: 100%; overflow: visible; font-family: "Manrope", sans-serif; opacity: 0.88; }
.donut__head { fill: #b9c7ea; fill-opacity: 0.55; font-size: 36px; font-weight: 500; letter-spacing: -0.4px; }
.donut__val { fill: #e3eaff; fill-opacity: 0.8; font-size: 48px; font-weight: 500; letter-spacing: -1px; }
.donut__cap { fill: #b9c7ea; fill-opacity: 0.5; font-size: 21px; }
.donut__row { fill: #b9c7ea; fill-opacity: 0.62; font-size: 28px; }
.donut__num { fill: #e3eaff; fill-opacity: 0.72; font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: fill 0.4s ease, fill-opacity 0.4s ease; }
.donut__num.is-tick { fill: #b8cdfb; fill-opacity: 0.9; }
.donut__bars { opacity: 0.7; }

/* 3D-ноутбук (слайд 3): крышка с экраном и корпус в перспективе, без подложки */
.laptop {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 900px;
  height: 540px;
  transform: translateX(-50%);
  perspective: 1800px;
  perspective-origin: 50% 10%;
  transform-style: preserve-3d;
  opacity: 0.92; /* идёт фоном к тексту */
}
.laptop > * { transform-style: preserve-3d; }
.laptop__lid, .laptop__base { will-change: transform; }
.laptop__lid {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 0;
  height: 440px;
  padding: 16px;
  border-radius: 24px 24px 10px 10px;
  /* материал — .glass.glass--solid (класс в разметке) */
  transform: rotateX(4deg);
  transform-origin: 50% 100%;
}
.laptop__screen {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, #13213f 0%, #0a1226 60%, #070d1c 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(62, 116, 237, 0.12);
}
.laptop__glare { /* отражение на стекле экрана */
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 32%, transparent 33%);
  pointer-events: none;
}
.laptop__base { /* корпус с клавиатурной частью, наклонён к зрителю */
  position: absolute;
  left: 0;
  right: 0;
  top: 434px;
  height: 64px;
  border-radius: 6px 6px 26px 26px;
  background: var(--glass-fill), var(--glass-base);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 6px rgba(0, 0, 0, 0.4);
  transform: rotateX(62deg);
  transform-origin: 50% 0%;
}
.laptop__notch { position: absolute; left: 50%; top: 0; width: 120px; height: 8px; transform: translateX(-50%);
  border-radius: 0 0 10px 10px; background: rgba(8, 12, 26, 0.55); }
.laptop__shadow { position: absolute; left: 6%; right: 6%; top: 470px; height: 40px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 4, 16, 0.55), transparent); filter: blur(6px); }

.code { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace; }
.code__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.code__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(201, 214, 247, 0.25); }
.code__tab { margin-left: 14px; padding: 4px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06);
  color: rgba(201, 214, 247, 0.7); font-size: 15px; }
.code__body { flex: 1; margin: 0; padding: 20px 20px; font-size: 15.5px; line-height: 1.6; color: #c9d6f7; white-space: pre; overflow: hidden; }
.code__ln { display: inline-block; width: 2.2em; margin-right: 1em; text-align: right; color: rgba(201, 214, 247, 0.25); }
/* подсветка кода — только оттенки брендбука: серый #8E939E и синие между #3E74ED и #D8E3FB */
.tk-c { color: #8e939e; font-style: italic; }   /* комментарий */
.tk-k { color: #6f98f4; }                       /* ключевое слово */
.tk-n { color: #d8e3fb; }                       /* число */
.tk-f { color: #8babf4; }                       /* вызов/имя функции */
.tk-p { color: #b1c7f8; }                       /* пунктуация */
.code__caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: #9fc0ff; }
.code__caret.is-blink { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* 3D-карусель документов (слайд 4): кольцо 8 карточек, радиус задаёт js/cycle.js; в прямоугольнике 1007×542 */
.carousel {
  position: absolute;
  inset: 0;
  perspective: 1900px;
  perspective-origin: 50% 31%; /* глаз на уровне середины карточек (40 + 130 из 542) — кольцо без наклона */
}
.carousel__ring {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.doc {
  position: absolute;
  left: -100px;
  top: 0;
  width: 200px;
  height: 260px;
  transform-style: preserve-3d;
  --t: 26px; /* толщина «плиты» */
}
.doc__face, .doc__back {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  backface-visibility: hidden;
}
/* лицо: стекло .glass.glass--solid (непрозрачная подложка — карточки стоят в 3D друг за другом) */
.doc__face { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; overflow: hidden; }
.doc__face > * { position: relative; z-index: 1; }
.doc__back {
  transform: translateZ(calc(-1 * var(--t))) rotateY(180deg);
  background: var(--glass-fill), var(--glass-base);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.doc__title { position: relative; margin-bottom: 4px; color: #c9d6f7; opacity: 0.9; font-size: 24px; font-weight: 500; letter-spacing: -0.3px; }
.doc__bar { position: relative; display: block; height: 9px; border-radius: 6px; background: rgba(159, 184, 255, 0.18); }
.doc__bar--head { width: 70%; height: 15px; margin-bottom: 8px; background: rgba(159, 184, 255, 0.3); }
.doc__bar--short { width: 60%; }
.doc__sign {
  position: relative;
  margin-top: auto;
  align-self: flex-end;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(143, 180, 255, 0.5);
  box-shadow: inset 0 0 0 6px rgba(143, 180, 255, 0.1), 0 0 14px rgba(93, 140, 255, 0.25);
}
.carousel__floor { /* мягкая тень под кольцом (не свечение) */
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 6px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 3, 12, 0.55), rgba(0, 3, 12, 0.18) 55%, transparent 75%);
  filter: blur(14px);
}

/* объёмное кольцо диаграммы (слайд 2): фронтально, объём — SVG-освещением */
.ring3d {
  position: absolute;
  left: 35px;   /* центр = (275, 296) — место бывшего плоского кольца */
  top: 56px;
  width: 480px;
  height: 480px;
  --cx: 50%;
  --cy: 50%;
  opacity: 0.92;
}
.ring3d__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring3d__label {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  font-family: "Manrope", sans-serif;
}
.ring3d__val { color: #e3eaff; opacity: 0.8; font-size: 40px; font-weight: 500; letter-spacing: -0.8px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring3d__cap { margin-top: 6px; color: #b9c7ea; opacity: 0.55; font-size: 17px; }

/* ---------- «Кейсы» (496:2632): макет 1920×1073 вписан в экран; ряд карточек едет влево (main.js) ---------- */
.cases {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  background: var(--white);
}
/* низ секции плавно уходит из белого в #f4f6fa; «Отрасли» начинаются с того же цвета (см. .why) — стык без линии.
   Слой — сама секция (не лента и не pin-spacer): стоит у низа экрана, пока кейсы закреплены, под карточками и подписями.
   Конец — не #eef1f7: подписи кейсов (--text-muted) стоят у самого низа, на #f4f6fa их контраст 4.5+ */
.cases::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(220px, 28vh, 360px);
  background: linear-gradient(to bottom, rgba(244, 246, 250, 0) 0, rgba(244, 246, 250, 0.104) 20%, rgba(244, 246, 250, 0.352) 40%,
    rgba(244, 246, 250, 0.648) 60%, rgba(244, 246, 250, 0.896) 80%, #f4f6fa 100%);
  pointer-events: none;
}
.cases__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1073px;
  transform-origin: 0 0;
}
.cases__title {
  position: absolute;
  left: 128px;
  top: 100px;
  color: var(--dark);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.2px;
}
.cases__viewport { position: absolute; left: 128px; top: 230px; width: 1792px; height: 743px; } /* справа — до края экрана */
.cases__list { display: flex; gap: 12px; will-change: transform; }
.case { flex: 0 0 546.67px; display: flex; flex-direction: column; gap: 32px; }
.case__img { height: 550px; border-radius: 32px; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__title { margin-bottom: -16px; color: var(--dark); font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.32px; }
.case__client { color: var(--text-muted); font-size: 24px; line-height: 1.3; letter-spacing: -0.24px; }

/* ---------- «Решения, в которых мы особенно сильны» (412:3363 -> 496:2381) ---------- */
.strong { position: relative; z-index: 4; height: 100vh; overflow: hidden; background: var(--dark); }
.strong__inner { position: absolute; top: 0; left: 0; width: 1920px; height: 852px; transform-origin: 0 0; padding: 100px 128px; }
.strong__title { color: var(--white); font-size: 60px; font-weight: 500; line-height: 1.1; letter-spacing: -1.2px; }
.strong__row { display: flex; gap: 12px; width: 1664px; height: 522px; margin-top: 64px; }
/* ширины колонок ведёт js/strong.js: старт 826 | 0 | 826 -> финал 546.67 x3 */
.sc { position: relative; overflow: hidden; border-radius: 32px; }
.sc--b24 { flex: none; width: 826px; display: flex; flex-direction: column; gap: 48px; background: rgba(255, 255, 255, 0.86); border: 1px solid var(--gray-300); }
.sc--lms { flex: none; width: 826px; }
/* режем только по бокам (растущая ширина; в конце бока открывает js/strong.js), сверху и снизу — нет:
   обрезанные тени карточек давали светлый прямоугольник с острыми углами */
.strong__mid { flex: none; width: 0; margin-right: -12px; display: flex; flex-direction: column; gap: 12px; clip-path: inset(-160px 0px -160px 0px); }
.sc--small { flex: 1 0 0; width: 546.67px; padding: 32px; display: flex; flex-direction: column; gap: 48px; }
.sc__title { padding: 32px 32px 0; color: var(--white); font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.32px; }
.sc__title--dark { color: var(--dark); }
.sc__sub { position: relative; color: var(--white); font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.24px; }
.sc__text { position: relative; color: var(--text-muted-on-dark); font-size: 18px; line-height: 1.3; }
.sc__text--light { color: var(--gray-200); }
.sc__text--lms { margin-top: 48px; padding: 0 32px; color: var(--gray-300); white-space: nowrap; }
.sc__inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 32px;
  margin: 0 -1px -1px; border: 1px solid var(--gray-300); border-radius: 32px; background: var(--dark); overflow: hidden; }
.sc__wire { position: absolute; left: var(--wire-x, 294.43px); top: -12.48px; width: 303px; height: 480.8px; }
.sc__wire img { position: absolute; left: 50%; top: 50%; width: 480.8px; height: 303px; transform: translate(-50%, -50%) rotate(90deg); }
.b24logo { position: relative; width: 195px; height: 35px; }
.b24logo img { position: absolute; }
.sc__foot { position: relative; display: flex; flex-direction: column; gap: 16px; }
.sc__cap { position: absolute; left: var(--cap-x, 100.74px); top: 118.19px; width: 459.77px; height: 459.77px; pointer-events: none; }
.sc__cap img { position: absolute; left: 50%; top: 50%; width: 390.61px; height: 390.61px; transform: translate(-50%, -50%) rotate(11.34deg); }

/* шапка зафиксирована сверху на всей странице; масштаб — как у макета (main.js), подложка с блюром,
   чтобы белые пункты меню читались и на белых секциях */
.site-header { position: fixed; top: 0; left: 0; z-index: 100; width: 1920px; transform-origin: 0 0; pointer-events: none; }
.site-header .header { position: relative; pointer-events: auto; }
.site-header .header__bar {
  /* без backdrop-filter: размытие под фиксированной шапкой пересчитывалось на каждом кадре прокрутки
     поверх анимированных фрагментов и давало рывки; плотная подложка читается так же */
  background: rgba(24, 35, 58, 0.86);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(159, 184, 255, 0.12);
}

/* стекло карточек «LMS» и двух средних — класс .glass; свет за ними — .strong__glow */
.strong__glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }
/* свет приглушённый и ближе к нейтральному синему (docs/style-code.md) */
.strong__glow--a { left: 760px; top: 330px; width: 520px; height: 380px; background: rgba(64, 96, 170, 0.3); }
.strong__glow--b { left: 1380px; top: 520px; width: 460px; height: 340px; background: rgba(60, 88, 160, 0.24); }
.strong__glow--c { left: 1180px; top: 210px; width: 320px; height: 240px; background: rgba(110, 140, 210, 0.18); }
.sc--lms > *, .sc--small > * { position: relative; z-index: 1; }
.sc--lms > .sc__cap { position: absolute; }

/* ===== стекло — единый материал (docs/style-code.md) ===== */
/* position — через :where (нулевая специфичность): не перебивает absolute у крышки ноутбука и карточек карусели */
:where(.glass) { position: relative; }
.glass { background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.glass--solid { background: var(--glass-fill), var(--glass-base); }
.glass::before { /* зернистость */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background-image: var(--glass-noise); opacity: 0.08;
}
.glass::after { /* кромка со светлыми углами */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  padding: 1.5px; background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* свет за стеклом: размытые пятна (вместо backdrop-filter — тот пересчитывается при движении) */
.glow-blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }

/* подложки стекла в слайдере: размер и скругление карточек из картинок Figma */
.chart-glass { position: absolute; left: 28.96px; top: 18.6px; width: 943.2px; height: 504.7px; border-radius: 35px; }
.donut-glass { position: absolute; left: 14px; top: 14px; width: 980px; height: 514px; border-radius: 36px; }
.cycle__media > svg { position: relative; z-index: 1; }

.cycle__glow--a { left: 640px; top: 520px; width: 640px; height: 360px; background: rgba(64, 96, 170, 0.26); }
.cycle__glow--b { left: 1180px; top: 400px; width: 360px; height: 260px; background: rgba(110, 140, 210, 0.16); }

/* шапка-хамелеон: над светлыми блоками — светлая с тёмными пунктами, над тёмными — тёмная (main.js ставит .is-light) */
.header__logo { position: relative; display: block; width: 51px; height: 34px; }
.header__logo img { position: absolute; inset: 0; transition: opacity 0.35s ease; }
.header__logo-dark { opacity: 0; }
.site-header .header__bar { transition: background-color 0.35s ease, box-shadow 0.35s ease; }
.site-header .header__nav a { transition: color 0.35s ease; }
.site-header.is-light .header__bar {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 25px rgba(24, 35, 58, 0.08), inset 0 0 0 1px rgba(24, 35, 58, 0.08);
}
.site-header.is-light .header__nav a { color: var(--dark); }
.site-header.is-light .header__logo-light { opacity: 0; }
.site-header.is-light .header__logo-dark { opacity: 1; }
.site-header.is-light .social { border-color: var(--gray-300); }

/* ---------- CTA (467:3733): макет 1920×860, вписан под шапку (main.js); иконки — js/cta.js ---------- */
.cta { position: relative; z-index: 5; height: 100vh; overflow: hidden; background: var(--dark); }
.cta__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 860px;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 128px 100px;
}
/* свечение за текстом: эллипс 581×401 с blur 175 (svg с запасом под размытие), перевёрнут — ярче сверху */
.cta__ellipse { position: absolute; left: 319.4px; top: -8.44px; width: 1281.25px; height: 1101.15px; max-width: none; rotate: 180deg; pointer-events: none; }
.cta__ico { position: absolute; display: flex; align-items: center; justify-content: center; will-change: transform; pointer-events: none; }
.cta__ico > img { width: 100%; height: 100%; }
.cta__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 48px; width: 100%; color: var(--white); text-align: center; }
.cta__kicker { font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.24px; }
.cta__lead { font-size: 42px; font-weight: 500; line-height: 1.1; letter-spacing: -0.42px; }
.cta__socials { display: flex; gap: 32px; list-style: none; }
.cta__social { display: flex; align-items: center; gap: 12px; color: var(--gray-300); font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.24px; transition: color 0.3s ease; }
.cta__social:hover { color: var(--white); }
.cta__social-icn { position: relative; flex: none; width: 48px; height: 48px; border-radius: 500px; background: var(--blue); transition: background-color 0.3s ease; }
.cta__social-icn--plain { background: none; }
.cta__social-icn img { position: absolute; width: auto; height: auto; }
.cta__social:hover .cta__social-icn:not(.cta__social-icn--plain) { background: #3768d6; }
.cta__or { color: var(--gray-200); font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.24px; }
/* кнопка 467:3760 button_row_main: синяя, как в hero (цвета и свечение у курсора — общий .btn); размеры — из макета */
.btn.btn--cta { position: relative; top: auto; height: auto; min-height: 117px; padding: 0 32px; }

/* ---------- Футер (412:3743 footer_main): макет 1920 в масштабе ширины окна (main.js) ---------- */
.footer { position: relative; z-index: 5; overflow: hidden; background: var(--dark); }
.footer__inner {
  width: 1920px;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 128px 40px;
  color: var(--text-muted-on-dark);
}
.footer__data { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts { flex: 1 0 0; display: flex; flex-direction: column; gap: 32px; }
.footer__row { display: flex; gap: 32px; align-items: flex-start; }
.footer__row--badges { gap: 24px; }
.footer__group { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__group--partners { width: 200px; align-self: stretch; }
.footer__cap { font-size: 12px; line-height: 1.3; }
.footer__list { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__list--tight { gap: 8px; }
.footer__list--first { width: 240.77px; }
.footer__link { color: var(--text-muted-on-dark); font-size: 18px; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: color 0.3s ease; }
.footer__link--light { color: var(--gray-300); font-size: 18px; font-weight: 500; line-height: 1.3; }
.footer__link:hover { color: var(--white); }
.footer__socials { display: flex; gap: 8px; list-style: none; }
.footer__social { position: relative; display: block; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 500px; transition: border-color 0.3s ease, background-color 0.3s ease; }
.footer__social--plain { border: 0; }
.footer__social img { position: absolute; width: auto; height: auto; }
.footer__social:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.footer__menu { display: flex; gap: 64px; padding-right: 64px; align-self: stretch; }
.footer__badges { display: flex; flex-direction: column; gap: 16px; }
.footer__logos { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.footer__agima { position: relative; width: 84.56px; height: 32px; }
.footer__agima img { position: absolute; }
.footer__certs { display: flex; gap: 24px; align-items: center; }
.footer__cert { display: flex; gap: 8px; align-items: center; }
.footer__cert--quality { gap: 3px; color: var(--white); font-size: 11.5px; font-weight: 600; line-height: 1.15; }
.footer__bottom { display: flex; gap: 48px; align-items: flex-end; }
.footer__brand { display: flex; gap: 24px; align-items: flex-end; width: 383px; flex: none; }
.footer__note { width: 183.33px; font-size: 12px; line-height: 1.3; }
.footer__info { flex: 1 0 0; display: flex; gap: 48px; align-items: center; }
.footer__legal { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.footer__legal--grow { flex: 1 0 0; }
.footer__legal--end { width: 238px; align-items: flex-end; }
.footer__legal--end > * { align-self: flex-start; margin-left: auto; width: max-content; }
.footer__pair { display: flex; gap: 10px; }
.footer__legal a { color: inherit; text-decoration: underline; transition: color 0.3s ease; }
.footer__legal a:hover { color: var(--white); }

/* стыки тёмных блоков: при дробном масштабе экрана (125/150%) граница ложится между пикселями, и в щель
   просвечивал белый фон страницы. Тёмный блок перекрывает 2px над собой своим цветом (сверху — тоже тёмный) */
.strong, .cta, .footer { box-shadow: 0 -2px 0 var(--dark); }
