/* ADAR · прототип сайта v0.1 — «снаружи ночь, внутри свет».
   Цвета — только токены темы adar-night / light (packages/ui/tokens.json). Шрифты: Manrope (текст), Vollkorn (заголовки),
   Cormorant — только слово «ADAR» (подмножество из трёх букв). Уровни эффектов: html[data-fx="full|lite|static"]. */

@font-face { font-family: "Manrope"; src: url(fonts/Manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url(fonts/Vollkorn.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url(fonts/Vollkorn-Italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "ADAR Mark"; src: url(fonts/Cormorant-ADAR.woff2) format("woff2"); font-weight: 500; font-display: block; }

:root {
  /* adar-night */
  --canvas: #040812; --card: #0B1425; --subtle: #0F1A2D; --horizon: #1C2839;
  --text: #F8EDD5; --text-2: #B6A793; --inverse: #03070F;
  --gold: #DDAB60; --gold-hover: #EFDBB3; --gold-decor: #CE9045; --gold-hi: #E5D0A3; --heart: #D39759; --link: #DEC498;
  --line: rgba(221, 171, 96, .22); --line-soft: rgba(248, 237, 213, .1);
  /* light (кабинет) */
  --l-canvas: #F6F3EE; --l-card: #FFFFFF; --l-subtle: #ECE6DA; --l-text: #03070F; --l-text-2: #3A4A63;
  --l-action: #0A1A33; --l-action-hover: #16294A; --l-gold: #7D5F1E; --l-gold-decor: #C9A24B; --l-border: #D9CFBC;
  --l-success: #1F6B4C;
  /* 12 камней */
  --s1: #A0B1C9; --s2: #4045AF; --s3: #5879A0; --s4: #199559; --s5: #9E6047; --s6: #BF3403;
  --s7: #7A8236; --s8: #7CC2CE; --s9: #B5942E; --s10: #83C562; --s11: #B26D2A; --s12: #8D46AA;

  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Vollkorn", Georgia, "Times New Roman", serif;
  --f-mark: "ADAR Mark", "Vollkorn", Georgia, serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1320px;
  --r-card: 20px; --r-ctl: 12px;
  --head-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0; min-height: 100svh; background: var(--canvas); color: var(--text);
  font: 400 clamp(15px, 1.05vw + 11px, 18px)/1.6 var(--f-text); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-hi); display: block; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--gold); color: var(--inverse); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* ───────── Шапка (стекло — только здесь, кнопках и карточках) ───────── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--head-h);
  display: flex; align-items: center; gap: 12px; padding: 0 max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  transition: background .4s var(--ease), border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgba(4, 8, 18, .62); border-color: var(--line-soft); }
html[data-fx="full"] .top.is-scrolled, html[data-fx="lite"] .top.is-scrolled { -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
html[data-fx="static"] .top.is-scrolled { background: rgba(4, 8, 18, .94); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.mark__gem { width: 26px; height: 26px; }
.wordmark { font-family: var(--f-mark); font-weight: 500; font-size: 22px; letter-spacing: .34em; margin-right: -.34em; color: var(--gold-hi); line-height: 1; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color .25s, background .25s; position: relative; }
.nav a:hover { color: var(--text); background: rgba(248, 237, 213, .05); }
.nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill-me {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px;
  border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); background: rgba(11, 20, 37, .55); transition: border-color .25s, background .25s, transform .2s;
}
.pill-me:hover { border-color: var(--gold); background: rgba(221, 171, 96, .1); }
.pill-me:active { transform: scale(.97); }
.pill-me__av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--gold-hover), var(--gold) 45%, var(--gold-decor)); color: var(--inverse); font-weight: 700; font-size: 13px; }
.pill-me__av svg { width: 16px; height: 16px; }
.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11, 20, 37, .55); display: grid; place-items: center; padding: 0; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .35s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 900px) { .nav { display: flex; } .top__right { margin-left: 12px; } .burger { display: none; } }

/* Полноэкранное меню телефона */
.menu {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--head-h) + 24px) var(--gutter) 32px;
  background: radial-gradient(120% 60% at 50% 100%, rgba(211, 151, 89, .16), transparent 60%), var(--canvas);
  display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0 at calc(100% - 40px) 32px); transition: clip-path .6s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; }
.menu a.menu__link { font-family: var(--f-display); font-size: clamp(30px, 9vw, 44px); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease); }
.menu a.menu__link small { font-family: var(--f-text); font-size: 12px; color: var(--text-2); letter-spacing: .2em; }
.menu.is-open a.menu__link { opacity: 1; transform: none; }
.menu.is-open a.menu__link:nth-child(2) { transition-delay: .05s; } .menu.is-open a.menu__link:nth-child(3) { transition-delay: .1s; }
.menu.is-open a.menu__link:nth-child(4) { transition-delay: .15s; } .menu.is-open a.menu__link:nth-child(5) { transition-delay: .2s; }
.menu__cta { margin-top: auto; }
@media (min-width: 900px) { .menu { display: none; } }

/* ───────── Кнопки ───────── */
/* 1. Главная: «12 граней с огранкой» — заострённые концы, светлая верхняя грань, тёмная нижняя. */
.btn-gem {
  --h: 54px; --tip: 18px;
  position: relative; display: inline-flex; text-decoration: none; border: 0; padding: 0; background: none;
  filter: drop-shadow(0 6px 18px rgba(221, 171, 96, .18)); transition: filter .35s var(--ease), transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent; border-radius: 6px; isolation: isolate;
}
.btn-gem__body {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: var(--h);
  padding: 0 calc(var(--tip) + 20px); overflow: hidden; color: var(--inverse);
  font: 600 15px/1 var(--f-text); letter-spacing: .03em; white-space: nowrap;
  clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
  background:
    linear-gradient(180deg, rgba(255, 250, 235, .55), rgba(255, 250, 235, 0) 48%) top / 100% 50% no-repeat,
    linear-gradient(180deg, #F2DDAA 0%, #E8C98A 49.6%, #C79A4C 50.4%, #A97C34 100%);
}
/* фасетные линии на остриях */
.btn-gem__body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 54' preserveAspectRatio='none'%3E%3Cpath d='M18 0 28 27 18 54M0 27h28' fill='none' stroke='%23FFF6DE' stroke-opacity='.75' stroke-width='1'/%3E%3Cpath d='M18 0 0 27l18 27' fill='none' stroke='%237A5520' stroke-opacity='.5'/%3E%3C/svg%3E") left / 30px 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 54' preserveAspectRatio='none'%3E%3Cpath d='M12 0 2 27l10 27M30 27H2' fill='none' stroke='%23FFF6DE' stroke-opacity='.75' stroke-width='1'/%3E%3Cpath d='M12 0l18 27-18 27' fill='none' stroke='%237A5520' stroke-opacity='.5'/%3E%3C/svg%3E") right / 30px 100% no-repeat;
}
/* блик */
.btn-gem__body::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 252, 240, .7) 50%, transparent);
  transform: skewX(-18deg); transition: left 0s;
}
.btn-gem:hover { filter: drop-shadow(0 10px 28px rgba(221, 171, 96, .42)); transform: translateY(-2px); }
.btn-gem:hover .btn-gem__body::after { left: 120%; transition: left .9s var(--ease); }
.btn-gem:active { transform: translateY(0) scale(.97); filter: drop-shadow(0 2px 10px rgba(221, 171, 96, .5)) brightness(1.08); }
.btn-gem.is-shine .btn-gem__body::after { animation: shine 1.1s var(--ease); }
@keyframes shine { from { left: -60%; } to { left: 120%; } }
.btn-gem__arr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(3, 7, 15, .88); color: var(--gold-hi); transition: transform .35s var(--ease-spring); }
.btn-gem__arr svg { width: 14px; height: 14px; }
.btn-gem:hover .btn-gem__arr { transform: translateX(4px); }
.btn-gem--sm { --h: 46px; --tip: 15px; }
.btn-gem--sm .btn-gem__body { font-size: 14px; }
.btn-gem--block, .btn-gem--block .btn-gem__body { width: 100%; }
/* тёмная «дневная» огранка для кабинета */
.btn-gem--navy { filter: drop-shadow(0 6px 16px rgba(10, 26, 51, .22)); }
.btn-gem--navy .btn-gem__body { color: var(--l-canvas); background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 48%) top / 100% 50% no-repeat,
    linear-gradient(180deg, #2A3D60 0%, #1A2B49 49.6%, #0A1A33 50.4%, #050E1E 100%); }
.btn-gem--navy .btn-gem__arr { background: var(--l-gold-decor); color: var(--l-action); }
.btn-gem--navy:hover { filter: drop-shadow(0 10px 24px rgba(10, 26, 51, .32)); }

/* 2. Вторая: строка со стрелкой */
.btn-line {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; background: none;
  text-decoration: none; font-weight: 500; letter-spacing: .02em; color: var(--gold-hi); position: relative;
}
.btn-line::after { content: ""; position: absolute; left: 2px; right: 34px; bottom: 8px; height: 1px; background: currentColor; opacity: .35; transform-origin: left; transition: transform .45s var(--ease), opacity .3s; }
.btn-line:hover::after { opacity: .9; }
.btn-line__arr { width: 24px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.btn-line__arr::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.btn-line:hover .btn-line__arr { width: 36px; }
.day .btn-line { color: var(--l-gold); }

/* 3. Запуск ролика: 12-гранный полупрозрачный значок */
.btn-play { display: inline-flex; align-items: center; gap: 14px; border: 0; background: none; padding: 0; text-decoration: none; color: var(--text); min-height: 44px; }
.btn-play__gem { position: relative; width: 64px; height: 64px; flex: none; transition: transform .7s var(--ease); }
.btn-play__gem svg { width: 100%; height: 100%; overflow: visible; }
.btn-play__gem .dodeca { fill: rgba(10, 13, 22, .55); stroke: var(--gold); stroke-width: 1.4; transition: fill .3s; }
.btn-play__gem .dodeca-in { fill: none; stroke: rgba(229, 208, 163, .28); stroke-width: 1; }
.btn-play__gem .tri { fill: var(--gold-hi); transition: transform .4s var(--ease-spring); transform-origin: 54px 50px; }
.btn-play__gem::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; transform: scale(.8); }
.btn-play:hover .btn-play__gem { transform: rotate(15deg); }
.btn-play:hover .tri { transform: rotate(-15deg) scale(1.08); }
.btn-play:hover .dodeca { fill: rgba(221, 171, 96, .18); }
html:not([data-fx="static"]) .btn-play__gem::after { animation: ping 3.2s var(--ease) infinite; }
@keyframes ping { 0% { opacity: .55; transform: scale(.85); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.btn-play__txt { display: grid; text-align: left; font-size: 14px; line-height: 1.3; }
.btn-play__txt small { color: var(--text-2); font-size: 12px; }

/* Обычная капсула */
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 20, 37, .4); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .25s, background .25s, transform .2s; }
.btn-ghost:hover { border-color: var(--gold); background: rgba(221, 171, 96, .08); }
.btn-ghost:active { transform: scale(.97); }
.day .btn-ghost { border-color: var(--l-border); background: var(--l-card); color: var(--l-text); }
.day .btn-ghost:hover { border-color: var(--l-gold-decor); background: #FBF7EF; }
.btn-danger { color: #A3262F !important; }

/* ── Необычные CTA (на выбор) ── */
/* A. «Камень загорается» */
.cta-ignite { --tip: 22px; position: relative; display: inline-flex; border: 0; padding: 0; background: none; text-decoration: none; filter: drop-shadow(0 0 0 rgba(221, 171, 96, 0)); transition: filter .6s var(--ease); }
.cta-ignite__body { position: relative; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 calc(var(--tip) + 24px); overflow: hidden; color: var(--gold-hi); font: 600 15px var(--f-text); letter-spacing: .04em;
  clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
  background: linear-gradient(180deg, #F2DDAA, #C79A4C); transition: color .5s; }
.cta-ignite__body::before { content: ""; position: absolute; inset: 1px; z-index: 0; background: linear-gradient(180deg, #22324F 0 50%, #0B1425 50% 100%);
  clip-path: polygon(calc(var(--tip) - .5px) 0, calc(100% - var(--tip) + .5px) 0, 100% 50%, calc(100% - var(--tip) + .5px) 100%, calc(var(--tip) - .5px) 100%, 0 50%); }
.cta-ignite__body > * { position: relative; z-index: 2; }
.cta-ignite__body > .cta-ignite__light, .cta-ignite__body > .cta-ignite__facets { position: absolute; z-index: 1; }
.cta-ignite__light { position: absolute; z-index: 1; left: var(--tip); top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%;
  background: radial-gradient(circle, #FFF4D6 0 18%, var(--gold) 45%, rgba(221, 171, 96, 0) 70%); transform: scale(1); transition: transform .9s var(--ease); }
.cta-ignite__facets { position: absolute; inset: 0; z-index: 1; display: flex; }
.cta-ignite__facets i { flex: 1; border-right: 1px solid rgba(229, 208, 163, .06); background: linear-gradient(180deg, rgba(255, 246, 222, .0), rgba(255, 246, 222, 0)); transition: background .4s; }
.cta-ignite:hover, .cta-ignite:focus-visible { filter: drop-shadow(0 0 22px rgba(221, 171, 96, .55)); }
.cta-ignite:hover .cta-ignite__body, .cta-ignite:focus-visible .cta-ignite__body { color: var(--inverse); }
.cta-ignite:hover .cta-ignite__light, .cta-ignite:focus-visible .cta-ignite__light { transform: scale(60); }
.cta-ignite:hover .cta-ignite__facets i { background: linear-gradient(180deg, rgba(255, 246, 222, .35), rgba(255, 246, 222, 0) 50%, rgba(120, 80, 20, .18)); }
.cta-ignite:hover .cta-ignite__facets i:nth-child(n) { transition-delay: calc(var(--i) * 35ms); }
.cta-ignite.is-lit .cta-ignite__body { animation: ignite .7s var(--ease); }
@keyframes ignite { 40% { filter: brightness(1.8); } }

/* B. «Сборка из осколков» */
.cta-shards { position: relative; display: inline-grid; place-items: center; height: 58px; min-width: 250px; padding: 0 34px; border: 0; background: none; text-decoration: none; color: var(--inverse); font: 600 15px var(--f-text); letter-spacing: .03em; isolation: isolate; }
.cta-shards__s { position: absolute; inset: 0; z-index: -1; }
.cta-shards::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%); background: linear-gradient(180deg, #F2DDAA 0 49.6%, #C79A4C 50.4% 100%); opacity: 0; transition: opacity .35s .45s; }
.cta-shards:hover::before, .cta-shards:focus-visible::before { opacity: 1; }
.cta-shards__s i { position: absolute; top: 0; height: 100%; width: 20%; left: calc(var(--k) * 9% - 4%); background: linear-gradient(180deg, #F6E4B6, #DDAB60 50%, #A97C34);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.8); opacity: .85;
  transition: transform .75s var(--ease-spring), opacity .4s .5s; transition-delay: calc(var(--k) * 25ms), .5s; }
.cta-shards__s i:nth-child(even) { clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, #E8C98A, #C79A4C 50%, #8E6528); }
.cta-shards:hover .cta-shards__s i, .cta-shards:focus-visible .cta-shards__s i { transform: none; opacity: 0; }
.cta-shards__t { color: var(--text); text-shadow: 0 1px 8px rgba(4, 8, 18, .95), 0 0 2px rgba(4, 8, 18, .9); transition: color .4s, text-shadow .4s; }
.cta-shards:hover .cta-shards__t, .cta-shards:focus-visible .cta-shards__t { text-shadow: none; }
.cta-shards:hover .cta-shards__s i, .cta-shards:focus-visible .cta-shards__s i { transform: none; opacity: 1; }
.cta-shards:hover .cta-shards__t, .cta-shards:focus-visible .cta-shards__t { color: var(--inverse); }

/* C. «Пульс сердца» */
.cta-heart { display: inline-flex; align-items: center; gap: 16px; border: 0; background: none; padding: 0; text-decoration: none; color: var(--text); font-weight: 600; }
.cta-heart__orb { position: relative; width: 86px; height: 86px; flex: none; }
.cta-heart__core { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF4D6, var(--gold) 50%, var(--heart)); box-shadow: 0 0 24px rgba(221, 171, 96, .7); animation: beat 1.8s ease-in-out infinite; }
.cta-heart__orb i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; background: var(--c); transform: rotate(calc(var(--i) * 30deg)) translateY(-36px) rotate(45deg) scale(.8); opacity: .8; transition: transform .7s var(--ease-spring), opacity .3s; }
.cta-heart__orb i { animation: orbit 14s linear infinite; }
.cta-heart:hover .cta-heart__orb i, .cta-heart:focus-visible .cta-heart__orb i { animation-play-state: paused; transform: rotate(calc(var(--i) * 30deg)) translateY(-28px) rotate(45deg) scale(1.15); opacity: 1; }
.cta-heart:hover .cta-heart__core { animation-duration: .9s; }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }
.cta-heart__t { display: grid; line-height: 1.3; } .cta-heart__t small { color: var(--text-2); font-weight: 400; font-size: 13px; }

/* ───────── Общая вёрстка ───────── */
main { display: block; }
.page { min-height: 100svh; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: clamp(72px, 11vw, 150px); overflow-x: clip; }
.split > *, .kit-grid > *, .res-grid > *, .cards > * { min-width: 0; }
@media (max-width: 420px) {
  .btn-gem { --tip: 15px; }
  .btn-gem__body { padding: 0 calc(var(--tip) + 12px); font-size: 14.5px; }
  .kit-card { padding: 20px 16px; } .kit-demo { padding: 18px 8px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.h1 { font-size: clamp(42px, 10.5vw, 104px); }
.h2 { font-size: clamp(34px, 6.4vw, 70px); }
.h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.25vw + 11px, 21px); line-height: 1.55; max-width: 40ch; margin-top: 20px; }
.muted { color: var(--text-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); color: var(--text-2); }
.tag--live { color: var(--gold-hi); border-color: rgba(221, 171, 96, .5); }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Стеклянная карточка (точечно) */
.glass { border-radius: var(--r-card); border: 1px solid var(--line-soft); background: linear-gradient(160deg, rgba(248, 237, 213, .07), rgba(248, 237, 213, .015) 60%), rgba(11, 20, 37, .72); box-shadow: inset 0 1px 0 rgba(248, 237, 213, .08); }
html[data-fx="full"] .glass { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: linear-gradient(160deg, rgba(248, 237, 213, .08), rgba(248, 237, 213, .02) 60%), rgba(11, 20, 37, .5); }

/* Появление при прокрутке */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
html[data-fx="static"] .rv { opacity: 1; transform: none; transition: none; }

/* ───────── Главная ───────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding-bottom: clamp(28px, 6vh, 72px); }
.hero__bg { position: absolute; inset: 0; z-index: -3; background: var(--canvas) url(img/g1-hero-poster-mobile.webp) center / cover no-repeat; }
@media (min-width: 761px) { .hero__bg { background-image: url(img/g1-hero-poster-desktop.webp); } }
.hero__vid { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 0; transition: opacity 2.4s; }
.hero__vid.on { opacity: .5; }
.hero__dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 58%; z-index: -1; background: linear-gradient(180deg, rgba(4, 8, 18, 0), rgba(4, 8, 18, .82) 55%, var(--canvas)); pointer-events: none; }
.hero__stage { position: absolute; z-index: -1; left: 50%; top: calc(var(--head-h) + 1vh); width: min(68vw, 330px); height: calc(64svh - var(--head-h)); transform: translateX(-50%); }
.hero__text { position: relative; z-index: 2; margin-left: max(0px, calc((100% - var(--maxw)) / 2)); margin-right: auto; }
.hero h1 { font-size: clamp(42px, 11.5vw, 108px); }
.hero .lead { margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }
.hero__meta { margin-top: 22px; display: flex; gap: 10px 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); letter-spacing: .04em; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.hero__welcome { display: none; }
html[data-user="returning"] .hero__welcome { display: inline-flex; }
html[data-user="returning"] .only-new { display: none !important; }
html:not([data-user="returning"]) .only-ret { display: none !important; }
@media (max-width: 699px) {
  .hero { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__stage { position: relative; left: auto; top: auto; transform: none; flex: 1 1 auto; width: 100%; min-height: 230px; max-height: 48svh; margin: calc(var(--head-h) + 4px) 0 4px; z-index: 0; }
  .hero .lead { font-size: 15.5px; max-width: 34ch; }
  .hero__actions { margin-top: 20px; gap: 14px 22px; }
  .hero__meta { margin-top: 16px; }
}
@media (min-width: 700px) and (max-width: 1079px) { .hero__stage { width: 300px; right: 2vw; left: auto; transform: none; height: 70svh; top: 10svh; } .hero__text { max-width: 64%; } .hero h1 { font-size: clamp(56px, 8vw, 76px); } }
@media (min-width: 1080px) {
  .hero { align-items: center; padding-bottom: 0; }
  .hero::after { height: 40%; }
  .hero__stage { left: auto; right: max(4vw, calc((100vw - var(--maxw)) / 2 + 40px)); transform: none; top: 12svh; height: 80svh; width: min(34vw, 460px); }
  .hero__text { max-width: 640px; padding-top: var(--head-h); }
  .hero h1 { font-size: clamp(64px, 5.6vw, 104px); }
}
@media (min-width: 1680px) { .hero__text { max-width: 800px; } .hero h1 { font-size: 96px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); transform: translateX(-50%); opacity: .7; }
html:not([data-fx="static"]) .scroll-cue { animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; } }
@media (max-width: 699px) { .scroll-cue { display: none; } }

/* Человек из граней (SVG) */
.person { width: 100%; height: 100%; overflow: visible; }
.person .shard { transform-box: fill-box; transform-origin: center; transition: transform 1.5s var(--ease), opacity 1s var(--ease), filter .4s; transition-delay: var(--d); }
.person:not(.is-built) .shard { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.5); opacity: 0; }
.person .shard path:first-child { stroke: rgba(239, 219, 179, .75); stroke-width: .7; }
.person.is-lit { filter: drop-shadow(0 0 14px rgba(221, 171, 96, .35)); }
html[data-fx="static"] .person.is-lit { filter: none; }
.person .shard .hl { fill: rgba(255, 248, 230, .22); pointer-events: none; }
.person .shard:hover, .person .shard.is-hot { filter: brightness(1.45) drop-shadow(0 0 6px var(--gold)); cursor: help; }
.person .heart-glow { transform-box: fill-box; transform-origin: center; opacity: 0; transition: opacity 1.2s .2s; }
.person.is-built .heart-glow { opacity: 1; }
html:not([data-fx="static"]) .person.is-built .heart-glow { animation: heartglow 4.8s ease-in-out infinite 1.6s; }
@keyframes heartglow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.18); opacity: 1; } }
.person .rays { transform-box: fill-box; transform-origin: center; opacity: 0; transition: opacity 2s 1.2s; }
.person.is-built .rays { opacity: .55; }
html:not([data-fx="static"]) .person .rays { animation: spin 160s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
html[data-fx="static"] .person .shard { transition: none; }
.facet-tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .2s; }
.facet-tip.on { opacity: 1; }
.facet-tip b { display: block; font-weight: 600; color: var(--gold-hi); }

/* Секции истории */
.split { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split--rev > :first-child { order: 2; } }
.media { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--glow::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(closest-side, rgba(211, 151, 89, .35), transparent); }
.glow-wrap { position: relative; isolation: isolate; }
.glow-wrap::before { content: ""; position: absolute; inset: -18% -12%; z-index: -1; background: radial-gradient(closest-side, rgba(211, 151, 89, .28), transparent 75%); }

.scatter { overflow: hidden; }
.scatter__bg { position: absolute; inset: 0; background: url(img/shards-mobile.webp) center / cover; opacity: .55; }
@media (min-width: 761px) { .scatter__bg { background-image: url(img/shards-desktop.webp); } }
.scatter::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--canvas), rgba(4, 8, 18, .4) 30%, rgba(4, 8, 18, .5) 70%, var(--canvas)); }
.scatter .wrap { position: relative; z-index: 2; }
.scatter__lines { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; }
.scatter__lines li { font-family: var(--f-display); font-size: clamp(22px, 3.2vw, 36px); line-height: 1.25; color: var(--text); }
.scatter__lines li:nth-child(2) { color: var(--text-2); padding-left: 1.2em; }
.scatter__lines li:nth-child(3) { color: rgba(182, 167, 147, .65); padding-left: 2.4em; }
.scatter__lines li.rv { transform: translateX(-30px) rotate(-1.5deg); filter: blur(4px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s; }
.scatter__lines li.rv.in { transform: none; filter: none; }

.sum { margin-top: 26px; font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); color: var(--gold-hi); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(11, 20, 37, .6); font-size: 14px; }
.chip i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 10px var(--c); }
.chip small { color: var(--text-2); }

/* Кольцо 12 граней */
.ring { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .seg { cursor: pointer; transition: transform .5s var(--ease-spring), filter .3s, opacity .3s; transform-box: fill-box; transform-origin: center; outline: none; }
.ring .seg path { stroke: rgba(239, 219, 179, .55); stroke-width: .7; }
.ring .seg:hover, .ring .seg:focus-visible, .ring .seg.is-on { filter: brightness(1.35) drop-shadow(0 0 10px var(--c)); }
.ring .seg.is-on { transform: scale(1.06); }
.ring .seg:focus-visible path:first-child { stroke: var(--gold-hover); stroke-width: 2.5; }
.ring:has(.seg.is-on) .seg:not(.is-on) { opacity: .45; }
.ring__core { position: absolute; inset: 27%; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 6%; pointer-events: none; background: radial-gradient(circle, rgba(211, 151, 89, .2), rgba(4, 8, 18, .0) 70%); }
.ring__core b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 3.4vw, 30px); line-height: 1.1; }
.ring__core span { display: block; font-size: clamp(12px, 1.3vw, 14px); color: var(--text-2); margin-top: 6px; line-height: 1.4; }
.ring__core small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
html:not([data-fx="static"]) .ring.rv.in .seg { animation: segin .8s var(--ease-spring) both; animation-delay: calc(var(--i) * 70ms + .2s); }
@keyframes segin { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; }
.legend li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; color: var(--text-2); transition: color .2s; }
.legend li:hover, .legend li.is-on { color: var(--text); }
.legend li i { width: 9px; height: 9px; flex: none; transform: rotate(45deg); background: var(--c); }
@media (min-width: 700px) { .legend { grid-template-columns: repeat(3, 1fr); } }

/* Шаги */
.steps { display: grid; gap: 16px; margin-top: 44px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { padding: 28px 26px 26px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--line); }
.step__k { font-family: var(--f-display); font-style: italic; font-size: 44px; line-height: 1; color: var(--gold-decor); }
.step h3 { font-size: 24px; }
.step p { color: var(--text-2); font-size: 15px; }
.step > .tag, .step > .btn-line { justify-self: start; }
.plan > .tag { align-self: flex-start; }
.step--live { border-color: rgba(221, 171, 96, .45); }
.step--live::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; background: radial-gradient(closest-side, rgba(221, 171, 96, .3), transparent); }

/* Цельный человек */
.whole { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.whole .media { aspect-ratio: 3 / 4; }
.whole .media img { object-position: 50% 30%; }
@media (min-width: 900px) { .whole { gap: 20px; } }

/* Рассвет */
.dawn { padding-top: 0; overflow: hidden; background: linear-gradient(180deg, var(--canvas), var(--horizon) 60%, var(--canvas)); }
.dawn__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent) intersect, linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
@media (max-width: 699px) { .dawn__img { aspect-ratio: 4 / 5; object-position: 50% 50%; } }
.dawn .wrap { margin-top: -12vw; position: relative; }
.data-note { display: inline-flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 14px 18px; font-size: 14px; color: var(--text-2); max-width: 46ch; text-align: left; }
.data-note svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }

/* Финал */
.final { text-align: center; overflow: hidden; padding-block: clamp(90px, 14vw, 190px); }
.final::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 140%; aspect-ratio: 2; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(211, 151, 89, .34), rgba(211, 151, 89, .08) 55%, transparent); pointer-events: none; }
.final .h1 { font-size: clamp(44px, 9vw, 112px); }
.final__gem { width: min(52vw, 240px); height: min(52vw, 240px); margin: 0 auto 26px; position: relative; }
.final__gem canvas, .final__gem img { width: 100%; height: 100%; }
.final__gem img { object-fit: contain; border-radius: 50%; -webkit-mask: radial-gradient(closest-side, #000 60%, transparent); mask: radial-gradient(closest-side, #000 60%, transparent); }
.final .row { justify-content: center; margin-top: 32px; }

/* Подвал */
.foot { border-top: 1px solid var(--line-soft); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--text-2); }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.foot a { display: block; text-decoration: none; padding: 5px 0; transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot__demo { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; font-size: 12.5px; }
.seg-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 20, 37, .6); position: relative; }
.seg-switch button { position: relative; z-index: 1; border: 0; background: none; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: color .3s; }
.seg-switch button[aria-pressed="true"] { color: var(--inverse); }
.seg-switch__ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 999px; background: var(--gold); transition: left .45s var(--ease-spring), width .45s var(--ease-spring); }

/* Закреплённая кнопка теста (телефон) */
.dock { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; transform: translateY(140%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s .55s; pointer-events: none; }
.dock.on { transform: none; visibility: visible; transition-delay: 0s; pointer-events: auto; }
.dock .btn-gem, .dock .btn-gem__body { width: 100%; }
@media (min-width: 900px) { .dock { display: none; } }

/* ───────── Внутренние ночные страницы ───────── */
.phero { position: relative; padding: calc(var(--head-h) + clamp(40px, 9vw, 120px)) 0 clamp(48px, 7vw, 90px); overflow: hidden; isolation: isolate; }
.phero__vid { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 8, 18, .95), rgba(4, 8, 18, .55) 60%, rgba(4, 8, 18, .2)), linear-gradient(0deg, var(--canvas), transparent 40%); }
@media (max-width: 699px) { .phero::after { background: linear-gradient(180deg, rgba(4, 8, 18, .35), rgba(4, 8, 18, .85) 55%, var(--canvas)); } .phero__vid { height: 62%; } .phero { padding-top: calc(var(--head-h) + 34vw); } }

/* Тест */
.test { padding-top: calc(var(--head-h) + 12px); min-height: 100svh; display: grid; grid-template-rows: auto 1fr; background: radial-gradient(90% 60% at 50% 30%, rgba(28, 40, 57, .9), var(--canvas) 70%); }
.test__bar { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.test__back { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: background .2s; }
.test__back:hover { background: rgba(221, 171, 96, .1); }
.test__back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.test__count { font-size: 13px; letter-spacing: .12em; color: var(--text-2); }
.test__count b { color: var(--text); font-weight: 600; }
.test__prog { margin-left: auto; width: 52px; height: 52px; }
.test__prog path { transition: fill .6s, opacity .6s; }
.test__body { display: grid; align-content: center; padding-block: 20px 40px; }
.q { max-width: 760px; margin-inline: auto; width: 100%; }
.q__facet { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.q__facet i { width: 10px; height: 10px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 12px var(--c); }
.q__text { font-family: var(--f-display); font-size: clamp(28px, 5vw, 50px); line-height: 1.12; margin: 18px 0 30px; min-height: 2.3em; }
.q__opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 18px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(11, 20, 37, .7); text-align: left; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.opt:hover { border-color: var(--line); background: rgba(221, 171, 96, .06); transform: translateX(4px); }
.opt__dot { width: 22px; height: 22px; flex: none; position: relative; }
.opt__dot::before { content: ""; position: absolute; inset: 3px; border: 1.5px solid var(--text-2); transform: rotate(45deg); transition: all .3s var(--ease-spring); }
.opt[aria-checked="true"] { border-color: var(--gold); background: rgba(221, 171, 96, .14); }
.opt[aria-checked="true"] .opt__dot::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px var(--gold); transform: rotate(45deg) scale(1.15); }
.opt__k { margin-left: auto; font-size: 12px; color: var(--text-2); opacity: .7; }
@media (min-width: 900px) { .q__opts { grid-template-columns: repeat(5, 1fr); } .opt { flex-direction: column; justify-content: center; text-align: center; padding: 18px 12px; min-height: 128px; gap: 12px; } .opt:hover { transform: translateY(-4px); } .opt__k { margin: 0; } }
.q-enter { animation: qin .6s var(--ease) both; }
.q-leave { animation: qout .35s var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes qout { to { opacity: 0; transform: translateY(-18px); filter: blur(6px); } }
.test-intro { text-align: center; max-width: 640px; margin-inline: auto; }
.test-intro__gem { width: 180px; height: 180px; margin: 0 auto 26px; }
.test-intro ul { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.building { text-align: center; display: grid; justify-items: center; gap: 20px; }
.building__gem { width: 220px; height: 220px; }
.building__gem .shard { transform-box: fill-box; transform-origin: center; animation: fly 1.2s var(--ease) both; animation-delay: calc(var(--i) * 110ms); }
@keyframes fly { from { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.3); opacity: 0; } }
.building p { color: var(--text-2); }

/* Результат */
.result-hero { text-align: center; }
.gem-big { width: min(82vw, 420px); aspect-ratio: 1; margin: 10px auto 0; position: relative; }
.gem-big svg { width: 100%; height: 100%; overflow: visible; }
.gem-big .kite { transform-box: fill-box; transform-origin: center; cursor: pointer; transition: filter .3s, transform .4s var(--ease-spring); }
.gem-big .kite:hover, .gem-big .kite.is-on { filter: brightness(1.3) drop-shadow(0 0 10px var(--c)); transform: scale(1.04); }
html:not([data-fx="static"]) .gem-big.go .kite { animation: kite 1s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes kite { from { opacity: 0; transform: scale(.6); } }
.gem-big__glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 190, .55), rgba(211, 151, 89, .15) 60%, transparent); pointer-events: none; }
html:not([data-fx="static"]) .gem-big__glow { animation: heartglow 5s ease-in-out infinite; }
.res-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 800px) { .res-grid { grid-template-columns: 1fr 1fr; } }
.res-card { padding: 24px; }
.res-card h3 { font-size: 22px; margin-bottom: 14px; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.bar__track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(248, 237, 213, .08); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 6px; background: var(--c); box-shadow: 0 0 10px var(--c); transition: width 1.4s var(--ease); }
.bar__v { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Мини-карта */
.mc { margin-top: 60px; text-align: center; }
.mc__stage { display: grid; justify-items: center; gap: 22px; }
.seal { position: relative; width: 190px; height: 190px; border: 0; padding: 0; background: none; cursor: pointer; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
html:not([data-fx="static"]) .seal { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(221, 171, 96, .55)); } }
.seal.is-breaking { animation: crack 1.2s var(--ease) forwards; }
@keyframes crack { 30% { transform: scale(1.12) rotate(-4deg); } 55% { transform: scale(1.02) rotate(3deg); filter: brightness(1.6); } 100% { transform: scale(2.4); opacity: 0; filter: brightness(3) blur(6px); } }
.mc-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 880px; margin-inline: auto; text-align: left; }
@media (min-width: 700px) { .mc-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.mc-tile { padding: 18px; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line-soft); cursor: pointer; text-align: left; position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; animation: tilein .7s var(--ease-spring) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes tilein { from { opacity: 0; transform: translateY(30px) scale(.9) rotate(-2deg); } }
.mc-tile:hover { transform: translateY(-4px); border-color: var(--c); }
.mc-tile::before { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; background: radial-gradient(closest-side, var(--c), transparent); opacity: .45; }
.mc-tile__k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.mc-tile__t { font-family: var(--f-display); font-size: 21px; line-height: 1.15; }
.mc-tile__s { font-size: 13px; color: var(--text-2); }
.mc-card { max-width: 680px; margin-inline: auto; text-align: left; padding: 28px; animation: qin .6s var(--ease) both; }
.mc-card h3 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0 14px; }
.mc-card p + p { margin-top: 12px; }
.mc-card .box { margin-top: 18px; padding: 16px; border-radius: 12px; border: 1px solid rgba(221, 171, 96, .35); background: rgba(221, 171, 96, .08); font-size: 15px; }

/* Вход */
.auth { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--head-h) + 24px) var(--gutter) 40px; position: relative; isolation: isolate; overflow: hidden; }
.auth__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 8, 18, 0) 30%, rgba(4, 8, 18, .6)), url(img/heart-night-vertical.webp) center 10% / cover; opacity: .95; }
@media (min-width: 761px) { .auth__bg { background-image: radial-gradient(50% 40% at 50% 28%, rgba(211, 151, 89, .22), transparent 70%), url(img/g1-hero-poster-desktop.webp); } }
.auth__card { width: 100%; max-width: 440px; padding: clamp(24px, 5vw, 38px); }
.auth__card h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 10px; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(4, 8, 18, .6); border: 1px solid var(--line-soft); position: relative; margin: 22px 0; }
.tabs2 button { position: relative; z-index: 1; border: 0; background: none; min-height: 42px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .3s; }
.tabs2 button[aria-selected="true"] { color: var(--inverse); }
.tabs2__ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--gold); transition: transform .45s var(--ease-spring); }
.tabs2[data-i="1"] .tabs2__ind { transform: translateX(100%); }
.field { display: grid; gap: 8px; margin-bottom: 14px; text-align: left; }
.field label { font-size: 13px; color: var(--text-2); }
.input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(248, 237, 213, .18); background: rgba(4, 8, 18, .55); color: var(--text); transition: border-color .25s, box-shadow .25s; }
.input::placeholder { color: rgba(182, 167, 147, .7); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(221, 171, 96, .16); }
textarea.input { min-height: 120px; padding: 14px 16px; resize: vertical; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 18px; }
.code input { text-align: center; font-size: 22px; font-weight: 600; padding: 0; min-height: 58px; }
.code input.ok { border-color: var(--gold); animation: pop .4s var(--ease-spring); }
@keyframes pop { 50% { transform: scale(1.08); } }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 20px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.soc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin: 6px 0 16px; text-align: left; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.demo-note { font-size: 12px; color: var(--text-2); margin-top: 16px; text-align: center; opacity: .85; }
.success { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 20px 0; }
.success svg { width: 84px; height: 84px; }
.success .ck { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s .2s var(--ease) forwards; }
.success .cc { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Программа */
.plans { display: grid; gap: 16px; margin-top: 10px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; } }
.plan { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: transform .45s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-6px); }
.plan--main { border-color: rgba(221, 171, 96, .55); background: linear-gradient(170deg, rgba(221, 171, 96, .16), rgba(11, 20, 37, .7) 45%); }
.plan__price { font-family: var(--f-display); font-size: 40px; line-height: 1; }
.plan__price small { font-family: var(--f-text); font-size: 13px; color: var(--text-2); display: block; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; flex: none; background: var(--gold); transform: rotate(45deg); }
.plan__foot { margin-top: auto; padding-top: 8px; }
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--f-display); font-size: clamp(19px, 2.2vw, 24px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: translateY(-75%) rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 64ch; animation: qin .45s var(--ease) both; }

/* О нас */
.layers { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 800px) { .layers { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1200px) { .layers { grid-template-columns: repeat(4, 1fr); } }
.layer { overflow: hidden; display: grid; }
.layer img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 72% 50%; width: 100%; transition: transform 1.2s var(--ease); }
.layer:hover img { transform: scale(1.06); }
.layer > div { padding: 18px 20px 22px; display: grid; gap: 6px; }
.layer small { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }
.layer h3 { font-size: 24px; }
.layer p { color: var(--text-2); font-size: 14.5px; }
.team { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person-card { padding: 24px; display: grid; gap: 10px; justify-items: start; }
.avatar-gem { width: 72px; height: 72px; }
.person-card h3 { font-size: 22px; }
.person-card p { color: var(--text-2); font-size: 14.5px; }
.values { display: grid; gap: 1px; margin-top: 36px; background: var(--line-soft); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values > div { background: var(--canvas); padding: 26px; }
.values b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 500; margin-bottom: 8px; color: var(--gold-hi); }
.values p { color: var(--text-2); font-size: 15px; }

/* Контакты */
.contact { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; } }
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-decoration: none; transition: transform .35s var(--ease), border-color .3s; }
.channel:hover { transform: translateX(6px); border-color: var(--line); }
.channel__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(221, 171, 96, .12); color: var(--gold); flex: none; }
.channel__ic svg { width: 22px; height: 22px; }
.channel small { display: block; color: var(--text-2); font-size: 13px; }
.form-card { padding: clamp(22px, 4vw, 34px); }

/* ───────── Кабинет «Мой ADAR» (светлый) ───────── */
html[data-theme="day"] { background: var(--l-canvas); color-scheme: light; }
html[data-theme="day"] body { background: var(--l-canvas); color: var(--l-text); }
html[data-theme="day"] .top, html[data-theme="day"][data-fx] .top.is-scrolled { background: rgba(246, 243, 238, .9); border-color: var(--l-border); }
html[data-theme="day"][data-fx="full"] .top, html[data-theme="day"][data-fx="lite"] .top { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html[data-theme="day"] .wordmark { color: var(--l-gold); }
html[data-theme="day"] .nav a { color: var(--l-text-2); }
html[data-theme="day"] .nav a:hover { color: var(--l-text); background: rgba(10, 26, 51, .05); }
html[data-theme="day"] .pill-me { border-color: var(--l-border); background: var(--l-card); color: var(--l-text); }
html[data-theme="day"] .burger { border-color: var(--l-border); background: var(--l-card); }
html[data-theme="day"] .burger span, html[data-theme="day"] .burger span::before, html[data-theme="day"] .burger span::after { background: var(--l-text); }
html[data-theme="day"] .burger[aria-expanded="true"] span { background: transparent; }
html[data-theme="day"] .foot { display: none; }
html[data-theme="day"] :focus-visible { outline-color: var(--l-gold); }
.day { color: var(--l-text); }
.cab { display: grid; min-height: 100svh; padding-top: var(--head-h); }
@media (min-width: 900px) { .cab { grid-template-columns: 248px 1fr; } }
.side { display: none; }
@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: var(--head-h); height: calc(100svh - var(--head-h)); padding: 28px 16px; border-right: 1px solid var(--l-border); background: #FBF9F5; }
}
.side a, .tabbar a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--l-text-2); font-size: 15px; font-weight: 500; border-radius: 12px; transition: background .25s, color .25s; position: relative; }
.side a { padding: 12px 14px; }
.side a:hover { background: var(--l-subtle); color: var(--l-text); }
.side a[aria-current="page"] { background: var(--l-action); color: var(--l-canvas); }
.side a[aria-current="page"] svg { color: var(--l-gold-decor); }
.side svg, .tabbar svg { width: 20px; height: 20px; flex: none; }
.side__foot { margin-top: auto; font-size: 12px; color: var(--l-text-2); padding: 0 14px; }
.tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); border-top: 1px solid var(--l-border); }
html[data-fx="full"] .tabbar, html[data-fx="lite"] .tabbar { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: rgba(255, 255, 255, .78); }
.tabbar a { flex-direction: column; gap: 3px; padding: 8px 0 6px; font-size: 11px; justify-content: center; min-height: 54px; }
.tabbar a[aria-current="page"] { color: var(--l-action); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 2px; width: 6px; height: 6px; background: var(--l-gold-decor); transform: rotate(45deg); animation: pop .4s var(--ease-spring); }
@media (min-width: 900px) { .tabbar { display: none; } }
.cab__main { padding: clamp(22px, 4vw, 48px) var(--gutter) 120px; max-width: 1180px; width: 100%; justify-self: center; }
.cab__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.cab__head h1 { font-size: clamp(32px, 5vw, 52px); }
.cab__head h1 em { color: var(--l-gold); display: inline; }
.cab__kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--l-gold); font-weight: 600; margin-bottom: 8px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(6, 1fr); } .c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; } }
.card { background: var(--l-card); border: 1px solid var(--l-border); border-radius: var(--r-card); padding: 22px; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); animation: cardin .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(18px); } }
.card:hover { box-shadow: 0 14px 34px -18px rgba(10, 26, 51, .28); }
.card h2, .card h3 { font-size: 22px; line-height: 1.15; }
.card__k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--l-gold); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card p { color: var(--l-text-2); font-size: 15px; }
.card--night { background: linear-gradient(160deg, #13203A, var(--l-action) 55%, #050E1E); color: var(--text); border-color: transparent; }
.card--night p { color: var(--text-2); }
.card--night .card__k { color: var(--gold); }
.stone-card { display: grid; gap: 18px; align-items: center; }
@media (min-width: 600px) { .stone-card { grid-template-columns: 180px 1fr; } }
.stone-card .gem-mini { width: 180px; height: 180px; margin-inline: auto; }
.gem-mini svg { width: 100%; height: 100%; overflow: visible; }
html:not([data-fx="static"]) .gem-mini svg { animation: slowspin 60s linear infinite; }
@keyframes slowspin { to { transform: rotate(360deg); } }
.top3 { display: grid; gap: 8px; margin-top: 12px; }
.top3 li { list-style: none; display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text); }
.top3 i { width: 10px; height: 10px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 10px var(--c); flex: none; }
.top3 { padding: 0; margin-bottom: 16px; }
.pring { width: 112px; height: 112px; position: relative; flex: none; }
.pring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 8; }
.pring .bg { stroke: var(--l-subtle); }
.pring .fg { stroke: var(--l-gold-decor); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.pring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 28px; font-weight: 500; }
.prog-row { display: flex; gap: 20px; align-items: center; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; padding: 0; background: var(--l-subtle); transition: background .35s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(10, 26, 51, .25); transition: transform .45s var(--ease-spring); }
.switch[aria-checked="true"] { background: var(--l-action); }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: var(--l-gold-decor); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--l-border); font-size: 14px; color: var(--l-text-2); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 24px; position: relative; }
.tl::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--l-border); }
.tl:last-child::before { display: none; }
.tl__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--l-border); background: var(--l-card); color: var(--l-text-2); font-family: var(--f-display); font-size: 16px; }
.tl--done .tl__dot { background: var(--l-action); border-color: var(--l-action); color: var(--l-gold-decor); }
.tl--done::before { background: var(--l-action); }
.tl--now .tl__dot { border-color: var(--l-gold-decor); color: var(--l-gold); animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 7px rgba(201, 162, 75, .18); } }
.tl h3 { font-size: 20px; margin-top: 6px; }
.tl p { font-size: 14.5px; color: var(--l-text-2); margin-top: 4px; }
.tl .tag { margin-top: 8px; border-color: var(--l-border); color: var(--l-text-2); }
.tl--done .tag { color: var(--l-success); border-color: rgba(31, 107, 76, .35); }
.facet-list { display: grid; gap: 4px; }
@media (min-width: 900px) { .facet-list { grid-template-columns: 1fr 1fr; gap: 4px 28px; } }
.facet-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--l-border); font-size: 15px; }
.facet-row i { width: 11px; height: 11px; background: var(--c); transform: rotate(45deg); }
.facet-row small { color: var(--l-text-2); }
.facet-row .bar__track { grid-column: 2 / -1; background: var(--l-subtle); height: 5px; }
.facet-row .bar__fill { box-shadow: none; }
.facet-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--l-border); font-size: 14.5px; }
.list li:last-child { border: 0; }
.list time { margin-left: auto; color: var(--l-text-2); font-size: 13px; white-space: nowrap; }
.list .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--l-subtle); color: var(--l-gold); flex: none; }
.list .ic svg { width: 17px; height: 17px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: 15px; margin: 6px 0 4px; }
.dl dt { color: var(--l-text-2); } .dl dd { margin: 0; font-weight: 500; }
.progress { height: 6px; border-radius: 6px; background: var(--l-subtle); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--l-gold-decor), var(--l-action)); transition: width .25s linear; }
.skeleton { background: linear-gradient(90deg, var(--l-subtle) 25%, #F6F1E7 50%, var(--l-subtle) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; height: 14px; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────── Встреча (ширма) ───────── */
.intro { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: #02050C; color: var(--text); overflow: hidden; }
html:not(.has-intro) .intro { display: none; }
html.has-intro body { overflow: hidden; }
.intro__skip { position: absolute; z-index: 5; top: max(16px, env(safe-area-inset-top)); right: 16px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(248, 237, 213, .22); background: rgba(4, 8, 18, .45); color: var(--text-2); font-size: 13px; letter-spacing: .08em; transition: color .2s, border-color .2s; }
.intro__skip:hover { color: var(--text); border-color: var(--gold); }
.intro__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__center { position: relative; z-index: 3; display: grid; justify-items: center; gap: 18px; text-align: center; padding: 0 24px; }
.intro .wordmark { font-size: clamp(44px, 12vw, 96px); }
.intro__line { width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.intro__sub { font-family: var(--f-display); font-style: italic; font-size: clamp(18px, 2.6vw, 26px); color: var(--gold-hi); opacity: 0; }
.intro__enter { opacity: 0; }
.intro.is-out { pointer-events: none; }

/* Вариант А — «Матовое стекло»: бархатная ночь, свет за матовым стеклом, стекло тает от центра */
.intro--a .intro__pane { position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(248, 237, 213, .1), transparent 70%),
    linear-gradient(120deg, rgba(248, 237, 213, .08), rgba(248, 237, 213, 0) 40%, rgba(248, 237, 213, .05) 70%, rgba(248, 237, 213, 0)),
    rgba(10, 18, 34, .38);
  box-shadow: inset 0 0 160px rgba(0, 0, 0, .6); }
.intro--a .intro__pane::after { content: ""; position: absolute; inset: 0; opacity: .22; 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.intro--a .intro__sheen { position: absolute; inset: -20%; z-index: 2; background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 222, .14) 50%, transparent 60%); transform: translateX(-60%); animation: sheen 3.2s .4s var(--ease) forwards; }
@keyframes sheen { to { transform: translateX(60%); } }
.intro--a .wordmark span { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(10px); animation: letter 1.1s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .16s); }
@keyframes letter { to { opacity: 1; filter: blur(0); transform: none; } }
.intro--a .intro__line { animation: line 1.2s 1.1s var(--ease) forwards; }
@keyframes line { to { width: min(260px, 60vw); } }
.intro--a .intro__sub { animation: fade 1s 1.5s var(--ease) forwards; }
.intro--a .intro__enter { animation: fade .8s 2s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }
@property --hole { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.intro--a.is-out { animation: melt 1.1s var(--ease) forwards;
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 12%));
  mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 12%)); }
@keyframes melt { 80% { opacity: 1; } to { --hole: 140%; opacity: 0; } }
.intro--a.is-out .intro__center { animation: lift .6s var(--ease) forwards; }
@keyframes lift { to { opacity: 0; transform: scale(1.08); filter: blur(6px); } }

/* Вариант Б — «Искра сердца»: точка света → 12 граней слетаются в кольцо → вспышка открывает сайт */
.intro--b { background: radial-gradient(60% 60% at 50% 42%, #0B1425, #02050C 70%); }
.intro--b .intro__vid { opacity: .85; }
.intro--b .spark { position: absolute; z-index: 2; left: 50%; top: 42%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #FFF4D6; box-shadow: 0 0 20px 6px var(--gold), 0 0 80px 20px rgba(211, 151, 89, .5); transform: scale(0); animation: sparkin 1s .2s var(--ease-spring) forwards, beat 1.6s 1.2s ease-in-out infinite; }
@keyframes sparkin { to { transform: scale(1); } }
.intro--b { --orb: clamp(74px, 10vmin, 130px); }
.intro--b .orbit { position: absolute; z-index: 2; left: 50%; top: 42%; width: 0; height: 0; }
.intro--b .orbit i { position: absolute; left: 0; top: 0; width: 18px; height: 28px; margin: -14px -9px; background: linear-gradient(160deg, #FFF6DE, var(--c) 38%, rgba(4, 8, 18, .6)); clip-path: polygon(50% 0, 100% 32%, 72% 100%, 28% 100%, 0 32%);
  filter: drop-shadow(0 0 6px var(--c));
  transform: rotate(calc(var(--i) * 30deg)) translateY(-70vmax) rotate(140deg) scale(.6); opacity: 0;
  animation: gather 1.5s var(--ease) forwards; animation-delay: calc(.7s + var(--i) * 60ms); }
@keyframes gather { 60% { opacity: 1; } to { opacity: 1; transform: rotate(calc(var(--i) * 30deg)) translateY(calc(-1 * var(--orb))) rotate(180deg) scale(1); } }
.intro--b .halo { position: absolute; z-index: 1; left: 50%; top: 42%; width: calc(var(--orb) * 2.7); height: calc(var(--orb) * 2.7); margin: calc(var(--orb) * -1.35); border-radius: 50%; border: 1px solid rgba(221, 171, 96, .5); opacity: 0; transform: scale(.4); animation: halo 1s 2.1s var(--ease) forwards; }
@keyframes halo { to { opacity: 1; transform: scale(1); } }
.intro--b .intro__center { position: absolute; top: calc(42% + var(--orb) * 1.6); left: 0; right: 0; }
.intro--b .wordmark { font-size: clamp(36px, 9vw, 64px); opacity: 0; animation: fade 1s 2.2s var(--ease) forwards; }
.intro--b .intro__sub { animation: fade 1s 2.6s var(--ease) forwards; }
.intro--b .intro__enter { animation: fade .8s 2.9s var(--ease) forwards; }
.intro--b .flash { position: absolute; z-index: 4; left: 50%; top: 42%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: radial-gradient(circle, #FFF4D6, rgba(221, 171, 96, .9) 40%, rgba(211, 151, 89, 0) 70%); transform: scale(0); pointer-events: none; }
.intro--b.is-out .flash { animation: flash 1.1s var(--ease) forwards; }
@keyframes flash { 45% { transform: scale(40); opacity: 1; } 100% { transform: scale(80); opacity: 0; } }
.intro--b.is-out { animation: fadeout .5s .5s ease forwards; }
@keyframes fadeout { to { opacity: 0; } }

/* ───────── Модалка ролика, тосты ───────── */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(2, 5, 12, .9); opacity: 0; transition: opacity .35s; }
.modal.on { opacity: 1; }
.modal__box { width: min(1100px, 100%); position: relative; transform: scale(.94); transition: transform .5s var(--ease); }
.modal.on .modal__box { transform: none; }
.modal video { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #000; }
.modal__x { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(4, 8, 18, .6); color: var(--text); font-size: 22px; line-height: 1; }
.toast { position: fixed; z-index: 130; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; padding: 12px 18px; border-radius: 14px; background: var(--l-action); color: var(--l-canvas); font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transition: transform .5s var(--ease-spring); max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
html[data-theme="day"] .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { html[data-theme="day"] .toast { bottom: 24px; } }
.dialog { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 16px; background: rgba(3, 7, 15, .5); }
.dialog__box { width: min(440px, 100%); background: var(--l-card); color: var(--l-text); border-radius: var(--r-card); padding: 26px; animation: qin .4s var(--ease) both; }
.dialog__box h2 { font-size: 26px; margin-bottom: 8px; }
.dialog__box p { color: var(--l-text-2); font-size: 15px; }
.dialog__box .row { margin-top: 20px; justify-content: flex-end; }

/* ───────── Витрина ───────── */
.kit-grid { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 800px) { .kit-grid { grid-template-columns: repeat(2, 1fr); } }
.kit-card { padding: 26px; display: grid; gap: 16px; align-content: start; }
.kit-card h3 { font-size: 22px; }
.kit-card p { color: var(--text-2); font-size: 14.5px; }
.kit-demo { min-height: 120px; display: grid; place-items: center; padding: 22px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, rgba(28, 40, 57, .8), rgba(4, 8, 18, .6)); border: 1px dashed var(--line-soft); }
.kit-demo--day { background: var(--l-canvas); border-color: var(--l-border); }

/* ───────── Переходы страниц (View Transitions) ───────── */
::view-transition-old(root) { animation: vt-old .7s var(--ease) both; }
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@keyframes vt-old { to { opacity: .35; transform: scale(.985); filter: blur(2px); } }
.page-in { animation: pagein .6s var(--ease) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(14px); } }

/* ───────── Большой экран ───────── */
@media (min-width: 1680px) { :root { --maxw: 1440px; } body { font-size: 19px; } }

/* ───────── Статика: отключённые анимации или слабое устройство ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html[data-fx="static"] *, html[data-fx="static"] *::before, html[data-fx="static"] *::after { animation-play-state: paused; }
html[data-fx="static"] .card, html[data-fx="static"] .mc-tile, html[data-fx="static"] .q-enter, html[data-fx="static"] .page-in { animation: none; }
