/* «Звёзды сошлись» — дизайн-система.
   Ночное небо без «фиолетового градиента по умолчанию»: глубокая чернильная синь, звёздное
   золото, холодная туманность и тёплая нить, которая соединяет двоих. */

@font-face { font-family: 'Forum'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/forum-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Forum'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/forum-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/manrope-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --ink: #05060d;
  --ink-2: #0a0c18;
  --ink-3: #11142a;
  --text: #ece6d8;
  --muted: #9b98aa;
  --faint: #5f5d72;
  --gold: #e6d3a1;
  --gold-hi: #fff3d1;
  --gold-dim: rgba(230, 211, 161, .22);
  --line: rgba(230, 211, 161, .14);
  --frost: #8cc4d8;
  --ember: #f2a27e;
  --rose: #e88aa0;
  --ok: #9fd8b4;
  --danger: #f0a0a0;
  --display: 'Forum', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .8, .22, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--text);
  font: 400 16px/1.6 var(--sans); letter-spacing: .005em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(230, 211, 161, .3); color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- небо (фон на всех страницах) ---------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(64, 104, 140, .28), transparent 60%),
    radial-gradient(900px 600px at 8% 30%, rgba(120, 70, 92, .16), transparent 62%),
    radial-gradient(1400px 900px at 50% 120%, rgba(30, 52, 92, .35), transparent 60%),
    var(--ink); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url('../img/grain.svg'); animation: grain 9s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(5, 6, 13, .85), rgba(5, 6, 13, 0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font: 400 22px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.brand:hover { color: var(--gold-hi); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 99px;
  transition: color .3s, background .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); background: rgba(230, 211, 161, .07); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; background: var(--gold); margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px;
    background: rgba(5, 6, 13, .96); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid rgba(230,211,161,.06); }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- раскладка ---------- */
main { position: relative; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 12vw, 150px) 0; position: relative; }
.display { font: 400 clamp(44px, 8.4vw, 116px)/.95 var(--display); letter-spacing: -.01em; margin: 0; }
.h2 { font: 400 clamp(32px, 5vw, 64px)/1.02 var(--display); margin: 0 0 .4em; letter-spacing: -.005em; }
.h3 { font: 400 clamp(22px, 2.6vw, 30px)/1.15 var(--display); margin: 0 0 .5em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.gold { color: var(--gold); }
.glyph { font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; font-variant-emoji: text; }

/* ---------- первый экран ---------- */
.hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; position: relative; padding: 24px 0 72px; }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero .lead { margin: 22px auto 0; }
.zodiac-ring { position: absolute; left: 50%; top: 46%; width: min(120vmin, 1100px); aspect-ratio: 1; translate: -50% -50%;
  z-index: 0; pointer-events: none; opacity: .55; }
.zodiac-ring .spin { transform-origin: 50% 50%; animation: spin 240s linear infinite; }
.zodiac-ring .spin-rev { transform-origin: 50% 50%; animation: spin 360s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.4s var(--ease) forwards; }
.display .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes rise { to { transform: none; } }
.display em { font-style: normal; color: var(--gold-hi);
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-hi) 45%, var(--gold) 70%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.fade-in { opacity: 0; animation: fadeUp 1.2s var(--ease) .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- форма пары ---------- */
.pair-form { position: relative; margin: clamp(36px, 6vw, 64px) auto 0; max-width: 980px; text-align: left; }
.pair-grid { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; }
.thread { position: relative; display: grid; place-items: center; }
.thread::before { content: ''; position: absolute; left: -10%; right: -10%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 20%, var(--ember) 50%, var(--gold-dim) 80%, transparent); }
.thread-star { position: relative; width: 46px; height: 46px; }
.thread-star::before, .thread-star::after { content: ''; position: absolute; inset: 0; margin: auto; background: var(--gold-hi);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); filter: drop-shadow(0 0 8px var(--gold)); }
.thread-star::after { transform: rotate(45deg) scale(.55); opacity: .7; }
.thread-star { animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.9); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@media (max-width: 760px) {
  .pair-grid { grid-template-columns: 1fr; }
  .thread { height: 64px; }
  .thread::before { left: 50%; right: auto; top: -8px; bottom: -8px; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--gold-dim) 20%, var(--ember) 50%, var(--gold-dim) 80%, transparent); }
}

.person { position: relative; padding: 26px 24px 22px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(17, 20, 42, .66), rgba(10, 12, 24, .5));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 243, 209, .05); }
.person-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 16px;
  font: 400 26px/1 var(--display); color: var(--gold-hi); }
.person-title small { font: 500 12px/1 var(--sans); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.field { display: grid; gap: 6px; margin-bottom: 14px; position: relative; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; font-size: 16px;
  background: rgba(5, 6, 13, .55); border: 1px solid rgba(230, 211, 161, .16); color: var(--text);
  transition: border-color .25s, box-shadow .25s, background .25s; }
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230, 211, 161, .08); background: rgba(5, 6, 13, .8); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }
.row2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; margin: -4px 0 12px; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(230, 211, 161, .35); margin: 0; display: grid; place-items: center; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.hint { font-size: 13px; color: var(--faint); margin: 0; }
.hint a { color: var(--frost); }
.error-text { color: var(--danger); font-size: 13px; min-height: 0; margin: 0; }

.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: #0c0f20; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); max-height: 280px; overflow: auto; }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.suggest li span { color: var(--faint); font-size: 13px; white-space: nowrap; }
.suggest li[aria-selected="true"], .suggest li:hover { background: rgba(230, 211, 161, .09); }

/* ---------- кнопки ---------- */
.btn { --b: var(--gold); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 99px; border: 1px solid var(--b); background: rgba(230, 211, 161, .06);
  color: var(--gold-hi); font: 600 16px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; overflow: hidden;
  transition: background .35s, color .35s, box-shadow .35s, transform .2s; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 243, 209, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn:hover { background: rgba(230, 211, 161, .14); box-shadow: 0 0 40px rgba(230, 211, 161, .18); color: #fff; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-hi); color: var(--ink); }
.btn-ghost { --b: rgba(230, 211, 161, .25); background: transparent; color: var(--text); height: 48px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.submit-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }

/* ---------- результат совместимости ---------- */
.result { display: none; }
.result.is-visible { display: block; }
.score-stage { text-align: center; padding: clamp(40px, 7vw, 80px) 0 20px; position: relative; }
.names { font: 400 clamp(22px, 3vw, 34px)/1.1 var(--display); color: var(--muted); }
.names b { font-weight: 400; color: var(--gold-hi); }
.score { font: 400 clamp(120px, 26vw, 300px)/.85 var(--display); color: var(--gold-hi); margin: 12px 0 0;
  text-shadow: 0 0 60px rgba(230, 211, 161, .35); font-variant-numeric: lining-nums tabular-nums; }
.score sup { font-size: .32em; vertical-align: top; position: relative; top: .25em; margin-left: .04em; color: var(--gold); }
.verdict-title { font: 400 clamp(26px, 3.4vw, 42px)/1.1 var(--display); margin: 18px auto 10px; max-width: 18em; }
.verdict-text { color: var(--muted); max-width: 36em; margin: 0 auto; font-size: 17px; }
.confidence { display: grid; gap: 4px; justify-items: center; max-width: 40em; margin: 18px auto 0; font-size: 13px; color: var(--frost); }
.confidence.is-partial { color: var(--ember); }
.confidence-note { color: var(--muted); }

.orbits { list-style: none; margin: clamp(40px, 7vw, 72px) auto 0; padding: 0; max-width: 860px; }
.orbit { display: grid; grid-template-columns: 170px 1fr 54px; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.orbit:last-child { border-bottom: 1px solid var(--line); }
.orbit-name { font: 400 22px/1.1 var(--display); }
.orbit-track { position: relative; height: 1px; background: linear-gradient(90deg, rgba(230,211,161,.1), rgba(230,211,161,.32)); }
.orbit-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(230,211,161,.12), 0 0 18px var(--gold); transition: left 1.6s var(--ease); }
.orbit-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold)); transition: width 1.6s var(--ease); }
.orbit-val { font: 400 24px/1 var(--display); text-align: right; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.orbit-text { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; max-width: 46em; }
@media (max-width: 640px) { .orbit { grid-template-columns: 1fr 48px; gap: 10px 14px; } .orbit-track { grid-column: 1 / -1; grid-row: 2; } }

.aspects-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aspects-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.aspects-list .glyphs { font-size: 22px; color: var(--gold); min-width: 74px; }
.aspects-list b { font-weight: 600; }
.aspects-list p { margin: 4px 0 0; color: var(--muted); font-size: 15px; grid-column: 2; }
.tone-harmony { color: var(--ok); } .tone-tension { color: var(--ember); } .tone-fusion { color: var(--frost); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.share-card-preview { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(230,211,161,.08); background: var(--ink-2); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* платная часть */
.paid { position: relative; margin-top: clamp(56px, 9vw, 110px); padding: clamp(28px, 5vw, 56px); border-radius: 22px;
  border: 1px solid var(--line); background:
    radial-gradient(600px 300px at 90% 0%, rgba(140, 196, 216, .08), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(242, 162, 126, .07), transparent 70%), rgba(10, 12, 24, .6); overflow: hidden; }
.paid-toc { list-style: none; margin: 22px 0 0; padding: 0; columns: 2; column-gap: 40px; }
.paid-toc li { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-family: var(--display); font-size: 20px; }
.paid-toc li::before { content: '✦'; color: var(--gold); margin-right: 10px; font-size: 12px; vertical-align: middle; }
@media (max-width: 640px) { .paid-toc { columns: 1; } }
.paid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.price { font: 400 40px/1 var(--display); color: var(--gold-hi); }
.price s { color: var(--faint); font-size: .55em; margin-left: 8px; }
.ribbon { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--frost);
  border: 1px solid rgba(140, 196, 216, .35); padding: 6px 10px; border-radius: 99px; }
.report { margin-top: 36px; }
.report section { padding: 26px 0; border-top: 1px solid var(--line); }
.report h4 { font: 400 28px/1.15 var(--display); margin: 0 0 12px; color: var(--gold-hi); }
.report p { color: var(--text); opacity: .9; max-width: 44em; }

/* ---------- разделы главной ---------- */
.ways { display: grid; gap: 0; margin-top: 40px; }
.way { display: grid; grid-template-columns: 120px 1fr minmax(180px, 300px); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 48px) 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .5s; }
.way:last-child { border-bottom: 1px solid var(--line); }
.way:hover { background: linear-gradient(90deg, transparent, rgba(230, 211, 161, .035), transparent); color: inherit; }
.way-num { font: 400 64px/1 var(--display); color: var(--gold-dim); transition: color .5s; }
.way:hover .way-num { color: var(--gold); }
.way h3 { font: 400 clamp(28px, 3.6vw, 44px)/1.05 var(--display); margin: 0 0 10px; color: var(--text); }
.way p { margin: 0; color: var(--muted); max-width: 32em; }
.way-art { width: 100%; height: 140px; opacity: .75; transition: opacity .5s, transform .8s var(--ease); }
.way:hover .way-art { opacity: 1; transform: scale(1.04); }
.way-go { display: inline-flex; gap: 8px; margin-top: 14px; color: var(--gold); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .way { grid-template-columns: 1fr; } .way-num { font-size: 44px; } .way-art { height: 110px; order: -1; } }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; counter-reset: how; }
.how div { border-left: 1px solid var(--line); padding-left: 22px; }
.how b { display: block; font: 400 24px/1.2 var(--display); margin-bottom: 8px; color: var(--gold-hi); }
.how p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }

.quote { font: 400 clamp(26px, 4vw, 48px)/1.2 var(--display); max-width: 20em; margin: 0 auto; text-align: center; color: var(--text); }
.quote span { color: var(--gold); }

/* ---------- инструменты (натальная карта, время, карта мира) ---------- */
.tool-hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); }
.tool-hero .display { font-size: clamp(40px, 7vw, 92px); }
.tool-hero .lead { margin-top: 18px; }
.tool-panel { max-width: 560px; }
.wheel-wrap { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 1; }
.wheel-wrap svg { width: 100%; height: 100%; overflow: visible; }
.wheel-draw { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.planet-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.planet-table th, .planet-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.planet-table th { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.planet-table td:first-child { font-size: 20px; color: var(--gold); width: 36px; }
.planet-table .retro { color: var(--ember); font-size: 12px; margin-left: 6px; }
.interp { list-style: none; margin: 0; padding: 0; }
.interp li { padding: 20px 0; border-top: 1px solid var(--line); }
.interp h4 { margin: 0 0 6px; font: 400 22px/1.2 var(--display); color: var(--gold-hi); }
.interp p { margin: 0; color: var(--muted); }
.notice { border: 1px solid rgba(140, 196, 216, .3); background: rgba(140, 196, 216, .06); color: var(--text); border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.notice a { color: var(--frost); }

/* опрос ректификации */
.stepper { display: flex; gap: 6px; margin: 0 0 28px; }
.stepper i { flex: 1; height: 2px; background: rgba(230, 211, 161, .14); border-radius: 2px; overflow: hidden; position: relative; }
.stepper i.done::after, .stepper i.now::after { content: ''; position: absolute; inset: 0; background: var(--gold); }
.stepper i.now::after { animation: grow 1s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.q-card { min-height: 320px; }
.q-text { font: 400 clamp(26px, 3.6vw, 40px)/1.15 var(--display); margin: 0 0 24px; }
.options { display: grid; gap: 10px; }
.option { text-align: left; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 12, 24, .55);
  cursor: pointer; transition: border-color .25s, background .25s, transform .2s; font-size: 16px; }
.option:hover { border-color: var(--gold-dim); background: rgba(230, 211, 161, .05); transform: translateX(4px); }
.option[aria-pressed="true"] { border-color: var(--gold); background: rgba(230, 211, 161, .1); }
.q-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.events { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.event-row { display: grid; grid-template-columns: 1fr 120px 96px 44px; gap: 8px; align-items: center; }
.event-row button { height: 48px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
@media (max-width: 560px) { .event-row { grid-template-columns: 1fr 1fr 44px; } .event-row select:first-child { grid-column: 1 / -1; } }
.windows { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.window { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,12,24,.55); }
.window.best { border-color: var(--gold); box-shadow: 0 0 40px rgba(230,211,161,.1); }
.window-time { font: 400 34px/1 var(--display); color: var(--gold-hi); }
.window-meta { color: var(--muted); font-size: 14px; }
.window-bar { grid-column: 1 / -1; height: 2px; background: rgba(230,211,161,.12); border-radius: 2px; overflow: hidden; }
.window-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--frost), var(--gold)); width: 0; transition: width 1.4s var(--ease); }

/* карта мира */
.map-shell { position: relative; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: rgba(5,6,13,.6); }
.map-shell canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; cursor: crosshair; }
.map-tip { position: absolute; pointer-events: none; padding: 10px 12px; border-radius: 10px; background: rgba(8,10,22,.92); border: 1px solid var(--line);
  font-size: 13px; max-width: 260px; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .2s; }
.map-tip.on { opacity: 1; }
.map-tip b { color: var(--gold-hi); font-weight: 600; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.map-legend li[aria-pressed="false"] { opacity: .35; }
.map-legend i { width: 18px; height: 2px; border-radius: 2px; }
.goals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.goal { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; transition: all .25s; }
.goals .region { width: auto; height: 40px; margin-left: auto; border-radius: 99px; padding: 0 14px; font-size: 14px; }
@media (max-width: 640px) { .goals .region { margin-left: 0; width: 100%; } }
.goal[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-bottom: 22px; }
.seg button { height: 38px; padding: 0 18px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14px; }
.seg button[aria-pressed="true"] { background: rgba(230,211,161,.14); color: var(--gold-hi); }
.cities { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.cities li { counter-increment: c; display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cities li::before { content: counter(c); font: 400 26px/1 var(--display); color: var(--gold); }
.cities b { font: 400 22px/1.1 var(--display); font-weight: 400; }
.cities .score-mini { font: 400 22px/1 var(--display); color: var(--gold-hi); }
.cities p { grid-column: 2 / -1; margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* тексты для поиска и вопросы-ответы */
.seo .lead { margin-bottom: 36px; }
.seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(32px, 5vw, 72px); margin-bottom: clamp(48px, 8vw, 96px); }
.seo-part { padding: 22px 0; border-top: 1px solid var(--line); }
.seo-part p { color: var(--muted); margin: 0 0 12px; max-width: 40em; }
@media (max-width: 820px) { .seo-grid { grid-template-columns: 1fr; } }
.faq { max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 400 clamp(19px, 2vw, 23px)/1.3 var(--display); color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 300 26px/1 var(--sans); color: var(--gold); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

/* юридические страницы */
.prose { max-width: 760px; }
.prose h1 { font: 400 clamp(36px, 6vw, 64px)/1.05 var(--display); margin: 0 0 24px; }
.prose h2 { font: 400 28px/1.2 var(--display); margin: 40px 0 12px; color: var(--gold-hi); }
.prose p, .prose li { color: var(--text); opacity: .88; }

/* ---------- подвал ---------- */
.site-footer { margin-top: clamp(60px, 10vw, 120px); padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-hi); }
.disclaimer { max-width: 44em; margin: 18px 0 0; font-size: 13px; color: var(--faint); }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- состояния ---------- */
.loading-orbit { width: 64px; height: 64px; margin: 40px auto; position: relative; }
.loading-orbit::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-dim); }
.loading-orbit::after { content: ''; position: absolute; width: 8px; height: 8px; top: -4px; left: 50%; margin-left: -4px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 12px var(--gold); transform-origin: 4px 36px; animation: spin 1.4s linear infinite; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .display .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .fade-in { opacity: 1; }
}
