/* ============================================================
   BiCo — Тендерное сопровождение. Итерация 1: Header, Hero, Footer.
   Пресет: apple (светлый, воздушный), акцент сдвинут в бренд BiCo.
   ============================================================ */

:root {
  /* ---- Шкала отступов ---- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;   --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;     --space-9: 6rem;
  --space-10: 8rem;    --space-11: 12rem;

  /* ---- Вертикальный ритм ---- */
  --section-y: clamp(3rem, 6vw, 5rem);
  --section-y-lg: clamp(3.5rem, 7vw, 6rem);
  --plate-gap: clamp(1rem, 2vw, 1.5rem);   /* воздух между плитами */

  /* ---- Ширины ---- */
  --container: 1280px;
  --container-narrow: 720px;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* ---- Радиусы ---- */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;  --r-full: 999px;
  --r-plate: clamp(20px, 2.4vw, 32px);      /* радиус баннер-секции */

  /* ---- Типографика ---- */
  --t-display: clamp(2.5rem, 6vw, 4.5rem);
  --t-hero:    clamp(1.75rem, 2.6vw, 2.375rem);  /* главная строка h1 — в 2 строки */
  --t-h1:      clamp(1.875rem, 3.1vw, 2.75rem);
  --t-h2:      clamp(1.625rem, 3.2vw, 2.5rem);
  --t-h3:      clamp(1.125rem, 1.8vw, 1.375rem);
  --t-lead:    clamp(1.0625rem, 1.3vw, 1.1875rem);
  --t-body:    1.0625rem;
  --t-sm:      0.9375rem;
  --t-xs:      0.8125rem;

  --track-display: -0.024em;
  --track-h:       -0.016em;
  --track-body:    0;

  /* ---- Цвет: фирменная палитра BiCo ---- */
  --bg:            #ffffff;
  --bg-subtle:     #f4f4f4;
  --bg-blue:       #e3f1ff;
  --bg-elevated:   #ffffff;
  --bg-inverse:    #272727;

  --text:          #000000;
  --text-head:     #272727;
  --text-muted:    #555555;
  --text-faint:    #5f646a;
  --text-inverse:  #ffffff;
  --text-inverse-muted: #a9adb2;

  --brand:         #065ba9;
  --brand-hover:   #054f93;
  --brand-red:     #a91e22;

  --accent:        #16b169;        /* главный CTA */
  --accent-hover:  #12a160;
  --accent-active: #0f8e54;
  --on-accent:     #ffffff;

  --border:        rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-inverse: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 1px rgba(16, 24, 40, .03);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .07), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, .10), 0 4px 12px rgba(16, 24, 40, .05);

  --glass-bg:   rgba(255, 255, 255, 0.82);
  --glass-blur: saturate(180%) blur(20px);

  /* ---- Шрифты: бренд-пара BiCo ---- */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body:    Arial, "Helvetica Neue", Helvetica, sans-serif;

  /* ---- Движение ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --d-fast: 140ms;  --d-base: 220ms;  --d-slow: 420ms;

  --header-h: 72px;
  --header-h-stuck: 60px;
  --z-header: 100; --z-overlay: 200; --z-modal: 300;
}

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }

/* Собственный display у компонента (grid/flex) перебивает UA-стиль [hidden],
   и скрытый элемент остаётся видимым — фиксируем приоритет */
[hidden] { display: none !important; }
input, button, textarea, select { font: inherit; color: inherit; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-head);
  letter-spacing: var(--track-h);
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: var(--track-display); line-height: 1.08; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.3; }
p  { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brand); color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* Плита — баннер-секция: скруглённый прямоугольник на белом холсте */
.plate {
  width: min(100% - 2 * var(--plate-gap), var(--container));
  margin-inline: auto;
  margin-block-end: var(--plate-gap);
  padding: var(--section-y) clamp(1.25rem, 3.5vw, 3.5rem);
  border-radius: var(--r-plate);
  background: var(--bg-subtle);
}

/* Подсказка над мобильными лентами. На десктопе лент нет — и подсказки тоже;
   показывается в @media (max-width: 720px) вместе с лентой. */
.scroll-hint { display: none; }

/* Составные предлоги («из-за», «из-под»): без переноса по дефису */
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100%;
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-4);
  background: var(--bg); color: var(--text);
  border-radius: var(--r-sm); box-shadow: var(--shadow-md);
  transition: top var(--d-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

.scroll-lock { overflow: hidden; }

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding-inline: var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out),
              transform var(--d-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-active); }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--brand); background: rgba(6, 91, 169, .05); }

.btn--sm { min-height: 42px; padding-inline: var(--space-4); font-size: var(--t-xs); }

/* ============================================================
   БЛОК 1. HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
}

/* Шапка — такая же плита, как hero и футер: по ширине контейнера,
   вверху без скруглений (примыкает к краю страницы), скругления — снизу. */
.header__shell {
  width: min(100% - 2 * var(--plate-gap), var(--container));
  margin-inline: auto;
}

.header__topbar {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--t-xs);
  max-height: 40px;
  /* overflow не режем: иначе обрежется подсказка с адресом офиса */
  transition: max-height var(--d-base) var(--ease-out),
              opacity var(--d-base) var(--ease-out);
}
.header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 40px;
  padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
}
.header__topbar-meta { display: flex; align-items: center; gap: var(--space-5); }
.header__hours { font-size: 0.75rem; }

.header__toplink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-head);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--d-base) var(--ease-out);
}
.header__toplink svg { color: var(--brand); flex: none; }
.header__toplink:hover { color: var(--brand); }

/* Офисы + подсказка с адресом */
.offices {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-faint);
  white-space: nowrap;
}
.offices__label { color: var(--text-faint); }
.offices__sep { color: var(--border-strong); }

.office { position: relative; cursor: default; }
.office__city {
  color: var(--text-head);
  border-block-end: 1px dashed var(--border-strong);
  transition: color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
.office:hover .office__city,
.office:focus-visible .office__city { color: var(--brand); border-color: var(--brand); }

.office__card {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: 0;
  z-index: var(--z-overlay);
  display: grid;
  gap: var(--space-2);
  width: max-content;
  max-width: 280px;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-out),
              visibility var(--d-base);
}
.office:hover .office__card,
.office:focus-within .office__card,
.office:focus-visible .office__card {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.office__addr {
  color: var(--text-head);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-sm);
  line-height: 1.4;
}
.office__phone {
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-sm);
  white-space: nowrap;
}
.office__phone:hover { color: var(--brand-hover); }
.office__hours { color: var(--text-muted); }
.office__route {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-1);
  color: var(--brand);
  font-weight: 700;
  font-family: var(--font-display);
  transition: gap var(--d-base) var(--ease-out);
}
.office__route:hover { gap: var(--space-3); }

.header__bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-block-start: none;
  border-end-start-radius: var(--r-plate);
  border-end-end-radius: var(--r-plate);
  transition: box-shadow var(--d-base) var(--ease-out);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
  padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
  transition: min-height var(--d-base) var(--ease-out);
}

.header__descriptor {
  max-width: 14ch;
  padding-inline-start: var(--space-4);
  border-inline-start: 1px solid var(--border);
  color: var(--text-faint);
  font-size: var(--t-xs);
  line-height: 1.25;
}

.header__logo img { height: 32px; width: auto; transition: height var(--d-base) var(--ease-out); }

.header__nav { margin-inline-start: auto; }
.header__menu { display: flex; align-items: center; gap: var(--space-5); }
.header__menu a {
  position: relative;
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--text-head);
  font-size: var(--t-xs);
  transition: color var(--d-base) var(--ease-out);
}
.header__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}
.header__menu a:hover { color: var(--brand); }
.header__menu a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--space-4); }

/* Телефон в нижнем ярусе — только на мобильном (на десктопе он в верхнем ярусе) */
.header__phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-head);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-sm);
  white-space: nowrap;
  transition: color var(--d-base) var(--ease-out);
}
.header__phone:hover { color: var(--brand); }
.header__phone svg { color: var(--brand); flex: none; }

/* Прилипшее состояние */
/* border-width: 0 — иначе от свёрнутого топбара остаётся полоса из рамок над шапкой */
.header.is-stuck .header__topbar { max-height: 0; opacity: 0; overflow: hidden; border-width: 0; }
.header.is-stuck .header__inner { min-height: var(--header-h-stuck); }
.header.is-stuck .header__logo img { height: 28px; }
.header.is-stuck .header__bar { box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(16, 24, 40, .07); }

/* Бургер */
.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.header__burger-box { display: grid; gap: 5px; width: 20px; }
.header__burger-box span {
  display: block; height: 2px; width: 100%;
  background: var(--text-head); border-radius: 2px;
  transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast) var(--ease-out);
}
.header__burger[aria-expanded="true"] .header__burger-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] .header__burger-box span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] .header__burger-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__mobile {
  border-block-start: 1px solid var(--border);
  background: var(--bg);
  padding-block: var(--space-5) var(--space-6);
  border-end-start-radius: var(--r-plate);
  border-end-end-radius: var(--r-plate);
}
/* Открытое меню забирает нижние скругления плиты себе */
.header__shell:has(.header__mobile:not([hidden])) .header__bar {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}
.header__mobile-menu { display: grid; gap: var(--space-1); }
.header__mobile-menu a {
  display: block;
  padding-block: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-head);
  border-block-end: 1px solid var(--border);
}
.header__mobile-phone {
  display: inline-block;
  margin-block-start: var(--space-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
}
.header__mobile-hours { color: var(--text-muted); font-size: var(--t-sm); }
.header__mobile-offices {
  margin-block-start: var(--space-2);
  color: var(--text-faint);
  font-size: var(--t-xs);
}

/* ============================================================
   БЛОК 2. HERO
   ============================================================ */

.plate--hero {
  margin-block-start: var(--plate-gap);
  padding-block: clamp(1.5rem, 2.4vw, 2.25rem);
  background: linear-gradient(105deg, var(--bg) 0%, var(--bg) 34%, var(--bg-blue) 100%);
  border: 1px solid var(--border);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-end: var(--space-4);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.badge__dot {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--brand);
}

#hero-title { display: grid; gap: var(--space-3); }
.hero__title-main {
  display: block;
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: var(--track-display);
}
.hero__price { color: var(--brand); }
.hero__title-sub {
  display: block;
  max-width: 28ch;
  color: var(--text-muted);
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--track-body);
}

.hero__lead {
  max-width: 56ch;
  margin-block-start: var(--space-4);
  color: var(--text-muted);
  font-size: var(--t-body);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: var(--space-5);
}

.hero__note {
  margin-block-start: var(--space-4);
  color: var(--text-faint);
  font-size: var(--t-sm);
}

/* Скриншот кабинета в hero: кадр браузера, прокрутка — см. .shot__scroll */
/* Прижат к верху колонки: стоит на уровне заголовка, а не по центру текста */
.hero__shot { margin: 0; align-self: start; margin-block-start: clamp(3.5rem, 6vw, 5.5rem); }

/* Метрики */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
}
.metrics__item {
  padding: var(--space-3) var(--space-4);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: calc(var(--r-plate) - 14px);
  box-shadow: var(--shadow-sm);
}
.metrics__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  letter-spacing: var(--track-h);
  line-height: 1.1;
  color: var(--brand);
}
/* Длинный заголовок карточки — на 2 пункта мельче */
.metrics__value--sm { font-size: clamp(1rem, 1.25vw, 1.1875rem); }

.metrics__label {
  display: block;
  margin-block-start: var(--space-1);
  color: var(--text-muted);
  font-size: var(--t-xs);
  line-height: 1.35;
}

/* ============================================================
   БЛОК 3. ПОЛОСА ДОВЕРИЯ
   ============================================================ */

.plate--trust {
  background: var(--bg);
  border: 1px solid var(--border);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
}

.trust__title {
  font-size: var(--t-h3);
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
}

.filter {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out);
}
.filter:hover { border-color: var(--border-strong); color: var(--text-head); }
.filter[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---- Галерея логотипов ---- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--space-3);
  margin-block-start: var(--space-5);
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  filter: grayscale(1);
  opacity: .85;
  transition: filter var(--d-base) var(--ease-out),
              opacity var(--d-base) var(--ease-out),
              background-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-out);
}
.logo-card:hover {
  filter: none;
  opacity: 1;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.logo-card img {
  width: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  mix-blend-mode: multiply;   /* белые подложки логотипов сливаются с карточкой */
}


/* ============================================================
   БЛОК 4. БОЛИ
   ============================================================ */

/* Шапка секции — общий примитив для блоков 4+ */
.section-head { max-width: 58ch; }
.section-head--center { max-width: 62ch; margin-inline: auto; text-align: center; }
.section-head__title { font-size: var(--t-h2); }
.section-head__lead {
  max-width: 52ch;
  margin-block-start: var(--space-4);
  color: var(--text-muted);
  font-size: var(--t-lead);
}

.plate--pains { background: var(--bg-subtle); }

/* Шапка блока: слева текст, справа конвейер (макет фиксированный 540x270) */
.pains__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.pains__anim {
  --line-w: 540px;
  --line-h: 270px;
  --line-scale: 1;   /* меняется в медиазапросах: макет конвейера фиксированный */

  width: calc(var(--line-w) * var(--line-scale));
  height: calc(var(--line-h) * var(--line-scale));
}
.pains__anim .line-demo {
  transform: scale(var(--line-scale));
  transform-origin: top left;
}

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
}

.pain {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--d-base) var(--ease-out);
}
.pain:hover { border-color: var(--border-strong); }

/* Декоративный дубль иконки: крупный, светло-серый, обрезан границей карточки */
.pain__ghost {
  position: absolute;
  right: -18px;
  bottom: -26px;
  z-index: 0;
  display: block;
  width: clamp(120px, 12vw, 158px);
  color: #E4E4E4;
  pointer-events: none;
}
.pain__ghost svg {
  display: block;
  width: 100%;
  height: auto;
  stroke-width: 1;
}

.pain > *:not(.pain__ghost) { position: relative; z-index: 1; }

.pain__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-block-end: var(--space-4);
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 #fff;
  color: var(--brand-red);
}

.pain__title { font-size: var(--t-h3); }

.pain__text {
  margin-block-start: var(--space-3);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* Замыкающая строка и CTA в одном ряду: текст выровнен по левому краю сетки
   карточек, кнопка прижата к правому */
.pains__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
}
.pains__footer .btn { flex: none; }

.pains__closing {
  max-width: 44ch;
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  line-height: 1.4;
  text-wrap: balance;
}
.pains__closing strong { font-weight: 700; }

/* ============================================================
   БЛОК 5. РАЗВИЛКА ПО СИТУАЦИИ
   ============================================================ */

.plate--cases {
  background: var(--bg);
  border: 1px solid var(--border);
}

.situations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-4);
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
  transition: grid-template-columns var(--d-slow) var(--ease-out);
}

.situation {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.situation:hover { border-color: var(--border-strong); }
.situation.is-open {
  border-color: rgba(6, 91, 169, .35);
  box-shadow: var(--shadow-md);
}

.situation__heading { font: inherit; letter-spacing: normal; }

.situation__trigger {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  width: 100%;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: none;
  border: 0;
  text-align: start;
  cursor: pointer;
}

.situation__label { display: grid; gap: var(--space-2); }

.situation__quote {
  color: var(--text-head);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: var(--track-h);
  text-wrap: balance;
}

.situation__hint {
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.45;
}

.situation__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-block-start: 2px;
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--brand);
  transition: transform var(--d-base) var(--ease-out);
}
.situation.is-open .situation__chevron { transform: rotate(180deg); }

/* Раскрытие: grid 0fr → 1fr, чтобы анимировать высоту без фиксированных значений */
.situation__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-slow) var(--ease-out);
}
.situation.is-open .situation__panel { grid-template-rows: 1fr; }
.situation__panel > .situation__inner { overflow: hidden; }
.situation__panel[hidden] { display: none; }

.situation__inner {
  padding-inline: clamp(1.25rem, 2vw, 1.75rem);
  padding-block-end: clamp(1.25rem, 2vw, 1.75rem);
}

.situation__subtitle {
  margin-block-end: var(--space-3);
  color: var(--text-head);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-sm);
}

.situation__list { display: grid; gap: var(--space-3); }
.situation__list li {
  position: relative;
  padding-inline-start: var(--space-5);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.situation__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.situation__note {
  margin-block-start: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-blue);
  border-radius: var(--r-md);
  color: var(--text-head);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.situation__cta {
  width: 100%;
  margin-block-start: var(--space-5);
}

/* ============================================================
   БЛОК 6. КАК МЫ РАБОТАЕМ
   ============================================================ */

.plate--how {
  position: relative;
  overflow: hidden;
  background: var(--bg-blue);
}

/* Фоновый радар: прижат к правому верхнему углу плашки и обрезан её границей.
   Размер оригинала 650×480 масштабируем от правого верхнего угла. */
.how__radar {
  position: absolute;
  top: -70px;
  right: -90px;
  z-index: 0;
  /* 0.9 × 1.2 — увеличение на 20%; origin в правом верхнем углу,
     поэтому радар растёт вниз и влево, не сдвигая точку привязки */
  transform: scale(1.08);
  transform-origin: top right;
  pointer-events: none;
}

/* Исходная палитра радара рассчитана на насыщенный синий фон; на светлой
   плашке .plate--how белый не читается — уводим линии в брендовый синий */
.how__radar .radar-demo {
  --c-white: #7fa8cf;
  --c-gray: #a8c4de;
  --c-blue-gray: #9db2c9;
}
.how__radar .core {
  box-shadow: 0 0 0 6px rgba(6, 91, 169, 0.10), 0 0 22px 6px rgba(6, 91, 169, 0.18);
}

/* Контент секции — поверх радара */
.plate--how > *:not(.how__radar) { position: relative; z-index: 1; }

.eyebrow {
  margin-block-end: var(--space-3);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how__group { margin-block-start: clamp(2rem, 4vw, 3.5rem); }

.how__group-head { margin-block-end: var(--space-5); }
.how__group-title {
  font-size: var(--t-h3);
  text-transform: none;
}
.how__group-lead {
  max-width: 62ch;
  margin-block-start: var(--space-2);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}

/* ---- Предварительный этап ---- */
.prep {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.prep__item {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
}
.prep__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-block-end: var(--space-4);
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-blue) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--brand);
}
.prep__title { font-size: var(--t-h3); }
.prep__text {
  margin-block-start: var(--space-3);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* ---- Шесть этапов ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  counter-reset: none;
}
.step {
  position: relative;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-block-end: var(--space-4);
  background: var(--brand);
  border-radius: var(--r-full);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-body);
  line-height: 1;
}
.step__title { font-size: var(--t-h3); }
.step__text {
  margin-block-start: var(--space-3);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* ---- Что остаётся на вашей стороне ---- */
.duties {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
}
.duties__head { margin-block-end: var(--space-5); }

.duties__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
}
.duty {
  position: relative;
  padding-block-start: var(--space-4);
  border-block-start: 2px solid var(--bg-blue);
}

/* Стрелка перехода к следующему действию: живёт в зазоре сетки,
   поэтому не влияет на высоту и ширину карточки */
.duty__arrow {
  position: absolute;
  left: 100%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-inline-start: calc(var(--space-6) / 2);
  color: var(--brand);
  opacity: 0.55;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.duty__arrow svg { width: 100%; height: 100%; }

/* Последняя карточка в строке ведёт на следующую строку — стрелка не нужна */
.duty:nth-child(3n) .duty__arrow { display: none; }
.duty__num {
  display: block;
  margin-block-end: var(--space-2);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.duty__text {
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}

/* Замыкающая строка и CTA в одном ряду — тот же приём, что у .pains__footer */
.duties__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-block-start: clamp(1.5rem, 2.5vw, 2rem);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border);
}
.duties__footer .btn { flex: none; }

.duties__closing {
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: var(--t-h3);
}

/* ============================================================
   FOOTER
   ============================================================ */

.plate--footer {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  /* низ футера примыкает к краю страницы без скруглений */
  margin-block-end: 0;
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.footer__logo { height: 32px; width: auto; }

.footer__about {
  max-width: 34ch;
  margin-block-start: var(--space-5);
  color: var(--text-inverse-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.footer__entity {
  margin-block-start: var(--space-4);
  color: var(--text-inverse-muted);
  font-size: var(--t-xs);
  line-height: 1.6;
}
.footer__accredited {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-2);
  color: var(--text-inverse-muted);
  font-size: var(--t-xs);
}
.footer__accredited svg { color: var(--accent); flex: none; }

.footer__title {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-block-end: var(--space-4);
}

.footer__list { display: grid; gap: var(--space-3); }
.footer__list a {
  color: var(--text-inverse);
  font-size: var(--t-sm);
  transition: color var(--d-base) var(--ease-out);
}
.footer__list a:hover { color: #8fc0ee; }

.footer__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem !important;
}

.footer__hours {
  margin-block-start: var(--space-4);
  color: var(--text-inverse-muted);
  font-size: var(--t-xs);
}

.footer__bottom {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border-inverse);
}
.footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--text-inverse-muted);
  font-size: var(--t-xs);
}
.footer__copy a { transition: color var(--d-base) var(--ease-out); }
.footer__copy a:hover { color: var(--text-inverse); }
.footer__sep { opacity: .5; }

.footer__disclaimer {
  margin-block-start: var(--space-3);
  color: #7d8288;
  font-size: var(--t-xs);
  line-height: 1.5;
}

/* ============================================================
   БЛОК 7. ПЛАТФОРМА BiCo
   ============================================================ */

.plate--platform {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Фоновое фото команды в правом верхнем углу. Студийный белый фон снимка совпадает
   с фоном плашки, поэтому силуэт «вырастает» из угла; приглушение и растворение
   по левому и нижнему краю не дают ему перетянуть внимание с заголовка */
.platform__photo {
  position: absolute;
  top: 0;
  /* базовое положение у правого края плюс сдвиг влево на 60px */
  right: calc(clamp(-1.5rem, -1vw, -0.5rem) + 60px);
  z-index: 0;
  display: block;
  width: auto;
  /* 260/400 × 1.4 — увеличение на 40%; right и top фиксированы,
     поэтому снимок расширяется влево и вниз, не отрываясь от угла */
  height: clamp(364px, 42vw, 560px);
  opacity: 0.52;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%),
                      linear-gradient(to left, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%),
                      linear-gradient(to left, #000 55%, transparent 100%);
          mask-composite: intersect;
}
.platform__photo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: top right;
}

/* Контент секции — поверх фото */
.plate--platform > *:not(.platform__photo) { position: relative; z-index: 1; }

/* Подблок: текст + визуал, чередование сторон */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-block-start: clamp(2.5rem, 5vw, 4.5rem);
}
.feature--reverse .feature__visual { order: -1; }

.feature__title {
  font-size: var(--t-h3);
  margin-block-end: var(--space-5);
}

.feature__list { display: grid; gap: var(--space-5); }

.fpoint { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); }
.fpoint__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-blue) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--brand);
}
.fpoint__title { font-size: var(--t-body); line-height: 1.3; }
.fpoint__text {
  margin-block-start: var(--space-2);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

.feature__note {
  margin-block-start: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-blue);
  border-radius: var(--r-md);
  color: var(--text-head);
  font-size: var(--t-sm);
  line-height: 1.55;
}
.feature__note strong { font-family: var(--font-display); font-weight: 700; }

.feature__actions { margin-block-start: var(--space-6); }

/* ---- Состав «Анализа закупки» ---- */
.analysis { display: grid; gap: var(--space-4); }
.acard {
  padding-inline-start: var(--space-5);
  border-inline-start: 2px solid var(--bg-blue);
}
.acard__title {
  position: relative;
  font-size: var(--t-body);
  line-height: 1.3;
}
.acard__title::before {
  content: "";
  position: absolute;
  inset-block-start: 0.45em;
  inset-inline-start: calc(-1 * var(--space-5) - 5px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.acard__text {
  margin-block-start: var(--space-2);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* ---- Рамка скриншота ---- */
.feature__visual { margin: 0; }
.shot {
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border-block-end: 1px solid var(--border);
}
.shot__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.shot__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Длинный скриншот в кадре 16:10. На десктопе медленно прокручивается вниз и обратно
   (пауза при наведении); на планшете/телефоне и при reduced-motion — статичный верх.
   100cqh = высота кадра, поэтому сдвиг не зависит от размеров картинки. */
.shot__scroll {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: size;
}
.shot__long { display: block; width: 100%; height: auto; }

@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .shot__long {
    animation: shot-scroll var(--scroll-dur, 28s) ease-in-out infinite;
    animation-play-state: paused;
    will-change: transform;
  }
  /* стартуем, когда подблок появился в зоне видимости (.is-visible от scroll reveal) */
  .is-visible .shot__long { animation-play-state: running; }
  .is-visible .shot__scroll:hover .shot__long { animation-play-state: paused; }
}
@keyframes shot-scroll {
  0%, 8%   { transform: translateY(0); }
  46%, 54% { transform: translateY(calc(-100% + 100cqh)); }
  92%, 100% { transform: translateY(0); }
}

/* Плейсхолдер — держит кадр 16:10 до подстановки реального скриншота */
.shot__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  aspect-ratio: 16 / 10;
  padding: var(--space-5);
  background:
    repeating-linear-gradient(45deg,
      var(--bg-subtle) 0 10px, transparent 10px 20px),
    var(--bg-elevated);
  color: var(--text-faint);
  text-align: center;
}
.shot__ph-title {
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 600;
}
.shot__ph-hint { font-size: var(--t-xs); line-height: 1.4; }

/* ============================================================
   МОДАЛЬНОЕ ОКНО (образец «Анализа закупки»)
   ============================================================ */

.modal {
  /* inset + margin возвращают центровку: базовый сброс `* { margin: 0 }`
     затирает UA-стиль `margin: auto` у <dialog> */
  inset: 0;
  margin: auto;
  width: min(100% - 2 * var(--plate-gap), 960px);
  max-height: min(88svh, 900px);
  padding: 0;
  border: none;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.modal::backdrop { background: rgba(39, 39, 39, .55); }
.modal[open] { display: flex; flex-direction: column; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-block-end: 1px solid var(--border);
}
.modal__title { font-size: var(--t-h3); }
.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
.modal__close:hover { color: var(--brand); border-color: var(--brand); }

.modal__body { flex: 1; min-height: 0; background: var(--bg-subtle); }
.modal__pdf { width: 100%; height: 100%; min-height: 50svh; border: 0; }
.modal__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 50svh;
  padding: var(--space-6);
  color: var(--text-muted);
  font-size: var(--t-sm);
  text-align: center;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-block-start: 1px solid var(--border);
}
.modal__note { color: var(--text-faint); font-size: var(--t-xs); }

/* ============================================================
   БЛОК 8. ВЫГОДЫ
   ============================================================ */

.plate--gains { background: var(--bg-subtle); }

/* Карточки выгод — зеркало сетки болей из блока 4, но иконки брендового синего */
.gains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
}

.gain {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--d-base) var(--ease-out);
}
.gain:hover { border-color: var(--border-strong); }

/* Декоративный дубль иконки: крупный, голубой, обрезан границей карточки.
   Тот же приём, что у .pain__ghost в блоке 4, но в брендовом голубом */
.gain__ghost {
  position: absolute;
  right: -18px;
  bottom: -26px;
  z-index: 0;
  display: block;
  width: clamp(120px, 12vw, 158px);
  color: var(--bg-blue);
  pointer-events: none;
}
.gain__ghost svg {
  display: block;
  width: 100%;
  height: auto;
  stroke-width: 1;
}

.gain > *:not(.gain__ghost) { position: relative; z-index: 1; }

.gain__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-block-end: var(--space-4);
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-blue) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 #fff;
  color: var(--brand);
}

.gain__title { font-size: var(--t-h3); }

/* Блок 8.1: карточка без текста — добавляем высоту, чтобы фоновая иконка читалась */
.gain--compact { min-height: clamp(180px, 16vw, 220px); }
.gain--compact .gain__title { max-width: 16ch; }

/* Въезд карточек слева/справа (сторону и задержку задаёт script.js).
   overflow-x: clip — чтобы карточка за краем не давала горизонтальный скролл */
.gains--slide { overflow-x: clip; }
.gains--slide.is-armed .gain {
  opacity: 0;
  transform: translateX(var(--slide-x, -80px));
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out),
              border-color var(--d-base) var(--ease-out);
  transition-delay: var(--slide-delay, 0ms), var(--slide-delay, 0ms), 0ms;
}
.gains--slide.is-armed.is-in .gain { opacity: 1; transform: none; }

.gain__text {
  margin-block-start: var(--space-3);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* ---- Бесплатно на старте ---- */
.freebies {
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--bg-blue);
  border-radius: var(--r-lg);
}

.freebies__title {
  max-width: 34ch;
  font-size: var(--t-h3);
}

.freebies__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-5);
}

.freebie {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2vw, 1.5rem);
  background: var(--bg-elevated);
  border-radius: var(--r-md);
}

/* Декоративный дубль иконки: крупный, светло-серый, обрезан границей карточки.
   Карточки здесь мельче, чем в .pain/.gain, поэтому и дубль компактнее */
.freebie__ghost {
  position: absolute;
  right: -16px;
  bottom: -22px;
  z-index: 0;
  display: block;
  width: clamp(104px, 10vw, 132px);
  color: #E4E4E4;
  pointer-events: none;
}
.freebie__ghost svg {
  display: block;
  width: 100%;
  height: auto;
  stroke-width: 1;
}

.freebie > *:not(.freebie__ghost) { position: relative; z-index: 1; }
.freebie__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-block-end: var(--space-4);
  background: var(--bg-blue);
  border-radius: var(--r-md);
  color: var(--brand);
}
.freebie__title { font-size: var(--t-body); line-height: 1.3; }
.freebie__text {
  margin-block-start: var(--space-2);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.freebies__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  margin-block-start: clamp(1.5rem, 2.5vw, 2rem);
}
.freebies__note { color: var(--text-muted); font-size: var(--t-sm); }

/* ============================================================
   БЛОК 9. ТАРИФЫ И ЭКОНОМИКА
   ============================================================ */

.plate--pricing {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Фоновое фото в правом верхнем углу. Снимок кадрирован по фигуре, студийный
   белый фон совпадает с фоном плашки; приглушение и растворение по левому
   и нижнему краю удерживают его в роли фона, а не иллюстрации */
.pricing__photo {
  position: absolute;
  /* базовое положение у правого верхнего угла плюс сдвиг вниз на 30px
     и влево на 60px (40 + 20) */
  top: calc(clamp(-2rem, -1.5vw, -0.5rem) + 30px);
  right: calc(clamp(-3rem, -2.5vw, -1rem) + 60px);
  z-index: 0;
  display: block;
  width: auto;
  height: clamp(280px, 32vw, 430px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  /* растушёвка укорочена на 20% (было 52%→100%, стало 62%→100%):
     снимок держит чёткость дольше */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%),
                      linear-gradient(to left, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 62%, transparent 100%),
                      linear-gradient(to left, #000 62%, transparent 100%);
          mask-composite: intersect;
}
.pricing__photo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: top right;
}

/* Контент секции — поверх фото */
.plate--pricing > *:not(.pricing__photo) { position: relative; z-index: 1; }

/* ---- Три тарифа ----
   Ряды карточек выровнены между собой через subgrid: .tiers задаёт 9 строк,
   каждая .tier занимает их все и наследует. Без subgrid (старые браузеры)
   карточка раскладывается обычной колонкой — см. @supports ниже. */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto repeat(4, auto) auto;
  gap: var(--space-4);
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
}

.tier {
  display: grid;
  grid-row: span 7;
  grid-template-rows: subgrid;
  gap: 0;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--d-base) var(--ease-out);
}
.tier:hover { border-color: var(--border-strong); }

/* Средний тариф — рекомендуемый */
.tier--featured {
  background: var(--bg-blue);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.tier--featured:hover { border-color: var(--brand); }

@supports not (grid-template-rows: subgrid) {
  .tiers { grid-template-rows: none; }
  .tier { display: flex; flex-direction: column; grid-row: auto; }
  /* в колонке align-self работает по горизонтали — иначе блок кнопки прижмётся вправо */
  .tier__actions { align-self: stretch; margin-block-start: auto; }
}

.tier__head { padding-block-end: var(--space-4); }
.tier__name { font-size: var(--t-h3); }
.tier__badge {
  display: inline-block;
  margin-block-start: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 500;
}
.tier__badge--hot { background: var(--brand); color: var(--text-inverse); }

.tier__fit {
  padding-block-end: var(--space-5);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.tier__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-block-start: 1px solid var(--border);
}
.tier__row--key { border-block-start: none; }

.tier__label {
  color: var(--text-faint);
  font-size: var(--t-xs);
  line-height: 1.35;
}
.tier__value {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-head);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-body);
  line-height: 1.25;
}
.tier__value--lg {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  color: var(--brand);
  font-weight: 700;
  font-size: var(--t-h3);
}
.tier__value--yes svg { color: var(--accent); flex: none; }
.tier__value--calc {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--t-sm);
}
.tier__hint {
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 400;
  line-height: 1.35;
}

.tier__actions { padding-block-start: var(--space-5); align-self: end; }
.tier__actions .btn { width: 100%; }
.tier--featured .btn--ghost { border-color: var(--brand); }

/* ---- Что входит / оплачивается отдельно ---- */
.included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-4);
}
.included__col {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-subtle);
  border-radius: var(--r-lg);
}
.included__title { font-size: var(--t-h3); }
.included__list {
  display: grid;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
}
.included__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.included__mark { margin-block-start: 3px; color: var(--accent); }
.included__mark--plus { color: var(--text-faint); }

/* ---- Экономика: сравнение со своим отделом ---- */
.economy { margin-block-start: clamp(2rem, 4vw, 3.5rem); }

.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.versus__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 700;
  line-height: 1.25;
}
.versus__head--own {
  background: var(--bg-inverse);
  color: #E4E4E4;
}
.versus__head--bico { background: var(--brand); color: var(--text-inverse); }
.versus__icon { flex: none; }

.versus__cell {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.versus__cell--own {
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.versus__cell--bico {
  background: var(--bg-blue);
  color: var(--text-head);
}

/* ---- Замыкающая цитата + CTA ---- */
/* Ряд как у .duties__footer: цитата у левого края, кнопка прижата к правому */
.pricing__closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-block-start: clamp(2rem, 4vw, 3.5rem);
  text-align: left;
}
.pricing__closing .btn { flex: none; }
.pricing__quote {
  max-width: 52ch;
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}

/* ============================================================
   БЛОК 10. КЕЙСЫ
   ============================================================ */

.plate--cases-list {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
}

/* Фоновый радар блока 10: прижат к правому верхнему углу и обрезан плашкой.
   Вариация анимации блока 6 — см. .radar-demo--scan в animation/radar-pulse.css */
.cases__glow {
  position: absolute;
  top: -48px;
  right: -64px;
  z-index: 0;
  transform: scale(0.95);
  transform-origin: top right;
  pointer-events: none;
}

/* Контент секции — поверх свечения */
.plate--cases-list > *:not(.cases__glow) { position: relative; z-index: 1; }

/* Панель над слайдером: фильтры слева, стрелки справа */
.cases__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: clamp(1.5rem, 3vw, 2rem);
}
.cases__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
/* .filter — общий примитив из блока 3; на сером фоне плиты нужна белая подложка */
.plate--cases-list .filter { background: var(--bg-elevated); }
.plate--cases-list .filter[aria-pressed="true"] { background: var(--brand); }

.cases__nav { display: flex; gap: var(--space-2); }
.cases__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-head);
  cursor: pointer;
  transition: border-color var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out),
              opacity var(--d-base) var(--ease-out);
}
.cases__arrow:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.cases__arrow:disabled { opacity: .4; cursor: default; }

/* ---- Слайдер ---- */
.cases__viewport {
  --case-w: calc((100% - 2 * var(--space-4)) / 3);   /* 3 карточки в кадре */

  margin-block-start: var(--space-5);
  /* карточки «выезжают» за края плиты, поэтому тянем вьюпорт в паддинги */
  margin-inline: calc(-1 * clamp(1.25rem, 3.5vw, 3.5rem));
  padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  /* без scroll-padding снап не знает про padding вьюпорта и уводит трек на ~50px */
  scroll-padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
  scrollbar-width: none;
}
.cases__viewport::-webkit-scrollbar { display: none; }

.cases__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--case-w);
  align-items: stretch;
  gap: var(--space-4);
}

.case {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--d-base) var(--ease-out),
              opacity var(--d-base) var(--ease-out);
}
.case:hover { border-color: var(--border-strong); }
.case.is-out { opacity: 0; }
/* display:flex выше перебил бы дефолт [hidden] — прячем отфильтрованные явно */
.case[hidden] { display: none; }

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-end: var(--space-4);
}
.case__tag {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-blue);
  border-radius: var(--r-full);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.3;
}

.case__title { font-size: var(--t-h3); }

.case__facts { margin-block-start: var(--space-4); }
.case__label {
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case__text {
  margin-block: var(--space-1) var(--space-4);
  margin-inline-start: 0;
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.case__text:last-child { margin-block-end: 0; }

.case__result {
  margin-block-start: auto;          /* прижимаем к низу: карточки разной длины */
  padding: var(--space-4);
  background: var(--bg-blue);
  border-radius: var(--r-md);
  color: var(--text-head);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.case__result--save { background: var(--bg-subtle); }
.case__result-label {
  display: block;
  margin-block-end: var(--space-1);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case__result--save .case__result-label { color: var(--text-faint); }

.case__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: gap var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.case__more:hover { gap: var(--space-3); color: var(--brand-hover); }

.cases__empty {
  margin-block-start: var(--space-5);
  color: var(--text-muted);
  font-size: var(--t-sm);
  text-align: center;
}

/* ---- Работаем там, где другие отказываются ---- */
/* Светлая карточка, а не инверсная: ниже по странице уже стоят тёмный футер
   и синяя CTA-секция блока 14 — третий тёмный акцент перегружал бы низ страницы. */
.hardcases {
  margin-block-start: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
}
.hardcases__title { font-size: var(--t-h3); }

.hardcases__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-5);
}
.hardcase {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-blue);
  border-radius: var(--r-full);
  color: var(--text-head);
  font-size: var(--t-sm);
  line-height: 1.4;
}

.hardcases__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 600;
  border-block-end: 1px solid var(--border-strong);
  padding-block-end: var(--space-1);
  transition: gap var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
.hardcases__cta:hover { gap: var(--space-3); border-color: var(--brand); }

/* ============================================================
   БЛОК 11. ОТЗЫВЫ
   ============================================================ */

/* Белая плита на белом фоне страницы не читается как баннер-секция,
   поэтому очерчиваем её рамкой и мягкой тенью — как остальные плиты цветом */
.plate--reviews {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* Фоновое фото в правом верхнем углу: рукопожатие как метафора доверия.
   Светлый офисный фон снимка близок к фону плашки; приглушение и растворение
   по левому и нижнему краю удерживают его в роли фона */
.reviews__photo {
  position: absolute;
  /* базовое положение у правого верхнего угла плюс сдвиг вниз на 20px
     (40 - 20) и влево на 50px (30 + 20) */
  top: calc(clamp(-2rem, -1.5vw, -0.5rem) + 20px);
  right: calc(clamp(-2.5rem, -2vw, -1rem) + 50px);
  z-index: 0;
  display: block;
  width: auto;
  /* 270/420 × 1.1 — увеличение на 10% */
  height: clamp(297px, 34vw, 462px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  /* Третий градиент растворяет верхний край: фон снимка светло-серый
     (≈#ebeef2) и без него давал видимую ступеньку на белой плите */
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%),
                      linear-gradient(to left, #000 48%, transparent 100%),
                      linear-gradient(to top, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 50%, transparent 100%),
                      linear-gradient(to left, #000 48%, transparent 100%),
                      linear-gradient(to top, #000 88%, transparent 100%);
          mask-composite: intersect;
}
.reviews__photo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: top right;
}

/* Контент секции — поверх фото */
.plate--reviews > *:not(.reviews__photo) { position: relative; z-index: 1; }

/* ---- Благодарственные письма ---- */
.letters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-block-start: var(--space-7);
}

.letter {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-out);
}
.letter:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Брендовая кромка сверху: проявляется на ховере, держит карточки в одной системе
   с остальными блоками страницы */
.letter::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--d-slow) var(--ease-out);
  z-index: 1;
}
.letter:hover::before { transform: scaleX(1); }

.letter__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-block-end: 1px solid var(--border);
  background: var(--bg-subtle);
  cursor: zoom-in;
}
/* Скан кадрируем по верхней части листа: шапка с логотипом читается в превью */
.letter__thumb img {
  width: 100%;
  height: clamp(96px, 8vw, 120px);
  object-fit: cover;
  object-position: top center;
  transition: transform var(--d-slow) var(--ease-out);
}
.letter__thumb:hover img { transform: scale(1.03); }

.letter__zoom {
  position: absolute;
  inset-block-end: var(--space-3);
  inset-inline-end: var(--space-3);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: background var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.letter__thumb:hover .letter__zoom { background: var(--brand); color: var(--text-inverse); }

.letter__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}
.letter__company {
  padding-block-start: var(--space-3);
  border-block-start: 2px solid var(--brand);
  width: fit-content;
  font-size: var(--t-sm);
  line-height: 1.35;
}
.letter__quote {
  position: relative;
  padding-inline-start: var(--space-4);
  border-inline-start: 2px solid var(--bg-blue);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
  /* Текст отзыва — не больше 5 строк, полный текст в скане письма */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
/* Цифра результата — единственный акцент в карточке */
.letter__quote strong { color: var(--brand); font-weight: 700; }
.letter__note {
  margin-block-start: auto;
  color: var(--text-faint);
  font-size: var(--t-xs);
}

/* ---- Видеоотзывы ---- */
.videos { margin-block-start: var(--section-y); }
.videos__title { font-size: var(--t-h3); }

.videos__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-block-start: var(--space-5);
}

.video { display: flex; flex-direction: column; gap: var(--space-3); }

.video__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-subtle);
  cursor: pointer;
}
.video__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--d-slow) var(--ease-out);
}
.video__thumb:hover img { transform: scale(1.04); }

/* Затемнение под кнопкой play — чтобы иконка читалась на любом кадре */
.video__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39, 39, 39, 0) 40%, rgba(39, 39, 39, .35) 100%);
  transition: opacity var(--d-base) var(--ease-out);
}

.video__play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: var(--r-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--brand);
  box-shadow: var(--shadow-md);
  transition: background var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-out);
}
/* Оптическая компенсация: треугольник play тяжелее слева */
.video__play svg { margin-inline-start: 3px; }
.video__thumb:hover .video__play {
  background: var(--brand);
  color: var(--text-inverse);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Вторая строка видео скрыта до клика «Смотреть всё» */
.videos__list.is-collapsed .video--extra { display: none; }
.videos__more { display: flex; justify-content: center; margin-block-start: var(--space-5); }
.videos__more[hidden] { display: none; }
.videos__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 0;
  background: none;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 700;
  cursor: pointer;
  transition: color var(--d-base) var(--ease-out);
}
.videos__toggle:hover { color: var(--brand-hover); }

.video__caption { color: var(--text-muted); font-size: var(--t-sm); line-height: 1.5; }
.video__person {
  display: block;
  color: var(--text-head);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---- Лайтбокс (общий для писем и видео) ---- */
.modal--media { width: min(100% - 2 * var(--plate-gap), 1040px); }
.modal__body--media {
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: var(--bg-subtle);
  overflow: auto;
}
.modal__body--media img {
  width: auto;
  max-width: 100%;
  max-height: 72svh;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
}
/* Обёртка держит 16:9 до загрузки iframe — окно не прыгает */
.modal__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-inverse);
}
.modal__video iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   БЛОК 12. О КОМПАНИИ
   ============================================================ */

.plate--about { background: var(--bg-blue); }

/* ---- Ключевые факты ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-7);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: clamp(1rem, 1.6vw, 1.5rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  /* место под декоративную цифру снизу */
  padding-block-end: clamp(3.25rem, 4.6vw, 4.5rem);
}
/* Декоративная цифра в правом нижнем углу — светло-серая, под текстом */
.fact__deco {
  position: absolute;
  right: clamp(0.5rem, 0.9vw, 0.875rem);
  bottom: -0.12em;
  z-index: 0;
  color: #e9edf2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 4.4vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
/* Длинная цифра («1 200+») — мельче, чтобы не обрезалась слева */
.fact__deco--wide { font-size: clamp(2.125rem, 3.2vw, 3.125rem); }
.fact__value, .fact__label { position: relative; z-index: 1; }
.fact__value {
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  letter-spacing: var(--track-h);
  line-height: 1.1;
}
/* Длинное значение («150 млрд ₽») — мельче и в одну строку, чтобы не рвалось */
.fact__value--sm { font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); white-space: nowrap; }
.fact__label {
  color: var(--text-muted);
  font-size: var(--t-xs);
  line-height: 1.4;
}

/* ---- Команда ---- */
.team {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}
.role {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
}
/* Синяя засечка сверху — тот же приём, что у .duty, но на белой карточке */
.role__title {
  position: relative;
  padding-block-start: var(--space-4);
  font-size: var(--t-body);
  line-height: 1.3;
}
.role__title::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 3px;
  border-radius: var(--r-full);
  background: var(--brand);
}
.role__text {
  margin-block-start: var(--space-3);
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* ---- Отрасли клиентов: диаграмма на CSS ---- */
.shares {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
}
.shares__list {
  display: grid;
  gap: var(--space-4);
}
/* Колонка подписи фиксирована, чтобы шкалы баров начинались от одной линии */
.share {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: var(--space-4);
}
.share__name {
  color: var(--text-head);
  font-size: var(--t-sm);
  line-height: 1.4;
}
.share__bar {
  display: block;
  height: 12px;
  border-radius: var(--r-full);
  background: var(--bg-blue);
  overflow: hidden;
}
/* 26% — максимум в наборе, поэтому шкалу нормируем по 30% ширины контейнера */
.share__fill {
  display: block;
  width: calc(var(--share) / 30 * 100%);
  height: 100%;
  border-radius: var(--r-full);
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.shares.is-visible .share__fill,
.no-js .share__fill { transform: scaleX(1); }
.share--other .share__fill { background: var(--text-faint); }

.share__value {
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-body);
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.share--other .share__value { color: var(--text-faint); }

.shares__caption {
  margin-block-start: var(--space-5);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--border);
  color: var(--text-faint);
  font-size: var(--t-xs);
}

/* ---- Офисы ---- */
.offices-table {
  padding: clamp(1.25rem, 2.2vw, 2rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
}
.otable {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}
.otable th,
.otable td {
  padding: var(--space-4) var(--space-4);
  vertical-align: top;
  text-align: start;
}
.otable thead th {
  padding-block: 0 var(--space-3);
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.otable tbody tr { border-block-start: 1px solid var(--border); }
.otable td {
  color: var(--text-muted);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.otable__city {
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 700;
  white-space: nowrap;
}
.otable__badge {
  display: block;
  margin-block-start: var(--space-1);
  color: var(--brand);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.otable__link {
  display: block;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--d-base) var(--ease-out);
}
.otable__link:hover { color: var(--brand); }

/* flex, а не inline-flex: иначе кнопка встаёт в строку адреса */

/* ============================================================
   БЛОК 13. FAQ
   ============================================================ */

.plate--faq {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* Фоновое фото по правой стороне блока. Список вопросов ограничен 88ch,
   поэтому правая полоса свободна; приглушение и растворение по левому
   и нижнему краю удерживают снимок в роли фона */
.faq__photo {
  position: absolute;
  right: clamp(-2rem, -1.5vw, -0.5rem);
  bottom: 0;
  z-index: 0;
  display: block;
  width: auto;
  /* 480/820 × 1.3 — увеличение на 30%; right и bottom фиксированы,
     поэтому снимок расширяется влево и вверх, не отрываясь от угла */
  /* 624/1066 × 0.9 — уменьшение на 10%; right и bottom фиксированы,
     поэтому снимок сжимается вправо и вниз, к точке привязки */
  height: clamp(562px, 66vw, 959px);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  /* Левый край растворяется раньше, чем начинается колонка шевронов,
     поэтому увеличенный снимок не мешает читать список вопросов */
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 92%),
                      linear-gradient(to top, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to left, #000 45%, transparent 92%),
                      linear-gradient(to top, #000 62%, transparent 100%);
          mask-composite: intersect;
}
.faq__photo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

/* Контент блока — поверх фото */
.plate--faq > *:not(.faq__photo) { position: relative; z-index: 1; }

.faq {
  max-width: 88ch;
  margin-block-start: var(--space-7);
}

.faq__item {
  position: relative;
  border-block-end: 1px solid var(--border);
  transition: background var(--d-base) var(--ease-out);
}
.faq__item:first-child { border-block-start: 1px solid var(--border); }

/* Раскрытый вопрос подсвечивается подложкой и брендовой полосой слева:
   в длинном списке сразу видно, где ты находишься */
.faq__item[open] {
  background: var(--bg-subtle);
  border-radius: var(--r-md);
}
.faq__item[open]::before {
  content: "";
  position: absolute;
  inset-block: var(--space-4);
  inset-inline-start: 0;
  width: 3px;
  border-radius: var(--r-full);
  background: var(--brand);
}
.faq__item[open] > .faq__q {
  padding-inline: var(--space-5);
  color: var(--brand);
}
.faq__item[open] > .faq__a {
  padding-inline-start: var(--space-5);
  padding-inline-end: calc(32px + var(--space-5) + var(--space-5));
}

.faq__q {
  display: flex;
  padding-inline: 0;
  transition: padding var(--d-base) var(--ease-out);
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: clamp(1rem, 1.8vw, 1.375rem);
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--track-h);
  cursor: pointer;
  list-style: none;                      /* убираем штатный треугольник */
  transition: color var(--d-base) var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand); }
.faq__q:focus-visible { outline-offset: -2px; }

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-block-start: -2px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--brand);
  transition: transform var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out);
}
.faq__q:hover .faq__icon { border-color: var(--brand); }
.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-inverse);
}

.faq__a {
  padding-block-end: clamp(1rem, 1.8vw, 1.375rem);
  transition: padding var(--d-base) var(--ease-out);
  padding-inline-end: calc(32px + var(--space-5));   /* не заезжаем под иконку */
  color: var(--text-muted);
  font-size: var(--t-body);
  line-height: 1.6;
}
/* Ответ проявляется только при раскрытии: до этого он не в потоке,
   поэтому анимируем появление, а не высоту */
.faq__item[open] .faq__a { animation: faq-in var(--d-slow) var(--ease-out); }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   БЛОК 14. КОНВЕРСИОННЫЙ БЛОК
   ============================================================ */

.plate--cta {
  background: var(--brand);
  color: var(--text-inverse);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.cta__title {
  max-width: 18ch;
  color: var(--text-inverse);
  font-size: var(--t-h2);
}
.cta__lead {
  max-width: 52ch;
  margin-block-start: var(--space-5);
  color: rgba(255, 255, 255, .82);
  font-size: var(--t-lead);
}

.cta__perks {
  display: grid;
  gap: var(--space-3);
  margin-block-start: clamp(1.5rem, 2.5vw, 2rem);
}
.cta__perk {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 500;
}
.cta__perk svg { flex: none; color: var(--accent); }

.cta__contacts {
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border-inverse);
}
.cta__contacts-label {
  margin-block-end: var(--space-4);
  color: rgba(255, 255, 255, .7);
  font-size: var(--t-sm);
}
.cta__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-inline-end: var(--space-6);
  margin-block-end: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 700;
  transition: color var(--d-base) var(--ease-out);
}
.cta__contact:hover { color: var(--accent); }
.cta__contact svg { flex: none; opacity: .8; }

.cta__note {
  margin-block-start: var(--space-2);
  color: rgba(255, 255, 255, .62);
  font-size: var(--t-xs);
}

/* ---- Форма ---- */
.lead-form {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.field { display: grid; gap: var(--space-2); }
.field__label {
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.field__opt { color: var(--text-faint); font-weight: 400; letter-spacing: 0; }

.field__input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: var(--t-sm);
  transition: border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.field__input::placeholder { color: var(--text-faint); }
.field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(6, 91, 169, .14);
}
.field__input--area { min-height: 90px; resize: vertical; line-height: 1.5; }

/* Подсветка ошибки ставится скриптом только после попытки отправки */
.field__input.is-invalid,
.consent.is-invalid .consent__box {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(169, 30, 34, .12);
}
.field__error {
  color: var(--brand-red);
  font-size: var(--t-xs);
  line-height: 1.4;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  cursor: pointer;
}
.consent__box {
  width: 20px; height: 20px;
  margin-block-start: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  accent-color: var(--brand);
  cursor: pointer;
}
.consent__text {
  color: var(--text-faint);
  font-size: var(--t-xs);
  line-height: 1.5;
}
.consent__text a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent__text a:hover { color: var(--brand-hover); }

.cta__submit { width: 100%; }
.cta__submit[disabled] { opacity: .6; pointer-events: none; }

.form-status {
  padding: var(--space-4);
  border-radius: var(--r-sm);
  background: rgba(22, 177, 105, .1);
  color: var(--text-head);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.form-status--error { background: rgba(169, 30, 34, .08); color: var(--brand-red); }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1240px) {
  .header__descriptor { display: none; }
}

@media (max-width: 1100px) {
  .header__menu { gap: var(--space-4); }
  .offices__label { display: none; }
}

@media (max-width: 960px) {
  /* Радары перекрывали бы заголовки блоков 6 и 10 — на узких экранах убираем */
  .how__radar,
  .cases__glow { display: none; }

  /* Фото блока 7 наезжало бы на заголовок — убираем вместе с ним */
  .platform__photo { display: none; }

  /* Блок 13: список вопросов занимает всю ширину — фону места не остаётся */
  .faq__photo { display: none; }

  /* Блок 9: тарифы раскладываются в колонку и занимают всю ширину плашки */
  .pricing__photo { display: none; }

  /* Блок 11: письма и видео уходят в одну колонку — фону места не остаётся */
  .reviews__photo { display: none; }

  .offices { display: none; }
  .header__nav,
  .header__cta { display: none; }
  .header__burger { display: inline-flex; }

  /* Шапка прилипшая (position: sticky), поэтому не может быть выше экрана:
     всё, что не поместилось, обрезается и не прокручивается. При открытом меню
     прокрутка страницы к тому же заблокирована (.scroll-lock на body), так что
     нижние пункты становились недоступны. Ограничиваем шапку высотой вьюпорта
     и отдаём остаток меню с собственным скроллом. */
  .header__shell {
    display: flex;
    flex-direction: column;
    max-height: 100svh;
  }
  .header__topbar,
  .header__bar { flex: none; }
  .header__mobile {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .header__actions { margin-inline-start: auto; }
  .header__phone {
    display: inline-flex;
    width: 44px; height: 44px;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
  }

  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pains__head { grid-template-columns: minmax(0, 1fr); }
  .pains__anim { justify-self: center; }
  .situations { grid-template-columns: minmax(0, 1fr); }
  .steps,
  .duties__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Две колонки: стрелку прячем у чётных карточек, а не у каждой третьей */
  .duty:nth-child(3n) .duty__arrow { display: flex; }
  .duty:nth-child(2n) .duty__arrow { display: none; }

  /* Блок 7: подблоки в одну колонку, визуал — под текстом */
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--reverse .feature__visual { order: 0; }

  .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Блок 9: три тарифа не помещаются — раскладываем в колонку */
  .tiers { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .tier { display: flex; flex-direction: column; grid-row: auto; }
  .tier__actions { align-self: stretch; margin-block-start: auto; }
  .tier__actions .btn { width: auto; }

  /* Блок 10: две карточки кейсов в кадре */
  .cases__viewport { --case-w: calc((100% - var(--space-4)) / 2); }

  /* Блок 11: письма в 2 колонки, видео — в 2 колонки */
  .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Блок 14: форма уезжает под текст */
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__title { max-width: 24ch; }

  /* Блок 12: факты 3×2, команда — 2 ряда, подпись отрасли над баром */
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) 3.5rem; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  /* на планшете/телефоне скриншот статичный и идёт после текста */
  .hero__shot { margin-block-start: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pains,
  .prep,
  .steps,
  .gains,
  .freebies__list,
  .duties__list { grid-template-columns: minmax(0, 1fr); }

  /* Замыкающие строки блоков 4, 6 и 9: текст и кнопка не помещаются в ряд */
  .pains__footer,
  .duties__footer { flex-direction: column; align-items: flex-start; }
  .pricing__closing { flex-direction: column; align-items: flex-start; }

  /* Одна колонка: стрелка разворачивается вниз и уходит в вертикальный зазор */
  .duty:nth-child(3n) .duty__arrow,
  .duty:nth-child(2n) .duty__arrow { display: flex; }
  .duty:last-child .duty__arrow { display: none; }
  .duty__arrow {
    left: 50%;
    top: 100%;
    margin-inline-start: 0;
    margin-block-start: calc(var(--space-5) / 2);
    transform: translate(-50%, -50%) rotate(90deg);
  }

  /* Блок 11: одна колонка — скан и кадр видео остаются читаемыми */
  .letters,
  .videos__list { grid-template-columns: minmax(0, 1fr); }
  .letter__thumb img { height: clamp(110px, 28vw, 140px); }

  /* Блок 12: факты 2×3, команда в колонку */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: minmax(0, 1fr); }

  /* Диаграмма: подпись над баром, процент — справа от шкалы */
  .share {
    grid-template-columns: minmax(0, 1fr) 3.5rem;
    gap: var(--space-2) var(--space-3);
  }
  .share__name { grid-column: 1 / -1; }

  /* Таблица офисов: строка превращается в карточку, шапка прячется,
     названия колонок подставляются из data-label (приём из блока 9) */
  .otable,
  .otable tbody,
  .otable tr,
  .otable th,
  .otable td { display: block; }
  .otable thead { display: none; }
  .otable tbody tr {
    padding-block: var(--space-5);
    border-block-start: 1px solid var(--border);
  }
  .otable tbody tr:first-child { padding-block-start: 0; border-block-start: 0; }
  .otable th,
  .otable td { padding: 0; }
  .otable td { margin-block-start: var(--space-3); }
  .otable td::before {
    content: attr(data-label);
    display: block;
    margin-block-end: var(--space-1);
    color: var(--text-faint);
    font-family: var(--font-display);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* Экономика: две колонки схлопываются в пары «штат → BiCo».
     Шапки колонок прячем, подпись переносим в саму ячейку. */
  .included,
  .versus { grid-template-columns: minmax(0, 1fr); }
  .versus__head { display: none; }
  .versus__cell::before {
    display: block;
    margin-block-end: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .versus__cell--own::before  { content: "Свой специалист в штате"; color: var(--text-faint); }
  .versus__cell--bico::before { content: "Сопровождение BiCo"; color: var(--brand); }
  .versus__cell--bico { margin-block-end: var(--space-3); }

  /* Кейсы: одна карточка в кадре, фильтры — горизонтальной лентой */
  .cases__viewport { --case-w: 100%; }
  /* wrap + column делает бар многоколоночным: ширина линии считается по содержимому,
     и лента фильтров распирает плиту. В колонке перенос не нужен. */
  .cases__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .cases__filters {
    /* min-width:auto у flex-элемента не даёт ленте сжаться, и overflow-x не работает */
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--space-5));
    padding-inline: var(--space-5);
  }
  .cases__filters::-webkit-scrollbar { display: none; }
  .cases__nav { justify-content: flex-end; }

  .header__topbar { display: none; }
  .plate { padding-inline: var(--space-5); }
}

@media (max-width: 560px) {
  .logo-card { min-height: 68px; }
  .video__play { width: 54px; height: 54px; }
  .hero__actions .btn { width: 100%; }
  .feature__actions .btn { width: 100%; }
  .freebies__actions { flex-direction: column; align-items: stretch; }
  .freebies__actions .btn { width: 100%; }
  .pricing__closing .btn,
  .tier__actions .btn { width: 100%; }
  .modal__foot .btn { width: 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Конвейер: макет 540x270 не резиновый — уменьшаем ступенями по ширине экрана */
@media (max-width: 620px) { .pains__anim { --line-scale: 0.85; } }
@media (max-width: 520px) { .pains__anim { --line-scale: 0.72; } }
@media (max-width: 430px) { .pains__anim { --line-scale: 0.55; } }

/* ============================================================
   МОБИЛЬНЫЕ ЛЕНТЫ
   Длинные сетки карточек на телефоне разворачиваются в один ряд
   с горизонтальной прокруткой и снапом: экономит вертикаль и сохраняет
   исходный порядок. Идёт после основных брейкпойнтов, чтобы перебить
   их grid-template-columns. Кейсы (.cases__viewport) устроены так же —
   там лента была изначально.
   ============================================================ */
@media (max-width: 720px) {
  .pains,
  .steps,
  .duties__list,
  .freebies__list,
  .letters {
    grid-template-columns: none;
    grid-auto-flow: column;
    /* карточка чуть уже экрана — край следующей подсказывает о прокрутке */
    grid-auto-columns: 82vw;
    gap: var(--space-4);
    /* лента идёт от края до края плиты, а не внутри её паддингов */
    margin-inline: calc(-1 * clamp(1.25rem, 3.5vw, 3.5rem));
    padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
  }
  /* Тонкая дорожка прокрутки под лентой — показывает, сколько ещё осталось
     и где пользователь сейчас; заменяет скрытый системный скроллбар */
  .pains,
  .steps,
  .duties__list,
  .freebies__list,
  .letters,
  .versus {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    padding-block-end: var(--space-3);
  }
  .pains::-webkit-scrollbar,
  .steps::-webkit-scrollbar,
  .duties__list::-webkit-scrollbar,
  .freebies__list::-webkit-scrollbar,
  .letters::-webkit-scrollbar,
  .versus::-webkit-scrollbar { height: 4px; }
  .pains::-webkit-scrollbar-track,
  .steps::-webkit-scrollbar-track,
  .duties__list::-webkit-scrollbar-track,
  .freebies__list::-webkit-scrollbar-track,
  .letters::-webkit-scrollbar-track,
  .versus::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: var(--r-full);
  }
  .pains::-webkit-scrollbar-thumb,
  .steps::-webkit-scrollbar-thumb,
  .duties__list::-webkit-scrollbar-thumb,
  .freebies__list::-webkit-scrollbar-thumb,
  .letters::-webkit-scrollbar-thumb,
  .versus::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: var(--r-full);
  }

  /* Текстовая подсказка с уезжающей стрелкой: сообщает о прокрутке до того,
     как пользователь тронет ленту */
  .scroll-hint {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-block-end: var(--space-3);
    color: var(--text-faint);
    font-size: var(--t-xs);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .scroll-hint__arrow {
    display: flex;
    color: var(--brand);
    animation: scroll-hint-nudge 1.8s var(--ease-out) infinite;
  }
  @keyframes scroll-hint-nudge {
    0%, 60%, 100% { transform: translateX(0); }
    25%           { transform: translateX(5px); }
  }

  .pain,
  .step,
  .duty,
  .freebie,
  .letter { scroll-snap-align: start; }

  /* Эти две ленты лежат не в плите, а во внутренней карточке — вытягиваем их
     на её собственный паддинг, иначе лента не доедет до края */
  .duties__list,
  .freebies__list {
    margin-inline: calc(-1 * clamp(1.5rem, 2.6vw, 2.25rem));
    padding-inline: clamp(1.5rem, 2.6vw, 2.25rem);
    scroll-padding-inline: clamp(1.5rem, 2.6vw, 2.25rem);
  }

  /* В ленте карточки снова стоят в ряд — стрелка перехода смотрит вправо */
  .duty__arrow {
    left: 100%;
    top: 50%;
    margin-inline-start: calc(var(--space-4) / 2);
    margin-block-start: 0;
    transform: translate(-50%, -50%);
  }
  .duty:last-child .duty__arrow { display: none; }

  /* «Экономика»: вместо списка с подписями возвращаем таблицу из двух
     колонок — сравнение читается построчно, лишнее уходит в прокрутку */
  .versus {
    grid-template-columns: repeat(2, 78vw);
    margin-inline: calc(-1 * clamp(1.25rem, 3.5vw, 3.5rem));
    padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
  }
  .versus__head { display: flex; scroll-snap-align: start; }
  .versus__cell { scroll-snap-align: start; }
  .versus__cell::before { content: none; }
  .versus__cell--bico { margin-block-end: 0; }
}

/* ============================================================
   MOTION
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Мобильная sticky-кнопка «Задать вопрос эксперту»
   Показ/скрытие — script.js (от #how до конца #reviews)
   ============================================================ */
.sticky-cta { display: none; }
@media (max-width: 960px) {
  .sticky-cta {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: calc(var(--z-header) - 1);
    display: block;
    padding: var(--space-3) clamp(1.25rem, 3.5vw, 3.5rem);
    padding-block-end: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-block-start: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(39, 39, 39, .08);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform var(--d-slow) var(--ease-out), visibility 0s linear var(--d-slow);
  }
  .sticky-cta.is-visible {
    transform: none;
    visibility: visible;
    transition: transform var(--d-slow) var(--ease-out), visibility 0s;
  }
  .sticky-cta__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .sticky-cta.is-visible { transition: none; }
}

/* ============================================================
   Ссылка-раскрывашка для скрытых модулей («Экономика», «Что остаётся…»)
   ============================================================ */
.more-toggle {
  display: flex;
  justify-content: center;
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}
.more-toggle[hidden] { display: none; }
.more-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 0;
  background: none;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: color var(--d-base) var(--ease-out);
}
.more-toggle__btn:hover { color: var(--brand-hover); }
.more-toggle__btn svg { flex: none; }

/* ---- Офисы в футере: подсказка открывается вверх, на тёмном фоне ---- */
.office--footer { display: inline-block; white-space: normal; }
.office--footer .office__city {
  color: var(--text-inverse);
  font-size: var(--t-sm);
  border-color: rgba(255, 255, 255, .4);
}
.office--footer:hover .office__city,
.office--footer:focus-visible .office__city { color: #8fc0ee; border-color: #8fc0ee; }
.office--footer .office__card {
  top: auto;
  bottom: calc(100% + var(--space-3));
  left: 0;
  right: auto;
  min-width: 260px;
  color: var(--text);
  font-size: var(--t-xs);
  transform: translateY(6px);
}

/* ---- Блок «Готовы сделать расчёт»: низ формы = низ строки контактов ---- */
@media (min-width: 961px) {
  .cta__grid { align-items: end; }
  .cta__contacts {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--space-6);
    row-gap: var(--space-3);
  }
  .cta__contacts-label { flex-basis: 100%; margin-block-end: var(--space-1); }
  .cta__contact { margin: 0; }
  /* Примечание выносим из потока, чтобы оно не удлиняло колонку текста */
  .cta__note {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    margin-block-start: var(--space-3);
  }
}
.footer__list .office__phone { color: var(--brand); font-size: var(--t-sm); }
.footer__list .office__phone:hover { color: var(--brand-hover); }
/* Невидимый мостик между названием города и подсказкой: курсор доходит до телефона, не теряя ховер */
.office__card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 100%;
  height: var(--space-3);
}
.office--footer .office__card::before { inset-block-end: auto; inset-block-start: 100%; }

/* ============================================================
   Попап с заявкой (hero → «Получить расчет тарифа»)
   ============================================================ */
.modal--lead {
  width: min(100% - 2 * var(--plate-gap), 30rem);
  max-height: min(92svh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal--lead[open] { display: block; }
.modal--lead::backdrop { background: rgba(39, 39, 39, .65); backdrop-filter: blur(2px); }
.modal--lead__close {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  z-index: 1;
  background: var(--bg-elevated);
}
.modal--lead__title {
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.5rem, 2.6vw, 2.25rem) 0;
  /* место под крестик справа */
  padding-inline-end: calc(40px + var(--space-5));
  color: var(--text-head);
  font-size: var(--t-h3);
  line-height: 1.3;
}
/* Форма уже лежит в карточке модалки — снимаем её собственную тень */
.lead-form--popup { box-shadow: none; border-radius: 0; background: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .modal--lead[open] { animation: lead-modal-in var(--d-slow) var(--ease-out); }
  @keyframes lead-modal-in { from { opacity: 0; transform: translateY(12px); } }
}
