/*
 * AntRoute Pitch Presentation — стили.
 *
 * Палитра: фирменная тёплая светлая (warm brown) — синхронно с tokens.ts
 * Структура: scroll-snap по 100vh секциям с dots navigation справа,
 * keyboard navigation, анимация входа.
 *
 * Адаптировано из стиля contractors.market/pitch.html и новости.tv/pitch.html,
 * НО на светлой базе вместо тёмной (см. memory feedback_warm_light_palette_for_industry).
 */

:root {
  --primary: #8b7355;
  --primary-dark: #6e5b43;
  --primary-light: #a08763;
  --accent: #c4a882;
  --accent-light: #d8c19b;
  --success: #4e9a4e;
  --warning: #c87020;
  --error: #c04040;
  --info: #2c5a7a;

  --bg: #f0eeeb;
  --bg-alt: #e8e5e1;
  --panel: #faf9f7;
  --panel-elevated: #fffefb;
  --border: #d0ccc6;
  --border-light: #e8e5e1;

  --text: #2c2926;
  --text-2: #6b6560;
  --text-3: #9b958e;

  --shadow-sm: 0 1px 3px rgba(44, 41, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 41, 38, 0.08);
  --shadow-lg: 0 16px 48px rgba(44, 41, 38, 0.12);
  --shadow-warm: 0 8px 24px rgba(139, 115, 85, 0.15);

  --container-w: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ─── TOP NAV ─── */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.top-nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.link-back, .link-pdf {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.link-back:hover, .link-pdf:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--accent);
}

.link-pdf {
  background: var(--primary);
  color: var(--panel);
  border-color: var(--primary);
}
.link-pdf:hover {
  background: var(--primary-dark);
  color: var(--panel);
  border-color: var(--primary-dark);
}

/* ─── DOTS NAVIGATION ─── */

.dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.dot:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.15);
}

/* ─── SLIDES ─── */

main { padding-top: 56px; }

.slide {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.slide-alt {
  background: var(--bg-alt);
}

.container {
  max-width: var(--container-w);
  width: 100%;
  margin: 0 auto;
}

/* Section number — лёгкий watermark */
.section-num {
  position: absolute;
  top: 24px;
  left: 32px;
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  /* На mobile section-num уменьшаем и переносим в естественный flow,
     чтобы не пересекался с фиксированным header. */
  .section-num {
    position: static;
    font-size: 48px;
    margin-bottom: -16px;
    opacity: 0.2;
  }
}

/* ─── TYPOGRAPHY ─── */

h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}

.h1-line { display: block; }
.h1-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h1-sub {
  display: block;
  font-size: 0.4em;
  font-weight: 500;
  color: var(--text-2);
  margin-top: 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 740px;
  margin: 0 0 40px;
}

p { margin: 0 0 16px; }

/* ─── HERO ─── */

.slide-hero {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(139, 115, 85, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.slide-hero h1 { margin-bottom: 32px; }
.slide-hero .lead { margin-left: auto; margin-right: auto; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 48px auto 32px;
}

.stat {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
  border-color: var(--accent);
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.hero-validity {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 32px;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ─── PROBLEM GRID ─── */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.problem-card {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s;
}

.problem-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.problem-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.problem-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.problem-card p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

/* ─── CALLOUT ─── */

.callout {
  background: rgba(196, 168, 130, 0.15);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.callout strong { color: var(--primary); }

.callout-warning {
  background: rgba(200, 112, 32, 0.1);
  border-left-color: var(--warning);
}
.callout-warning strong { color: var(--warning); }

/* ─── LAYERS (3 уровня) ─── */

.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.layer {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s;
}

.layer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
  border-color: var(--accent);
}

.layer-featured {
  background: linear-gradient(180deg, var(--panel-elevated) 0%, rgba(196, 168, 130, 0.05) 100%);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.layer-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.layer h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}

.layer-what {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  min-height: 80px;
}

.layer-value {
  font-size: 14px;
  color: var(--text);
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.layer-value strong { color: var(--primary); }

/* ─── MODULES GRID ─── */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.module {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: all 0.2s;
}

.module:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.module h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--primary);
}

.module p {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

.module-pro {
  background: linear-gradient(135deg, rgba(139, 115, 85, 0.05), rgba(196, 168, 130, 0.08));
  border-color: var(--accent);
}

.module-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--primary);
  color: var(--panel);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ─── TARIFFS ─── */

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.tariff-card {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.tariff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tariff-popular {
  background: linear-gradient(180deg, var(--panel-elevated), rgba(196, 168, 130, 0.05));
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-warm);
  transform: scale(1.04);
}

.tariff-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--panel);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tariff-card h3 {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--text);
}

.tariff-price {
  margin-bottom: 20px;
}

.price-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.price-main span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

.price-subsidized {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}
.price-subsidized strong {
  color: var(--success);
  font-weight: 700;
}

.tariff-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: var(--text-2);
}

.tariff-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.tariff-card li:last-child { border-bottom: none; }
.tariff-card li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
  margin-right: 4px;
}

.tariff-example {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--panel-elevated);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
}
.tariff-example strong { color: var(--text); }

/* ─── COMPARISON TABLE ─── */

.comparison-table {
  margin-top: 32px;
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th {
  background: var(--bg-alt);
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
}

.comparison-table tr:last-child td { border-bottom: none; }

.row-highlight {
  background: linear-gradient(90deg, rgba(196, 168, 130, 0.08) 0%, rgba(139, 115, 85, 0.05) 100%);
}
.row-highlight td { color: var(--text); }
.row-highlight td:first-child { color: var(--primary); }

/* ─── ADVANTAGES ─── */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.advantage {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.advantage-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(78, 154, 78, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.advantage strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.advantage p {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

/* ─── MARKETPLACE FEATURES ─── */

.marketplace-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.mp-feature {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.2s;
}

.mp-feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.mp-feature h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
}

.mp-feature p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* ─── PILOT STAGES ─── */

.pilot-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 24px;
}

#slide-9 { overflow: visible; min-height: auto; padding-top: 48px; padding-bottom: 48px; }

.pilot-stage {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
}

.stage-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--panel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

.pilot-stage h3 {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--primary);
}

.pilot-stage p {
  font-size: 11px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.4;
}

.pilot-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pilot-price-card {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.pilot-price-card h4 {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 8px;
  font-weight: 500;
}

.price-big {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}
.price-big span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

.pilot-price-card p:last-child {
  font-size: 11px;
  color: var(--text-3);
  margin: 0;
}

/* ─── EFFECTS ─── */

.effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.effect {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.effect:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-warm);
}

.effect-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.effect-lbl {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ─── STEPS ─── */

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps li {
  counter-increment: steps;
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px 20px 80px;
  position: relative;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--panel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.steps li strong { color: var(--text); }

/* ─── CTA ─── */

.cta-block {
  margin-top: 40px;
  text-align: center;
}

.btn-cta {
  display: inline-block;
  padding: 16px 36px;
  background: var(--primary);
  color: var(--panel);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-warm);
}

.btn-cta:hover {
  background: var(--primary-dark);
  color: var(--panel);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 115, 85, 0.25);
}

.btn-cta-large {
  font-size: 18px;
  padding: 20px 48px;
}

.btn-cta-secondary {
  background: var(--panel-elevated);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.btn-cta-secondary:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

/* ─── FINAL SLIDE ─── */

.slide-final {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
}

.final-quote {
  font-size: 24px;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
  max-width: 760px;
  margin: 32px auto 0;
  padding: 32px;
  background: var(--panel-elevated);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  text-align: left;
}

.final-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 15px;
  color: var(--text-2);
  font-weight: 600;
}

.final-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.final-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.final-info-col h4 {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.final-info-col p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

.final-footer {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-3);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .lead { font-size: 17px; }

  .layers,
  .effects-grid,
  .marketplace-features,
  .advantages-grid,
  .pilot-pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .modules-grid,
  .tariffs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pilot-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .layer-featured,
  .tariff-popular {
    transform: none;
  }
}

@media (max-width: 720px) {
  /* На mobile отключаем scroll-snap — он мешает на тач-устройствах
     при длинном контенте слайдов. Слайды растут под содержимое. */
  html { scroll-snap-type: none; }

  .top-nav {
    padding: 0 16px;
    height: 48px;
  }
  .top-nav .logo span { display: none; }
  .link-back, .link-pdf { padding: 6px 10px; font-size: 11px; }

  /* Dots на mobile прячем — обычный скролл естественнее */
  .dots { display: none; }

  .slide {
    padding: 56px 20px;
    min-height: auto;            /* контент сам определяет высоту */
    scroll-snap-align: none;
    align-items: flex-start;     /* контент сверху, не центр */
  }
  main { padding-top: 48px; }

  h1 { font-size: 36px; }
  .h1-sub { font-size: 0.5em; margin-top: 12px; }
  h2 { font-size: 26px; }
  .lead { font-size: 15px; }

  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .stat-num { font-size: 24px; }

  .problem-grid,
  .layers,
  .modules-grid,
  .tariffs-grid,
  .advantages-grid,
  .marketplace-features,
  .effects-grid,
  .pilot-stages,
  .pilot-pricing,
  .final-info {
    grid-template-columns: 1fr;
  }

  .comparison-table table { font-size: 12px; }
  .comparison-table th,
  .comparison-table td { padding: 10px 12px; }

  .final-quote { font-size: 17px; padding: 24px; }
  .final-cta .btn-cta { width: 100%; }
}

/* ─── ENTRANCE ANIMATIONS ───
   КРИТИЧНО: используем @keyframes а не initial opacity:0 — если JS observer
   не успел сработать, контент остаётся видимым (graceful degradation),
   а не залипает невидимым. Анимация это enhancement, не blocker. */

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .slide.in-view > .container > * {
    animation: slideIn 0.6s ease-out backwards;
  }
  .slide.in-view > .container > *:nth-child(1) { animation-delay: 0.05s; }
  .slide.in-view > .container > *:nth-child(2) { animation-delay: 0.15s; }
  .slide.in-view > .container > *:nth-child(3) { animation-delay: 0.25s; }
  .slide.in-view > .container > *:nth-child(4) { animation-delay: 0.35s; }
  .slide.in-view > .container > *:nth-child(5) { animation-delay: 0.45s; }
}
