/* =========================================================
   ADSPACE Group — комиксный слой

   Заказчик согласовал вариант 01 «Комиксный разворот» со страницы
   variants.html и попросил распространить его подачу на всю главную.
   Здесь тот же набор приёмов, что и в согласованном блоке акций —
   без новых, чтобы страница читалась как одна комиксная полоса:

   1. Кадр — рамка 3px по внешнему контуру, 2px внутри кадра.
   2. Жёсткая тень (--hard) — у кадров и плашек, без размытия.
   3. «Звук» (.cx-bang) — наклонная плашка с тенью: акцент, результат,
      главная цифра. Один вид на всю страницу.
   4. Реплика (.cx-bubble) — облачко с хвостиком: условие акции,
      задача клиента, пояснение к блоку. Человеческий голос.
   5. Растр (.cx-panel--tone) — точечная «печать» вместо заливки.
   6. Заголовок-табличка — наклонная плашка с тенью, как «АКЦИИ МЕСЯЦА».
   7. Модульная сетка — кадры в общей рамке через просвет бумаги.

   Подключается ПОСЛЕ styles.css и mono.css, снимается одним <link>.
   ========================================================= */

:root {
  --stroke: 2px;
  --stroke-fat: 3px;
  --hard: 6px 6px 0 var(--ink);
  --hard-sm: 4px 4px 0 var(--ink);
  --hard-light: 6px 6px 0 rgba(255, 255, 255, 0.9);
  --hard-sm-light: 4px 4px 0 rgba(255, 255, 255, 0.9);
}

/* =========================================================
   ОБЩИЕ ПРИЁМЫ
   ========================================================= */

/* шапка была полупрозрачной: под ней проезжал крупный логотип и
   красил её в розовый. Делаем непрозрачной. */
.site-header {
  background: var(--paper);
  backdrop-filter: none;
  border-bottom: var(--stroke) solid var(--ink);
}

/* рубрика: надзаголовок с линейкой, как в газете */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-weight: 800;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
}
.eyebrow--light {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
.eyebrow--light::after {
  background: rgba(255, 255, 255, 0.5);
}

/* ── заголовок-табличка ───────────────────────────────────
   Ровно та же плашка, что несёт «АКЦИИ МЕСЯЦА» в согласованном
   блоке. Наклон маленький — заголовок остаётся читаемым. */
.cx-title,
.section-heading h2,
.builder-heading h2,
.platform-heading h2,
.accuracy-copy h2,
.pres-copy h2,
.contact h2 {
  display: inline-block;
  padding: 12px 22px;
  border: var(--stroke-fat) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard);
  transform: rotate(-1.6deg);
  font-size: clamp(28px, 3.1vw, 50px);
  text-transform: uppercase;
}
/* на тёмных секциях та же плашка, только вывернутая */
.builder-heading h2,
.platform-heading h2,
.accuracy-copy h2,
.contact h2 {
  border-color: var(--white);
  background: transparent;
  box-shadow: var(--hard-light);
}
/* линейка под шапкой блока больше не нужна: её роль взяла плашка */
.section-heading {
  align-items: end;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.section-heading > div:only-child {
  grid-column: 1 / -1;
}

/* ── «звук»: наклонная плашка-акцент ─────────────────────── */
.cx-bang {
  position: absolute;
  z-index: 2;
  padding: 8px 16px;
  border: var(--stroke-fat) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard-sm);
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  transform: rotate(-6deg);
}
.cx-bang--tr {
  top: 14px;
  right: 12px;
}
/* в узких кадрах плашка встаёт в поток, чтобы не перекрывать текст */
.cx-bang--inline {
  position: static;
  align-self: flex-start;
  margin-top: 14px;
  /* запас снизу под наклон плашки, чтобы угол не задевал соседнюю строку */
  margin-bottom: 10px;
  transform: rotate(-3deg);
}
/* плашка-ссылка: тот же «звук», но нажимается */
.cx-bang--link {
  position: static;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 14px;
  border-width: var(--stroke);
  font-size: 12px;
  letter-spacing: 0.08em;
  transform: rotate(-2.5deg);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cx-bang--link:hover {
  transform: rotate(-2.5deg) translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ── реплика в облачке ───────────────────────────────────── */
.cx-bubble {
  position: relative;
  margin-top: 12px;
  padding: 12px 16px;
  border: var(--stroke) solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.cx-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -10px;
  width: 16px;
  height: 10px;
  background: var(--surface);
  border-right: var(--stroke) solid var(--ink);
  border-bottom: var(--stroke) solid var(--ink);
  transform: skewX(-24deg);
}

/* ── кнопки: печатные, отклик — вдавливание ──────────────── */
.button,
.builder-submit,
.pres-button {
  border: var(--stroke) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--hard-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.22s ease;
}
.button:hover,
.builder-submit:hover,
.pres-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
/* на тёмных секциях тень вывернутая, иначе её просто не видно */
.builder .button,
.builder-submit,
.platform .button,
.accuracy .button,
.contact .button,
.contact-form .button {
  border-color: var(--white);
  box-shadow: var(--hard-sm-light);
}
.builder .button:hover,
.builder-submit:hover,
.platform .button:hover,
.accuracy .button:hover,
.contact .button:hover,
.contact-form .button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.9);
}

/* ── кнопка-стрелка внутри кадра ─────────────────────────── */
.cx-cta {
  margin-top: 14px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: var(--stroke) solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--hard-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cx-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* =========================================================
   01 · ПЕРВЫЙ ЭКРАН
   ========================================================= */
.hero-tagline {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

/* Кадр «что здесь можно сделать» просили крупнее: отдаём ему больше
   половины первого экрана и снимаем жёсткую минимальную высоту —
   пропорции держит сам экран сцены. */
.hero-grid {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: stretch;
}
.hero-stage {
  padding: 22px;
  min-height: 0;
  border: var(--stroke-fat) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--hard);
}
.stage-screen {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  border-radius: 0;
  border: var(--stroke) solid var(--ink);
}
.stage-top {
  border-bottom: 0;
}
/* подпись сцены — такой же «звук», как в кадрах акций */
.stage-kicker {
  display: inline-block;
  padding: 7px 14px;
  border: var(--stroke) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard-sm);
  transform: rotate(-2deg);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.stage-caption strong {
  text-transform: uppercase;
  font-size: 22px;
}
/* точки листалки — квадратные, в тон обводкам */
.stage-dots button {
  width: 22px;
  height: 10px;
  border: var(--stroke) solid var(--ink);
  border-radius: 0;
  background: transparent;
}
.stage-dots button[aria-selected="true"] {
  background: var(--ink);
}
/* подписи внутри сцены — маленькие плашки, а не всплывашки */
.chip {
  border-radius: 0;
  border: var(--stroke) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard-sm);
  font-weight: 700;
}
/* Колонка текста стала уже — три довода перестали помещаться в строку
   и ломались на две. Ставим их таблицей в три колонки под линейкой. */
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 0;
  margin-top: auto;
  border-top: 1px solid var(--ink);
}
/* запас, чтобы тень кнопок не ложилась на линейку под ними */
.hero-copy .button-row {
  margin-bottom: 32px;
}
.hero-proof li {
  padding: 14px 14px 0 0;
  font-size: 10px;
  line-height: 1.5;
}
.hero-proof li b {
  display: block;
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 13px;
}

/* ── полоса цифр: каждая цифра — свой кадр ─────────────────
   Вместо газетной таблицы с линейками — ряд отдельных плашек с
   жёсткой тенью и лёгким наклоном, как расклеенные вручную.
   Подпись под цифрой — штамп в рамке, а не серая строка.
   Пятая клетка — карта: заказчик просил, чтобы география была
   заметна и мимо неё не проходили. */
.metric-strip {
  grid-template-columns: repeat(4, 1fr) minmax(190px, 0.9fr);
  align-items: stretch;
  gap: 20px;
  border: 0;
  /* запас снизу — под жёсткие тени плашек */
  padding: 10px 0 40px;
}
.metric-strip > div,
.metric-map {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 20px;
  border: var(--stroke-fat) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard);
}
/* наклон вразнобой — плашки читаются как расклеенные, а не как таблица */
.metric-strip > *:nth-child(odd) {
  transform: rotate(-1.2deg);
}
.metric-strip > *:nth-child(even) {
  transform: rotate(0.9deg);
}
.metric-strip strong {
  font-size: clamp(38px, 4vw, 60px);
}
/* подпись — штамп, как метаданные в кадрах акций */
.metric-strip > div span {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 9px;
  border: var(--stroke) solid var(--ink);
  background: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* клетка-карта: растр вместо заливки, отклик — как у кадров акций */
.metric-map {
  background-color: var(--surface);
  background-image: radial-gradient(var(--tone-3, #d9d9d9) 34%, transparent 35%);
  background-size: 9px 9px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease;
}
.metric-map:hover {
  transform: rotate(0.9deg) translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.metric-map-kicker {
  padding: 4px 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.metric-map strong {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}
.metric-map-go {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

/* =========================================================
   02 · АКЦИИ · комиксный разворот (согласованный вариант)
   ========================================================= */
.cx-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}
/* плашку несёт обёртка, заголовок внутри — обычный */
.cx-title h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  font-size: clamp(30px, 3.4vw, 52px);
}
.cx-flip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cx-flip button {
  width: 46px;
  height: 46px;
  border: var(--stroke) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard-sm);
  font-size: 17px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cx-flip button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.cx-flip b {
  color: var(--ink);
}

.cx-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(178px, auto);
  gap: 12px;
  padding: 12px;
  border: var(--stroke-fat) solid var(--ink);
  background: var(--paper);
}
.cx-page[hidden] {
  display: none;
}
.cx-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: var(--stroke) solid var(--ink);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease;
}
.cx-panel:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--hard);
}
/* крупный кадр-сплэш — главная акция разворота */
.cx-panel--splash {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
}
.cx-panel--wide {
  grid-column: span 2;
}
.cx-panel .photo-slot {
  flex: 1;
  min-height: 120px;
}
.cx-splash-copy {
  padding: 20px 22px 22px;
  border-top: var(--stroke) solid var(--ink);
}
.cx-panel h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.cx-panel p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.cx-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cx-meta span {
  padding: 4px 8px;
  border: 1px solid var(--ink);
}
/* растр — комиксная «печать», строится из точек, не картинка */
.cx-panel--tone {
  background-color: var(--surface);
  background-image: radial-gradient(var(--tone-3, #d9d9d9) 34%, transparent 35%);
  background-size: 9px 9px;
}
/* сноска под разворотом — то, что раньше висело в шапке блока */
.cx-note {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================================================
   03 · КОНСТРУКТОР
   ========================================================= */
.builder-form {
  padding: 28px;
  border: var(--stroke-fat) solid var(--white);
  border-radius: 0;
}
.builder-result {
  border: var(--stroke-fat) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--hard-light);
}
.builder-form select,
.builder-form input[type="text"],
.builder-form input[type="tel"] {
  border-radius: 0;
}
/* единственная подсказка после расчёта: панель светлая, набор тёмный */
.result-hint {
  margin-top: 26px;
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  border: var(--stroke) solid var(--ink);
  background: var(--sand);
}
.result-hint p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}
.result-hint-link {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: var(--stroke) solid currentColor;
  padding-bottom: 3px;
}
/* шаги запуска — кадры одной ленты */
.process-step {
  padding: 16px 18px;
  border: var(--stroke) solid rgba(255, 255, 255, 0.55);
}
.process-step b {
  font-family: var(--display);
}

/* =========================================================
   04 · РЕКЛАМНЫЕ РЕШЕНИЯ
   ========================================================= */
.solution-preview {
  border: var(--stroke-fat) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--hard);
}
.preview-meta {
  border-top: var(--stroke) solid var(--ink);
}
.preview-index {
  font-family: var(--display);
}
.solution-list li {
  border-bottom: 1px solid var(--ink);
}
.solution-list li:first-child {
  border-top: 1px solid var(--ink);
}
.solution-list button.is-active {
  background: var(--sand);
}

/* =========================================================
   05 · ТОЧНЫЙ РАСЧЁТ И ГЕОГРАФИЯ
   ========================================================= */
.cost-card {
  position: relative;
  border: var(--stroke-fat) solid var(--ink);
  box-shadow: var(--hard-light);
  border-radius: 0;
}
.cost-head {
  align-items: flex-start;
  padding-bottom: 6px;
  font-family: var(--display);
  letter-spacing: 0.08em;
}
/* «Пример сметы» — плашка-«звук», а не мелкая строка:
   заказчик не понимал, зачем этот блок на странице */
[data-cost-source] {
  position: relative;
  z-index: 2;
  padding: 7px 14px;
  border: var(--stroke) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard-sm);
  transform: rotate(-2.5deg);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.cost-card[data-linked="true"] [data-cost-source] {
  background: var(--ink);
  color: var(--white);
}
/* пояснение к блоку — репликой сразу под шапкой */
.cost-note {
  margin-top: 18px;
  font-size: 13px;
}
.cost-note a {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}
.cost-total strong {
  font-size: clamp(40px, 4.4vw, 64px);
}
.cost-badge {
  border: var(--stroke) solid var(--ink);
  border-radius: 0;
  font-family: var(--display);
}
.geo-block {
  border-top: var(--stroke-fat) solid rgba(255, 255, 255, 0.55);
  padding-top: 34px;
}
.geo-map {
  border: var(--stroke-fat) solid var(--white);
  border-radius: 0;
  box-shadow: var(--hard-light);
}
.geo-stats b {
  font-family: var(--display);
}

/* =========================================================
   06 · КЕЙСЫ · витрина с лентой выбора

   Устроена как блок «Решения», который заказчику понравился:
   слева кадр, справа лента: наводишь — кадр меняется. Подача
   комиксная — «звук» с результатом и реплика с задачей.
   ========================================================= */
.case-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
}

/* ── кадр выбранного кейса ───────────────────────────────── */
.case-view {
  padding: 12px;
  border: var(--stroke-fat) solid var(--ink);
  background: var(--paper);
}
.case-view-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 12px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* все кадры лежат в одной ячейке сетки: высота держится по самому
   высокому, и витрина не прыгает при переключении */
.case-screen {
  display: grid;
}
.case-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  border: var(--stroke) solid var(--ink);
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s;
}
.case-panel.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.case-panel-visual {
  position: relative;
  aspect-ratio: 16 / 8;
  border-bottom: var(--stroke) solid var(--ink);
}
.case-panel-visual .photo-slot {
  position: absolute;
  inset: 0;
}
.case-panel-visual small {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 26px;
}
.case-meta {
  padding: 4px 8px;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.case-panel-copy h3 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
/* параметры кейса — то, по чему кампанию можно сравнить со своей */
.case-facts {
  width: 100%;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.case-facts > div {
  padding: 12px 12px 0 0;
}
.case-facts dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-facts dd {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.case-panel-copy .cx-cta {
  margin-top: 22px;
}

/* ── правая колонка: лента, переход и клиенты ────────────── */
.case-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  height: 100%;
}
.case-more {
  align-self: stretch;
  justify-content: center;
}
.case-list {
  width: 100%;
  border-top: var(--stroke) solid var(--ink);
}
.case-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 6px;
  text-align: left;
  border-bottom: var(--stroke) solid var(--ink);
  transition: padding 0.28s var(--ease), background 0.28s ease;
}
.case-list button.is-active {
  padding-left: 18px;
  background: var(--sand);
}
.case-num {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.case-line strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}
.case-seg {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* результат — тот же «звук», что и в кадре, только мелкий */
.case-badge {
  padding: 6px 10px;
  border: var(--stroke) solid var(--ink);
  background: var(--surface);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: rotate(-3deg);
  transition: box-shadow 0.22s ease;
}
.case-list button.is-active .case-badge {
  box-shadow: var(--hard-sm);
}

/* клиенты — та же модульная сетка в общей рамке.
   Живут в колонке кейсов, поэтому логотипы идут по три в ряд. */
.clients {
  width: 100%;
  margin: auto 0 0;
  padding-top: 0;
  border-top: 0;
}
.clients .result-label {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.client-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
  border: var(--stroke-fat) solid var(--ink);
  background: var(--paper);
}
.client-row li {
  padding: 18px 10px;
  border: var(--stroke) solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  text-align: center;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   07 · ДЛЯ КОГО · модульная сетка с линейками
   ========================================================= */
.segment-grid {
  border: var(--stroke-fat) solid var(--ink);
}
.segment-grid li {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.segment-grid li:nth-child(4n) {
  border-right: 0;
}
.segment-grid li:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.segment-grid li:hover {
  background: var(--sand);
}
.segment-grid h3 {
  text-transform: uppercase;
}
.seg-num {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.seg-formats {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* =========================================================
   09–11 · ПЛАТФОРМА, ПРЕЗЕНТАЦИЯ, КОНТАКТЫ
   ========================================================= */
/* Эти карточки раньше жили без рамки и потому свёрстаны без полей.
   Раз мы обвели их контуром, добавляем поля — иначе содержимое
   прилипает к рамке. */
.platform-side {
  padding: 26px 28px 0;
  border: var(--stroke-fat) solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
}
.platform-role {
  /* в колонке-флексе плашка растягивалась на всю ширину */
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.presentation-card {
  border: var(--stroke-fat) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--hard);
}
.contact-form {
  padding: 28px;
  border: var(--stroke-fat) solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
}
.contact-form input,
.contact-form textarea {
  border-radius: 0;
}

/* =========================================================
   «НАПОМИНАШКА» О КАРТЕ
   Одно окошко на страницу: выезжает сбоку после первого экрана и
   уходит, как только человек добрался до карты сам.
   ========================================================= */
.nudge {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  width: min(300px, calc(100vw - 32px));
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: var(--stroke-fat) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--hard);
  transform: translateY(16px) rotate(-1.2deg);
  opacity: 0;
  transition: transform 0.26s var(--ease), opacity 0.26s ease;
}
.nudge.is-shown {
  transform: translateY(0) rotate(-1.2deg);
  opacity: 1;
}
.nudge-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nudge strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.nudge p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.nudge-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}
.nudge-close:hover {
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .nudge {
    transition: none;
  }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
  .segment-grid li:nth-child(4n) {
    border-right: 1px solid var(--ink);
  }
  .segment-grid li:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--ink);
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* пять клеток в ряд не помещаются: цифры парами, карта — во всю ширину */
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  /* у плашек рамка со всех сторон — линейки таблицы больше не нужны */
  .metric-strip div:nth-child(2n),
  .metric-strip div:nth-child(-n + 2) {
    border: var(--stroke-fat) solid var(--ink);
  }
  .metric-map {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .metric-map strong {
    margin-top: 0;
  }
  /* в строку заголовок идёт одной строкой */
  .metric-map strong br {
    display: none;
  }
  .metric-map-go {
    margin-top: 0;
    padding-top: 0;
  }
}
@media (max-width: 980px) {
  /* лента встаёт над кадром: нажал строку — кадр открывается сразу под ней.
     display:contents раскрывает колонку, чтобы её части можно было
     расставить по одной, а не блоком целиком. */
  .case-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .case-side {
    display: contents;
  }
  .case-list {
    order: 1;
  }
  .case-view {
    order: 2;
  }
  .case-more {
    order: 3;
    justify-self: center;
  }
  .clients {
    order: 4;
    margin: 0;
  }
  .client-row {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 780px) {
  .case-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .cx-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cx-page {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(160px, auto);
  }
  .cx-panel--splash,
  .cx-panel--wide {
    grid-column: span 2;
  }
  .client-row li {
    padding: 14px 8px;
  }
  /* окошко на телефоне занимает всю ширину внизу экрана */
  .nudge {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}
