/* ZipString — версия сайта по брендбуку.
   Цвета, шрифты и графические элементы взяты из Figma-гайда бренда
   (royal blue #164F9D, teal #2CCDF1, белый; Golos Text Black / Furore / Exo 2)
   и из B2B-презентации — она же образец применения. */

@font-face { font-family: 'Golos Text'; src: url('fonts/GolosText-Black.woff2?v=2') format('woff2');
             font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Furore'; src: url('fonts/Furore.woff2?v=2') format('woff2');
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url('fonts/Exo2-Regular.woff2?v=2') format('woff2');
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url('fonts/Exo2-SemiBold.woff2?v=2') format('woff2');
             font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --blue:      #164F9D;   /* основной */
  --blue-deep: #103C79;   /* затемнение для футера и подложек */
  --teal:      #2CCDF1;   /* основной */
  --teal-soft: #E6F8FE;
  --yellow:    #EEEA25;   /* цвет нити на макетах — это не бренд-цвет, а цвет продукта */

  /* Вторичные и третичные по брендбуку (стр. 11-13) */
  --red:       #FF0E0E;
  --blue-mid:  #2D60A7;
  --mint:      #0EFFB0;
  --grey-1:    #DCDEE0;
  --grey-2:    #AFB0B3;
  --orange:    #F69F0F;
  --white:     #FFFFFF;
  --ink:       #0E2A4F;   /* текст на светлом */

  --font-display: 'Golos Text', 'Exo 2', 'Arial Black', system-ui, sans-serif;
  --font-accent:  'Furore', 'Exo 2', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r:    18px;
  --r-lg: 36px;
  --r-xl: 64px;
  --shadow: 0 18px 50px rgba(16, 60, 121, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --d-press:  120ms;   /* нажатие */
  --d-state:  200ms;   /* смена состояния */
  --d-move:   320ms;   /* перемещение */
  --d-reveal: 560ms;   /* появление блока */
  --section: clamp(4.5rem, 3rem + 5.5vw, 9.5rem);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* display в правилах компонентов перебивает атрибут hidden: кнопка «Назад»
   на первом шаге оставалась видимой, хотя скрипт её прятал */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Надзаголовок и заголовки — по гайду: Furore для меток, Golos Black для крупного */
.eyebrow {
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 0.7rem + 0.3vw, 1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
/* на тёмных секциях надзаголовок возвращается к фирменному teal */
.hero .eyebrow, .about .eyebrow, .cta .eyebrow, .page-hero .eyebrow,
.features .eyebrow, .co-sum .eyebrow { color: var(--teal); }
.h1, .h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.h1 { font-size: clamp(2.4rem, 1.2rem + 5vw, 5.2rem); }
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); }
.h3 {
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue);
}
/* на синем фоне тот же подзаголовок светится фирменным teal */
.about .h3, .hero .h3, .cta .h3, .co-sum .h3, .features .h3 { color: var(--teal); }

/* Росчерк-нить под заголовком — фирменный элемент макетов */
.squiggle { display: inline-block; width: clamp(120px, 18vw, 260px); vertical-align: baseline; }
.squiggle path { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 150ms var(--ease), background 150ms, color 150ms, border-color 150ms;
}
.btn:hover { transform: translateY(-2px); }
.btn-teal  { background: var(--teal); color: var(--blue); }
.btn-teal:hover { background: #4ad8f8; }
.btn-white { background: var(--white); color: var(--blue); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-blue  { background: var(--blue); color: var(--white); }

/* Плашка — графический элемент гайда */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--teal);
  color: var(--blue);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill-light { background: var(--teal-soft); color: var(--blue); }
.pill-outline { background: transparent; border: 2px solid var(--teal); color: var(--blue); }

/* ─── ШАПКА ─────────────────────────────────────────────────────────────────── */
.topbar i { font-style: normal; margin: 0 14px; }
.topbar {
  background: var(--teal);
  color: var(--blue);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 79, 157, 0.12);
}
.header-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo img { height: 34px; width: auto; }
nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
nav a { color: var(--blue); padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: var(--teal); }
.burger { display: none; }

/* ─── ГЕРОЙ ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}
/* Видео заполняет первый экран, текст лежит поверх */
.hero { min-height: min(92svh, 860px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* два кадра сменяют друг друга: сцена со скрипачом и сцена с ребёнком */
.hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 0;
  opacity: 0; transition: opacity 900ms var(--ease);
}
.hero-bg video.is-on { opacity: 1; }
/* читаемость текста: синий уходит в прозрачность слева направо + общий притин */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(22,79,157,0.96) 0%, rgba(22,79,157,0.80) 34%, rgba(22,79,157,0.18) 66%, rgba(22,79,157,0.12) 100%),
    linear-gradient(180deg, rgba(10,38,77,0.45) 0%, rgba(10,38,77,0) 40%, rgba(10,38,77,0.45) 100%);
  pointer-events: none;
}
.hero-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 620px);
  gap: 40px; align-items: center;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 24px clamp(3.5rem, 2rem + 5vw, 6.5rem);
}
.hero h1 { margin: 18px 0 20px; }
.hero p.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 34ch; color: #DCE8F7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }


/* Живая нить — canvas поверх героя (физика в thread.js).
   Идёт над контентом, как петля пролетает перед человеком в роликах бренда;
   ядро тонкое, поэтому текст под ней читается. */
.thread-canvas {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}
/* Корпус ZipString ведёт нить: он же курсор, когда мышь над героем */
.thread-tool {
  position: absolute; top: 0; left: 0; z-index: 4;
  width: clamp(58px, 6vw, 96px);
  transform-origin: 11.5% 20%;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .hero.is-tracking, .hero.is-tracking a { cursor: none; }
}
/* На узком экране петле негде разойтись — уводим её за текст, чтобы не
   перечёркивала кнопки */
@media (max-width: 1000px) {
  .thread-canvas, .thread-tool { z-index: 1; }
}

/* ─── О ТОВАРЕ (три колонки, как слайд презентации) ─────────────────────────── */
.about { background: var(--blue); color: var(--white); padding: var(--section) 0; }
.about .lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 62ch; margin: 26px 0 0; }
.about .lead b { color: var(--teal); font-weight: 600; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 52px; }
.cols p { color: #38618f; margin-top: 12px; }
.about .cols p, .hero .cols p { color: #DCE8F7; }
.cols b { color: var(--white); font-weight: 600; }

/* ─── ПРОДУКТЫ ──────────────────────────────────────────────────────────────── */
.products { padding: var(--section) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.sec-head .h2 { color: var(--blue); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.card {
  position: relative;            /* якорь для растянутой ссылки «Подробнее» */
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--teal-soft);
  overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* Карточка товара по образцу UX/UI из брендбука (стр. 27):
   устройство на teal-подложке с точечным паттерном, не кроп фотобаннера */
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--teal);
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
}
.card-media::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/pattern-dots.svg') right 14px bottom 14px / 46% no-repeat;
  opacity: 0.5;
}
/* абсолютом: в grid процентный max-height считается от строки, которую сам же
   и растягивает картинка — устройство уезжало вниз и обрезалось */
.card-media img {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  object-fit: contain;
}
.card-media.is-empty { background: var(--blue-mid); }
.card-media.is-empty img { max-width: 92px; opacity: 0.85; }
.card-body { padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.card-body > .pill { align-self: flex-start; margin-bottom: 24px; }
.card-name {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--blue); margin-bottom: 14px;
}
.card-hook {
  color: #38618f; font-size: 1.05rem; line-height: 1.65;
  max-width: 34ch; margin-bottom: 32px;
}
.card-price {
  font-family: var(--font-accent); font-size: 1.7rem; line-height: 1;
  color: var(--blue); margin: 28px 0 30px;
}
.card .btn { align-self: flex-start; margin-top: auto; }
/* Клик по всей площади карточки ведёт на товар (обработчик в page.js).
   Растянутый ::after у ссылки тут не годится: карточка обрезана overflow,
   и клик по псевдоэлементу до ссылки не доходил — проверено в браузере. */
.card { cursor: pointer; }
.card a, .card button { cursor: pointer; position: relative; z-index: 2; }
.card.is-soon { background: #F1F4F8; }
.card.is-soon .card-name, .card.is-soon .card-price { color: #6E86A5; }
.card.is-soon .pill-light { background: var(--grey-1); color: #4E6683; }

/* ─── ТРЮКИ ─────────────────────────────────────────────────────────────────── */
.tricks { background: var(--teal); color: var(--blue); padding: var(--section) 0; }
.tricks .h2 { color: var(--blue); }
.tricks .eyebrow { color: var(--blue); }
.tricks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.trick {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: var(--r); overflow: hidden;
  background: var(--blue);
}
.trick video { width: 100%; height: 100%; object-fit: cover; }
.trick span {
  position: absolute; left: 12px; top: 12px;
  padding: 7px 14px; border-radius: 100px;
  background: var(--white); color: var(--blue);
  font-family: var(--font-accent); font-size: 0.75rem; text-transform: uppercase;
}

.trick-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trick-filters button { border: 2px solid var(--blue); border-radius: 100px; padding: 10px 18px; background: transparent; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.trick-filters button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.trick-filters button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.trick[hidden] { display: none; }
.trick-level { position: absolute; bottom: 12px; left: 12px; padding: 5px 10px; border-radius: 100px; background: var(--white); color: var(--blue); font-size: 0.75rem; font-weight: 700; }

/* ─── ДОВЕРИЕ ───────────────────────────────────────────────────────────────── */
.trust { padding: var(--section) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat {
  border: 2px solid var(--teal);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); color: var(--blue); line-height: 1; }
.stat-txt { margin-top: 10px; color: #38618f; font-size: 0.95rem; }
.press { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* ─── CTA ───────────────────────────────────────────────────────────────────── */
.cta { background: var(--blue); color: var(--white); padding: var(--section) 0; text-align: center; }
.cta .h2 { margin: 16px 0 14px; }
.cta p { color: #DCE8F7; max-width: 48ch; margin: 0 auto; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ─── ФУТЕР ─────────────────────────────────────────────────────────────────── */
footer { background: var(--blue-deep); color: #C8D8EC; padding: 56px 0 28px; font-size: 0.92rem; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
footer h5 { font-family: var(--font-accent); text-transform: uppercase; color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 14px; }
footer li { margin-bottom: 8px; }
footer a:hover { color: var(--teal); }
.foot-logo img { height: 32px; width: auto; margin-bottom: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.85rem; }

/* ─── АДАПТИВ ───────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .cols, .cards, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .tricks-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; }
  /* на вертикальном экране лицо должно оставаться в кадре, а текст — читаться */
  .hero-bg video { object-position: 46% 0; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(22,79,157,0.90) 0%, rgba(22,79,157,0.55) 48%, rgba(22,79,157,0.92) 100%);
  }
  .thread { display: none; } /* на узком нить шла бы через текст */
  nav { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cols, .cards, .trust-grid, .tricks-grid { grid-template-columns: 1fr; }
  .header-in { height: 64px; gap: 16px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  /* гасим движение, но не интерактив: тоглы, details и таймеры должны работать */
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .stat:hover, .feats li:hover { transform: none; }
  .life figure:hover img, .trick.is-live video { transform: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero .h1 .word i { transform: none !important; transition: none !important; }
}

/* ─── ФИЧИ ──────────────────────────────────────────────────────────────────── */
/* Иконки — из брендбука (стр. 15). Красим через mask, поэтому в SVG цвет неважен. */
.features { background: var(--blue); color: var(--white); padding: 0 0 var(--section); }
.feats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  padding-top: 8px;
}
.feats li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem; line-height: 1.35;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.feats li:hover { background: rgba(44,205,241,0.16); transform: translateY(-4px); }
.ico {
  width: 46px; height: 46px;
  background: var(--teal);
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}

/* ─── LIFESTYLE ─────────────────────────────────────────────────────────────── */
.life { padding: var(--section) 0; }
.life-head { max-width: 760px; }
.life-head .h2 { color: var(--blue); margin: 10px 0 14px; }
.life-sub { color: #38618f; max-width: 52ch; }
.squiggle-wrap { display: inline-block; margin-left: 12px; }
.life-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.life figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--teal-soft); }
.life img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.life figure:hover img { transform: scale(1.04); }
.life figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 16px; border-radius: 100px;
  background: var(--white); color: var(--blue);
  font-family: var(--font-accent); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.life-a { grid-row: span 2; min-height: 380px; }
.life-b, .life-c { min-height: 220px; }

/* Чипы цветов устройств — имена из брендбука (Rockit Red, Bodacious Blue, …) */
.swatches { display: flex; gap: 10px; margin-top: 28px; }
.swatches span:not(.swatch-name) {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px rgba(22,79,157,0.25);
}

/* Монограмма-водяной знак в CTA */
.cta { position: relative; overflow: hidden; }
.cta-mark {
  position: absolute; right: -30px; bottom: -50px;
  width: clamp(160px, 22vw, 300px); height: auto;
  opacity: 0.09;
}
.cta .wrap { position: relative; z-index: 1; }

/* Точечный акцент — halftone из брендбука. Кладём целиком, не срезая краем секции:
   у россыпи своя треугольная форма, обрубок читается как баг вёрстки. */
.about, .tricks { position: relative; overflow: hidden; }
.about::after {
  content: '';
  position: absolute; right: 32px; top: 40px;
  width: min(340px, 30%); aspect-ratio: 1.186;
  background: url('assets/pattern-dots.svg') center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .life-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .life-a { grid-row: auto; min-height: 260px; }
}
@media (max-width: 620px) {
  .feats { grid-template-columns: 1fr; }
}

/* Волнистый стык секций — supporting geometry из брендбука (стр. 14) */
.features, .life, .tricks, .trust, .faq { position: relative; }
.wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(38px, 4.5vw, 82px);
  line-height: 0;
  pointer-events: none;
}
.wave svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.life, .trust, .faq { padding-bottom: calc(var(--section) + 40px); }
.tricks { padding-bottom: calc(var(--section) + 40px); }
.features { padding-bottom: calc(var(--section) + 40px); }

/* иконки чуть крупнее — в брендбуке они акцент, а не сноска */
.ico { width: 54px; height: 54px; }
.feats li { font-size: 1rem; padding: 28px 24px; }

/* На teal-фоне росчерк teal-цветом не виден */
.tricks .squiggle path { stroke: var(--white); }

/* Кнопки — мягкая тень, чтобы не выглядели наклейками */
.btn-teal  { box-shadow: 0 10px 24px rgba(44, 205, 241, 0.35); }
.btn-blue  { box-shadow: 0 10px 24px rgba(22, 79, 157, 0.28); }
.btn-white { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); }
.btn-teal:hover, .btn-blue:hover, .btn-white:hover { box-shadow: 0 16px 32px rgba(16, 60, 121, 0.28); }

/* Одна залитая карточка в блоке «о бренде» — ритм вместо ряда одинаковых рамок */
.stat.is-fill { background: var(--blue); border-color: var(--blue); }
.stat.is-fill .stat-num { color: var(--white); }
.stat.is-fill .stat-txt { color: #C7DAF2; }
.stat { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ─── ПОЛИРОВКА ─────────────────────────────────────────────────────────────── */
/* Фокус с клавиатуры виден на любом фоне */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}
/* На телефоне строка сертификатов уезжала в три строки */
@media (max-width: 620px) {
  .topbar-more { display: none; }
  .topbar { font-size: 0.66rem; letter-spacing: 0.02em; }
}

/* ─── UI/UX: навигация, цена, сравнение, вопросы, реквизиты ────────────────── */

/* Бургер: на телефоне навигации не было вовсе */
.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: 0;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger span {
  display: block; height: 2px; width: 22px; margin: 0 auto;
  background: var(--blue); border-radius: 2px;
  transition: transform var(--d-state, 200ms) var(--ease), opacity var(--d-state, 200ms);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Цена на первом экране: раньше путь к покупке начинался только в середине страницы */
.hero-facts { align-items: center; }
.hero-price {
  display: flex; flex-direction: column;
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.7rem);
  color: var(--white);
}
.hero-price i {
  font-style: normal; font-family: var(--font-body);
  font-size: 0.82rem; color: #B8D4F0; letter-spacing: 0;
}

/* Чем модели отличаются — иначе разница в 1 400 ₽ ничем не объяснена */
.specs { display: grid; gap: 0; margin: 0; font-size: 0.95rem; }
.specs > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(22,79,157,0.10); }
.specs > div:first-child { padding-top: 0; }
.specs dt { color: #4A6B92; }
.specs dd { color: var(--blue); font-weight: 600; text-align: right; }

/* Вопросы */
.faq { padding: var(--section) 0; background: var(--teal-soft); }
.faq .h2 { color: var(--blue); margin: 10px 0 28px; }
.qa-list { display: grid; gap: 12px; max-width: 860px; }
.qa {
  background: var(--white); border-radius: var(--r);
  padding: 18px 22px;
  box-shadow: 0 2px 10px rgba(16,60,121,0.06);
}
.qa summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-accent); font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--blue);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; font-size: 1.4rem; line-height: 1; color: var(--teal);
  transition: transform var(--d-state, 200ms) var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin-top: 12px; color: #38618f; }
.faq-more { margin-top: 26px; }

.press-label { margin-top: 34px; color: #4A6B92; font-size: 0.9rem; }
.press { margin-top: 12px; }

/* Кто продаёт — обязательная информация, которой в футере не было */
.foot-legal { margin-top: 34px; font-size: 0.82rem; line-height: 1.5; color: #9FB6D4; }
.foot-legal p + p { margin-top: 6px; }
.foot-legal a { border-bottom: 1px solid rgba(255,255,255,0.25); }

/* Липкая кнопка покупки на телефоне — появляется, когда герой ушёл вверх */
.buy-bar {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
  padding: 16px; border-radius: 100px;
  background: var(--teal); color: var(--blue);
  font-family: var(--font-accent); font-size: 0.9rem; text-transform: uppercase;
  text-align: center; letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(16,60,121,0.35);
  transform: translateY(140%);
  transition: transform 320ms var(--ease);
}
.buy-bar.is-on { transform: none; }

@media (max-width: 1000px) {
  /* слева внизу живёт переключатель версий — кнопке оставляем правую часть */
  .buy-bar { left: 104px; }
  .burger { display: flex; }
  .hdr-buy { display: none; }
  nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(22,79,157,0.12);
    box-shadow: 0 18px 40px rgba(16,60,121,0.14);
    padding: 8px 24px 20px;
  }
  nav.is-open { display: flex; }
  nav a { padding: 14px 0; border-bottom: 1px solid rgba(22,79,157,0.08); }
  .buy-bar { display: block; }
}

/* ─── МИКРОВЗАИМОДЕЙСТВИЯ ──────────────────────────────────────────────────── */

/* Кружки цвета теперь честные кнопки: раньше они выглядели переключателем,
   но ничего не делали */
.swatches { align-items: center; flex-wrap: wrap; }
.swatches button {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px rgba(22,79,157,0.25);
  transition: transform 120ms var(--ease), box-shadow 200ms var(--ease);
}
.swatches button:hover { transform: scale(1.12); }
.swatches button:active { transform: scale(0.94); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue); }
.swatch-name { flex-basis: 100%; margin-top: 2px; font-size: 0.82rem; color: #4A6B92; }

/* Карточка трюка — ссылка в библиотеку, ролик стартует по наведению */
.trick { display: block; color: inherit; }
.trick video { transition: transform 320ms var(--ease); }
.trick.is-live video { transform: scale(1.03); }

.trick-go {
  position: absolute; right: 12px; top: 12px;
  padding: 7px 14px; border-radius: 100px;
  background: var(--blue); color: var(--white);
  font-family: var(--font-accent); font-size: 0.7rem; text-transform: uppercase; font-style: normal;
  opacity: 0; transform: translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.trick:hover .trick-go, .trick:focus-visible .trick-go { opacity: 1; transform: none; }

/* Отклик на нажатие: раньше был только подъём на наведение */
.btn:active { transform: translateY(1px) scale(0.985); }
.card:active { transform: translateY(-2px); }
.qa summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 6px; }

/* Курсор-корпус уступает место обычному указателю над кнопками и ссылками */
@media (hover: hover) and (pointer: fine) {
  .hero.is-tracking a, .hero.is-tracking button { cursor: pointer; }
}
.hero.is-over-ui .thread-tool { opacity: 0.25; transition: opacity 200ms var(--ease); }


/* ─── МОУШЕН ───────────────────────────────────────────────────────────────── */

/* Появление блоков. Начальные состояния — только под .js: без скрипта
   (ошибка, блокировщик, бот) страница обязана остаться читаемой */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Заголовок героя выезжает по словам из-под маски */
.hero .h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.js .hero .h1 .word i {
  display: inline-block; font-style: normal;
  transform: translateY(105%);
  transition: transform var(--d-reveal) var(--ease);
}
.js .hero .h1.is-in .word i { transform: none; }

/* Шапка после первого экрана */
header { transition: box-shadow var(--d-state) var(--ease), background var(--d-state); }
header.is-stuck { box-shadow: 0 10px 30px rgba(16,60,121,0.12); background: rgba(255,255,255,0.97); }
header .header-in { transition: height var(--d-move) var(--ease); }
header.is-stuck .header-in { height: 64px; }

/* Постер держит кадр, видео проявляется поверх — без чёрной вспышки */
.trick { background: var(--blue) center / cover no-repeat; }
.trick video { opacity: 0; transition: opacity var(--d-state) var(--ease), transform var(--d-move) var(--ease); }
.trick video.is-ready { opacity: 1; }

/* ─── ВНУТРЕННИЕ СТРАНИЦЫ ──────────────────────────────────────────────────── */

/* Герой страницы: тот же синий, но без видео — контент здесь важнее картинки */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--blue); color: var(--white);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3.5rem, 2rem + 4vw, 6rem);
}
.instruction-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.instruction-tabs a { border: 2px solid var(--white); border-radius: 100px; padding: 10px 20px; color: var(--white); font-weight: 700; }
.instruction-tabs a[aria-current="page"] { background: var(--white); color: var(--blue); }
.instruction-tabs a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.page-hero::after {
  content: '';
  position: absolute; right: -60px; top: -40px;
  width: min(360px, 32%); aspect-ratio: 1.186;
  background: url('assets/pattern-dots.svg') center / contain no-repeat;
  opacity: 0.16; pointer-events: none;
}
.page-hero .h1 { margin: 14px 0 18px; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; color: #DCE8F7; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }

.sec { padding: var(--section) 0; }
.sec.is-soft { background: var(--teal-soft); }
.sec.is-teal { background: var(--teal); color: var(--blue); }
.sec .h2 { color: var(--blue); }
.sec.is-soft .eyebrow, .sec.is-teal .eyebrow { color: var(--blue); }
.sec.is-teal .squiggle path { stroke: var(--white); }
.sec .h2 + * { margin-top: 26px; }

.prose { max-width: 70ch; color: #38618f; }
.prose p + p, .prose ul { margin-top: 14px; }
.prose-legal { max-width: 78ch; }
.prose-legal .h3 { margin-top: 30px; color: var(--blue); }
.note { margin-top: 18px; color: #4A6B92; font-size: 0.9rem; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }

/* Карточка товара */
.product { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 var(--section); }
.product-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.product-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--teal); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px;
}
.product-media::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/pattern-dots.svg') right 16px bottom 16px / 46% no-repeat;
  opacity: 0.5;
}
.product-media img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; }
.product-media .product-photo { inset: auto 14px 14px auto; width: 30%; height: auto; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--white); border-radius: 12px; box-shadow: 0 6px 20px rgba(16,60,121,0.2); }
.product-info .h1 { color: var(--blue); margin: 14px 0 6px; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.product-tagline { font-family: var(--font-accent); text-transform: uppercase; color: var(--blue-mid); letter-spacing: 0.02em; }
.product-info .lead { margin-top: 16px; color: #38618f; max-width: 52ch; }
.product-price { font-family: var(--font-accent); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--blue); margin: 20px 0 14px; }
.product-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.product-note { margin-top: 16px; color: #4A6B92; font-size: 0.88rem; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

.specs-lg { font-size: 0.98rem; }
.specs-lg > div { padding-bottom: 10px; }
.kit { display: grid; gap: 10px; color: #38618f; }
.kit li { position: relative; padding-left: 26px; }
.kit li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px rgba(44,205,241,0.2);
}

/* Шаги инструкции */
.steps { display: grid; gap: 18px; counter-reset: s; }
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--teal-soft); border-radius: var(--r-lg); padding: 22px 24px;
}
.sec.is-soft .steps li { background: var(--white); }
.step-n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  font-family: var(--font-accent); font-size: 1rem;
}
.steps h3 { font-family: var(--font-accent); text-transform: uppercase; color: var(--blue); font-size: 1.05rem; letter-spacing: 0.02em; }
.steps p { margin-top: 8px; color: #38618f; }

/* Хронология бренда */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--teal); margin-left: 8px; }
.timeline li { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 20px; padding: 20px 0 20px 26px; position: relative; }
.timeline li::before {
  content: ''; position: absolute; left: -9px; top: 28px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--teal);
}
.tl-year { font-family: var(--font-accent); color: var(--blue-mid); text-transform: uppercase; font-size: 0.92rem; padding-top: 3px; }
.timeline h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; color: var(--blue); font-size: 1.2rem; }
.timeline p { margin-top: 8px; color: #38618f; }

/* Сравнение моделей */
.table-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); border-radius: var(--r); overflow: hidden; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(22,79,157,0.1); }
.cmp thead th { background: var(--blue); color: var(--white); font-family: var(--font-accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; }
.cmp td:first-child { color: #4A6B92; }
.cmp td { color: var(--blue); }
.cmp tbody tr:last-child td { border-bottom: 0; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  display: block; padding: 28px 26px; border-radius: var(--r-lg);
  background: var(--teal-soft); border: 2px solid transparent;
  transition: transform var(--d-move) var(--ease), border-color var(--d-state);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.contact-card b { display: block; margin: 10px 0 6px; font-size: 1.1rem; font-weight: 600; color: var(--blue); word-break: break-word; }
.contact-card i { font-style: normal; color: #4A6B92; font-size: 0.9rem; }

/* Видео в инструкции */
.how-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--blue); }
.how-media video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) {
  .product-in, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* Тест «Твой ZIP-стиль»: логика общая с основным сайтом (/js/quiz.js),
   поэтому id и классы состояний те же, оформление своё */
.quiz-screen { display: none; }
.quiz-screen.is-active { display: block; }
.quiz-card {
  background: var(--teal-soft); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 44px);
  max-width: 820px;
}
.quiz-card .h2 { color: var(--blue); }
.quiz-card p { margin-top: 14px; color: #38618f; }
.quiz-card .btn { margin-top: 24px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quiz-step { font-family: var(--font-accent); color: var(--blue); font-size: 0.85rem; letter-spacing: 0.05em; }
.quiz-back { background: none; border: 0; color: #4A6B92; font-size: 0.9rem; padding: 6px 2px; }
.quiz-back:hover { color: var(--blue); }
.quiz-progress { height: 6px; border-radius: 100px; background: rgba(22,79,157,0.12); margin: 14px 0 22px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 20%; background: var(--teal); transition: width var(--d-move) var(--ease); }
.quiz-question { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); }
.quiz-options { display: grid; gap: 10px; margin-top: 24px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: var(--r);
  background: var(--white); border: 2px solid transparent; color: var(--ink);
  transition: transform var(--d-press) var(--ease), border-color var(--d-state), background var(--d-state);
}
.quiz-option:hover { border-color: var(--teal); transform: translateY(-2px); }
.quiz-option:active { transform: translateY(1px) scale(0.995); }
.quiz-option.is-picked { border-color: var(--blue); }
.quiz-letter {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  font-family: var(--font-accent); font-size: 0.85rem;
}
.quiz-card-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: center; max-width: 1000px; }
.quiz-trick { font-family: var(--font-accent); text-transform: uppercase; color: var(--blue); }
.quiz-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--blue); }
.quiz-media video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .quiz-card-result { grid-template-columns: 1fr; } }

/* ─── ОФОРМЛЕНИЕ ЗАКАЗА ────────────────────────────────────────────────────── */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(24px, 3vw, 48px); align-items: start; }
.co-main { min-width: 0; }

.co-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.co-steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 100px;
  background: var(--teal-soft); color: #4A6B92;
  font-family: var(--font-accent); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.co-steps li b {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-1); color: #4E6683; font-size: 0.75rem;
}
.co-steps li.is-on { background: var(--blue); color: var(--white); }
.co-steps li.is-on b { background: var(--teal); color: var(--blue); }
.co-steps li.is-done b { background: var(--teal); color: var(--blue); }

.co-pane { display: none; }
.co-pane.is-on { display: block; }
.co-pane .h3 { color: var(--blue); margin-bottom: 18px; }

.co-items { display: grid; gap: 12px; }
.co-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: var(--r-lg);
  background: var(--teal-soft); border: 2px solid transparent;
  transition: border-color var(--d-state) var(--ease);
}
.co-item.is-picked { border-color: var(--teal); background: var(--white); box-shadow: 0 2px 14px rgba(16,60,121,0.08); }
.co-item img { width: 96px; height: 72px; object-fit: contain; }
.co-item-txt { display: grid; gap: 2px; }
.co-item-txt b { font-family: var(--font-accent); color: var(--blue); font-size: 1rem; text-transform: uppercase; }
.co-item-txt i { font-style: normal; color: #4A6B92; font-size: 0.85rem; }
.co-item-txt span { color: var(--blue); font-family: var(--font-accent); }
.co-qty { display: flex; align-items: center; gap: 6px; }
.co-qty button {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue);
  background: var(--white); color: var(--blue); font-size: 1.1rem; line-height: 1;
  transition: background var(--d-state), color var(--d-state), transform var(--d-press) var(--ease);
}
.co-qty button:hover { background: var(--blue); color: var(--white); }
.co-qty button:active { transform: scale(0.94); }
.co-qty output { min-width: 26px; text-align: center; font-family: var(--font-body); font-weight: 600; color: var(--blue); }

.co-ship { display: grid; gap: 10px; margin-bottom: 22px; }
.co-ship-row {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: var(--r); cursor: pointer;
  background: var(--teal-soft); border: 2px solid transparent;
}
.co-ship-row.is-on { border-color: var(--teal); background: var(--white); }
.co-ship-name { display: grid; color: var(--blue); }
.co-ship-name i { font-style: normal; color: #4A6B92; font-size: 0.85rem; }
.co-ship-row b { font-family: var(--font-accent); color: var(--blue); }

.co-field { display: grid; gap: 6px; margin-bottom: 16px; max-width: 520px; }
.co-field span { font-size: 0.85rem; color: #4A6B92; }
.co-field input, .co-field textarea {
  font: inherit; color: var(--ink);
  padding: 13px 16px; border-radius: var(--r);
  border: 2px solid rgba(22,79,157,0.18); background: var(--white);
  transition: border-color var(--d-state) var(--ease);
}
.co-field input:focus, .co-field textarea:focus { outline: none; border-color: var(--teal); }
.co-check { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; color: #38618f; font-size: 0.9rem; }
.co-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); }
.co-check a { border-bottom: 1px solid var(--teal); }

.co-nav { display: flex; gap: 12px; margin-top: 28px; }
.co-error { margin-top: 14px; color: #C22; font-size: 0.92rem; }

.co-sum {
  position: sticky; top: 96px;
  padding: 26px; border-radius: var(--r-lg);
  background: var(--blue); color: var(--white);
}
.co-sum .h3 { color: var(--teal); margin-bottom: 16px; }
.co-lines { display: grid; gap: 10px; margin-bottom: 16px; }
.co-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.9rem; color: #DCE8F7; }
.co-lines li b { color: var(--white); font-family: var(--font-accent); white-space: nowrap; }
.co-empty { color: #B8D4F0; }
.co-x { font-style: normal; white-space: nowrap; }
.co-row { display: flex; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.16); color: #DCE8F7; font-size: 0.9rem; }
.co-row b { font-family: var(--font-accent); color: var(--white); }
.co-total { margin-top: 6px; font-size: 1rem; }
.co-total b { font-size: 1.4rem; color: var(--teal); }
.co-sum .note { color: #B8D4F0; }

.co-done { max-width: 720px; scroll-margin-top: 110px; }
.co-done .h2 { color: var(--blue); }
.co-done p { margin-top: 14px; color: #38618f; }
.co-recap {
  margin-top: 20px; padding: 20px 22px; border-radius: var(--r);
  background: var(--teal-soft); color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem;
  white-space: pre-wrap; overflow-x: auto;
}

@media (max-width: 1000px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; order: -1; }
  .co-item { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .co-item img { width: 72px; height: 56px; }
}

/* ── Причины и правила ───────────────────────────────────────────────
   Направление из разбора Honk и Linktree (refero): плотный цветной холст
   вместо бледных карточек, глубина цветом, а не тенями, акцент точечно. */
.sec.is-blue { background: var(--blue); }
.sec.is-blue .h2 { color: var(--white); }
.sec.is-blue .eyebrow { color: var(--teal); }

.reasons {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 18px;
  /* auto-fit, иначе три правила оставляют пустую четвёртую колонку */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.reasons li {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  padding: 30px 26px 28px;
  transition: background var(--d-state) var(--ease), transform var(--d-move) var(--ease);
}
.reasons li:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-4px); }
/* display обязателен: .ico — строчный <i>, без него ширина и высота игнорируются */
.reasons .ico { display: block; width: 38px; height: 38px; background: var(--mint); margin-bottom: 18px; }
.reason-n {
  position: absolute; top: 28px; right: 26px;
  font-family: var(--font-accent); font-size: 0.95rem;
  letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5);
}
.reasons h3 {
  font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2;
  color: var(--white); margin: 0 0 10px; text-wrap: balance; padding-right: 34px;
}
.reasons p { margin: 0; color: #C7DAF2; font-size: 0.95rem; line-height: 1.6; }

/* На светлой секции те же карточки, но в синем по белому */
.sec:not(.is-blue) .reasons li {
  background: var(--white); border-color: var(--grey-1);
}
.sec:not(.is-blue) .reasons li:hover { background: var(--white); box-shadow: var(--shadow); }
.sec:not(.is-blue) .reasons .ico { background: var(--blue); }
.sec:not(.is-blue) .reasons h3 { color: var(--blue); }
.sec:not(.is-blue) .reasons p { color: #38618f; }
.sec:not(.is-blue) .reason-n { color: var(--blue-mid); }

/* ── Оригинал против копий ───────────────────────────────────────────── */
/* .cmp td задан ниже по файлу — без td правило проигрывает по специфичности */
.cmp td.cmp-bad { color: #4A6B92; font-weight: 400; }
.cmp td.cmp-good { color: var(--blue); font-weight: 600; }
.cmp-good::before {
  content: '✓'; display: inline-block; margin-right: 8px; color: var(--blue);
}

/* ── Пресса ──────────────────────────────────────────────────────────── */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.quote {
  margin: 0; padding: 30px 28px; background: var(--white);
  border: 1px solid var(--grey-1); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 16px;
}
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.quote figcaption {
  font-family: var(--font-accent); font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--blue-mid); text-transform: uppercase;
}

/* ── Клуб Zipster ────────────────────────────────────────────────────── */
.club {
  list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.club li { background: var(--white); border-radius: var(--r); padding: 26px 24px; }
.club h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue); margin: 0 0 8px; }
.club p { margin: 0; color: #38618f; font-size: 0.95rem; line-height: 1.6; }

/* ── Форма обратной связи ────────────────────────────────────────────── */
.wrap.narrow { max-width: 680px; }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form label {
  display: grid; gap: 8px; font-family: var(--font-accent);
  font-size: 0.85rem; letter-spacing: 0.06em; color: var(--blue); text-transform: uppercase;
}
.form input, .form select, .form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--grey-1); border-radius: 12px;
  background: var(--white); width: 100%; text-transform: none; letter-spacing: 0;
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--blue-mid); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.form button[disabled] { opacity: 0.55; cursor: not-allowed; }
.form-ok, .form-err { margin: 0; font-size: 0.95rem; min-height: 1lh; }
.form-ok { color: #14663F; }
.form-err { color: #8A2020; }

@media (max-width: 960px) {
  .reasons, .club { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .reasons, .club { grid-template-columns: 1fr; }
}

/* На бирюзовом фоне вторичный серо-синий даёт 2.92 — берём глубокий синий */
.sec.is-teal .note,
.sec.is-teal .lead,
.sec.is-teal .club p,
.sec.is-teal .reasons p { color: var(--blue-deep); }

/* На телефоне таблица «оригинал против копии» уезжала вправо, и колонка
   ZipString оказывалась за краем — разбираем её на карточки по строкам. */
@media (max-width: 560px) {
  .cmp-cards { min-width: 0; display: block; background: none; }
  .cmp-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp-cards tbody { display: block; }
  .cmp-cards tr {
    display: block; background: var(--white); border-radius: var(--r);
    padding: 18px 20px; margin-bottom: 14px;
  }
  .cmp-cards td { display: block; padding: 0; border: 0; }
  .cmp-cards td::before {
    content: attr(data-label); display: block;
    font-family: var(--font-accent); font-size: 0.72rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--blue-mid); margin: 12px 0 4px;
  }
  .cmp-cards td:first-child {
    font-family: var(--font-display); font-size: 1.05rem; color: var(--blue);
  }
  .cmp-cards td:first-child::before { display: none; }
}

/* ── Фото рядом с текстом ────────────────────────────────────────────── */
/* Композиция из разбора Honk (refero): текст занимает меньшую долю, кадр
   крупнее и уходит за край колонки — иначе половина секции стоит пустой. */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center;
}
.split-txt .prose { max-width: 46ch; }
.split-txt .h2 { text-wrap: balance; }
.split.is-flip .split-txt { order: 2; }
.split-pic { margin: 0; }
.split-pic img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg); background: var(--teal-soft);
}
/* На светлой секции кадр получает подложку фирменного цвета, чтобы тёмное
   фото не висело в пустоте — глубина цветом, а не тенью */
.split-pic {
  position: relative; border-radius: var(--r-lg);
  background: var(--teal); padding: 14px;
}
.split-pic img { border-radius: calc(var(--r-lg) - 8px); }

/* ── Галерея кадров ──────────────────────────────────────────────────── */
/* auto-fit: два кадра растягиваются на всю ширину, три встают в ряд */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.gallery figure { margin: 0; }
/* height:auto обязателен: атрибут height у <img> — presentational hint,
   без него он перебивает aspect-ratio и кадр растягивается на свою высоту */
.gallery img {
  /* пропорции берутся из самого файла (inline aspect-ratio) — общее соотношение
     либо срезало устройству верх (cover), либо давало белые поля (contain) */
  width: 100%; height: auto; display: block;
  /* потолок на высоту: вертикальный кадр 720×1280 иначе вдвое выше соседей по ряду */
  max-height: 580px; object-fit: cover;
  border-radius: var(--r); background: var(--teal-soft);
}
.gallery figcaption { margin-top: 10px; color: #38618f; font-size: 0.92rem; line-height: 1.5; }
.sec.is-soft .gallery img { background: var(--white); }

/* Кадры прессы: снимок сверху, текст под ним */
.quote img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-radius: 12px; margin-bottom: 4px; background: var(--teal-soft);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.is-flip .split-txt { order: 0; }
  .gallery { grid-template-columns: 1fr; }
}

/* ── Отзывы ──────────────────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  margin: 0; padding: 28px 26px; background: var(--white);
  border: 1px solid var(--grey-1); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars { color: #9C5300;   /* --orange на белом даёт 2.12 при норме 4.5 */ font-size: 0.95rem; letter-spacing: 0.1em; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote b {
  display: block; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--blue); margin-bottom: 10px; line-height: 1.25;
}
.review blockquote p { margin: 0; color: #38618f; font-size: 0.97rem; line-height: 1.6; }
.review figcaption {
  font-family: var(--font-accent); font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--blue-mid); text-transform: uppercase;
}
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }

/* ── Ролик трюка во весь экран ───────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0;
  display: grid; place-items: center; padding: 24px;
  background: rgba(14, 42, 79, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d-state) var(--ease), visibility var(--d-state);
}
.lb:not([open]) { display: none; }
.lb.is-on { opacity: 1; visibility: visible; }
.lb-in {
  width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px;
  transform: translateY(12px); transition: transform var(--d-move) var(--ease);
}
.lb.is-on .lb-in { transform: none; }
.lb video {
  width: 100%; max-height: 78vh; display: block;
  border-radius: var(--r); background: #000;
}
.lb-name {
  margin: 0; text-align: center; color: var(--white);
  font-family: var(--font-accent); font-size: 1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.lb-x {
  position: absolute; top: 18px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 1.6rem; line-height: 1;
  transition: background var(--d-state) var(--ease);
}
.lb-x:hover { background: rgba(255, 255, 255, 0.26); }
.lb-x:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .lb, .lb-in { transition: none; }
}
