/* Лендинг Dyrkant. Грузится после site.css и переопределяет его для главной. */

:root {
  interpolate-size: allow-keywords;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --line: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --page-max: 1180px;

  /* Discord-мок одинаковый в обеих темах — это «скриншот» */
  --dc-bg: #313338;
  --dc-side: #2b2d31;
  --dc-rail: #1e1f22;
  --dc-card: #2b2d31;
  --dc-text: #dbdee1;
  --dc-head: #f2f3f5;
  --dc-muted: #949ba4;
  --dc-line: #3f4147;
  --dc-blurple: #5865f2;
  --dc-green: #248046;
  --dc-red: #da373c;
  --dc-grey: #4e5058;
}
[data-theme="light"] {
  --line: rgba(24, 24, 27, 0.09);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.92);
}

body.is-landing { background: var(--bg); }
body.is-landing .bg-orbs { display: none; }

.bg-grid {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ── Шапка ─────────────────────────────────────────── */
body.is-landing .site-top { max-width: var(--page-max); }
body.is-landing .nav {
  padding: 8px 8px 8px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: none;
  border-color: var(--line);
}
body.is-landing .brand img,
body.is-landing .logo { width: 40px; height: 40px; border-radius: 12px; }
body.is-landing .brand strong { font-size: 17px; }
body.is-landing .brand span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.is-landing .nav-links a { font-size: 13.5px; font-weight: 600; transition: color 0.2s, background 0.2s; }

/* ── Кнопки ────────────────────────────────────────── */
body.is-landing .btn {
  border-radius: 12px;
  border-color: var(--line);
  background: var(--surface);
  font-weight: 700;
  transition: transform 0.25s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
body.is-landing .btn:hover { transform: translateY(-1px); background: var(--surface-2); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
body.is-landing .btn:active { transform: translateY(0) scale(0.98); }
body.is-landing .btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 8px 24px -8px rgba(255, 59, 48, 0.7);
}
body.is-landing .btn-primary:hover { background: #ff5047; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 12px 32px -8px rgba(255, 59, 48, 0.85); }
body.is-landing .btn-ghost { background: transparent; }
.btn-lg { min-height: 50px !important; padding: 12px 22px !important; font-size: 15px !important; }
.btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* ── Типографика ───────────────────────────────────── */
body.is-landing .wrap { max-width: var(--page-max); padding: 0 24px 64px; }
body.is-landing h1,
body.is-landing h2,
body.is-landing h3 { color: var(--text); }
body.is-landing p, body.is-landing li { font-size: 16px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
body.is-landing h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.section-lead { margin: 0; max-width: 620px; color: var(--muted); font-size: 17px !important; line-height: 1.55; text-wrap: pretty; }
.section-head { margin-bottom: 44px; }
body.is-landing .section { padding: 72px 0; scroll-margin-top: 80px; }
.small-note { color: var(--muted); font-size: 14px !important; }
.small-note a, .faq-list a, .plan-legal a, a.inline { color: var(--accent); font-weight: 650; text-decoration: none; }
.small-note a:hover, .faq-list a:hover, .plan-legal a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
  min-height: min(820px, calc(100vh - 80px));
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px !important;
  color: var(--muted);
}
.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: ping 2.4s ease-out infinite;
}
.kicker-dot.is-maint { background: #f59e0b; animation: none; }
.kicker-dot.is-down { background: #ef4444; animation: none; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}
body.is-landing h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 6.6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.accent-word {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.accent-word::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -0.02em;
  height: 0.055em;
  border-radius: 99px;
  background: currentColor;
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: underline-in 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }
.hero-lead { margin: 0 0 30px; max-width: 520px; color: var(--muted); font-size: 18px !important; line-height: 1.55; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.projects { margin: 28px 0 0; }
.projects-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.projects-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.projects-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px !important;
  white-space: nowrap;
  font-weight: 650;
}
.proj-logo {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}
.proj-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.proj-logo.has-img { background: transparent; border-color: transparent; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li { margin: 0; font-size: 14px !important; color: var(--muted); }
.hero-facts strong { color: var(--text); font-weight: 700; }
.hero-proof { margin: 14px 0 0; font-size: 13px !important; color: var(--muted); }
.hero-proof strong { color: var(--text); }
.hero-caption { margin: 14px 4px 0; font-size: 12.5px !important; color: var(--muted); text-align: center; }

/* Появление героя при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease-out) forwards; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.22s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.38s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.44s; }
  .hero-visual { opacity: 0; transform: translateY(24px) scale(0.98); animation: rise 1s var(--ease-out) 0.25s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Marquee ───────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.marquee span::after { content: '✦'; color: var(--accent); font-size: 10px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Discord-мок ───────────────────────────────────── */
.dc {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dc-bg);
  color: var(--dc-text);
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .dc { box-shadow: 0 40px 80px -30px rgba(24, 24, 27, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.dc-hero::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 59, 48, 0.7), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.dc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: var(--dc-rail);
  border-bottom: 1px solid #111214;
  font-size: 13px;
}
.dc-dots { display: inline-flex; gap: 6px; }
.dc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3c42; }
.dc-dots i:first-child { background: #ff5f57; }
.dc-dots i:nth-child(2) { background: #febc2e; }
.dc-dots i:nth-child(3) { background: #28c840; }
.dc-bar-title { font-weight: 700; color: var(--dc-head); }
.dc-bar-hint { margin-left: auto; color: var(--dc-muted); font-size: 12px; }
.dc-body { display: grid; grid-template-columns: 56px 150px 1fr; height: 480px; }
.dc-guilds { background: var(--dc-rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.dc-guild {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dc-bg);
  color: var(--dc-text);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.dc-guild img { width: 100%; height: 100%; object-fit: cover; }
.dc-guild.is-active { border-radius: 14px; box-shadow: -10px 0 0 -6px #fff; }
.dc-guild-add { color: #23a559; font-size: 20px; font-weight: 400; }
.dc-channels { background: var(--dc-side); padding: 12px 8px; font-size: 13.5px; color: var(--dc-muted); }
.dc-ch-group { padding: 12px 8px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.dc-ch { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-radius: 6px; }
.dc-ch.is-active { background: #404249; color: var(--dc-head); }
.dc-ch-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--dc-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.35s var(--ease-spring);
}
.dc-ch-badge.is-on { transform: scale(1); }
.dc-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 16px 16px 18px;
  overflow: hidden;
  min-width: 0;
}
.dc-chat-solo { justify-content: flex-start; padding: 18px; }
.dc-msg { display: grid; grid-template-columns: 40px 1fr; gap: 14px; min-width: 0; }
.dc-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--dc-rail); }
.dc-msg-main { min-width: 0; }
.dc-msg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dc-msg-head b { color: var(--dc-head); font-weight: 600; }
.dc-msg-head time { color: var(--dc-muted); font-size: 12px; }
.dc-tag { padding: 0 4px; border-radius: 3px; background: var(--dc-blurple); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; }
.dc-ephemeral { color: var(--dc-muted); font-size: 12px; }
.dc-ephemeral::before { content: '👁 '; }
.dc-mention {
  margin: 0 -8px 6px;
  padding: 2px 8px;
  border-left: 2px solid #f0b232;
  background: rgba(240, 178, 50, 0.08);
  color: var(--dc-text);
  font-size: 14px;
}
.dc-ping { color: #c9cdfb; background: rgba(88, 101, 242, 0.3); border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-card {
  position: relative;
  max-width: 460px;
  padding: 14px 16px 14px 18px;
  border-radius: 8px;
  background: var(--dc-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: max-width 0.3s;
}
.dc-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--acc, var(--dc-blurple));
  transition: background 0.5s;
}
.dc-label { font-size: 12px; color: var(--dc-muted); font-weight: 600; margin-bottom: 2px; }
.dc-title { font-size: 16px; font-weight: 700; color: var(--dc-head); margin-bottom: 6px; }
.dc-h3 { margin: 12px 0 4px; font-size: 14px; font-weight: 700; color: var(--dc-head); }
.dc-text { margin: 4px 0; font-size: 14px; color: var(--dc-text); }
.dc-text b, .dc-fields b { color: var(--dc-head); font-weight: 700; }
.dc-muted { color: var(--dc-muted); }
.dc-meta-lines { line-height: 1.7; }
.dc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 10px 0; }
.dc-fields > div { font-size: 14px; display: flex; flex-direction: column; }
.dc-field-wide { grid-column: 1 / -1; }
.dc-warn { margin: 4px 0; font-size: 13.5px; color: #f0b232; }
.dc-sep { height: 1px; background: var(--dc-line); margin: 12px 0; }
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--dc-grey);
  cursor: default;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s, opacity 0.3s;
}
button.dc-btn { cursor: pointer; }
button.dc-btn:hover { filter: brightness(1.12); }
button.dc-btn:active { transform: scale(0.96); }
button.dc-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }
.dc-btn:focus-visible, .dc-chip:focus-visible, .dc-select-btn:focus-visible { outline: 2px solid #00a8fc; outline-offset: 2px; }
.dc-btn.is-blue { background: var(--dc-blurple); }
.dc-btn.is-green { background: var(--dc-green); }
.dc-btn.is-red { background: var(--dc-red); }
.dc-btn.is-ghost { background: transparent; }
.dc-btn.is-pressed { transform: scale(0.94); filter: brightness(0.85); }
.dc-system { display: flex; align-items: center; gap: 12px; padding-left: 10px; font-size: 14px; color: var(--dc-muted); }
.dc-system b { color: var(--dc-head); font-weight: 600; }
.dc-system-ico { width: 20px; color: #23a559; font-weight: 700; text-align: center; }
.dc-role { display: inline-block; padding: 0 6px; border-radius: 4px; background: rgba(255, 59, 48, 0.18); color: #ff8a83; font-weight: 600; }
.dc-dm { margin-left: 54px; padding: 10px 12px; border-radius: 8px; background: var(--dc-rail); font-size: 14px; max-width: 420px; }
.dc-dm-head { font-size: 11.5px; color: var(--dc-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.dc-typing { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dc-muted); height: 0; opacity: 0; overflow: hidden; transition: opacity 0.25s, height 0.25s; }
.dc-typing b { color: var(--dc-head); }
.dc-typing.is-on { height: 18px; opacity: 1; }
.dc-typing-dots { display: inline-flex; gap: 3px; }
.dc-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dc-text); animation: typing 1.2s infinite ease-in-out; }
.dc-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.dc-typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Герой-сцена: состояния, которыми управляет landing.js */
.dc-hero .dc-msg-new,
.dc-hero .dc-system { display: none; }
.dc-hero .dc-msg-new.is-on,
.dc-hero .dc-system.is-on { display: grid; animation: msg-in 0.5s var(--ease-out); }
.dc-hero .dc-system.is-on { display: flex; }
.dc-hero .dc-msg-old { transition: opacity 0.4s; }
.dc-hero [data-el="claimRow"], .dc-hero [data-el="decideRow"], .dc-hero [data-el="sep"] { transition: opacity 0.3s; }
.dc-hero .is-gone { display: none; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dc-flash { animation: flash 0.7s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 2px var(--acc); } to { box-shadow: 0 0 0 0 transparent; } }
.dc-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translate(520px, 420px);
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.3s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.dc-cursor.is-on { opacity: 1; }
.dc-cursor.is-click svg { animation: click 0.3s ease; }
@keyframes click { 50% { transform: scale(0.82); } }

/* ── Скролл-история ────────────────────────────────── */
.story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step {
  position: relative;
  margin: 0;
  padding: 28px 0 28px 28px;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.5s var(--ease-out);
}
.story-step::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 30%;
  bottom: 30%;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.5s var(--ease-out);
}
.story-step:last-child { min-height: 64vh; }
.story-step.is-active { opacity: 1; }
.story-step.is-active::before { transform: scaleY(1); }
.story-num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.story-step h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; font-weight: 750; }
.story-step p { margin: 0; color: var(--muted); max-width: 440px; line-height: 1.6; }
.story-stage { position: sticky; top: calc(50vh - 250px); }
.dc-stage .story-scenes { position: relative; height: 440px; }
.story-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s 0.45s;
}
.story-scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s; }
.story-scene .dc-pop { opacity: 0; transform: translateY(8px); }
.story-scene.is-active .dc-pop { animation: rise 0.5s var(--ease-out) var(--d, 0s) forwards; }
.story-scene.is-active .dc-card-flip { animation: flash 0.9s ease-out 0.15s; }

.dc-modal {
  margin: 22px auto;
  width: min(420px, calc(100% - 32px));
  padding: 18px;
  border-radius: 10px;
  background: var(--dc-bg);
  box-shadow: 0 0 0 1px var(--dc-line), 0 24px 48px rgba(0, 0, 0, 0.45);
}
.dc-modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 700; color: var(--dc-head); }
.dc-modal-head img { border-radius: 50%; }
.dc-modal label { display: block; margin: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--dc-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.dc-input { min-height: 38px; padding: 9px 10px; border-radius: 6px; background: var(--dc-rail); font-size: 14px; color: var(--dc-text); }
.dc-input-tall { min-height: 56px; }
.dc-input.is-typing::after { content: ''; display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--dc-text); animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dc-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dc-submit.is-ready { animation: ready 1.2s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.35); } }

.story-log { padding: 20px; display: flex; flex-direction: column; gap: 4px; height: 100%; }
.log-row { display: grid; grid-template-columns: 44px 12px 1fr; gap: 10px; align-items: start; padding: 10px 6px; border-bottom: 1px solid var(--dc-line); }
.log-row time { font-family: var(--mono); font-size: 12px; color: var(--dc-muted); padding-top: 2px; }
.log-row b { display: block; color: var(--dc-head); font-weight: 600; }
.log-row small { color: var(--dc-muted); font-size: 12.5px; }
.log-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--dc-muted); }
.log-dot.is-ok { background: #23a559; }
.log-dot.is-bad { background: var(--dc-red); }
.log-dot.is-info { background: var(--dc-blurple); }
.tg-toast {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.tg-toast b { display: block; font-size: 13px; }
.tg-toast small { font-size: 12.5px; color: #444; }
.tg-toast-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #2aabee; color: #fff; font-size: 15px; }

/* ── Демо ──────────────────────────────────────────── */
.demo { max-width: 820px; margin: 0 auto; }
#demo .section-head { text-align: center; }
#demo .section-lead { margin-inline: auto; }
.demo-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.demo-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.demo-tab:hover { color: var(--text); }
.demo-tab.is-active { background: var(--text); color: var(--bg); }
.demo-reset {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--dc-muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.demo-reset:hover { color: var(--dc-head); background: rgba(255, 255, 255, 0.06); }
.dc-demo .demo-pane { min-height: 480px; }
.demo-pane[hidden] { display: none; }
.demo-pane.is-active { animation: pane-in 0.4s var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dc-reasons { margin-top: 8px; padding: 12px; border-radius: 8px; background: var(--dc-rail); max-width: 460px; animation: msg-in 0.3s var(--ease-out); }
.dc-reasons-head { font-size: 12px; font-weight: 700; color: var(--dc-muted); text-transform: uppercase; margin-bottom: 8px; }
.dc-chip {
  margin: 0 6px 6px 0;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--dc-line);
  background: var(--dc-bg);
  color: var(--dc-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.dc-chip:hover { border-color: var(--dc-muted); }
.dc-feed-item { margin-top: 12px; animation: msg-in 0.4s var(--ease-out); }
.dc-votes { line-height: 1.7; }
.dc-votes .is-picked { color: #23a559; font-weight: 700; }
.dc-list { margin: 2px 0 0; padding: 0; list-style: none; counter-reset: n; font-size: 14px; columns: 2; column-gap: 16px; }
.dc-list li { break-inside: avoid; }
.dc-list li { margin: 2px 0; font-size: 14px; color: var(--dc-text); counter-increment: n; }
.dc-list li::before { content: counter(n) '. '; font-family: var(--mono); font-size: 12px; color: var(--dc-muted); padding: 0 4px; background: var(--dc-rail); border-radius: 3px; margin-right: 6px; }
.dc-list li.is-new { animation: li-in 0.5s var(--ease-out); }
.dc-list li.is-empty::before { display: none; }
@keyframes li-in { from { opacity: 0; transform: translateX(-8px); background: rgba(35, 165, 89, 0.25); } to { opacity: 1; transform: none; background: transparent; } }
.dc-catalog { margin: 10px 0 0; display: grid; gap: 8px; }
.dc-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 14px; }
.dc-item b { color: var(--dc-head); }
.dc-item span { color: var(--dc-text); font-family: var(--mono); font-size: 13px; }
.dc-item small { grid-column: 1 / -1; color: var(--dc-muted); font-size: 13px; }
.dc-balance { display: inline-block; font-family: var(--mono); font-weight: 700; color: var(--dc-head); }
.dc-balance.is-bump { animation: bump 0.5s var(--ease-spring); }
@keyframes bump { 40% { transform: translateY(-3px); color: #ff8a83; } }
.dc-select { position: relative; max-width: 460px; }
.dc-select-btn {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--dc-rail);
  background: var(--dc-rail);
  color: var(--dc-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.dc-select-btn[aria-expanded="true"] .dc-select-caret { transform: rotate(180deg); }
.dc-select-caret { transition: transform 0.2s; color: var(--dc-muted); }
.dc-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  z-index: 5;
  padding: 4px;
  border-radius: 6px;
  background: var(--dc-side);
  border: 1px solid var(--dc-rail);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  animation: msg-in 0.2s var(--ease-out);
}
.dc-option {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dc-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.dc-option:hover, .dc-option:focus-visible { background: #35373c; outline: none; }
.dc-option small { color: var(--dc-muted); font-family: var(--mono); }

/* ── Модули: bento ─────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px circle at var(--mx, -100px) var(--my, -100px), rgba(255, 59, 48, 0.12), transparent 40%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.tile:hover { border-color: rgba(255, 59, 48, 0.35); transform: translateY(-3px); }
.tile-wide { grid-column: span 2; }
.tile.tile-wide p { max-width: calc(100% - 150px); }
.tile-ico {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-spring);
}
.tile-ico img { width: 30px; height: 30px; display: block; }
.tile:hover .tile-ico { transform: rotate(-6deg) scale(1.06); }
.tile-plan {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tile-plan.is-full { color: var(--accent); border-color: rgba(255, 59, 48, 0.35); background: var(--accent-soft); }
.tile h3 { margin: 0 0 8px; font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.tile p { margin: 0; font-size: 14.5px !important; color: var(--muted); line-height: 1.5; max-width: 440px; }
.tile-art { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 5px; opacity: 0.9; }
.tile-art-queue { flex-direction: column; width: 120px; }
.tile-art-queue i { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); animation: queue 4s var(--ease-out) infinite; }
.tile-art-queue i:nth-child(1) { width: 100%; animation-delay: 0s; }
.tile-art-queue i:nth-child(2) { width: 80%; animation-delay: 0.3s; }
.tile-art-queue i:nth-child(3) { width: 90%; animation-delay: 0.6s; }
.tile-art-queue i:nth-child(4) { width: 60%; animation-delay: 0.9s; }
@keyframes queue {
  0%, 15% { background: var(--surface-2); }
  25%, 60% { background: rgba(35, 165, 89, 0.55); border-color: transparent; }
  75%, 100% { background: var(--surface-2); }
}
.tile-art-pulse { align-items: flex-end; height: 40px; }
.tile-art-pulse i { width: 5px; border-radius: 3px; background: var(--accent); opacity: 0.6; animation: eq 1.6s ease-in-out infinite; }
.tile-art-pulse i:nth-child(odd) { animation-duration: 1.9s; }
.tile-art-pulse i:nth-child(3n) { animation-duration: 1.3s; }
.tile-art-pulse i:nth-child(n) { animation-delay: calc(var(--k, 0) * -0.2s); }
.tile-art-pulse i:nth-child(2) { --k: 1; } .tile-art-pulse i:nth-child(3) { --k: 2; } .tile-art-pulse i:nth-child(4) { --k: 3; }
.tile-art-pulse i:nth-child(5) { --k: 4; } .tile-art-pulse i:nth-child(6) { --k: 5; } .tile-art-pulse i:nth-child(7) { --k: 6; }
.tile-art-pulse i:nth-child(8) { --k: 7; } .tile-art-pulse i:nth-child(9) { --k: 8; } .tile-art-pulse i:nth-child(10) { --k: 9; }
.tile-art-pulse i:nth-child(11) { --k: 10; } .tile-art-pulse i:nth-child(12) { --k: 11; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.more-link { margin: 22px 0 0; }
.more-link a, .more-link-inline { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.more-link a:hover, .more-link-inline:hover { color: var(--accent); }

/* ── Split + телефон ───────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 64px; align-items: center; }
.split .section-lead { margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { position: relative; margin: 10px 0; padding-left: 28px; color: var(--text); font-size: 15.5px !important; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23ff3b30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 640px;
  margin: 0 auto;
  border-radius: 44px;
  padding: 12px;
  background: #0b0b0d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 7px #1a1a1d, 0 50px 100px -30px rgba(0, 0, 0, 0.8);
  transform: rotate(-2deg);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 50px 16px 12px;
  border-radius: 34px 34px 0 0;
  background: #17212b;
  color: #fff;
}
.tg-head img { border-radius: 50%; }
.tg-head b { display: block; font-size: 15px; }
.tg-head small { color: #6d7f8f; font-size: 12.5px; }
.tg-chat {
  height: calc(100% - 98px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 10px 16px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background: #0e1621 radial-gradient(circle at 30% 20%, rgba(42, 171, 238, 0.08), transparent 60%);
}
.tg-msg {
  position: relative;
  max-width: 92%;
  padding: 9px 12px 20px;
  border-radius: 14px 14px 14px 4px;
  background: #182533;
  color: #e9eef3;
  font-size: 13px;
  line-height: 1.42;
  display: none;
}
.tg-msg:has(.tg-photo) { padding: 3px 3px 20px; width: 92%; }
.tg-photo { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-radius: 12px 12px 4px 4px; background: #0e1621; }
.tg-cap { padding: 7px 9px 0; }
.tg-msg b { display: block; margin-bottom: 4px; font-weight: 700; }
.tg-msg time { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #6d7f8f; }
.tg-dim { color: #8d9ba8; }
.tg-msg.is-in { display: block; animation: tg-in 0.55s var(--ease-spring); transform-origin: 0 100%; }
@keyframes tg-in { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }

/* ── Мок панели в браузере ─────────────────────────── */
.browser {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6);
}
.browser-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser-url { flex: 0 1 380px; margin: 0 auto; padding: 4px 12px; border-radius: 8px; background: var(--surface-2); font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }
.browser-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.pn-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line); }
.pn-guild { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.pn-guild img { border-radius: 8px; }
.pn-side span { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.pn-side span.is-active { background: var(--accent-soft); color: var(--text); }
.pn-main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.pn-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pn-kpis > div, .pn-card { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.pn-kpis small, .pn-card small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.pn-kpis b { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text); }
.pn-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.pn-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 12px; }
.pn-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, rgba(255, 59, 48, 0.35), var(--accent));
  transform-origin: 50% 100%;
  transform: scaleY(0.04);
  transition: transform 0.9s var(--ease-out);
}
.pn-bars i:nth-child(2) { transition-delay: 0.06s; } .pn-bars i:nth-child(3) { transition-delay: 0.12s; }
.pn-bars i:nth-child(4) { transition-delay: 0.18s; } .pn-bars i:nth-child(5) { transition-delay: 0.24s; }
.pn-bars i:nth-child(6) { transition-delay: 0.3s; } .pn-bars i:nth-child(7) { transition-delay: 0.36s; }
.browser.is-visible .pn-bars i { transform: none; }
.pn-days { display: flex; gap: 10px; margin-top: 6px; }
.pn-days span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pn-q { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.pn-q:last-child { border-bottom: 0; }
.pn-q em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pn-dot.is-warn { background: #f59e0b; }

/* ── До / после ────────────────────────────────────── */
.ba { max-width: 860px; }
.ba-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ba-opt { position: relative; z-index: 1; min-width: 130px; min-height: 40px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: color 0.3s; }
.ba-opt.is-on { color: #fff; }
.ba-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--accent); transform: translateX(100%); transition: transform 0.45s var(--ease-spring), background 0.3s; }
.ba[data-mode="was"] .ba-knob { transform: translateX(0); background: #52525b; }
.ba-rows { border-top: 1px solid var(--line); }
.ba-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ba-k { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.ba-was, .ba-now { grid-column: 2; grid-row: 1; font-size: 17px; font-weight: 600; transition: opacity 0.35s, transform 0.45s var(--ease-out), filter 0.35s; }
.ba-now { color: var(--text); }
.ba-was { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 59, 48, 0.6); }
.ba[data-mode="now"] .ba-was, .ba[data-mode="was"] .ba-now { opacity: 0; transform: translateY(8px); filter: blur(4px); pointer-events: none; }
.ba-row:nth-child(2) > span:not(.ba-k) { transition-delay: 0.04s; }
.ba-row:nth-child(3) > span:not(.ba-k) { transition-delay: 0.08s; }
.ba-row:nth-child(4) > span:not(.ba-k) { transition-delay: 0.12s; }
.ba-row:nth-child(5) > span:not(.ba-k) { transition-delay: 0.16s; }

/* ── Цифры, доверие, новости ───────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: 28px; }
.stats > div { padding: 30px 24px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--mono); font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; letter-spacing: -0.04em; color: var(--text); line-height: 1.1; }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.trust-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.trust-grid > :only-child { grid-column: 1 / -1; }
.trust-showcase, .news { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.trust-showcase[hidden] { display: none; }
.trust-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.trust-head h3, .news h3 { margin: 0; font-size: 18px; font-weight: 750; }
.trust-lead { margin: 0 0 12px; font-size: 14px !important; }
.trust-lead strong { color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(52, 211, 153, 0.12); color: #34d399; font-size: 12.5px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.trust-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.trust-avatar-wrap { position: relative; flex: none; }
.trust-avatar, .trust-avatar-fallback { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; color: var(--text); font-size: 14px; object-fit: cover; }
.trust-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #71717a; border: 2px solid var(--bg); }
.trust-dot.is-on { background: #34d399; }
.trust-meta { min-width: 0; }
.trust-name { color: var(--text); font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trust-members { color: var(--muted); font-size: 12.5px; }
.trust-badge { display: none; }
.trust-more, .trust-empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.news-meta { margin: 0 0 6px; font-family: var(--mono); font-size: 12px !important; color: var(--muted); }
.news h3 { margin-bottom: 10px; }
.news ul { margin: 0 0 16px; padding-left: 18px; }
.news li { margin: 6px 0; font-size: 14.5px !important; }
.news .eyebrow { margin-bottom: 10px; }

/* ── Отзывы ────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.review { margin: 0; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); font-weight: 500; text-wrap: pretty; }
.review blockquote::before { content: '“'; display: block; font-size: 44px; line-height: 0.6; margin-bottom: 8px; color: var(--accent); font-weight: 800; }
.review figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Тарифы ────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 920px; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.plan h3 { margin: 0; font-size: 20px; font-weight: 750; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-badge { padding: 4px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.plan-price { margin: 16px 0 2px; font-size: 48px !important; font-weight: 800; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.plan-price small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-sub { margin: 6px 0 22px; font-size: 14px !important; color: var(--muted); }
.plan .checks { flex: 1; }
.plan .btn { width: 100%; }
.plan-full {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(150deg, rgba(255, 59, 48, 0.9), rgba(255, 59, 48, 0.1) 45%, var(--line)) border-box;
  box-shadow: 0 40px 80px -40px rgba(255, 59, 48, 0.45);
}
.plan-legal { margin: 14px 0 0; font-size: 13px !important; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 650; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.promo-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.promo-modal[hidden] { display: none; }
.promo-modal-card { width: min(440px, 100%); padding: 26px; border-radius: 20px; background: var(--bg-elevated); border: 1px solid var(--line); animation: msg-in 0.35s var(--ease-out); }
.promo-modal-card h3 { margin: 0 0 8px; font-size: 20px; }

/* ── FAQ ───────────────────────────────────────────── */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); font-weight: 400; font-size: 18px; transition: transform 0.35s var(--ease-out), color 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-list summary:hover::after { color: var(--text); }
.faq-list details p { margin: 0 0 20px; max-width: 720px; line-height: 1.6; }
.faq-list details::details-content { height: 0; overflow: clip; transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

/* ── Финал и подвал ────────────────────────────────── */
.final {
  position: relative;
  overflow: hidden;
  padding: 64px 40px;
  border-radius: 28px;
  text-align: center;
  border: 1px solid rgba(255, 59, 48, 0.3);
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(255, 59, 48, 0.35), transparent 70%), var(--surface);
}
.final h2 { margin-bottom: 12px; }
.final p { margin: 0 auto 28px; max-width: 480px; color: var(--muted); }
.final .hero-cta { justify-content: center; }
body.is-landing .footer { margin-top: 24px; gap: 18px; padding-top: 28px; border-top-color: var(--line); }
body.is-landing .footer strong { color: var(--text); }
body.is-landing .footer a { color: var(--muted); font-weight: 600; }
body.is-landing .footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ── Появление при скролле ─────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  body.is-landing .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  body.is-landing .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .kicker-dot, .tile-art i, .dc-typing-dots i, .dc-submit { animation: none !important; }
  .accent-word::after { animation: none; transform: scaleX(1); }
  .story-scene .dc-pop { opacity: 1; transform: none; }
  .pn-bars i { transform: none; transition: none; }
  .ba-was, .ba-now, .story-scene { transition: none; }
}
html.is-tab-hidden .marquee-track,
html.is-tab-hidden .tile-art i,
html.is-tab-hidden .kicker-dot { animation-play-state: paused; }

/* ── Адаптив ───────────────────────────────────────── */
@media (max-width: 1320px) {
  .dc-hero .dc-body { grid-template-columns: 56px 1fr; }
  .dc-hero .dc-channels { display: none; }
}
@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 40px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; min-height: 0; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { position: sticky; top: 124px; order: -1; z-index: 2; margin-bottom: 8px; }
  .dc-stage .story-scenes { height: 340px; }
  .story-step { min-height: 62vh; justify-content: flex-end; padding-top: 18px; padding-bottom: 28px; }
  .story-step:last-child { min-height: 62vh; }
  .story-step.is-active { background: linear-gradient(90deg, var(--surface), transparent); }
  .split { grid-template-columns: 1fr; }
  .phone { transform: none; height: 580px; }
  .browser-body { grid-template-columns: 1fr; }
  .pn-side { display: none; }
  .pn-kpis { grid-template-columns: repeat(2, 1fr); }
  .pn-grid, .trust-grid, .reviews, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 4px; }
  .stats > div:last-child { border-bottom: 0; }
  .ba-row { grid-template-columns: 1fr; gap: 6px; }
  .ba-was, .ba-now { grid-column: 1; grid-row: 2; }
}
@media (max-width: 640px) {
  body.is-landing .wrap { padding: 0 16px 48px; }
  body.is-landing .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .dc-body { grid-template-columns: 1fr; height: 440px; }
  .dc-guilds { display: none; }
  .dc-chat { padding: 12px; }
  .dc-msg { grid-template-columns: 32px 1fr; gap: 10px; }
  .dc-ava { width: 32px; height: 32px; }
  .dc-card { padding: 12px 12px 12px 14px; }
  .dc-fields { grid-template-columns: 1fr; }
  .dc-btn { padding: 0 10px; font-size: 13px; }
  .dc-dm { margin-left: 0; }
  .dc-stage .story-scenes { height: 346px; }
  .dc-stage .dc-bar { height: 34px; }
  .dc-stage .dc-modal { margin: 8px auto; padding: 12px; }
  .dc-stage .dc-modal-head { font-size: 15px; margin-bottom: 6px; }
  .dc-stage .dc-modal-foot { margin-top: 10px; }
  .dc-stage .log-row { padding: 7px 4px; }
  .dc-stage .dc-dm { display: none; }
  .dc-stage .dc-modal label { margin-top: 6px; }
  .dc-stage .dc-input { min-height: 32px; padding: 6px 10px; }
  .story-log { padding: 12px; }
  .dc-chat-solo { padding: 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile.tile-wide p { max-width: none; }
  .dc-list { columns: 1; }
  .tile-art { display: none; }
  .trust-list { grid-template-columns: 1fr; }
  .final { padding: 44px 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .demo-tabs { display: flex; }
  .demo-tab { flex: 1; padding: 0 8px; }
}
