/* ————————————————————————————————————————————————
   Марина Сорочан · сайт
   графит с фиолетовым отливом · молочный · холодное золото
   ———————————————————————————————————————————————— */

:root {
  --bg: #F3EFF6;
  --bg-el: #FAF8FC;
  --s2: #E9E3EF;
  --line: #D9D1E1;
  --line-s: #B7ADC5;
  --ink: #14101F;
  --ink2: #57506A;
  --ink3: #8A8299;
  --gold-600: #9C8A55;
  --gold-500: #B9A46B;
  --gold-400: #CBB985;
  --gold-tint: #EFE9D8;
  --ok: #4F7A5A;
  --err: #A8453F;
  --numeral: var(--ink);
  --topbar-h: 64px;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 160ms;
  --t: 200ms;
  --t-slow: 240ms;

  --r-btn: 2px;
  --r-card: 4px;
  --r-chip: 6px;
  color-scheme: light;
}

/* тёмная тема: система */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15101F;
    --bg-el: #1E172A;
    --s2: #282036;
    --line: #362C47;
    --line-s: #4C4062;
    --ink: #F2EFE8;
    --ink2: #B3B1AA;
    --ink3: #7C7B76;
    --gold-600: #8C7B4C;
    --gold-500: #C4B078;
    --gold-400: #D6C692;
    --gold-tint: #2A2720;
    --ok: #5F9B76;
    --err: #B8554E;
    --numeral: var(--gold-500);
    color-scheme: dark;
  }
}
/* тёмная тема: выбрана руками */
:root[data-theme="dark"] {
  --bg: #15101F;
  --bg-el: #1E172A;
  --s2: #282036;
  --line: #362C47;
  --line-s: #4C4062;
  --ink: #F2EFE8;
  --ink2: #B3B1AA;
  --ink3: #7C7B76;
  --gold-600: #8C7B4C;
  --gold-500: #C4B078;
  --gold-400: #D6C692;
  --gold-tint: #2A2720;
  --ok: #5F9B76;
  --err: #B8554E;
  --numeral: var(--gold-500);
  color-scheme: dark;
}

/* тёмная полоса внутри любой темы */
.band-dark {
  --bg: #15101F;
  --bg-el: #1E172A;
  --s2: #282036;
  --line: #362C47;
  --line-s: #4C4062;
  --ink: #F2EFE8;
  --ink2: #B3B1AA;
  --ink3: #7C7B76;
  --gold-600: #8C7B4C;
  --gold-500: #C4B078;
  --gold-400: #D6C692;
  --gold-tint: #2A2720;
  --numeral: var(--gold-500);
  background: var(--bg);
  color: var(--ink);
}
:root[data-theme="dark"] .band-dark { --bg: #1E172A; --bg-el: #282036; --s2: #302741; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-dark { --bg: #1E172A; --bg-el: #282036; --s2: #302741; }
}

/* ——— база ——— */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
html.no-motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 26px;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.theme-anim body,
html.theme-anim body * { transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease) !important; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--gold-tint); color: var(--ink); }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--bg); z-index: 100; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1328px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ——— типографика ——— */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.015em; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.lead { font-size: 17px; line-height: 26px; color: var(--ink2); max-width: 60ch; }
@media (min-width: 1200px) { body { font-size: 18px; line-height: 28px; } .lead { font-size: 18px; line-height: 28px; } }
.caption {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 500;
}
.dot { color: var(--ink3); margin: 0 2px; }
.link { position: relative; color: var(--ink); }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link--btn { padding: 0; }

/* маркеры «заполнить / подтвердить» */
.fill, .confirm { cursor: help; }
.fill {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--line-s);
  border-radius: 2px;
  color: var(--ink3);
  font-size: 0.85em;
  line-height: 1.5;
  vertical-align: baseline;
}
.confirm { text-decoration: underline dotted var(--ink3); text-underline-offset: 4px; }
.fact__text .confirm { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink3); margin-left: 6px; }

/* ——— кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.btn--secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--tertiary { height: auto; padding: 0; color: var(--ink); font-weight: 500; }
.btn--tertiary .ico-arrow { width: 20px; height: 20px; transition: transform var(--t-fast) var(--ease); }
.btn--tertiary:hover .ico-arrow { transform: translateX(4px); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 900ms var(--ease) infinite; }
@keyframes dot { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@media (min-width: 1200px) { .btn { height: 44px; } .btn--lg { height: 52px; } }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 2px; color: var(--ink); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* ——— шапка ——— */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topbar-h);
  color: var(--ink);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { background: var(--bg); border-bottom-color: var(--line); }
.topbar.on-dark:not(.is-solid) { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 60%, transparent 100%); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mark { display: block; color: currentColor; }
.wordmark .mark { width: 26px; height: 26px; flex: none; color: var(--gold-600); }
:root[data-theme="dark"] .wordmark .mark { color: var(--gold-500); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark .mark { color: var(--gold-500); } }
.footer__sign { display: flex; justify-content: center; margin-top: 56px; }
.footer__sign .mark { width: 64px; height: 64px; color: var(--gold-500); }
.nav { display: none; gap: 28px; }
.nav a { position: relative; padding: 6px 0; font-weight: 500; font-size: 15px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.topbar__right { display: flex; align-items: center; gap: 6px; }
.topbar__book { display: none; }
.lang { display: flex; gap: 2px; }
.lang__btn { padding: 6px 7px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink3); border-radius: 2px; }
.lang__btn.is-active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 5px; }
.lang__btn:hover { color: var(--ink); }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .topbar__book { display: inline-flex; margin-left: 10px; }
  .burger { display: none; }
  .topbar .lang { display: flex; margin-right: 4px; }
}
@media (max-width: 1023px) { .topbar .lang { display: none; } }

/* мобильное меню */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--ink); padding-top: var(--topbar-h); }
.menu__in { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding-top: 24px; padding-bottom: 32px; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.15; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.menu__social { font-weight: 500; }
body.menu-open { overflow: hidden; }
body.menu-open .topbar, body.menu-open .topbar.on-dark:not(.is-solid) { background: var(--bg); border-bottom-color: var(--line); }

/* ——— фото-плейсхолдеры ——— */
.photo {
  position: relative;
  background: var(--s2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.photo::before {
  content: "";
  position: absolute; inset: 0;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: multiply;
  z-index: 1;
}
.band-dark .photo::before, :root[data-theme="dark"] .photo::before { mix-blend-mode: screen; opacity: 0.18; }
.photo::after {
  content: "";
  position: absolute; inset: 12px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  --c: var(--gold-500);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 16px no-repeat;
}
.photo__cap {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  z-index: 2;
  font-size: 12px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink3);
}
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.has-img .photo__cap { display: none; }
.photo.has-img::before { opacity: 0.12; }
.photo--bw .photo__img { filter: grayscale(1) contrast(1.05); }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1; }
.photo--wide { aspect-ratio: 3 / 2; }
@media (min-width: 1024px) { .photo--portrait { aspect-ratio: 3 / 4; } }

/* ——— hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--topbar-h) + 32px);
  padding-bottom: 250px;
  overflow: hidden;
}
.hero__scene { position: absolute; inset: 0; z-index: 0; }
.hero__scene canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 55%); }
.hero__grid { position: relative; z-index: 1; width: 100%; }
.hero__text { max-width: 860px; }
.hero__place { margin-bottom: 20px; }
.hero__name { font-size: clamp(56px, 11vw, 150px); line-height: 0.92; margin-bottom: 22px; }
.hero__w { display: block; white-space: nowrap; }
.hero__triad { color: var(--gold-500); margin-bottom: 28px; }
.hero__triad span { margin: 0 6px; }
.motto {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(25px, 2.7vw, 40px);
  line-height: 1.2;
  max-width: 34ch;
}
.hero__sub { margin-top: 20px; max-width: 46ch; color: var(--ink2); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__alt { color: var(--ink2); }
.hero__alt:hover { color: var(--ink); }
.hero__trust { margin-top: 28px; font-size: 14px; line-height: 20px; color: var(--ink2); }
.hero__hint { position: absolute; left: 20px; bottom: 28px; z-index: 1; display: flex; align-items: center; gap: 12px; }
.hero__hint i { display: block; width: 1px; height: 40px; background: var(--gold-500); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  48% { transform: scaleY(1); transform-origin: top; }
  52% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* до старта сцены — скрыто; GSAP ведёт появление; без JS/без motion — показать */
html.js .hero__text > *, html.js .hero__hint { opacity: 0; }
html.no-motion .hero__text > *, html.no-motion .hero__hint { opacity: 1; transition: opacity 600ms var(--ease); }
.sl, .line { display: block; }
/* На телефоне низ первого экрана отдан золотой фишке: она здесь единственная
   картинка, и ей нужна полка, а не обрезок у края (25.09). Освобождают полку две
   строки, без которых экран ничего не теряет: строка доверия — те же «140+ игр ·
   14 стран · диплом» стоят экраном ниже крупно, в счётчиках; подсказка «Листайте»
   говорит про скролл мышью, на телефоне листают и так. На большом экране обе на
   месте — там фишка стоит справа от текста и полка ей не нужна. */
@media (max-width: 1023px) {
  .hero { padding-bottom: 210px; }
  .hero__trust, .hero__hint { display: none; }
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--topbar-h) + 48px); padding-bottom: 120px; }
  .hero__scene::after { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 40%, transparent 62%); }
  .hero__hint { left: 24px; }
}

/* ——— счётчики ——— */
.counters { border-bottom: 1px solid var(--line); }
.counters__grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; }
.counter { padding: 28px 0; display: flex; flex-direction: column; gap: 8px; }
.numeral { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; color: var(--numeral); letter-spacing: -0.02em; }
.numeral.confirm { text-decoration-thickness: 1px; text-underline-offset: 8px; }
.numeral__plus { font-size: 0.6em; vertical-align: 0.35em; margin-left: 2px; }
@media (min-width: 768px) {
  .counters__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .counter { padding: 40px 32px 40px 0; border-right: 1px solid var(--line); }
  .counter + .counter { padding-left: 32px; }
  .counter:last-child { border-right: 0; }
  .numeral { font-size: 96px; }
}

/* ——— секции ——— */
.section-head { margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.section-head--row { align-items: flex-start; }
@media (min-width: 768px) {
  .section-head { margin-bottom: 48px; }
  .section-head--row { flex-direction: row; justify-content: space-between; align-items: baseline; }
}
.router, .events, .services, .how, .trust, .business, .about { padding: 64px 0; }
@media (min-width: 1024px) { .router, .events, .services, .how, .trust, .business, .about { padding: 144px 0; } }
.events, .services, .how, .trust, .business, .about { border-top: 1px solid var(--line); }

/* ——— кубик ——— */
.dice { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--ink2); font-size: 15px; font-weight: 500; }
.dice:hover { color: var(--ink); }
.dice__ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: transform var(--t-slow) var(--ease); }
.dice:hover .dice__ico { transform: rotate(-15deg); }
.dice.is-rolling .dice__ico { animation: roll 0.9s var(--ease); }
@keyframes roll { 0% { transform: rotate(0) translateY(0); } 30% { transform: rotate(180deg) translateY(-8px); } 60% { transform: rotate(300deg) translateY(2px); } 100% { transform: rotate(360deg) translateY(0); } }
.chip.is-rolling { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }

/* ——— роутер ——— */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-s);
  border-radius: var(--r-chip);
  font-size: 15px; line-height: 20px; font-weight: 500;
  text-align: left;
  max-width: 100%;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.chips--sm { margin-top: 4px; }

.router__result { margin-top: 32px; min-height: 64px; }
.router__empty { color: var(--ink2); }
.result { display: grid; gap: 24px; }
.result__phrase {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  max-width: 40ch;
  opacity: 0; transform: translateY(10px);
  animation: rise var(--t-slow) var(--ease) forwards;
}
.result__cards { display: grid; gap: 12px; }
.rcard {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-el);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(16px);
  animation: rise var(--t) var(--ease) forwards;
}
.rcard:nth-child(1) { animation-delay: 60ms; }
.rcard:nth-child(2) { animation-delay: 120ms; }
.rcard:nth-child(3) { animation-delay: 180ms; }
html.has-motion .rcard, html.has-motion .result__phrase, html.has-motion .result__actions { animation: none; opacity: 1; transform: none; }
.rcard { transform-style: preserve-3d; }
.rcard::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.rcard:hover::before { transform: scaleX(1); }
.rcard__title { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; }
.rcard__why { color: var(--ink2); font-size: 15px; line-height: 22px; }
.rcard__meta { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ink3); }
.result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; opacity: 0; animation: rise var(--t) var(--ease) 240ms forwards; }
.result__actions .link { color: var(--ink2); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .result__cards { grid-template-columns: repeat(3, 1fr); } .rcard { padding: 24px; } }
@media (min-width: 1200px) { .router .chips { max-width: 980px; } }

/* ——— события ——— */
.filter { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.filter__btn { position: relative; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--ink3); }
.filter__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.filter__btn.is-active { color: var(--ink); }
.filter__btn.is-active::after, .filter__btn:hover::after { transform: scaleX(1); }

.event {
  position: relative;
  display: grid; gap: 20px;
  transform-style: preserve-3d;
  will-change: transform;
  padding: 24px 0 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.event::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--t) var(--ease); background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold-500) 14%, transparent), transparent 45%); }
.event:hover::after { opacity: 1; }
.event__date { display: flex; align-items: baseline; gap: 12px; }
.event__day { font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 0.9; letter-spacing: -0.02em; }
.event__meta { margin-bottom: 10px; }
.event__title { margin-bottom: 12px; }
.event__desc { color: var(--ink2); max-width: 62ch; }
.event__facts { display: grid; gap: 8px; margin-top: 18px; }
.event__facts > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font-size: 15px; line-height: 22px; }
.event__facts dt { color: var(--ink3); }
.event__side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tag { display: inline-block; padding: 4px 8px; border: 1px solid var(--gold-500); color: var(--gold-600); border-radius: 2px; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.band-dark .tag, :root[data-theme="dark"] .tag { color: var(--gold-500); }
.tag--muted { border-color: var(--line-s); color: var(--ink3); }
.event__past { font-size: 14px; line-height: 20px; color: var(--ink3); max-width: 24ch; }
.events__note { margin-top: 20px; color: var(--ink2); font-size: 15px; line-height: 22px; }
.archive { margin-top: 56px; }
.archive__title { margin-bottom: 20px; }
.archive__grid { display: grid; gap: 24px 16px; grid-template-columns: repeat(2, 1fr); }
.archive__item { display: flex; flex-direction: column; gap: 8px; }
.archive__item .photo { margin-bottom: 4px; }
.archive__item .photo__cap { left: 12px; bottom: 10px; right: 12px; font-size: 10px; }
.archive__name { font-size: 15px; line-height: 22px; }
.organizers { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.organizers p { margin-top: 8px; color: var(--ink2); max-width: 62ch; }
@media (min-width: 768px) {
  .event { grid-template-columns: 120px 1fr auto; gap: 32px; padding: 32px 0 36px; }
  .event__date { flex-direction: column; gap: 6px; }
  .event__day { font-size: 88px; }
  .event__side { align-items: flex-end; text-align: right; }
  .archive__grid { grid-template-columns: repeat(4, 1fr); }
  .organizers { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
}

/* ——— каталог ——— */
.services__grid { display: grid; gap: 48px; }
.services__colhead { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.services__hint { font-size: 14px; line-height: 20px; color: var(--ink3); font-weight: 400; font-family: var(--sans); }
.rows { display: flex; flex-direction: column; }
.row {
  position: relative;
  display: grid; gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.row::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.row:hover::before { transform: scaleX(1); }
.row__main { display: flex; flex-direction: column; gap: 6px; }
.row__title { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; transition: transform var(--t) var(--ease); }
.row:hover .row__title { transform: translateX(8px); }
.row__author { font-size: 13px; line-height: 18px; color: var(--ink3); }
.row__desc { color: var(--ink2); font-size: 15px; line-height: 22px; max-width: 52ch; }
.row__meta { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink3); }
.row--soon { opacity: 0.6; }
.row--soon::before { display: none; }
@media (min-width: 768px) {
  .row { grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 26px 0; }
}
@media (min-width: 1024px) { .services__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ——— две аудитории ——— */
.audiences { border-top: 1px solid var(--line); }
.audiences__grid { display: grid; }
.cta-block { padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); }
.cta-block:last-child { border-bottom: 0; }
.cta-block p:not(.caption) { color: var(--ink2); max-width: 46ch; }
.cta-block .btn { margin-top: 8px; }
@media (min-width: 1024px) {
  .audiences__grid { grid-template-columns: 1fr 1fr; }
  .cta-block { padding: 80px 64px 80px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .cta-block + .cta-block { padding-left: 64px; padding-right: 0; border-right: 0; }
}

/* ——— фильм «За игровым столом» (26.09) ———
   Вертикальный ролик 9:16 рядом с текстом: на телефоне ролик под текстом во всю ширину
   колонки, на большом экране — справа, 400 px. Играет без звука, когда виден; кнопка
   «Со звуком» включает звук и пускает с начала. */
.film { padding: 64px 0; border-top: 1px solid var(--line); }
.film__grid { display: grid; gap: 40px; align-items: center; }
.film__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.film__lead { color: var(--ink2); max-width: 46ch; }
.film__quote { margin: 8px 0 8px; padding-left: 18px; border-left: 1px solid var(--gold-500); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; max-width: 34ch; }
.film__frame { position: relative; margin: 0; width: 100%; max-width: 420px; justify-self: center; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg-el); }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__sound { position: absolute; right: 12px; bottom: 12px; height: 36px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 2px; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink); font: inherit; font-size: 13px; letter-spacing: 0.04em; cursor: pointer; backdrop-filter: blur(6px); }
.film__sound[aria-pressed="true"] { border-color: var(--gold-500); color: var(--gold-600); }
.film__sound:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
@media (min-width: 1024px) {
  .film { padding: 144px 0; }
  .film__grid { grid-template-columns: 1fr 400px; gap: 96px; }
  .film__quote { font-size: 26px; }
}

/* ——— как это работает ——— */
.how .h2 { margin-bottom: 40px; }
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--gold-600); grid-row: span 2; }
.band-dark .step__n, :root[data-theme="dark"] .step__n { color: var(--gold-500); }
.step__title { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; margin-bottom: 8px; }
.step p { color: var(--ink2); font-size: 15px; line-height: 22px; max-width: 40ch; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ——— доверие ——— */
.trust__grid { display: grid; gap: 48px; }
.trust .h2 { margin-bottom: 28px; }
.facts { display: flex; flex-direction: column; }
.fact { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact__year { color: var(--ink3); font-variant-numeric: tabular-nums; }
.fact__year.fill { justify-self: start; }
.quotes { display: flex; flex-direction: column; gap: 32px; }
.quote { padding-left: 20px; border-left: 1px solid var(--gold-500); display: flex; flex-direction: column; gap: 12px; }
.quote p { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: 7fr 5fr; gap: 96px; } .quotes { padding-top: 88px; } }

/* ——— для бизнеса ——— */
.tiles { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.tile { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
a.tile:hover .tile__task, a.tile:focus-visible .tile__task { color: var(--gold-600); }
:root[data-theme="dark"] a.tile:hover .tile__task, :root[data-theme="dark"] a.tile:focus-visible .tile__task { color: var(--gold-500); }
a.tile:hover .tile__do::before { content: "→→ "; letter-spacing: -0.4em; margin-right: 0.4em; }
.tile__task { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.tile__do { color: var(--ink2); font-size: 15px; line-height: 22px; }
.tile__do::before { content: "→ "; color: var(--gold-600); }
:root[data-theme="dark"] .tile__do::before { color: var(--gold-500); }
.strip { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 48px 0; }
.strip .photo__cap { font-size: 10px; left: 10px; bottom: 8px; right: 10px; }
.bform { display: grid; gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.bform__head p { margin-top: 8px; color: var(--ink2); }
.bform__cta { display: grid; gap: 16px; justify-items: start; align-content: start; }
.bform__note { color: var(--ink2); font-size: 15px; line-height: 22px; max-width: 40ch; }
@media (min-width: 768px) {
  .tiles { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .tile { grid-template-columns: 1fr 1fr; gap: 16px; align-items: baseline; padding: 22px 0; }
}
@media (min-width: 1024px) {
  .bform { grid-template-columns: 4fr 8fr; gap: 64px; padding-top: 64px; }
  .strip { margin: 64px 0; gap: 24px; }
}

/* ——— формы ——— */
.form { display: flex; flex-direction: column; gap: 24px; }
.form__grid { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field--req .field__label::after { content: " *"; color: var(--gold-600); }
:root[data-theme="dark"] .field--req .field__label::after { color: var(--gold-500); }
.field__input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-s);
  border-radius: var(--r-card);
  background: var(--bg);
  transition: border-color var(--t-fast) var(--ease);
  width: 100%;
}
.field__input:hover { border-color: var(--ink3); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--gold-tint); }
.field__input--area { height: auto; padding: 12px 14px; resize: vertical; min-height: 80px; }
.field__hint { font-size: 13px; line-height: 18px; color: var(--ink3); }
.field.is-error .field__input { border-color: var(--err); }
.field.is-error .field__hint { color: var(--err); }
.form__error { color: var(--err); font-size: 14px; line-height: 20px; }
.form__actions { display: flex; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 20px; color: var(--ink2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 20px; height: 20px; border: 1px solid var(--line-s); border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-el); transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.check__box svg { width: 14px; height: 14px; fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--t-slow) var(--ease); }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.bform__done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bform__done p { color: var(--ink2); max-width: 46ch; }
@media (min-width: 768px) {
  .form__grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .field--full { grid-column: 1 / -1; }
  .form__grid--one { grid-template-columns: 1fr; }
}

/* галочка stroke-draw */
.checkmark { width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.checkmark__circle { stroke: var(--gold-500); stroke-dasharray: 190; stroke-dashoffset: 190; }
.checkmark__check { stroke-dasharray: 40; stroke-dashoffset: 40; }
.is-drawn .checkmark__circle { animation: draw 400ms var(--ease) forwards; }
.is-drawn .checkmark__check { animation: draw 400ms var(--ease) 200ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ——— обо мне ——— */
.about__grid { display: grid; gap: 40px; }
.about__photo { max-width: 480px; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text > p { max-width: 58ch; }
.about__position { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; max-width: 30ch !important; }
.about__not { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.not { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.not li { position: relative; padding-left: 18px; font-size: 15px; line-height: 22px; color: var(--ink2); }
.not li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--gold-500); }
.about__quote { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink2); font-style: italic; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
.gallery .photo__cap { font-size: 10px; left: 12px; bottom: 10px; right: 12px; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
  .about__photo { max-width: none; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 96px; }
}

/* ——— финал: три строки зажигаются на скролле ——— */
.final { min-height: 100svh; display: flex; align-items: center; padding: 96px 0; }
.final__in { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; width: 100%; }
.final__line { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7.5vw, 120px); line-height: 1.0; letter-spacing: -0.02em; display: flex; flex-direction: column; gap: 0.05em; }
.final__l { display: block; }
html.has-motion .final__l { opacity: 0.12; }
html.has-motion .final__cta { opacity: 0; }
@media (min-width: 1024px) { .final__in { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ——— подвал ——— */
.footer { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; line-height: 20px; }
.footer__in { display: grid; gap: 32px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__note { color: var(--ink3); }
.footer__nav a { font-weight: 500; }
.footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 4px; }
.footer__meta .lang { margin-left: -7px; }
@media (min-width: 768px) { .footer__in { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; } .footer { padding-top: 64px; padding-bottom: 64px; } }
body.has-stickybar .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.footer { overflow: hidden; }
.footer__mark { margin: 24px 0 -0.32em; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 9.3vw, 150px); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; color: var(--s2); text-align: center; user-select: none; }
@media (min-width: 768px) { .footer__sign { margin-top: 72px; } .footer__sign .mark { width: 88px; height: 88px; } .footer__mark { margin-top: 28px; } }

/* ——— sticky-панель mobile ——— */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease);
}
.stickybar .btn { width: 100%; }
.stickybar.is-visible { transform: none; }
@media (min-width: 1024px) { .stickybar { display: none; } }

/* ——— тост ——— */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 16px);
  opacity: 0;
  padding: 12px 16px;
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-card);
  font-size: 14px; line-height: 20px;
  max-width: calc(100% - 40px);
  pointer-events: none;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
body.has-stickybar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ——— поток записи: bottom-sheet / модальное окно ——— */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(21, 16, 31, 0.55); opacity: 0; transition: opacity var(--t) var(--ease); }
.sheet__panel {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 24px);
  display: flex; flex-direction: column;
  background: var(--bg-el);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  outline: none;
  transform: translateY(24px);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
body.sheet-open { overflow: hidden; }
.sheet__head { padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.progress { height: 2px; background: var(--line); margin: 0 -20px 16px; }
.progress__bar { display: block; height: 100%; width: 20%; background: var(--gold-500); transition: width var(--t-slow) var(--ease); }
.sheet__headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet__headrow .caption { margin-bottom: 4px; }
.sheet__body { flex: 1; overflow: auto; padding: 20px; -webkit-overflow-scrolling: touch; }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-el); }
.sheet__sum { margin-left: auto; font-size: 14px; color: var(--ink2); }
.summary { display: none; }
.bstep { display: none; }
.sheet__body--embed { display: block; padding: 0; }
.bookframe { display: block; width: 100%; height: min(72dvh, 760px); border: 0; background: transparent; color-scheme: light dark; }
.sheet__alt { margin: 0; padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.bstep.is-active { display: block; animation: slidein var(--t-slow) var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.bstep__note { margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--ink3); }
.stage2 { display: grid; gap: 8px; margin-top: 24px; padding: 16px; border: 1px dashed var(--line-s); border-radius: var(--r-card); font-size: 14px; line-height: 20px; color: var(--ink2); justify-items: start; }
.stage2 + .check { margin-top: 24px; }

/* выбор услуги */
.choices { display: grid; gap: 12px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  position: relative;
  display: grid; gap: 4px;
  padding: 18px 56px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-el);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.choice__box:hover { border-color: var(--ink3); }
.choice input:checked + .choice__box { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.choice__title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.15; }
.choice__meta { font-size: 14px; line-height: 20px; color: var(--ink3); }
.choice__price { font-size: 15px; margin-top: 4px; }
.choice__check { position: absolute; right: 18px; top: 20px; width: 24px; height: 24px; fill: none; stroke: var(--gold-500); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--t-slow) var(--ease); }
.choice input:checked + .choice__box .choice__check { stroke-dashoffset: 0; }

/* календарь */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day {
  position: relative;
  height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-card);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  border: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.day:hover:not([disabled]) { background: var(--s2); }
.day[disabled] { color: var(--ink3); cursor: default; }
.day[disabled]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; background: var(--line-s); transform: translate(-50%, -50%) rotate(-20deg); }
.day.is-today { text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 4px; }
.day.is-selected { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); background: var(--bg-el); }
.day--pad { pointer-events: none; }

/* segmented control */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-s); border-radius: var(--r-chip); padding: 3px; isolation: isolate; }
.seg__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--ink); border-radius: 4px; transition: transform 180ms var(--ease); z-index: 0; }
.seg.is-second .seg__thumb { transform: translateX(100%); }
.seg__btn { position: relative; z-index: 1; height: 40px; font-size: 14px; font-weight: 500; color: var(--ink2); transition: color 180ms var(--ease); border-radius: 4px; }
.seg__btn.is-active { color: var(--bg); }

/* слоты */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
.slot {
  position: relative;
  height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-s);
  border-radius: var(--r-card);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.slot:hover:not([disabled]) { border-color: var(--ink); }
.slot[disabled] { color: var(--ink3); border-color: var(--line); text-decoration: line-through; cursor: default; }
.slot.is-selected { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); background: var(--bg-el); }
.slot__note { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); }
:root[data-theme="dark"] .slot__note { color: var(--gold-500); }
.slot svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-500); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--t-slow) var(--ease); }
.slot.is-selected svg { stroke-dashoffset: 0; }
@media (min-width: 768px) { .slots { grid-template-columns: repeat(4, 1fr); } }

/* сводка / подтверждение */
.review { display: grid; gap: 0; border-top: 1px solid var(--line); }
.review > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.review dt { color: var(--ink3); }
.summary__list { display: grid; }
.summary__list > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.summary__list dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); }
.summary .caption { margin-bottom: 8px; }

/* готово */
.bstep--done { display: none; }
.bstep--done.is-active { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.done__title { margin-top: 4px; }
.bstep--done .review { width: 100%; max-width: 560px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done__next { display: flex; flex-direction: column; gap: 10px; }
.done__list { display: flex; flex-direction: column; gap: 6px; counter-reset: n; font-size: 15px; line-height: 22px; color: var(--ink2); }
.done__list li { position: relative; padding-left: 28px; }
.done__list li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0; font-family: var(--serif); font-size: 20px; line-height: 22px; color: var(--gold-600); }
:root[data-theme="dark"] .done__list li::before { color: var(--gold-500); }
.done__prep { width: 100%; display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.done__prepactions { display: flex; align-items: center; gap: 20px; }
.bstep--done .bstep__note { margin-top: 0; }

@media (min-width: 1024px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { width: 960px; max-height: calc(100vh - 48px); border-radius: 6px; border-bottom: 1px solid var(--line); }
  .sheet__head { padding: 0 32px 18px; }
  .progress { margin: 0 -32px 20px; }
  .sheet__body { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 28px 32px; }
  .sheet__panel--embed { width: 720px; }
  .sheet__body--embed { display: block; padding: 0; }
  .bookframe { height: min(74vh, 760px); }
  .sheet__alt { padding: 12px 32px; }
  .summary { display: block; align-self: start; position: sticky; top: 0; padding-left: 32px; border-left: 1px solid var(--line); }
  .sheet__foot { padding: 14px 32px; }
}

/* ——— reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html.no-motion { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .hero .hero__place, .hero .hero__name, .hero .hero__triad, .hero .hero__sub, .hero .hero__cta, .hero .hero__trust, .hero .hero__photo, .hero .reveal__in { opacity: 1; transform: none; }
}

/* ——— голос: медленная лента её фраз ——— */
.voice { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.voice__track { display: flex; align-items: center; gap: 40px; width: max-content; padding-left: 40px; animation: marquee 80s linear infinite; will-change: transform; }
.voice:hover .voice__track { animation-play-state: paused; }
.voice__item { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.1; white-space: nowrap; color: var(--ink); }
.voice__sep { color: var(--gold-500); font-size: 10px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ——— путь по странице (desktop) ——— */
.rail { display: none; position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 40; flex-direction: column; align-items: flex-end; gap: 28px; padding: 6px 0; }
.rail__line { position: absolute; right: 4px; top: 0; bottom: 0; width: 1px; background: var(--line-s); }
.rail__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--gold-500); }
.rail__cell { position: relative; display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; height: 10px; }
.rail__cell::before { content: ""; flex: none; width: 9px; height: 9px; border: 1px solid var(--gold-500); background: var(--bg); transform: rotate(45deg); transition: background-color var(--t) var(--ease), transform var(--t) var(--ease); }
.rail__cell.is-active::before { background: var(--gold-500); transform: rotate(45deg) scale(1.3); }
.rail__cell .caption { color: var(--ink2); opacity: 0; transform: translateX(6px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); white-space: nowrap; }
.rail:hover .rail__cell .caption, .rail__cell.is-active .caption { opacity: 1; transform: none; }
/* первый экран следует теме (21.09) — отдельных «тёмных» цветов у дорожки и шапки над ним больше нет */
@media (min-width: 1280px) { .rail { display: flex; } }

/* ——— зерно ——— */
.grain { position: fixed; inset: 0; z-index: 94; pointer-events: none; opacity: 0.055; mix-blend-mode: multiply; overflow: hidden; }
:root[data-theme="dark"] .grain { mix-blend-mode: soft-light; opacity: 0.09; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: soft-light; opacity: 0.09; } }
.grain::before {
  content: ""; position: absolute; left: -50%; top: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, -5%); } 40% { transform: translate(-7%, 2%); }
  60% { transform: translate(4%, -6%); } 80% { transform: translate(-5%, 6%); } 100% { transform: translate(2%, 3%); }
}
html.no-motion .grain, html:not(.has-motion) .grain { display: none; }

/* ——— курсор ——— */
.cursor { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; opacity: 0; transition: opacity var(--t) var(--ease); display: none; }
html.has-cursor .cursor { display: block; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; display: block; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold-500); }
.cursor__ring::before { content: ""; display: block; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid var(--gold-500); opacity: 0.75; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.cursor.is-hover .cursor__ring::before { transform: scale(1.7); opacity: 1; }
.cursor.is-down .cursor__ring::before { transform: scale(0.8); }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor .chip, html.has-cursor .fill, html.has-cursor .confirm { cursor: none; }

/* ——— lenis ——— */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ——— переключение темы: круг от кнопки ——— */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ——— reduced motion: всё выключить ——— */
@media (prefers-reduced-motion: reduce) {
  .voice__track { animation: none; }
  .hero__hint i { animation: none; }
  .grain { display: none; }
  html.has-motion .final__l, html.has-motion .final__cta { opacity: 1; }
}
