/* ================================================================
   khinkis.pro — Mobile v1.0
   HTML + CSS + Vanilla JS · чистый стек без фреймворков
   ================================================================ */

/* Google Fonts загружаются через <link> в index.html (не блокирует рендер) */


/* ── 1. ТОКЕНЫ ─────────────────────────────────────────────────── */

:root {
  /* Фоны */
  --bg-base:    #ffffff;
  --bg-layer:   #eef2f7;   /* hsl(215 20% 96%) — desktop muted bg */
  --bg-card:    #ffffff;

  /* Акценты */
  --accent-green:  #1D9E75;
  --purple:        #534AB7;
  --green-dim:     rgba(29, 158, 117, 0.10);
  --purple-dim:    rgba(83, 74, 183, 0.09);
  --primary:       #003380;   /* hsl(215 100% 20%) — CTA, active states */

  /* Текст */
  --t1: #0f172a;              /* hsl(222 47% 11%) — desktop foreground */
  --t2: rgba(15, 23, 42, 0.55);
  --t3: rgba(15, 23, 42, 0.38);
  --t4: rgba(15, 23, 42, 0.12);

  /* Бордеры */
  --brd:        rgba(15, 23, 42, 0.08);
  --brd-md:     rgba(15, 23, 42, 0.16);
  --brd-green:  rgba(29, 158, 117, 0.28);
  --brd-purple: rgba(83, 74, 183, 0.22);

  /* Шрифты */
  --font-main:    'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-mono:    'Geist Mono', 'SF Mono', 'Fira Code', monospace;

  /* Радиусы */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   18px;
  --r-pill: 999px;

  /* Боковые отступы */
  --px: 18px;
}


/* ── 2. RESET ──────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

button, input, textarea {
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; color: inherit; }


/* ── 3. КОРНЕВОЙ КОНТЕЙНЕР (#app) ──────────────────────────────── */

#app {
  width: 100%;
  height: 100vh;            /* fallback для Safari <16.4 */
  height: 100dvh;           /* перезапишет в новых браузерах */
  overflow: hidden;
  position: relative;
  background: var(--bg-base);  /* светлый hero */
  font-size: 16px;
  font-family: var(--font-main);
  color: var(--t1);
  overscroll-behavior: none; /* убирает iOS rubber-band на корне */
}


/* ── 4. VIEWPORT (snap-контейнер) ──────────────────────────────── */

.viewport {
  width: 100%;
  height: 100dvh;
  height: 100vh;          /* fallback для Safari <16.4 */
  height: 100dvh;         /* перезапишет в новых браузерах */
  overflow-y: auto;       /* нативный скролл — CSS Scroll Snap управляет snap */
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;  /* плавный инерционный скролл на iOS */
  overscroll-behavior: none;          /* блокируем rubber-band на viewport */
  scrollbar-width: none;
}
.viewport::-webkit-scrollbar { display: none; }


/* ── 5. ЭКРАНЫ (.screen) ───────────────────────────────────────── */

.screen {
  width: 100%;
  min-height: 100vh;      /* fallback */
  min-height: 100dvh;     /* перезапишет в новых браузерах */
  height: 100vh;
  height: 100dvh;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;  /* Safari: останавливается на каждом экране */
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: clip;          /* clip вместо hidden — не создаёт scroll-контекст */
}



/* ── 7. SECTION HEADER (.sh) ───────────────────────────────────── */

.sh {
  padding: 14px var(--px) 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-shrink: 0;
}

.sh-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--t3);
  text-transform: uppercase;
}

.sh-more {
  font-size: 9px;
  color: var(--accent-green);
  letter-spacing: 0.04em;
}

.sh-reset-btn {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--t3);
  background: none;
  border: 0.5px solid var(--brd);
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.15s, border-color 0.15s;
}
.sh-reset-btn:hover { color: var(--t1); border-color: var(--t2); }


/* ── 8. IO-АНИМАЦИИ ────────────────────────────────────────────── */

/* Стандартная анимация «вырастание снизу» */
[data-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-anim].in {
  opacity: 1;
  transform: translateY(0);
}

/* Масштабирование */
[data-anim="scale"] {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}
[data-anim="scale"].in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Слева */
[data-anim="left"] {
  opacity: 0;
  transform: translateX(-20px);
}
[data-anim="left"].in {
  opacity: 1;
  transform: translateX(0);
}


/* ── 9. HERO (экран 00) ────────────────────────────────────────── */

#s-hero {
  background: var(--bg-base);
  justify-content: space-between;
}

/* Subtle grid texture — как на десктопе */
#s-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--brd) 1px, transparent 1px),
    linear-gradient(90deg, var(--brd) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Всё внутри Hero — поверх зерна (кроме абсолютно позиционированных элементов) */
#s-hero > *:not(.hero-arrow) { position: relative; z-index: 1; }

/* Хедер (логотип + бургер) */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--px) 0;
  flex-shrink: 0;
}

.hero-name {
  font-size: 10px;
  color: var(--t3);
  letter-spacing: 0.05em;
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.burger-line {
  height: 1.5px;
  background: var(--t2);
  border-radius: 1px;
  transition: width 0.2s;
}
.burger-line:nth-child(1) { width: 18px; }
.burger-line:nth-child(2) { width: 12px; }
.burger-line:nth-child(3) { width: 18px; }

/* Основной контент Hero */
.hero-body {
  flex: 1;
  padding: 24px var(--px) 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Верхний ряд: аватар + badge-колонка */
.hero-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-badge-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Аватар — Hero (компактный круглый) */
.hero-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--brd-md);
  flex-shrink: 0;
  background: var(--bg-layer);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* TG-ссылка под badge */
.hero-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t3);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.hero-tg-link:active { color: var(--t2); }

.hero-tg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  color: var(--t2);
}

/* Компактная статистика внутри About */
.scale-row {
  display: flex;
  gap: 0;
  margin: 14px var(--px) calc(88px + 20px);
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 51, 128, 0.12);
  background: linear-gradient(135deg, rgba(0,51,128,0.04) 0%, rgba(83,74,183,0.06) 100%);
}

.scale-row .scale-item {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  background: transparent;
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(0, 51, 128, 0.10);
}

.scale-row .scale-item:last-child { border-right: none; }

.scale-row .scale-n {
  font-size: 22px;
  min-width: unset;
  color: var(--primary);
}

.scale-row .scale-n em {
  color: var(--primary);
  opacity: 0.7;
}

.scale-row .scale-l {
  font-size: 10px;
  color: var(--t2);
}

/* Пилюля-статус «● НЕЗАВИСИМЫЙ КОНСУЛЬТАНТ» */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--green-dim);
  border: 0.5px solid var(--brd-green);
  width: fit-content;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.hero-tag {
  font-size: 9px;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* H1 */
.hero-h1 {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-h1 em {
  color: var(--accent-green);
  font-style: normal;
}

/* Подзаголовок */
.hero-sub {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.65;
  max-width: 95%;
}

/* Кнопки Hero */
.hero-btns {
  display: flex;
  gap: 7px;
}

.hbtn {
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.hbtn:active { opacity: 0.8; }

.hbtn-primary {
  background: var(--primary);
  color: #fff;
}

.hbtn-secondary {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--brd-md);
}

/* Peek-блок: «Узнаёте себя?» — начало следующего экрана */
.peek-next {
  background: var(--bg-layer);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 0.5px solid var(--brd-md);
  padding: 14px var(--px) 0;
  overflow: hidden;
  flex-shrink: 0;
  height: clamp(110px, 24dvh, 150px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.peek-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.peek-label-arrow {
  font-size: 14px;
  color: var(--t3);
}

.peek-pain-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
}

.peek-pain-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  flex-shrink: 0;
}

.peek-pain-text {
  font-size: 13px;
  font-style: italic;
  color: var(--t1);
  line-height: 1.3;
}

/* ── 11. PAINS (экран 01 — «Узнаёте себя?») ───────────────────── */

#s-pains {
  background: var(--bg-layer);
}

.pains-list {
  padding: 4px var(--px) calc(88px + 12px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: clip;
  overscroll-behavior: contain;
}

/* Пара карточек: проблема + решение в одной строке */
.pain-pair {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 0.5px solid var(--brd);
  background: var(--bg-card);
  flex: 1 1 0;            /* равномерно делят высоту, сжимаются под viewport */
  min-height: 0;           /* без жёсткого пола — адаптируются к экрану */
  display: flex;
  flex-direction: column;
}

.pain-prob {
  padding: 11px 13px 13px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  touch-action: pan-y;
  flex: 1;
}

.pain-pair.revealed .pain-prob {
  transform: translateX(-110%);
}

.pain-pair-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.pain-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  background: var(--bg-layer);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.pain-tag-ceo {
  color: var(--primary);
  background: rgba(0, 51, 128, 0.07);
}

.pain-swipe-hint {
  font-size: 10px;
  color: var(--t3);
  font-family: var(--font-mono);
  opacity: 0.7;
}

/* Скрываем подсказку когда пара уже раскрыта */
.pain-pair.revealed .pain-swipe-hint { display: none; }

.pain-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.38;
}

/* Карточка решения — абсолютно поверх, слайдит справа */
.pain-sol {
  position: absolute;
  inset: 0;
  padding: 11px 13px 13px;
  background: #E1F5EE;
  border-radius: 12px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 5px;
  touch-action: pan-y;
}

.pain-pair.revealed .pain-sol {
  transform: translateX(0);
}

/* Peek-hint: первая карточка подмигивает, показывая, что можно свайпнуть */
@keyframes pain-prob-peek {
  0%, 100% { transform: translateX(0); }
  35%, 55% { transform: translateX(-32px); }
}
@keyframes pain-sol-peek {
  0%, 100% { transform: translateX(100%); }
  35%, 55% { transform: translateX(calc(100% - 32px)); }
}
.pain-pair.peek-hint:not(.revealed) .pain-prob {
  animation: pain-prob-peek 1.4s cubic-bezier(.4,0,.2,1) 0.4s 1;
}
.pain-pair.peek-hint:not(.revealed) .pain-sol {
  animation: pain-sol-peek 1.4s cubic-bezier(.4,0,.2,1) 0.4s 1;
}

.pain-sol-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  color: #085041;
}

.pain-sol-text {
  font-size: 13px;
  color: #085041;
  line-height: 1.48;
}

/* 5-я карточка-боль: вход в Решатель */
.pain-pair-solver {
  border-color: var(--accent-green);
  border-width: 1.5px;
  background: rgba(29, 158, 117, 0.04);
}

.pain-tag-solver {
  color: var(--accent-green) !important;
  background: rgba(29, 158, 117, 0.10) !important;
}

.pain-solver-textarea {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.38;
  background: transparent;
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 8px 10px;
  resize: none;
  font-family: inherit;
  margin-top: 2px;
}

.pain-solver-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
}

.pain-solver-textarea {
  touch-action: pan-y;
}

.pain-solver-input-wrap {
  position: relative;
}

.pain-solver-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.38;
  pointer-events: none;
  user-select: none;
}

.pain-solver-input-wrap.has-text .pain-solver-overlay {
  display: none;
}

.solver-blink-cursor {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--accent-green);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: solver-blink 1s step-end infinite;
}

@keyframes solver-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.pain-sol-solver {
  background: rgba(29, 158, 117, 0.08);
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* First-load анимация Hero */
.hero-anim {
  opacity: 0;
  transform: translateY(12px);
}
.hero-anim.show {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}


/* ── 10. CASES (экран 01) ──────────────────────────────────────── */

#s-cases {
  background: var(--bg-layer);
}

/* Список карточек — переиспользуем sol-card */
.case-cards {
  flex: 1;
  overflow: clip;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 var(--px) calc(88px + 12px);
}
.case-cards::-webkit-scrollbar { display: none; }


/* Метрика-результат в футере карточки */
.case-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  line-height: 1.3;
}

/* Fullscreen overlay кейса — как prod-fs-overlay */
.case-fs-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-fs-overlay.open {
  transform: translateY(0);
}

/* Тёмный оверлей (кейс 3) */
.case-fs-overlay.dark {
  background: #001f47;
}
.case-fs-overlay.dark .pfo-tag   { color: rgba(255,255,255,0.45); }
.case-fs-overlay.dark .pfo-title { color: rgba(255,255,255,0.9); }
.case-fs-overlay.dark .pfo-close { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
.case-fs-overlay.dark .co-section-label { color: rgba(255,255,255,0.35); }
.case-fs-overlay.dark .co-body   { color: rgba(255,255,255,0.75); }
.case-fs-overlay.dark .co-result-item { color: rgba(255,255,255,0.8); }
.case-fs-overlay.dark .co-metric-n { color: #fff; }
.case-fs-overlay.dark .co-metric-l { color: rgba(255,255,255,0.55); }
.case-fs-overlay.dark .co-quote  { color: rgba(255,255,255,0.65); border-left-color: rgba(255,255,255,0.2); }
.case-fs-overlay.dark .co-note   { color: rgba(255,255,255,0.45); }
.case-fs-overlay.dark .co-table-row { border-bottom-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.case-fs-overlay.dark .co-table-head { color: rgba(255,255,255,0.35); }

/* Шапка оверлея */
.co-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.co-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 21, 48, 0.06);
  border: 0.5px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--t2);
  font-size: 14px;
  flex-shrink: 0;
}

.co-tag {
  font-size: 10px;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.co-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.co-body {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.7;
  margin-top: 6px;
}

/* Плашка с метрикой — сразу после заголовка, зелёный фон */
.co-metric-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--green-dim);
  border-radius: var(--r-md);
  border: 1px solid var(--brd-green);
  flex-shrink: 0;
}

/* Статы в оверлее */
.co-stats {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-shrink: 0;
}

.co-stat-item {
  flex: 1;
  padding: 10px;
  background: var(--bg-layer);
  border-radius: 10px;
  border: 0.5px solid var(--brd);
}

.co-stat-n {
  font-size: 18px;
  font-weight: 600;
  color: var(--t1);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.co-stat-l {
  font-size: 8px;
  color: var(--t3);
  margin-top: 2px;
  line-height: 1.35;
}


/* ── 11. SCALE (экран 02) ──────────────────────────────────────── */

#s-scale {
  background: var(--bg-base);
}

.scale-mega {
  padding: 0 var(--px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scale-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 0.5px solid var(--brd);
}

.scale-n {
  font-size: 32px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.03em;
  min-width: 72px;
  font-family: var(--font-mono);
  line-height: 1;
}

.scale-n em {
  font-size: 18px;
  font-style: normal;
  color: var(--accent-green);
}

.scale-l {
  font-size: 11px;
  color: var(--t2);
  line-height: 1.4;
}


/* ── 12. ABOUT (экран 03) ──────────────────────────────────────── */

#s-about {
  background: var(--bg-layer);
  overflow: clip;
  overscroll-behavior: contain;
}

/* Блок аватара + имя */
.about-photo {
  margin: 0 var(--px) 8px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.photo-ava {
  width: 52px;
  height: 52px;
  border-radius: var(--r-xl);
  background: rgba(83, 74, 183, 0.2);
  border: 0.5px solid rgba(83, 74, 183, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: rgba(83, 74, 183, 0.9);
  flex-shrink: 0;
}

.photo-info { flex: 1; }

.photo-name {
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.photo-role {
  font-size: 10px;
  color: var(--t3);
  margin-top: 2px;
}

.photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--purple-dim);
  border: 0.5px solid var(--brd-purple);
}

.photo-badge-t {
  font-size: 8px;
  color: rgba(83, 74, 183, 0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Биография */
.about-bio {
  padding: 0 var(--px) 12px;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
}

/* Статы под биографией */
.about-row {
  display: flex;
  gap: 6px;
  padding: 10px var(--px) 0;
}

.astat {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 0.5px solid var(--brd);
}

.astat-n {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.astat-l {
  font-size: 8px;
  color: var(--t3);
  margin-top: 2px;
  line-height: 1.35;
}


/* ── 13. SERVICES (экран 04) ───────────────────────────────────── */

#s-svc {
  background: var(--bg-base);
}

/* Бенто 2 × 4 + full-width */
.svc-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 0 var(--px) var(--px);
  flex: 1;
  overflow: clip;
  overscroll-behavior: contain;
  padding-bottom: calc(88px + 12px);
  align-content: start;
}
.svc-bento::-webkit-scrollbar { display: none; }

.svc-card {
  padding: 12px 12px 13px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  overflow: hidden;
  position: relative;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-card:active { opacity: 1; }

.svc-full { grid-column: 1 / -1; }

.svc-t {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.svc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: #1D9E75;
  color: #E1F5EE;
}

/* Галочка выбора карточки */
.svc-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1D9E75;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out;
  pointer-events: none;
  z-index: 2;
}
.svc-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-card--selected .svc-check {
  transform: scale(1);
  opacity: 1;
}

/* Карточка «Внедрение AI» — галочка левее бейджа */
.svc-s9 .svc-check {
  right: auto;
  left: 8px;
}
.svc-s9.svc-card--selected .svc-t {
  padding-left: 28px;
}

/* Цвета карточек */
.svc-s1 { background: #E6F1FB; }
.svc-s1 .svc-t   { color: #0C447C; }
.svc-s1 .svc-desc { color: #185FA5; }

.svc-s2 { background: #EEEDFE; }
.svc-s2 .svc-t   { color: #3C3489; }
.svc-s2 .svc-desc { color: #534AB7; }

.svc-s3 { background: #E1F5EE; }
.svc-s3 .svc-t   { color: #085041; }
.svc-s3 .svc-desc { color: #0F6E56; }

.svc-s4 { background: #F1EFE8; }
.svc-s4 .svc-t   { color: #2C2C2A; }
.svc-s4 .svc-desc { color: #5F5E5A; }

.svc-s5 { background: #FAEEDA; }
.svc-s5 .svc-t   { color: #633806; }
.svc-s5 .svc-desc { color: #854F0B; }

.svc-s6 { background: #FCEBEB; }
.svc-s6 .svc-t   { color: #501313; }
.svc-s6 .svc-desc { color: #A32D2D; }

.svc-s7 { background: #EEEDFE; }
.svc-s7 .svc-t   { color: #3C3489; }
.svc-s7 .svc-desc { color: #534AB7; }

.svc-s8 { background: #F1EFE8; }
.svc-s8 .svc-t   { color: #2C2C2A; }
.svc-s8 .svc-desc { color: #5F5E5A; }

.svc-s9 { background: #0E2B4A; }
.svc-s9 .svc-t   { color: #EEF4FB; }
.svc-s9 .svc-desc { color: rgba(200,220,240,0.7); }


/* ── 14. WHY NOT AGENCY (экран 05) ────────────────────────────── */

#s-why {
  background: var(--bg-layer);
  justify-content: center;
}

/* Свайп-квиз «Почему не агентство» */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--px) 0;
  flex-shrink: 0;
}
.progress-track {
  flex: 1;
  height: 3px;
  background: var(--brd);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.progress-count {
  font-size: 11px;
  color: var(--t3);
  font-weight: 500;
  white-space: nowrap;
}

.cards-area {
  flex: none;
  height: 160px;
  padding: 8px var(--px) 6px;
  position: relative;
  overflow: hidden;
}

.card {
  position: absolute;
  inset: 8px 16px 6px;
  border-radius: var(--r-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  cursor: grab;
  will-change: transform;
}
.card:active { cursor: grabbing; }

.card-agency {
  background: var(--bg-base);
  border: 0.5px solid var(--brd);
}
.card-hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-label-agency {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t3);
}
.swipe-hint {
  font-size: 11px;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-problem {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.4;
}
.card-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FCEBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.card-icon-wrap svg { width: 12px; height: 12px; }

.card-top-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.swipe-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  opacity: 0;
  transition: opacity 0.1s;
  pointer-events: none;
}
.overlay-left  { background: rgba(200,30,30,0.14); }
.overlay-right { background: rgba(225,245,238,0.5); }

.answer-card {
  position: absolute;
  inset: 8px 16px 6px;
  background: #E1F5EE;
  border: 0.5px solid #9FE1CB;
  border-radius: var(--r-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.answer-card.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.answer-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0F6E56;
}
.answer-text {
  font-size: 14px;
  font-weight: 600;
  color: #052e1f;
  line-height: 1.35;
}
.answer-sub {
  font-size: 12px;
  color: #085041;
  line-height: 1.5;
  flex: 1;
}
.answer-next {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #085041;
  color: #E1F5EE;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.answer-next:hover { opacity: 0.85; }

.done-card {
  position: absolute;
  inset: 8px 16px 6px;
  background: var(--bg-layer);
  border: 0.5px solid var(--brd);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.done-card.visible { opacity: 1; pointer-events: auto; }
.done-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E1F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.done-icon svg { width: 18px; height: 18px; }
.done-title { font-size: 14px; font-weight: 500; color: var(--t1); }
.done-sub    { font-size: 12px; color: var(--t2); line-height: 1.5; }
.done-btn {
  margin-top: 8px;
  background: var(--t1);
  color: var(--bg-base);
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.done-btn:hover { opacity: 0.85; }

.quote-block {
  flex-shrink: 0;
  margin: 0 var(--px) 6px;
  padding: 11px 13px;
  background: var(--bg-layer);
  border-left: 3px solid var(--brd);
  border-radius: 0 10px 10px 0;
  transition: all 0.5s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}
.quote-block.show {
  opacity: 1;
  pointer-events: auto;
}
.quote-block.highlight { border-left-color: var(--accent-green); background: #E1F5EE; }
.quote-text { font-size: 12px; font-weight: 500; color: var(--t1); line-height: 1.5; }
.quote-text.highlight { color: #085041; }


/* ── 15. WHY ROWS (новый дизайн, экран 05) ──────────────────────── */

.why-rows {
  flex: 1;
  overflow: clip;
  overscroll-behavior: contain;
  padding: 6px var(--px) calc(88px + 14px);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.why-row {
  position: relative;
  flex-shrink: 0;
  border-radius: var(--r-lg);
}

/* Agency card — в потоке (задаёт высоту строки), z-index сверху */
.why-r-agency {
  position: relative;
  z-index: 2;
  background: var(--bg-base);
  border: 0.5px solid var(--brd);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  user-select: none;
  touch-action: pan-y;       /* вертикальный скролл — браузеру, горизонтальный свайп — pointer events */
  cursor: grab;
  will-change: transform;
}
.why-r-agency:active { cursor: grabbing; }

/* Peek-hint: первая строка подмигивает — как реальный свайп: сдвиг + поворот + красный оверлей */
/* Параметры из setupWhyRow: rotate = dx * 0.04, overlay opacity = min(|dx|/60, 0.9) */
@keyframes why-agency-peek {
  0%, 100% { transform: translateX(0) rotate(0); }
  35%, 55% { transform: translateX(-32px) rotate(-1.28deg); }
}
@keyframes why-overlay-peek {
  0%, 100% { opacity: 0; }
  35%, 55% { opacity: 0.53; }
}
.why-r-agency.peek-hint {
  animation: why-agency-peek 1.4s cubic-bezier(.4,0,.2,1) 0.4s 1;
}
.why-r-agency.peek-hint .why-r-overlay {
  animation: why-overlay-peek 1.4s cubic-bezier(.4,0,.2,1) 0.4s 1;
}

/* Consultant card — абсолютная, под agency */
.why-r-consultant {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #E1F5EE;
  border: 0.5px solid #9FE1CB;
  border-radius: var(--r-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  user-select: none;
  touch-action: pan-y;       /* вертикальный скролл — браузеру, горизонтальный свайп — pointer events */
  cursor: grab;
  will-change: transform;
}
.why-r-consultant:active { cursor: grabbing; }

.why-r-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.why-r-label-agency {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t3);
}

.why-r-label-consultant {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0F6E56;
}

.why-r-hint {
  font-size: 10px;
  color: var(--t3);
  line-height: 1;
}
.why-r-consultant .why-r-hint { color: #0F6E56; opacity: 0.55; }

.why-r-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.why-r-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-r-icon--x   { background: #FCEBEB; }
.why-r-icon--ok  { background: rgba(29,158,117,0.13); }
.why-r-icon svg  { width: 11px; height: 11px; }

.why-r-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--t1);
}
.why-r-consultant .why-r-text { color: #052e1f; }

/* Drag overlay (красный tint) */
.why-r-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: rgba(200,30,30,0.13);
  opacity: 0;
  transition: opacity 0.08s;
  pointer-events: none;
  z-index: 3;
}

/* Done overlay — поверх всей секции */
.why-done-overlay {
  position: absolute;
  inset: 0;
  background: rgba(225,245,238,0.97);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.why-done-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.why-done-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px var(--px);
  text-align: center;
  width: 100%;
}

.why-done-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1D9E75;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.why-done-icon svg { width: 22px; height: 22px; }

.why-done-title {
  font-size: 18px;
  font-weight: 600;
  color: #052e1f;
  line-height: 1.2;
}

.why-done-sub {
  font-size: 13px;
  color: #085041;
  line-height: 1.55;
  max-width: 280px;
}

.why-done-quote {
  background: #1D9E75;
  color: #fff;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  font-style: italic;
  max-width: 300px;
  width: 100%;
}

.why-done-btn {
  margin-top: 4px;
  background: #052e1f;
  color: #E1F5EE;
  border: none;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.why-done-btn:hover { opacity: 0.85; }


/* ── 15. PRODUCTS (экран 06) ───────────────────────────────────── */

/* Стрелка «листать вниз» в разделе Решения */
.prod-arrow {
  position: absolute;
  bottom: calc(88px + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid rgba(15, 23, 42, 0.15);
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--t2);
  cursor: pointer;
  z-index: 5;
  animation: hero-bounce 2s ease-in-out 1.5s infinite;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

#s-prod {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* ── Стек компактных карточек ── */
.sol-cards {
  flex: 1;
  overflow: clip;
  padding: 4px var(--px) calc(68px + 10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sol-cards::-webkit-scrollbar { display: none; }

.sol-card {
  border: 0.5px solid var(--brd-md);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sol-card:active { opacity: 0.85; }

.sol-accent {
  height: 3px;
}

.sol-body {
  padding: 9px 13px 6px;
}

.sol-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 4px;
}

.sol-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.sol-sub {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
}

.sol-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 13px 9px;
}

.sol-hint {
  font-size: 11px;
  color: var(--t3);
}

.sol-demo-btn {
  background: var(--t1);
  color: var(--bg-base);
  border: none;
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.sol-demo-btn:active { opacity: 0.75; }

.sol-demo-muted {
  background: var(--bg-layer);
  color: var(--t2);
  border: 0.5px solid var(--brd-md);
}

/* Тёмная карточка кейса (после .sol-card чтобы перекрыть каскад) */
.sol-card-dark {
  background: #002147;
  border-color: rgba(255,255,255,0.1);
}
.sol-card-dark .sol-tag    { color: rgba(255,255,255,0.45); }
.sol-card-dark .sol-name   { color: rgba(255,255,255,0.9); }
.sol-card-dark .sol-hint   { color: rgba(255,255,255,0.4); }
.sol-card-dark .case-metric { color: rgba(255,255,255,0.8); }

/* Скролл внутри оверлея кейса */
.pfo-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--px) 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pfo-scroll::-webkit-scrollbar { display: none; }

/* ── Fullscreen overlay внутри #s-prod ── */
.prod-fs-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  z-index: 10;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.prod-fs-overlay.open {
  transform: translateY(0);
}

.pfo-header {
  padding: 16px var(--px) 14px;
  border-bottom: 0.5px solid var(--brd);
  flex-shrink: 0;
  position: relative;
}

.pfo-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.pfo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pfo-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--t3);
}

.pfo-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  padding-right: 36px;
}

.pfo-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  line-height: 1.5;
}

.pfo-close {
  position: absolute;
  top: 14px;
  right: var(--px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-layer);
  border: 0.5px solid var(--brd-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pfo-close svg {
  width: 11px;
  height: 11px;
  stroke: var(--t2);
}

.pfo-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px var(--px) 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pfo-body::-webkit-scrollbar { display: none; }

.pfo-footer {
  flex-shrink: 0;
  padding: 10px var(--px) calc(env(safe-area-inset-bottom) + 14px);
  border-top: 0.5px solid var(--brd);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-base);
}

/* Точно такой же стиль как sol-demo-btn на карточке */
.pfo-demo-btn {
  background: var(--t1);
  color: var(--bg-base);
  border: none;
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pfo-demo-btn:active { opacity: 0.75; }
.pfo-demo-btn.muted {
  background: var(--bg-layer);
  color: var(--t2);
  border: 0.5px solid var(--brd-md);
}

/* ── Gallery overlay ── */
.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.gallery-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.gal-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 201;
  -webkit-tap-highlight-color: transparent;
}
.gal-close svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255, 255, 255, 0.85);
}

.gal-track-wrap {
  flex: 1;
  overflow: hidden;
  width: 100%;
  padding: 60px 0 16px;
  display: flex;
  align-items: center;
}

.gal-track {
  display: flex;
  will-change: transform;
}

.gal-track.animated {
  transition: transform 0.3s ease-out;
}

.gal-slide {
  width: 100vw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.gal-slide img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  display: block;
}

.gal-footer {
  flex-shrink: 0;
  padding: 8px 16px max(16px, env(safe-area-inset-bottom));
  text-align: center;
  width: 100%;
}

.gal-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-bottom: 4px;
}

.gal-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}


/* ── Переиспользуемые стили для тела оверлея ── */

/* Скролл-область контента */
.prod-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.prod-scroll::-webkit-scrollbar { display: none; }

/* Тег категории */
.prod-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
  opacity: 0.85;
}

/* Название продукта */
.prod-name {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* Подзаголовок */
.prod-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.55;
}

/* Разделитель */
.prod-divider {
  height: 1px;
  background: var(--brd);
  margin: 12px 0;
}

/* Параграфы описания */
.prod-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* Примечание — левый бордер, как на десктопе */
.prod-note-block {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
  border-left: 2px solid rgba(83,74,183,0.3);
  padding: 5px 10px;
  margin: 4px 0 10px;
  background: var(--purple-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Итог / результат */
.prod-result {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  border-left: 2px solid rgba(0,51,128,0.4);
  padding: 6px 10px;
  background: rgba(0,51,128,0.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 10px;
  line-height: 1.5;
}

/* Заголовок списка */
.prod-list-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 10px 0 6px;
}

/* Пункт списка */
.prod-feat {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
  padding: 5px 0;
  border-bottom: 0.5px solid var(--brd);
}
.prod-feat:last-of-type { border-bottom: none; }

.prod-dash {
  color: var(--purple);
  flex-shrink: 0;
  font-weight: 500;
}

/* Строка кнопок — прилипает к низу карточки */
.prod-actions {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--brd);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg-card);
}

/* Кнопка «Демо» — web-app стиль */
.prod-demo-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--brd-purple);
  background: var(--purple-dim);
  color: var(--purple);
  letter-spacing: 0.01em;
}
.prod-demo-btn:active { opacity: 0.8; transform: scale(0.97); }

.prod-demo-btn.demo-ai {
  border-color: var(--brd-green);
  background: var(--green-dim);
  color: var(--accent-green);
}

/* Основная CTA-кнопка */
.prod-cta-btn {
  flex: 1;
  height: 40px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
}
.prod-cta-btn:active { opacity: 0.85; }
.prod-cta-btn.cta-full { flex: 2; }

/* ── 16. TESTIMONIALS (экран 07) ───────────────────────────────── */

#s-testi {
  background: var(--bg-layer);
}

/* Вертикальный список из 3 карточек */
.testi-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 var(--px) var(--px);
  overflow: clip;
  scrollbar-width: none;
}
.testi-list::-webkit-scrollbar { display: none; }

/* Отдельная карточка */
.testi-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 0.5px solid var(--brd);
  padding: 12px 14px;
  min-height: 0;
}

.testi-proj {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.testi-q {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--t1);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

.testi-footer {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 0.5px solid var(--brd);
  flex-shrink: 0;
}

.testi-auth {
  font-size: 11px;
  font-weight: 600;
  color: var(--t1);
}

.testi-co {
  font-size: 10px;
  color: var(--t2);
  margin-top: 1px;
}


/* ── 17. MEDIA (экран 08) ──────────────────────────────────────── */

#s-media {
  background: var(--bg-base);
}

.media-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 var(--px) 88px; /* 88px — место под float-nav */
  flex: 1;
  overflow: clip;
  scrollbar-width: none;
}
.media-grid::-webkit-scrollbar { display: none; }

.media-item {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 0.5px solid var(--brd);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.media-item:active { border-color: var(--brd-md); }
.media-item:hover  { border-color: var(--brd-md); box-shadow: 0 2px 8px rgba(0,21,48,0.08); }

.media-ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; letter-spacing: -0.01em;
  overflow: hidden;
}
.media-ico--rbk { background: rgba(83,74,183,0.12); color: #534AB7; }
.media-ico--yt  { background: rgba(220,50,50,0.10); color: #c0392b; }
.media-ico--eco { background: #F1EFE8; }

.media-content { flex: 1; }

.media-meta {
  font-size: 10px;
  color: var(--t3);
  margin-bottom: 3px;
  font-weight: 400;
}

.media-cta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 5px;
}

.media-t {
  font-size: 15px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.35;
}

.media-sub {
  font-size: 13px;
  color: var(--t2);
  margin-top: 5px;
  line-height: 1.55;
}


/* ── 18. FAQ (экран 09) ────────────────────────────────────────── */

#s-faq {
  background: var(--bg-layer);
}

.faq-list {
  padding: 0 var(--px);
  flex: 1;
  overflow: clip;
  scrollbar-width: none;
}
.faq-list::-webkit-scrollbar { display: none; }

.faq-it {
  border-bottom: 0.5px solid var(--brd);
  cursor: pointer;
  transition: background 0.2s, margin 0.2s, padding 0.2s;
}

.faq-row {
  display: flex;
  gap: 8px;
  padding: 11px 0;
  align-items: flex-start;
}

.faq-n {
  font-size: 8px;
  color: var(--accent-green);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 16px;
}

.faq-q {
  font-size: 15px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.35;
  flex: 1;
}

.faq-ico {
  color: var(--t3);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
  margin-top: 1px;
}

.faq-ans {
  display: none;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.65;
  padding: 0 0 10px 24px;
}

/* Открытое состояние */
.faq-it.open .faq-ans { display: block; }
.faq-it.open .faq-ico { transform: rotate(45deg); }
.faq-it.open {
  background: rgba(29, 158, 117, 0.04);
  margin: 0 calc(-1 * var(--px));
  padding: 0 var(--px);
}


/* ── SOLVER OVERLAY ────────────────────────────────────────────── */

.solver-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  height: 100dvh;
  z-index: 200;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.solver-overlay.open {
  transform: translateY(0);
}

.solver-intro {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Oracle loader */
.solver-oracle-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 40px auto 20px;
}
.solver-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-green);
  opacity: 0;
}
.solver-ring-1 { animation: solver-ripple 1s ease-out infinite; }
.solver-ring-2 { animation: solver-ripple 1s ease-out 0.33s infinite; }
.solver-ring-3 { animation: solver-ripple 1s ease-out 0.66s infinite; }
@keyframes solver-ripple {
  0%   { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}
.solver-loading-text {
  text-align: center;
  font-size: 14px;
  color: var(--t2);
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}

/* User question */
.solver-user-question {
  font-size: 14px;
  line-height: 1.5;
  color: var(--t2);
  background: var(--bg2, #f5f5f5);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-style: italic;
}

/* Answer */
.solver-answer {
  font-size: 15px;
  line-height: 1.7;
  color: var(--t1);
  padding: 16px;
  border: 1px solid var(--brd-green);
  border-radius: var(--r-md);
  background: var(--green-dim);
}
.solver-answer p {
  margin-bottom: 12px;
}
.solver-answer p:last-child {
  margin-bottom: 0;
}
.solver-answer strong {
  font-weight: 600;
}
.solver-answer .solver-list-num {
  color: var(--accent-green);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Strip card (for direct #solver links) */
.solver-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--brd);
}
.solver-strip-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(29, 158, 117, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}
.solver-strip-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.3;
}
.solver-strip-desc {
  font-size: 12px;
  color: var(--t1);
  opacity: 0.7;
  line-height: 1.4;
  margin-top: 1px;
}
.solver-strip-stats {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--t2);
  margin-top: 2px;
}

/* Channel CTA (primary) */
.solver-channel-cta {
  margin-top: 16px;
  padding: 14px;
  border-left: 3px solid var(--accent-green);
  background: rgba(29, 158, 117, 0.04);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.solver-channel-cta-note {
  font-size: 12px;
  font-style: italic;
  color: var(--t3);
  margin-bottom: 6px;
}
.solver-channel-cta-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  margin-bottom: 2px;
}
.solver-channel-cta-sub {
  font-size: 12px;
  color: var(--t2);
  margin-bottom: 12px;
}
.solver-channel-cta-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-green);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.solver-channel-cta-btn:active {
  opacity: 0.8;
}

/* Personal contact (tertiary) */
.solver-personal-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--brd);
}
.solver-personal-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--brd);
  object-fit: cover;
  flex-shrink: 0;
}
.solver-personal-text {
  font-size: 11px;
  color: var(--t2);
  line-height: 1.5;
}
.solver-personal-text a {
  color: var(--accent-green);
  text-decoration: none;
}
.solver-personal-text a:active {
  opacity: 0.7;
}

/* Error */
.solver-error-text {
  text-align: center;
  font-size: 14px;
  color: var(--t2);
  padding: 40px 0;
}

/* Game Over */
.solver-gameover {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.solver-gameover-frame {
  position: relative;
  width: 100%;
  border: 2px dashed var(--brd-green);
  border-radius: var(--r-md);
  padding: 32px 20px 28px;
  text-align: center;
  background: var(--green-dim);
}
.solver-gameover-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-green);
  opacity: 0.6;
  margin-bottom: 8px;
}
.solver-gameover-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  text-shadow:
    2px 2px 0 rgba(29, 158, 117, 0.3),
    4px 4px 0 rgba(29, 158, 117, 0.12);
  margin-bottom: 18px;
}
.solver-gameover-rule {
  width: 40px;
  height: 2px;
  background: var(--accent-green);
  margin: 0 auto 16px;
  opacity: 0.5;
}
.solver-gameover-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--t1);
  margin-bottom: 10px;
}
.solver-gameover-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--t2);
  margin-bottom: 20px;
}
.solver-gameover-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.solver-gameover-links a {
  font-size: 14px;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
}
.solver-gameover-links a:active { opacity: 0.7; }
.solver-gameover-dot {
  color: var(--t3);
  font-size: 14px;
}
.solver-gameover-email {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--t2);
  text-decoration: none;
}
.solver-gameover-email:active { opacity: 0.7; }

/* Clickable examples */
.solver-examples {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 0.5px solid var(--brd);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.solver-examples-label {
  font-size: 11px;
  color: var(--t3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.solver-example-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0.5px solid var(--brd);
  border-radius: var(--r-md);
  padding: 8px 10px;
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1.45;
  color: var(--t2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.solver-example-btn:active {
  border-color: var(--accent-green);
  color: var(--t1);
}

/* Scenario selection screen */
.solver-scenarios-label {
  font-size: 11px;
  color: var(--t3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.solver-scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.solver-scenario-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0.5px solid var(--brd);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.45;
  color: var(--t1);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.solver-scenario-btn:active {
  border-color: var(--accent-green);
  background: rgba(29, 158, 117, 0.04);
}
.solver-other-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--accent-green);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--accent-green);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.solver-other-btn:active {
  background: rgba(29, 158, 117, 0.06);
}
.solver-back-btn {
  display: block;
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--t3);
  font-family: var(--font-main);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}

/* Header right group */
.co-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Limit hint */
.solver-limit-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-green);
  opacity: 0.7;
  white-space: nowrap;
}
.solver-limit-hint.warn {
  color: #e8a736;
  opacity: 1;
}

/* Share button */
.solver-share-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  height: 40px;
  border: 0.5px solid var(--brd);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--t2);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.solver-share-btn:active {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Submit button */
.solver-submit-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--r-md);
  background: var(--accent-green);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.solver-submit-btn:active { opacity: 0.85; }
.solver-submit-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* "Задать другой вопрос" */
.solver-reset-btn {
  width: 100%;
  height: 48px;
  border: 1px solid var(--brd-green);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--accent-green);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}


/* ── 19. CONTACT (экран 10) ────────────────────────────────────── */

/* ── CONTACT OVERLAY ───────────────────────────────────────────── */

.contact-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  height: 100dvh;
  z-index: 200;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-overlay.open {
  transform: translateY(0);
}

.co-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--px) 12px;
  border-bottom: 0.5px solid var(--brd);
  flex-shrink: 0;
}

.co-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.co-superlabel {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.co-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
}
.co-subtitle {
  font-size: 12px;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--brd-md);
  background: transparent;
  color: var(--t2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.co-inner {
  flex: 1;
  overflow-y: auto;
  padding: 16px var(--px) 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: none;
}
.co-inner::-webkit-scrollbar { display: none; }

/* Promise-блок */
.co-promise {
  background: #E1F5EE;
  border-radius: 12px;
  padding: 12px 14px;
  flex-shrink: 0;
}

.co-promise-title {
  font-size: 13px;
  font-weight: 500;
  color: #085041;
  margin-bottom: 4px;
}

.co-promise-text {
  font-size: 12px;
  color: #0F6E56;
  line-height: 1.5;
}

.co-promise-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.co-promise-steps li {
  counter-increment: step;
  font-size: 12px;
  color: #0F6E56;
  line-height: 1.45;
  display: flex;
  gap: 8px;
}
.co-promise-steps li::before {
  content: counter(step) ".";
  font-weight: 600;
  color: #085041;
  flex-shrink: 0;
}

/* Форма */
.cform {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cf-input {
  width: 100%;
  background: var(--bg-layer);
  border: 0.5px solid var(--brd-md);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--t1);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-main);
}
.cf-input::placeholder { color: var(--t3); }
.cf-input:focus { border-color: rgba(29, 158, 117, 0.45); outline: none; }

textarea.cf-input {
  resize: none;
  min-height: 72px;
}

/* Стартер-оверлей в солвере (мигающий текст с курсором) */
.solver-input-wrap {
  position: relative;
}
.solver-starter-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--t1);
  line-height: 1.5;
  background: var(--bg-layer);
  border-radius: 10px;
  cursor: text;
  z-index: 1;
}
.solver-starter-overlay.hidden { display: none; }

/* Чекбокс согласия на обработку ПДн */
.cf-consent {
  padding-top: 4px;
}

.cf-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cf-consent-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cf-consent-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--brd-md);
  background: var(--bg-layer);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.cf-consent-check svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.cf-consent-checkbox:checked + .cf-consent-check {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.cf-consent-checkbox:checked + .cf-consent-check svg {
  opacity: 1;
  transform: scale(1);
}

.cf-consent-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--t2);
}

.cf-consent-link {
  color: var(--t1) !important;
  text-decoration: underline;
  text-decoration-color: var(--brd-md);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.cf-consent-link:active {
  text-decoration-color: var(--t1);
}

/* Прилипающий футер с кнопкой */
.co-footer {
  flex-shrink: 0;
  padding: 10px var(--px) max(20px, env(safe-area-inset-bottom));
  border-top: 0.5px solid var(--brd);
}

.cf-btn {
  width: 100%;
  padding: 14px;
  background: rgba(0, 21, 48, 0.94);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
}
.cf-btn:active { opacity: 0.8; }
.cf-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Контакт-ссылки */
.contact-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.contact-links-label {
  font-size: 10px;
  color: var(--t3);
  width: 100%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.clink {
  font-size: 12px;
  color: var(--t2);
  text-decoration: none;
}
.clink:active { color: var(--t1); }


/* ── 20. FOOTER (экран 11) ─────────────────────────────────────── */

#s-footer {
  background: #0d0d0d;
  justify-content: flex-end;
  padding: 0;
}

.footer-card {
  background: #0d0d0d;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding: 0 var(--px) max(calc(env(safe-area-inset-bottom) + 72px), 88px);
}

.footer-inner {
  padding: 2rem 1.5rem 1.5rem;
}

.footer-role {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.footer-name {
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-contacts {
  border-top: 0.5px solid #2a2a2a;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-text {
  font-size: 14px;
  color: #ccc;
}

.footer-copy {
  text-align: center;
  font-size: 11px;
  color: #444;
  margin: 0 0 0.75rem;
}

.footer-legal {
  text-align: center;
  font-size: 10px;
  color: #555;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.footer-privacy {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #555;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 0.25rem;
  transition: color 0.2s;
}

.footer-privacy:active {
  color: #999;
}

.footer-cta {
  width: 100%;
  padding: 14px;
  background: #1a6ef5;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.01em;
}


/* ── 20b. COOKIE-БАННЕР ───────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: max(calc(env(safe-area-inset-bottom) + 76px), 92px); /* над float-nav */
  left: var(--px);
  right: var(--px);
  z-index: 99;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1),
              transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--brd);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              0 2px 8px rgba(0, 0, 0, 0.04);
}

.cookie-banner-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-layer);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--t2);
}

.cookie-banner-text {
  flex: 1;
  font-size: 11px;
  line-height: 1.5;
  color: var(--t2);
}

.cookie-banner-link {
  color: var(--t1) !important;
  text-decoration: underline;
  text-decoration-color: var(--brd-md);
  text-underline-offset: 2px;
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--t1);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-mono);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.cookie-banner-btn:active {
  opacity: 0.8;
}

/* ── 21. ПЛАВАЮЩАЯ НАВИГАЦИЯ ───────────────────────────────────── */

.float-nav {
  position: fixed;
  bottom: max(calc(env(safe-area-inset-bottom) + 20px), 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgb(0, 21, 48);              /* fallback — полностью непрозрачный */
  background: rgba(0, 21, 48, 0.94);       /* с blur выглядит лучше */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  padding: 6px 8px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 21, 48, 0.35), 0 2px 8px rgba(0, 21, 48, 0.2);
  min-width: 220px;
}

/* Иконочные кнопки: бургер и Telegram */
.fn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.fn-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.75);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fn-icon:active { background: rgba(255, 255, 255, 0.12); }

/* Solver: зелёный акцент + пинг */
.fn-solver {
  border: 1px solid var(--brd-green);
  background: rgba(29, 158, 117, 0.12);
  position: relative;
}
.fn-solver svg {
  stroke: var(--accent-green);
}
.fn-solver:active {
  background: rgba(29, 158, 117, 0.22);
}
.fn-solver-ping {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-green);
  opacity: 0;
  animation: fn-solver-ping 3s ease-out infinite;
  pointer-events: none;
}
@keyframes fn-solver-ping {
  0%  { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
  100%{ transform: scale(1.2); opacity: 0; }
}

/* Ghost-eye: летит от кнопки к карточке */
.solver-ghost-eye {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  filter: drop-shadow(0 0 10px var(--accent-green)) drop-shadow(0 0 20px rgba(29,158,117,0.4));
}
.solver-ghost-eye svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-green);
  fill: rgba(29,158,117,0.15);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Telegram: с рамкой */
.fn-tg {
  border: 0.5px solid rgba(255, 255, 255, 0.25);
}

/* CTA-пилюля */
.fn-cta {
  flex: 1;
  height: 40px;
  border-radius: 22px;
  border: 0.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  min-width: 148px;
}

.fn-cta:active {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}


/* ── 22. МЕНЮ-ОВЕРЛЕЙ ──────────────────────────────────────────── */

.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0, 21, 48);              /* fallback — полностью непрозрачный */
  background: rgba(0, 21, 48, 0.97);       /* с blur выглядит лучше */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  /* Переопределяем токены для тёмного меню */
  --t1: #ffffff;
  --t2: rgba(255, 255, 255, 0.60);
  --t3: rgba(255, 255, 255, 0.30);
  --brd: rgba(255, 255, 255, 0.08);
}
.menu-overlay.open { transform: translateX(0); }

/* Шапка меню */
.menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--px) 16px;
  flex-shrink: 0;
}

.menu-logo {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.02em;
}

.menu-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0.5px solid var(--brd);
  color: var(--t2);
  font-size: 14px;
  background: none;
}

/* Список разделов */
.menu-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--px);
  scrollbar-width: none;
}
.menu-list::-webkit-scrollbar { display: none; }

.mi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: opacity 0.15s;
}
.mi:active { opacity: 0.6; }

.mi-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mi-num {
  font-size: 9px;
  color: var(--accent-green);
  font-family: var(--font-mono);
  min-width: 18px;
}

.mi-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--t1);
}

.mi-arrow {
  font-size: 12px;
  color: var(--t3);
}

/* Solver в меню */
.mi-solver {
  text-decoration: none;
  border-bottom-color: rgba(29, 158, 117, 0.15);
}

/* CTA в меню */
.menu-cta {
  margin: 12px var(--px) 20px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--primary);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.01em;
  border: none;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.menu-cta:active { opacity: 0.85; }


/* ── 23. БОКОВОЙ ТРЕК-ПРОГРЕСС ─────────────────────────────────── */

.progress-track {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 20;
  pointer-events: none;
}

.pt-dot {
  width: 2px;
  border-radius: 2px;
  background: rgba(0, 21, 48, 0.15);
  transition: height 0.3s ease, background 0.3s ease;
  height: 4px;
}
.pt-dot.active {
  background: var(--accent-green);
  height: 18px;
}


/* ── 24. ДОПОЛНИТЕЛЬНЫЕ КОМПОНЕНТНЫЕ СТИЛИ ─────────────────────── */

/* Hero lead-in */
.hero-lead {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.5;
  margin: 0;
}

/* TODO: Hero background animation — placeholder, заменить позже */

/* Стрелка «листать вниз» */
/* ── Solver hero card ── */
.solver-hero-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  border: 1px solid var(--brd-green);
  background: var(--green-dim);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.solver-hero-card:active {
  background: rgba(29, 158, 117, 0.18);
  border-color: rgba(29, 158, 117, 0.45);
}
.solver-hero-dot-wrap {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.solver-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  position: absolute;
  top: 1px;
  left: 1px;
}
.solver-hero-dot-ping {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-green);
  animation: solver-hero-ping 2.5s cubic-bezier(0.1, 0.4, 0.7, 1) infinite;
}
@keyframes solver-hero-ping {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2);   opacity: 0; }
}
.solver-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.solver-hero-superlabel {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
  opacity: 0.55;
  line-height: 1;
}
.solver-hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
}
.solver-hero-text {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.4;
}
.solver-hero-arrow {
  font-size: 14px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.hero-arrow {
  position: absolute;
  bottom: 46px;
  right: calc(50% - 168px);
  font-size: 18px;
  color: var(--t3);
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-arrow.visible {
  opacity: 0.5;
  animation: hero-bounce 2s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Cases intro — скрыт (места не хватает при вертикальном списке) */
.cases-intro { display: none; }

/* Card overlay: скролл внутри */
.co-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.co-scroll::-webkit-scrollbar { display: none; }

.co-section-label {
  font-size: 8px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 10px 0 4px;
}
.co-section-label:first-child { margin-top: 0; }

.co-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.co-result-item {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.5;
  padding-left: 10px;
  position: relative;
}
.co-result-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-size: 9px;
}

.co-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--green-dim);
  border-radius: var(--r-md);
  border: 0.5px solid var(--brd-green);
  flex-shrink: 0;
}
.co-metric-n {
  font-size: 24px;
  font-weight: 700;
  color: var(--t1);
  font-family: var(--font-mono);
}
.co-metric-l {
  font-size: 10px;
  color: var(--t2);
}

.co-quote {
  font-size: 11px;
  font-style: italic;
  color: var(--t1);
  line-height: 1.6;
  border-left: 2px solid var(--brd-green);
  padding: 8px 12px;
  margin: 10px 0;
  background: rgba(29, 158, 117, 0.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.co-table {
  margin: 8px 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 0.5px solid var(--brd);
}
.co-table-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  font-size: 9.5px;
  padding: 7px 10px;
  border-bottom: 0.5px solid var(--brd);
  color: var(--t2);
}
.co-table-row:last-child { border-bottom: none; }
.co-table-head {
  font-size: 8px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 21, 48, 0.03);
}
.co-table-row span:not(:first-child) { text-align: right; }

.co-note {
  font-size: 9.5px;
  color: var(--t3);
  line-height: 1.5;
  font-style: italic;
  margin-top: 8px;
}

/* About: фото с фолбэком */
.photo-ava {
  position: relative;
}
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
  display: block;
}
.photo-ava-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: rgba(83, 74, 183, 0.9);
  pointer-events: none;
}
/* Показываем initials только если фото не загрузилось */
.photo-ava:not(.photo-ava-fallback) .photo-ava-initials { opacity: 0; }
.photo-ava.photo-ava-fallback .photo-ava-initials { opacity: 1; }

.about-bio p { margin-bottom: 8px; }
.about-bio p:last-child { margin-bottom: 0; }

/* Services: описание */
.svc-desc {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.4;
  margin-top: 5px;
}

/* (prod-* styles consolidated in section 15) */

/* ── Подсказка свайпа над секцией ──────────────────────────────── */
.section-swipe-hint {
  font-size: 10px;
  color: var(--t3);
  padding: 0 var(--px) 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}


/* ── Отзывы: карточки (rv-*) ─────────────────────────────────── */
.rv-list {
  padding: 0 var(--px);
  flex: 1;
  overflow: clip;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-list::-webkit-scrollbar { display: none; }

.rv-card {
  background: var(--bg-card);
  border-radius: 14px;
  border: 0.5px solid var(--brd);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}

.rv-stripe {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  border-radius: 14px 0 0 14px;
}

.rv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rv-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  flex-shrink: 0;
}

.rv-meta { flex: 1; min-width: 0; }

.rv-proj {
  font-size: 12px;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-co {
  font-size: 10px;
  color: var(--t3);
  margin-top: 1px;
}

.rv-badge {
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.rv-q {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
}

.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.rv-chip {
  font-size: 10px;
  color: var(--t3);
  background: var(--bg-layer);
  border-radius: 4px;
  padding: 2px 7px;
}


/* Testimonials: контекст */
.testi-ctx {
  font-size: 8.5px;
  color: var(--t3);
  margin-top: 4px;
  line-height: 1.4;
}


/* Contact: лейбл (legacy, не используется) */
.contact-label { display: none; }


/* ── 25. СОЦИОКАРТА: полноэкранный оверлей ─────────────────────── */

.sociomap-overlay,
.aicoach-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0e;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sociomap-overlay.open,
.aicoach-overlay.open {
  transform: translateY(0);
}

/* Социокарта — тёмный хедер, светлый текст */
.sociomap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--px);
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}
.sociomap-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}
.sociomap-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.sociomap-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* AI-коуч — белый хедер, тёмный текст */
.aicoach-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--px);
  flex-shrink: 0;
  background: #fff;
  border-bottom: 0.5px solid var(--brd);
}
.aicoach-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--t1);
  flex: 1;
}
.aicoach-hint {
  font-size: 9px;
  color: var(--t3);
  flex-shrink: 0;
}
.aicoach-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-layer);
  border: 0.5px solid var(--brd-md);
  color: var(--t2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sociomap-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
  /* Жесты внутри iframe — pan-x pan-y вместо none, иначе Safari «залипает» */
  touch-action: pan-x pan-y;
}
