/* style.css — Aura Visual Grammar для витрин 5-доменной сетки.
   Токены: ТЗ-MASTER-LANDING-STANDARD-1 §2.2 (Obsidian/Ink/Paper/Cream/Line/Gold/Gold Dark/Gray).
   Сетка: 12 колонок, контейнер 1200px, ритм 8px, φ-зоны hero 61.8/38.2.
   Контрасты WCAG 2.2 AA (расчёт относительной яркости, см. отчёт приёмки):
   Paper on Obsidian 18.3 · Ink on Paper 16.6 · Gold on Obsidian 8.0 · Ink on Gold 8.0 · Gray on Paper 5.2. */

:root {
  --obsidian: #0D0D0B;
  --ink: #1A1914;
  --paper: #FBF8F1;
  --cream: #F4EDDE;
  --line: #E4DCC8;
  --gold: #C0A356;
  --gold-dark: #8F7740; /* только крупный текст/декор на светлом — 4.06:1, AA-large */
  --gray: #6E695B;
  --font-display-dark: 'Cinzel', serif;
  --font-display-light: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --wrap: 1200px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 16px; line-height: 1.15; font-weight: 600; }
h1 { font-size: 44px; }
h2 { font-size: 34px; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
img { max-width: 100%; height: auto; display: block; }

/* Фокус: золотой ring 2px (стандарт §2.1) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--obsidian);
  padding: 12px 24px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Сцены ─────────────────────────────────────────────── */
.scene { padding: 96px 0; }
.scene--dark { background: var(--obsidian); color: var(--paper); }
.scene--dark .kicker { color: var(--gold); }
.scene--light:nth-of-type(even) { background: var(--cream); }
.scene--light { background: var(--paper); color: var(--ink); }
.scene__narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.scene--s09 { padding: 64px 0 32px; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.lead { font-size: 21px; line-height: 1.5; }
.section-intro { font-size: 18px; max-width: 720px; }
.note, .disclaimer { font-size: 14px; color: var(--gray); }
.scene--dark .note { color: var(--line); }

/* ── Header ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192, 163, 86, 0.25);
}
.topbar__grid {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display-dark);
  font-size: 18px;
  letter-spacing: 0.04em;
  min-height: 44px;
}
.topbar__brand svg { width: 32px; height: 32px; }
.topbar__nav { display: flex; gap: 8px; margin-left: auto; }
.topbar__nav a {
  color: var(--line);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.topbar__nav a:hover { color: var(--gold); }

/* ── CTA ───────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--obsidian);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: background-color 120ms ease;
}
.cta:hover { background: var(--paper); border-color: var(--gold-dark); }
.cta--hero { font-size: 18px; padding: 16px 40px; }
.cta--sm { min-height: 44px; padding: 8px 20px; font-size: 14px; }

/* ── Hero (φ-зоны: 61.8% смысл / 38.2% визуал) ─────────── */
.hero { padding: 64px 0 96px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display-dark);
  color: var(--paper);
}
.hero .lead { color: var(--line); }
.hero__points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hero__points li {
  padding-left: 28px;
  position: relative;
  color: var(--line);
}
.hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.hero__actions { margin-top: 32px; }
.hero__visual img {
  border-radius: var(--radius);
  border: 1px solid rgba(192, 163, 86, 0.35);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 5;
}

/* ── Светлые сцены: заголовки Cormorant ────────────────── */
.scene--light h2 { font-family: var(--font-display-light); font-size: 44px; }
.scene--light h3 { font-family: var(--font-body); font-size: 21px; }

/* ── Карточки выгод (сцена 03) ─────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.scene--s03 .card { background: var(--paper); }
.card__icon { font-size: 27px; display: block; margin-bottom: 16px; }

/* ── Доверие: цифры Gold на Obsidian (сцена 04) ────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.stat__value {
  display: block;
  font-family: var(--font-display-dark);
  font-size: 55px;
  color: var(--gold);
  line-height: 1;
}
.stat__label { font-size: 14px; color: var(--line); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { padding-left: 28px; position: relative; color: var(--line); }
.facts li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── Шаги (сцена 05) ───────────────────────────────────── */
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--obsidian);
  color: var(--gold);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 16px;
}

/* ── Отзывы (сцена 06) ─────────────────────────────────── */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.review {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.review__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
}
.review__author { font-weight: 700; }
.review__rating { color: var(--gold-dark); font-weight: 700; }

/* ── Форматы/продукты и блоки «методика»/«о центре» (динамика из хаба) ── */
.formats { margin-top: 64px; }
.formats__title {
  font-size: 21px;
  font-family: var(--font-body);
  margin-bottom: 24px;
}
.scene--dark .formats__title { color: var(--paper); }
.format__price { font-weight: 700; color: var(--gold-dark); }
.scene--dark .format__price { color: var(--gold); }
.format__link { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.format__link:hover { text-decoration: underline; }
.scene--dark .card { background: var(--ink); border-color: rgba(228, 220, 200, 0.25); color: var(--paper); }
.scene--dark .card p { color: var(--line); }

/* ── FAQ (сцена 07) ─────────────────────────────────────── */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq__item {
  background: var(--ink);
  border: 1px solid rgba(192, 163, 86, 0.35);
  border-radius: var(--radius);
  padding: 0 24px;
}
.faq__item summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 16px 0;
  font-weight: 600;
  font-size: 18px;
  color: var(--paper);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  margin-left: auto;
  color: var(--gold);
  font-size: 27px;
  line-height: 1;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { color: var(--line); padding-bottom: 20px; margin-bottom: 0; }

/* ── Финал (сцена 08) ──────────────────────────────────── */
.final { text-align: center; }
.final h2 { font-family: var(--font-display-dark); color: var(--paper); }
.final .lead { color: var(--line); }
.guarantee { margin-top: 24px; font-size: 14px; color: var(--line); }

/* ── Титры (сцена 09) ──────────────────────────────────── */
.footer { background: var(--ink); color: var(--line); font-size: 14px; }
.footer a { color: var(--gold); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer a:hover { text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-bottom: 32px;
}
.footer__brand { font-family: var(--font-display-dark); font-size: 21px; color: var(--paper); }
.footer__nav { display: flex; flex-direction: column; gap: 4px; }
.copyright { font-size: 12px; color: var(--gray); }

/* ── Детальная страница / скоро / 404 ──────────────────── */
.detail h1 { font-family: var(--font-display-light); font-size: 55px; }
.soon { display: flex; align-items: center; min-height: 100vh; }
.soon h1 { font-family: var(--font-display-light); font-size: 44px; }

/* ── Mobile-first адаптив (390px — эталон) ─────────────── */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .cards, .reviews { grid-template-columns: 1fr 1fr; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .topbar__nav { display: none; }
  h1 { font-size: 34px; }
  .scene--light h2 { font-size: 34px; }
  .scene { padding: 64px 0; }
}
@media (max-width: 600px) {
  .cards, .reviews, .stats, .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta--hero { width: 100%; }
}
