/* ==========================================================================
   ONYX — базовые стили
   Токены взяты из брендбука ONYX VISION (_tokens.css). В коде используйте
   переменные, а не HEX: цвет меняется в одном месте.
   ========================================================================== */

@import url("fonts.css");

:root {
  /* Цвета ONYX VISION */
  --bg: #0A0707;            /* фон страницы */
  --surface: #151010;       /* карточки */
  --surface-2: #1F1616;     /* вложенные блоки, ховер */
  --text: #FFFFFF;
  --text-2: #D9CFCE;        /* вторичный текст */
  --text-3: #A39897;        /* подписи */
  --accent: #F01E14;        /* фирменный красный */
  --accent-hover: #FF3B30;
  --accent-deep: #7A0A06;   /* глубокое свечение */
  --on-accent: #FFFFFF;     /* текст на красном */
  /* Фон кнопок чуть темнее акцента: белый текст на нём проходит WCAG (5,1:1).
     Чтобы вернуть точный брендовый красный, поставьте var(--accent). */
  --accent-btn: #D91A10;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --glow-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --focus: var(--accent-hover);

  /* Шрифты */
  --font-display: 'Montserrat', system-ui, sans-serif;  /* заголовки, цифры, логотип: 800/900 */
  --font-body: 'Inter', system-ui, sans-serif;          /* текст 400, подписи 500, кнопки 600 */

  /* Размеры */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-pill: 999px;

  /* Анимации */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: .4s;

  color-scheme: dark;
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}
/* выделенное слово в заголовке — тот же Montserrat, только красным */
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--accent-btn);
  color: var(--on-accent);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Подписи и метки: Inter 500 капслоком с разрядкой */
.label {
  font: 500 13px/1.4 var(--font-body);
  color: var(--text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- Шапка -------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
}
/* Размытие на псевдоэлементе: backdrop-filter на самой шапке
   сломал бы position: fixed у мобильного меню */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: inline-flex; flex: none; text-decoration: none; }
.logo img { width: auto; height: 28px; }

/* Навигация: пункты по центру, кнопка справа */
.nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__list {
  display: flex;
  gap: 36px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--text-3);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: none; }
.btn--outline { border-color: var(--accent); color: var(--text); }
.btn--outline:hover { border-color: var(--accent-hover); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.nav__cta { gap: 10px; }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
}
.nav-toggle__line {
  display: block;
  width: 24px; height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s;
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 32px var(--gutter);
    background: var(--bg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 20px; margin: 0; }
  .nav__link { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--text); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .nav__cta { align-self: flex-start; min-height: 52px; padding: 0 28px; font-size: 16px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

/* --- Первый экран ------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* красное свечение за статуей + затемнение слева под текст */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 65% at 72% 45%, color-mix(in srgb, var(--accent-deep) 85%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 40% at 72% 42%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(90deg, var(--bg) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: 48px;
}
.hero__content { max-width: 640px; padding-left: clamp(0px, 4vw, 56px); }
.hero__title { margin-top: 20px; font-size: clamp(36px, 4.2vw, 60px); }
.hero__text {
  max-width: 440px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 18px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn__arrow { margin-left: 10px; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Направления под кнопкой: WEB DEVELOPMENT — AI AGENTS — AI CONTENT */
.hero__directions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.hero__directions li { display: flex; align-items: center; gap: 20px; }
.hero__directions li + li::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero__directions a {
  font: 500 12px/1.4 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
.hero__directions a:hover { color: var(--text); }

/* Статуя и орбита: монеты и 3D-объекты */
.orbit {
  position: relative;
  justify-self: center;
  width: min(600px, 100%);
  aspect-ratio: 1;
  perspective: 900px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 60%, transparent 100%);
}
.orbit::before {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 80%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%);
}
.orbit__stage {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--px, 0deg)) rotateY(var(--py, 0deg));
  transition: transform .4s var(--ease);
}
.orbit__statue {
  position: absolute;
  left: 50%; top: 4%;
  width: 72%;
  max-height: 92%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px var(--glow-soft));
  -webkit-mask: linear-gradient(180deg, #000 70%, transparent 98%);
  mask: linear-gradient(180deg, #000 70%, transparent 98%);
  z-index: 5;
  animation: orbit-float 7s ease-in-out infinite;
}
@keyframes orbit-float { 50% { transform: translate(-50%, -14px); } }
.orbit__item {
  position: absolute;
  left: 50%; top: 50%;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  will-change: transform;
}
.orbit__item img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
/* объекты (камера, мегафон, лампочка) чуть крупнее монет */
.orbit__item--object { width: 128px; height: 128px; margin: -64px 0 0 -64px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 8px; padding-block: 32px 48px; min-height: 0; }
  .hero__content { padding-left: 0; text-align: left; }
  .orbit { width: min(480px, 100%); order: -1; }
  .hero::before {
    background:
      radial-gradient(ellipse 80% 45% at 50% 28%, color-mix(in srgb, var(--accent-deep) 85%, transparent), transparent 70%);
  }
}
@media (max-width: 600px) {
  .orbit__item { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .orbit__item--object { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
}

/* --- Контент ------------------------------------------------------------ */
.main { flex: 1; }

.placeholder {
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-content: center;
  gap: 16px;
  padding-block: 80px;
  text-align: center;
}
.placeholder__title { font-size: clamp(36px, 6vw, 72px); }
.placeholder__text { color: var(--text-3); }

.prose {
  max-width: 760px;
  padding-block: 64px;
}
.prose h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin-bottom: 24px; }
.prose h2 { font-size: 22px; line-height: 1.2; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }

/* --- Кнопки ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
  text-decoration: none;
  font: 600 15px/1.2 var(--font-body);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn--primary {
  background: var(--accent-btn);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 12px 32px -14px var(--glow);
}
.btn--primary:hover { background: var(--accent); border-color: transparent; box-shadow: 0 14px 36px -12px var(--glow); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 18px; }

/* --- Подвал ------------------------------------------------------------- */
.footer {
  overflow: hidden;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer__dirs { color: var(--text-3); }
.footer__dirs a, .footer__tg { color: var(--text-2); text-decoration: none; transition: color .2s; }
.footer__dirs a:hover, .footer__tg:hover { color: var(--text); }
.footer__tg { font-weight: 600; }
.footer__links a,
.footer__links button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}
.footer__links a:hover,
.footer__links button:hover { color: var(--text); }

/* Гигантский ONYX со знаком-глазом: выезжает снизу и растворяется книзу */
.giant {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 22vw, 330px);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--surface-2);
  transform: translateY(10%);
  transition: transform 1.4s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  user-select: none;
}
.js .giant:not(.in) { transform: translateY(30%); }
.giant img { width: auto; height: .64em; }

/* --- Cookie-баннер ------------------------------------------------------ */
.cookie {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 500;
  max-width: 560px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-m);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  font-size: 14px;
  transform: translateY(calc(100% + 40px));
  transition: transform .5s var(--ease);
}
.cookie.is-visible { transform: none; }
.cookie__text { color: var(--text-2); }
.cookie__text a { color: var(--text); text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie__options { margin-top: 16px; display: grid; gap: 12px; }

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: var(--surface-2);
}
.cookie-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent-btn); flex: none; }
.cookie-option strong { display: block; color: var(--text); font-weight: 600; }
.cookie-option span { color: var(--text-3); }

@media (max-width: 480px) {
  .cookie__actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Секции главной
   ========================================================================== */

/* Надзаголовок: красная черта + капслок */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1.4 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before,
.eyebrow--both::after { content: ""; width: 24px; height: 1px; background: var(--accent); }
.eyebrow span { color: var(--accent); }

.section { padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--border); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-title { margin-top: 16px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.section-lead { max-width: 420px; color: var(--text-2); font-size: 16px; }

/* Карточки */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  color: inherit;
  text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.card--link:hover,
.case:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px var(--glow);
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 60%, color-mix(in srgb, var(--accent-deep) 80%, transparent), transparent 75%),
    var(--bg);
}
.card__media img {
  position: absolute;
  inset: 8% 0 0;
  width: 100%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform .6s var(--ease);
}
.card__media--cover img { inset: 0; height: 100%; object-fit: cover; object-position: center; }.card:hover .card__media img { transform: scale(1.05); }
.card__body { position: relative; display: grid; gap: 10px; align-content: start; flex: 1; padding: 24px 24px 28px; }
.card__num { font: 800 14px/1 var(--font-display); color: var(--accent); }
.card__title { font-size: 22px; line-height: 1.2; }
.card__text { color: var(--text-3); font-size: 15px; }
.card__arrow { margin-top: 8px; color: var(--accent); font-size: 18px; transition: transform .3s var(--ease); }
.card--link:hover .card__arrow { transform: translateX(6px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-3);
  font: 500 12px/1.4 var(--font-body);
}
.case__more {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.case__more:hover { color: var(--accent-hover); }
/* вся карточка кейса кликабельна */
.case__more::after { content: ""; position: absolute; inset: 0; }
.case:has(.case__more:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.case__more:focus-visible { outline: none; }

/* О нас */
.about {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border);
  padding-block: clamp(56px, 7vw, 104px);
}
/* красное зарево слева, за статуей, и тёмный низ */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 38% 60% at 22% 45%, color-mix(in srgb, var(--accent-deep) 85%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(122, 10, 6, .45), transparent 70%);
}
.about__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.about__media { position: relative; align-self: stretch; min-height: 520px; }
.about__statue {
  position: absolute;
  left: 50%; top: 50%;
  height: min(118%, 640px);
  width: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 60px var(--glow-soft));
  /* края картинки растворяются в фоне (справа статуя обрезана краем файла) */
  -webkit-mask-image: radial-gradient(ellipse 56% 60% at 44% 46%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 56% 60% at 44% 46%, #000 55%, transparent 100%);
}
.about__bolt { position: absolute; left: -8%; top: 10%; width: 60%; mix-blend-mode: screen; opacity: .35; }
.about__content { max-width: 680px; }
.about__title { margin: 0 0 24px; font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.about__title em { font-style: normal; color: var(--accent); }
.about__text { margin: 0 0 14px; color: var(--text-2); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.6; }
.about__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.about__card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-m); border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(30, 14, 13, .85), rgba(14, 8, 8, .85)); transition: border-color .3s, transform .3s var(--ease); }
.about__card:hover { border-color: rgba(240, 30, 20, .45); transform: translateY(-3px); }
.about__card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
.about__card h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.about__card p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.45; }
.about__icon { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px var(--glow-soft)); }
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { min-height: 380px; }
  .about__statue { height: 420px; }
  .about__title { text-align: center; }
}
@media (max-width: 600px) {
  .about__cards { grid-template-columns: 1fr; }
  .about__card:last-child { width: auto; justify-self: stretch; }
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.feature { display: grid; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.feature__icon {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--glow));
}

/* Процесс */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step__num { font: 800 22px/1 var(--font-display); color: var(--accent); }
.step__title { font-size: 20px; line-height: 1.2; }
.step__text { color: var(--text-3); font-size: 15px; }
/* стрелка между шагами */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -22px;
  width: 30px;
  height: 12px;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / 100% 1.5px no-repeat;
  -webkit-mask: linear-gradient(#000, #000);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 31px;
  right: -22px;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* Цифры */
.stats {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 104px);
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 80% at 50% 110%, color-mix(in srgb, var(--accent-deep) 70%, transparent), transparent 70%);
}
.stats__wave {
  position: absolute;
  left: 50%; bottom: -18%;
  width: max(1400px, 120%);
  max-width: none;
  transform: translateX(-50%);
  opacity: .55;
  pointer-events: none;
}
.stats__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 40px;
}
.stats__title { font-size: clamp(26px, 2.6vw, 36px); }
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 8px 16px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__value { font: 900 clamp(36px, 4vw, 56px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--text-3); font-size: 14px; line-height: 1.35; }

/* Появление при прокрутке */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2)::after, .step:nth-child(2)::before { display: none; }
  .stats__inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature { grid-template-columns: 32px 1fr; align-items: center; }
  .steps { grid-template-columns: 1fr; }
  .step::after, .step::before { display: none; }
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; }
  .hero__directions { margin-top: 40px; }
}

/* ==========================================================================
   Страницы направлений: шоурил, описание, блок с кнопками
   ========================================================================== */

/* Заглушки: тексты, которые ещё пришлёт команда (убрать класс, когда вставите текст) */
.todo-text { opacity: .55; }
.todo {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-m);
  color: var(--text-3);
  font-size: 14px;
}

/* Шоурил 16:9 */
.showreel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background:
    radial-gradient(ellipse 60% 70% at 50% 55%, color-mix(in srgb, var(--accent-deep) 70%, transparent), transparent 75%),
    var(--surface);
  box-shadow: 0 40px 80px -40px var(--glow);
}
.showreel video,
.showreel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.showreel__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--text-3);
  font-size: 15px;
}
.showreel__play {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent-btn);
  box-shadow: 0 0 0 12px var(--glow-soft), 0 20px 50px -10px var(--glow);
}
.showreel__play::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--on-accent);
  transform: translate(-38%, -50%);
}

/* Текстовые блоки описания */
.text-block__inner { max-width: 820px; }
.text-block__text { margin-top: 24px; color: var(--text-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 680px; }
.text-block:nth-of-type(even) .text-block__inner { margin-left: auto; margin-right: 0; }

/* Блок с двумя кнопками */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 60% 90% at 50% 120%, color-mix(in srgb, var(--accent-deep) 75%, transparent), transparent 70%);
}
.cta__inner { display: grid; justify-items: center; gap: 32px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__feature { width: min(560px, 100%); }
@media (max-width: 480px) {
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Финальный блок: статуя с раскрытыми ладонями протягивает две карточки
   (Web-разработка, AI-агенты, AI-продакшн)
   ========================================================================== */
.btn--outline { border-color: var(--accent); background: transparent; }
.btn--outline:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent-hover); }

.choice {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(72px, 8vw, 120px) clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 45% 55% at 50% 62%, color-mix(in srgb, var(--accent-deep) 55%, transparent), transparent 70%),
    var(--bg);
}
.choice__inner { max-width: 1520px; }
/* на широких экранах заголовок в одну строку, как в макете */
@media (min-width: 901px) { .choice__title br { display: none; } }
.choice__title {
  text-align: center;
  font-size: clamp(34px, 4.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

/* Сцена: статуя по центру, карточки по бокам над её руками.
   Пропорции подобраны под картинку статуи (1400×936). */
.choice__stage {
  position: relative;
  aspect-ratio: 100 / 58;
  margin-top: clamp(32px, 5vw, 80px);
}
.choice__statue {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 82%;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 60px var(--glow-soft));
  /* низ статуи растворяется в фоне */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  pointer-events: none;
}

.choice-card {
  position: absolute;
  z-index: 1;
  top: 9%;
  width: 38%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(28px, 3vw, 52px);
  border-radius: var(--r-m);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.choice-card--accent {
  left: 0;
  border: 1px solid var(--accent);
  background: linear-gradient(160deg, rgba(40, 10, 8, .82), rgba(14, 8, 8, .9));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 60px -10px var(--glow), 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.choice-card--plain {
  right: 0;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(22, 16, 16, .82), rgba(10, 7, 7, .9));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.choice-card__title { font-size: clamp(26px, 2.6vw, 46px); line-height: 1.05; max-width: 12ch; }
.choice-card__text { color: var(--text-2); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.45; max-width: 30ch; }
.choice-card__btn {
  width: min(460px, 100%);
  margin-top: 14px;
  justify-content: space-between;
  min-height: clamp(52px, 4.4vw, 64px);
  padding-inline: clamp(24px, 2.6vw, 40px);
  font-size: clamp(15px, 1.2vw, 18px);
}
.choice-card--accent .choice-card__btn { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent), 0 14px 40px -10px var(--glow); }

/* Луч от карточки к ладони статуи и светящаяся точка на ладони */
.choice-card__beam {
  position: absolute;
  top: 100%;
  width: 1px;
  height: clamp(30px, 5.5vw, 96px);
  pointer-events: none;
}
.choice-card__beam::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 54px;
  height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(4px);
}
.choice-card--accent .choice-card__beam { left: 58%; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }
.choice-card--accent .choice-card__beam::after { background: radial-gradient(closest-side, rgba(255, 60, 40, .95), transparent); }
.choice-card--plain .choice-card__beam { left: 42%; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .1)); }
.choice-card--plain .choice-card__beam::after { background: radial-gradient(closest-side, rgba(255, 235, 230, .9), transparent); }

.choice__feature { width: min(560px, 100%); margin: 24px auto 0; }

/* Ноутбуки: карточки чуть шире, чтобы текст не дробился */
@media (max-width: 1200px) and (min-width: 901px) {
  .choice-card { width: 41%; top: 6%; }
}

/* Планшеты и телефоны: статуя сверху, карточки под ней одна за другой */
@media (max-width: 900px) {
  .choice__stage { aspect-ratio: auto; display: grid; gap: 16px; }
  .choice__statue { position: relative; left: auto; transform: none; width: min(560px, 100%); margin: 0 auto -18%; }
  .choice-card { position: relative; top: auto; left: auto; right: auto; width: 100%; max-width: 560px; justify-self: center; }
  .choice-card__beam { display: none; }
  .choice-card__title { max-width: none; }
}
@media (max-width: 600px) {
  .choice-card__btn { width: 100%; }
}

/* ==========================================================================
   Квиз (модальное окно, открывается кнопкой с [data-quiz-open])
   ========================================================================== */
html.quiz-open, html.quiz-open body { overflow: hidden; }

.quiz {
  width: min(880px, calc(100% - 24px));
  max-width: none; /* браузер по умолчанию сужает <dialog> */
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.quiz::backdrop { background: rgba(5, 3, 3, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.quiz[open] .quiz__panel { animation: quiz-in .35s var(--ease); }
@keyframes quiz-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.quiz__panel {
  --qp: clamp(20px, 3vw, 32px); /* внутренний отступ окна */
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  padding: var(--qp);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, color-mix(in srgb, var(--accent-deep) 35%, transparent), transparent 70%),
    var(--bg);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02);
}
.quiz__head { display: flex; align-items: center; gap: 16px; }
.quiz__logo { font: 800 18px/1 var(--font-display); letter-spacing: .01em; white-space: nowrap; }
.quiz__logo span { color: var(--accent); }
.quiz__tag { margin-left: auto; white-space: nowrap; font: 500 12px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.quiz__close {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-right: -6px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--text-3);
  transition: background .2s, color .2s;
}
.quiz__close:hover { background: var(--surface-2); color: var(--text); }
.quiz__close svg, .quiz__back svg, .quiz-method svg, .quiz-opt__arrow, .quiz-done__icon {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.quiz__close svg { width: 20px; height: 20px; }

.quiz__progress { display: flex; gap: 6px; margin-top: 18px; }
.quiz__progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); transition: background .3s; }
.quiz__progress i.is-on { background: var(--accent); box-shadow: 0 0 10px var(--glow-soft); }

/* Прокручиваемая часть доходит до правого края окна: полоса прокрутки
   встаёт в отступ окна и не налезает на поля и кнопки */
.quiz__body {
  overflow-y: auto;
  margin: 0 calc(-1 * var(--qp)) 0 -8px;
  padding: 0 calc(var(--qp) - 4px) 4px 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.quiz__body::-webkit-scrollbar { width: 8px; }
.quiz__body::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; border: 2px solid var(--bg); }
.quiz__body::-webkit-scrollbar-track { background: transparent; }
.quiz__meta {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; margin-top: 20px;
  font: 500 12px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.quiz__back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 4px; border: 0; background: none;
  font: 600 15px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text-2);
}
.quiz__back:hover { color: var(--text); }
.quiz__back svg { width: 18px; height: 18px; }

.quiz__title { margin-top: 20px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.quiz__hint { margin-top: 8px; color: var(--text-3); font-size: 15px; }

/* Варианты ответа */
.quiz__options { display: grid; gap: 10px; margin-top: 24px; }
.quiz-opt {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 48px 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: var(--surface);
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.quiz-opt:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--surface-2); }
.quiz-opt:active { transform: scale(.995); }
.quiz-opt.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.quiz-opt__title { font-weight: 600; font-size: 16px; }
.quiz-opt__text { color: var(--text-3); font-size: 14px; }
.quiz-opt__arrow { position: absolute; top: 18px; right: 18px; width: 16px; height: 16px; color: var(--accent); transition: transform .2s var(--ease); }
.quiz-opt:hover .quiz-opt__arrow { transform: translate(2px, -2px); }

/* Поля ввода */
.quiz__form { display: grid; gap: 12px; margin-top: 24px; }
.quiz-label { margin-top: 6px; font-weight: 600; font-size: 14px; }
.quiz-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.quiz-input--area { min-height: 116px; border-radius: var(--r-s); resize: vertical; }
.quiz-input::placeholder { color: var(--text-3); opacity: .8; }
.quiz-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); }

.quiz__next { width: 100%; margin-top: 4px; background: var(--text); color: var(--bg); border-color: transparent; }
.quiz__next:hover { background: var(--text-2); }
.quiz__next:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; box-shadow: none; }
.quiz__next.btn--primary { background: var(--accent-btn); color: var(--on-accent); }
.quiz__next.btn--primary:hover { background: var(--accent); }
.quiz__skip { justify-self: center; padding: 8px; border: 0; background: none; color: var(--text-2); font-weight: 600; font-size: 15px; }
.quiz__skip:hover { color: var(--text); }

/* Способы связи */
.quiz__methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quiz-method {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.quiz-method svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.quiz-method:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.quiz-method.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.quiz-method.is-selected svg { color: var(--accent); }

.quiz-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 6px; color: var(--text-3); font-size: 13px; cursor: pointer; }
.quiz-consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent-btn); }
.quiz-consent a { color: var(--text-2); }
.quiz__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Проверка ответов */
.quiz-review { display: grid; gap: 0; margin: 20px 0 16px; }
.quiz-review__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.quiz-review dt { color: var(--text-3); font-size: 14px; }
.quiz-review dd { margin: 0; overflow-wrap: anywhere; }
.quiz-review__edit { padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; }
.quiz-review__edit:hover { color: var(--accent-hover); }
.quiz__error { margin-bottom: 12px; color: var(--accent-hover); font-size: 14px; }

.quiz-done { display: grid; justify-items: center; gap: 8px; padding: 40px 0 16px; text-align: center; }
.quiz-done__icon { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--accent-btn); color: var(--on-accent); stroke-width: 2.4; box-shadow: 0 0 0 10px var(--glow-soft); }
.quiz-done .quiz__hint { max-width: 40ch; margin-bottom: 20px; }

@media (max-width: 600px) {
  .quiz { width: 100%; max-height: 100dvh; margin: auto 0 0; }
  .quiz__panel { max-height: 100dvh; border-radius: var(--r-l) var(--r-l) 0 0; }
  .quiz__logo { font-size: 16px; }
  .quiz__tag { font-size: 10px; letter-spacing: .04em; }
  .quiz__head { gap: 10px; }
  .quiz__methods { grid-template-columns: 1fr; }
  .quiz-review__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .quiz-review dt { grid-column: 1 / -1; }
}

/* --- Форма «Обсудим ваш проект?» (в том же окне, что и квиз) ------------ */
.quiz__progress[hidden] { display: none; }
.quiz__title--first { margin-top: 24px; }
.quiz-input--short { min-height: 72px; }
.quiz__methods--center .quiz-method { justify-content: center; }
.quiz__sep { width: 100%; height: 1px; margin: 12px 0 4px; border: 0; background: var(--border); }
.quiz__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.quiz__subtitle { font: 800 18px/1.25 var(--font-display); letter-spacing: -.01em; }
.quiz__optional { flex: none; color: var(--text-3); font-size: 13px; }

.quiz__calls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz-call {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
  font-weight: 600; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.quiz-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quiz-call:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.quiz-call.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.quiz-call.is-selected svg { color: var(--accent); }

.quiz-time {
  display: grid; gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: var(--surface);
  animation: quiz-in .3s var(--ease);
}
.quiz-time__label { color: var(--text-3); font-size: 13px; }
.quiz-time__label + .quiz-chips { margin-bottom: 6px; }
.quiz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-chip {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.quiz-chip:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.quiz-chip.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }

@media (max-width: 600px) {
  .quiz__calls { grid-template-columns: 1fr; }
  /* три способа связи в ряд, как в макете: иконка над подписью */
  .quiz__methods--center { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .quiz__methods--center .quiz-method { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: 13px; }
}

/* «Своё время» в выборе созвона */
.quiz-time__custom { display: grid; gap: 8px; margin-top: 4px; color: var(--text-3); font-size: 13px; }
.quiz-input--time { width: min(200px, 100%); padding: 10px 18px; color-scheme: dark; font-variant-numeric: tabular-nums; }

/* Занятое время */
.quiz-chip:disabled { opacity: .35; cursor: not-allowed; }
.quiz-chip.is-busy { text-decoration: line-through; }
.quiz-time.is-loading .quiz-chips { opacity: .5; pointer-events: none; }
.quiz-time__busy { color: var(--accent-hover); font-size: 13px; }

/* Подсказка под вариантами ответа */
.quiz__note { margin-top: 14px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ==========================================================================
   Первый экран главной: крупный заголовок капслоком и бесплатные предложения
   ========================================================================== */
/* на главной текстовая колонка шире, статуя — уже */
.hero--home .hero__inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.hero--home .hero__content { position: relative; z-index: 2; max-width: 720px; padding-left: 0; } /* текст и карточки поверх статуи */
/* статуя чуть крупнее колонки: на 90px заходит вправо, к краю экрана */
.hero--home .orbit { width: calc(100% + 90px); max-width: 600px; justify-self: start; }
.hero__title--caps {
  margin-top: 0;
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.btn--caps { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.hero__free-label { margin-top: 28px; color: var(--text-2); font-size: 15px; }
.free-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.free-offer {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
a.free-offer:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--surface-2); transform: translateY(-2px); }
.free-offer__icon {
  flex: none;
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--glow));
}
@media (max-width: 1100px) and (min-width: 901px) {
  .free-offers { grid-template-columns: 1fr; max-width: 360px; }
}
@media (max-width: 900px) {
  .hero--home .hero__inner { grid-template-columns: 1fr; }
  .hero--home .orbit { width: min(520px, 100%); justify-self: center; }
}
@media (max-width: 600px) {
  .free-offers { grid-template-columns: 1fr; }
}

/* --- Шоурилы: горизонтальный на компьютере, вертикальный на телефоне ---- */
.showreels { display: grid; justify-items: center; }
.showreels .showreel { width: 100%; }
.showreel--mobile { aspect-ratio: 9 / 16; max-width: 420px; }
.showreel video { background: #000; }
@media (min-width: 768px) {
  .showreels:not(.showreels--vertical-only) .showreel--mobile { display: none; }
}
@media (max-width: 767px) {
  .showreel--desktop { display: none; }
  .showreel--mobile { max-width: 100%; }
}
/* большая кнопка play поверх обложки; пока ролик играет — скрыта */
.showreel__start {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 7, 7, .45));
  cursor: pointer;
  transition: opacity .3s;
}
.showreel__start .showreel__play { transition: transform .3s var(--ease); }
.showreel__start:hover .showreel__play { transform: scale(1.08); }
.showreel.is-playing .showreel__start { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Страницы направлений: блоки из документа «все тексты»
   ========================================================================== */

/* Шапка: статуя направления справа вместо орбиты */
.hero--direction .hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.hero__statue { position: relative; justify-self: center; width: min(560px, 100%); }
.hero__statue::before {
  content: "";
  position: absolute;
  inset: 10% 5% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 32%, transparent), transparent 68%);
}
.hero__statue img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7));
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}
.btn__play {
  width: 0; height: 0;
  margin-right: 12px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
@media (max-width: 900px) {
  .hero--direction .hero__inner { grid-template-columns: 1fr; }
  .hero__statue { order: -1; width: min(380px, 80%); }
}

/* Ролик и подпись под ним */
.section--showreel { padding-top: clamp(32px, 4vw, 56px); }
.showreel__caption { margin-top: 18px; text-align: center; color: var(--text-3); font-size: 14px; }

/* Цитата */
.quote { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--border); background: var(--surface); }
.quote__inner { max-width: 960px; margin: 0 auto; text-align: center; }
.quote__text {
  margin: 0;
  font: 800 clamp(26px, 3.4vw, 48px)/1.15 var(--font-display);
  letter-spacing: -.02em;
}
.quote__author { margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 15px; }

/* Заголовок блока: номер в маленькой красной рамке */
.blk-head { display: grid; gap: 14px; justify-items: start; max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.blk-num {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font: 800 13px/1 var(--font-display);
}
.blk-head .section-title { margin-top: 0; }
.blk:nth-of-type(odd) { background: color-mix(in srgb, var(--surface) 45%, var(--bg)); }

/* Шаги в линию, соединённые красной линией */
.line-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.line-steps::before {
  content: "";
  position: absolute;
  left: 20px; right: 20px; top: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
}
.line-step { position: relative; display: grid; gap: 10px; align-content: start; }
.line-step__num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font: 800 14px/1 var(--font-display);
  box-shadow: 0 0 18px var(--glow-soft);
}
.line-step__title { margin-top: 8px; font-size: 20px; line-height: 1.2; }
.line-step__text { color: var(--text-3); font-size: 15px; }
@media (max-width: 900px) {
  .line-steps { grid-template-columns: 1fr; gap: 24px; padding-left: 0; }
  .line-steps::before { left: 20px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), transparent); }
  .line-step { grid-template-columns: 42px 1fr; column-gap: 16px; }
  .line-step__num { grid-row: span 2; }
  .line-step__title { margin-top: 10px; }
}

/* Карточки с текстом и метками */
.info-cards { display: grid; gap: 20px; }
.info-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background: var(--surface);
}
.info-card__scheme { height: 130px; margin-bottom: 8px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.info-card__num { font: 800 14px/1 var(--font-display); color: var(--accent); }
.info-card__title { font-size: 22px; line-height: 1.2; }
.info-card__text { color: var(--text-3); font-size: 15px; }
.info-card .tags { margin-top: auto; padding-top: 6px; }
@media (max-width: 900px) { .info-cards--3 { grid-template-columns: 1fr; } }

/* Мини-схемы форматов */
.scheme { font: 500 11px/1.2 var(--font-body); color: var(--text-3); }
.scheme--landing { position: relative; display: grid; gap: 6px; width: 70px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 6px; }
.scheme--landing i { height: 12px; border-radius: 3px; background: var(--surface-2); }
.scheme--landing i:nth-child(2) { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.scheme--landing b { position: absolute; right: -24px; bottom: 6px; color: var(--accent); font-size: 18px; }
.scheme--tree { display: grid; justify-items: center; gap: 12px; }
.scheme--tree > span, .scheme--tree div span, .scheme--chain span { padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); white-space: nowrap; }
.scheme--tree > span { border-color: var(--accent); color: var(--text); }
.scheme--tree div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 10px; }
.scheme--chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; }
.scheme--chain b { color: var(--accent); }

/* Сетка маленьких карточек с иконкой */
.chip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.chip-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  background: var(--surface);
  font-weight: 600;
  font-size: 16px;
}
.chip-card__icon {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 14px var(--glow);
}
.chip-grid--plain .chip-card { background: transparent; }
.chip-grid--plain .chip-card__icon { background: var(--text-2); box-shadow: none; width: 8px; height: 8px; }
@media (max-width: 900px) { .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .chip-grid { grid-template-columns: 1fr; } }

/* --- Анатомия сайта: ползунок «шаблон / ONYX» ---------------------------- */
.anatomy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.anatomy__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-m);
  user-select: none;
  touch-action: pan-y;
}
.mock { position: absolute; inset: 0; padding: 7% 7% 6%; }
.mock__bar { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mock--onyx { background: radial-gradient(ellipse 50% 70% at 78% 40%, color-mix(in srgb, var(--accent-deep) 80%, transparent), transparent 70%), #0d0505; }
.mock__brand { margin-top: 6%; font: 900 clamp(18px, 3.2vw, 44px)/1 var(--font-display); letter-spacing: -.02em; }
.mock__lines { display: grid; gap: 8px; width: 46%; margin-top: 5%; }
.mock__lines i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.mock__lines i:last-child { width: 70%; }
.mock__cta { display: inline-block; margin-top: 6%; padding: 9px 18px; border-radius: 999px; background: var(--accent-btn); font-size: clamp(10px, 1vw, 14px); font-weight: 600; box-shadow: 0 0 20px var(--glow); }
.mock__ball { position: absolute; right: 9%; top: 18%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6a5e, var(--accent) 40%, var(--accent-deep) 80%); box-shadow: 0 0 50px var(--glow); }
.mock__ring { position: absolute; inset: -14%; border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 50%; animation: ring-spin 18s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.mock__calc { position: absolute; left: 7%; bottom: 8%; display: grid; gap: 6px; width: 40%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(20, 10, 10, .85); font-size: clamp(9px, .9vw, 12px); color: var(--text-2); }
.mock__calc-range { height: 4px; border-radius: 4px; background: var(--surface-2); }
.mock__calc-range i { display: block; width: 60%; height: 100%; border-radius: inherit; background: var(--accent); }
.mock__calc-row b { color: var(--accent); }
.mock--template { background: #cfcfd2; color: #6b6b70; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.mock--template .mock__bar { border-color: rgba(0, 0, 0, .1); }
.mock--template .mock__bar i { background: rgba(0, 0, 0, .18); }
.mock__photo { display: grid; place-items: center; width: 55%; aspect-ratio: 16 / 8; margin-top: 6%; border-radius: 6px; background: repeating-linear-gradient(45deg, #b9b9bd 0 10px, #c4c4c8 10px 20px); font-size: clamp(10px, 1vw, 13px); }
.mock__lines--grey i { background: rgba(0, 0, 0, .14); }
.mock__btn-grey { display: inline-block; margin-top: 5%; padding: 8px 16px; border-radius: 4px; background: #9a9aa0; color: #eee; font-size: clamp(10px, 1vw, 13px); }
.anatomy__tag { position: absolute; top: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; font: 600 11px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.anatomy__tag--left { left: 12px; background: rgba(0, 0, 0, .55); color: #fff; }
.anatomy__tag--right { right: 12px; background: var(--accent-btn); color: #fff; }
.anatomy__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.anatomy__handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.anatomy__handle span::before, .anatomy__handle span::after { content: ""; position: absolute; top: 50%; border: 6px solid transparent; margin-top: -6px; }
.anatomy__handle span::before { left: 6px; border-right-color: #111; }
.anatomy__handle span::after { right: 6px; border-left-color: #111; }
.anatomy__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.anatomy__range:focus-visible ~ .anatomy__handle span { outline: 2px solid var(--focus); outline-offset: 3px; }
.anatomy__dots { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.anatomy-dot {
  position: absolute;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: 700 18px/30px var(--font-body);
  pointer-events: auto;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .6);
  animation: dot-pulse 2s infinite;
}
.anatomy-dot.is-active { background: var(--accent); color: #fff; animation: none; box-shadow: 0 0 0 6px var(--glow-soft); }
@keyframes dot-pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.anatomy-dot--1 { left: 30%; top: 24%; }
.anatomy-dot--2 { left: 80%; top: 30%; }
.anatomy-dot--3 { left: 13%; top: 56%; }
.anatomy-dot--4 { left: 46%; top: 78%; }
.anatomy__notes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.anatomy-note {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--text-2);
  font-size: 15px;
  text-align: left;
  transition: border-color .2s, background .2s;
}
.anatomy-note strong { color: var(--text); }
.anatomy-note__num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); font-weight: 700; font-size: 13px; }
.anatomy-note.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.anatomy-note.is-active .anatomy-note__num { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .anatomy { grid-template-columns: 1fr; }
  .anatomy__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .anatomy__notes { grid-template-columns: 1fr; } }

/* --- Ночь агента --------------------------------------------------------- */
.night { position: relative; display: grid; gap: 18px; max-width: 860px; margin: 0; padding: 0; list-style: none; }
.night::before { content: ""; position: absolute; left: 152px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent)); }
.night-step { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; }
.night-step__time { position: relative; display: grid; justify-items: center; gap: 2px; padding-top: 14px; background: var(--bg); }
.night-step__time span { font: 900 clamp(24px, 2.6vw, 34px)/1 var(--font-display); letter-spacing: -.02em; }
.night-step__time em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 14px; }
.night-card { display: grid; gap: 10px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface); }
.night-card__caption { font: 800 18px/1.25 var(--font-display); }
.night-card__title { color: var(--text-2); font-weight: 600; font-size: 15px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.bubble--in { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble--out { justify-self: end; background: var(--accent-btn); border-bottom-right-radius: 4px; }
.bubble--alert { justify-self: start; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.night-card__data { display: grid; gap: 6px; margin: 0; }
.night-card__data div { display: flex; gap: 10px; font-size: 15px; }
.night-card__data dt { width: 70px; color: var(--text-3); }
.night-card__data dd { margin: 0; }
.night-card__files { display: flex; flex-wrap: wrap; gap: 8px; }
.night-card__files span { padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; }
.night-card__files span::before { content: "📄 "; }
.night-card__summary { font-size: 15px; color: var(--text-2); }
.night-card__summary b { color: var(--text); }
.night__result { margin-top: clamp(28px, 4vw, 48px); font: 800 clamp(20px, 2.2vw, 28px)/1.25 var(--font-display); }
.night__note { margin-top: 8px; color: var(--text-3); font-size: 13px; }
@media (max-width: 600px) {
  .night::before { left: 74px; }
  .night-step { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .night-step__time span { font-size: 18px; }
  .night-step__time em { font-size: 12px; }
  .bubble { max-width: 100%; }
}

/* --- Отделы вокруг статуи ---------------------------------------------- */
.depts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.depts__col { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.dept { position: relative; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface); }
.dept__title { font-size: 18px; }
.dept__text { margin-top: 4px; color: var(--text-3); font-size: 14px; }
/* красные линии к центру */
.depts__col--left .dept::after, .depts__col--right .dept::after { content: ""; position: absolute; top: 50%; width: 24px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.depts__col--left .dept::after { right: -25px; }
.depts__col--right .dept::after { left: -25px; }
.depts__hub { position: relative; }
.depts__hub::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.depts__hub img { position: relative; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
@media (max-width: 900px) {
  .depts { grid-template-columns: 1fr; }
  .depts__hub { order: -1; width: min(260px, 70%); justify-self: center; }
  .depts__col--left .dept::after, .depts__col--right .dept::after { display: none; }
}

/* --- Калькулятор времени ----------------------------------------------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3vw, 44px); border: 1px solid var(--border); border-radius: var(--r-l); background: var(--surface); }
.calc__fields { display: grid; gap: 26px; }
.calc__field { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 10px 16px; align-items: center; }
.calc__label { grid-column: 1 / -1; color: var(--text-2); font-size: 15px; }
.calc__range { width: 100%; accent-color: var(--accent-btn); height: 24px; }
.calc__value { justify-self: end; font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.calc__result { display: grid; align-content: center; gap: 12px; padding-left: clamp(0px, 3vw, 44px); border-left: 1px solid var(--border); }
.calc__hours { font: 900 clamp(48px, 6vw, 88px)/1 var(--font-display); color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc__hours small { font: 700 16px/1.2 var(--font-body); color: var(--text); letter-spacing: 0; }
.calc__text { color: var(--text-2); }
.calc__result .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--border); }
  .calc__result .btn { justify-self: stretch; }
}

/* --- Путь одного ролика ------------------------------------------------- */
.paths { display: grid; gap: 20px; }
.path { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-l); background: var(--surface); }
.path__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font: 800 18px/1.3 var(--font-display); }
.path__head em { font: 500 13px/1.4 var(--font-body); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.path__chain { display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.path__chain li { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.path__chain li:not(:last-child)::after { content: "→"; color: var(--text-3); }
.path__chain li { white-space: nowrap; }
.path--old .path__head em { color: var(--text-3); }
.path--old .path__chain li { color: var(--text-3); }
.path--old .path__chain li:last-child { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--accent); }
.path--onyx { border-color: var(--accent); box-shadow: 0 0 40px -12px var(--glow); }
.path--onyx .path__head em { color: var(--accent); }
.path--onyx .path__chain li { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.path--onyx .path__chain li:not(:last-child)::after { color: var(--accent); margin-left: 6px; }

/* --- Кадр по слоям (облегчённая версия: кадр разбирается, когда виден) -- */
.layers { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.layers__scene { perspective: 1400px; }
.layers__frame { position: relative; aspect-ratio: 16 / 9; transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.layer { position: absolute; inset: 0; border-radius: var(--r-s); transition: transform 1.2s var(--ease), box-shadow 1.2s; }
.layer--bg { background: linear-gradient(180deg, #3b0806, #120303 70%), #120303; overflow: hidden; }
.layer--bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(0deg, #050101, transparent); -webkit-mask: linear-gradient(90deg, #000 6%, transparent 6% 9%, #000 9% 16%, transparent 16% 18%, #000 18% 28%, transparent 28% 31%, #000 31% 45%, transparent 45% 48%, #000 48% 60%, transparent 60% 62%, #000 62% 75%, transparent 75% 78%, #000 78%); }
.layer--light { background: radial-gradient(circle at 25% 30%, rgba(240, 30, 20, .45), transparent 30%), radial-gradient(circle at 80% 60%, rgba(255, 90, 80, .3), transparent 35%); }
.layer--hero img { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; transform: translateX(-50%); }
.layer--product span { position: absolute; right: 8%; bottom: 14%; padding: 14px 18px; border: 2px dashed rgba(255, 255, 255, .7); border-radius: 10px; font-size: clamp(10px, 1.1vw, 14px); }
.layer--text { display: grid; align-content: start; gap: 10px; padding: 7%; }
.layer--text b { font: 900 clamp(16px, 2.6vw, 36px)/1 var(--font-display); }
.layer--text span { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--accent-btn); font-size: clamp(10px, 1vw, 13px); }
.layers.is-split .layers__frame { transform: rotateX(48deg) rotateZ(-20deg) scale(.72); }
.layers.is-split .layer { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 20px 40px rgba(0, 0, 0, .4); }
.layers.is-split .layer--bg { transform: translateZ(-130px); }
.layers.is-split .layer--light { transform: translateZ(-50px); }
.layers.is-split .layer--hero { transform: translateZ(30px); }
.layers.is-split .layer--product { transform: translateZ(100px); }
.layers.is-split .layer--text { transform: translateZ(170px); }
.layers__caption { margin-top: 16px; text-align: center; color: var(--text-3); font-size: 13px; transition: margin-top 1.2s var(--ease); }
.layers.is-split .layers__caption { margin-top: 56px; }
.layers__cap-split, .layers.is-split .layers__cap-flat { display: none; }
.layers.is-split .layers__cap-split { display: inline; }
.layers__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.layer-item { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-s); background: var(--surface); color: var(--text-2); font-size: 15px; transition: border-color .4s, background .4s; transition-delay: calc(var(--i) * .18s + .4s); }
.layer-item strong { color: var(--text); }
.layer-item__num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); font-weight: 700; font-size: 13px; transition: inherit; }
.layers.is-split .layer-item { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.layers.is-split .layer-item__num { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .layers { grid-template-columns: 1fr; }
  .layers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .layers__list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .layers__frame, .layer, .layer-item { transition: none; }
}

/* --- Покажем то, что не снять ------------------------------------------ */
.impossible { display: grid; grid-template-columns: minmax(200px, .6fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.impossible__statue { position: relative; justify-self: center; width: min(320px, 100%); }
.impossible__statue::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.impossible__statue img { position: relative; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.impossible__sub { margin: 28px 0 14px; font-size: 20px; }
@media (max-width: 900px) {
  .impossible { grid-template-columns: 1fr; }
  .impossible__statue { width: min(220px, 60%); }
}

/* Надзаголовок и текст оффера над карточками */
.choice__head { display: grid; justify-items: center; gap: 14px; text-align: center; }
.choice__eyebrow { color: var(--accent); font: 600 14px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.choice__lead { max-width: 640px; color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); }
/* на телефоне в макете ONYX убираем мелочь, чтобы элементы не наезжали друг на друга */
@media (max-width: 600px) {
  .mock__lines { display: none; }
  .mock__calc { width: 56%; padding: 6px 8px; }
  .mock__cta { margin-top: 10%; }
}

/* ==========================================================================
   Схемы-диаграммы (assets/js/diagrams.js рисует линии и ставит is-in)
   Движение в духе Apple: спокойное, по очереди, без рывков.
   ========================================================================== */
.blk--dg { background: radial-gradient(ellipse 60% 50% at 50% 60%, color-mix(in srgb, var(--accent-deep) 22%, transparent), transparent 70%), var(--bg); }
.blk--dg:nth-of-type(odd) { background: radial-gradient(ellipse 60% 50% at 50% 60%, color-mix(in srgb, var(--accent-deep) 22%, transparent), transparent 70%), color-mix(in srgb, var(--surface) 45%, var(--bg)); }
.blk-head .section-title em { font-style: normal; color: var(--accent); }

:root { --dg-ease: cubic-bezier(.25, .1, .25, 1); }

/* Линии и бегущие точки */
.dg-links { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dg-line { fill: none; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--dg-ease), stroke .4s, stroke-width .4s; transition-delay: calc(var(--i) * .07s + .25s), 0s, 0s; }
.dg-line--red { stroke: rgba(240, 30, 20, .45); }
.dg-line--grey { stroke: rgba(255, 255, 255, .22); }
.is-in .dg-line { stroke-dashoffset: 0; }
.dg-line--under { stroke-dasharray: .025 .02; stroke-dashoffset: 0; stroke-width: 2; opacity: 0; transition: opacity 1s var(--dg-ease) 1.6s; }
.dg-line--under.dg-line--red { stroke: var(--accent-hover); }
.dg-line--under.dg-line--grey { stroke: rgba(255, 255, 255, .45); }
.is-in .dg-line--under { opacity: 1; }
.dg-arrow { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dg-arrow--red { stroke: var(--accent-hover); }
.dg-arrow--grey { stroke: rgba(255, 255, 255, .55); }
.dg-flow { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .1 7.9; opacity: 0; transition: opacity .8s var(--dg-ease) 1.6s; animation: dg-flow 1.4s linear infinite; }
.dg-flow--red { stroke: #ff6a5e; filter: drop-shadow(0 0 4px rgba(240, 30, 20, .9)); }
.dg-flow--grey { stroke: rgba(255, 255, 255, .55); }
.is-in .dg-flow { opacity: 1; }
@keyframes dg-flow { to { stroke-dashoffset: -8; } }

/* Карточка-узел с иконкой */
.dg-node {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-m);
  background: linear-gradient(160deg, #1c0d0d, #120808);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--dg-ease), transform .9s var(--dg-ease), border-color .4s;
}
.dg-node:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.is-in .dg-node { opacity: 1; transform: none; }
.dg-node__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, #1a0b0b); }
.dg-icon { width: 24px; height: 24px; fill: none; stroke: #ff5a50; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dg-node__body { display: grid; gap: 2px; min-width: 0; }
.dg-node__body strong { font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; line-height: 1.25; }
.dg-node__body span { color: var(--text-3); font-size: 14px; line-height: 1.4; }
.dg-node--accent { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(160deg, #3a0a08, #1a0606); }

/* --- «Солнце»: центр и узлы вокруг ------------------------------------- */
.dg-hub { position: relative; max-width: 1360px; margin: 0 auto; aspect-ratio: 16 / 8.6; }
.dg-hub__center { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) scale(.85); opacity: 0; transition: opacity 1s var(--dg-ease), transform 1.2s var(--dg-ease); }
.is-in .dg-hub__center { opacity: 1; transform: translate(-50%, -50%); }
.dg-hub .dg-node { position: absolute; left: var(--x); top: var(--y); width: clamp(240px, 25%, 340px); transform: translate(-50%, calc(-50% + 14px)); }
.is-in.dg-hub .dg-node { transform: translate(-50%, -50%); }
.dg-hub .dg-node:nth-child(1) { transition-delay: .5s; } .dg-hub .dg-node:nth-child(2) { transition-delay: .6s; }
.dg-hub .dg-node:nth-child(3) { transition-delay: .7s; } .dg-hub .dg-node:nth-child(4) { transition-delay: .8s; }
.dg-hub .dg-node:nth-child(5) { transition-delay: .9s; } .dg-hub .dg-node:nth-child(6) { transition-delay: 1s; }
.dg-hub .dg-node:nth-child(7) { transition-delay: 1.1s; }
.dg-orbit { position: absolute; left: 50%; top: 50%; z-index: 0; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 50%; transform: translate(-50%, -50%) scale(.9); opacity: 0; transition: opacity 1.4s var(--dg-ease) .2s, transform 1.6s var(--dg-ease) .2s; pointer-events: none; }
.dg-orbit--outer { width: 72%; height: 100%; }
.dg-orbit--inner { width: 27%; aspect-ratio: 1; }
.is-in .dg-orbit { opacity: 1; transform: translate(-50%, -50%); }
.dg-hub--site { margin-bottom: clamp(70px, 8vw, 120px); }

/* Красный шар с кольцами */
.dg-ball { position: relative; width: clamp(150px, 15vw, 230px); aspect-ratio: 1; }
.dg-ball__core {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ff7a6e, var(--accent) 38%, #a50d07 72%, #5a0603);
  box-shadow: 0 0 60px rgba(240, 30, 20, .55), 0 0 120px rgba(240, 30, 20, .25), inset 0 -10px 30px rgba(0, 0, 0, .35);
  font: 900 clamp(20px, 2vw, 30px)/1 var(--font-display);
  text-align: center;
  animation: ball-breathe 5s ease-in-out infinite;
}
.dg-ball__ring { position: absolute; inset: -16%; border: 1.5px dashed rgba(255, 90, 80, .55); border-radius: 50%; animation: spin 30s linear infinite; }
.dg-ball__arc { position: absolute; inset: -26%; border-radius: 50%; border: 2px solid transparent; border-right-color: rgba(255, 90, 80, .8); animation: spin 9s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ball-breathe { 50% { box-shadow: 0 0 80px rgba(240, 30, 20, .7), 0 0 160px rgba(240, 30, 20, .3), inset 0 -10px 30px rgba(0, 0, 0, .35); } }

/* Макет «Ваш сайт» в центре */
.site-mock { width: clamp(280px, 30vw, 430px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r-m); background: radial-gradient(ellipse 70% 80% at 75% 40%, #3b0806, #120505 70%); box-shadow: 0 0 80px -10px var(--glow); }
.site-mock__bar { display: flex; gap: 6px; padding: 12px 16px; background: rgba(255, 255, 255, .03); }
.site-mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.site-mock__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 2vw, 30px); }
.site-mock__body b { display: block; font: 900 clamp(24px, 2.6vw, 38px)/.95 var(--font-display); }
.site-mock__body em { font-style: normal; color: var(--accent); }
.site-mock__line { display: block; width: 140px; height: 8px; margin: 14px 0; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.site-mock__btn { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--accent-btn); font-size: 13px; font-weight: 600; box-shadow: 0 0 20px var(--glow); }
.site-mock__ball { position: relative; flex: none; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a6e, var(--accent) 40%, #6a0704 80%); box-shadow: 0 0 40px var(--glow); }
.site-mock__ball i { position: absolute; inset: -14%; border: 1.5px dashed rgba(255, 90, 80, .6); border-radius: 50%; animation: spin 24s linear infinite; }
.site-mock__foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; color: #ffb3ad; font: 600 13px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }

/* Экран «Ваш ролик» в центре */
.reel-box { position: relative; display: grid; place-items: center; align-content: center; gap: 16px; width: clamp(280px, 30vw, 430px); aspect-ratio: 16 / 9; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--r-m); background: radial-gradient(ellipse 60% 70% at 50% 45%, #3b0806, #0f0505 70%); box-shadow: 0 0 90px -10px var(--glow); }
.reel-box__play { position: relative; width: clamp(64px, 6vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--accent-btn); box-shadow: 0 0 0 14px rgba(240, 30, 20, .14), 0 0 40px var(--glow); animation: reel-pulse 2.6s ease-in-out infinite; }
.reel-box__play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff; }
@keyframes reel-pulse { 50% { box-shadow: 0 0 0 22px rgba(240, 30, 20, .06), 0 0 60px var(--glow); } }
.reel-box__label { color: #ffb3ad; font: 600 14px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.reel-box__corner { position: absolute; width: 38px; height: 38px; border: 2px solid var(--accent); }
.reel-box__corner--tl { left: -14px; top: -14px; border-right: 0; border-bottom: 0; }
.reel-box__corner--br { right: -14px; bottom: -14px; border-left: 0; border-top: 0; }

.where { margin-top: clamp(32px, 5vw, 56px); text-align: center; }
.where__title { font-size: 20px; }
.where__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.where__list li { padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: 15px; }

@media (max-width: 900px) {
  .dg-hub { aspect-ratio: auto; display: grid; gap: 14px; }
  .dg-hub .dg-links, .dg-orbit { display: none; }
  .dg-hub__center { position: relative; left: auto; top: auto; justify-self: center; margin-bottom: 20px; transform: scale(.9); }
  .is-in .dg-hub__center { transform: none; }
  .dg-hub__nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dg-hub .dg-node { position: relative; left: auto; top: auto; width: auto; transform: translateY(14px); }
  .is-in.dg-hub .dg-node { transform: none; }
  .dg-hub--site { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .dg-hub__nodes { grid-template-columns: 1fr; }
  .dg-node { padding: 14px; gap: 14px; }
  .dg-node__icon { width: 44px; height: 44px; }
}

/* --- Как работает агент -------------------------------------------------- */
.dg-how { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 140px); align-items: center; }
.dg-how__col { position: relative; z-index: 2; display: grid; gap: 14px; }
.dg-how__label { color: var(--text-3); font: 600 13px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.dg-how__col:first-child .dg-node { transform: translateX(-18px); }
.dg-how__col:last-child .dg-node { transform: translateX(18px); }
.is-in .dg-how__col .dg-node { transform: none; }
.dg-how__col .dg-node:nth-of-type(2) { transition-delay: .5s; } .dg-how__col .dg-node:nth-of-type(3) { transition-delay: .6s; }
.dg-how__col .dg-node:nth-of-type(4) { transition-delay: .7s; } .dg-how__col .dg-node:nth-of-type(5) { transition-delay: .8s; }
.dg-how__col .dg-node:nth-of-type(6) { transition-delay: .9s; }
.how-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 20px; padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 40px); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r-l); background: radial-gradient(ellipse 80% 60% at 50% 0%, #5a0a06, #160606 70%); box-shadow: 0 0 120px -20px var(--glow); opacity: 0; transform: scale(.94); transition: opacity 1s var(--dg-ease) .2s, transform 1.2s var(--dg-ease) .2s; }
.is-in .how-core { opacity: 1; transform: none; }
.how-core .dg-ball { width: clamp(110px, 10vw, 150px); margin: 18px 0 6px; }
.how-core__title { font-size: clamp(24px, 2.2vw, 34px); }
.how-core__steps { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.how-core__step { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(0, 0, 0, .35); font-size: 16px; animation: how-step 6s var(--dg-ease) infinite; animation-delay: calc(var(--i) * 2s); }
.how-core__step b { color: var(--accent-hover); font: 800 16px/1 var(--font-display); }
@keyframes how-step { 0%, 30% { background: rgba(240, 30, 20, .22); box-shadow: inset 0 0 0 1px rgba(255, 90, 80, .5); } 34%, 100% { background: rgba(0, 0, 0, .35); box-shadow: none; } }
.how-core__badge { padding: 8px 18px; border-radius: 999px; background: var(--accent-btn); font: 800 15px/1 var(--font-display); letter-spacing: .1em; box-shadow: 0 0 24px var(--glow); }
@media (max-width: 960px) {
  .dg-how { grid-template-columns: 1fr; gap: 24px; }
  .dg-how .dg-links { display: none; }
  .how-core { order: 0; }
  .dg-how__col:last-child { order: 1; }
  .dg-how__col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-how__label { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .dg-how__col { grid-template-columns: 1fr; } }

/* --- Простое делает агент: схема решений -------------------------------- */
.dg-decide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(130px, .8fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: ". . . self done" "req ag q . ." ". . . pass emp";
  align-items: center;
  gap: 28px clamp(32px, 4vw, 64px);
}
.flow-box { position: relative; z-index: 2; display: grid; gap: 6px; justify-items: center; padding: 22px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-m); background: #160a0a; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--dg-ease), transform .8s var(--dg-ease), border-color .4s, box-shadow .4s, background .4s; }
.flow-box strong { font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; line-height: 1.25; }
.flow-box span { color: var(--text-3); font-size: 14px; }
.is-in .flow-box, .is-in .flow-q { opacity: 1; transform: none; }
.flow-box--req { grid-area: req; transition-delay: .2s; }
.flow-box--agent { grid-area: ag; padding: 28px 18px; border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(160deg, #3a0907, #1a0606); box-shadow: 0 0 50px -10px var(--glow); transition-delay: .35s; }
.flow-box--agent strong { font-size: clamp(20px, 1.8vw, 26px); }
.flow-box--agent span { color: var(--text-2); }
.flow-box--self { grid-area: self; border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: #1e0808; transition-delay: .7s; }
.flow-box--done { grid-area: done; border-color: transparent; background: var(--accent-btn); box-shadow: 0 0 40px -10px var(--glow); transition-delay: .85s; }
.flow-box--done span { color: rgba(255, 255, 255, .85); }
.flow-box--pass { grid-area: pass; transition-delay: .7s; }
.flow-box--emp { grid-area: emp; transition-delay: .85s; }
.flow-q { grid-area: q; position: relative; z-index: 2; justify-self: center; display: grid; place-items: center; width: clamp(130px, 11vw, 170px); aspect-ratio: 1; opacity: 0; transform: scale(.9); transition: opacity .8s var(--dg-ease) .5s, transform .8s var(--dg-ease) .5s; }
.flow-q::before { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(255, 255, 255, .25); background: #1a0b0b; transform: rotate(45deg); transition: border-color .4s, box-shadow .4s; }
.flow-q span { position: relative; max-width: 62%; font-weight: 600; font-size: clamp(13px, 1.1vw, 15px); text-align: center; line-height: 1.3; }
.flow-q em { position: absolute; right: -6px; font: 700 14px/1 var(--font-body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.flow-q__yes { top: 4%; color: var(--accent-hover); }
.flow-q__no { bottom: 4%; color: var(--text-3); }
/* подсветка пути (скрипт ставит is-lit по очереди) */
.flow-box.is-lit { border-color: var(--accent-hover); box-shadow: 0 0 0 1px var(--accent-hover), 0 0 40px -6px var(--glow); }
.flow-q.is-lit::before { border-color: var(--accent-hover); box-shadow: 0 0 30px -4px var(--glow); }
.dg-line.is-lit { stroke: var(--accent-hover); stroke-width: 2.5; }
.dg-line--grey.is-lit { stroke: rgba(255, 255, 255, .8); }
@media (max-width: 960px) {
  .dg-decide { grid-template-columns: 1fr; grid-template-areas: "req" "ag" "q" "self" "done" "pass" "emp"; gap: 14px; max-width: 460px; margin: 0 auto; }
  .dg-decide .dg-links { display: none; }
  .flow-q { width: auto; aspect-ratio: auto; justify-self: stretch; padding: 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-m); background: #1a0b0b; }
  .flow-q::before, .flow-q em { display: none; }
  .flow-box--self::before, .flow-box--pass::before { position: absolute; top: -10px; left: 16px; padding: 2px 10px; border-radius: 999px; font: 700 11px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
  .flow-box--self::before { content: "Если да"; background: var(--accent-btn); }
  .flow-box--pass::before { content: "Если нет"; background: #3a3333; }
  .flow-box--pass { margin-top: 14px; }
}

/* --- Часы: сотрудник 9 ч, агент 24 ч ----------------------------------- */
.clock-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.clock { width: 100%; max-width: 620px; overflow: visible; justify-self: center; }
.clk-ticks line { stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.clk-labels text { fill: var(--text-3); font: 600 17px var(--font-body); text-anchor: middle; }
.clk-in { fill: none; stroke-width: 28; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--dg-ease) .9s; }
.clk-in--work { stroke: #6f6767; transition-delay: .5s; }
.clk-in--off { stroke: url(#clk-hatch); }
.clk-out { fill: none; stroke: var(--accent); stroke-width: 18; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--dg-ease) .1s; }
.clk-out-dash { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 3; stroke-dasharray: .5 .5; opacity: 0; transition: opacity 1s var(--dg-ease) 2s; animation: clk-run 6s linear infinite; }
@keyframes clk-run { to { stroke-dashoffset: -1; } }
.is-in .clk-in, .is-in .clk-out { stroke-dashoffset: 0; }
.is-in .clk-out-dash { opacity: 1; }
.clk-hand { transform-origin: 300px 300px; transform-box: view-box; animation: spin 40s linear infinite; }
.clk-hand line { stroke: rgba(255, 255, 255, .7); stroke-width: 2.5; stroke-linecap: round; }
.clk-hand circle { fill: #fff; }
.clk-mark { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .5s var(--dg-ease), transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(2.1s + var(--i) * .35s); }
.clk-mark circle { fill: #fff; }
.clk-mark .clk-mark__dot { fill: var(--accent); }
.is-in .clk-mark { opacity: 1; transform: none; }
.clk-note { opacity: 0; transition: opacity .8s var(--dg-ease); transition-delay: calc(2.3s + var(--i) * .35s); }
.is-in .clk-note { opacity: 1; }
.clk-note line { stroke: rgba(255, 255, 255, .45); stroke-dasharray: 3 4; }
.clk-note__time { fill: #fff; font: 700 24px var(--font-body); text-anchor: middle; }
.clk-note__label { fill: #ff5a50; font: 600 18px var(--font-body); text-anchor: middle; }
.clk-center { fill: #fff; font: 900 76px var(--font-display); text-anchor: middle; letter-spacing: -.03em; }
.clk-center-sub { fill: var(--text-3); font: 600 15px var(--font-body); text-anchor: middle; letter-spacing: .22em; }
.clock-side { display: grid; gap: clamp(24px, 3vw, 40px); }
.clk-legend { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.clk-legend__item { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-m); background: #150909; }
.clk-legend__item strong { display: block; font-size: 19px; font-weight: 600; }
.clk-legend__item span span { color: var(--text-3); font-size: 15px; }
.clk-swatch { flex: none; width: 76px; height: 16px; border-radius: 999px; }
.clk-swatch--agent { background: var(--accent); box-shadow: 0 0 16px var(--glow); }
.clk-swatch--work { background: #6f6767; }
.clk-swatch--off { background: repeating-linear-gradient(45deg, #7a6f6f 0 3px, #2a2222 3px 7px); border: 1px solid #5a5050; }
.clk-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(24px, 4vw, 56px); margin: 0; }
.clk-stats dt { font: 900 clamp(44px, 5vw, 76px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.clk-stats .is-red dt { color: #ff5a50; }
.clk-stats dd { margin: 8px 0 0; color: var(--text-3); font-size: 15px; }
@media (max-width: 1000px) {
  .clock-wrap { grid-template-columns: 1fr; }
  .clock { max-width: 480px; }
}
@media (max-width: 600px) {
  .clk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clk-stats dt { font-size: 40px; }
  .clk-legend__item { padding: 16px; gap: 16px; }
  .clk-swatch { width: 48px; }
}
@media (prefers-reduced-motion: reduce) { .clk-hand { animation: none; } }

/* --- Как идёт работа: ONYX и вы --------------------------------------- */
.proc { display: grid; grid-template-columns: 90px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 20px 24px; }
.proc__rowlabel { align-self: center; font: 800 18px/1 var(--font-display); }
.proc__rowlabel--us { grid-row: 2; color: #ff5a50; }
.proc__rowlabel--you { grid-row: 3; }
.proc__heads, .proc__row { grid-column: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proc__heads { position: relative; grid-row: 1; }
.proc__line { position: absolute; left: 30px; right: 0; top: 30px; height: 2px; background: rgba(255, 255, 255, .1); }
.proc__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #ff5a50); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--dg-ease) .3s; box-shadow: 0 0 10px var(--glow); }
.is-in .proc__line i { transform: none; }
.proc__head { position: relative; display: flex; align-items: center; gap: 14px; }
.proc__head strong { padding-right: 8px; background: transparent; font-weight: 600; font-size: 19px; }
.proc__num { display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); font: 800 22px/1 var(--font-display); transition: background .5s, box-shadow .5s, transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.4s + var(--i) * .55s); transform: scale(.7); }
.is-in .proc__num { transform: none; }
.is-in .proc__head:last-child .proc__num { background: var(--accent-btn); border-color: var(--accent-btn); box-shadow: 0 0 24px var(--glow); }
.proc__card { min-height: 150px; padding: 22px 24px; border-radius: var(--r-m); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.4; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--dg-ease), transform .8s var(--dg-ease); transition-delay: calc(.6s + var(--i) * .55s); }
.is-in .proc__card { opacity: 1; transform: none; }
.proc__card--us { border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(170deg, #3a0907, #160606); }
.proc__card--you { min-height: 130px; border: 1px solid rgba(255, 255, 255, .1); background: #160b0b; color: var(--text-2); transition-delay: calc(.8s + var(--i) * .55s); }
.proc__card--you.is-final { border-color: transparent; background: var(--accent-btn); color: #fff; font-weight: 700; box-shadow: 0 0 40px -10px var(--glow); }
.proc__who { display: none; }
@media (max-width: 900px) {
  .proc { grid-template-columns: 1fr; gap: 10px; }
  .proc__rowlabel, .proc__line { display: none; }
  .proc__heads, .proc__row { display: contents; }
  .proc__head { order: calc(var(--i) * 3); margin-top: 18px; }
  .proc__card--us { order: calc(var(--i) * 3 + 1); }
  .proc__card--you { order: calc(var(--i) * 3 + 2); }
  .proc__card { min-height: 0; }
  .proc__num { width: 46px; height: 46px; font-size: 18px; }
  .proc__who { display: block; margin-bottom: 6px; color: var(--text-3); font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
  .proc__card--us .proc__who { color: #ff5a50; }
  .proc__card--you.is-final .proc__who { color: rgba(255, 255, 255, .8); }
}

/* --- Три формата — три устройства -------------------------------------- */
.fmts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fmt { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 36px); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-l); background: #150909; }
.fmt__stage { position: relative; height: clamp(230px, 22vw, 300px); margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--r-m); background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 18px 18px, #0b0505; }
.fmt__title { font-size: clamp(22px, 2vw, 30px); }
.fmt__text { color: var(--text-2); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
.fmt .tags { margin-top: auto; padding-top: 6px; }
.fmt .tags li { padding: 7px 14px; font-size: 14px; border: 1px solid rgba(255, 255, 255, .1); background: #1d0d0d; color: var(--text); }
/* телефон с прокруткой */
.fmt-phone { position: absolute; left: 50%; top: 50%; width: 32%; max-width: 130px; aspect-ratio: 9 / 17; transform: translate(-65%, -50%); padding: 7px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 20px; }
.fmt-phone__screen { height: 100%; overflow: hidden; border-radius: 13px; }
.fmt-phone__scroll { display: grid; gap: 7px; animation: phone-scroll 7s cubic-bezier(.65, 0, .35, 1) infinite; }
.fmt-phone__scroll > i { display: block; height: 40px; border-radius: 6px; background: #2a1d1d; }
.fmt-phone__scroll > i.is-red { height: 50px; background: var(--accent); }
.fmt-phone__scroll > i.is-dark { height: 44px; background: #5a0c08; }
.fmt-phone__scroll > i.is-line { height: 9px; }
.fmt-phone__scroll > i.is-short { width: 60%; }
.fmt-phone__scroll span { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fmt-phone__scroll span i { height: 36px; border-radius: 6px; background: #2a1d1d; }
@keyframes phone-scroll { 0%, 12% { transform: none; } 50%, 62% { transform: translateY(-48%); } 100% { transform: none; } }
.fmt-phone__arrow { position: absolute; left: 66%; top: 24%; bottom: 22%; width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 2px 22px; animation: arrow-run 1s linear infinite; }
.fmt-phone__arrow::after { content: ""; position: absolute; left: -6px; bottom: -4px; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.fmt-phone__arrow em { position: absolute; left: 14px; top: 20%; color: var(--text-3); font: 400 13px/1.3 var(--font-body); font-style: normal; white-space: nowrap; }
@keyframes arrow-run { to { background-position: 0 22px; } }
/* дерево страниц */
.fmt-tree__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.fmt-tree__lines path { fill: none; stroke: #ff5a50; stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; animation: tree-dash 1.2s linear infinite; }
@keyframes tree-dash { to { stroke-dashoffset: -10; } }
.fmt-tree__root { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 9px 22px; border-radius: 10px; background: var(--accent-btn); font-weight: 700; font-size: 14px; box-shadow: 0 0 24px var(--glow); }
.fmt-tree__row span { position: absolute; top: 47%; transform: translateX(-50%); padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 9px; background: #120707; font-size: 12px; white-space: nowrap; opacity: 0; animation: tree-pop 6s var(--dg-ease) infinite; }
.fmt-tree__row span:nth-child(1) { left: 15%; animation-delay: .2s; } .fmt-tree__row span:nth-child(2) { left: 38.3%; animation-delay: .4s; }
.fmt-tree__row span:nth-child(3) { left: 61.7%; animation-delay: .6s; } .fmt-tree__row span:nth-child(4) { left: 85%; animation-delay: .8s; }
.fmt-tree__sub i { position: absolute; top: 73%; width: 16%; height: 22px; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .1); border-radius: 7px; background: #1a0f0f; opacity: 0; animation: tree-pop 6s var(--dg-ease) infinite; }
.fmt-tree__sub i:nth-child(1) { left: 15%; animation-delay: 1.1s; } .fmt-tree__sub i:nth-child(2) { left: 38.3%; animation-delay: 1.3s; }
@keyframes tree-pop { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
/* цикл магазина */
.fmt-shop { position: absolute; left: 50%; top: 50%; width: min(330px, 94%); aspect-ratio: 3 / 2; transform: translate(-50%, -50%); }
.fmt-shop__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fmt-shop__path path { fill: none; stroke: rgba(240, 30, 20, .55); stroke-width: 1.5; stroke-dasharray: 4 5; }
.fmt-shop__dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.fmt-shop__cart { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; transform: translate(-50%, -50%); border: 1px solid rgba(240, 30, 20, .5); border-radius: 50%; background: #1d0707; }
.fmt-shop__pill { position: absolute; transform: translate(-50%, -50%); padding: 9px 18px; border: 1.5px solid var(--accent); border-radius: 999px; background: #0b0505; font-weight: 600; font-size: 14px; animation: shop-pill 8s infinite; }
/* углы ромба: (150,24) (235,100) (150,176) (65,100) из 300×200 */
.fmt-shop__pill { white-space: nowrap; }
.fmt-shop__pill--1 { left: 50%; top: 12%; animation-delay: 0s; }
.fmt-shop__pill--2 { left: 78.3%; top: 50%; animation-delay: 2s; }
.fmt-shop__pill--3 { left: 50%; top: 88%; animation-delay: 4s; }
.fmt-shop__pill--4 { left: 21.7%; top: 50%; animation-delay: 6s; }
@keyframes shop-pill { 0%, 24% { background: var(--accent-btn); border-color: var(--accent-btn); box-shadow: 0 0 22px var(--glow); } 26%, 100% { background: #0b0505; border-color: var(--accent); box-shadow: none; } }
@media (max-width: 1100px) { .fmts { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
@media (max-width: 420px) { .fmt-tree__row span { padding: 6px 7px; font-size: 11px; } .fmt-shop__pill { padding: 7px 12px; font-size: 13px; } .fmt-shop__cart { width: 52px; height: 52px; } }

/* --- Путь посетителя -------------------------------------------------- */
.journey { display: grid; gap: 22px; }
.jr-row { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(0, 5fr); gap: 28px; align-items: center; padding: clamp(20px, 2.4vw, 36px); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-l); background: #140909; }
.jr-row--onyx { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(100deg, #3d0806, #150606 60%); }
.jr-row__head strong { display: block; font: 800 clamp(20px, 1.8vw, 26px)/1.2 var(--font-display); }
.jr-row__head span { color: var(--text-3); font-size: 15px; }
.jr-row--onyx .jr-row__head span { color: #ff8a80; }
.jr-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.jr-step { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 140px; padding: 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-s); background: #0f0707; opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--dg-ease), transform .6s var(--dg-ease); transition-delay: calc(.2s + var(--i) * .28s); }
.is-in .jr-step { opacity: 1; transform: none; }
.jr-step strong { font-size: clamp(15px, 1.3vw, 19px); font-weight: 600; line-height: 1.25; }
.jr-step span { color: var(--text-3); font-size: 14px; line-height: 1.35; }
.jr-step:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; height: 2px; background: rgba(255, 255, 255, .14); }
.jr-row--onyx .jr-step { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.jr-row--onyx .jr-step span { color: #e8c7c4; }
.jr-row--onyx .jr-step:not(:last-child)::after { background: linear-gradient(90deg, transparent, #ff5a50, transparent) 0 0 / 200% 100%; animation: jr-flow 1.6s linear infinite; }
@keyframes jr-flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.jr-step--lost { border-style: dashed; border-color: rgba(255, 255, 255, .3); }
.jr-step--lost strong, .jr-step--lost span { color: var(--text-3); }
.jr-x { display: block; margin-bottom: 4px; color: #ff5a50; font-size: 18px; }
.is-in .jr-step--lost { animation: jr-shake .5s var(--dg-ease) 1.3s; }
@keyframes jr-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.jr-step--lost::after, .jr-step--empty::after { display: none; }
.jr-step--empty { border: 1px dashed rgba(255, 255, 255, .07); background: transparent; }
.is-in .jr-step--empty { opacity: .9; }
.jr-step--final { border-color: transparent !important; background: var(--accent-btn); box-shadow: 0 0 40px -6px var(--glow); }
.jr-step--final span { color: rgba(255, 255, 255, .85) !important; }
.is-in .jr-step--final { animation: jr-glow 2.4s ease-in-out 2s infinite; }
@keyframes jr-glow { 50% { box-shadow: 0 0 60px 0 var(--glow); } }
@media (max-width: 1100px) {
  .jr-row { grid-template-columns: 1fr; }
  .jr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jr-step:nth-child(3n)::after { display: none; }
  .jr-step--empty { display: none; }
}
@media (max-width: 600px) {
  .jr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .jr-step { min-height: 110px; padding: 14px; }
  .jr-step::after { display: none; }
  .jr-step--empty { display: none; }
}

/* --- Путь одного ролика: 7 этапов против 5 ----------------------------- */
.pcs { display: grid; gap: 22px; }
.pc { position: relative; display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 5fr); gap: 8px 32px; align-items: center; padding: clamp(20px, 2.4vw, 36px); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-l); background: #140909; }
.pc--new { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(100deg, #3d0806, #150606 60%); }
.pc__info { grid-row: span 2; align-self: start; display: grid; gap: 6px; }
.pc__info strong { font: 800 clamp(19px, 1.7vw, 24px)/1.2 var(--font-display); }
.pc__info span { color: var(--text-3); font-size: 15px; }
.pc__count { margin-top: 14px; color: var(--text-3); font-size: 16px; }
.pc__count b { margin-right: 6px; font: 900 clamp(48px, 5vw, 70px)/1 var(--font-display); color: #6f6767; }
.pc--new .pc__count b { color: #ff5a50; }
.pc__chain { position: relative; z-index: 2; display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.pc-box { position: relative; flex: 1 1 0; display: grid; place-items: center; min-height: 78px; padding: 12px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-s); background: #0f0707; font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; text-align: center; line-height: 1.25; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--dg-ease), transform .6s var(--dg-ease); transition-delay: calc(.2s + var(--i) * .16s); }
.is-in .pc-box { opacity: 1; transform: none; }
.pc-box:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; height: 2px; background: rgba(255, 255, 255, .14); }
.pc--new .pc-box { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pc--new .pc-box:not(:last-child)::after { background: linear-gradient(90deg, transparent, #ff5a50, transparent) 0 0 / 200% 100%; animation: jr-flow 1.6s linear infinite; }
.pc-box--ghost { border: 1.5px dashed rgba(255, 255, 255, .3); color: var(--text-3); background: transparent; }
.pc-box--done { border-color: transparent !important; background: var(--accent-btn); box-shadow: 0 0 40px -6px var(--glow); }
.pc__loop { grid-column: 2; margin-top: 52px; text-align: center; font-weight: 600; font-size: 16px; opacity: 0; transition: opacity .8s var(--dg-ease) 2s; }
.pc--old .pc__loop { padding-left: 24%; color: var(--text-3); }
.pc--new .pc__loop { padding-right: 18%; color: #ff8a80; }
.is-in .pc__loop { opacity: 1; }
@media (max-width: 1100px) {
  .pc { grid-template-columns: 1fr; }
  .pc__info { grid-row: auto; }
  .pc__loop { grid-column: 1; margin-top: 8px; padding: 0 !important; text-align: left; }
  .pc__loop::before { content: "↺ "; }
  .pc .dg-links { display: none; }
  .pc__chain { flex-wrap: wrap; gap: 12px; }
  .pc-box { flex: 1 1 calc(33% - 12px); min-height: 64px; }
  .pc-box::after { display: none; }
}
@media (max-width: 480px) { .pc-box { flex-basis: calc(50% - 12px); } }

@media (prefers-reduced-motion: reduce) {
  .dg-flow, .fmt-phone__scroll, .fmt-tree__lines path, .fmt-tree__row span, .fmt-tree__sub i, .fmt-shop__pill, .jr-row--onyx .jr-step::after, .pc--new .pc-box::after, .how-core__step { animation: none !important; }
  .fmt-tree__row span, .fmt-tree__sub i { opacity: 1; }
}

/* --- Квиз: варианты в две колонки, выбор с кнопкой «Продолжить» ---------- */
.quiz__options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-opt--pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 18px; }
.quiz-opt__check { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--border-strong); border-radius: 50%; transition: background .2s, border-color .2s; }
.quiz-opt--pick[role="checkbox"] .quiz-opt__check { border-radius: 6px; }
.quiz-opt--pick.is-selected .quiz-opt__check { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.quiz__actions { display: flex; gap: 10px; margin-top: 4px; }
.quiz__actions .quiz__next { flex: 1; margin-top: 0; }
.quiz__skip--pill { flex: none; padding: 0 22px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); }
.quiz__skip--pill:hover { border-color: var(--text-3); }
@media (max-width: 480px) {
  .quiz__options--grid { grid-template-columns: 1fr; }
  .quiz__skip--pill { padding: 0 16px; }
}

/* --- Окно выбора направления («Обсудить проект» в шапке и на главной) ---- */
.quiz__dirs { margin-top: 24px; }
.quiz-dir { display: flex; align-items: center; gap: 16px; padding: 18px 52px 18px 18px; }
.quiz-dir .quiz-opt__arrow { top: 50%; margin-top: -8px; }
.quiz-dir__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, #1a0b0b); }
.quiz-dir__icon svg { width: 24px; height: 24px; fill: none; stroke: #ff5a50; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quiz-dir__body { display: grid; gap: 4px; }
.quiz-dir .quiz-opt__title { font-size: 18px; }

/* --- Наш подход: фраза в рамке после «О нас» ------------------------------ */
@property --motto-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.motto { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.motto__card {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4.5vw, 56px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-l);
  background:
    radial-gradient(ellipse 60% 120% at 100% 100%, color-mix(in srgb, var(--accent-deep) 55%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg));
  box-shadow: 0 30px 80px -40px var(--glow);
}
/* рамка: тонкая красная линия, по которой медленно бежит яркий блик */
.motto__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--motto-a),
    rgba(240, 30, 20, .25), rgba(240, 30, 20, .25) 60%, var(--accent-hover) 75%, #ffb3ad 80%, var(--accent-hover) 85%, rgba(240, 30, 20, .25));
  -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 exclude, linear-gradient(#000 0 0);
  animation: motto-spin 8s linear infinite;
}
@keyframes motto-spin { to { --motto-a: 360deg; } }
.motto__tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.motto__title {
  margin-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.motto__title em { display: block; margin-top: .3em; font-style: normal; color: var(--accent); text-shadow: 0 0 40px var(--glow-soft); }
@media (prefers-reduced-motion: reduce) { .motto__card::before { animation: none; } }

/* Заголовок главной: ровно три строки на любой ширине.
   Строки не разрываются, а шрифт подстраивается под ширину колонки
   (самая длинная строка «Пока вы тратите» ≈ 10.6 размера шрифта). */
.hero--home .hero__content { container-type: inline-size; }
.hero__title--lines { font-size: min(68px, calc(100cqi / 10.8)); }
.hero__title--lines > span { display: block; white-space: nowrap; }

/* ==========================================================================
   Страница «ИИ-агенты» (по макетам): .ag-*
   ========================================================================== */
.ag-sec { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.ag-sec .container { position: relative; }
.ag-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3);
}
.ag-kicker::before { content: ""; width: 36px; height: 2px; background: var(--accent); }
.ag-kicker b { color: var(--accent); font-weight: 700; }
.ag-head { display: grid; gap: 16px; justify-items: start; margin-bottom: clamp(32px, 4vw, 52px); }
.ag-head--center { justify-items: center; text-align: center; }
.ag-title, .ag-hero__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.02em;
}
.ag-title em, .ag-hero__title em { font-style: normal; color: var(--accent); }
.ag-lead { margin: 0; max-width: 640px; color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); }
.ag-label { display: block; margin: 0; font: 700 11px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ag-label--red { color: #ff5a50; }
.ag-ico { width: 24px; height: 24px; fill: none; stroke: #ff5a50; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ag-ico .fill { fill: var(--accent); stroke: none; }
.ag-ico .on-fill { stroke: #fff; stroke-width: 1.4; }
.ag-ico--lg { width: 64px; height: 64px; stroke-width: 1.2; }
.ag-dots { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ag-dots li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.ag-dots li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ag-card-base, .ag-load__card, .ag-diff__card, .ag-dept, .ag-trigger, .ag-safe, .ag-box, .ag-ctl__card, .ag-ctl__flow, .ag-ctl__log, .ag-fmt, .ag-need__card, .ag-demo, .ag-faq__item, .ag-night__card {
  background: linear-gradient(180deg, #170d0d, #0f0909);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-m);
}
.btn--white { background: #fff; color: #120707; border-color: transparent; gap: 12px; }
.btn--white:hover { background: #ffe9e7; border-color: transparent; }

/* --- Первый экран ----------------------------------------------------- */
.ag-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 96px) 0 clamp(32px, 4vw, 64px); isolation: isolate; }
.ag-hero::before { content: ""; position: absolute; inset: -20% -10% 0 40%; z-index: -1; background: radial-gradient(ellipse 50% 55% at 60% 40%, color-mix(in srgb, var(--accent-deep) 70%, transparent), transparent 70%); }
.ag-hero__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.ag-hero__title { margin-top: 20px; font-size: clamp(38px, 4.9vw, 74px); }
.ag-hero__text { max-width: 560px; margin: 24px 0 0; color: var(--text-2); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; }
.ag-checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.ag-checks li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.ag-checks svg, .ag-chip svg, .ag-guard__mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-checks svg { flex: none; box-sizing: content-box; padding: 4px; border-radius: 50%; color: #ff5a50; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ag-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 32px; }
.ag-hero__actions .btn { gap: 12px; }
.ag-hero__note { display: grid; margin: 0; font-size: 14px; }
.ag-hero__note span { color: var(--text-3); }
.ag-hero__visual { position: relative; min-height: 520px; }
.ag-hero__statue { position: absolute; right: -6%; top: 50%; width: min(110%, 640px); height: auto; transform: translateY(-50%); filter: drop-shadow(0 0 60px var(--glow-soft)); -webkit-mask-image: radial-gradient(ellipse 60% 62% at 55% 48%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 55% 48%, #000 60%, transparent 100%); }
.ag-hero__badge { position: absolute; right: 0; top: 6%; display: grid; gap: 2px; margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--accent); box-shadow: 0 16px 40px -12px var(--glow); font-size: 13px; font-weight: 600; animation: ag-float 5s ease-in-out infinite; }
.ag-hero__badge small { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
@keyframes ag-float { 50% { transform: translateY(-8px); } }
.ag-log { position: absolute; left: 0; bottom: 0; width: min(410px, 92%); padding: 16px 18px 8px; border-radius: var(--r-m); border: 1px solid rgba(255, 255, 255, .12); background: color-mix(in srgb, #120a0a 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px #000; }
.ag-log__head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.ag-log__head small, .ag-box__head span + span { margin-left: auto; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ag-live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ag-live 1.8s infinite; }
@keyframes ag-live { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ag-log__list { margin: 0; padding: 0; list-style: none; }
.ag-log__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13.5px; animation: ag-row .5s var(--ease) both; animation-delay: calc(.6s + var(--i) * .45s); }
.ag-log__row:first-child { border-top: 0; }
.ag-log__row time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ag-log__row i { font-style: normal; color: var(--text-3); }
.ag-log__row svg { width: 14px; height: 14px; fill: none; stroke: #ff5a50; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-log__row em { font-style: normal; font-size: 11px; font-weight: 700; color: #f2c14e; white-space: nowrap; }
@keyframes ag-row { from { opacity: 0; transform: translateY(8px); } }

/* --- Ролик ------------------------------------------------------------ */
.ag-reel-sec { padding-bottom: clamp(24px, 3vw, 40px); }
.ag-reel { position: relative; overflow: hidden; border-radius: var(--r-l); border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(110deg, #1d0b0a, #2a0c0a 55%, #120808); }
.ag-reel__teaser { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr); gap: 28px; align-items: center; min-height: 300px; padding: 0 40px; }
.ag-reel__play { position: relative; z-index: 2; display: grid; place-items: center; width: 116px; height: 116px; padding: 0; border: 14px solid rgba(255, 255, 255, .08); border-radius: 50%; background: #fff; background-clip: padding-box; cursor: pointer; transition: transform .3s var(--ease); }
.ag-reel__play span { width: 0; height: 0; margin-left: 6px; border-left: 26px solid #120707; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.ag-reel__play:hover { transform: scale(1.06); }
.ag-reel__play::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); animation: ag-ping 2.4s var(--ease) infinite; }
@keyframes ag-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.ag-reel__title { position: relative; z-index: 2; }
.ag-reel__tag { margin: 0 0 8px; font: 700 12px/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #ff5a50; }
.ag-reel__title h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; }
.ag-reel__img { position: absolute; left: 34%; top: 0; height: 100%; width: 42%; object-fit: cover; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 70%, transparent); pointer-events: none; }
.ag-reel__aside { position: relative; z-index: 2; justify-self: end; max-width: 300px; padding: 24px; border-radius: var(--r-m); background: rgba(12, 6, 6, .72); backdrop-filter: blur(6px); }
.ag-reel__aside h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.ag-reel__aside p { margin: 0; color: var(--text-2); font-size: 15px; }
.ag-reel__player { display: none; }
.ag-reel.is-open .ag-reel__teaser { display: none; }
.ag-reel.is-open .ag-reel__player { display: grid; }
.ag-reel.is-open { border-color: transparent; background: none; }

/* --- 01. Нагрузка ----------------------------------------------------- */
.ag-load { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ag-load__card { display: flex; flex-direction: column; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.ag-load__card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-4px); }
.ag-load__icon { display: grid; place-items: center; height: 120px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: radial-gradient(ellipse 60% 80% at 50% 0, rgba(240, 30, 20, .14), transparent 70%); }
.ag-load__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 26px; }
.ag-load__now { min-height: 4.4em; margin: 8px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.ag-load__arrow { position: relative; margin: 0; padding: 18px 0; text-align: center; color: var(--accent); }
.ag-load__arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 30, 20, .5), transparent); }
.ag-load__arrow span { position: relative; padding: 0 10px; background: #120b0b; }
.ag-load__then { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.3; }

/* --- 02. Разница ------------------------------------------------------ */
.ag-sec--diff::before, .ag-sec--calc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 40% at 50% 0, rgba(122, 10, 6, .45), transparent 70%); pointer-events: none; }
.ag-sec--diff, .ag-sec--calc { isolation: isolate; }
.ag-diff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ag-diff__card { display: flex; flex-direction: column; padding: 28px; }
.ag-diff__card.is-hot { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(180deg, #2a0b09, #120808); box-shadow: 0 30px 80px -40px var(--glow); }
.ag-diff__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag-diff__top h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 2.4vw, 32px); }
.ag-meter, .ag-bars { display: inline-flex; gap: 5px; }
.ag-meter i { width: 30px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.ag-meter i.on { background: var(--accent); }
.ag-diff__text { margin: 14px 0 20px; color: var(--text-2); font-size: 16px; }
.ag-diff__text b { color: var(--text); }
.ag-chat { display: grid; align-content: start; gap: 12px; min-height: 250px; padding: 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .07); background: #0b0606; }
.ag-msg { max-width: 88%; margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.ag-msg--me { justify-self: end; background: #fff; color: #120707; border-bottom-right-radius: 4px; }
.ag-msg--bot { justify-self: start; background: #2a1514; color: var(--text); border-bottom-left-radius: 4px; }
.ag-msg--red { background: var(--accent); }
.ag-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #1f1312; border: 1px solid rgba(255, 255, 255, .08); font-size: 12px; font-weight: 600; }
.ag-diff__status { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 15px; font-weight: 600; color: var(--text-3); }
.ag-diff__status span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2a1d1c; font-size: 13px; }
.ag-diff__status--ok { color: var(--text); }
.ag-diff__status--ok span { background: #fff; color: var(--accent); }
.ag-scale { display: flex; align-items: center; gap: 24px; margin-top: 28px; font: 700 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.ag-scale i { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(240, 30, 20, .2), var(--accent)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.ag-scale i::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 9px solid var(--accent); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.ag-scale.is-in i { transform: none; }
/* сообщения в карточках появляются по очереди */
.js .ag-diff:not(.ag-diff--live) .ag-msg, .js .ag-diff:not(.ag-diff--live) .ag-chat__chips, .js .ag-diff:not(.ag-diff--live) .ag-diff__status { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); }
.js .ag-diff.is-in:not(.ag-diff--live) .ag-msg--me { opacity: 1; transform: none; transition-delay: calc(var(--d) * .25s + .3s); }
.js .ag-diff.is-in:not(.ag-diff--live) .ag-msg--bot { opacity: 1; transform: none; transition-delay: calc(var(--d) * .25s + 1.1s); }
.js .ag-diff.is-in:not(.ag-diff--live) .ag-chat__chips { opacity: 1; transform: none; transition-delay: calc(var(--d) * .25s + 1.7s); }
.js .ag-diff.is-in:not(.ag-diff--live) .ag-diff__status { opacity: 1; transform: none; transition-delay: calc(var(--d) * .25s + 2s); }
.ag-diff__card { --d: 0; }

/* --- 03. Одна ночь ---------------------------------------------------- */
.ag-night { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto 40px auto; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.ag-night__line { position: relative; grid-row: 2; grid-column: 1 / -1; align-self: center; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.ag-night__line i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #6d100b, var(--accent) 30%, var(--accent) 80%, #ffb3ad); transform-origin: left; transform: scaleX(0); transition: transform 2.4s var(--ease) .2s; }
.ag-night.is-in .ag-night__line i { transform: none; }
.ag-night__ev { position: relative; display: grid; gap: 12px; align-content: end; }
.ag-night__ev--up { grid-row: 1; padding-bottom: 20px; }
.ag-night__ev--down { grid-row: 3; align-content: start; padding-top: 20px; }
.ag-night__ev:nth-of-type(2) { grid-column: 1; }
.ag-night__ev:nth-of-type(3) { grid-column: 2; }
.ag-night__ev:nth-of-type(4) { grid-column: 3; }
.ag-night__ev:nth-of-type(5) { grid-column: 4; }
.ag-night__ev:nth-of-type(6) { grid-column: 5; }
.ag-night__ev--down time { order: 2; }
.ag-night__ev time { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.01em; }
.ag-night__card { padding: 16px 18px; }
.ag-night__card small { display: block; margin-bottom: 6px; color: var(--text-3); font-size: 12px; }
.ag-night__card p { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.ag-night__ev.is-hot .ag-night__card { background: var(--accent); border-color: transparent; box-shadow: 0 20px 50px -20px var(--glow); }
.ag-night__ev.is-hot small { color: rgba(255, 255, 255, .8); }
/* точка на линии и ножка к карточке */
.ag-night__ev::before { content: ""; position: absolute; left: 30px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--accent); background: var(--bg); z-index: 1; transform: scale(0); transition: transform .4s var(--ease); transition-delay: calc(.4s + var(--i) * .4s); }
.ag-night__ev--up::before { bottom: -28px; }
.ag-night__ev--down::before { top: -28px; }
.ag-night__ev.is-hot::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(240, 30, 20, .2); }
.ag-night__ev::after { content: ""; position: absolute; left: 30px; width: 1px; height: 22px; background: rgba(240, 30, 20, .6); }
.ag-night__ev--up::after { bottom: -6px; }
.ag-night__ev--down::after { top: -6px; }
.ag-night.is-in .ag-night__ev::before { transform: none; }
.js .ag-night .ag-night__card, .js .ag-night time { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s var(--ease); transition-delay: calc(.5s + var(--i) * .4s); }
.js .ag-night.is-in .ag-night__card, .js .ag-night.is-in time { opacity: 1; transform: none; }

/* --- 04. Уровни ------------------------------------------------------- */
.ag-sec--levels::after { content: ""; position: absolute; right: 0; top: 0; width: 45%; height: 70%; z-index: -1; background: radial-gradient(ellipse at 70% 30%, rgba(122, 10, 6, .35), transparent 65%); pointer-events: none; }
.ag-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; padding-top: 16px; }
.ag-level { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; text-align: left; color: var(--text); font: inherit; cursor: pointer; border-radius: var(--r-m); border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, #170d0d, #0f0909); transition: border-color .3s, transform .35s var(--ease), box-shadow .35s, background .35s; }
.ag-level:hover { border-color: rgba(240, 30, 20, .45); }
.ag-level.is-active { transform: translateY(-12px); border-color: var(--accent); background: linear-gradient(180deg, #3a0d0a, #170908 65%); box-shadow: 0 30px 70px -36px var(--glow); }
.ag-level__badge { position: absolute; left: 24px; top: -14px; padding: 6px 14px; border-radius: 999px; background: var(--accent); font: 700 11px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .3s, transform .35s var(--ease); }
.ag-level.is-active .ag-level__badge { opacity: 1; transform: none; }
.ag-level__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ag-level__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 4vw, 60px); line-height: .9; color: rgba(255, 255, 255, .14); transition: color .35s; }
.ag-level.is-active .ag-level__num { color: var(--accent); }
.ag-level__title { min-height: 2.5em; font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; }
.ag-level__signs .ag-dots li { font-size: 15px; }
.ag-level__todo { display: grid; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.ag-level__todo b, .ag-level__result b { font-weight: 600; font-size: 15px; line-height: 1.4; }
.ag-level__result { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .04); transition: background .35s; }
.ag-level__result .ag-label { color: #ff5a50; }
.ag-level.is-active .ag-level__result { background: var(--accent); }
.ag-level.is-active .ag-level__result .ag-label { color: rgba(255, 255, 255, .85); }
.ag-levels__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.ag-levels__track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: linear-gradient(90deg, #6d100b, var(--accent)); }
.ag-levels__track i { position: relative; justify-self: center; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); background: var(--bg); transition: background .3s, box-shadow .3s; }
.ag-levels__track i.is-active { background: var(--accent); box-shadow: 0 0 0 7px rgba(240, 30, 20, .2); }

/* --- 05. Каталог ------------------------------------------------------ */
.ag-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.ag-tab { padding: 10px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: var(--text-2); font: 500 14px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ag-tab:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.ag-tab[aria-selected="true"] { background: #fff; color: #120707; border-color: #fff; font-weight: 600; }
.ag-panels { border-radius: var(--r-l); border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, #150c0c, #0d0808); }
.ag-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: clamp(24px, 3.4vw, 44px); animation: ag-fade .45s var(--ease); }
@keyframes ag-fade { from { opacity: 0; transform: translateY(8px); } }
.ag-pill { justify-self: start; display: inline-block; margin: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(242, 193, 78, .45); color: #f2c14e; font: 700 11px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.ag-panel__title { margin: 22px 0 8px; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 2.6vw, 36px); }
.ag-panel__lead { margin: 0 0 26px; color: var(--text-2); font-size: 16px; }
.ag-steps { position: relative; display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: ag; }
.ag-steps li { position: relative; display: grid; gap: 4px; padding-left: 64px; counter-increment: ag; animation: ag-row .5s var(--ease) both; animation-delay: calc(var(--i) * .12s); }
.ag-steps li::before { content: counter(ag); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); background: #1a0a09; font-weight: 700; }
.ag-steps li:last-child::before { background: var(--accent); }
.ag-steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: -26px; width: 2px; background: rgba(240, 30, 20, .5); }
.ag-steps b { font-size: 17px; font-weight: 600; }
.ag-steps span { color: var(--text-3); font-size: 14px; }
.ag-panel__side { display: grid; gap: 14px; align-content: start; }
.ag-box { padding: 18px 20px; background: #110909; }
.ag-box__head { display: flex; gap: 12px; margin: 0 0 8px; font: 600 11px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ag-rows { margin: 0; padding: 0; list-style: none; }
.ag-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 15px; color: var(--text-2); }
.ag-rows b { font-weight: 600; text-align: right; }
.ag-rows b.ok { color: var(--text); }
.ag-rows b.warn { color: #f2c14e; }
.ag-note { margin: 14px 0 4px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(242, 193, 78, .4); background: rgba(242, 193, 78, .07); color: #f2c14e; font-size: 14px; font-weight: 600; }
.ag-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.ag-tools span { padding: 8px 14px; border-radius: 10px; background: #1f1312; font-size: 14px; font-weight: 600; }
.ag-guard { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 20px; border-radius: var(--r-m); border: 1px solid rgba(255, 255, 255, .08); background: #110909; font-weight: 600; font-size: 15px; }
.ag-guard__mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #120707; }
.ag-guard__mark svg { width: 14px; height: 14px; }
.ag-depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ag-dept { padding: 22px 24px 24px; }
.ag-dept h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }

/* --- 06. Сам, без напоминаний ---------------------------------------- */
.ag-pro { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 32px; align-items: center; }
.ag-pro__vs { display: grid; gap: 16px; }
.ag-pro__vs > div { padding: 24px 26px; border-radius: var(--r-m); }
.ag-pro__vs h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.ag-pro__vs p { margin: 0; font-size: 15px; }
.ag-pro__bot { border: 1px solid rgba(255, 255, 255, .12); color: var(--text-2); }
.ag-pro__bot h3 { color: var(--text); }
.ag-pro__agent { background: var(--accent); box-shadow: 0 24px 60px -24px var(--glow); }
.ag-pro__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ag-trigger { display: flex; gap: 16px; padding: 22px; }
.ag-trigger__icon, .ag-safe__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(240, 30, 20, .12); border: 1px solid rgba(240, 30, 20, .3); }
.ag-trigger__text { margin: 6px 0 0; font-weight: 600; font-size: 16px; line-height: 1.4; }
.ag-pro.is-in .ag-trigger__icon { animation: ag-pulse 6s infinite; animation-delay: calc(var(--i) * 1.5s); }
@keyframes ag-pulse { 0%, 22%, 100% { background: rgba(240, 30, 20, .12); box-shadow: none; } 8% { background: var(--accent); box-shadow: 0 0 0 8px rgba(240, 30, 20, .15); } }
.ag-pro.is-in .ag-trigger__icon .ag-ico { animation: ag-pulse-ico 6s infinite; animation-delay: calc(var(--i) * 1.5s); }
@keyframes ag-pulse-ico { 0%, 22%, 100% { stroke: #ff5a50; } 8% { stroke: #fff; } }

/* --- 07. Контроль ----------------------------------------------------- */
.ag-ctl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.ag-ctl__flow { grid-column: span 7; }
.ag-ctl__log { grid-column: span 5; }
.ag-ctl__card { grid-column: span 6; }
.ag-ctl__flow { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; grid-template-rows: auto 80px auto; column-gap: 9%; padding: clamp(24px, 3vw, 40px); min-height: 440px; }
.ag-ctl__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ag-ctl__svg path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-ctl__svg .red { stroke: var(--accent); }
.ag-ctl__svg .grey { stroke: rgba(255, 255, 255, .45); stroke-dasharray: 5 6; }
.ag-ctl__svg .tip { fill: var(--accent); stroke: none; }
.ag-ctl__svg .tip.grey { fill: rgba(255, 255, 255, .55); stroke: none; stroke-dasharray: none; }
.js .ag-ctl__svg g { opacity: 0; transition: opacity .6s; }
.js .ag-ctl__flow.is-in .ag-ctl__svg g { opacity: 1; }
.js .ag-ctl__flow.is-in .ag-ctl__svg g:nth-child(2) { transition-delay: .5s; }
.js .ag-ctl__flow.is-in .ag-ctl__svg g:nth-child(3) { transition-delay: .9s; }
.ag-ctl__svg .flow { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 0 1; stroke-dashoffset: 0; }
.ag-node { position: relative; z-index: 1; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.ag-node small { display: block; margin-bottom: 4px; font: 700 10.5px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ag-node i { font-style: normal; }
.ag-node--agent { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; max-width: 230px; border: 1px solid rgba(240, 30, 20, .55); background: linear-gradient(180deg, #4a0f0b, #2a0907); }
.ag-node--q { grid-column: 2; grid-row: 1; justify-self: start; display: grid; place-items: center; width: 170px; height: 170px; border-radius: 50%; background: #fff; color: #120707; font-family: var(--font-display); font-weight: 800; font-size: 19px; text-align: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .04); }
.ag-node--no { grid-column: 1; grid-row: 3; align-self: start; border: 1px solid rgba(255, 255, 255, .12); background: #1a0f0e; }
.ag-node--yes { grid-column: 2; grid-row: 3; align-self: start; border: 1px solid rgba(242, 193, 78, .5); background: #1f0d0b; }
.ag-node--yes small { color: #f2c14e; }
.ag-ctl__lab { position: absolute; z-index: 1; font: 700 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.ag-ctl__lab { transform: translate(-50%, -100%); }
.ag-ctl__lab--no { color: var(--text-3); }
.ag-ctl__lab--yes { color: #ff5a50; }
.ag-confirm { display: flex; gap: 8px; margin-top: 12px; }
.ag-confirm[hidden] { display: none; }
.ag-confirm button { padding: 8px 12px; white-space: nowrap; border-radius: 10px; border: 0; font: 700 13px/1 var(--font-body); cursor: pointer; transition: transform .2s, filter .2s; }
.ag-confirm button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.ag-confirm__ok { background: var(--accent); color: #fff; }
.ag-confirm__no { background: #2a1d1c; color: var(--text); }
.ag-confirm__done { display: block; margin-top: 12px; font-size: 13px; color: #f2c14e; }
.ag-ctl__log { padding: 22px 24px; }
.ag-journal { margin: 0; padding: 0; list-style: none; }
.ag-journal li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14.5px; color: var(--text-2); }
.ag-journal li:last-child { border-bottom: 0; }
.ag-journal time { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 2px; }
.ag-journal b { color: var(--text); font-weight: 600; }
.ag-journal li.wait b { color: #f2c14e; }
.js .ag-journal li { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(.3s + var(--i) * .35s); }
.js .ag-ctl__log.is-in .ag-journal li { opacity: 1; transform: none; }
.ag-ctl__card { padding: 26px 28px; }
.ag-ctl__card h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.ag-ctl__card > p { margin: 0 0 18px; color: var(--text-3); font-size: 14.5px; }
.ag-access { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ag-access li { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; background: #0b0606; font-weight: 600; }
.ag-acc { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.ag-acc--rw { background: rgba(240, 30, 20, .2); color: #ff6a60; }
.ag-acc--r { background: #2a1d1c; color: var(--text-2); }
.ag-acc--off { border: 1px dashed rgba(255, 255, 255, .25); color: var(--text-3); }
.ag-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-trust__step { padding: 16px; border-radius: 14px; background: #0b0606; }
.ag-trust__step b { font-family: var(--font-display); font-weight: 800; }
.ag-trust__step p { margin: 6px 0 16px; color: var(--text-3); font-size: 13.5px; line-height: 1.4; }
.ag-bars i { width: 26px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.ag-bars i.on { background: #fff; }

/* --- 08. Безопасность ------------------------------------------------- */
.ag-safety { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ag-safe { display: flex; gap: 18px; padding: 24px; transition: border-color .3s; }
.ag-safe:hover { border-color: rgba(240, 30, 20, .4); }
.ag-safe__icon { border-radius: 50%; }
.ag-safe h3 { margin: 4px 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.3; }
.ag-safe p { margin: 0; color: var(--text-3); font-size: 14.5px; }

/* --- 09. Калькулятор -------------------------------------------------- */
.ag-calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-l); border: 1px solid rgba(255, 255, 255, .1); background: #120909; }
.ag-calc__fields { display: grid; gap: 30px; padding: clamp(24px, 3.4vw, 48px); }
.ag-range { display: grid; gap: 14px; }
.ag-range__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; }
.ag-range__top output { flex: none; white-space: nowrap; }
.ag-range__top output b { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; }
.ag-range__top output small { color: var(--text-3); font-size: 13px; }
.ag-range__ends { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; }
.ag-range input { --p: 0%; width: 100%; height: 26px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ag-range input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #8a120c, var(--accent) var(--p), rgba(255, 255, 255, .1) var(--p)); }
.ag-range input::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #8a120c, var(--accent) var(--p), rgba(255, 255, 255, .1) var(--p)); }
.ag-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(240, 30, 20, .35), 0 6px 16px rgba(0, 0, 0, .5); transition: box-shadow .2s; }
.ag-range input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(240, 30, 20, .35), 0 6px 16px rgba(0, 0, 0, .5); }
.ag-range input:focus-visible { outline: none; }
.ag-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(240, 30, 20, .6); }
.ag-rate { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .18); }
.ag-rate input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--text); font: 500 15px var(--font-body); outline: none; }
.ag-rate input::placeholder { color: var(--text-3); }
.ag-rate:focus-within { border-color: rgba(240, 30, 20, .6); }
.ag-rate__unit { flex: none; padding: 9px 14px; border-radius: 10px; background: #1f1312; font-size: 14px; font-weight: 600; }
.ag-calc__result { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: clamp(24px, 3.4vw, 48px); background: radial-gradient(ellipse 90% 80% at 20% 0, #d8160d, transparent 70%), linear-gradient(160deg, #c3130b, #6d0a06); }
.ag-calc__result .ag-label { color: rgba(255, 255, 255, .8); }
.ag-calc__hours { margin: 12px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -.03em; }
.ag-calc__per { margin: 4px 0 18px; font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.ag-calc__segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; margin: 0 0 18px; }
.ag-calc__segs i { height: 14px; border-radius: 5px; background: rgba(255, 255, 255, .18); transition: background .3s; }
.ag-calc__segs i.on { background: rgba(255, 255, 255, .92); }
.ag-calc__formula { width: 100%; margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(60, 4, 2, .45); font-weight: 600; font-size: 15px; }
.ag-calc__money { margin: 12px 0 0; font-weight: 700; font-size: 18px; }
.ag-calc__note { margin: 14px 0 24px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }

/* --- 10. Как подключаем ----------------------------------------------- */
.ag-road { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ag-road::before { content: ""; position: absolute; left: 32px; right: 0; top: 31px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(240, 30, 20, .3)); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.ag-road.is-in::before { transform: none; }
.ag-road__step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.ag-road__num { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); font-family: var(--font-display); font-weight: 900; font-size: 22px; transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .5s; transition-delay: calc(.2s + var(--i) * .2s); }
.ag-road__step:first-child .ag-road__num { background: var(--accent); box-shadow: 0 0 30px -4px var(--glow); }
.ag-road.is-in .ag-road__num { transform: none; opacity: 1; }
.ag-road__step h3 { margin: 0; min-height: 3.75em; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.25; }
.ag-road__get { flex: 1; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: #120a0a; }
.ag-road__get p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.ag-need { display: grid; grid-template-columns: minmax(0, .9fr) repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.ag-need__head h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.2vw, 30px); }
.ag-need__head p { margin: 0; color: var(--text-3); }
.ag-need__card { padding: 24px; }
.ag-need__card b { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--accent); }
.ag-need__card p { margin: 14px 0 0; font-weight: 600; font-size: 16px; line-height: 1.45; }
.ag-strip, .ag-perk { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 18px 24px; border-radius: var(--r-m); border: 1px solid rgba(240, 30, 20, .4); background: linear-gradient(90deg, #2a0907, #160808); font-weight: 600; }
.ag-strip .ag-guard__mark, .ag-perk .ag-guard__mark { width: 24px; height: 24px; background: var(--accent); color: #fff; }

/* --- 11. Форматы ------------------------------------------------------ */
.ag-fmts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ag-fmt { display: flex; flex-direction: column; gap: 10px; padding: 24px; transition: transform .35s var(--ease), border-color .3s; }
.ag-fmt:hover { transform: translateY(-4px); border-color: rgba(240, 30, 20, .4); }
.ag-fmt.is-hot { border-color: var(--accent); background: linear-gradient(180deg, #3a0d0a, #150908); box-shadow: 0 30px 70px -40px var(--glow); }
.ag-fmt__art { display: grid; place-items: center; height: 100px; margin-bottom: 8px; }
.ag-fmt__art svg { height: 84px; width: auto; overflow: visible; }
.ag-art__ring { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 4; animation: ag-spin 16s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ag-spin { to { transform: rotate(360deg); } }
.ag-art__dot { fill: var(--accent); }
.ag-art__white { fill: #fff; }
.ag-art__box { fill: none; stroke: var(--accent); stroke-width: 2; }
.ag-art__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-art__line--thick { stroke-width: 4; }
.ag-fmt h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.25; }
.ag-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ag-perk { margin-top: 16px; padding: 16px 18px; border-style: dashed; border-color: rgba(255, 255, 255, .14); background: none; font-size: 14.5px; }
.ag-perk .ag-guard__mark { background: rgba(240, 30, 20, .2); color: #ff5a50; }

/* --- 12. Демо и 13. Вопросы ------------------------------------------- */
.ag-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; }
.ag-duo .ag-title { font-size: clamp(30px, 3.4vw, 48px); }
.ag-demo { padding: 20px; border-radius: var(--r-l); }
.ag-demo__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.ag-demo__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.ag-demo__head span { display: grid; }
.ag-demo__head b { font-size: 15px; }
.ag-demo__head small { color: var(--text-3); font-size: 12px; }
.ag-demo__head em { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(242, 193, 78, .5); color: #f2c14e; font: 700 10.5px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; font-style: normal; }
.ag-demo__body { display: grid; align-content: start; gap: 14px; min-height: 270px; }
.ag-demo [data-step] { opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s var(--ease); }
.ag-demo [data-step].is-shown { opacity: 1; transform: none; }
.ag-demo .ag-typing.is-gone { display: none; }
.ag-typing { justify-self: start; display: inline-flex; gap: 5px; margin: 0; padding: 14px 16px; border-radius: 14px; background: #2a1514; }
.ag-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: ag-dot 1s infinite; }
.ag-typing i:nth-child(2) { animation-delay: .15s; }
.ag-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-dot { 50% { transform: translateY(-4px); background: #fff; } }
.ag-faq { display: grid; gap: 10px; }
.ag-faq__item { overflow: hidden; transition: border-color .3s, background .3s; }
.ag-faq__item[open] { border-color: rgba(240, 30, 20, .5); background: linear-gradient(180deg, #2a0a08, #150908); }
.ag-faq__item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.ag-faq__item summary::-webkit-details-marker { display: none; }
.ag-faq__plus { position: relative; flex: none; width: 14px; height: 14px; }
.ag-faq__plus::before, .ag-faq__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--accent); transition: transform .3s var(--ease); }
.ag-faq__plus::after { transform: rotate(90deg); }
.ag-faq__item[open] .ag-faq__plus::after { transform: none; }
.ag-faq__item p { margin: -6px 22px 20px; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* --- Форма «Бесплатный разбор» ---------------------------------------- */
.ag-sec--form { padding-top: clamp(24px, 3vw, 40px); }
.ag-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); overflow: hidden; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-l); background: radial-gradient(ellipse 80% 90% at 0 0, #e3190f, transparent 70%), linear-gradient(140deg, #c8140c, #7a0a06 75%, #4a0604); box-shadow: 0 40px 100px -50px var(--glow); }
.ag-form__kicker { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 12px/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.ag-form__kicker::before { content: ""; width: 36px; height: 2px; background: rgba(255, 255, 255, .7); }
.ag-form__title { margin: 18px 0 16px; font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; }
.ag-form__title u { text-decoration-thickness: 4px; text-underline-offset: 8px; }
.ag-form__text { margin: 0 0 28px; max-width: 460px; font-size: 17px; color: rgba(255, 255, 255, .9); }
.ag-form__tg { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: rgba(40, 3, 2, .45); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s; }
.ag-form__tg:hover { background: rgba(40, 3, 2, .7); }
.ag-form__tg .ag-ico { stroke: #fff; }
.ag-form__body { display: grid; gap: 10px; align-content: start; }
.ag-form__body textarea, .ag-form__field input { width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(40, 3, 2, .35); color: #fff; font: 400 15px/1.45 var(--font-body); resize: vertical; outline: none; transition: border-color .2s, background .2s; }
.ag-form__body textarea::placeholder, .ag-form__field input::placeholder { color: rgba(255, 255, 255, .6); }
.ag-form__body textarea:focus, .ag-form__field input:focus { border-color: #fff; background: rgba(40, 3, 2, .5); }
.ag-form__label { margin: 12px 0 2px; font: 700 11px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.ag-form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-fchip { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(40, 3, 2, .3); color: #fff; font: 600 14px/1 var(--font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ag-fchip:hover { border-color: #fff; }
.ag-fchip.is-on { background: #fff; color: #120707; border-color: #fff; }
.ag-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ag-form__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .85); cursor: pointer; }
.ag-form__consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #fff; }
.ag-form__consent a { color: #fff; }
.ag-form__error { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(20, 0, 0, .45); font-size: 14px; font-weight: 600; }
.ag-form__send { width: 100%; margin-top: 10px; }
.ag-form__send:disabled { opacity: .7; cursor: progress; }
.ag-form__done { display: grid; gap: 12px; align-content: center; justify-items: start; outline: none; }
.ag-form__done h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 32px; }
.ag-form__done p { margin: 0; font-size: 17px; max-width: 420px; }
.ag-form__done .ag-guard__mark { width: 52px; height: 52px; }
.ag-form__done .ag-guard__mark svg { width: 24px; height: 24px; }

/* --- Адаптив ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .ag-road { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .ag-road::before { display: none; }
  .ag-reel__teaser { grid-template-columns: auto minmax(0, 1fr); }
  .ag-reel__aside { display: none; }
  .ag-reel__img { left: auto; right: 0; width: 55%; }
}
@media (max-width: 1080px) {
  .ag-ctl > * { grid-column: 1 / -1; }
  .ag-hero__inner, .ag-pro, .ag-ctl, .ag-panel, .ag-duo, .ag-form, .ag-calc { grid-template-columns: 1fr; }
  .ag-hero__visual { min-height: 480px; }
  .ag-hero__statue { right: 0; left: 0; margin: 0 auto; width: min(100%, 560px); }
  .ag-load, .ag-levels, .ag-fmts, .ag-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-levels { row-gap: 32px; }
  .ag-levels__track { display: none; }
  .ag-level.is-active { transform: none; }
  .ag-depts, .ag-safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-need { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-need__head { grid-column: 1 / -1; }
  .ag-night { grid-template-columns: 1fr; grid-template-rows: none; gap: 18px; padding-left: 36px; }
  .ag-night__line { position: absolute; grid-row: auto; left: 9px; top: 0; bottom: 0; width: 3px; height: auto; }
  .ag-night__line i { transform-origin: top; transform: scaleY(0); }
  .ag-night.is-in .ag-night__line i { transform: none; }
  .ag-night__ev, .ag-night__ev--up, .ag-night__ev--down { grid-row: auto; grid-column: 1 !important; padding: 0; align-content: start; gap: 8px; }
  .ag-night__ev--down time { order: 0; }
  .ag-night__ev::before, .ag-night__ev--up::before, .ag-night__ev--down::before { left: -26px; top: 8px; bottom: auto; }
  .ag-night__ev::after { display: none; }
}
@media (max-width: 720px) {
  .ag-hero__visual { min-height: 0; display: grid; gap: 16px; }
  .ag-hero__statue { position: relative; top: auto; transform: none; width: 100%; }
  .ag-hero__badge { top: 4%; right: 4%; }
  .ag-log { position: relative; width: 100%; margin-top: -60px; }
  .ag-reel__teaser { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 28px 24px 32px; }
  .ag-reel__img { position: relative; left: auto; right: auto; width: calc(100% + 48px); height: 200px; margin: -28px -24px 0; order: -1; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .ag-reel__play { width: 84px; height: 84px; border-width: 10px; margin-top: -70px; }
  .ag-reel__play span { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
  .ag-load, .ag-levels, .ag-fmts, .ag-perks, .ag-depts, .ag-safety, .ag-pro__grid, .ag-need, .ag-diff, .ag-trust, .ag-form__row { grid-template-columns: 1fr; }
  .ag-road { grid-template-columns: 1fr; gap: 0; }
  .ag-road__step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 8px; padding-bottom: 22px; }
  .ag-road__step:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: rgba(240, 30, 20, .4); }
  .ag-road__num { grid-row: span 2; width: 52px; height: 52px; font-size: 18px; }
  .ag-road__step h3 { min-height: 0; align-self: center; }
  .ag-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .ag-tabs::-webkit-scrollbar { display: none; }
  .ag-tab { flex: none; }
  .ag-ctl__flow { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 20px; min-height: 0; }
  .ag-ctl__svg, .ag-ctl__lab { display: none; }
  .ag-node--agent, .ag-node--q, .ag-node--no, .ag-node--yes { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: none; }
  .ag-node--q { justify-self: center; width: 130px; height: 130px; font-size: 17px; }
  .ag-scale { gap: 12px; font-size: 10px; letter-spacing: .12em; }
  .ag-chat { min-height: 0; }
  .ag-calc__segs i { height: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-hero__badge, .ag-reel__play::after, .ag-art__ring, .ag-live { animation: none; }
  .ag-log__row, .ag-steps li, .ag-panel { animation: none; }
}

/* «Уменьшить движение»: всё видно сразу, без выезда и поочерёдного появления */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .ag-diff .ag-msg, .js .ag-diff .ag-chat__chips, .js .ag-diff .ag-diff__status,
  .js .ag-night .ag-night__card, .js .ag-night time, .js .ag-journal li, .ag-road__num { opacity: 1; transform: none; transition: none; }
  .ag-night__ev::before, .ag-night__line i, .ag-scale i, .ag-road::before { transform: none; transition: none; }
}

/* Подпись под кнопкой первого экрана (страница сайтов) */
.hero__note { margin: 14px 0 0; color: var(--text-3); font-size: 14px; }

/* Первый экран страницы сайтов: длинный заголовок чуть мельче */
.hero--sites .hero__title { font-size: clamp(34px, 4vw, 58px); }

/* ==========================================================================
   Цитата «строка-пауза» (вариант B): 3D-кавычка · текст · автор
   ========================================================================== */
.cq { padding-block: clamp(32px, 5vw, 64px); }
.cq__inner { max-width: 1200px; margin: 0 auto; }
.cq__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: center;
  padding-block: 46px;
}
.cq__mark { width: 84px; height: auto; filter: drop-shadow(0 0 22px rgba(240, 30, 20, .5)); }
.cq__text {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1.15;
  color: #F5EEE9;
}
.cq__text em { color: #FF5A50; font-style: italic; }
.cq__author { justify-self: end; text-align: right; font: 600 15px/1.35 var(--font-body); color: #fff; }
.cq__author::before { content: ""; display: block; width: 36px; height: 2px; margin: 0 0 12px auto; background: var(--accent); }
/* тонкая красная линия с бегущим светом */
.cq__line {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(240, 30, 20, .45) 15%, rgba(240, 30, 20, .45) 85%, transparent);
}
.cq__line::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 22%; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ff6a60 40%, #fff 50%, #ff6a60 60%, transparent);
  box-shadow: 0 0 12px 2px rgba(240, 30, 20, .6);
  animation: cq-run 5s linear infinite;
}
.cq__line:last-child::after { animation-delay: -2.5s; animation-direction: reverse; }
@keyframes cq-run { from { transform: translateX(-110%); } to { transform: translateX(560%); } }
@media (max-width: 900px) {
  .cq__row { grid-template-columns: 1fr; gap: 16px; padding-block: 30px; }
  .cq__mark { width: 44px; }
  .cq__text { font-size: 31px; }
  .cq--long .cq__text { font-size: 28px; }
  .cq__author { justify-self: start; text-align: left; font-size: 14px; }
  .cq__author::before { width: 28px; margin: 0 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .cq__line::after { animation: none; left: 30%; } }

/* Обложки роликов: вопрос на обложке не затемняем */
.showreel__start { background: none; }

/* === ONYX · блок «Из чего складывается сайт» · до / после === */
.mock--template{background:#EDEDED url(/assets/img/anatomy/anatomy-template.webp) center/cover no-repeat !important}
.mock--onyx{background:#0A0707 url(/assets/img/anatomy/anatomy-onyx.webp) center/cover no-repeat !important}
.mock--template .mock__photo{display:none !important}   /* стоковое фото теперь на картинке */
.mock--onyx .mock__ball{display:none !important}        /* шар теперь в руке статуи */
/* серые элементы шаблона — на те же места, что и у ONYX */
.mock--template .mock__lines--grey{position:absolute !important;left:7.1% !important;top:21% !important;width:40% !important;margin:0 !important}
.mock--template .mock__btn-grey{position:absolute !important;left:7.1% !important;top:51.5% !important;margin:0 !important}
/* точки «+» (центр точки) */
.anatomy-dot{position:absolute !important;transform:translate(-50%,-50%) !important}
.anatomy-dot--1{left:30% !important;top:25% !important}   /* заголовок */
.anatomy-dot--2{left:73% !important;top:29% !important}   /* шар в руке / фото */
.anatomy-dot--3{left:13% !important;top:56% !important}   /* кнопка */
.anatomy-dot--4{left:46% !important;top:77% !important}   /* калькулятор */
@media (max-width:767px){
  .anatomy-dot{width:24px !important;height:24px !important;font-size:15px !important}
  .mock--template .mock__btn-grey{top:41.5% !important}
  .anatomy-dot--3{top:48% !important}
  .anatomy-dot--4{left:60% !important;top:74% !important}
}

/* === Путь посетителя: 3D-иконки над заголовками карточек === */
.jr-ic{display:block;width:44px;height:44px;object-fit:contain;margin-bottom:12px}
.jr-row--onyx .jr-ic{filter:drop-shadow(0 0 10px rgba(240,30,20,.5))}
.jr-row--onyx .jr-step--final .jr-ic{filter:drop-shadow(0 0 10px rgba(255,255,255,.45))}
.jr-row--tpl .jr-ic{opacity:.7}
.jr-step--lost .jr-x{display:none}
.journey.is-in .jr-row--onyx .jr-ic{animation:jr-on .6s calc(var(--i)*.15s + .3s) both}
@keyframes jr-on{from{opacity:0;transform:translateY(8px) scale(.9)}to{opacity:1;transform:none}}
@media (max-width:767px){.jr-ic{width:34px;height:34px;margin-bottom:8px}}
@media (prefers-reduced-motion:reduce){.journey .jr-row--onyx .jr-ic{animation:none}}

/* === Объёмные неоновые иконки (набор ONYX) === */
.free-offer__icon { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(240, 30, 20, .45)); }
.about__icon { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(240, 30, 20, .45)); }
.about__card { align-items: center; }
@media (max-width: 600px) { .about__icon { width: 48px; height: 48px; } }
.dg-node__icon--3d { background: none; }
.dg-icon3d { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(240, 30, 20, .45)); }
.site-mock__ball--3d { background: none; box-shadow: none; }
.site-mock__ball--3d img { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: contain; filter: drop-shadow(0 0 24px rgba(240, 30, 20, .5)); }
.ag-ico3d { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(240, 30, 20, .45)); }
.ag-ico3d--lg { width: 72px; height: 72px; }
.ag-trigger__icon, .ag-safe__icon { width: 60px; height: 60px; background: none; border: 0; }
.ag-trigger__icon .ag-ico3d, .ag-safe__icon .ag-ico3d { width: 52px; height: 52px; }
/* «Сам, без напоминаний»: иконки по очереди вспыхивают */
.ag-pro.is-in .ag-trigger__icon { animation: ag-pulse3d 6s infinite; animation-delay: calc(var(--i) * 1.5s); }
@keyframes ag-pulse3d { 0%, 22%, 100% { transform: none; filter: none; } 8% { transform: scale(1.12); filter: drop-shadow(0 0 16px rgba(240, 30, 20, .9)) brightness(1.3); } }
@media (max-width: 720px) { .ag-ico3d { width: 48px; height: 48px; } .ag-ico3d--lg { width: 64px; height: 64px; } }
@media (prefers-reduced-motion: reduce) { .ag-pro.is-in .ag-trigger__icon { animation: none; } }

/* === Первые экраны направлений: красный дым и вспышки молний за статуей === */
.hero-fx { position: absolute; inset: -18% -30% -10% -4%; z-index: -1; pointer-events: none; }
.hero__statue .hero-fx img, .hero-fx img { position: absolute; width: auto; height: auto; filter: none; -webkit-mask-image: none; mask-image: none; }
.ag-hero__statue { z-index: 1; }
.ag-hero__badge, .ag-log { z-index: 2; }
.hero-fx__smoke {
  inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: .95;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 45%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 45%, transparent 100%) !important;
  animation: fx-smoke 18s ease-in-out infinite alternate;
}
@keyframes fx-smoke { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-3%, 2%); } }
.hero-fx__bolt { mix-blend-mode: screen; opacity: 0; filter: drop-shadow(0 0 18px rgba(240, 30, 20, .8)) !important; }
.hero-fx__bolt--1 { left: 4%; top: 6%; width: 42% !important; animation: fx-bolt 7s 1.2s infinite; }
.hero-fx__bolt--2 { right: 8%; top: 0; width: 30% !important; animation: fx-bolt 9s 3.6s infinite; }
.hero-fx__bolt--3 { left: 30%; top: 30%; width: 44% !important; animation: fx-bolt 11s 6s infinite; }
/* молния: короткая двойная вспышка, потом пауза */
@keyframes fx-bolt {
  0%, 100% { opacity: 0; }
  2% { opacity: .95; }
  4% { opacity: .15; }
  6% { opacity: .85; }
  12% { opacity: 0; }
}
@media (max-width: 720px) { .hero-fx { inset: -10% -14% 0; } }
@media (max-width: 1080px) { .hero-fx { inset: -10% -20% 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-fx__smoke { animation: none; }
  .hero-fx__bolt { animation: none; }
  .hero-fx__bolt--1 { opacity: .5; }
}
/* края картинки статуи растворяются в дыме (у картинки сайтов тёмный фон до краёв) */
.hero--sites .hero__statue-img {
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 46%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 54% at 50% 46%, #000 62%, transparent 100%);
}

/* ===== Правки Никиты, партия 2 ===== */
/* === ONYX · ИИ-агенты · блок 01 «Какая нагрузка ваша?» === */
.ag-load__icon{height:150px !important}
.ag-load__ic3d{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 0 16px rgba(240,30,20,.55));transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.ag-load__card:hover .ag-load__ic3d{transform:translateY(-4px) scale(1.06)}
@media (max-width:767px){.ag-load__icon{height:120px !important}.ag-load__ic3d{width:76px;height:76px}}
/* === ONYX · блок 06 «Как идёт работа» === */
/* 1. Подпись шага — ПОД кругом, а не на линии */
@media (min-width:768px){
  .proc__head{flex-direction:column !important;align-items:flex-start !important;gap:14px !important}
  .proc__head strong{padding:0 !important;font-size:20px !important;line-height:1.2 !important}
}
/* 2. Иконка шага в карточке ONYX */
.proc-ic{display:block;width:52px;height:52px;object-fit:contain;margin-bottom:14px;filter:drop-shadow(0 0 10px rgba(240,30,20,.5))}
@media (max-width:767px){.proc-ic{width:40px;height:40px;margin-bottom:10px}}
/* === ONYX · ИИ-агенты · блок 02 «Агент — это не чат-бот» · живая версия ===
   Работает вместе с agent-diff-live.js. Без JS и при «уменьшить движение» всё видно сразу. */

/* иконки у заголовков */
.ag-diff__top{justify-content:flex-start;gap:12px!important}
.ag-diff__top h3{white-space:nowrap;font-size:clamp(22px,2.1vw,30px)!important}
.ag-diff__top .ag-meter i{width:22px}
.ag-diff__top .ag-meter{margin-left:auto}
.ag-diff__ic{width:42px;height:42px;flex:none;object-fit:contain}
.ag-diff__card:nth-child(1) .ag-diff__ic{opacity:.75}
.ag-diff__card:nth-child(3) .ag-diff__ic{filter:drop-shadow(0 0 12px rgba(240,30,20,.6))}

/* сценарий: всё скрыто, пока JS не включит по шагам */
.ag-diff--live .ag-msg,.ag-diff--live .ag-chip,.ag-diff--live .ag-diff__status{
  opacity:0;transform:translateY(10px);transition:opacity .45s ease,transform .45s cubic-bezier(.2,.8,.2,1)!important;transition-delay:0s!important}
.ag-diff--live .ag-chat__chips{opacity:1!important;transform:none!important}
.ag-diff--live .is-on{opacity:1!important;transform:none!important}

/* «печатает…» */
.ag-diff .ag-typing{display:inline-flex!important;gap:5px;align-items:center;padding:14px 16px!important;opacity:1!important;transform:none!important}
.ag-diff .ag-typing i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.6);animation:ag-typ 1s infinite}
.ag-diff .ag-typing i:nth-child(2){animation-delay:.15s}.ag-diff .ag-typing i:nth-child(3){animation-delay:.3s}
@keyframes ag-typ{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}

/* галочки агента «щёлкают» */
.ag-diff--live .ag-chip.is-on{animation:ag-pop .45s cubic-bezier(.34,1.56,.64,1)}
.ag-diff--live .ag-chip.is-on svg{color:#ff5a50}
@keyframes ag-pop{0%{transform:scale(.6)}100%{transform:scale(1)}}

/* итог: бот — клиент ушёл (затухает), агент — карточка вспыхивает */
.ag-diff__card.is-lost .ag-chat{opacity:.55;transition:opacity .8s}
.ag-diff__card.is-done{animation:ag-flash 1.2s ease}
@keyframes ag-flash{0%{box-shadow:0 30px 80px -40px rgba(240,30,20,.45)}40%{box-shadow:0 0 0 2px rgba(240,30,20,.9),0 30px 90px -20px rgba(240,30,20,.8)}100%{box-shadow:0 30px 80px -40px rgba(240,30,20,.45)}}

@media (max-width:767px){.ag-diff__ic{width:40px;height:40px}}
@media (prefers-reduced-motion:reduce){
  .ag-diff--live .ag-msg,.ag-diff--live .ag-chip,.ag-diff--live .ag-diff__status{opacity:1;transform:none;transition:none!important}
  .ag-diff .ag-typing{display:none!important}.ag-diff__card.is-done{animation:none}}
/* === ONYX · ИИ-агенты · УБИРАЕМ ЗОЛОТОЙ (#f2c14e) ВЕЗДЕ ===
   Вставить в конец main.css. Золото заменено фирменными: светло-красный #FF5A50 (внимание) и белый (нейтрально). */
.ag-log__row em{color:#FF5A50!important}                                            /* первый экран: «ждёт «да»» */
.ag-pill{border-color:rgba(255,255,255,.28)!important;color:#fff!important}         /* «ПРИМЕР · HR» */
.ag-rows b.warn{color:#FF5A50!important}                                            /* «? не совпадает» */
.ag-note{border-color:rgba(240,30,20,.5)!important;background:rgba(240,30,20,.1)!important;color:#FF5A50!important} /* «Спорный момент → …» */
.ag-node--yes{border-color:rgba(240,30,20,.6)!important}                            /* «ДА → СПРАШИВАЕТ ВАС» рамка */
.ag-node--yes small{color:#FF5A50!important}                                        /* «ДА → СПРАШИВАЕТ ВАС» подпись */
.ag-confirm__done{color:#FF5A50!important}                                          /* «Отправлено» после кнопки */
.ag-journal li.wait b{color:#FF5A50!important}                                      /* журнал: «Ждёт подтверждения:» */
.ag-demo__head em{border-color:rgba(255,255,255,.28)!important;color:#fff!important} /* демо: «ДЕМО-ДАННЫЕ» */
/* === ONYX · ИИ-агенты · 3D-иконки в блоках === */
.ag-3d{display:block;object-fit:contain;filter:drop-shadow(0 0 10px rgba(240,30,20,.45))}
/* 04 «Где ваш бизнес сейчас?» — над названием уровня */
.ag-level .ag-3d{width:56px;height:56px;margin-top:-4px}
.ag-level:not(.is-active) .ag-3d{opacity:.75;filter:grayscale(.35) drop-shadow(0 0 6px rgba(240,30,20,.25))}
/* 10 «Что нужно от вас» — рядом с цифрой */
.ag-need__card .ag-3d{width:52px;height:52px;margin-bottom:10px}
/* 07 «Видит только то, что разрешили» — слева от названия программы */
.ag-access li .ag-3d{display:inline-block;width:30px;height:30px;margin-right:12px;vertical-align:middle}
.ag-access li{justify-content:flex-start}.ag-access li .ag-acc{margin-left:auto}
/* 05 отделы: карточки */
.ag-dept .ag-3d{width:48px;height:48px;margin-bottom:12px}
/* 05 панель выбранного отдела — иконка слева от «Агент по подбору» (вкладки оставляем без иконок, иначе не влезают в строку) */
.ag-panel__title{display:flex;align-items:center;gap:14px}
.ag-panel__title .ag-3d{width:56px;height:56px;flex:none}
@media (max-width:767px){.ag-level .ag-3d{width:46px;height:46px}.ag-dept .ag-3d{width:40px;height:40px}}
/* === ONYX · плашка «Это ещё не все фишки» === */
.fx-more{position:relative;isolation:isolate;display:flex;align-items:center;max-width:1040px;margin:48px auto;
  min-height:150px;padding:34px 230px 34px 56px;border-radius:28px;overflow:visible;
  background:radial-gradient(70% 140% at 88% 50%,rgba(240,30,20,.32),transparent 60%),linear-gradient(120deg,#1b0807 0%,#0f0606 55%,#170606 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(240,30,20,.45),0 30px 80px -30px rgba(240,30,20,.55)}
/* бегущий свет по рамке */
@property --fxm-a{syntax:"<angle>";initial-value:0deg;inherits:false}
.fx-more::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;
  background:conic-gradient(from var(--fxm-a),transparent 0 70%,#FF5A50 82%,#fff 86%,#F01E14 90%,transparent 100%);
  -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 exclude,linear-gradient(#000 0 0);animation:fxm-spin 7s linear infinite}
/* тонкая красная линия слева */
.fx-more::after{content:"";position:absolute;left:0;top:28%;bottom:28%;width:4px;border-radius:0 4px 4px 0;background:#F01E14;box-shadow:0 0 16px #F01E14}
@keyframes fxm-spin{to{--fxm-a:360deg}}
.fx-more__text{margin:0;font:900 clamp(24px,2.6vw,38px)/1.12 Montserrat,sans-serif;letter-spacing:-.015em;text-transform:uppercase;color:#fff}
.fx-more__text em{font-style:normal;color:#FF3B30;text-shadow:0 0 28px rgba(240,30,20,.6)}
/* смайлик «тсс» замыкает плашку справа, выходит за её край */
.fx-more__smile{position:absolute;right:-26px;top:50%;width:250px;height:auto;transform:translateY(-50%) rotate(8deg);
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.6)) drop-shadow(0 0 26px rgba(240,30,20,.45));
  animation:fxm-float 5s ease-in-out infinite}
@keyframes fxm-float{0%,100%{transform:translateY(-50%) rotate(8deg)}50%{transform:translateY(-56%) rotate(4deg)}}
@media (max-width:767px){
  /* телефон: смайлик сидит на правом верхнем углу, текст на всю ширину */
  .fx-more{margin:70px 16px 40px;min-height:0;padding:44px 24px 28px 26px;border-radius:22px}
  .fx-more__text{font-size:22px;line-height:1.15;padding-right:28px}
  .fx-more__smile{width:118px;right:-10px;top:-58px;transform:rotate(10deg)}
  @keyframes fxm-float{0%,100%{transform:rotate(10deg)}50%{transform:translateY(-6px) rotate(6deg)}}
}
@media (prefers-reduced-motion:reduce){.fx-more::before,.fx-more__smile{animation:none}}

/* ===== Сайты · блок 04 «Выделяйтесь среди конкурентов» — 12 фишек ===== */
/* === ONYX · Сайты · блок 04 «Выделяйтесь среди конкурентов» — 12 фишек === */
.fx12{max-width:1200px;margin:0 auto;padding:clamp(56px,7vw,110px) clamp(16px,4vw,40px) 30px}
.fx12__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(28px,3.5vw,44px)}
.fx12__kicker{display:flex;align-items:center;gap:12px;margin:0 0 14px;font:700 12px/1 Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#FF5A50}
.fx12__kicker:before{content:"";width:34px;height:2px;background:#F01E14;box-shadow:0 0 10px #F01E14}
.fx12__title{margin:0;font:900 clamp(30px,2.4vw + 18px,52px)/1.05 Montserrat,sans-serif;letter-spacing:-.025em;color:#fff}
.fx12__title em{font-style:normal;color:#F01E14}
.fx12__sub{margin:14px 0 0;max-width:560px;font:400 clamp(16px,1.2vw,18px)/1.5 Inter,sans-serif;color:#D9CFCE}
/* счётчик «12 фишек» */
.fx12__count{flex:none;display:flex;align-items:baseline;gap:10px;padding:14px 20px;border-radius:18px;
  background:linear-gradient(160deg,rgba(240,30,20,.16),rgba(240,30,20,.04));box-shadow:inset 0 0 0 1px rgba(240,30,20,.4)}
.fx12__count b{font:900 44px/1 Montserrat,sans-serif;color:#fff;text-shadow:0 0 24px rgba(240,30,20,.7)}
.fx12__count span{font:700 12px/1.2 Inter,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#FF5A50}
/* сетка 4×3 */
.fx12__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.fx12__item{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:18px;min-height:150px;padding:22px 22px 20px;border-radius:20px;
  background:linear-gradient(180deg,#170d0d,#0e0808);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);overflow:hidden;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s;cursor:default}
.fx12__item:before{content:"";position:absolute;inset:auto -30% -60% -30%;height:120%;z-index:-1;opacity:0;
  background:radial-gradient(50% 50% at 50% 50%,rgba(240,30,20,.35),transparent 70%);transition:opacity .35s}
.fx12__num{position:absolute;top:18px;right:20px;font:800 13px/1 Montserrat,sans-serif;color:rgba(255,255,255,.18);letter-spacing:.04em;transition:color .35s}
.fx12__ic{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(240,30,20,.4));transition:transform .4s cubic-bezier(.2,.8,.2,1),filter .4s}
.fx12__name{margin:auto 0 0;font:700 17px/1.3 Inter,sans-serif;color:#fff}
.fx12__item:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px rgba(240,30,20,.6),0 24px 50px -28px rgba(240,30,20,.7)}
.fx12__item:hover:before{opacity:1}
.fx12__item:hover .fx12__ic{transform:translateY(-3px) scale(1.08) rotate(-4deg);filter:drop-shadow(0 0 18px rgba(240,30,20,.8))}
.fx12__item:hover .fx12__num{color:#FF5A50}
/* появление волной */
.fx12.is-anim .fx12__item{opacity:0;transform:translateY(16px)}
.fx12.is-in .fx12__item{opacity:1;transform:none;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1),box-shadow .35s;transition-delay:calc(var(--i)*60ms)}
.fx12.is-in .fx12__item:hover{transform:translateY(-4px);transition-delay:0s}
/* закрывающая плашка «Это ещё не все фишки» идёт сразу под сеткой */
.fx12 + .fx-more,.fx12 .fx-more{margin-top:56px}
@media (max-width:1023px){.fx12__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){
  .fx12__head{flex-direction:column;align-items:flex-start;gap:18px}
  .fx12__count{padding:10px 16px}.fx12__count b{font-size:32px}
  .fx12__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .fx12__item{min-height:136px;padding:16px 14px 14px;gap:12px;border-radius:16px}
  .fx12 .fx-more{margin-left:0;margin-right:0}
  .fx12__ic{width:42px;height:42px}.fx12__name{font-size:14.5px}.fx12__num{top:14px;right:14px;font-size:11px}
}
@media (prefers-reduced-motion:reduce){.fx12.is-anim .fx12__item{opacity:1;transform:none}.fx12__item,.fx12__ic{transition:none}}

/* ==========================================================================
   РАЗМЕРЫ И АДАПТИВ (общая шкала для всего сайта)
   • контейнер растёт вместе с экраном: 1320 → 1440 → 1560 px, без пустых полей по бокам;
   • заголовки по одной спокойной шкале: первый экран до 60 px, блоки до 46 px;
   • отступы между блоками меньше, первый экран не растягивается на высоких мониторах.
   ========================================================================== */
:root {
  --container: 1320px;
  --gutter: clamp(16px, 3.6vw, 48px);
}
@media (min-width: 1600px) { :root { --container: 1440px; } }
@media (min-width: 1920px) { :root { --container: 1560px; } }
body { font-size: 16px; }
@media (min-width: 1200px) { body { font-size: 17px; } }

/* --- шкала заголовков --- */
.hero__title, .ag-hero__title, .hero--sites .hero__title { font-size: clamp(32px, 2.6vw + 14px, 58px); line-height: 1.05; }
.hero__title--caps { font-size: clamp(30px, 2.6vw + 12px, 56px); }
.hero__title--lines { font-size: min(58px, calc(100cqi / 10.8)); }
.section-title, .ag-title, .fx12__title { font-size: clamp(28px, 1.9vw + 14px, 46px); line-height: 1.08; }
.ag-duo .ag-title { font-size: clamp(26px, 1.5vw + 14px, 40px); }
.choice__title { font-size: clamp(30px, 2.4vw + 12px, 54px); }
.about__title { font-size: clamp(36px, 3vw + 14px, 64px); }
.motto__title { font-size: clamp(22px, 1.8vw + 10px, 40px); }
.cq__text { font-size: clamp(26px, 1.6vw + 16px, 42px); }
.ag-calc__hours { font-size: clamp(48px, 4vw + 20px, 84px); }
.ag-form__title, .ag-panel__title { font-size: clamp(24px, 1.4vw + 14px, 36px); }
.choice-card__title { font-size: clamp(24px, 1.6vw + 12px, 38px); }
.ag-hero__text, .hero__text { font-size: clamp(16px, .4vw + 13px, 19px); }
.ag-lead, .section-lead, .choice__lead { font-size: clamp(15px, .3vw + 13px, 18px); }

/* --- первый экран: без лишней высоты и без сдвига текста вправо --- */
.hero__inner { min-height: min(calc(100svh - var(--header-h)), 860px); padding-block: clamp(32px, 4vw, 64px); gap: clamp(24px, 3vw, 56px); }
.hero__content { padding-left: 0; max-width: 620px; }
.hero__statue { width: min(600px, 100%); }
.ag-hero { padding: clamp(32px, 4vw, 72px) 0 clamp(24px, 3vw, 48px); }
.ag-hero__visual { min-height: clamp(440px, 36vw, 600px); }

/* --- отступы между блоками --- */
.section { padding-block: clamp(56px, 6vw, 96px); }
.ag-sec { padding-block: clamp(48px, 5.5vw, 88px); }
.ag-head { margin-bottom: clamp(24px, 3vw, 44px); }
.blk-head { margin-bottom: clamp(24px, 3vw, 44px); }
.choice { padding-block: clamp(56px, 6vw, 104px) clamp(32px, 4vw, 64px); }
.about { padding-block: clamp(48px, 5.5vw, 88px); }
.cq { padding-block: clamp(20px, 3vw, 48px); }
.cq__row { padding-block: clamp(26px, 3vw, 40px); }

/* --- планшет и узкий ноутбук --- */
@media (max-width: 1080px) {
  .hero__inner { min-height: 0; }
}
@media (max-width: 767px) {
  .cq__text { font-size: 28px; }
  .cq--long .cq__text { font-size: 25px; }
}
@media (min-width: 2200px) { :root { --container: 1760px; } }
.hero__text { max-width: 540px; }
/* заголовки переносятся ровно, без одного слова на последней строке */
h1, h2, h3, .cq__text, .choice__lead, .ag-lead, .section-lead { text-wrap: balance; }
/* смайлик в плашке «не все фишки» не должен давать горизонтальную прокрутку */
.fx12 { overflow-x: clip; }
/* «Агент — это не чат-бот»: на планшете карточки одна под другой, иначе заголовок с полосками не помещается */
@media (max-width: 1080px) {
  .ag-diff { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .ag-chat { min-height: 0; }
}
/* дым за статуей гаснет полностью к любому краю своей области — без видимой рамки */
.hero-fx__smoke {
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%) !important;
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%) !important;
}
/* «Как идёт работа: что делаем мы, а что — вы» — в одну строку на компьютере */
@media (min-width: 1024px) {
  .blk-head:has(+ .proc) { max-width: none; }
  .blk-head:has(+ .proc) .section-title { white-space: nowrap; font-size: clamp(28px, 2.7vw, 46px); }
}
/* «Для каждой задачи — свой сайт»: теги карточек в одну линию, на одном уровне во всех карточках */
.fmt .tags { flex-wrap: nowrap; gap: 6px; margin-top: auto; }
.fmt .tags li { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
/* «О нас» компактнее, в одной шкале с заголовками блоков */
.about__title { font-size: clamp(32px, 1.9vw + 16px, 50px); margin-bottom: 18px; }
.about__statue { height: min(108%, 560px); }
.about__media { min-height: 460px; }

/* Цитаты: текст по центру, автор справа — под цитатой.
   Справа пустая колонка шириной с кавычку, чтобы текст стоял ровно по центру плашки. */
.cq__row {
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  grid-template-areas: "mark text ." "author author author";
  row-gap: 14px;
}
.cq__mark { grid-area: mark; }
.cq__text { grid-area: text; text-align: center; }
.cq__author { grid-area: author; justify-self: end; text-align: right; }
@media (max-width: 900px) {
  .cq__row { grid-template-columns: 1fr; grid-template-areas: "mark" "text" "author"; }
  .cq__mark { justify-self: center; }
  .cq__author { justify-self: end; text-align: right; }
  .cq__author::before { margin: 0 0 10px auto; }
}

/* Цитаты: кавычка сверху слева, автор снизу справа — «крест-накрест» */
.cq__mark { align-self: start; margin-top: 4px; }
@media (max-width: 900px) {
  .cq__row { grid-template-areas: "mark" "text" "author"; }
  .cq__mark { justify-self: start; margin-top: 0; }
}

/* Заголовки блоков: заголовок в одну строку, подзаголовок короче по строкам (планшет и компьютер) */
@media (min-width: 900px) {
  .blk-head, .ag-head, .fx12__head > div { max-width: none; }
  .blk-head .section-title, .ag-head .ag-title, .fx12__title {
    white-space: nowrap;
    font-size: clamp(28px, 2.75vw, 46px);
  }
  .blk-head .section-lead, .ag-head .ag-lead, .fx12__sub {
    max-width: 900px;
    text-wrap: pretty;
  }
}
/* «Как идёт работа»: текст карточек чуть мельче, чтобы «Проверяем на телефоне,» стояло одной строкой */
.proc__card { font-size: clamp(14px, 1.05vw, 17px); }

/* Цитаты: кавычка садится на верхнюю линию в левом углу и «разрезает» её */
.cq__inner { position: relative; }
.cq__mark {
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  width: 112px;
  padding: 0 14px;
  margin: 0;
  background: var(--bg);
  transform: translateY(-50%);
}
.cq__row { padding-top: clamp(40px, 4vw, 56px); }
@media (max-width: 900px) {
  .cq__row { grid-template-areas: "text" "author"; padding-top: 34px; }
  .cq__mark { width: 66px; padding: 0 11px; }
}
/* без подложки: верхняя линия начинается сразу за кавычкой, свечение кавычки не обрезается */
.cq__mark { background: none; padding: 0; width: 84px; }
.cq__inner > .cq__line:first-child { margin-left: 104px; }
@media (max-width: 900px) {
  .cq__mark { width: 44px; padding: 0; }
  .cq__inner > .cq__line:first-child { margin-left: 58px; }
}
/* принудительный перенос строки только на широких экранах */
@media (max-width: 899px) { .br-wide { display: none; } }
/* текст карточек финального блока шире, чтобы короткая фраза («…ваш сайт.») не рвалась на одно слово */
.choice-card__text { max-width: 40ch; }
