/* ===== Матрица судьбы — сайт ===== */
@font-face { font-family: "Cormorant"; src: url("../fonts/CormorantGaramond.ttf") format("truetype"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/CormorantGaramond-Italic.ttf") format("truetype"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --night: #0B0820;
  --night2: #110D29;
  --deep: #1D1747;
  --violet: #2E2470;
  --gold: #C9A45C;
  --gold2: #E9CF95;
  --gold3: #F6E7C1;
  --cream: #FBF6EC;
  --paper: #FFFDF7;
  --ink: #16112F;
  --text: #2A2450;
  --muted: #6E6788;
  --line: #E4D5B5;
  --lilac: #B5ACD6;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold2); color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.01em; }
h2 em { color: var(--gold); font-weight: 500; }
h3 { font-size: 26px; line-height: 1.15; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 22px 0 0; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .02em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 64px; padding: 0 40px; font-size: 16px; }
.btn-gold {
  color: #1A1338;
  background: linear-gradient(135deg, #F6E3B0 0%, #D9B46A 45%, #B8893E 100%);
  box-shadow: 0 10px 30px -10px rgba(201,164,92,.7), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.65) 50%, transparent 75%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(201,164,92,.9), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--gold3); border: 1px solid rgba(233,207,149,.4); backdrop-filter: blur(8px); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--gold2); background: rgba(233,207,149,.08); transform: translateY(-2px); }
.btn:focus-visible, .tab:focus-visible, .pf-btn:focus-visible, summary:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--night);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-star { width: 120px; height: 120px; }
.loader-star * { fill: none; stroke: var(--gold2); stroke-width: 1; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.6s var(--ease) forwards; }
.loader-star rect:nth-child(2) { animation-delay: .2s; }
.loader-star circle { animation-delay: .4s; stroke: var(--gold); stroke-width: .6; }
.loader-text { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold2); opacity: 0; animation: fadeIn 1s .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,207,149,.10) 0%, rgba(233,207,149,0) 60%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.is-on { opacity: 1; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 76px;
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  color: var(--gold3); transition: background .4s, height .4s, box-shadow .4s, color .4s;
}
.nav.is-scrolled { height: 64px; background: rgba(11,8,32,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 rgba(233,207,149,.12); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .02em; color: var(--gold2); }
.logo svg { filter: drop-shadow(0 0 8px rgba(233,207,149,.6)); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; font-size: 14px; color: rgba(246,231,193,.78); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold2); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--gold3); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--gold2); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--night);
  color: var(--gold3); overflow: hidden;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; background: url("../img/covers/personal.jpg") 75% center / contain no-repeat; opacity: 0; transition: opacity 1s; }
.no-webgl .hero-fallback { opacity: .55; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,8,32,.85) 0%, rgba(11,8,32,.35) 45%, rgba(11,8,32,0) 70%), linear-gradient(0deg, var(--night) 0%, rgba(11,8,32,0) 22%); }
.hero-inner { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 90px; }
.hero-copy { max-width: 600px; }
.moons { display: flex; gap: 8px; margin-bottom: 26px; }
.moons i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold2); opacity: 0; animation: fadeIn .6s forwards; }
.moons i:nth-child(1) { background: linear-gradient(90deg, transparent 70%, var(--gold2) 70%); }
.moons i:nth-child(2) { background: linear-gradient(90deg, transparent 50%, var(--gold2) 50%); }
.moons i:nth-child(3) { background: linear-gradient(90deg, transparent 25%, var(--gold2) 25%); }
.moons i:nth-child(4) { background: var(--gold2); box-shadow: 0 0 12px var(--gold2); }
.moons i:nth-child(5) { background: linear-gradient(90deg, var(--gold2) 75%, transparent 75%); }
.moons i:nth-child(6) { background: linear-gradient(90deg, var(--gold2) 50%, transparent 50%); }
.moons i:nth-child(7) { background: linear-gradient(90deg, var(--gold2) 30%, transparent 30%); }
.is-ready .moons i { animation-play-state: running; }
.moons i:nth-child(n) { animation-delay: calc(var(--i, 0) * 1s); }
.hero .eyebrow { color: var(--gold2); }
.hero-title { font-size: clamp(64px, 11vw, 148px); line-height: .92; font-weight: 500; letter-spacing: -.02em; color: var(--gold3); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line span {
  display: inline-block; transform: translateY(105%);
  background: linear-gradient(180deg, #FFF4DC 0%, #F1D89C 55%, #C9A45C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 1.4s var(--ease);
}
.hero-title .line:nth-child(2) span { transition-delay: .12s; font-style: italic; padding-left: .5em; }
.is-ready .hero-title .line span { transform: none; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); color: #FFF4DC; margin: 18px 0 0; }
.hero-text { color: rgba(229,218,245,.82); font-size: 17px; max-width: 520px; margin: 18px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--gold2); line-height: 1; }
.hero-stats span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lilac); margin-top: 6px; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(233,207,149,.45); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold2); animation: wheel 2s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--night); border-top: 1px solid rgba(233,207,149,.14); border-bottom: 1px solid rgba(233,207,149,.14); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 34px; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--gold2); white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: 14px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section-dark { background: radial-gradient(ellipse 80% 60% at 50% 0%, #221A55 0%, var(--night2) 55%, var(--night) 100%); color: #E5DAF5; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--gold3); }
.section-dark h2 em { color: var(--gold2); }
.section-dark .eyebrow { color: var(--gold2); }
.section-dark .lead { color: var(--lilac); }
.stars-bg { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #F6E7C1 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 75% 55%, #E9CF95 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 85%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 20% 90%, #E9CF95 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 35%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 50%, #fff 50%, transparent 51%);
  background-size: 340px 340px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }

/* ---------- Method ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; margin-bottom: 70px; }
.compare-item { padding: 34px 36px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.compare-item.is-ours { background: linear-gradient(145deg, #1D1747, #0F0B27); border-color: rgba(233,207,149,.4); color: #E5DAF5; box-shadow: 0 30px 60px -30px rgba(29,23,71,.7); }
.compare-label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.is-ours .compare-label { color: var(--gold2); }
.compare-price { font-family: var(--serif); font-size: clamp(40px, 5vw, 58px); font-weight: 600; line-height: 1.05; color: var(--ink); }
.is-ours .compare-price { color: var(--gold2); }
.compare-price.strike { position: relative; width: max-content; color: var(--muted); }
.compare-price.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1s .4s var(--ease); }
.compare.is-in .compare-price.strike::after { transform: scaleX(1); }
.compare-note { color: var(--muted); }
.is-ours .compare-note { color: var(--lilac); }
.compare-vs { align-self: center; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.feature {
  position: relative; padding: 34px 32px 36px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.feature:hover { box-shadow: 0 30px 60px -30px rgba(46,36,112,.35); border-color: var(--gold); }
.feature-ico { width: 64px; height: 64px; margin-bottom: 22px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, #1D1747, #0F0B27); transform: translateZ(30px); }
.feature-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--gold2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 10px; transform: translateZ(20px); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; transform: translateZ(10px); }

/* ---------- Calculator ---------- */
.calc { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.calc .section-head { margin-bottom: 34px; }
.calc-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; }
.field span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); font-weight: 700; }
.field input {
  height: 56px; padding: 0 22px; border-radius: 999px; font: 500 20px var(--sans); letter-spacing: .12em; color: #FFF4DC;
  background: rgba(255,255,255,.05); border: 1px solid rgba(233,207,149,.35); outline: none; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder { color: rgba(181,172,214,.6); }
.field input:focus { border-color: var(--gold2); box-shadow: 0 0 0 4px rgba(233,207,149,.15); }
.calc-error { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; color: #F5B8A8; font-size: 14px; }
.calc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; perspective: 1400px; }
.acard { position: relative; aspect-ratio: 2 / 3; cursor: pointer; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.acard.is-flipped { transform: rotateY(180deg); }
.acard-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid rgba(233,207,149,.45); }
.acard-back { background: radial-gradient(circle at 50% 45%, #2E2470 0%, #120E2D 70%); display: grid; place-items: center; }
.acard-back svg { width: 56%; opacity: .9; }
.acard-back svg * { fill: none; stroke: var(--gold2); stroke-width: 1; }
.acard-front { transform: rotateY(180deg); background: #120E2D; }
.acard-front img { width: 100%; height: 100%; object-fit: cover; }
.acard-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,8,32,.96) 0%, rgba(11,8,32,.6) 38%, rgba(11,8,32,0) 62%); }
.acard-info { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; }
.acard-pos { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); font-weight: 700; }
.acard-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #FFF4DC; line-height: 1.1; margin: 4px 0; }
.acard-name b { color: var(--gold2); }
.acard-desc { font-size: 12.5px; line-height: 1.45; color: #D6CDEE; }
.calc-more { margin-top: 26px; padding: 26px; border-radius: 20px; border: 1px solid rgba(233,207,149,.3); background: rgba(255,255,255,.04); }
.calc-more p { margin: 0 0 18px; color: #E5DAF5; }
.calc { align-items: start; }
.calc-right { position: sticky; top: 90px; }
.calc-right::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(233,207,149,.18), transparent 65%); filter: blur(20px); }
.matrix-svg { position: relative; width: 100%; max-width: 560px; margin: 0 auto; display: block; overflow: visible; }
.matrix-svg .ln { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2.2s var(--ease); }
.matrix-svg .ln.soft { stroke: rgba(201,164,92,.45); stroke-width: .7; }
.matrix-svg.is-drawn .ln { stroke-dashoffset: 0; }
.matrix-svg .pt { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.matrix-svg.is-drawn .pt { opacity: 1; transform: none; }
.matrix-svg .pt circle { fill: #15103A; stroke: var(--gold2); stroke-width: 1.2; }
.matrix-svg .pt.main circle { fill: #241B5A; stroke-width: 1.6; }
.matrix-svg .pt.center circle { fill: url(#goldGrad); stroke: #FFF4DC; }
.matrix-svg .pt text { font-family: var(--serif); font-weight: 700; fill: #FFF4DC; text-anchor: middle; dominant-baseline: central; }
.matrix-svg .pt.center text { fill: #1A1338; }
.matrix-svg .lbl { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; fill: var(--lilac); text-anchor: middle; opacity: 0; transition: opacity 1s 1.2s; }
.matrix-svg.is-drawn .lbl { opacity: 1; }
.matrix-svg .pt.is-hl circle { stroke: #fff; filter: drop-shadow(0 0 8px rgba(233,207,149,.9)); }

/* ---------- Book ---------- */
.book-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; margin-bottom: 110px; }
.book-stage { position: relative; height: 560px; perspective: 1100px; display: grid; place-items: center; }
.book {
  --w: 330px; --h: 467px; --t: 34px;
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -34deg)); transition: transform .9s var(--ease); cursor: pointer;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }
.book-face { position: absolute; inset: 0; }
.book-back { background: linear-gradient(145deg, #1D1747, #0B0820); transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); border-radius: 3px 8px 8px 3px; box-shadow: 0 0 0 1px rgba(233,207,149,.3) inset; }
.book-page { transform: translateZ(calc(var(--t) / 2 - 2px)); background: var(--paper); border-radius: 0 4px 4px 0; overflow: hidden; }
.book-page img { width: 100%; height: 100%; object-fit: cover; }
.book-edge { position: absolute; background: repeating-linear-gradient(90deg, #F4EBD8 0 2px, #E4D5B5 2px 3px); }
.book-edge-right { width: var(--t); height: calc(var(--h) - 8px); top: 4px; left: calc(var(--w) - var(--t) / 2 - 3px); transform: rotateY(90deg); }
.book-edge-top { height: var(--t); width: calc(var(--w) - 8px); left: 2px; top: calc(var(--t) / -2 + 3px); transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #F4EBD8 0 2px, #E4D5B5 2px 3px); }
.book-edge-bottom { height: var(--t); width: calc(var(--w) - 8px); left: 2px; bottom: calc(var(--t) / -2 + 3px); transform: rotateX(-90deg); background: repeating-linear-gradient(0deg, #F4EBD8 0 2px, #E4D5B5 2px 3px); }
.book-cover { position: absolute; inset: 0; transform-origin: left center; transform: translateZ(calc(var(--t) / 2)); transform-style: preserve-3d; transition: transform 1.4s var(--ease); }
.book-cover > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 8px 8px 3px; overflow: hidden; }
.book-cover-front { box-shadow: inset 6px 0 10px -4px rgba(0,0,0,.6), 0 0 0 1px rgba(233,207,149,.35); }
.book-cover-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,244,220,.22) 45%, rgba(255,255,255,0) 60%); transform: translateX(var(--sheen, -60%)); transition: transform .9s var(--ease); }
.book-cover-front img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-back { transform: rotateY(180deg); background: linear-gradient(145deg, #1D1747, #0B0820); color: var(--gold2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.book-cover-back span { font-size: 28px; }
.book-cover-back p { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 10px 0 0; }
.book.is-open .book-cover { transform: translateZ(calc(var(--t) / 2)) rotateY(-165deg); }
.book-shadow { position: absolute; bottom: 20px; left: 50%; width: 360px; height: 40px; margin-left: -180px; border-radius: 50%; background: radial-gradient(ellipse, rgba(22,17,47,.35), transparent 70%); filter: blur(6px); animation: shadow 7s ease-in-out infinite; }
@keyframes shadow { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.05); opacity: .55; } }
.book-hint { position: absolute; bottom: -8px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 21px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0,-10 C1,-2.2 2.2,-1 10,0 C2.2,1 1,2.2 0,10 C-1,2.2 -2.2,1 -10,0 C-2.2,-1 -1,-2.2 0,-10Z' fill='%23C9A45C'/%3E%3C/svg%3E") center / contain no-repeat; }

.pages-flow { position: relative; height: 560px; perspective: 1600px; }
.pf-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.pf-item { position: absolute; left: 50%; top: 10px; width: 340px; margin: 0 0 0 -170px; transform-style: preserve-3d; transition: transform 1s var(--ease), opacity .8s, filter .8s; cursor: zoom-in; }
.pf-item img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -25px rgba(22,17,47,.55), 0 0 0 1px var(--line); }
.pf-item figcaption { text-align: center; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); opacity: 0; transition: opacity .5s; }
.pf-item.is-active figcaption { opacity: 1; }
.pf-btn { position: absolute; top: 46%; z-index: 5; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 28px; line-height: 1; display: grid; place-items: center; background: rgba(255,253,247,.85); backdrop-filter: blur(8px); transition: background .3s, color .3s, transform .3s; }
.pf-btn:hover { background: var(--gold); color: #fff; transform: scale(1.06); }
.pf-prev { left: 0; } .pf-next { right: 0; }
.pages-note { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ---------- Arcana rail ---------- */
.arcana-rail {
  position: relative; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))) 40px;
  scrollbar-width: none; perspective: 1400px; cursor: grab;
}
.arcana-rail::-webkit-scrollbar { display: none; }
.arcana-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tcard { position: relative; flex: 0 0 240px; aspect-ratio: 2 / 3; border-radius: 18px; scroll-snap-align: center; transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s; box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
.tcard img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 1px solid rgba(233,207,149,.4); pointer-events: none; user-select: none; }
.tcard::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 18px; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,244,220,.35), transparent 45%); opacity: 0; transition: opacity .4s; }
.tcard:hover::before { opacity: 1; }
.tcard:hover { box-shadow: 0 40px 70px -30px rgba(233,207,149,.35); }
.tcard-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; border-radius: 0 0 18px 18px; background: linear-gradient(0deg, rgba(11,8,32,.95), transparent); transform: translateZ(40px); }
.tcard-cap b { display: block; font-family: var(--serif); font-size: 15px; color: var(--gold2); letter-spacing: .1em; }
.tcard-cap span { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #FFF4DC; }
.rail-ctrl { display: flex; justify-content: center; gap: 14px; }
.rail-ctrl .pf-btn { position: static; background: transparent; color: var(--gold2); border-color: rgba(233,207,149,.5); }
.rail-ctrl .pf-btn:hover { background: var(--gold2); color: var(--ink); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); }
.steps.is-in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--gold2); background: radial-gradient(circle at 35% 30%, #2E2470, #0F0B27); box-shadow: 0 0 0 1px var(--gold), 0 0 0 8px var(--cream), 0 0 0 9px var(--line), 0 20px 40px -15px rgba(46,36,112,.6); }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0 auto; color: var(--muted); max-width: 320px; }

/* ---------- Tariffs ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin: -20px auto 50px; padding: 6px; width: max-content; max-width: 100%; border-radius: 999px; border: 1px solid rgba(233,207,149,.25); background: rgba(255,255,255,.03); overflow-x: auto; }
.tab { height: 42px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--lilac); transition: background .4s var(--ease), color .3s; white-space: nowrap; }
.tab:hover { color: var(--gold3); }
.tab.is-active { background: linear-gradient(135deg, #F6E3B0, #C9A45C); color: #1A1338; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1600px; }
.plan {
  position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: linear-gradient(170deg, rgba(46,36,112,.55), rgba(17,13,41,.9)); border: 1px solid rgba(233,207,149,.22);
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s, border-color .4s, opacity .5s, scale .5s;
}
.plan.is-hidden { display: none; }
.plan:hover { border-color: rgba(233,207,149,.6); box-shadow: 0 40px 80px -40px rgba(233,207,149,.35); }
.plan.is-popular { border-color: var(--gold2); box-shadow: 0 0 0 1px var(--gold2), 0 40px 90px -40px rgba(233,207,149,.5); }
.plan.is-popular::before { content: ""; position: absolute; inset: -1px; border-radius: 26px; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, #FFF4DC 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 5s linear infinite; pointer-events: none; z-index: 3; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.plan-badge { position: absolute; z-index: 4; top: 16px; right: 16px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1A1338; background: linear-gradient(135deg, #F6E3B0, #C9A45C); }
.plan-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.plan-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.plan:hover .plan-img img { transform: scale(1.04); }
.plan-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #15103A 0%, rgba(21,16,58,0) 28%); }
.plan-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 6px 28px 28px; }
.plan-ico { font-size: 22px; color: var(--gold2); }
.plan h3 { font-size: 30px; margin: 6px 0 4px; }
.plan-meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.plan-price { font-family: var(--serif); font-size: 48px; font-weight: 600; color: var(--gold2); line-height: 1; margin: 18px 0 14px; }
.plan-price small { font-size: 22px; }
.plan-desc { color: #D6CDEE; font-size: 15px; margin: 0 0 18px; }
.plan-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--gold2); margin-bottom: 14px; align-self: flex-start; }
.plan-toggle i { display: inline-block; transition: transform .4s var(--ease); font-style: normal; }
.plan.is-open .plan-toggle i { transform: rotate(45deg); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 0; overflow: hidden; transition: max-height .7s var(--ease), margin .5s; }
.plan.is-open .plan-list { max-height: 900px; margin-bottom: 20px; }
.plan-list li { position: relative; padding-left: 22px; font-size: 14px; color: #E5DAF5; line-height: 1.4; }
.plan-list li::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 10px; color: var(--gold); }
.plan-list li.plus { color: var(--gold2); font-style: italic; padding-left: 0; }
.plan-list li.plus::before { content: none; }
.plan .btn { margin-top: auto; width: 100%; }
.plan:not(.is-popular) .btn-gold { background: transparent; color: var(--gold3); border: 1px solid rgba(233,207,149,.45); box-shadow: none; }
.plan:not(.is-popular) .btn-gold:hover { background: linear-gradient(135deg, #F6E3B0 0%, #D9B46A 45%, #B8893E 100%); color: #1A1338; }
.plans-note { text-align: center; color: var(--lilac); max-width: 760px; margin: 50px auto 0; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--gold); box-shadow: 0 20px 40px -30px rgba(46,36,112,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 64px 24px 28px; position: relative; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--sans); font-size: 20px; font-weight: 300; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); color: #fff; }
.faq p { margin: 0; padding: 0 28px 24px; color: var(--muted); }

/* ---------- Final ---------- */
.final { position: relative; padding: clamp(110px, 14vw, 180px) 0; text-align: center; overflow: hidden; background: var(--night); color: #E5DAF5; }
.final-bg { position: absolute; inset: -10%; background: url("../img/covers/personal.jpg") center / cover; opacity: .38; filter: saturate(1.1); animation: slowzoom 30s ease-in-out infinite alternate; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,8,32,.3), var(--night) 75%); }
@keyframes slowzoom { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.15) rotate(4deg); } }
.final-inner { position: relative; }
.final h2 { color: var(--gold3); }
.final h2 em { color: var(--gold2); }
.final .eyebrow { color: var(--gold2); }
.final .lead { color: var(--lilac); margin: 22px auto 40px; }

/* ---------- Footer ---------- */
.footer { background: #07051A; color: var(--lilac); padding: 60px 0 40px; border-top: 1px solid rgba(233,207,149,.12); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: var(--gold2); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(233,207,149,.1); font-size: 12px; color: rgba(181,172,214,.7); }
.footer-legal p { margin: 0 0 8px; max-width: 820px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(7,5,26,.92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 30px 16px; animation: fadeIn .4s forwards; opacity: 0; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; width: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 16px; right: 20px; font-size: 40px; color: var(--gold2); width: 48px; height: 48px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features, .plans { grid-template-columns: repeat(2, 1fr); }
  .book-wrap { grid-template-columns: 1fr; gap: 40px; }
  .calc { grid-template-columns: 1fr; gap: 30px; }
  .calc-right { order: -1; max-width: 480px; margin: 0 auto; width: 100%; position: relative; top: 0; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; flex-direction: column; justify-content: center; align-items: center; gap: 26px; background: rgba(11,8,32,.97); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; margin: 0; }
  .nav-links a { font-family: var(--serif); font-size: 34px; color: var(--gold3); }
  .nav.is-menu .nav-links { opacity: 1; visibility: visible; }
  .nav-cta { display: none; }
  .burger { display: block; z-index: 2; }
  .hero-vignette { background: linear-gradient(0deg, var(--night) 0%, rgba(11,8,32,.55) 45%, rgba(11,8,32,.25) 100%); }
  .hero-inner { padding-top: 46vh; padding-bottom: 80px; }
  .compare { grid-template-columns: 1fr; }
  .compare-vs { text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 50px; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .features, .plans { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 18px 28px; }
  .hero-stats b { font-size: 26px; }
  .section-head { margin-bottom: 40px; }
  .book-stage { height: 440px; }
  .book { --w: 250px; --h: 354px; --t: 26px; }
  .book-shadow { width: 270px; margin-left: -135px; }
  .pages-flow { height: 470px; }
  .pf-item { width: 260px; margin-left: -130px; }
  .pf-btn { width: 44px; height: 44px; font-size: 24px; }
  .tcard { flex-basis: 200px; }
  .checklist li { font-size: 19px; }
  .faq summary { font-size: 20px; padding: 20px 58px 20px 22px; }
  .tabs { justify-content: flex-start; }
  .calc-form .btn { width: 100%; }
  .compare-item { padding: 26px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* книга: место под открытую обложку */
@media (min-width: 1025px) { .book-stage { justify-items: end; padding-right: 40px; } .book-shadow { left: auto; right: 25px; margin: 0; } .book-hint { text-align: right; padding-right: 110px; } }
@media (max-width: 1024px) { .book.is-open { translate: 45% 0; } }

/* реквизиты в подвале — свёрнуты */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: 8px; }
.footer-bottom .footer-seller { margin: 0; }
.footer-req summary { cursor: pointer; list-style: none; color: rgba(181,172,214,.55); font-size: 12px; text-decoration: underline dotted; text-underline-offset: 3px; }
.footer-req summary::-webkit-details-marker { display: none; }
.footer-req summary:hover { color: var(--gold2); }
.footer-req p { margin: 6px 0 0; font-size: 12px; color: rgba(181,172,214,.75); }
