/* Quiz Flow - статический маркетинг. Тёмная тема продукта: neutral-950 фон,
   оранжевый #f97316 как committed-акцент (CTA, отметки критериев). Inter -
   как в приложении. Без JS, вся отрисовка мгновенная. */

:root {
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --border: #2a2a2a;
  --ink: #fafafa;
  --muted: #a8a8a8;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-ink: #431407;
  --good: #4ade80;
  --radius: 12px;
  --content: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}


h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ── Шапка ── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
/* Дропдаун "Для кого" вместо россыпи ссылок: details/summary (без JS-фреймворков,
   ссылки в HTML - индексируются), закрытие по клику мимо - 3 строки JS внизу
   страницы. Помещается и на мобильной шапке. */
.nav-menu { margin-left: auto; }
details.menu { position: relative; }
details.menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  color: var(--muted); font-weight: 500; font-size: 0.925rem;
  padding: 9px 14px; border: 1px solid transparent; border-radius: 10px;
  transition: color 0.15s ease-out, background-color 0.15s ease-out;
}
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary:hover { color: var(--ink); }
details.menu[open] summary { color: var(--ink); background: var(--surface); border-color: var(--border); }
details.menu summary svg { transition: transform 0.18s ease-out; }
details.menu[open] summary svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px; display: grid; z-index: 30;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: menu-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.menu-panel a:hover { background: var(--surface-2); text-decoration: none; }
.menu-panel a strong { display: block; font-size: 0.925rem; }
.menu-panel a span { color: var(--muted); font-size: 0.8rem; }
.menu-panel a.active { background: var(--surface-2); }
.menu-panel a.active strong { color: var(--accent-hover); }
.header-cta { margin-left: 8px; }

/* ── Кнопки ── */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.975rem; line-height: 1.2;
  transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #1a0a00; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: #3f3f3f; background: var(--surface); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

/* ── Герой ── */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 80px); position: relative; }
/* Точечная сетка ТОЛЬКО на первом экране: паттерн из radial-gradient,
   растворяется к краям радиальной маской. Под контентом, событий не ловит. */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.13) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 42%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 42%, #000 25%, transparent 72%);
}
.hero .wrap { position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-sub { color: var(--muted); font-size: 1.125rem; margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { color: var(--muted); font-size: 0.875rem; margin-top: 14px; }
.hero-note strong { color: var(--ink); font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ── Мок карточки проверки (имидж продукта) ── */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; font-size: 0.875rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.mock-q { color: var(--muted); margin: 0 0 10px; font-size: 0.8rem; }
.mock-answer {
  background: var(--surface-2); border-radius: 8px; padding: 12px 14px;
  color: #d6d6d6; margin-bottom: 16px; line-height: 1.55;
}
.mock-answer mark {
  background: rgba(249, 115, 22, 0.22); color: #ffd6b0;
  border-radius: 3px; padding: 0 2px;
}
.crit { padding: 10px 0; border-top: 1px solid var(--border); }
.crit-head { display: flex; align-items: baseline; gap: 10px; }
.crit-name { font-weight: 600; }
.crit-score { margin-left: auto; font-weight: 700; color: var(--accent-hover); white-space: nowrap; }
.crit-why { color: var(--muted); margin: 4px 0 0; font-size: 0.8rem; }
.mock-verdict {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px;
}
.mock-total { font-weight: 700; font-size: 1rem; }
.mock-actions { margin-left: auto; display: flex; gap: 8px; }
.chip {
  border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 0.8rem;
}
.chip-confirm { background: var(--accent); color: #1a0a00; }
.chip-edit { border: 1px solid var(--border); color: var(--muted); }

/* ── Секции ── */
.section { padding: clamp(40px, 7vw, 88px) 0; }
.section-line { border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Шаги - настоящая последовательность, вертикальный поток с линией */
.steps { display: grid; gap: 0; max-width: 720px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; position: relative; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: 21px; top: 44px; bottom: 0;
  width: 2px; background: var(--border);
}
.step:last-child::before { display: none; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 700; color: var(--accent-hover);
}
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* Чередующиеся ряды достоинств */
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
}
.row + .row { border-top: 1px solid var(--border); }
.row:nth-child(even) .row-visual { order: -1; }
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-visual { order: 0; }
}
.row h3 { font-size: 1.35rem; }
.row p { color: var(--muted); margin: 0; }
.row-visual {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; font-size: 0.85rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  color: #d6d6d6; background: var(--surface-2);
}
.tag-list li.tag-open { border-color: rgba(249, 115, 22, 0.5); color: #ffd6b0; }

/* Предметы */
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.subject {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; color: var(--ink);
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.subject:hover { text-decoration: none; border-color: var(--accent); background: var(--surface-2); }
.subject strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.subject span { color: var(--muted); font-size: 0.875rem; }

/* FAQ */
.faq { width: 100%; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent-hover); font-size: 1.3rem; font-weight: 500;
}
.faq details[open] summary::after { content: '-'; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA-полоса: оранжевый drench */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .wrap {
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; gap: 12px; justify-items: start;
}
.cta-band h2 { color: #1a0a00; margin: 0; }
.cta-band p { color: #4d2100; margin: 0 0 10px; font-size: 1.05rem; }
.cta-band .btn { background: #1a0a00; color: #ffedd5; }
.cta-band .btn:hover { background: #2d1200; }

/* Подвал */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-footer nav a { color: var(--muted); font-size: 0.85rem; }
.site-footer nav a:hover { color: var(--ink); }

/* Таблица критериев на предметных страницах */
.crit-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.crit-table th, .crit-table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--border); }
.crit-table th { color: var(--muted); font-weight: 500; }
.crit-table td:last-child { color: var(--muted); }
.crit-table strong { color: var(--accent-hover); }
