/* ============================================================
   CRMDV — sections2.css : аналитика-врезки, CRM, schema, results,
   portfolio, tariff, process, faq, cta
   ============================================================ */

/* ---------- 1a. АНАЛИТИКА: фрагменты панели в масштабе 1:1 ----------
   Раньше здесь стояли четыре ЦЕЛЫХ экрана, сжатых до 0,32x: подпись 12 px превращалась
   в 4 px, и обещание «настоящие экраны панели» проверить было нельзя. Теперь это восемь
   ФРАГМЕНТОВ (регионы 560x360 CSS-px, сняты при DSF 2 с локального демо): картинка
   рендерится в свою натуральную ширину, мелкий текст панели остаётся мелким текстом. */
.analytics { border-top: 1px solid var(--line); }
.frag-grid { display: grid; grid-template-columns: 1fr; gap: 16px; justify-items: center; }
/* две колонки включаются только там, где снимок остаётся крупнее 0,9 своей натуральной
   ширины: на 1180 колонка 523 px при снимке 560 (0,93), на 1440 — 538 (0,96). Ниже —
   одна колонка шириной ровно в снимок, то есть ровно 1:1. */
@media (min-width: 1180px) { .frag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.frag {
  display: flex; flex-direction: column; min-width: 0;
  width: 100%; max-width: 560px;
  background: var(--ink-800);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--e-out), border-color .25s var(--e-out);
}
.frag:hover { transform: translateY(-4px); border-color: var(--line-2); }
.frag:hover .frag-go { border-bottom-color: var(--amber); }
/* Панель светлая, карточка тёмная: без края светлый прямоугольник висит вырезанным листом. */
.frag-shot {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 560 / 360;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}
.frag-shot::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07); pointer-events: none; }
/* width/height в разметке — реальные пиксели файла (1120x720 при DSF 2): место
   резервируется до загрузки, максимум 560 CSS-px — выше этого снимок не растягиваем. */
.frag-shot img { display: block; width: 100%; height: auto; max-width: 560px; }
.frag-cap { display: flex; flex-direction: column; gap: 5px; padding: 15px 18px 18px; }
.frag-cap b { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.frag-fn { font-size: 13.5px; line-height: 1.45; color: var(--on-dark-mut); }
.frag-go { margin-top: 4px; align-self: flex-start; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--amber); border-bottom: 1px solid transparent; transition: border-color .2s; }
/* один пример AI-вывода вместо четырёх обещаний «AI-выводы» без содержания */
.ai-quote { margin: 26px 0 0; padding: 20px 24px; border-left: 3px solid var(--amber); background: rgba(255,122,26,.06); border-radius: 0 var(--r-md) var(--r-md) 0; }
.ai-quote .aq-lbl { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 8px; }
.ai-quote p { font-family: var(--f-display); font-weight: 500; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.35; letter-spacing: -.01em; }
.analytics-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.analytics-cta span { font-family: var(--f-display); font-size: clamp(17px, 2.2vw, 22px); font-weight: 600; letter-spacing: -.01em; }

/* ---------- ЧТО ВЫ ПОЛУЧАЕТЕ ---------- */
/* было шесть пунктов одинакового веса подряд после бенто «Что входит» и перед бенто тарифа —
   три списка преимуществ друг за другом. Осталось три сильнейших, первый крупнее прочих. */
.gains { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1px; background: var(--cream-300); border: 1px solid var(--cream-300); border-radius: var(--r-lg); overflow: hidden; }
.gain { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 30px); background: #fff; min-width: 0; }
.gain b { font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.15; letter-spacing: -.01em; }
.gain span { font-size: 14px; line-height: 1.5; color: var(--on-cream-mut); }
/* --amber-700 на янтарной подложке --amber-soft давало 4,2:1 — ниже порога для 13px.
   Подложка сменена на белую с янтарным кантом: тот же знак, 5,2:1. */
.gain::before { content: "✓"; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--amber-700); background: #fff; box-shadow: inset 0 0 0 1px rgba(194, 65, 12, .3); }
.gain-lead { gap: 12px; background: linear-gradient(160deg, #fff, var(--cream)); }
.gain-lead b { font-size: clamp(22px, 2.6vw, 32px); }
.gain-lead span { font-size: 15.5px; }
.gain-lead::before { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
@media (max-width: 900px) { .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gain-lead { grid-column: span 2; } }
@media (max-width: 560px) { .gains { grid-template-columns: 1fr; } .gain-lead { grid-column: span 1; } }

/* ---------- RESULTS (redesign) ---------- */
.res-grid { display: flex; flex-direction: column; gap: 16px; }
.res-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px,4vw,52px);
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 150% at 0% 0%, var(--amber-soft), transparent 55%),
    linear-gradient(155deg, var(--ink-750), var(--ink-850));
  position: relative; overflow: hidden;
}
.res-hero-l { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.res-eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.res-hero-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(54px, 9vw, 128px); line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(120deg, var(--amber), var(--gold-200));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.res-hero-lbl { max-width: 30ch; font-size: clamp(15px,1.4vw,19px); line-height: 1.5; color: var(--on-dark-mut); }
.res-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.res-cell {
  display: flex; flex-direction: column; min-width: 0;
  padding: clamp(22px,2.5vw,32px);
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-800);
}
.res-num { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px,4vw,54px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.res-lbl { margin-top: 10px; font-size: 14.5px; color: var(--on-dark); }
.res-note { margin-top: auto; padding-top: 16px; font-family: var(--f-mono); font-size: 12px; line-height: 1.4; color: var(--amber); }
.res-ribbon { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.res-ribbon span { display: flex; flex-direction: column; gap: 4px; padding: 18px clamp(16px,2vw,26px); background: var(--ink-850); font-size: 13px; color: var(--on-dark-mut); min-width: 0; }
.res-ribbon b { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--on-dark); }
@media (max-width: 760px) {
  .res-row { grid-template-columns: 1fr; }
  .res-ribbon { grid-template-columns: 1fr 1fr; }
}
/* ⚠️ В ленте ТРИ пункта: в двух колонках третий вставал один, оставляя рядом пустую
   ячейку - на телефоне это читается как недогруженный блок. Одна колонка ровнее.
   ⚠️ Главное число «20 000+» при 54 px не помещалось в 320 px (замер: содержимое 246
   в боксе 222) и обрезалось. Ниже 400 px оно считается от ширины экрана. */
@media (max-width: 560px) {
  .res-ribbon { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .res-hero-num { font-size: clamp(38px, 13vw, 54px); }
}

/* ---------- ФЛАГМАНСКИЙ КЕЙС: один разобранный проект вместо восьми равнозначных ----------
   Самый непробиваемый аргумент — «откройте и потрогайте сами» — раньше был растворён
   в ленте одинаковых карточек внизу страницы. Здесь он один и с живыми ссылками. */
/* Бенто 8/4: слева большой скрин сайта, справа четыре телефона по 2x2.
   Левая колонка вдвое шире (2fr против 1fr) - десктоп крупный и показан ЦЕЛИКОМ, без
   растягивания и обрезки (своя пропорция 4:3). Телефоны в узкой правой колонке выходят
   заметно мельче. Выравнивание по верху; лёгкая разница высот - естественная для бенто. */
.fl-bento { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(16px, 2vw, 26px); align-items: start; }
/* Раскладка: десктоп в левой колонке сверху, подпись+кнопки под ним (тоже слева),
   телефоны справа на обе строки. Так кнопки занимают место, что пустовало под коротким
   десктопом, и низ левой колонки сходится с низом стопки телефонов. */
.fl-site { grid-column: 1; grid-row: 1; margin: 0; min-width: 0; }
.fl-bento > .shots { grid-column: 2; grid-row: 1 / span 2; }
.fl-bento > .fl-foot { grid-column: 1; grid-row: 2; margin-top: 0; }
.fl-site img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-md); border: 1px solid var(--cream-300);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.45);
}
.fl-site figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-cream-mut); }

/* Четыре живых экрана с телефона по 2x2 в правой колонке (на телефоне те же 2 в ряд).
   Рамка - скруглённый корпус без «чёлки»: имитация конкретной модели устарела бы через год,
   а «это телефон» читается по пропорции 9:16 и радиусу. Корпус - padding с тёмным фоном самой
   картинки, браузер скругляет содержимое по внутреннему краю, обёртка не нужна. */
.shots {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px);
  align-content: start;
}
.shot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 780 / 1400; object-fit: cover; object-position: top center;
  /* Телефоны в правой колонке узкие (~170 px): корпус и радиус мельче, чтобы рамка не
     выглядела толстым кантом вокруг маленького экрана. */
  padding: 4px; border-radius: 18px;
  background: var(--ink-900);
  box-shadow: 0 18px 36px -22px rgba(0,0,0,.55), 0 1.5px 0 rgba(255,255,255,.5) inset;
}
.shot-cap {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--on-cream-mut); text-align: center;
}

/* Подпись над кнопками, стопкой - так блок выше и лучше заполняет место под десктопом. */
.fl-foot { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.fl-note { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.55; color: var(--on-cream-mut); }
.fl-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fl-links .btn { flex: none; }
.fl-store {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 11px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--ink-900); background: var(--ink-900); color: var(--cream);
  font-weight: 600; font-size: 13.5px;
  transition: transform .2s var(--e-out), opacity .2s;
}
.fl-store:hover { transform: translateY(-2px); opacity: .88; }

/* На планшете/телефоне бенто в столбик: сайт сверху во всю ширину, под ним 2x2 телефоны.
   ⚠️ Скрин сайта возвращаем к своей пропорции (height:auto + aspect-ratio) - в один столбец
   растягивать по высоте нечему, а cover без заданной высоты схлопнул бы картинку. */
@media (max-width: 900px) {
  /* ⚠️ Столбик через flex, а не grid: явные grid-row/column на детях (десктоп row1,
     телефоны row1/span2, кнопки row2) в одну колонку не складываются. flex по DOM-порядку
     даёт нужное: сайт → телефоны → кнопки (кнопки последними). */
  .fl-bento { display: flex; flex-direction: column; gap: 24px; }
  .fl-site img { height: auto; aspect-ratio: 1280 / 960; }
}
@media (max-width: 640px) {
  .shot-cap { font-size: 10.5px; letter-spacing: .04em; }
  .fl-foot { flex-direction: column; align-items: stretch; }
}

/* ---------- PORTFOLIO ---------- */
/* flex, а не grid: у десяти карточек в четыре колонки последний ряд из двух - он встаёт
   по центру, а не прижимается влево с двумя пустыми местами справа */
.portfolio-grid { --proj-cols: 4; --proj-gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--proj-gap); }
.portfolio-grid > .proj { flex: 0 0 calc((100% - (var(--proj-cols) - 1) * var(--proj-gap)) / var(--proj-cols)); min-width: 0; }
.proj {
  border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--cream-300);
  display: flex; flex-direction: column; transition: transform .35s var(--e-out), box-shadow .35s var(--e-out);
}
.proj:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.3); }
.proj-shot { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.proj-shot.has-img { background: #0c0a0e; }
.proj-shot .proj-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* scrim сверху — мягкая граница фото, бейджи статуса убраны: восемь одинаковых плашек
   «● сайт» не несли информации (все проекты живы, проверено запросом к каждому домену) */
.proj-shot.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.22), transparent 40%); }
/* лента-приложение: карточки мельче флагманского кейса выше */
.proj-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.proj-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 3px; line-height: 1.15; }
.proj-body .cuisine { font-size: 12.5px; color: var(--on-cream-mut); margin-bottom: 12px; }
.proj-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.proj-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--cream-300); transition: .2s; }
.proj-link:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.portfolio-more { margin-top: 30px; text-align: center; }
.portfolio-more span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-pill);
  background: var(--ink-900); color: var(--cream);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.8vw, 22px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.4);
}
.portfolio-more b { color: var(--gold-200); }

/* ---------- TARIFF (redesign) ---------- */
.tf-head { max-width: 680px; margin: 0 0 clamp(28px,4vw,48px); }
.tf-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber);
  padding: 6px 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); background: var(--amber-soft);
}
.tf-lead {
  margin: 16px 0 0; max-width: 560px;
  font-family: var(--f-text); font-size: clamp(15px,1.3vw,18px);
  line-height: 1.6; color: var(--on-dark-mut);
}

/* карточка-плоскость */
.tf-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--amber-soft) 0%, transparent 52%),
    linear-gradient(160deg, var(--ink-800) 0%, var(--ink-850) 60%, var(--ink-900) 100%);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,.04);
}
.tf-card::after {
  content: ""; position: absolute; top: -110px; right: -110px;
  width: 320px; height: 320px; pointer-events: none;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  filter: blur(30px); opacity: .5;
}
.tf-card > * { position: relative; z-index: 1; }

/* split: оффер | расчёт */
.tf-split { display: grid; grid-template-columns: 1.06fr .94fr; align-items: stretch; }
.tf-split > * { min-width: 0; }
.tf-offer { padding: clamp(24px,3vw,40px); display: flex; flex-direction: column; }
/* колонка ниже левой примерно на 230 px. Остаток раскладываем симметрично сверху и снизу
   (justify-content:center), а не одной дырой перед примечанием, и уплотняем саму колонку:
   пункты списка дышат, «срок ответа» вынесен отдельным блоком в две строки. */
.tf-calc { padding: clamp(24px,3vw,40px); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }

/* ценовое ядро */
.tf-tag {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gold-200);
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(217,164,65,.32); background: rgba(217,164,65,.08);
}
.tf-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tf-amount {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 1.4rem + 4.6vw, 60px); line-height: .95;
  letter-spacing: -.02em; color: var(--on-dark); white-space: nowrap;
}
.tf-once { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-200); }
.tf-sub { margin: 14px 0 0; max-width: 42ch; font-family: var(--f-text); font-size: 14.5px; line-height: 1.55; color: var(--on-dark-mut); }
.tf-incl { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.tf-incl li { position: relative; padding-left: 30px; font-family: var(--f-text); font-size: 15px; line-height: 1.4; color: var(--on-dark); }
.tf-incl li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255,122,26,.4);
  background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 L5 8.6 L9.4 3.7' fill='none' stroke='%23FF7A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.tf-cta { margin-top: 26px; align-self: flex-start; }

/* правая колонка карточки тарифа: что даёт поддержка */
.tf-calc-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-mut); }
.tf-calc .tf-incl { margin-top: 18px; padding-top: 0; border-top: 0; }
/* строка обязательства: раньше между списком и примечанием висела дыра 235 px @1440
   (margin-top:auto прижимал примечание к низу колонки) — теперь колонка идёт подряд */
.tf-sla { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-dim); }
.tf-sla b { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--on-dark); }
.tf-calc .tf-incl li { padding-block: 7px; }
.tf-calc-note { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-text); font-size: 14px; line-height: 1.65; color: var(--on-dark-mut); max-width: 62ch; }
.tf-calc-link { margin-top: 18px; align-self: flex-start; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(255,122,26,.4); padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.tf-calc-link:hover, .tf-calc-link:focus-visible { color: var(--gold-200); border-color: var(--gold-200); }

/* лента фактов */
.tf-bento { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.tf-tile { display: flex; flex-direction: column; gap: 5px; padding: clamp(16px,1.8vw,22px) clamp(18px,2vw,24px); background: var(--ink-850); min-width: 0; }
.tf-tile-k { font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; color: var(--on-dark); }
.tf-tile-v { font-family: var(--f-text); font-size: 12.5px; line-height: 1.4; color: var(--on-dark-mut); }

@media (max-width: 900px) {
  .tf-split { grid-template-columns: 1fr; }
  .tf-calc { border-left: none; border-top: 1px solid var(--line); }
  .tf-cta { align-self: stretch; text-align: center; }
  .tf-bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .tf-amount { font-size: 38px; }
  .tf-bento { grid-template-columns: 1fr 1fr; }
}

/* ---------- ШАГИ РАБОТЫ С iiko (таймлайн) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 28px; right: calc(33.33% - 28px); height: 2px; background: linear-gradient(90deg, var(--amber), var(--gold)); opacity: .35; }
.phase { position: relative; }
.phase .ph-dot { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--amber); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; color: var(--amber-600); position: relative; z-index: 1; margin-bottom: 18px; box-shadow: 0 0 0 8px var(--cream); }
/* --amber-600 на кремовом даёт 2,87:1 при 12 px — ниже порога WCAG AA */
.phase .ph-days { font-family: var(--f-mono); font-size: 12px; color: var(--amber-700); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.phase h3 { font-size: 21px; margin-bottom: 8px; }
.phase p { font-size: 14px; color: var(--on-cream-mut); }
.phase ul { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.phase ul li { font-size: 13px; color: var(--on-cream-mut); display: flex; gap: 9px; align-items: flex-start; }
.phase ul li::before { content: "→"; color: var(--amber-700); flex: none; }
/* «14 дней» повторяется на странице девять раз: здесь срок раскладывается по шагам,
   а строка ниже отвечает на второй по важности вопрос — что нужно от клиента */
/* полоса тёмная: кружок шага и текст читаются на ink-900 */
.sec-dark .phase .ph-dot { background: var(--ink-800); border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 8px var(--ink-900); }
.sec-dark .phase .ph-days { color: var(--amber); }
.sec-dark .phase p, .sec-dark .phase ul li { color: var(--on-dark-mut); }
.sec-dark .phase ul li::before { color: var(--amber); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  /* ⚠️ Соединительная линия шагов на телефоне не помогает, а мешает: колонка одна, текст
     идёт под кружком с номером, и вертикальная полоса проходит прямо сквозь заголовок
     и список. Порядок шагов и без неё виден по номерам 1-2-3. */
  .timeline::before { display: none; }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: clamp(32px,5vw,72px); align-items: start; }
.faq-aside { position: sticky; top: 100px; }
.faq-eyebrow { display: inline-block; margin-bottom: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--amber-soft); }
.faq-lead { margin: 16px 0 22px; font-size: clamp(15px,1.3vw,17px); line-height: 1.6; color: var(--on-dark-mut); max-width: 34ch; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 0; min-width: 0; }
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 18px; padding: 26px 4px; cursor: pointer; list-style: none; font-family: var(--f-display); font-size: clamp(17px, 2.2vw, 22px); font-weight: 600; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-plus { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 20px; color: var(--amber); flex: none; transition: transform .3s, background .3s; }
.faq-item[open] summary .q-plus { transform: rotate(45deg); background: var(--amber); color: #1a0d02; border-color: var(--amber); }
.faq-item .faq-a { padding: 0 60px 28px 4px; font-size: 15.5px; color: var(--on-dark-mut); line-height: 1.6; }

/* ---------- FINAL CTA ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final .glow-c { position: absolute; width: 700px; height: 700px; left: 50%; top: 40%; transform: translate(-50%,-50%); background: radial-gradient(circle, var(--amber-glow), transparent 65%); filter: blur(80px); opacity: .5; pointer-events: none; }
.cta-box { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-box h2 { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.02; margin: 18px 0 22px; text-wrap: balance; }
.cta-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin: 38px auto 34px; max-width: 620px; }
.cc-card { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.cc-card .cc-h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.cc-card ul { display: flex; flex-direction: column; gap: 9px; }
.cc-card li { font-size: 14px; color: var(--on-dark-mut); display: flex; gap: 9px; }
.cc-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 8px; flex: none; }
.cc-card.cc-accent { background: radial-gradient(130% 130% at 100% 0%, var(--amber-soft), transparent 60%), rgba(255,255,255,.04); border-color: rgba(255,122,26,.4); box-shadow: 0 18px 50px -28px var(--amber-glow); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-lg { min-height: 58px; padding: 18px 34px; font-size: 17px; }
.cta-phone { margin-top: 10px; color: var(--on-dark-dim); font-family: var(--f-mono); font-size: 13px; }
.cta-micro { margin-top: 16px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--on-dark-mut); }
@media (max-width: 600px) { .cta-checklist { grid-template-columns: 1fr; } }

/* проекты: 4 в ряд на десктопе, 2 до 1100, 1 на телефоне */
@media (max-width: 1100px) { .portfolio-grid { --proj-cols: 2; } }
@media (max-width: 560px) { .portfolio-grid { --proj-cols: 1; } }

/* ============================================================
   МОБИЛЬНАЯ ОТДЕЛКА (замер на 320 и 390 px)
   ============================================================
   Три класса дефектов, найденных замером живой страницы, а не глазами:
   1) подписи 9,5-10 px - на телефоне это уже не читается, а стоят они под ГЛАВНЫМИ
      цифрами лендинга («20 000+ заказов в год») и под тегами первого экрана;
   2) кликабельные элементы высотой 22-32 px - палец в них не попадает (комфорт от 40 px);
   3) снимки панели шириной 560 px, ужатые до 358: обещание «настоящие экраны» на телефоне
      превращалось в нечитаемую кашу. Даём им прокрутку в натуральную величину.
*/
@media (max-width: 700px) {
  /* ссылка-домен в карточке проекта, ссылка на демо в тарифе и в блоке CDP */
  .proj-link { min-height: 40px; padding: 9px 13px; font-size: 12px; }
  .tf-calc-link,
  .cdp-demo-link { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-grid a { padding: 9px 0; }
}

/* ⚠️ Снимок панели шире экрана телефона по своей природе (560 CSS-px против 358).
   Вместо сжатия до нечитаемости - прокрутка внутри карточки: контейнер узкий, картинка
   в натуральную величину. `touch-action: pan-x pan-y` оставляет вертикальный свайп
   странице, иначе палец залипал бы внутри снимка. */
@media (max-width: 700px) {
  .frag-shot {
    overflow-x: auto;
    aspect-ratio: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }
  .frag-shot::-webkit-scrollbar { display: none; }
  .frag-shot img { max-width: none; width: 560px; }
}

/* ⚠️ Вопрос и знак «плюс» стоят в одной строке через flex, а `Работает с iiko Cloud и Server?`
   при 320 px на 3 px шире колонки - хвост уезжал под знак. Разрешаем перенос строки внутри
   вопроса и ужимаем зазор: знак остаётся справа, текст переносится. */
@media (max-width: 560px) {
  /* ⚠️ Перенос текста тут не помогал: строка не влезала не из-за длинного слова, а из-за
     самого знака - круг 34 px плюс зазор 18 px забирали ширину у вопроса. Уменьшаем знак. */
  .faq-item summary { gap: 10px; font-size: 16px; padding: 22px 2px; overflow-wrap: anywhere; }
  .faq-item summary .q-plus { width: 26px; height: 26px; font-size: 16px; }
  .faq-item .faq-a { padding-right: 40px; }
}

/* ============================================================
   СРАВНЕНИЕ «с iiko / без iiko» (секция #compare)
   ============================================================
   Смысл: платформа работает и без кассы, интеграция добавляет автоматику. Колонка
   «С кассой iiko» подсвечена янтарём и помечена галочками - это «плюс», а не «замена».
   Данные перенесены со старого сравнения (crmdv.ru/app.html), задачи те же. */
.cmp { border: 1px solid var(--cream-300); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 16px clamp(14px, 1.6vw, 22px); vertical-align: top; border-bottom: 1px solid var(--cream-200); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
/* Шапка */
.cmp-table thead th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-cream-mut); background: var(--cream); }
/* ⚠️ Не --amber-700: он на янтарной подложке --amber-soft даёт ~4,2:1 (проект уже ловил
   это в .gain, стр. 56). Более тёмный #9A3412 на той же подложке даёт ~8:1 - выше нормы
   4,5:1, оттенок остаётся тёплым. */
.cmp-table thead .cmp-head-iiko { color: #9A3412; }
/* Первый столбец - название задачи */
.cmp-table th[scope="row"], .cmp-table .cmp-task { width: 26%; }
.cmp-table th[scope="row"] { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; color: var(--on-cream); }
/* «Без кассы» - нейтральный столбец */
.cmp-table td:not(.cmp-yes) { color: var(--on-cream-mut); line-height: 1.45; }
/* «С кассой iiko» - подсвеченный столбец с галочкой */
.cmp-table .cmp-head-iiko, .cmp-table .cmp-yes { background: var(--amber-soft); }
.cmp-table .cmp-yes { color: var(--on-cream); line-height: 1.45; position: relative; padding-left: clamp(34px, 3vw, 42px); }
.cmp-table .cmp-yes::before {
  content: "✓"; position: absolute; left: clamp(12px, 1.4vw, 18px); top: 15px;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--amber);
}

/* Мобильный: таблицу в 3 колонки не уместить - каждая строка становится карточкой.
   Шапка прячется, значения подписаны своими заголовками через data-h. */
@media (max-width: 720px) {
  .cmp { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; }
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp-table tbody tr {
    background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-md);
    padding: 6px 4px; margin-bottom: 14px; box-shadow: 0 14px 30px -26px rgba(0,0,0,.4);
  }
  .cmp-table tbody tr:last-child { margin-bottom: 0; }
  /* ⚠️ Ширину 26% с заголовка задачи и «Задача» СБРАСЫВАЕМ: в блочном режиме она осталась
     бы и рвала заголовок по словам («Заказ / на / кухню»). */
  .cmp-table th[scope="row"], .cmp-table .cmp-task { width: auto; }
  .cmp-table th[scope="row"] { font-size: 16px; padding: 12px 16px 8px; border-bottom: 1px solid var(--cream-200); }
  .cmp-table td { border-bottom: 0; padding: 10px 16px; }
  /* подпись столбца перед значением */
  .cmp-table td::before { content: attr(data-h); display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-cream-mut); margin-bottom: 3px; }
  .cmp-table .cmp-yes { border-radius: var(--r-sm); margin: 0 8px 8px; padding: 10px 14px; }
  /* На мобиле у iiko-ячейки вместо кружка-галочки - подпись «✓ С КАССОЙ IIKO» в цвет,
     чтобы столбец был подписан так же, как «БЕЗ КАССЫ». */
  .cmp-table .cmp-yes::before {
    content: "✓ " attr(data-h);
    position: static; width: auto; height: auto; top: auto; left: auto;
    display: block; margin-bottom: 3px; border-radius: 0; background: none;
    font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
    color: #9A3412; place-items: initial;  /* тот же тёмный тон: 10.5px на амбер-подложке требует ≥4,5:1 */
  }
}
