/* ============================================================
   Т-Бонус — дизайн-система в стилистике tbank.ru
   Шрифты: Manrope (заголовки), Inter (текст) — самохостинг
   ============================================================ */

/* --- Шрифты --- */
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/static/fonts/manrope-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/static/fonts/manrope-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/static/fonts/manrope-cyrillic-800.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/static/fonts/manrope-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }

/* --- Токены --- */
:root {
  --yellow: #FFDD2D;
  --yellow-press: #FCC521;
  --ink: rgba(0, 0, 0, .8);
  --ink-solid: #1C1C1E;
  --gray: rgba(0, 0, 0, .55);
  --gray-3: rgba(0, 0, 0, .32);
  --bg: #ffffff;
  --panel: #F6F7F8;
  --line: rgba(0, 0, 0, .08);
  --lavender: #E6E1F6;
  --blue: #DFE5EE;
  --mint: #C9F0E5;
  --peach: #FDEBD8;
  --yellow-light: #FFF6CF;
  --r-btn: 12px;
  --r-card: 24px;
  --r-panel: 40px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, .07);
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, .16);
  --font-display: "Manrope", "Segoe UI", -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  --header-h: 64px;
}

/* --- Reset / база --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 20px; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--ink-solid); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink-solid); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.small { font-size: 13px; color: var(--gray); }
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink-solid); color: #fff; padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus-visible { left: 12px; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border: 0; border-radius: var(--r-btn); cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2;
  color: var(--ink-solid); background: var(--panel);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--yellow); box-shadow: 0 6px 20px rgba(255, 221, 45, .35); }
.btn--primary:hover { background: var(--yellow-press); box-shadow: 0 10px 28px rgba(252, 197, 33, .45); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--panel); }
.btn--white { background: #fff; box-shadow: var(--shadow-card); }
.btn--lg { padding: 18px 34px; font-size: 17px; border-radius: 14px; }

/* --- Бейджи --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--ink-solid);
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.badge--soft { background: var(--yellow-light); }
.badge__ico { width: 15px; height: 15px; flex-shrink: 0; }

/* --- Переключатель темы --- */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border: 0; cursor: pointer; border-radius: 12px; background: var(--panel);
  color: var(--ink-solid); transition: background-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); background: var(--yellow-light); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
.dark .theme-toggle { background: #1F1F23; color: var(--yellow); }
.dark .theme-toggle:hover { background: #2a2a30; }
.dark .theme-toggle .ico-sun { display: block; }
.dark .theme-toggle .ico-moon { display: none; }

/* --- Шапка --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__nav { display: flex; gap: 22px; margin-right: auto; }
.header__nav a { font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 2px; }
.header__nav a:hover { color: var(--ink-solid); opacity: .68; }
.header__cta { padding: 10px 18px; font-size: 14px; margin-left: auto; }

/* --- Логотип (inline SVG) --- */
.logo-mark { border-radius: 10px; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; fill: var(--ink-solid); }

/* --- Футер --- */
.footer { background: var(--panel); margin-top: clamp(48px, 8vw, 96px); padding: 56px 0 120px; }
.footer__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 40px;
}
.footer__grid a { display: block; padding: 5px 0; font-size: 15px; color: var(--gray); }
.footer__grid a:hover { color: var(--ink-solid); }
.footer__title { font-size: 16px; font-weight: 700; margin: 0 0 10px; font-family: var(--font-body); color: var(--ink-solid); }
.footer__note { font-size: 12.5px; line-height: 1.6; color: rgba(0, 0, 0, .46); max-width: 760px; margin-bottom: 16px; }
.footer__meta { font-size: 13px; color: var(--gray); }
.footer__meta a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Плавающий док --- */
.dock {
  position: fixed; left: 50%; bottom: 14px; z-index: 90;
  transform: translateX(-50%);
  display: flex; gap: 2px; padding: 8px 10px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-pop);
  transition: transform .35s ease, opacity .35s ease;
}
.dock--hidden { transform: translateX(-50%) translateY(140%); opacity: 0; pointer-events: none; }
.dock__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 76px; padding: 8px 4px 6px; border-radius: 14px;
  transition: background-color .15s ease, transform .15s ease;
}
.dock__item:hover { background: var(--panel); transform: translateY(-3px); }
.dock__icon { width: 34px; height: 34px; }
.dock__label {
  font-size: 10.5px; font-weight: 500; color: var(--gray); white-space: nowrap;
  max-width: 68px; overflow: hidden; text-overflow: ellipsis;
}

/* --- Карточки --- */
.card {
  display: block; position: relative;
  background: var(--panel); border-radius: var(--r-card); padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.card--yellow { background: var(--yellow-light); }
.card--lavender { background: var(--lavender); }
.card--blue { background: var(--blue); }
.card--mint { background: var(--mint); }
.card--peach { background: var(--peach); }
.card--dark { background: var(--ink-solid); color: #fff; }
.card--dark strong, .card--dark h3 { color: #fff; }

/* --- Scroll reveal (скрываем только при работающем JS) --- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   ГЛАВНАЯ V1
   ============================================================ */

/* --- Hero --- */
.hero { padding: clamp(44px, 6vw, 76px) 0 0; text-align: center; overflow: hidden; }
.hero__eyebrow { margin-bottom: 18px; }
.hero__sub { max-width: 590px; margin: 0 auto 28px; font-size: 18px; color: var(--gray); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scene { position: relative; max-width: 860px; margin: clamp(28px, 4vw, 52px) auto 0; padding-bottom: clamp(28px, 4vw, 56px); perspective: 1100px; }
.hero__cardwrap { width: min(460px, 78vw); margin-inline: auto; animation: levitate 7s ease-in-out infinite; }
@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.tcard {
  position: relative; aspect-ratio: 1.586; border-radius: 26px;
  background:
    radial-gradient(120% 160% at 18% 0%, rgba(255, 255, 255, .14), transparent 42%),
    linear-gradient(135deg, #33333a 0%, #17171b 55%, #0d0d10 100%);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .35), 0 8px 20px rgba(0, 0, 0, .22);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .16s ease-out;
  will-change: transform;
}
.tcard__shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--sx, 28%) var(--sy, 18%), rgba(255, 255, 255, .2), transparent 42%);
}
.tcard__chip {
  position: absolute; left: 7.5%; top: 34%; width: 13%; aspect-ratio: 1.32; border-radius: 8px;
  background: linear-gradient(140deg, #f6e08a, #d9ab3c 65%, #f2d878);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .28), inset 0 6px 8px rgba(255, 255, 255, .35);
}
.tcard__brand {
  position: absolute; right: 8%; top: 10%;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 2.4vw, 21px);
  color: var(--yellow); letter-spacing: .02em;
}
.tcard__num {
  position: absolute; left: 8%; bottom: 24%;
  font-size: clamp(14px, 2.3vw, 20px); letter-spacing: .28em; color: rgba(255, 255, 255, .82);
}
.tcard__label {
  position: absolute; right: 8%; bottom: 11%;
  font-size: clamp(11px, 1.7vw, 14px); font-weight: 600; letter-spacing: .34em; color: rgba(255, 255, 255, .5);
}

.coin { position: absolute; z-index: 2; transform: translate(var(--px, 0), var(--py, 0)); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .18)); }
.coin svg { width: 100%; height: 100%; animation: coinfloat var(--dur, 5s) ease-in-out var(--del, 0s) infinite; }
@keyframes coinfloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
.coin--1 { left: 4%; top: 6%; width: 76px; height: 76px; --dur: 5.6s; }
.coin--2 { right: 7%; top: 2%; width: 54px; height: 54px; --dur: 6.4s; --del: .7s; }
.coin--3 { left: 13%; bottom: 10%; width: 58px; height: 58px; --dur: 4.9s; --del: .3s; }
.coin--4 { right: 12%; bottom: 16%; width: 92px; height: 92px; --dur: 6.9s; --del: 1s; }
.coin--5 { left: 47%; top: -6%; width: 44px; height: 44px; --dur: 5.2s; --del: .5s; }

.hero__tag {
  position: absolute; z-index: 3; transform: translate(var(--px, 0), var(--py, 0));
  background: #fff; border-radius: 999px; padding: 10px 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-solid);
  box-shadow: var(--shadow-pop);
}
.hero__tag--1 { right: 17%; top: 30%; }
.hero__tag--2 { left: 6%; top: 46%; }

/* --- Marquee --- */
.marquee { overflow: hidden; padding: 16px 0; border-block: 1px solid var(--line); background: #fff; }
.marquee__track { display: inline-flex; white-space: nowrap; animation: marq 30s linear infinite; will-change: transform; }
.marquee__group { display: inline-flex; align-items: center; }
.marquee__group span {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink);
}
.marquee__group i { font-style: normal; color: var(--yellow-press); margin: 0 18px; font-size: 17px; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* --- Грид продуктов --- */
.products__title { text-align: center; margin-bottom: 6px; }
.products__sub { text-align: center; color: var(--gray); margin-bottom: 36px; }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { padding: 26px 24px 22px; min-height: 210px; display: flex; flex-direction: column; }
.pcard__badge { position: absolute; top: 18px; right: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.pcard__icon { width: 52px; height: 52px; margin-bottom: 14px; }
.pcard__name { margin: 0 0 6px; font-size: 19px; }
.pcard__offer { font-size: 14.5px; color: var(--gray); margin: 0 0 8px; max-width: 90%; }
.card--dark .pcard__offer { color: rgba(255, 255, 255, .62); }
.card--dark .pcard__name { color: #fff; }
.pcard__arrow {
  margin-top: auto; align-self: flex-end; font-size: 22px; color: var(--ink-solid);
  transition: transform .2s ease;
}
.card--dark .pcard__arrow { color: var(--yellow); }
.pcard:hover .pcard__arrow { transform: translateX(6px); }

/* --- Калькулятор --- */
.calc__panel {
  background: var(--panel); border-radius: var(--r-panel);
  padding: clamp(30px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.calc__text p { color: var(--gray); max-width: 420px; margin-bottom: 22px; }
.calc__label { display: block; font-size: 15px; font-weight: 500; color: var(--gray); margin-bottom: 10px; }
.calc__label output { font-weight: 700; color: var(--ink-solid); }
.calc__result { margin: 18px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--ink-solid); letter-spacing: -.02em; }
.calc__note { font-size: 15px; color: var(--gray); margin-top: 6px; }

input[type="range"] { width: 100%; height: 30px; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--yellow) 0 var(--fill, 10%), rgba(0, 0, 0, .12) var(--fill, 10%)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink-solid); margin-top: -10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22); transition: transform .15s ease;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .12); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--yellow); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--ink-solid); box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }

/* --- Квиз --- */
.quiz__panel {
  background:
    radial-gradient(680px 340px at 82% -10%, rgba(255, 221, 45, .16), transparent 60%),
    var(--ink-solid);
  color: #fff; border-radius: var(--r-panel);
  padding: clamp(32px, 5vw, 72px); text-align: center;
}
.quiz__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
.quiz__title { color: #fff; margin-bottom: 6px; }
.quiz__progress { color: rgba(255, 255, 255, .55); font-size: 14px; margin-bottom: 30px; }
.quiz__q { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.6vw, 24px); color: #fff; margin-bottom: 22px; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: quizin .35s ease both; }
@keyframes quizin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 640px; margin-inline: auto; }
.quiz__option {
  flex: 1 1 260px; max-width: 300px; padding: 17px 20px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 16px; background: rgba(255, 255, 255, .09);
  color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background-color .16s ease, transform .16s ease;
}
.quiz__option .qi { width: 19px; height: 19px; flex-shrink: 0; color: var(--yellow); }
.quiz__option:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.quiz__option:active { transform: scale(.97); }
.quiz__result {
  max-width: 460px; margin: 0 auto 18px; background: #fff; color: var(--ink);
  border-radius: var(--r-card); padding: 28px; text-align: center; box-shadow: var(--shadow-pop);
}
.quiz__result .badge { margin-bottom: 12px; }
.quiz__result h3 { margin-bottom: 4px; }
.quiz__result p { color: var(--gray); font-size: 15px; }
.quiz__result .btn { margin-top: 14px; width: 100%; }
.quiz__restart { background: none; border: 0; color: rgba(255, 255, 255, .6); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: var(--font-body); }
.quiz__restart:hover { color: #fff; }
.quiz__nojs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* --- Финальный CTA --- */
.final__panel {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(500px 260px at 20% -20%, rgba(255, 255, 255, .55), transparent 60%),
    var(--yellow);
  border-radius: var(--r-panel); padding: clamp(40px, 6vw, 84px);
}
.final__panel h2 { margin-bottom: 10px; }
.final__panel p { max-width: 480px; margin: 0 auto 26px; color: rgba(0, 0, 0, .62); }
.final__note { font-size: 13px; margin: 14px auto 0 !important; color: rgba(0, 0, 0, .5); }
.btn--dark { background: var(--ink-solid); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn--dark:hover { background: #000; }

/* --- Монетки при клике CTA --- */
.burst-coin {
  position: fixed; z-index: 300; pointer-events: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe873, var(--yellow) 55%, #e3b90d);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .18);
  display: grid; place-items: center;
  font: 700 13px/1 var(--font-body); color: rgba(0, 0, 0, .68);
  transition: transform .8s cubic-bezier(.16, .8, .32, 1), opacity .8s ease;
}

/* ============================================================
   ПРОДУКТОВЫЕ СТРАНИЦЫ
   ============================================================ */
.p-hero { padding: clamp(28px, 4vw, 48px) 0 0; text-align: center; overflow: hidden; }
.crumbs { display: flex; gap: 10px; justify-content: center; font-size: 13.5px; color: var(--gray); margin-bottom: 26px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink-solid); }
.p-hero__offer { margin-bottom: 16px; }
.p-hero h1 { max-width: 860px; margin-inline: auto; }
.p-hero__sub { max-width: 620px; margin: 0 auto 26px; font-size: 17.5px; color: var(--gray); }
.p-hero__actions { margin-bottom: 10px; }

.p-scene { position: relative; max-width: 720px; margin: clamp(20px, 3vw, 40px) auto 0; padding: 10px 0 26px; }
.p-blob {
  width: min(300px, 64vw); aspect-ratio: 1; margin-inline: auto;
  border-radius: 36% 64% 58% 42% / 46% 38% 62% 54%;
  display: grid; place-items: center;
  animation: blob 11s ease-in-out infinite;
  box-shadow: var(--shadow-card);
}
@keyframes blob {
  0%, 100% { border-radius: 36% 64% 58% 42% / 46% 38% 62% 54%; }
  50% { border-radius: 58% 42% 40% 60% / 40% 58% 42% 60%; }
}
.p-blob__icon { width: 46%; height: 46%; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .16)); }
.p-scene .coin--a { left: 12%; top: 6%; width: 62px; height: 62px; --dur: 5.4s; }
.p-scene .coin--b { right: 14%; top: 14%; width: 46px; height: 46px; --dur: 6.2s; --del: .5s; }
.p-scene .coin--c { right: 22%; bottom: 4%; width: 74px; height: 74px; --dur: 5s; --del: .9s; }
.p-scene__tag {
  position: absolute; left: 18%; bottom: 16%; z-index: 3;
  transform: translate(var(--px, 0), var(--py, 0));
  background: #fff; border-radius: 999px; padding: 10px 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-pop);
}

.p-features { padding-top: clamp(36px, 5vw, 64px); }
.p-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard { padding: 26px; }
.fcard__icon { width: 34px; height: 34px; margin-bottom: 14px; color: var(--ink-solid); }
.dark .fcard__icon { color: var(--yellow); }
.fcard__title { margin: 0 0 6px; font-size: 18px; }
.fcard__text { margin: 0; font-size: 14.5px; color: var(--gray); }

.p-extra__panel {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(620px 300px at 85% -20%, rgba(255, 221, 45, .22), transparent 60%),
    var(--ink-solid);
  color: #fff; border-radius: var(--r-panel); padding: clamp(36px, 5vw, 68px);
}
.p-extra__panel h2 { color: #fff; margin: 14px 0 10px; }
.p-extra__panel p { max-width: 560px; margin: 0 auto 24px; color: rgba(255, 255, 255, .66); }

.p-faq__in { max-width: 760px; }
.p-faq h2 { text-align: center; margin-bottom: 26px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; color: var(--ink-solid);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  font-size: 24px; font-weight: 400; color: var(--gray);
  transition: rotate .25s ease;
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { margin: 0 0 18px; color: var(--gray); max-width: 680px; }

.p-related__title { text-align: center; margin-bottom: 30px; }
.p-related { padding-bottom: 0; }
.p-final { padding-top: clamp(36px, 5vw, 64px); }

@media (max-width: 900px) {
  .p-features__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .p-features__grid { grid-template-columns: 1fr; }
  .p-scene .coin--a { width: 46px; height: 46px; left: 4%; }
  .p-scene .coin--c { width: 54px; height: 54px; right: 6%; }
  .p-scene__tag { left: 6%; }
}

/* ============================================================
   ТЁМНАЯ ТЕМА (класс .dark на <html>, переключатель в шапке)
   ============================================================ */
.dark body { background: #0F0F0F; color: rgba(255, 255, 255, .86); }

/* звёздная пыль */
.dark body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255, 255, 255, .4), transparent 100%),
    radial-gradient(1.2px 1.2px at 48% 8%, rgba(255, 255, 255, .3), transparent 100%),
    radial-gradient(1.8px 1.8px at 78% 30%, rgba(255, 221, 45, .35), transparent 100%),
    radial-gradient(1.2px 1.2px at 30% 64%, rgba(255, 255, 255, .26), transparent 100%),
    radial-gradient(1.5px 1.5px at 64% 82%, rgba(255, 255, 255, .3), transparent 100%),
    radial-gradient(1.1px 1.1px at 90% 60%, rgba(255, 221, 45, .3), transparent 100%);
  background-size: 640px 640px;
  animation: stardrift 110s linear infinite;
}
@keyframes stardrift { to { background-position: 0 -640px; } }
.dark main, .dark .header, .dark .footer { position: relative; z-index: 1; }

.dark h1, .dark h2, .dark h3 { color: #fff; }
.variant-note { margin-bottom: 14px; display: flex; gap: 12px; justify-content: center; align-items: center; }
.variant-note__link { font-size: 14px; color: rgba(255, 255, 255, .6); text-decoration: underline; text-underline-offset: 3px; }
.variant-note__link:hover { color: #fff; }

.dark .header { background: rgba(15, 15, 15, .8); border-bottom-color: rgba(255, 255, 255, .08); }
.dark .header__nav a { color: rgba(255, 255, 255, .85); }
.dark .logo-text { fill: #fff; }

.dark .hero { position: relative; }
.dark .hero::before {
  content: ""; position: absolute; left: 50%; top: -12%; transform: translateX(-50%);
  width: min(960px, 100vw); height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 221, 45, .16), transparent 72%);
}
.dark .hero h1 {
  background: linear-gradient(104deg, #fff 38%, var(--yellow) 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dark .hero__sub { color: rgba(255, 255, 255, .58); }
.dark .badge--soft { background: rgba(255, 221, 45, .14); color: var(--yellow); }
.dark .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.dark .btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* металлическая карта с переливом */
.dark .tcard {
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 18% 0%, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(160deg, #4b4b54 0%, #232329 48%, #17171b 78%, #2e2e35 100%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 221, 45, .1);
}
.dark .tcard::after {
  content: ""; position: absolute; inset: -45%; pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(255, 255, 255, .05) 30deg, rgba(255, 255, 255, .1) 55deg,
    rgba(255, 255, 255, .05) 80deg, transparent 110deg,
    transparent 160deg, rgba(255, 221, 45, .04) 195deg, rgba(255, 221, 45, .08) 215deg,
    rgba(255, 221, 45, .04) 235deg, transparent 265deg);
  filter: blur(26px);
  animation: metalspin 11s linear infinite;
}
@keyframes metalspin { to { transform: rotate(360deg); } }
.dark .tcard__label { color: rgba(255, 255, 255, .66); }
.dark .tcard__num { color: rgba(255, 255, 255, .9); }

.dark .hero__tag { background: #1F1F23; color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 221, 45, .25); }
.dark .coin { filter: drop-shadow(0 10px 26px rgba(255, 200, 0, .28)); }

.dark .marquee { background: transparent; border-color: rgba(255, 255, 255, .1); }
.dark .marquee__group span { color: var(--yellow); }
.dark .marquee__group i { color: rgba(255, 255, 255, .3); }

.dark .products__sub { color: rgba(255, 255, 255, .5); }
.dark .pcard { background: #1A1A1C; box-shadow: inset 0 0 0 1px rgba(255, 221, 45, .16); }
.dark .pcard:hover { box-shadow: inset 0 0 0 1px rgba(255, 221, 45, .45), 0 18px 56px rgba(255, 221, 45, .12); }
.dark .pcard__icon { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 8px; width: 56px; height: 56px; }
.dark .pcard__name { color: #fff; }
.dark .pcard__offer { color: rgba(255, 255, 255, .55); }
.dark .pcard__arrow { color: var(--yellow); }

.dark .calc__panel { background: #17171A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.dark .calc__text p, .dark .calc__label, .dark .calc__note { color: rgba(255, 255, 255, .55); }
.dark .calc__note .small, .dark .small { color: rgba(255, 255, 255, .45); }
.dark .calc__label output, .dark .calc__result { color: #fff; }
.dark input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--yellow) 0 var(--fill, 10%), rgba(255, 255, 255, .16) var(--fill, 10%)); }
.dark input[type="range"]::-webkit-slider-thumb { border-color: #fff; background: var(--ink-solid); }
.dark input[type="range"]::-moz-range-track { background: rgba(255, 255, 255, .16); }
.dark input[type="range"]::-moz-range-thumb { border-color: #fff; background: var(--ink-solid); }

.dark .quiz__panel { box-shadow: inset 0 0 0 1px rgba(255, 221, 45, .18); }

.dark .footer { background: #131315; }
.dark .footer__title { color: #fff; }
.dark .footer__grid a { color: rgba(255, 255, 255, .5); }
.dark .footer__grid a:hover { color: #fff; }
.dark .footer__note { color: rgba(255, 255, 255, .42); }
.dark .footer__meta { color: rgba(255, 255, 255, .5); }

.dark .dock { background: rgba(26, 26, 28, .92); border-color: rgba(255, 255, 255, .1); }
.dark .dock__item:hover { background: rgba(255, 255, 255, .07); }
.dark .dock__label { color: rgba(255, 255, 255, .6); }

/* на жёлтой панели текст остаётся тёмным в любой теме */
.dark .final__panel h2 { color: var(--ink-solid); }
.dark .final__panel p { color: rgba(0, 0, 0, .62); }
.dark .final__panel .final__note { color: rgba(0, 0, 0, .5); }

/* белая карточка результата квиза: текст тёмный в любой теме */
.dark .quiz__result h3 { color: var(--ink-solid); }

/* продуктовые страницы в тёмной теме */
.dark .crumbs { color: rgba(255, 255, 255, .5); }
.dark .crumbs a:hover { color: #fff; }
.dark .p-hero__sub { color: rgba(255, 255, 255, .58); }
.dark .p-scene__tag { background: #1F1F23; color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 221, 45, .25); }
.dark .fcard { background: #1A1A1C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.dark .fcard__text { color: rgba(255, 255, 255, .55); }
.dark .faq-item { border-bottom-color: rgba(255, 255, 255, .12); }
.dark .faq-item summary { color: #fff; }
.dark .faq-item summary::after { color: rgba(255, 255, 255, .5); }
.dark .faq-item p { color: rgba(255, 255, 255, .55); }

/* --- Адаптив главной --- */
@media (max-width: 900px) {
  .products__grid { grid-template-columns: 1fr 1fr; }
  .calc__panel { grid-template-columns: 1fr; }
  .hero__tag--2 { display: none; }
  .coin--3 { display: none; }
}
@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr; }
  .hero__tag--1 { right: 4%; top: 24%; }
  .coin--1 { width: 48px; height: 48px; left: 2%; top: 2%; }
  .coin--2 { width: 38px; height: 38px; right: 2%; top: -3%; }
  .coin--4 { width: 56px; height: 56px; right: 2%; bottom: -2%; }
  .coin--5 { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* --- Адаптив базы --- */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .dock__item { width: 62px; }
  .dock__label { font-size: 9.5px; }
  .dock { max-width: calc(100vw - 16px); overflow-x: auto; }
}

/* --- Reduced motion: контент важнее фейерверков --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
