/* =====================================================================
   Гид по эзотерике — дизайн-система (версия GLM 5.2)
   Палитра: тёмный космос + золото. Позиционирование: Cartier-dark.
   Принцип: hardware-accelerated transforms, semantic, accessible, responsive.
   ===================================================================== */

:root {
  /* Фон */
  --bg: #0A0A1A;
  --bg-deep: #060611;
  --bg-card: rgba(20, 16, 36, 0.6);
  --bg-card-solid: #140F23;

  /* Золото */
  --gold: #D4AF37;
  --gold-light: #F4D47C;
  --gold-dark: #9E7C1C;
  --gold-vivid: #F5C842;
  --gold-pale: #FFE9A8;
  --gold-line: rgba(212, 175, 55, 0.22);
  --gold-metallic: linear-gradient(135deg, #FFE9A8 0%, #F4D47C 34%, #F5C842 48%, #D4AF37 58%, #9E7C1C 72%, #F4D47C 100%);

  /* Текст */
  --text: #E8E8F0;
  --text-dim: #8888A0;
  --text-faint: #5A5A72;

  /* Акценты по инструментам */
  --c-matrix: #D4AF37;     /* золото */
  --c-natal: #4169E1;      /* сапфир */
  --c-tarot: #B22222;      /* багровый */
  --c-numerology: #9966CC; /* аметист */
  --c-goroscope: #50C878;  /* изумруд */
  --c-human: #C7B8FF;      /* дизайн человека */

  /* Геометрия */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* Шрифты */
  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
  --ff-num: "Cormorant Garamond", Georgia, serif;

  /* Тени */
  --shadow-gold: 0 18px 50px -18px rgba(244, 212, 124, 0.6);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  background:
    radial-gradient(60% 45% at 50% 8%, rgba(244, 212, 124, 0.15), transparent 58%),
    radial-gradient(46% 52% at 15% 44%, rgba(65, 105, 225, 0.08), transparent 64%),
    radial-gradient(44% 50% at 88% 28%, rgba(212, 175, 55, 0.08), transparent 66%),
    linear-gradient(180deg, rgba(10, 10, 26, 0.15), rgba(6, 6, 17, 0.45)),
    url("assets/bg-cosmic.png") center top / cover fixed,
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(212, 175, 55, 0.3); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #1a1207; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------- layout helpers ------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.mobile-break { display: none; }

section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  scroll-margin-top: 92px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 1.1rem;
}
.eyebrow.center { display: block; }

.section-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 1rem;
}
.section-title span { color: var(--text-dim); font-style: italic; font-weight: 400; }

.hero__title,
.tools .section-title,
.pricing .section-title,
.final__title em {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(244, 212, 124, 0.24));
}

.tools .section-title span,
.pricing .section-title span {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.82;
}

/* ----------------------------- cosmos bg ----------------------------- */
#cosmos {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 52% at 50% 20%, rgba(244, 212, 124, 0.12), transparent 56%),
    radial-gradient(90% 75% at 50% 5%, rgba(10, 10, 26, 0.02), rgba(10, 10, 26, 0.3) 66%, rgba(0,0,0,0.68) 100%),
    linear-gradient(180deg, rgba(3, 3, 9, 0.12), rgba(3, 3, 9, 0.45));
}

/* ------------------------------- nav ------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 7, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--gold-line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--gold); }
.brand__mark { display: grid; place-items: center; }
.brand__mark svg { animation: spin 40s linear infinite; }
.brand__text {
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(244, 212, 124, 0.16));
}
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  font-size: 0.92rem; color: var(--text-dim); font-weight: 500;
  position: relative; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 0.7rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 0.94rem; letter-spacing: 0.01em;
  padding: 0.72rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold-metallic);
  color: #1a1207;
  border-color: rgba(255, 233, 168, 0.45);
  box-shadow: var(--shadow-gold);
  text-shadow: 0 1px 0 rgba(255,255,255,0.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -10px 18px rgba(158,124,28,0.18),
    var(--shadow-gold);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.36),
    inset 0 -10px 18px rgba(158,124,28,0.16),
    0 24px 62px -16px rgba(244,212,124,.72);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border-color: var(--gold-line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: .2rem;
  padding: 1rem var(--gutter) 1.4rem;
  background: rgba(8,7,18,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-line);
}
.mobile-nav a { padding: .8rem 0; color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,0.04); }
.mobile-nav a.btn { border: 0; margin-top: .8rem; justify-content: center; }

/* ------------------------------- hero ------------------------------- */
.hero { padding-top: clamp(8rem, 18vh, 12rem); text-align: center; }
.hero__inner { max-width: 880px; margin: 0 auto; }
.hero .eyebrow { color: var(--gold); }
.hero__title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.04; letter-spacing: 0;
  margin: 0 0 1.4rem;
}
.hero__title em { font-style: italic; color: inherit; font-weight: 500; }
.hero__sub {
  font-size: clamp(1.02rem, 2.2vw, 1.28rem); color: var(--text-dim);
  max-width: 640px; margin: 0 auto 2.4rem;
}

.ask { max-width: 620px; margin: 0 auto; text-align: left; }
.ask__label { font-size: .82rem; color: var(--text-dim); letter-spacing: .06em; }
.ask__row {
  margin-top: .6rem; display: flex; gap: .6rem;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(20,16,36,.74));
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 999px; padding: .45rem .45rem .45rem 1.3rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px -28px rgba(0,0,0,.9);
  backdrop-filter: blur(14px) saturate(130%); transition: border-color .3s, box-shadow .3s;
}
.ask__row:focus-within { border-color: var(--gold-light); box-shadow: 0 0 0 1px rgba(244,212,124,.2), 0 0 42px -14px rgba(244,212,124,.65); }
.ask__input {
  flex: 1; background: none; border: 0; color: var(--text);
  font-size: 1rem; padding: .6rem 0; min-width: 0;
}
.ask__input:focus { outline: none; }
.ask__input::placeholder { color: var(--text-faint); }
.ask__hint { margin: .8rem 0 0; font-size: .82rem; color: var(--text-faint); text-align: center; }

.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.4rem;
  margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--gold-line);
}
.trust li { font-size: .92rem; color: var(--text-dim); }
.trust strong { font-family: var(--ff-display); font-size: 1.6rem; color: var(--gold-vivid); margin-right: .35rem; font-weight: 600; text-shadow: 0 0 18px rgba(244,212,124,.22); }

/* ------------------------------- shift ------------------------------- */
.shift { text-align: center; }
.shift__grid {
  margin-top: 3rem; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.shift__card {
  text-align: left; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(20,16,36,.72));
  border: 1px solid rgba(212,175,55,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075), var(--shadow-card);
  backdrop-filter: blur(14px) saturate(130%); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.shift__card:hover { transform: translateY(-4px); border-color: rgba(244,212,124,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 70px -34px rgba(244,212,124,.24); }
.shift__num { font-family: var(--ff-num); font-size: 2rem; color: var(--gold); font-style: italic; }
.shift__card h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; margin: .4rem 0 .6rem; }
.shift__card p { color: var(--text-dim); margin: 0; font-size: .98rem; }

/* ------------------------------ tools ------------------------------ */
.tools__grid {
  margin-top: 3rem; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tool {
  position: relative; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(20,16,36,.74) 48%, rgba(10,9,24,.84));
  border: 1px solid rgba(212,175,55,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow-card);
  backdrop-filter: blur(14px) saturate(135%); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.tool::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 62%);
  opacity: .5; transition: opacity .4s;
}
.tool:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 44px -12px color-mix(in srgb, var(--accent) 74%, transparent),
    0 30px 68px -30px rgba(0,0,0,.95);
}
.tool:hover::before { opacity: .9; }
.tool__icon {
  font-size: 1.9rem; color: var(--accent); line-height: 1;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px;
  margin-bottom: 1.1rem; position: relative;
}
.tool h3 {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.32rem; margin: 0 0 .5rem;
  color: color-mix(in srgb, var(--accent, var(--gold)) 52%, var(--gold-light));
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent, var(--gold)) 20%, transparent);
}
.tool p { color: var(--text-dim); margin: 0 0 1.2rem; font-size: .96rem; position: relative; }
.tool__tag {
  display: inline-block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: .25rem .7rem; border-radius: 999px; position: relative;
}
.tool__go {
  display: block; margin-top: 1.2rem; font-weight: 600; font-size: .92rem;
  color: var(--accent); position: relative; transition: letter-spacing .25s;
}
.tool__go:hover { letter-spacing: .04em; }
.tool--more {
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(150deg, rgba(244,212,124,0.14), rgba(20,16,36,0.72));
  border: 1px dashed var(--gold-line);
}
.tool--more .tool__icon { color: var(--gold); border-color: var(--gold-line); }

/* ------------------------------- how ------------------------------- */
.how { text-align: center; }
.how__steps {
  margin-top: 3rem; counter-reset: step;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: left; list-style: none; padding: 0;
}
.how__steps li {
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.052), rgba(20,16,36,.72));
  border: 1px solid rgba(212,175,55,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(130%);
}
.how__step-num {
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600;
  color: #1a1207; background: var(--gold-metallic); width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 24px -10px rgba(244,212,124,.72);
}
.how__steps h3 { font-family: var(--ff-display); font-size: 1.25rem; margin: 0 0 .5rem; }
.how__steps p { color: var(--text-dim); margin: 0; font-size: .96rem; }

/* ------------------------------ guide ------------------------------ */
.guide { text-align: center; }
.guide__window {
  max-width: 720px; margin: 3rem auto 0; text-align: left;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(20,16,36,.82));
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow-card);
  backdrop-filter: blur(14px) saturate(130%);
}
.guide__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .9rem 1.2rem; background: rgba(0,0,0,0.25); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.guide__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.guide__dot:nth-child(1) { background: #ff5f57; }
.guide__dot:nth-child(2) { background: #febc2e; }
.guide__dot:nth-child(3) { background: #28c840; }
.guide__title { margin-left: .8rem; font-size: .85rem; color: var(--text-faint); letter-spacing: .04em; }
.guide__chat {
  min-height: 220px; max-height: 320px; overflow-y: auto;
  padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem;
}
.guide__msg {
  max-width: 88%; padding: .85rem 1.1rem; border-radius: 14px; font-size: .97rem; line-height: 1.6;
}
.guide__msg--bot { align-self: flex-start; background: rgba(244,212,124,0.09); border: 1px solid rgba(212,175,55,.24); border-bottom-left-radius: 4px; }
.guide__msg--user { align-self: flex-end; background: var(--gold-metallic); color: #1a1207; border-bottom-right-radius: 4px; font-weight: 500; box-shadow: 0 16px 34px -20px rgba(244,212,124,.65); }
.guide__msg b { color: var(--gold-light); }
.guide__msg--user b { color: #1a1207; }
.guide__typing { display: inline-flex; gap: 4px; align-self: flex-start; }
.guide__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .4; animation: blink 1.2s infinite; }
.guide__typing span:nth-child(2) { animation-delay: .2s; }
.guide__typing span:nth-child(3) { animation-delay: .4s; }
.guide__chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.4rem 1rem; }
.chip {
  background: rgba(255,255,255,0.04); border: 1px solid var(--gold-line);
  color: var(--text-dim); padding: .5rem 1rem; border-radius: 999px; font-size: .85rem;
  transition: all .25s;
}
.chip:hover { color: var(--gold-light); border-color: var(--gold); transform: translateY(-2px); }
.guide__note { padding: 0 1.4rem 1.3rem; margin: 0; font-size: .78rem; color: var(--text-faint); }

/* ----------------------------- pricing ----------------------------- */
.pricing { text-align: center; }
.pricing__lead { max-width: 640px; margin: 1rem auto 0; color: var(--text-dim); }
.pricing__grid {
  margin-top: 3rem; display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: stretch;
}
.plan {
  display: flex; flex-direction: column; text-align: left;
  padding: 1.8rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(20,16,36,.72));
  border: 1px solid rgba(212,175,55,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), var(--shadow-card);
  backdrop-filter: blur(14px) saturate(130%);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.plan:hover { transform: translateY(-5px); border-color: rgba(244,212,124,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 28px 68px -32px rgba(244,212,124,.25); }
.plan__name { font-family: var(--ff-display); font-weight: 600; font-size: 1.25rem; margin: 0; }
.plan__price { margin: .8rem 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plan__amount { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 600; color: var(--gold-light); text-shadow: 0 0 18px rgba(244,212,124,.12); }
.plan__per { font-size: .82rem; color: var(--text-faint); }
.plan__limit { font-size: .95rem; color: var(--text-dim); margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.plan__limit strong { font-family: var(--ff-num); font-size: 1.5rem; color: var(--gold-vivid); font-style: italic; font-weight: 500; }
.plan__feats { display: flex; flex-direction: column; gap: .55rem; margin: 0 0 1.5rem; flex: 1; }
.plan__feats li { font-size: .9rem; color: var(--text-dim); padding-left: 1.4rem; position: relative; }
.plan__feats li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .7rem; top: .25rem; }
.plan__btn { width: 100%; }
.plan__badge {
  align-self: flex-start; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold-metallic); color: #1a1207; padding: .25rem .7rem; border-radius: 999px;
  font-weight: 700; margin-bottom: .8rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 22px -12px rgba(244,212,124,.7);
}
.plan--featured { border-color: rgba(244,212,124,.52); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 54px -18px rgba(244,212,124,.58); position: relative; }
.plan--pro { background: linear-gradient(160deg, rgba(244,212,124,0.14), rgba(20,16,36,.72)); border-color: var(--gold-line); }
.plan--pro .plan__name { color: var(--gold-light); }
.pricing__foot { margin-top: 2rem; color: var(--text-faint); font-size: .9rem; }
.pricing__foot strong { color: var(--gold); }

/* ----------------------------- access ----------------------------- */
.access { text-align: center; }
.access__grid {
  margin-top: 3rem; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.access__card {
  padding: 2.2rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.052), rgba(20,16,36,.72));
  border: 1px solid rgba(212,175,55,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(130%); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.access__card:hover { transform: translateY(-5px); border-color: rgba(244,212,124,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 26px 62px -34px rgba(244,212,124,.22); }
.access__icon {
  font-size: 1.6rem; color: var(--gold); width: 56px; height: 56px;
  display: grid; place-items: center; border: 1px solid var(--gold-line);
  border-radius: 14px; margin-bottom: 1.1rem;
}
.access__card h3 { font-family: var(--ff-display); font-size: 1.25rem; margin: 0 0 .5rem; }
.access__card p { color: var(--text-dim); margin: 0; font-size: .95rem; }
.access__note { margin-top: 1.8rem; color: var(--text-faint); font-size: .9rem; }

/* --------------------------- trust section --------------------------- */
.trust-sec { text-align: center; }
.trust-sec__grid {
  margin-top: 3rem; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: left;
}
.trust-sec__grid article {
  padding: 1.8rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.052), rgba(20,16,36,.72));
  border: 1px solid rgba(212,175,55,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(130%);
}
.trust-sec__grid h3 { font-family: var(--ff-display); font-size: 1.2rem; margin: 0 0 .5rem; color: var(--gold-light); }
.trust-sec__grid p { color: var(--text-dim); margin: 0; font-size: .93rem; }

/* ------------------------------- faq ------------------------------- */
.faq { text-align: center; }
.faq__list { margin-top: 2.5rem; text-align: left; }
.faq__item {
  border: 1px solid rgba(212,175,55,.14); border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255,255,255,.052), rgba(20,16,36,.72)); margin-bottom: .8rem; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .3s;
}
.faq__item[open] { border-color: var(--gold-line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem;
  font-weight: 500; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .3s; flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--text-dim); }
.faq__a p { margin: 0; font-size: .96rem; }

/* ------------------------------ final ------------------------------ */
.final { text-align: center; padding-block: clamp(5rem, 10vw, 8rem); }
.final__title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; margin: 0 0 1rem;
}
.final__title em { color: var(--gold); font-style: italic; font-weight: 500; }
.final__sub { color: var(--text-dim); font-size: 1.1rem; margin: 0 0 2.2rem; }

/* ------------------------------ footer ------------------------------ */
.footer { border-top: 1px solid var(--gold-line); background: rgba(6,6,17,0.7); backdrop-filter: blur(10px); padding-top: 3rem; }
.footer__inner {
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: .8rem; color: var(--gold); }
.footer__brand strong { display: block; font-family: var(--ff-display); font-size: 1.1rem; color: var(--text); }
.footer__brand span { font-size: .85rem; color: var(--text-faint); }
.footer__label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .9rem; }
.footer__domains, .footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__domains a, .footer__links a { font-size: .9rem; color: var(--text-dim); transition: color .25s; }
.footer__domains a:hover, .footer__links a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: .82rem; color: var(--text-faint);
}

/* --------------------------- scroll reveal --------------------------- */
.reveal { opacity: 1; transform: none; }
html.has-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.has-reveal .reveal.in { opacity: 1; transform: none; }

/* ----------------------------- animations ----------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: flex; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav:not([hidden]) { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .ask__row { flex-direction: column; border-radius: var(--radius); padding: .8rem; }
  .ask__btn { width: 100%; }
}
@media (max-width: 520px) {
  html,
  body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  main,
  section {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
  .container {
    width: 100vw;
    max-width: 100vw;
    margin-inline: 0;
    padding-inline: 20px;
  }
  .hero { padding-top: 7.5rem; }
  .eyebrow {
    max-width: 100%;
    font-size: .66rem;
    letter-spacing: .18em;
    overflow-wrap: anywhere;
  }
  .hero__title {
    font-size: clamp(1.95rem, 9.2vw, 2.2rem);
    line-height: 1.08;
    max-width: 340px;
    margin-inline: auto;
    overflow-wrap: break-word;
  }
  .mobile-break { display: block; }
  .hero__sub { max-width: 100%; font-size: 1rem; }
  .hero__sub,
  .ask {
    max-width: 340px;
  }
  .ask__row { width: 100%; }
  .section-title {
    font-size: clamp(1.75rem, 7.6vw, 2.05rem);
    line-height: 1.14;
    max-width: 350px;
    margin-inline: auto;
    overflow-wrap: break-word;
  }
  .trust {
    flex-direction: column;
    align-items: center;
    gap: .9rem;
  }
  .trust li { font-size: .85rem; }
  .brand__text { font-size: 1rem; }
}

/* ------------------------- reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .brand__mark svg { animation: none; }
}

/* ===================================================================== */
/*  ДВУХШАГОВЫЙ ВХОД — guide bridge + personal modal                       */
/* ===================================================================== */

/* bridge CTA под демо */
.guide__bridge {
  margin: 2.6rem auto 0; max-width: 560px; text-align: center;
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(244,212,124,0.13), rgba(20,16,36,0.68));
  border: 1px solid rgba(212,175,55,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 28px 70px -38px rgba(244,212,124,.28);
  backdrop-filter: blur(14px) saturate(130%);
}
.guide__bridge p { margin: 0 0 1.1rem; font-family: var(--ff-display); font-size: 1.3rem; color: var(--text); }
.guide__bridge-hint { display: block; margin-top: .9rem; font-size: .82rem; color: var(--text-faint); }

/* ----------------------------- MODAL ----------------------------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(4,4,12,0.78);
  backdrop-filter: blur(8px); animation: fadeIn .3s var(--ease);
}
.modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(20,16,36,.9));
  border: 1px solid rgba(212,175,55,.28); border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,0.9);
  backdrop-filter: blur(18px) saturate(130%);
  animation: modalIn .4s var(--ease);
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%; color: var(--text-dim); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: all .25s;
}
.modal__close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.modal__title { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .4rem 0 .5rem; text-align: center; }
.modal__sub { text-align: center; color: var(--text-dim); margin: 0 0 1.8rem; font-size: .96rem; }
.modal__step .eyebrow { display: block; text-align: center; }

/* ----------------------------- FORM ----------------------------- */
.pform { display: flex; flex-direction: column; gap: 1.4rem; }
.instr { border: 0; padding: 0; margin: 0; }
.instr__legend { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); padding: 0; margin-bottom: .7rem; }
.instr__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.instr__card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .8rem .4rem; border-radius: 12px; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(20,16,36,.66));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: all .25s var(--ease);
}
.instr__card input { position: absolute; opacity: 0; pointer-events: none; }
.instr__icon { font-size: 1.3rem; color: var(--accent); line-height: 1; }
.instr__name { font-size: .72rem; color: var(--text-dim); font-weight: 500; }
.instr__card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-2px); }
.instr__card:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 32%, rgba(20,16,36,.66));
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 12px 34px -12px color-mix(in srgb, var(--accent) 74%, black);
}
.instr__card:has(input:checked) .instr__name { color: var(--text); }

.pform__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
.pform__field { display: flex; flex-direction: column; gap: .35rem; }
.pform__field--grow { grid-column: span 2; }
.pform__field label { font-size: .82rem; color: var(--text-dim); }
.pform__field .req { color: var(--gold); }
.pform__field .opt { color: var(--text-faint); font-size: .75rem; }
.pform__field input,
.pform__field select {
  width: 100%; background: rgba(5,5,18,0.55); border: 1px solid rgba(212,175,55,0.16);
  border-radius: 10px; padding: .7rem .8rem; color: var(--text); font-size: .95rem; font-family: inherit;
  transition: border-color .25s;
}
.pform__field input:focus,
.pform__field select:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 1px rgba(244,212,124,.18); }
.pform__field input::placeholder { color: var(--text-faint); }
.pform__field input:disabled { opacity: .5; cursor: not-allowed; }
.pform__field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.pform__check { display: flex; align-items: center; gap: .4rem; font-size: .78rem !important; color: var(--text-faint); margin-top: .3rem; cursor: pointer; }
.pform__check input { width: auto; }

.pform__error { color: #ff8a7a; font-size: .88rem; margin: 0; text-align: center; }
.pform__submit { align-self: center; margin-top: .3rem; min-width: 260px; justify-content: center; }
.pform__submit[disabled] { opacity: .7; cursor: wait; }
.pform__hint { text-align: center; font-size: .8rem; color: var(--text-faint); margin: 0; }

/* ----------------------------- RESULT ----------------------------- */
.presult__loading { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }
.spinner {
  width: 46px; height: 46px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 3px solid rgba(212,175,55,0.15); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
.presult__title { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2rem); margin: .3rem 0 .4rem; line-height: 1.15; }
.presult__meta { color: var(--text-faint); font-size: .88rem; margin: 0 0 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.presult__meta b { color: var(--gold-light); font-weight: 500; }
.presult__blocks { display: flex; flex-direction: column; gap: 1.1rem; }
.presult__block {
  background: linear-gradient(160deg, rgba(244,212,124,0.09), rgba(20,16,36,.55));
  border-left: 2px solid var(--gold-vivid); border-radius: 0 10px 10px 0; padding: .9rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.presult__block h4 { margin: 0 0 .35rem; font-family: var(--ff-display); font-size: 1.02rem; color: var(--gold-light); font-weight: 600; }
.presult__block p { margin: 0; color: var(--text-dim); font-size: .92rem; line-height: 1.6; }
.presult__block em { color: var(--text); font-style: normal; font-weight: 500; }
.presult__actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin: 1.8rem 0 .8rem; }
.presult__foot { text-align: center; font-size: .76rem; color: var(--text-faint); margin: 0; line-height: 1.6; }

/* ----------------------------- anim keyframes ----------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 620px) {
  .instr__grid { grid-template-columns: repeat(3, 1fr); }
  .pform__row { grid-template-columns: 1fr 1fr; }
  .pform__field--grow { grid-column: span 2; }
  .modal__panel { border-radius: 16px; }
  .guide__bridge .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .presult__actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .instr__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================== */
/*  БРЕНД-КИТ ассеты — logo / icons / banner                              */
/* ===================================================================== */
.brand__img {
  width: 100%; height: 100%; max-width: 36px; max-height: 36px;
  object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(244, 212, 124, 0.28));
}
.footer__brand .brand__img { max-width: 32px; max-height: 32px; }

/* иконки инструментов в карточках (тёмный фон ассета сливается с фоном сайта) */
.tool__icon {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 42%, #0c0a18), #07060f 76%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 30px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.tool__icon img { width: 100%; height: 100%; object-fit: contain; padding: 5px; display: block; }
.tool:hover .tool__icon img { transform: scale(1.06); transition: transform .4s var(--ease); }

/* иконки в модале выбора инструмента */
.instr__icon { display: block; width: 30px; height: 30px; }
.instr__icon img { display: block; width: 30px; height: 30px; object-fit: contain; }

/* баннер подписки */
.banner { margin: 3rem auto 0; max-width: 760px; }
.banner img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--gold-line); box-shadow: var(--shadow-card);
}
