/* ARKANOLOGIC · сайт. Ночное небо, золото и хрустальная бабочка из фирменного набора.
   Без сборщика и библиотек: один файл стилей, один скрипт. Всё движение отключается
   при «уменьшить движение» в системе. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/site/fonts/onest-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/site/fonts/onest-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oranienbaum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/site/fonts/oranienbaum-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oranienbaum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/site/fonts/oranienbaum-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122; }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --night: #0c0a1c;
  --ink: #141130;
  --navy: #1e1b3d;
  --navy-2: #27225a;
  --gold: #e3be7c;
  --gold-2: #d6ae63;
  --gold-hi: #fdf3d9;
  --gold-lo: #a97d3e;
  --mint: #9ff0d4;
  --rose: #ff8fb1;
  --text: #efe9f8;
  --muted: #b6aed2;
  --dim: #8d86ad;
  --line: rgba(227, 190, 124, 0.24);
  --line-2: rgba(239, 233, 248, 0.1);
  --card: rgba(24, 20, 56, 0.62);
  --ff-d: "Oranienbaum", "Didot", "Bodoni 72", "Times New Roman", serif;
  --ff-b: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(16px, 4.4vw, 56px);
  --max: 1240px;
  --hdr: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  /* фон только у html: фон body перекрыл бы небо и туманность, они лежат ниже по слоям */
  font: 400 17px/1.62 var(--ff-b); color: var(--text); background: transparent;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: rgba(227, 190, 124, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1b1433; text-decoration: none; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* ---------- небо ---------- */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.nebula { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(123, 92, 255, 0.22), transparent 70%),
    radial-gradient(50% 45% at 12% 62%, rgba(201, 75, 208, 0.14), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(79, 195, 247, 0.08), transparent 70%),
    linear-gradient(180deg, #17133a 0%, var(--navy) 30%, #120f2b 70%, var(--night) 100%);
}
.nebula::before { content: ""; position: absolute; inset: -20%;
  background: radial-gradient(35% 30% at 30% 30%, rgba(143, 107, 255, 0.16), transparent 70%), radial-gradient(30% 28% at 72% 70%, rgba(255, 143, 177, 0.1), transparent 70%);
  animation: nebula 38s ease-in-out infinite alternate; }
.nebula::after { content: ""; position: absolute; inset: 0; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes nebula { to { transform: translate3d(4%, -3%, 0) rotate(6deg) scale(1.08); } }

/* ---------- типографика ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 500 12px/1.3 var(--ff-b); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-hi), var(--gold-2)); box-shadow: 0 0 12px rgba(227, 190, 124, 0.8); }
.h2 { margin: 16px 0 20px; font: 400 clamp(38px, 5.6vw, 76px)/1.03 var(--ff-d); letter-spacing: -0.005em; text-wrap: balance; }
.h3 { font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--ff-d); text-wrap: balance; }
em, .gold { font-style: normal; color: var(--gold);
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 28%, #f8dfa8 50%, var(--gold-2) 72%, var(--gold-hi) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: goldFlow 9s linear infinite; }
@keyframes goldFlow { to { background-position: -220% 0; } }
.lead { max-width: 660px; margin: 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--muted); }

/* ---------- кнопки ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.035);
  font: 500 15px/1 var(--ff-b); letter-spacing: 0.01em; color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, color 0.3s, background 0.3s; }
.btn svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.btn:hover { border-color: rgba(227, 190, 124, 0.6); color: var(--gold-hi); }
.btn-gold { overflow: hidden; border-color: transparent; color: #1d1636; font-weight: 600;
  background: linear-gradient(135deg, #fff3d6 0%, #edcd8f 30%, var(--gold) 55%, #c39150 100%);
  box-shadow: 0 12px 34px -12px rgba(227, 190, 124, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(120, 80, 30, 0.35); }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.75) 50%, transparent 68%); transform: translateX(-130%); animation: shine 5s var(--ease-io) 1.8s infinite; }
.btn-gold:hover { color: #140f2a; transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(227, 190, 124, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.btn-ghost { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }
@keyframes shine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* ---------- шапка ---------- */
.hdr { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--hdr); display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.hdr.is-scrolled { background: rgba(12, 10, 28, 0.74); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line-2); }
.hdr-logo { flex: none; display: block; }
.hdr-logo img { height: 17px; width: auto; }
.hdr-nav { display: none; margin-left: auto; gap: 28px; }
.hdr-nav a { position: relative; font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.hdr-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.hdr-nav a:hover { color: var(--gold-hi); }
.hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-cta { margin-left: auto; height: 40px; padding: 0 16px; font-size: 14px; border-color: rgba(227, 190, 124, 0.5); color: var(--gold-hi); }
.hdr-cta svg { width: 17px; height: 17px; }
.hdr-burger { display: grid; place-content: center; gap: 7px; width: 42px; height: 42px; flex: none; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.hdr-burger span { display: block; width: 18px; height: 1.5px; background: var(--gold-hi); transition: transform 0.4s var(--ease); }
.hdr-burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (max-width: 400px) { .hdr { gap: 12px; } .hdr-cta span { display: none; } .hdr-cta { width: 42px; padding: 0; } }
@media (min-width: 1100px) {
  :root { --hdr: 76px; }
  .hdr-logo img { height: 19px; }
  .hdr-nav { display: flex; }
  .hdr-cta { margin-left: 8px; }
  .hdr-burger { display: none; }
}

.menu { position: fixed; z-index: 45; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: calc(var(--hdr) + 24px) var(--pad) calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(80% 60% at 70% 20%, rgba(123, 92, 255, 0.2), transparent 70%), rgba(12, 10, 28, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font: 400 clamp(34px, 9vw, 52px)/1.15 var(--ff-d); color: var(--text); text-decoration: none; opacity: 0; transform: translateY(18px); animation: menuIn 0.6s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
.menu nav a:hover { color: var(--gold); }
.menu .btn { align-self: flex-start; }
.menu-foot { margin: 0; font-size: 14px; color: var(--dim); }
.menu-foot a { color: var(--muted); }
@keyframes menuIn { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* ---------- первый экран ---------- */
.hero { position: relative; display: grid; grid-template-areas: "stage" "copy"; align-items: center; justify-items: center; gap: 4px; min-height: 100svh;
  max-width: 1480px; margin: 0 auto; padding: calc(var(--hdr) + 8px) var(--pad) 72px; overflow: clip; text-align: center; }
.hero-stage { grid-area: stage; position: relative; width: min(86vw, 41svh, 560px); aspect-ratio: 1; perspective: 1500px; }
.hero-copy { grid-area: copy; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 640px; }

.rings { position: absolute; inset: -3%; width: 106%; height: 106%; overflow: visible; }
.ring { fill: none; stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) 0.2s forwards; }
.ring-1 { stroke: url(#gRose); }
.ring-3 { stroke: rgba(227, 190, 124, 0.32); animation-delay: 0.5s; }
.axis { stroke: rgba(227, 190, 124, 0.3); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) 0.9s forwards; }
.chev { fill: none; stroke: rgba(227, 190, 124, 0.42); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) 1.3s forwards; }
.chev-2 { stroke: rgba(255, 143, 177, 0.32); animation-delay: 1.5s; }
.ring-spin { transform-origin: 500px 500px; animation: spin 160s linear infinite; }
.ring-dots { fill: none; stroke: rgba(253, 243, 217, 0.72); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 11.1; opacity: 0; animation: fadeIn 2s ease 1.2s forwards; }
.ticks { transform-origin: 500px 500px; animation: spin 240s linear infinite reverse; }
.ring-ticks { fill: none; stroke: rgba(227, 190, 124, 0.3); stroke-width: 9; stroke-dasharray: 0.8 23; opacity: 0; animation: fadeIn 2s ease 1.6s forwards; }
.ring-stars path { fill: var(--gold-hi); transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
.ring-stars path + path { animation-delay: 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0.55; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.08); } }

/* перспектива на самой бабочке: любой фильтр или маска выше по цепочке сплющил бы взмах крыльев */
.fly { position: absolute; left: 1%; right: 1%; top: 50%; aspect-ratio: 1600 / 1206; translate: 0 -47%; perspective: 1400px;
  opacity: 0; animation: flyIn 1.8s var(--ease) 0.35s forwards, hover 7s ease-in-out 2.2s infinite; }
.fly-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(14deg); }
.wing { position: absolute; inset: 0; transform-origin: 50% 50%; backface-visibility: visible; will-change: transform; }
.wing img { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 40px rgba(20, 8, 60, 0.55)); }
.wing-l { clip-path: inset(0 49.7% 0 0); animation: flapL 6.4s var(--ease-io) 2s infinite; }
.wing-r { clip-path: inset(0 0 0 49.7%); animation: flapR 6.4s var(--ease-io) 2s infinite; }
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  -webkit-mask: url(/site/img/butterfly-900.webp) center / 100% 100% no-repeat; mask: url(/site/img/butterfly-900.webp) center / 100% 100% no-repeat;
  background: linear-gradient(104deg, transparent 36%, rgba(255, 255, 255, 0.85) 46%, rgba(255, 226, 160, 0.6) 51%, rgba(160, 230, 255, 0.4) 55%, transparent 64%) 130% 0 / 320% 100% no-repeat;
  animation: sheen 6.4s var(--ease-io) 2s infinite; }
.fly-glow { position: absolute; inset: 6% 12%; z-index: -1; border-radius: 50%; transform: translateZ(-60px);
  background: radial-gradient(closest-side, rgba(143, 107, 255, 0.42), rgba(201, 75, 208, 0.16) 55%, transparent 76%); animation: glow 6.4s var(--ease-io) 2s infinite; }
@keyframes flyIn { from { opacity: 0; transform: translateY(40px) scale(0.86); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hover { 0%, 100% { translate: 0 -47%; } 50% { translate: 0 -50%; } }
@keyframes flapL { 0%, 100% { transform: rotateY(0); } 26% { transform: rotateY(40deg); } 60% { transform: rotateY(2deg); } 66% { transform: rotateY(0); } }
@keyframes flapR { 0%, 100% { transform: rotateY(0); } 26% { transform: rotateY(-40deg); } 60% { transform: rotateY(-2deg); } 66% { transform: rotateY(0); } }
@keyframes sheen { 0%, 12% { background-position: 130% 0; } 48%, 100% { background-position: -40% 0; } }
@keyframes glow { 0%, 100% { opacity: 0.75; transform: translateZ(-60px) scale(1); } 26% { opacity: 1; transform: translateZ(-60px) scale(1.06); } }

.mini { position: absolute; width: 9%; height: auto; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(10, 4, 40, 0.5)); }
.mini-1 { left: 74%; top: 10%; animation: drift1 17s ease-in-out 2.4s infinite, flutter 0.42s ease-in-out infinite; }
.mini-2 { left: 62%; top: 22%; width: 6%; animation: drift2 22s ease-in-out 5s infinite, flutter 0.36s ease-in-out infinite; }
.mini-3 { left: 18%; top: 72%; width: 5.5%; animation: drift3 26s ease-in-out 9s infinite, flutter 0.4s ease-in-out infinite; }
@keyframes flutter { 50% { scale: 0.55 1; } }
@keyframes drift1 { 0% { opacity: 0; translate: 0 0; rotate: -14deg; } 10% { opacity: 0.95; } 50% { translate: 60px -70px; rotate: 6deg; } 85% { opacity: 0.9; } 100% { opacity: 0; translate: 140px -180px; rotate: -10deg; } }
@keyframes drift2 { 0% { opacity: 0; translate: 0 0; rotate: 10deg; } 12% { opacity: 0.85; } 55% { translate: -50px -90px; rotate: -12deg; } 88% { opacity: 0.8; } 100% { opacity: 0; translate: 30px -200px; rotate: 8deg; } }
@keyframes drift3 { 0% { opacity: 0; translate: 0 0; rotate: -20deg; } 15% { opacity: 0.8; } 50% { translate: -40px -120px; rotate: -4deg; } 85% { opacity: 0.75; } 100% { opacity: 0; translate: 20px -260px; rotate: -18deg; } }

.hero-title { margin: 14px 0 6px; font: 400 clamp(54px, 15vw, 132px)/0.9 var(--ff-d); letter-spacing: -0.012em; }
.hero-title .ln { display: block; overflow: hidden; padding: 0.02em 0.04em 0.08em; }
.hero-title .ln > span { display: inline-block; }
.hero-sub { margin: 0; font: 400 clamp(22px, 5.4vw, 34px)/1.15 var(--ff-d); color: var(--gold); }
.hero-lead { max-width: 520px; margin: 18px 0 28px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line-2); text-align: left; }
.hero-facts b { display: block; font: 400 clamp(34px, 4vw, 46px)/1 var(--ff-d); color: var(--gold-hi); }
.hero-facts span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--dim); }
.hero-in { animation: heroIn 1.2s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-title .hero-in { animation-name: lineIn; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lineIn { from { transform: translateY(108%); } to { transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; display: none; width: 22px; height: 38px; margin-left: -11px; border: 1px solid var(--line); border-radius: 12px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 559px) {
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero .eyebrow { letter-spacing: 0.2em; font-size: 11px; }
  .hero .eyebrow::before { display: none; }
  .hero-lead { margin: 14px 0 22px; }
  .hero-facts { margin-top: 26px; }
}
@media (min-width: 960px) {
  .hero { grid-template-areas: "copy stage"; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); justify-items: stretch; gap: 2vw; text-align: left; padding-bottom: 56px; }
  .hero-copy { align-items: flex-start; max-width: 600px; }
  .hero-stage { width: 100%; max-width: 780px; justify-self: end; }
  .hero-cta { justify-content: flex-start; }
  .hero-title { font-size: clamp(64px, 7.1vw, 116px); }
  .scroll-cue { display: block; }
}
@media (min-width: 960px) and (max-height: 760px) { .hero-title { font-size: clamp(54px, 7.4vw, 104px); } .hero-facts { margin-top: 24px; } }

/* ---------- бегущая строка ---------- */
.marquee { position: relative; overflow: clip; padding: 22px 0; border-block: 1px solid var(--line-2);
  background: linear-gradient(90deg, rgba(227, 190, 124, 0.04), rgba(123, 92, 255, 0.06), rgba(227, 190, 124, 0.04));
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 46s linear infinite; }
.marquee span { font: 400 clamp(30px, 4vw, 48px)/1 var(--ff-d); color: var(--gold-hi); white-space: nowrap; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1px rgba(227, 190, 124, 0.8); }
.marquee b svg { width: 18px; height: 18px; fill: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.sec { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--pad); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 76px); }
.js [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(5px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* методика */
.pillars { display: grid; gap: 18px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.pillar { position: relative; overflow: hidden; padding: 34px 30px 30px; border: 1px solid var(--line-2); border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), var(--card);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease); transform-style: preserve-3d; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), #c94bd0, transparent); opacity: 0.7; }
.pillar::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 190, 124, 0.13), transparent 60%); }
.pillar:hover { border-color: rgba(227, 190, 124, 0.35); box-shadow: 0 30px 80px -40px rgba(123, 92, 255, 0.55); }
.pillar:hover::after { opacity: 1; }
.pillar-n { display: block; margin-bottom: 26px; font: 400 58px/1 var(--ff-d); color: var(--gold); opacity: 0.9; }
.pillar h3 { margin-bottom: 12px; font: 600 21px/1.3 var(--ff-b); color: var(--gold-hi); }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

.quote { position: relative; max-width: 980px; margin: clamp(70px, 10vw, 130px) auto 0; text-align: center; }
.quote::before { content: "«"; position: absolute; left: 50%; top: -0.78em; transform: translateX(-50%); font: 400 clamp(140px, 20vw, 240px)/1 var(--ff-d); color: rgba(227, 190, 124, 0.14); pointer-events: none; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font: 400 clamp(30px, 4.4vw, 58px)/1.14 var(--ff-d); text-wrap: balance; }
.quote figcaption { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.quote .rule { width: 46px; height: 1px; background: var(--gold); }

/* ---------- 13 энергий: сцена с прокруткой ---------- */
.energies { position: relative; height: 430vh; }
.en-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: 10px;
  max-width: var(--max); margin: 0 auto; padding: calc(var(--hdr) + 6px) var(--pad) 28px; }
.en-visual { position: relative; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.constellation { width: auto; height: 100%; max-width: 100%; overflow: visible; }
.en-copy { position: relative; width: 100%; max-width: 560px; text-align: center; }
.en-steps { position: relative; display: grid; margin-top: 12px; }
.en-step { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.en-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.en-step h2 { margin-bottom: 12px; }
.en-step p { margin: 0 auto; max-width: 480px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); }
.en-step .btn { margin-top: 20px; }
.free-list { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.free-list li { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.free-list b { font: 400 26px/1.1 var(--ff-d); color: var(--mint); }
.free-list span { color: var(--muted); font-size: 16px; }
.en-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.en-dots li { width: 22px; height: 3px; border-radius: 2px; background: rgba(239, 233, 248, 0.16); transition: background 0.4s, width 0.4s var(--ease); }
.en-dots li.is-on { width: 40px; background: var(--gold); }
@media (min-width: 900px) {
  .en-sticky { grid-template-rows: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 5vw; padding-bottom: 40px; }
  .en-visual { height: calc(100svh - var(--hdr) - 60px); }
  .en-copy { text-align: left; }
  .en-step p { margin: 0; }
  .free-list li { justify-content: flex-start; }
  .en-dots { justify-content: flex-start; }
}

.cn-ring { fill: none; stroke: rgba(227, 190, 124, 0.16); stroke-width: 1.5; }
.cn-dots { stroke: rgba(253, 243, 217, 0.42); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 15; }
.cn-ghost { opacity: 0.16; transition: opacity 1s var(--ease); }
.cl { stroke: rgba(227, 190, 124, 0.62); stroke-width: 2; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: calc(var(--len) * (1 - var(--lp, 0))); transition: stroke 0.8s; }
.st { opacity: var(--so, 0); }
.st-halo { fill: url(#gHalo); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.st-ring { fill: rgba(16, 13, 40, 0.66); stroke: rgba(227, 190, 124, 0.55); stroke-width: 2; transition: stroke 0.6s, stroke-width 0.6s; }
.st-core { fill: var(--gold-hi); transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--ease), fill 0.6s; }
.st-label { font: 400 38px/1 var(--ff-d); fill: var(--gold-hi); text-anchor: middle; opacity: 0; paint-order: stroke; stroke: rgba(12, 10, 28, 0.88); stroke-width: 10px; stroke-linejoin: round; transition: opacity 0.7s var(--ease); }
.st-q { font: 400 32px/1 var(--ff-d); fill: rgba(239, 233, 248, 0.75); text-anchor: middle; opacity: 0; transition: opacity 0.6s; }
.st-accent .st-ring { stroke: var(--gold); stroke-width: 3; }
.energies.s1 .st-free .st-halo { fill: url(#gFree); opacity: 1; transform: scale(1); animation: halo 3.4s ease-in-out infinite; }
.energies.s1 .st-free .st-ring { stroke: var(--mint); stroke-width: 3.5; }
.energies.s1 .st-free .st-core { fill: #fff; transform: scale(1.25); }
.energies.s1 .st-label { opacity: 1; }
.energies.s2 .st-q { opacity: 1; }
.energies.s2 .st-locked .st-core { transform: scale(0); }
.energies.s2 .st-accent .st-halo { opacity: 1; transform: scale(1.25); animation: halo 3.4s ease-in-out infinite; }
.energies.s2 .st-accent .st-core { transform: scale(1.5); }
.energies.s3 .cl { stroke: rgba(253, 243, 217, 0.95); }
.energies.s3 .cn-ghost { opacity: 0.42; }
.energies.s3 .st-locked .st-halo { opacity: 0.8; transform: scale(0.9); }
.energies.s3 .st-locked .st-ring { stroke: var(--gold); }
@keyframes halo { 50% { opacity: 0.55; } }
/* без скрипта и без движения - схема целиком, шаги списком */
.energies.static { height: auto; }
.energies.static .en-sticky { position: relative; height: auto; padding-block: 90px; }
.energies.static .en-visual { height: min(80vh, 760px); }
.energies.static .en-step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 28px; }
.energies.static .en-dots { display: none; }
.energies.static .st { --so: 1; }
.energies.static .cl { --lp: 1; }
html:not(.js) .energies { height: auto; }
html:not(.js) .en-sticky { position: relative; height: auto; }
html:not(.js) .en-visual { height: min(80vh, 760px); }
html:not(.js) .en-step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 28px; }
html:not(.js) .st { --so: 1; }
html:not(.js) .cl { --lp: 1; }
html:not(.js) .st-label { opacity: 1; }

/* ---------- как это работает ---------- */
.how-grid { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
.how-grid .sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 960px) { .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); } }
.steps { margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 26px 0; }
.step::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(227, 190, 124, 0.08)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.step.in::before, html:not(.js) .step::before { transform: none; }
.step-n { font: 400 42px/1 var(--ff-d); color: var(--gold); }
.step h3 { margin-bottom: 6px; font: 600 20px/1.3 var(--ff-b); color: var(--gold-hi); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.phone { justify-self: center; width: min(100%, 360px); }
.phone-frame { position: relative; display: flex; flex-direction: column; height: 680px; max-height: 82svh; padding: 12px; border-radius: 46px; background: #0d0b20;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 50px 120px -40px rgba(123, 92, 255, 0.6), 0 0 0 7px #19163a, 0 0 0 8px rgba(227, 190, 124, 0.35); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line-2); }
.phone-ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); }
.phone-ava img { width: 100%; height: 100%; object-fit: cover; }
.phone-name { display: grid; font: 600 14px/1.2 var(--ff-b); letter-spacing: 0.06em; }
.phone-name small { font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--dim); }
.chat { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 34px 34px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(123, 92, 255, 0.14), transparent 70%), #110e27; }
.chat-in { display: flex; flex-direction: column; gap: 9px; padding: 14px 12px 18px; transition: transform 0.8s var(--ease); }
.msg { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.42; color: #ece6fa; }
.msg p { margin: 0; }
.msg.bot { align-self: flex-start; background: #221e44; border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #6a4fd8, #9a5ad8); border-bottom-right-radius: 5px; font-weight: 500; }
.msg-img { padding: 4px; }
.msg-img img { width: 100%; height: auto; border-radius: 12px; }
.msg-img p { padding: 7px 8px 3px; }
.msg-scheme { max-width: 74%; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-chips p { width: 100%; margin-bottom: 2px; }
.msg-chips span { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(159, 240, 212, 0.5); color: var(--mint); font-size: 12px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: dots 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.js .phone.ready .msg { display: none; }
.js .phone.ready .msg.shown { display: block; animation: msgIn 0.55s var(--ease) both; }
.js .phone.ready .msg.typing.shown, .js .phone.ready .msg-chips.shown { display: flex; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- услуги ---------- */
.plans { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 980px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 36px 30px 30px; border: 1px solid var(--line-2); border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), var(--card); transition: box-shadow 0.5s var(--ease), border-color 0.4s; }
.plan:hover { border-color: rgba(227, 190, 124, 0.32); box-shadow: 0 40px 90px -50px rgba(123, 92, 255, 0.7); }
.plan-k { margin: 0; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.plan h3 { font: 400 34px/1.08 var(--ff-d); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.plan-price b { font: 400 clamp(54px, 5.4vw, 68px)/1 var(--ff-d); color: var(--gold-hi); font-weight: 400; }
.plan-price span { font: 400 30px/1 var(--ff-d); color: var(--gold); }
.plan ul { flex: 1; display: grid; align-content: start; gap: 11px; margin: 8px 0 22px; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 0.58em; width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-hi), var(--gold-2)); }
.plan .btn { width: 100%; }
.plan-main { padding: 46px 32px 34px; border: 1.5px solid transparent;
  background: linear-gradient(180deg, #1f1a4a, #15112f) padding-box, conic-gradient(from var(--ang), var(--gold), #c94bd0, #7b5cff, #4fc3f7, var(--gold-hi), var(--gold)) border-box;
  animation: spinBorder 9s linear infinite; box-shadow: 0 50px 110px -50px rgba(201, 75, 208, 0.65); }
.plan-main li { color: #d7cfee; }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 16px; border-radius: 999px; font: 600 11px/1.2 var(--ff-b); letter-spacing: 0.24em; text-transform: uppercase; color: #1d1636; background: linear-gradient(135deg, #fff3d6, var(--gold)); box-shadow: 0 8px 22px -8px rgba(227, 190, 124, 0.8); }
@keyframes spinBorder { to { --ang: 360deg; } }
.pay-note { max-width: 760px; margin: 36px auto 0; text-align: center; font-size: 14px; color: var(--dim); }
.pay-note a { color: var(--gold); text-underline-offset: 3px; }

/* ---------- с чем приходят ---------- */
.topic-grid { display: grid; gap: 14px; }
@media (min-width: 620px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.topic { position: relative; overflow: hidden; padding: 30px 28px; border-radius: 24px; border: 1px solid var(--line-2); background: rgba(20, 17, 48, 0.5); transition: border-color 0.4s, transform 0.5s var(--ease); }
.topic::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; background: linear-gradient(180deg, var(--gold), #c94bd0); transform: scaleY(0.25); opacity: 0.6; transition: transform 0.6s var(--ease), opacity 0.4s; }
.topic:hover { border-color: rgba(227, 190, 124, 0.3); transform: translateY(-4px); }
.topic:hover::before { transform: none; opacity: 1; }
.topic h3 { margin-bottom: 8px; font: 400 30px/1.1 var(--ff-d); color: var(--gold-hi); }
.topic p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- автор ---------- */
.author-grid { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (min-width: 940px) { .author-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.author-art { display: grid; justify-items: center; gap: 26px; }
.author-ring { position: relative; width: min(84vw, 440px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 107, 255, 0.28), rgba(20, 17, 48, 0.2) 70%, transparent 100%); }
.author-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 90s linear infinite; }
.author-ring circle { fill: none; stroke: rgba(227, 190, 124, 0.45); stroke-width: 1.2; }
.author-ring circle.d { stroke: rgba(253, 243, 217, 0.6); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 12; }
.author-ring img { width: 78%; animation: hoverSoft 8s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(20, 8, 60, 0.6)); }
.author-feel { width: min(80%, 360px); opacity: 0.85; }
@keyframes hoverSoft { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.author-copy p:not(.eyebrow):not(.lead) { color: var(--muted); }
.author-copy .lead { margin-bottom: 18px; color: #d9d1ee; }
.formats { display: grid; gap: 0; margin: 28px 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.formats li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.formats b { font: 400 26px/1.1 var(--ff-d); color: var(--gold-hi); }
.formats span { color: var(--dim); font-size: 15px; }
.author-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- вопросы ---------- */
.faq .sec-head { margin-inline: auto; text-align: center; }
.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 2px; cursor: pointer; list-style: none; font: 400 clamp(21px, 2.2vw, 27px)/1.25 var(--ff-d); transition: color 0.3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-hi); }
.faq-item summary i { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: transform 0.5s var(--ease), background 0.3s; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--gold); }
.faq-item summary i::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq-item[open] summary i { transform: rotate(180deg); background: rgba(227, 190, 124, 0.1); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 52px 26px 2px; }
.faq-a p { margin: 0; color: var(--muted); }
.faq-a a { color: var(--gold); text-underline-offset: 3px; }
.faq-item[open] .faq-a { animation: faqIn 0.5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- финал ---------- */
.final { position: relative; display: grid; place-items: center; min-height: 86svh; padding: 120px var(--pad); overflow: clip; text-align: center; }
.final-glow { position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.3), rgba(201, 75, 208, 0.12) 50%, transparent 72%); animation: breathe 8s ease-in-out infinite; }
.final-fly { position: absolute; left: 50%; top: 50%; width: min(980px, 128vw); transform: translate(-50%, -50%); opacity: 0.16; pointer-events: none; animation: breathe 8s ease-in-out infinite; }
.final-copy { position: relative; max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.final-copy .lead { margin-bottom: 32px; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.05); } }

/* ---------- подвал ---------- */
.ftr { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 10, 28, 0.4), rgba(8, 7, 18, 0.9)); }
.ftr-in { display: grid; gap: 40px 32px; max-width: var(--max); margin: 0 auto; padding: 72px var(--pad) 40px; }
@media (min-width: 700px) { .ftr-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-brand { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .ftr-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.9fr) minmax(0, 1.3fr); } .ftr-brand { grid-column: auto; } }
.ftr-logo img { width: 210px; height: auto; }
.ftr-tag { margin: 12px 0 14px; font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); }
.ftr-about { max-width: 360px; color: var(--dim); font-size: 14px; }
.ftr-col h3 { margin-bottom: 14px; font: 500 12px/1.3 var(--ff-b); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.ftr-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ftr-col a { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color 0.3s; }
.ftr-contacts a { white-space: nowrap; }
.ftr-col a:hover { color: var(--gold-hi); }
.ftr-col svg { width: 16px; height: 16px; flex: none; fill: currentColor; color: var(--gold); }
.ftr-legal { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); color: var(--dim); font-size: 12.5px; line-height: 1.55; }
.ftr-legal p { margin: 0 0 6px; }
.page-home .ftr-legal { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .page-home .ftr-legal { padding-bottom: 40px; } }

/* плавающая кнопка на телефоне */
.dock { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 999px;
  color: #1d1636; font: 600 16px/1 var(--ff-b); text-decoration: none; background: linear-gradient(135deg, #fff3d6, var(--gold) 55%, #c39150);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.3) inset; transform: translateY(160%); transition: transform 0.55s var(--ease); }
.dock svg { width: 20px; height: 20px; fill: currentColor; }
.dock.show { transform: none; }
@media (min-width: 960px) { .dock { display: none; } }

.cookie { position: fixed; z-index: 42; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; max-width: 460px; padding: 14px 14px 14px 18px;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 13, 38, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); animation: cookieIn 0.6s var(--ease) both; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cookie a { color: var(--gold); }
.cookie .btn { height: 38px; padding: 0 16px; font-size: 13px; flex: none; }
.dock-on .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 959px) {
  .cookie { gap: 10px; padding: 9px 9px 9px 14px; border-radius: 14px; }
  .cookie p { font-size: 12px; line-height: 1.4; }
  .cookie .btn { height: 32px; padding: 0 12px; font-size: 12px; }
  /* место под плавающую кнопку: текст шага не должен прятаться под ней */
  .page-home .en-sticky { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) { .page-home .cookie, .cookie { left: 24px; right: auto; bottom: 24px; } }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- документы ---------- */
.doc-wrap { max-width: 1180px; margin: 0 auto; padding: calc(var(--hdr) + 40px) var(--pad) 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.doc-head { max-width: 900px; margin-bottom: 44px; padding-bottom: 30px; border-bottom: 1px solid var(--line-2); }
.doc-head h1 { font: 400 clamp(34px, 4.8vw, 60px)/1.06 var(--ff-d); text-wrap: balance; }
.doc-meta { margin: 14px 0 20px; color: var(--dim); font-size: 14px; }
.doc-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }
.doc-toc { align-self: start; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(20, 17, 48, 0.5); font-size: 14px; }
@media (min-width: 1000px) { .doc-toc { position: sticky; top: calc(var(--hdr) + 24px); max-height: calc(100vh - var(--hdr) - 48px); overflow: auto; } }
.doc-toc p { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.doc-toc ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--dim); }
.doc-toc a { color: var(--muted); text-decoration: none; line-height: 1.35; transition: color 0.3s; }
.doc-toc a:hover, .doc-toc a.is-on { color: var(--gold-hi); }
.doc-body { max-width: 780px; min-width: 0; font-size: 16.5px; line-height: 1.72; color: #e1daf0; overflow-wrap: break-word; }
.doc-body .lead { max-width: none; margin-bottom: 26px; font-size: 18px; color: #ebe4f7; }
.doc-body h2 { margin: 44px 0 16px; font: 400 clamp(26px, 2.6vw, 32px)/1.15 var(--ff-d); color: var(--gold-hi); scroll-margin-top: calc(var(--hdr) + 20px); }
.doc-body p { margin: 0 0 12px; }
.doc-body .n { color: var(--gold); font-variant-numeric: tabular-nums; margin-right: 2px; }
.doc-body b { color: var(--gold-hi); font-weight: 600; }
.doc-body a { color: var(--gold); text-underline-offset: 3px; }
.doc-body ul { margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body li::marker { color: var(--gold); }
.table-wrap { margin: 6px 0 20px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(20, 17, 48, 0.45); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc-body th, .doc-body td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.doc-body tr:last-child th, .doc-body tr:last-child td { border-bottom: 0; }
.doc-body thead th { font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(227, 190, 124, 0.05); }
.doc-body .kv th { width: 36%; font-weight: 500; color: var(--dim); }
.doc-body .kv td { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .doc-body table.cards thead { display: none; }
  .doc-body table.cards, .doc-body table.cards tbody, .doc-body table.cards tr, .doc-body table.cards td { display: block; width: 100%; }
  .doc-body table.cards tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .doc-body table.cards td { padding: 4px 0; border: 0; }
  .doc-body table.cards td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
  .doc-body .kv th, .doc-body .kv td { display: block; width: 100%; padding: 4px 16px; border: 0; }
  .doc-body .kv th { padding-top: 12px; font-size: 12.5px; }
  .doc-body .kv td { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
}
.doc-others { margin-top: 80px; }
.doc-others h2 { margin-bottom: 18px; font: 400 30px/1.1 var(--ff-d); }
.doc-others ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .doc-others ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .doc-others ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.doc-others a, .docs-card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(20, 17, 48, 0.5); color: var(--muted); font-size: 14px; text-decoration: none; transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.doc-others a:hover, .docs-card:hover { border-color: rgba(227, 190, 124, 0.4); color: var(--gold-hi); transform: translateY(-2px); }
.doc-others svg, .docs-card svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.docs-group { margin-bottom: 52px; }
.docs-group h2 { margin-bottom: 18px; font: 400 32px/1.1 var(--ff-d); color: var(--gold-hi); }
.docs-cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .docs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .docs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.docs-card { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; align-content: start; gap: 6px 14px; padding: 22px; }
/* за длинным текстом документа небо тише: читать важнее, чем любоваться */
.page-doc .sky { opacity: 0.45; }
.docs-card svg { grid-row: span 2; margin-top: 2px; }
.docs-card-t { color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.35; }
.docs-card-s { color: var(--dim); font-size: 14px; line-height: 1.45; }

/* ---------- после оплаты, 404 ---------- */
.notice { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92svh; max-width: 720px; margin: 0 auto; padding: calc(var(--hdr) + 30px) var(--pad) 70px; text-align: center; }
.notice-fly { position: relative; width: min(64vw, 300px); margin-bottom: 18px; animation: hoverSoft 7s ease-in-out infinite; }
.notice-fly::before { content: ""; position: absolute; inset: -20%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 107, 255, 0.4), transparent 75%); }
.tone-ok .notice-fly::before { background: radial-gradient(closest-side, rgba(159, 240, 212, 0.32), transparent 75%); }
.tone-fail .notice-fly::before { background: radial-gradient(closest-side, rgba(255, 143, 177, 0.32), transparent 75%); }
.notice h1 { margin: 12px 0 14px; font: 400 clamp(44px, 7vw, 76px)/1 var(--ff-d); }
.tone-ok .eyebrow { color: var(--mint); }
.tone-fail .eyebrow { color: var(--rose); }
.notice-text { max-width: 560px; color: var(--muted); font-size: 18px; }
.notice-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 24px; }
.notice-note { max-width: 520px; color: var(--dim); font-size: 14px; }
.notice-note a { color: var(--gold); }

/* ---------- печать документов ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .sky, .nebula, .hdr, .menu, .ftr, .cookie, .dock, .crumbs, .doc-toc, .doc-others, [data-print], .skip { display: none !important; }
  .doc-wrap { padding: 0; max-width: none; }
  .doc-head { border-color: #999; }
  .doc-head h1, .doc-body h2, .doc-body b, .doc-body .n, .doc-body a, .doc-body thead th, .doc-body .kv th, .doc-body .kv td { color: #000 !important; -webkit-text-fill-color: #000; }
  .doc-body { max-width: none; color: #000; }
  .doc-body .lead { color: #000; }
  .table-wrap { border-color: #999; background: none; overflow: visible; }
  .doc-body th, .doc-body td { border-color: #bbb; }
  .doc-body h2 { break-after: avoid; }
  .doc-body p, .doc-body tr { break-inside: avoid; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .wing, .sheen, .mini, .ring-spin, .ticks, .marquee-track, .fly-glow { animation: none !important; }
  .mini { display: none; }
  .fly { opacity: 1; }
  .ring, .axis, .chev { stroke-dashoffset: 0; }
  .ring-dots, .ring-ticks { opacity: 1; }
  .marquee-track { transform: none; }
}
