/* ============================================================
   PM Quest — лендинг. Фирменный стиль игры, шрифт Nunito
   ============================================================ */
:root {
  --primary: #7c5cfc;  --primary-d: #6344e6;
  --teal: #12c2b0;   --teal-d: #0da396;
  --amber: #ffc233; --amber-d: #eba417;
  --violet: #e861c8; --violet-d: #cd45ab;
  --coral: #ff8a5c; --coral-d: #e96f3f;
  --danger: #ff5d5d;    --danger-d: #e64343;
  --green: #2fbf71;
  --ink: #3c3c3c;
  --muted: #6b7280;
  --bg: #f8faff;
  --card: #ffffff;
  --line: #e5eaf1;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(30, 60, 90, 0.10);
  --shadow-sm: 0 6px 18px rgba(30, 60, 90, 0.08);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- SVG-иконки ---------- */
.ic {
  display: inline-block; width: 1.05em; height: 1.05em;
  vertical-align: -0.15em; flex: none;
}
.ic-primary { color: var(--primary); }
.ic-teal    { color: var(--teal-d); }
.ic-amber   { color: var(--amber-d); }
.ic-coral   { color: var(--coral-d); }
.ic-violet  { color: var(--violet); }
.ic-danger  { color: var(--danger); }
.ic-green   { color: var(--green); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ---------- Кнопки (объёмные, с тенью-порогом) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: 17px;
  border: none; border-radius: 16px; padding: 14px 28px;
  cursor: pointer; text-decoration: none; color: #fff;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  user-select: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); }
.btn-primary  { background: var(--primary);  box-shadow: 0 5px 0 var(--primary-d); }
.btn-primary:active  { box-shadow: 0 1px 0 var(--primary-d); }
.btn-teal   { background: var(--teal);   box-shadow: 0 5px 0 var(--teal-d); }
.btn-teal:active   { box-shadow: 0 1px 0 var(--teal-d); }
.btn-white  { background: #fff; color: var(--primary-d); box-shadow: 0 5px 0 rgba(0,0,0,0.18); }
.btn-white:active  { box-shadow: 0 1px 0 rgba(0,0,0,0.18); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line);
}
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn-lg { padding: 17px 34px; font-size: 19px; border-radius: 18px; }
.btn-sm { padding: 10px 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(30, 60, 90, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 900; letter-spacing: 0.5px;
  box-shadow: 0 3px 0 var(--primary-d);
}
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 800; font-size: 15.5px; color: var(--muted);
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--ink); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #f4f1ff 0%, #e6faf3 55%, var(--bg) 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; will-change: transform; }
.hero-blob-1 { width: 420px; height: 420px; background: #dcd2ff; top: -140px; left: -120px; }
.hero-blob-2 { width: 360px; height: 360px; background: #c7f3e7; top: 40px; right: -100px; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--line);
  border-radius: 999px; padding: 8px 18px;
  font-weight: 800; font-size: 14.5px; color: var(--ink);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge .ic { width: 19px; height: 19px; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900; line-height: 1.12; letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.accent-primary { color: var(--primary); }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust .ic { width: 17px; height: 17px; }

/* Мокап игрового экрана */
.hero-visual { position: relative; }
.game-mockup {
  position: relative; background: #fff; border-radius: 24px;
  border: 2px solid var(--line); box-shadow: var(--shadow);
  padding: 20px; transform: rotate(1.2deg);
}
.mockup-hud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hud-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f5f9; border-radius: 999px; padding: 6px 12px;
  font-size: 13.5px; font-weight: 800; color: var(--ink);
}
.hud-chip .ic { width: 15px; height: 15px; }
.mockup-dialogue { background: #f7f9fc; border: 2px solid var(--line); border-radius: 18px; padding: 18px; }
.dialogue-speaker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.speaker-avatar {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  font-weight: 900; color: #fff; font-size: 16px;
}
.speaker-avatar.active { display: inline-flex; }
.speaker-avatar svg { width: 100%; height: 100%; }
.speaker-viktor { background: var(--teal); }
.speaker-boris { background: #ce82ff; }
.speaker-polina { background: #f56fa1; }
.speaker-incident { background: var(--coral); }
.speaker-incident svg { width: 62%; height: 62%; }
.speaker-name { font-weight: 900; font-size: 15.5px; }
.dialogue-text { font-size: 15.5px; font-weight: 700; min-height: 52px; margin-bottom: 14px; transition: opacity 0.3s; }
.dialogue-options { display: grid; gap: 8px; }
.mock-option {
  text-align: left; font-family: var(--font); font-weight: 800; font-size: 14px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 3px 0 var(--line); cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.mock-option.pulse {
  border-color: var(--primary); box-shadow: 0 3px 0 var(--primary-d);
  background: #f1fbe6; transform: translateX(4px);
}
.grade-badge {
  position: absolute; top: -22px; right: -18px;
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber); color: #7a5b00;
  font-size: 30px; font-weight: 900;
  box-shadow: 0 5px 0 var(--amber-d), var(--shadow-sm);
  transform: rotate(8deg);
}
.float-star { position: absolute; font-size: 30px; animation: floaty 4s ease-in-out infinite; pointer-events: none; }
.float-star svg { width: 1em; height: 1em; }
.float-star-2 { bottom: -26px; right: 12%; animation-delay: 1.3s; font-size: 30px; color: var(--amber-d); }
.float-star-3 { top: 38%; left: -34px; animation-delay: 2.2s; font-size: 26px; color: var(--teal-d); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Три звезды «максимальный рейтинг» над мокапом */
.float-rating {
  position: absolute; top: -42px; left: 6%;
  display: flex; align-items: flex-end; gap: 6px;
  pointer-events: none; z-index: 2;
}
.rate-star {
  display: block; color: var(--amber);
  animation: star-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rate-star svg {
  display: block; width: 24px; height: 24px;
  filter: drop-shadow(0 5px 10px rgba(235, 164, 23, 0.45));
  animation: floaty 4.5s ease-in-out infinite;
}
.rate-star:nth-child(2) { animation-delay: 0.18s; }
.rate-star:nth-child(2) svg { width: 30px; height: 30px; animation-delay: 0.7s; }
.rate-star:nth-child(3) { animation-delay: 0.36s; }
.rate-star:nth-child(3) svg { animation-delay: 1.4s; }
@keyframes star-pop {
  from { transform: scale(0) rotate(-40deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Цифры */
.stats-strip {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 20px; margin-top: 56px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; }
.stat:nth-child(1) .stat-num { color: var(--primary); }
.stat:nth-child(2) .stat-num { color: var(--teal); }
.stat:nth-child(3) .stat-num { color: var(--coral); }
.stat:nth-child(4) .stat-num { color: var(--violet); }
.stat span { font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 92px 0; position: relative; }
.section > .container { position: relative; z-index: 1; }
.section-alt { background: #fff; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

/* Декоративные фигуры с параллаксом */
.deco {
  position: absolute; pointer-events: none; opacity: 0.5; z-index: 0;
  will-change: transform;
}
.deco-star     { width: 34px; height: 34px; color: var(--amber); top: 84px; right: 5%; }
.deco-circle   { width: 26px; height: 26px; color: var(--teal); bottom: 70px; left: 4%; }
.deco-squiggle { width: 64px; height: 22px; color: var(--coral); top: 92px; left: 5%; }
.deco-plus     { width: 26px; height: 26px; color: var(--violet); top: 100px; right: 6%; }
.deco-tri      { width: 26px; height: 26px; color: var(--primary); top: 92px; left: 6%; }
.deco-star-b   { width: 30px; height: 30px; color: var(--coral); top: auto; bottom: 64px; right: 7%; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-tag {
  display: inline-block; border-radius: 999px; padding: 7px 18px;
  font-size: 14px; font-weight: 900; margin-bottom: 16px; color: #fff;
}
.tag-teal   { background: var(--teal); box-shadow: 0 3px 0 var(--teal-d); }
.tag-primary  { background: var(--primary); box-shadow: 0 3px 0 var(--primary-d); }
.tag-violet { background: var(--violet); box-shadow: 0 3px 0 var(--violet-d); }
.tag-coral { background: var(--coral); box-shadow: 0 3px 0 var(--coral-d); }
.tag-amber { background: var(--amber); color: #7a5b00; box-shadow: 0 3px 0 var(--amber-d); }
.tag-danger    { background: var(--danger); box-shadow: 0 3px 0 var(--danger-d); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 14px; }
.sec-sub { font-size: 17.5px; color: var(--muted); }

/* Карточки «Что в игре» */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px;
}
.card-icon .ic { width: 28px; height: 28px; }
.icon-primary  { background: #ece8ff; }
.icon-blue   { background: #d8f6f0; }
.icon-yellow { background: #fff2d7; }
.icon-purple { background: #fce9f8; }
.icon-orange { background: #ffe9e0; }
.icon-red    { background: #ffe4e4; }
.card h3 { font-size: 19.5px; font-weight: 900; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

/* Зоны офиса */
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zone-card {
  background: var(--bg); border: 2px solid var(--line); border-radius: 18px;
  padding: 24px 20px; text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.zone-card:hover { transform: translateY(-4px); border-color: var(--primary); background: #fff; }
.zone-art { display: block; margin: 0 0 16px; border-radius: 12px; overflow: hidden; }
.zone-art svg { display: block; width: 100%; height: auto; }
.zone-card h3 { font-size: 16.5px; font-weight: 900; margin-bottom: 6px; }
.zone-card p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.zone-final { background: linear-gradient(160deg, #fff8e1, #fff); border-color: var(--amber); }
.zone-final:hover { border-color: var(--coral); }
/* Переключатель курсов в секции «Офис» */
.course-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; max-width: 520px; margin: 0 auto 34px; padding: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.course-btn { border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--muted); padding: 10px 14px; border-radius: 999px; text-align: center; transition: background 0.28s ease, color 0.28s ease; }
.course-btn:hover { color: var(--ink); }
.course-btn.active { background: var(--primary); color: #fff; }
.course-panel { display: none; }
.course-panel.active { display: block; animation: coursePanelIn 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
@keyframes coursePanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Шаги */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; padding: 0 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 16px;
}
.step-primary  { background: var(--primary);  box-shadow: 0 4px 0 var(--primary-d); }
.step-teal   { background: var(--teal);   box-shadow: 0 4px 0 var(--teal-d); }
.step-coral { background: var(--coral); box-shadow: 0 4px 0 var(--coral-d); }
.step-violet { background: var(--violet); box-shadow: 0 4px 0 var(--violet-d); }
.step h3 { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Мини-игры */
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.mini-card {
  position: relative;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.mini-card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.mini-top {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 112px; overflow: hidden;
}
.mini-top .ic { position: relative; z-index: 1; width: 48px; height: 48px; color: #fff; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.14)); }
.mini-deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.22); pointer-events: none; }
.mini-deco-a { width: 96px; height: 96px; top: -38px; left: -28px; }
.mini-deco-b { width: 60px; height: 60px; bottom: -24px; right: -16px; background: rgba(255, 255, 255, 0.16); }
.mini-primary  { background: linear-gradient(160deg, #a793ff, var(--primary)); }
.mini-amber { background: linear-gradient(160deg, #ffd466, var(--amber)); }
.mini-danger    { background: linear-gradient(160deg, #ff9a8a, var(--danger)); }
.mini-teal   { background: linear-gradient(160deg, #4fd8c6, var(--teal)); }
.mini-orange { background: linear-gradient(160deg, #ffb25e, #ff9600); }
/* цветовые темы карточек: мягкий тон фона + цветная рамка */
.mini-c-primary { border-color: #d8ceff; background: linear-gradient(180deg, #f7f4ff 0%, #fff 42%); }
.mini-c-amber   { border-color: #ffe4a6; background: linear-gradient(180deg, #fffaec 0%, #fff 42%); }
.mini-c-danger  { border-color: #ffc7c7; background: linear-gradient(180deg, #fff5f5 0%, #fff 42%); }
.mini-c-teal    { border-color: #aeece2; background: linear-gradient(180deg, #effcfa 0%, #fff 42%); }
.mini-c-orange  { border-color: #ffd9a6; background: linear-gradient(180deg, #fff8ee 0%, #fff 42%); }
/* чип навыка */
.mini-chip {
  display: inline-block; margin: 16px 20px 0; padding: 4px 12px;
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.6px;
  border-radius: 999px;
}
.mini-c-primary .mini-chip { background: #ece5ff; color: var(--primary-d); }
.mini-c-amber .mini-chip   { background: #fff2d7; color: #7a5b00; }
.mini-c-danger .mini-chip  { background: #ffe3e3; color: #c53030; }
.mini-c-teal .mini-chip    { background: #d8f6f0; color: var(--teal-d); }
.mini-c-orange .mini-chip  { background: #ffeeda; color: #b45309; }
.mini-card h3 { font-size: 18.5px; font-weight: 900; margin: 10px 20px 6px; }
.mini-card p { font-size: 14px; color: var(--muted); padding: 0 20px 22px; }
/* призыв сыграть под сеткой */
.mini-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  margin-top: 34px; padding: 30px 34px;
  border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, var(--primary) 0%, var(--violet) 52%, var(--coral) 100%);
  box-shadow: var(--shadow);
}
.mini-cta::before, .mini-cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.14); pointer-events: none; }
.mini-cta::before { width: 160px; height: 160px; top: -70px; right: 18%; }
.mini-cta::after { width: 90px; height: 90px; bottom: -40px; left: 6%; background: rgba(255, 255, 255, 0.1); }
.mini-cta-text { position: relative; z-index: 1; }
.mini-cta-text h3 { font-size: 21px; font-weight: 900; margin-bottom: 4px; }
.mini-cta-text p { font-size: 14.5px; opacity: 0.92; }
.mini-cta .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* Персонажи */
.chars-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.char-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 14px 18px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.char-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--shadow); }
.char-avatar {
  display: block; width: 104px; height: 104px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.char-avatar svg { width: 100%; height: 100%; }
.char-bg-teal   { background: #d8f6f0; }
.char-bg-violet { background: #fce9f8; }
.char-bg-amber { background: #fff2d7; }
.char-bg-primary  { background: #ece8ff; }
.char-bg-coral { background: #ffe9e0; }
.char-bg-danger    { background: #ffe4e4; }
.char-card b { display: block; font-size: 16.5px; font-weight: 900; }
.char-card span { font-size: 13px; color: var(--muted); font-weight: 700; }

/* Тарифы */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 26px; justify-content: center; align-items: stretch;
}
.price-card {
  position: relative; background: var(--card);
  border: 2px solid var(--line); border-radius: 24px;
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-card h3 { font-size: 21px; font-weight: 900; margin-bottom: 10px; }
.price { font-size: 46px; font-weight: 900; line-height: 1.1; }
.price-note { font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 20px; }
.price-list { list-style: none; margin-bottom: 26px; flex: 1; }
.price-list li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 15.5px; font-weight: 700; }
.price-list .ic { width: 18px; height: 18px; }
.price-hot {
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(124, 92, 252, 0.22);
  transform: scale(1.02);
}
.price-hot .price { color: var(--primary); }
.price-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #7a5b00;
  border-radius: 999px; padding: 5px 18px;
  font-size: 13.5px; font-weight: 900;
  box-shadow: 0 3px 0 var(--amber-d);
  white-space: nowrap;
}
.pricing-foot { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 30px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  padding: 0 22px; transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--violet); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none; cursor: pointer;
  font-weight: 800; font-size: 16.5px; padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.25s; }
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-item p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Финальный CTA */
.cta-final {
  background: linear-gradient(135deg, #8d6bff 0%, #5a3ee8 100%);
  padding: 84px 0; text-align: center; color: #fff;
}
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; margin-bottom: 12px; }
.cta-inner p { font-size: 18px; opacity: 0.92; margin-bottom: 30px; }

/* Футер */
.site-footer { background: #fff; border-top: 2px solid var(--line); padding-top: 44px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { font-size: 17px; font-weight: 900; display: block; line-height: 1.2; }
.footer-brand p { font-size: 13.5px; color: var(--muted); }
.footer-nav {
  order: 3; flex-basis: 100%;
  display: flex; gap: 12px 26px; flex-wrap: wrap; justify-content: center;
}
.footer-nav a { text-decoration: none; font-weight: 800; font-size: 14.5px; color: var(--muted); transition: color 0.15s; }
.footer-nav a:hover { color: var(--ink); }
.footer-nav a[target="_blank"] { color: var(--teal); }
.footer-contact a { font-weight: 800; font-size: 14.5px; color: var(--teal); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 16px 0;
  font-size: 13.5px; color: var(--muted);
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: var(--muted); font-weight: 800; text-decoration: none; transition: color 0.15s; }
.footer-bottom a:hover { color: var(--primary-d); text-decoration: underline; }

/* ---------- Баннер cookie ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-card {
  pointer-events: auto;
  width: 100%; max-width: 780px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 22px;
  transform: translateY(calc(100% + 32px)); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.show .cookie-card { transform: none; opacity: 1; }
.cookie-card p { flex: 1 1 340px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie-card a { color: var(--primary-d); font-weight: 800; }
.cookie-card a:hover { color: var(--primary); text-decoration: underline; }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-star, .rate-star svg { animation: none; }
  .rate-star { animation: none; }
  .deco, .hero-blob { transform: none !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .main-nav { gap: 18px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .chars-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 2px solid var(--line);
    box-shadow: 0 16px 30px rgba(30, 60, 90, 0.12);
    padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; }
  .burger { display: block; margin-left: auto; }
  .header-cta { margin-left: auto; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 44px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .cards-grid, .zones-grid, .mini-grid { grid-template-columns: 1fr; }
  .mini-cta { flex-direction: column; text-align: center; padding: 26px 22px; }
  .steps-grid { grid-template-columns: 1fr; }
  .chars-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-hot { transform: none; }
  .course-btn { font-size: 13.5px; padding: 9px 14px; }
  .hero-actions .btn { width: 100%; }
  .footer-inner, .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .cookie-card { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .cookie-card p { flex: 0 0 auto; }
  .cookie-card .btn { width: 100%; }
  .footer-nav { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .footer-contact { order: 3; }
  .grade-badge { width: 54px; height: 54px; font-size: 24px; top: -16px; right: -8px; }
  .deco { display: none; }
}

/* ---------- Дорожная карта ---------- */
.roadmap-progress { display: flex; align-items: center; gap: 18px; max-width: 620px; margin: 0 auto 54px; }
.rm-track { flex: 1; height: 20px; background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.rm-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 10px; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; }
.roadmap-progress.visible .rm-fill { width: 50%; }
.rm-progress-label { font-size: 14px; font-weight: 900; color: var(--ink); white-space: nowrap; }

.roadmap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.rm-line { position: absolute; z-index: 0; top: 27px; left: 12.5%; right: 12.5%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--amber) 33.3% 66.6%, var(--line) 66.6% 100%); overflow: hidden; }
.rm-line-fill { display: block; height: 100%; width: 33.3%; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--teal)); }
.rm-point { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rm-node {
  z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 18px;
  font-size: 22px; font-weight: 900; background: #fff; border: 3px solid var(--line); color: #9aa3b2;
}
.rm-node .ic { width: 26px; height: 26px; }
.rm-done { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 4px 0 rgba(47, 191, 113, 0.35); }
.rm-next { border-color: var(--amber); color: var(--amber-d); animation: rm-pulse 2.4s ease-in-out infinite; }
@keyframes rm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(255, 194, 51, 0); }
}
.rm-card { width: 100%; flex: 1; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 22px 20px; }
.rm-art { margin: -22px -20px 16px; border-radius: 15px 15px 0 0; overflow: hidden; border-bottom: 2px solid rgba(15, 23, 42, 0.07); background: #fff; }
.rm-art svg { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.rm-card:hover .rm-art svg { transform: scale(1.05); }
.rm-p-done .rm-card { border-color: #bfe6a3; background: #fbfff6; }
.rm-p-next .rm-card { border-color: #ffe08a; background: #fffdf4; }
.rm-card h3 { font-size: 17px; font-weight: 900; margin: 12px 0 8px; }
.rm-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.rm-status { display: inline-block; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.6px; padding: 5px 12px; border-radius: 999px; }
.rm-status-done { background: #d9f3e3; color: #1d8a4e; }
.rm-status-next { background: #fff2d7; color: #7a5b00; }
.rm-status-plan { background: #eef0f3; color: #6b7280; }

@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; gap: 18px; }
  .rm-line { display: none; }
  .rm-point:not(:last-child)::before {
    content: ""; position: absolute; z-index: 0;
    left: 27px; top: 30px; bottom: -18px; width: 6px;
    border-radius: 3px; background: var(--line);
  }
  .rm-point.rm-p-done:not(:last-child)::before { background: linear-gradient(180deg, var(--green), var(--teal)); }
  .rm-point:has(+ .rm-point.rm-p-next)::before { background: var(--amber); }
  .rm-point { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; }
  .rm-status { text-align: center; }
  .rm-node { margin-bottom: 0; flex-shrink: 0; }
  .roadmap-progress { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .roadmap-progress { flex-direction: column; gap: 10px; align-items: stretch; }
  .rm-track { flex: none; height: 20px; }
  .rm-progress-label { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-next { animation: none; }
  .rm-fill { transition: none; }
  .rm-art svg { transition: none; }
}