/* Ладони — основные стили страницы. Сцена с ладонью — в scene.css. */
:root {
  --bg: #150c24;
  --bg-2: #1d1131;
  --deep: #0d0717;
  --gold: #ecc97f;
  --gold-2: #f9e3ab;
  --gold-3: #c99a4b;
  --ink: #26142c;
  --cream: #fff4df;
  --muted: #cbbdd8;
  --dim: #a596b6;
  --line: rgba(236, 201, 127, .16);
  --line-2: rgba(236, 201, 127, .3);
  --gutter: clamp(16px, 4.2vw, 56px);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(1100px 760px at 78% 6%, rgba(122, 70, 178, .30), transparent 62%),
    radial-gradient(900px 640px at 6% 30%, rgba(236, 201, 127, .05), transparent 60%),
    var(--bg);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ol { margin: 0; padding: 0; list-style: none; }
svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: #6d5531; color: #fff; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); }

.skip { position: absolute; left: 16px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 700; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* Header */
.header { position: relative; z-index: 20; height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; color: var(--gold); font: 400 32px/1 var(--serif); }
.brand > svg { width: 34px; height: 34px; }
.brand small { display: block; margin-top: 6px; font: 700 10px/1.2 var(--sans); letter-spacing: .2em; color: var(--dim); }
.header-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-link:hover { color: var(--gold-2); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px 10px 20px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--gold-2); font-size: 14px; font-weight: 700; background: rgba(236, 201, 127, .06); transition: background .2s, border-color .2s, transform .2s; }
.nav-cta svg { width: 18px; height: 18px; stroke-width: 2; }
.nav-cta:hover { background: rgba(236, 201, 127, .14); border-color: var(--gold); }
.nav-cta-short { display: none; }

/* Buttons */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 9px 9px 9px 26px; border-radius: 16px; font: 800 16px/1.25 var(--sans); letter-spacing: -.005em; text-align: left; transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.btn-gold { color: var(--ink); background: linear-gradient(105deg, #e2b05a 0%, #f8dc9c 46%, #fff0c7 56%, #ebc477 100%); border: 1px solid #ffe7b0; box-shadow: 0 14px 40px -12px rgba(236, 185, 90, .55), 0 0 0 1px rgba(255, 231, 176, .12), inset 0 1px 0 rgba(255, 255, 255, .6); overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; z-index: -1; top: -60%; bottom: -60%; left: -40%; width: 26%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-22deg); animation: btn-shine 6.5s ease-in-out 2.4s infinite; pointer-events: none; }
.btn-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px 0 16px; border-radius: 11px; background: var(--ink); color: var(--gold-2); font: 800 14px/1 var(--sans); letter-spacing: .08em; }
.btn-tag svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.btn-hero { min-height: 72px; padding-left: 30px; font-size: 18px; border-radius: 18px; }
.btn-hero .btn-tag { min-height: 54px; padding-inline: 18px 16px; border-radius: 13px; }
.btn:active { transform: scale(.98); }
@media (hover: hover) {
  .btn-gold:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 20px 50px -12px rgba(236, 185, 90, .7), 0 0 0 1px rgba(255, 231, 176, .2), inset 0 1px 0 rgba(255, 255, 255, .6); }
  .btn:hover .btn-tag svg { transform: translate(2px, -2px); }
}
.btn-hero::before { content: ''; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; box-shadow: 0 0 0 0 rgba(249, 227, 171, .5); animation: btn-pulse 3.2s ease-out 1.6s infinite; }
@keyframes btn-shine { 0%, 62% { left: -40%; } 82%, 100% { left: 125%; } }
@keyframes btn-pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 227, 171, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(249, 227, 171, 0); } }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font: 700 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow-line { width: 28px; height: 1px; background: currentColor; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 24px; min-height: min(860px, calc(100svh - 84px)); padding-block: 28px 20px; }
.hero-copy { position: relative; z-index: 3; max-width: 600px; }
.hero-eyebrow { margin-bottom: 26px; }
h1 { font: 400 clamp(56px, 6.2vw, 98px)/.94 var(--serif); letter-spacing: -.025em; margin-bottom: 26px; text-wrap: balance; }
.h1-line { display: block; }
h1 em { padding-right: .06em; }
.hero-lead { max-width: 30em; color: var(--muted); font-size: 18px; line-height: 1.65; margin-bottom: 34px; }
.hero-action { display: flex; flex-direction: column; align-items: flex-start; }
.action-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--dim); font-size: 13px; line-height: 1.4; }
.action-note svg { width: 16px; height: 16px; stroke-width: 1.8; color: var(--gold); }
.hero-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 40px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-flow li { display: inline-flex; align-items: center; gap: 9px; }
.hero-flow li + li::before { content: ''; width: 34px; height: 1px; margin: 0 14px; background: linear-gradient(90deg, transparent, var(--gold-3), transparent); }
.hero-flow svg { width: 20px; height: 20px; color: var(--gold); stroke-width: 1.6; }

/* Divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 22px; color: var(--gold); }
.divider > span { flex: 1; max-width: 420px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.divider > span:last-child { transform: scaleX(-1); }
.divider svg { width: 26px; height: 26px; animation: spin-slow 24s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Sections */
.section { padding-block: clamp(76px, 10vw, 128px); }
.section-heading { max-width: 700px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-heading .eyebrow { margin-bottom: 20px; }
h2 { font: 400 clamp(42px, 5vw, 72px)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.section-heading > p:last-child:not(.eyebrow) { max-width: 540px; margin: 22px auto 0; color: var(--muted); font-size: 17px; }

/* Line cards */
.line-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.line-card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 18px; border: 1px solid rgba(236, 201, 127, .18); border-radius: 22px; background: linear-gradient(165deg, rgba(64, 38, 90, .55), rgba(29, 17, 46, .55)); box-shadow: inset 0 1px 0 rgba(255, 244, 223, .05); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.line-card::before { content: ''; position: absolute; top: 0; left: 26px; width: 56px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.line-card::after { content: ''; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: radial-gradient(ellipse at 50% 100%, rgba(236, 201, 127, .14), transparent 65%); opacity: 0; transition: opacity .45s; pointer-events: none; }
@media (hover: hover) {
  .line-card:hover { transform: translateY(-6px); border-color: rgba(236, 201, 127, .42); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
  .line-card:hover::after { opacity: 1; }
}
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; color: var(--gold); }
.card-top svg { width: 40px; height: 40px; }
.card-top span { font: 400 22px/1 var(--serif); color: var(--dim); }
.line-card h3 { font: 400 32px/1.05 var(--serif); letter-spacing: -.01em; }
.card-subtitle { margin: 8px 0 14px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.line-card p:not(.card-subtitle) { color: var(--muted); font-size: 15px; line-height: 1.6; }
.line-drawing { width: 100%; height: 64px; margin-top: auto; padding-top: 18px; color: var(--gold); stroke-width: 1.6; overflow: visible; }
.line-drawing path { stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(255, 210, 120, .5)); }
.section-action { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 52px); }

/* Steps */
.steps-section { position: relative; background: linear-gradient(180deg, transparent, rgba(46, 26, 70, .55) 18%, rgba(46, 26, 70, .55) 82%, transparent); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps::before { content: ''; position: absolute; top: 34px; left: 16.6%; right: 16.6%; height: 1px; background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-3)); opacity: .5; transform-origin: left; }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border: 1px solid var(--line-2); border-radius: 50%; background: radial-gradient(circle at 50% 30%, #3a2353, #1d1131); color: var(--gold); box-shadow: 0 0 0 8px var(--bg-2), 0 0 30px rgba(236, 201, 127, .12); }
.step-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.step-num { display: block; margin-bottom: 8px; color: var(--gold); font: 400 20px/1 var(--serif); font-style: italic; }
.steps h3 { margin-bottom: 10px; font: 400 30px/1.1 var(--serif); }
.steps p { max-width: 280px; margin-inline: auto; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-heading .eyebrow { margin-bottom: 20px; }
.faq-heading h2 em { display: block; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-2); }
.faq-icon { position: relative; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .35s var(--ease), background .25s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--gold); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-icon { transform: rotate(45deg); background: rgba(236, 201, 127, .1); }
.faq-list details p { max-width: 560px; padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; }
details[open] p { animation: faq-open .45s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* Final */
.final-section { position: relative; overflow: hidden; padding-block: clamp(96px, 13vw, 168px); text-align: center; isolation: isolate; }
.final-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.final-glow { position: absolute; left: 50%; top: 52%; width: min(900px, 140vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(122, 70, 178, .45), transparent 62%); }
.final-ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(236, 201, 127, .2); transform: translate(-50%, -50%); }
.final-ring-a { width: min(620px, 92vw); background: repeating-conic-gradient(rgba(236, 201, 127, .35) 0deg .5deg, transparent .5deg 6deg); -webkit-mask: radial-gradient(circle, transparent 67%, #000 67.3% 69%, transparent 69.3%); mask: radial-gradient(circle, transparent 67%, #000 67.3% 69%, transparent 69.3%); animation: ring-spin 120s linear infinite; }
.final-ring-b { width: min(470px, 74vw); border-style: dashed; border-color: rgba(236, 201, 127, .22); animation: ring-spin 90s linear infinite reverse; }
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.final-content { display: flex; flex-direction: column; align-items: center; }
.final-icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 22px; }
.final-section h2 { font-size: clamp(48px, 6.4vw, 92px); margin-bottom: 38px; }
.final-section .action-note { justify-content: center; }

/* Footer */
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 32px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer p { text-align: center; line-height: 1.6; }
.brand-small { font-size: 26px; }
.brand-small > svg { width: 28px; height: 28px; }
.footer-age { font-weight: 700; letter-spacing: .08em; }

/* Mobile dock */
.mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 14px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(21, 12, 36, 0), rgba(21, 12, 36, .92) 38%); transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.mobile-dock.is-shown { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.mobile-dock .btn { width: 100%; }

/* Reveal and intro motion */
.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.motion .reveal.visible { opacity: 1; transform: none; }
.motion .line-card.reveal .line-drawing path { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease) calc(var(--d, 0) * 110ms + .35s); }
.motion .line-card.reveal.visible .line-drawing path { stroke-dashoffset: 0; }
.motion .steps.reveal { opacity: 1; transform: none; }
.motion .steps.reveal::before { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.motion .steps.reveal.visible::before { transform: scaleX(1); }
.motion .steps.reveal li { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d) * 260ms + .1s); }
.motion .steps.reveal.visible li { opacity: 1; transform: none; }

.intro .hero-copy > * { animation: rise .95s var(--ease) both; }
.hero-eyebrow { animation-delay: .05s !important; }
.hero-copy h1 { animation-delay: .12s; }
.hero-lead { animation-delay: .24s !important; }
.hero-action { animation-delay: .32s !important; }
.hero-flow { animation-delay: .44s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Tablet */
@media (max-width: 1100px) {
  .line-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: clamp(52px, 6.4vw, 72px); }
}
@media (max-width: 920px) {
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 40px; text-align: center; }
  .hero-copy { max-width: 640px; margin-inline: auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-action { align-items: center; }
  .hero-flow { justify-content: center; }
  .faq { grid-template-columns: 1fr; }
  .faq-heading { text-align: center; }
  .faq-heading h2 em { display: inline; }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .header { height: 68px; }
  .brand { font-size: 27px; gap: 9px; }
  .brand > svg { width: 28px; height: 28px; }
  .brand small { font-size: 10px; margin-top: 4px; letter-spacing: .14em; }
  .nav-cta { min-height: 44px; padding: 8px 12px 8px 14px; font-size: 13px; }
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
  .hero { padding-top: 26px; }
  .hero-eyebrow { margin-bottom: 16px; font-size: 11px; letter-spacing: .18em; }
  .hero-eyebrow .eyebrow-line { display: none; }
  h1 { font-size: clamp(42px, 12.4vw, 60px); line-height: .98; margin-bottom: 16px; }
  .hero-lead { font-size: 15.5px; line-height: 1.55; margin-bottom: 22px; max-width: 26em; }
  .hero-action { width: 100%; }
  .btn { width: 100%; font-size: 16px; }
  .btn-hero { min-height: 66px; padding-left: 22px; font-size: 17px; }
  .btn-hero .btn-tag { min-height: 48px; }
  .action-note { font-size: 12.5px; margin-top: 12px; }
  .hero-flow { display: none; }
  .line-cards { grid-template-columns: 1fr; gap: 14px; }
  .line-card { padding: 24px 22px 14px; }
  .line-card h3 { font-size: 30px; }
  .card-top { margin-bottom: 18px; }
  .line-drawing { height: 56px; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 15.5px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 34px; bottom: 34px; left: 34px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold-3), var(--gold), var(--gold-3)); transform-origin: top; }
  .motion .steps.reveal::before { transform: scaleY(0); }
  .motion .steps.reveal.visible::before { transform: scaleY(1); }
  .steps li { display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; text-align: left; padding: 0; }
  .step-icon { grid-row: 1 / 4; margin: 0; }
  .step-num { margin-top: 4px; }
  .steps h3 { font-size: 28px; margin-bottom: 6px; }
  .steps p { margin: 0; max-width: none; }
  .faq-list summary { min-height: 68px; font-size: 16px; }
  .faq-list details p { padding-right: 0; font-size: 15px; }
  .final-section h2 { margin-bottom: 30px; }
  .footer { grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; }
  body.dock-visible .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 28px); }
  .brand small { display: none; }
  h1 { font-size: 40px; }
}

@media (max-width: 400px) {
  .btn, .btn-hero { gap: 10px; padding-left: 18px; font-size: 15.5px; letter-spacing: -.01em; }
  .btn-tag, .btn-hero .btn-tag { padding-inline: 11px 10px; gap: 4px; font-size: 13px; }
}

@media (max-width: 359px) {
  .btn, .btn-hero { gap: 8px; padding-left: 16px; font-size: 14.5px; }
  .btn-tag, .btn-hero .btn-tag { padding-inline: 10px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .btn-gold::after, .btn-hero::before { display: none; }
}
