@import url('tokens.css');

/* ─── База ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ash-200);
  font: 400 17px/1.62 'Onest', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Unbounded', 'Onest', system-ui, sans-serif;
  color: var(--ash-050);
  font-weight: 300;              /* light крупно = дорого, bold = дёшево */
  letter-spacing: -0.045em;      /* Unbounded широкий, поджимаем */
  line-height: 1.1;
  margin: 0;
}
h3 { letter-spacing: -0.035em; font-weight: 400; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Золотой градиентный текст — только на ключевых словах */
.gold {
  display: inline-block;      /* иначе background-clip срезает хвосты у «у», «р» */
  padding-bottom: .06em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font: 500 10px/1 'Onest', system-ui, sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}

.lead { color: var(--ash-400); font-size: 18px; max-width: 62ch; }

/* ─── Кнопки ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  font: 500 15px/1 'Onest', system-ui, sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(150deg, var(--gold-300) 0%, var(--bronze-500) 52%, #8A5A22 100%);
  color: #140F05;
  box-shadow:
    0 1px 0 rgba(255,255,255,.45) inset,
    0 -1px 0 rgba(0,0,0,.25) inset,
    0 10px 30px -16px rgba(214,166,78,.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -12px rgba(214,166,78,.55);
}

.btn-ghost {
  border-color: rgba(255,255,255,.11);
  color: var(--ash-200);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.btn-ghost:hover {
  border-color: rgba(242,214,138,.4);
  color: var(--ash-050);
  background: rgba(255,255,255,.085);
  transform: translateY(-2px);
}

.btn svg { width: 17px; height: 17px; }


/* ─── Стекло ───────────────────────────────────────────────────────────
   Материал только для интерактивных панелей: шапка, карточки, модалка.
   Три слоя: размытие фона, градиентная кромка в 1px, блик сверху. */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(158deg, rgba(255,255,255,.075), rgba(255,255,255,.026) 46%, rgba(255,255,255,.045));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 -20px 40px -30px rgba(0,0,0,.9) inset,
    0 26px 60px -34px rgba(0,0,0,.95);
}
/* кромка: золото ловится вверху слева, огонь — внизу справа */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(148deg,
    rgba(242,214,138,.42) 0%,
    rgba(255,255,255,.08) 28%,
    rgba(255,255,255,.02) 58%,
    rgba(196,87,26,.30) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
/* блик — узкая полоса света по верхней трети */
.glass::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent);
  pointer-events: none;
  z-index: 1;
}
.glass > * { position: relative; z-index: 3; }

/* ─── Шапка ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 60;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 9px 9px 9px 20px;
  border-radius: 999px;
  transition: background .45s ease, box-shadow .45s ease, backdrop-filter .45s ease;
}
/* до скролла шапка «растворена» — стекло проявляется при прокрутке */
.nav .wrap:not(.on) {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.nav .wrap:not(.on)::before,
.nav .wrap:not(.on)::after { opacity: 0; }
.nav .wrap::before, .nav .wrap::after { transition: opacity .45s ease; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo svg { width: 34px; height: 34px; }
.logo b {
  font: 300 15px/1 'Unbounded', system-ui, sans-serif;
  color: var(--ash-050);
  letter-spacing: .01em;
}
.logo b span { color: var(--gold-400); }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  color: var(--ash-400);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--gold-300); }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
/* Фон hero — своя картинка (сгенерирована, права наши). */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-phoenix.jpg') center 40% / cover no-repeat;
  opacity: .9;
}


.hero-veil {
  position: absolute;
  inset: 0;
  /* тёмная «подушка» точно под колонкой текста, края картинки остаются яркими */
  background:
    radial-gradient(40% 46% at 50% 52%, rgba(5,5,5,.86) 0%, rgba(5,5,5,.55) 62%, transparent 100%),
    radial-gradient(96% 86% at 50% 46%, transparent 38%, rgba(5,5,5,.55) 78%, var(--ink-950) 100%),
    linear-gradient(180deg, rgba(5,5,5,.6) 0%, transparent 26%, transparent 66%, var(--ink-950) 100%);
}
#embers { position: absolute; inset: 0; pointer-events: none; }

.hero .wrap { position: relative; z-index: 2; text-align: center; }
.hero h1 {
  font-size: clamp(33px, 4.4vw, 58px);
  max-width: 13ch;              /* ch у Unbounded очень широкий */
  line-height: 1.08;
  margin: 0 auto 26px;
  text-shadow: 0 2px 40px rgba(0,0,0,.75);
}
.hero .lead {
  font-size: 18px;
  max-width: 50ch;
  margin: 0 auto 38px;
  text-shadow: 0 2px 22px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.7);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }

.hero-note {
  justify-content: center;
  margin-top: 30px;
  font-size: 13px;
  color: var(--ash-400);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-note i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 12px var(--gold-400);
  flex: none;
}

/* ─── Секции ───────────────────────────────────────────────────────── */
section { padding: 108px 0; position: relative; }
.section-head { max-width: 60ch; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(26px, 3.1vw, 40px); max-width: 17ch; margin-bottom: 20px; }

/* ─── Что умеет ────────────────────────────────────────────────────── */
/* Стеклу нужно что размывать: мягкие пятна света за карточками */
#coach::before, #privacy::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 16% 34%, rgba(196,87,26,.16), transparent 70%),
    radial-gradient(40% 38% at 84% 62%, rgba(214,166,78,.11), transparent 72%),
    radial-gradient(30% 30% at 52% 96%, rgba(122,51,18,.14), transparent 70%);
  /* гасим свечение к краям секции — иначе оно обрывается ровной линией */
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 74%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 74%, transparent 100%);
}
#coach .wrap, #privacy .wrap { position: relative; }

.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.card {
  border-radius: 22px;
  padding: 32px 28px 34px;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease;
}
/* тёплый блик следует за курсором — координаты пишет app.js */
.card > .sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(214,166,78,.16), transparent 68%);
  pointer-events: none;
}
.card:hover > .sheen { opacity: 1; }
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.09) inset,
    0 -20px 40px -30px rgba(0,0,0,.9) inset,
    0 34px 70px -34px rgba(0,0,0,1);
}

.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(214,166,78,.14), rgba(196,87,26,.05));
  box-shadow: 0 0 0 1px rgba(214,166,78,.18) inset, 0 8px 22px -14px rgba(214,166,78,.7);
}
.card .ico svg {
  width: 23px; height: 23px;
  fill: none;
  color: var(--gold-300);
  stroke: var(--gold-300);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 19px; margin-bottom: 11px; line-height: 1.28; }
.card p { margin: 0; font-size: 15px; color: var(--ash-400); line-height: 1.62; }

/* ─── Как это работает ─────────────────────────────────────────────── */
.flow { position: relative; }
.flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/texture-cracks.jpg') center / cover;
  opacity: .16;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.flow .wrap { position: relative; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  border-radius: 22px;
  padding: 34px 28px;
  counter-increment: step;
}
.step .num::before { content: '0' counter(step); }
.step .num {
  display: block;
  font: 200 30px/1 'Unbounded', system-ui, sans-serif;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 15px; color: var(--ash-400); }

/* ─── Метод ────────────────────────────────────────────────────────── */
.method { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: center; }
.method-art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ink-700);
  aspect-ratio: 4 / 5;
}
.method-art img { width: 100%; height: 100%; object-fit: cover; }
.method-art::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-veil);
  opacity: .55;
}
.method ul { list-style: none; padding: 0; margin: 30px 0 0; }
.method li {
  padding: 17px 0 17px 30px;
  border-top: 1px solid var(--ink-700);
  position: relative;
  font-size: 16px;
  color: var(--ash-400);
}
.method li::before {
  content: '';
  position: absolute; left: 4px; top: 26px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 10px rgba(214,166,78,.6);
}
.method li b { color: var(--ash-050); font-weight: 600; }

/* ─── Приватность ──────────────────────────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--ink-700);
  border: 1px solid var(--ink-700);
  border-radius: 16px;
  overflow: hidden;
}
.privacy-grid div { background: var(--ink-900); padding: 30px 26px; }
.privacy-grid h3 { font-size: 19px; margin-bottom: 9px; }
.privacy-grid p { margin: 0; font-size: 14px; color: var(--ash-400); }

/* ─── FAQ ──────────────────────────────────────────────────────────── */
.faq { max-width: 820px; }
details {
  border-top: 1px solid var(--ink-700);
  padding: 6px 0;
}
details:last-of-type { border-bottom: 1px solid var(--ink-700); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font: 300 19px/1.4 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
  color: var(--ash-050);
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  position: absolute; right: 6px; top: 30px;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--gold-400);
  border-bottom: 1.5px solid var(--gold-400);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
details[open] summary::after { transform: rotate(-135deg); }
details p { margin: 0 0 22px; color: var(--ash-400); font-size: 15px; max-width: 68ch; }

/* ─── Финальный CTA ────────────────────────────────────────────────── */
.final {
  text-align: center;
  border-top: 1px solid var(--ink-700);
  background:
    radial-gradient(70% 120% at 50% 100%, rgba(122,51,18,.22), transparent 62%);
}
.final h2 { font-size: clamp(30px, 3.8vw, 50px); max-width: 15ch; margin: 0 auto 20px; }
.final .lead { margin: 0 auto 36px; }
.final .hero-cta { justify-content: center; }

/* ─── Футер ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--ink-700);
  padding: 44px 0 56px;
  font-size: 13px;
  color: var(--ash-400);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a:hover { color: var(--gold-300); }
.age {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--ash-600);
  border-radius: 50%;
  font: 500 10px/1 'Onest', sans-serif;
  color: var(--ash-400);
  flex: none;
}

/* ─── Модалка входа ────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(3,3,3,.82);
  backdrop-filter: blur(8px);
}
.modal[hidden] { display: none; }
.modal-box {
  width: min(430px, 100%);
  border-radius: 26px;
  padding: 38px 34px 34px;
}
.modal-box h3 { font-size: 21px; margin-bottom: 10px; }
.modal-box > p { margin: 0 0 26px; font-size: 14px; color: var(--ash-400); }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font: 500 10px/1 'Onest', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash-400);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--ash-050);
  font: 400 15px/1 'Onest', system-ui, sans-serif;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus {
  outline: none;
  border-color: rgba(242,214,138,.45);
  background: rgba(255,255,255,.07);
}
.modal .btn-gold { width: 100%; justify-content: center; margin-top: 8px; }
.modal-alt { margin: 20px 0 0; font-size: 13px; color: var(--ash-400); text-align: center; }
.modal-alt a { color: var(--gold-300); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none; background: none; cursor: pointer;
  color: var(--ash-400); font-size: 22px; line-height: 1;
}
.modal-close:hover { color: var(--ash-050); }
.form-msg { margin: 14px 0 0; font-size: 13px; min-height: 19px; }
.form-msg.err { color: #E0724A; }
.form-msg.ok { color: var(--gold-300); }

/* ─── Появление при скролле ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Адаптив ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  h1, h2, h3 { overflow-wrap: break-word; letter-spacing: -0.035em; }
  .nav { inset: 8px 0 auto 0; }
  .nav .wrap { padding: 8px 8px 8px 16px; gap: 12px; }
  .method { grid-template-columns: 1fr; gap: 40px; }
  .method-art { aspect-ratio: 16 / 10; }
  .nav-links { display: none; }
  section { padding: 78px 0; }
  body { font-size: 16px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  footer nav { margin-left: 0; }
}


@media (max-width: 900px) {
}
