/* ============================================================
   Dokium — презентация. Стиль «Тихая надёжность»
   #FCFCFA фон · #16181D текст · #2F6B4F акцент · Golos Text
   ============================================================ */

:root {
  --bg: #FCFCFA;
  --ink: #16181D;
  --ink-soft: #555A63;
  --accent: #2F6B4F;
  --accent-dark: #1F4A36;
  --accent-soft: rgba(47,107,79,0.08);
  --line: rgba(22,24,29,0.10);
  --card-bg: #FFFFFF;
  --radius: 20px;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Дека слайдов ---------- */
.deck { position: relative; }

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 48px;
  overflow: hidden;
  scroll-snap-align: start;
}

.slide-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.slide.active .slide-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Типографика ---------- */
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1, h2 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(38px, 6.4vw, 78px); }
h2 { font-size: clamp(30px, 4.6vw, 56px); margin-bottom: 34px; }

h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
}

h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

p { color: var(--ink-soft); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47,107,79,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(47,107,79,0.36); }

.btn-light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.24); }

/* ---------- Лого ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
}
.logo-light { color: #fff; }
.logo-light .logo-mark { background: #fff; color: var(--accent-dark); }

/* ---------- Слайд 01: Обложка ---------- */
.cover { text-align: center; }
.cover .slide-inner { display: flex; flex-direction: column; align-items: center; }
.cover .logo { margin-bottom: 44px; }
.cover-title { margin-bottom: 24px; }
.cover-sub {
  font-size: clamp(17px, 2.2vw, 22px);
  max-width: 720px;
  margin-bottom: 40px;
}
.cover-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.cover-hint { font-size: 15px; color: var(--ink-soft); }
.cover-hint b { color: var(--accent); }
.cover-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  width: 100%;
  max-width: 420px;
}

/* ---------- Слайд 02: Проблема ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,24,29,0.08); }
.problem-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.problem-card p { font-size: 15px; }
.problem-card b { color: var(--ink); }

/* ---------- Слайд 03: Решение ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
.solution-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.solution-num {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.solution-label { font-size: 15px; color: var(--ink-soft); }
.solution-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------- Слайд 04: Как это работает ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; margin-top: 6px; }

/* ---------- Слайд 05: Цены ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,24,29,0.08); }
.price-card.featured { border: 2px solid var(--accent); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-badge:not(.price-badge:first-child) { background: var(--ink); }
.price-row { margin: 14px 0; display: flex; align-items: baseline; gap: 10px; }
.price-row s { color: #9A9FA8; font-size: 16px; }
.price { font-size: 32px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.price-card p { font-size: 14px; }
.pricing-note { text-align: center; font-size: 14px; color: var(--ink-soft); }
.pricing-note b { color: var(--accent); }

/* ---------- Слайд 06: ИИ ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.ai-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.ai-card h3 { color: var(--accent-dark); }
.ai-card p { font-size: 14.5px; margin-top: 8px; }
.ai-compare {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.ai-compare-item {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 14px;
}
.ai-big { display: block; font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.ai-compare-item span:last-child { font-size: 13.5px; opacity: 0.88; }

/* ---------- Слайд 07: Сравнение ---------- */
.table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  background: #F7F7F3;
}
.compare-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr.winner { background: var(--accent-soft); }
.compare-table tr.winner td { color: var(--accent-dark); font-weight: 600; }
.compare-table td:first-child { font-weight: 700; }
.compare-table .winner td:first-child { color: var(--accent); }

/* ---------- Слайд 08: Для кого ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.audience-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.audience-icon { font-size: 28px; display: block; margin-bottom: 14px; }
.audience-card h3 { font-size: 17px; }
.audience-card p { font-size: 14.5px; margin-top: 6px; }

/* ---------- Слайд 09: Цифры ---------- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.number-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.number { display: block; font-size: 44px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; margin-bottom: 8px; }
.number-label { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Слайд 10: Приватность ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.privacy-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.privacy-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.privacy-card h3 { color: var(--accent-dark); }
.privacy-card p { font-size: 14.5px; margin-top: 6px; }
.privacy-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------- Слайд 11: Каналы ---------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.channel-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.channel-name { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.channel-stat { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 10px; }
.channel-stat .number { font-size: 34px; margin: 0; }
.channel-stat span:last-child { color: var(--ink-soft); font-size: 15px; }
.channel-card p { font-size: 14.5px; }

/* ---------- Слайд 12: Команда ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.team-role { display: block; font-weight: 800; font-size: 16px; color: var(--accent-dark); margin-bottom: 6px; }
.team-card p { font-size: 13.5px; }
.team-note { text-align: center; font-size: 14.5px; }

/* ---------- Слайд 13: Статус ---------- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.status-col {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.status-col h3 { font-size: 17px; margin-bottom: 14px; }
.status-col ul { list-style: none; }
.status-col li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.status-col li:last-child { border-bottom: none; }
.status-col li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Слайд 14: Финал ---------- */
.final {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

/* ============================================================
   Тёмные слайды: чередование фон — тёмно-зелёный градиент
   База #0F1B2A + зелёный подтон #123F33, светлый текст, контраст > 4.5:1
   ============================================================ */
.slide--dark {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(47,107,79,0.55), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(18,63,51,0.65), transparent 55%),
    linear-gradient(160deg, #0F1B2A 0%, #123F33 55%, #0B1F1A 100%);
  color: #F4F7F2;
}

.slide--dark .slide-inner { color: #F4F7F2; }

.slide--dark h1,
.slide--dark h2 { color: #F7FAF6; }

.slide--dark h1 em,
.slide--dark h2 em {
  color: #8FD4B0;
  text-shadow: 0 0 24px rgba(63,143,100,0.35);
}

.slide--dark .kicker {
  color: #A9E0C3;
  background: rgba(143,212,176,0.14);
}

.slide--dark p,
.slide--dark .solution-label,
.slide--dark .problem-card p,
.slide--dark .step p,
.slide--dark .price-card p,
.slide--dark .audience-card p,
.slide--dark .channel-card p,
.slide--dark .team-card p,
.slide--dark .status-col li,
.slide--dark .privacy-card p,
.slide--dark .ai-card p,
.slide--dark .solution-note,
.slide--dark .pricing-note,
.slide--dark .privacy-note,
.slide--dark .team-note,
.slide--dark .cover-hint,
.slide--dark .cover-meta,
.slide--dark .final-sub,
.slide--dark .final-code,
.slide--dark .final-foot,
.slide--dark .number-label,
.slide--dark .cover-sub { color: rgba(244,247,242,0.78); }

/* Карточки на тёмном */
.slide--dark .problem-card,
.slide--dark .solution-item,
.slide--dark .step,
.slide--dark .price-card,
.slide--dark .ai-card,
.slide--dark .audience-card,
.slide--dark .number-card,
.slide--dark .privacy-card,
.slide--dark .channel-card,
.slide--dark .team-card,
.slide--dark .status-col,
.slide--dark .table-wrap {
  background: rgba(15,27,42,0.55);
  border-color: rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
}
.slide--dark .problem-card:hover,
.slide--dark .price-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.35); }

.slide--dark .price-card.featured { border-color: #4C9B73; }

.slide--dark .problem-card b { color: #F7FAF6; }

/* Иконки, цифры, акценты на тёмном */
.slide--dark .problem-icon {
  background: rgba(143,212,176,0.15);
  color: #A9E0C3;
}
.slide--dark .solution-num,
.slide--dark .number,
.slide--dark .step-num { color: #8FD4B0; }
.slide--dark .price { color: #8FD4B0; }
.slide--dark .price-row s { color: rgba(244,247,242,0.5); }
.slide--dark .price-badge { background: #4C9B73; }
.slide--dark .ai-card h3,
.slide--dark .privacy-card h3,
.slide--dark .team-role { color: #A9E0C3; }
.slide--dark .channel-name { color: #F7FAF6; }
.slide--dark .status-col li { border-color: rgba(255,255,255,0.12); }
.slide--dark .status-col li::before { color: #8FD4B0; }
.slide--dark .solution-note,
.slide--dark .pricing-note,
.slide--dark .privacy-note,
.slide--dark .team-note,
.slide--dark .cover-meta { border-color: rgba(255,255,255,0.14); }

/* Таблица на тёмном (слайд конкуренты) */
.slide--dark .compare-table th {
  background: rgba(15,27,42,0.7);
  color: rgba(244,247,242,0.65);
  border-color: rgba(255,255,255,0.14);
}
.slide--dark .compare-table td { border-color: rgba(255,255,255,0.10); color: rgba(244,247,242,0.82); }
.slide--dark .compare-table td:first-child { color: #F7FAF6; }
.slide--dark .compare-table tr.winner { background: rgba(76,155,115,0.22); }
.slide--dark .compare-table tr.winner td { color: #D6F3E3; }
.slide--dark .compare-table .winner td:first-child { color: #8FD4B0; }

/* Цены: тёмный ценовой блок внутри тёмного слайда — чуть светлее акцента */
.slide--dark .ai-compare-item { background: rgba(15,27,42,0.65); border: 1px solid rgba(143,212,176,0.25); }
.slide--dark .ai-big { color: #8FD4B0; }

/* Финальный слайд уже тёмный по умолчанию — добавим зелёный тон как у остальных */
.final.slide--dark {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(47,107,79,0.6), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(18,63,51,0.7), transparent 55%),
    linear-gradient(160deg, #0F1B2A 0%, #123F33 55%, #0B1F1A 100%);
}

/* ---------- Слайд 14: Финал (поверх тёмного) ---------- */
.final .logo { margin-bottom: 40px; }
.final .slide-inner { display: flex; flex-direction: column; align-items: center; }
.final .logo { margin-bottom: 40px; }
.final-title { color: #fff; margin-bottom: 20px; }
.final-title em { color: #7FBF9E; }
.final-sub { color: rgba(255,255,255,0.72); font-size: 18px; margin-bottom: 36px; }
.final-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.final-code { color: rgba(255,255,255,0.75); font-size: 15px; }
.final-code b { color: #7FBF9E; }
.final-foot {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  width: 100%;
  max-width: 460px;
}

/* ---------- Навигация: прогресс, точки, стрелки ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
}
.progress-track { height: 3px; background: rgba(22,24,29,0.06); }
.progress-fill { height: 3px; background: var(--accent); width: 0; transition: width 0.4s var(--ease); }

.dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}
.dots li {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 1px rgba(22,24,29,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.dots li:hover { transform: scale(1.3); }
.dots li.active {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.95), 0 0 10px rgba(47,107,79,0.55);
  transform: scale(1.3);
}

.slide-count {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 50;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-shadow: 0 0 4px rgba(255,255,255,0.95), 0 0 8px rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  pointer-events: none;
}
.slide-count .sep { margin: 0 4px; opacity: 0.5; }
.slide-count #curSlide { color: var(--accent); }

.nav-arrow {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(22,24,29,0.08);
  backdrop-filter: blur(8px);
}
.nav-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-arrow.prev { bottom: 74px; }
.nav-arrow.next { bottom: 20px; }
.nav-arrow.prev:hover { transform: translateX(-50%) translateY(-2px); }
.nav-arrow.next:hover { transform: translateX(-50%) translateY(2px); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .problem-grid, .solution-grid, .steps, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .status-grid { grid-template-columns: 1fr; }
  .ai-compare { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .slide { padding: 64px 16px 96px; }
  .problem-grid, .solution-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .ai-grid, .audience-grid, .numbers-grid, .privacy-grid, .channels-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-compare { grid-template-columns: 1fr 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 11px 12px; }
  .table-wrap { overflow-x: auto; }
  .compare-table { min-width: 560px; }
  .cover-actions, .final-actions { flex-direction: column; gap: 14px; }
  .dots { right: 10px; }
  .slide-count { display: none; }
  .nav-arrow { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide-inner { transition: none; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
