/* =============================================================================
   Scale — лендинг. Направление A: «текст-плакат» (швейцарский брутализм).
   Чёрно-белая база от лого, акцент var(--accent) точечно, мотив стрелок-потока.
   ============================================================================= */

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }

/* атрибут hidden обязан скрывать элемент, даже если у него задан display */
[hidden] { display: none !important; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .28); }
.nav { display: flex; align-items: center; gap: 36px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-primary); }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; clip-path: inset(4px 3px 3px 3px round 7px); }
.brand .mark-dark { display: none; }
html.dark .brand .mark-light { display: none; }
html.dark .brand .mark-dark { display: block; }
.brand b { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; border-radius: 2px;
  background: var(--text-primary);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text-primary); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* бургер и мобильное меню */
.nav-burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  background: transparent; cursor: pointer;
}
.nav-burger span {
  display: block; width: 15px; height: 2px; border-radius: 2px;
  background: var(--text-primary);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none; overflow: hidden;
  max-height: 0; border-top: 1px solid transparent;
  transition: max-height .45s cubic-bezier(.2, .7, .2, 1), border-color .3s ease;
}
.mobile-menu.open { max-height: 480px; border-top-color: var(--border); }
.mobile-menu nav { display: grid; padding: 8px clamp(20px, 4vw, 48px) 4px; }
.mobile-menu nav a {
  padding: 12px 0; font-size: 17px; font-weight: 500;
  color: var(--text-primary); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu-cta { margin: 10px clamp(20px, 4vw, 48px) 18px; display: flex; justify-content: center; }

@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  .mobile-menu { display: block; }
}
@media (max-width: 470px) {
  .nav-cta { display: none; } /* кнопка продублирована в мобильном меню */
}

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { background: var(--bg-light); }

.lang-switch {
  display: grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 4px;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--text-secondary); text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.lang-switch:hover { color: var(--text-primary); background: var(--bg-light); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 12px 20px; border-radius: var(--radius-full);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), background .2s ease,
              opacity .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text-primary); color: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.btn-primary:hover { opacity: .94; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.btn-primary svg { width: 16px; height: 16px; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--text-primary);
  border-color: transparent; padding-inline: 4px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost svg { width: 16px; height: 16px; transition: transform .15s ease; }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Герой ---------- */
.hero { padding-top: clamp(56px, 11vh, 130px); padding-bottom: clamp(56px, 11vh, 120px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 7px 14px 7px 11px; background: color-mix(in srgb, var(--bg-light) 60%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-green) 30%, transparent); }

.hero h1 {
  margin: 30px 0 0;
  font-size: clamp(42px, 7.4vw, 94px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero h1 .muted { color: var(--text-secondary); }

.hero .rule { width: 128px; height: 2px; background: var(--text-primary); margin: 34px 0 26px; }

.hero .sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0;
  font-weight: 400;
}
.hero .sub b { color: var(--text-primary); font-weight: 500; }

.cta-row { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* мотив «поток»: монеты едут с приёма прямо на ваш кошелёк — во всю ширину экрана */
.flow {
  margin-top: calc(clamp(56px, 9vh, 96px) - 30px);
  display: flex; align-items: center; gap: 22px;
  width: 100vw; max-width: none;
  margin-left: calc(50% - 50vw);
  padding-inline: clamp(20px, 4vw, 48px);
}
.flow-node {
  display: flex; align-items: center; gap: 11px; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 8px 18px 8px 9px;
  background: color-mix(in srgb, var(--bg-light) 75%, transparent);
}
.flow-ico {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--text-primary); color: var(--bg);
}
.flow-ico--end { background: var(--accent); color: #fff; }
.flow-ico svg { width: 19px; height: 19px; }
.flow-txt { display: grid; gap: 1px; white-space: nowrap; }
.flow-txt b { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.flow-txt i { font-style: normal; font-size: 11.5px; color: var(--text-secondary); }

.flow-track {
  position: relative; flex: 1; height: 32px; min-width: 130px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.flow-line {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 20px);
  background-size: 20px 2px;
  animation: flow 2.6s linear infinite;
  opacity: .6;
}
.flow-line::after {
  content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 9px solid var(--accent);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* монеты-чипы с реальными логотипами, едущие по конвейеру */
.coin {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .14);
  animation: travel 11s linear infinite;
  animation-delay: calc(var(--i) * -0.9167s); /* 11s / 12 монет */
}
.coin img { width: 20px; height: 20px; display: block; }
@keyframes travel {
  0%   { left: 0%;   opacity: 0; }
  7%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes flow { to { background-position: 20px 0; } }
@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none; }
  .coin { display: none; }
}

/* появление героя */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .13s; }
.reveal.d3 { animation-delay: .21s; }
.reveal.d4 { animation-delay: .29s; }
.reveal.d5 { animation-delay: .40s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* заглушки секций (каркас — заполним на след. шаге) */
.section-stub {
  min-height: 40vh; border-top: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-tertiary);
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Общие секции ---------- */
.section { padding-block: clamp(64px, 10vh, 116px); }
.section + .section, .facts-section { border-top: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  max-width: 18ch;
}

/* Суть в фактах */
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.fact { background: var(--bg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; transition: background .25s ease; }
.fact:hover { background: var(--bg-light); }
.fact-num { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .25s ease; }
.fact:hover .fact-num { color: var(--accent); }
.fact-label { font-size: 14.5px; color: var(--text-secondary); line-height: 1.45; }

/* Почему Scale — столпы */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.pillar {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(24px, 2.6vw, 34px);
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  transition: border-color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1),
              box-shadow .3s ease, background .3s ease;
}
.pillar:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-4px);
  background: var(--bg-light);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .3);
}
.pillar-ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  margin-bottom: 20px; color: var(--text-primary);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.pillar:hover .pillar-ico { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.pillar-ico svg { width: 22px; height: 22px; }
.pillar h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.pillar p { margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.55; }

/* Как работает — шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.step { position: relative; }
.step-num { display: block; font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 18px; }
.step::before {
  content: ''; position: absolute; top: 7px; left: calc(100% - 6px);
  width: clamp(20px, 3vw, 44px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.55; }

/* Сети и монеты */
.nets-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(36px, 5vh, 56px);
}
.nets-head .section-head { margin-bottom: 0; }

/* переключатель валюты курса ₽/$ */
.cur-switch {
  display: inline-flex; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 3px; background: color-mix(in srgb, var(--bg-light) 60%, transparent);
}
.cur-btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  width: 40px; height: 32px; border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--text-secondary); cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.cur-btn:hover { color: var(--text-primary); }
.cur-btn.active { background: var(--text-primary); color: var(--bg); }

.net-grid {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-light) 40%, transparent);
}
.net, .net-head {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(0, 1.3fr) minmax(110px, .5fr) 110px 120px;
  align-items: center; gap: 18px;
  padding: 13px clamp(16px, 2.4vw, 28px);
}
.net-head {
  font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-tertiary);
  padding-block: 13px;
}
.ta-r { text-align: right; }
.net { position: relative; border-top: 1px solid var(--border); transition: background .22s ease; }
.net:hover { background: var(--bg-light); }
.net-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.net-coin img { width: 34px; height: 34px; flex: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.net:hover .net-coin img { transform: scale(1.12); }
.net-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.net-name b { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-sub { font-size: 12px; color: var(--text-secondary); }
.net-chains { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.net-chains i {
  font-style: normal; font-size: 11.5px; font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 3px 10px; background: var(--bg);
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.net:hover .net-chains i { border-color: var(--text-tertiary); color: var(--text-primary); }
.net-price { text-align: right; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: opacity .3s ease; }
.net-price.loading { opacity: .35; }
.net-chg { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-tertiary); }
.net-chg.up { color: var(--status-green); }
.net-chg.down { color: var(--status-red); }
.net-mark { display: flex; justify-content: flex-end; }

/* фирменный значок «наш выбор» + описание по наведению */
.pick {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-on-accent); background: var(--accent);
  border-radius: var(--radius-full); padding: 4px 10px 4px 8px;
  cursor: help; outline-offset: 2px; white-space: nowrap;
}
.pick svg { width: 11px; height: 11px; }
/* подсказка позиционируется от всей строки (.net) — не обрезается и не съезжает */
.pick-tip {
  position: absolute; right: clamp(12px, 2vw, 24px); top: calc(100% - 6px); z-index: 6;
  width: min(320px, calc(100% - 32px));
  padding: 11px 13px;
  font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5;
  text-align: left; white-space: normal; cursor: default;
  color: var(--text-primary); background: var(--bg-light);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 16px 38px -18px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(-5px); pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.pick-tip::after {
  content: ''; position: absolute; right: 24px; bottom: 100%;
  border: 6px solid transparent; border-bottom-color: var(--border);
}
.pick:hover .pick-tip, .pick:focus-visible .pick-tip, .pick.open .pick-tip {
  opacity: 1; transform: none; pointer-events: auto;
}

.net-note { margin: 22px 0 0; font-size: 14.5px; color: var(--text-secondary); }

@media (max-width: 920px) {
  .net, .net-head { grid-template-columns: minmax(150px, 1.2fr) minmax(90px, .6fr) 90px 110px; }
  .net-chains, .net-head span:nth-child(2) { display: none; }
}
@media (max-width: 620px) {
  .net, .net-head { grid-template-columns: 1fr auto auto; gap: 10px; }
  .net-head, .net-chg { display: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { gap: 16px; }
  .hero h1 { letter-spacing: -0.02em; }
  .cta-row { gap: 16px; }
  .flow { flex-wrap: wrap; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .nets-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step::before { display: none; }
}

/* ---------- 7. Живая страница оплаты ---------- */
.checkout-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.checkout-copy h2 { margin: 0 0 18px; }
.checkout-copy p { margin: 0 0 16px; color: var(--text-secondary); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.checkout-copy .muted-note { font-size: 14px; color: var(--text-tertiary); }

.pay-card { width: 100%; max-width: 360px; margin-inline: auto; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: 0 24px 60px -28px rgba(0,0,0,.4); transition: transform .25s ease-out, box-shadow .3s ease; will-change: transform; }
.pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pc-merchant { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.pc-badge { font-size: 11px; color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 4px 9px; }
.pc-amount { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.pc-amount span { font-size: 12px; color: var(--text-secondary); }
.pc-amount b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.pc-qr { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; background: #fff; border-radius: 10px; border: 1px solid var(--border); background-image: radial-gradient(hsl(0,0%,10%) 0.9px, transparent 1.2px); background-size: 9px 9px; }
.pc-qr .f { position: absolute; width: 26px; height: 26px; border: 5px solid #111; background: #fff; border-radius: 4px; }
.pc-qr .f.tl { top: 10px; left: 10px; } .pc-qr .f.tr { top: 10px; right: 10px; } .pc-qr .f.bl { bottom: 10px; left: 10px; }
.pc-qr .mk { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; background: #fff; border-radius: 9px; display: grid; place-items: center; }
.pc-qr .mk img { width: 40px; height: 40px; border-radius: 9px; }
.pc-addr { font-size: 13px; text-align: center; color: var(--text-secondary); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.pc-edge { color: var(--accent); font-weight: 600; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; }
.pc-status { font-size: 14px; font-weight: 500; color: var(--status-green); display: inline-flex; align-items: center; gap: 7px; transition: color .35s ease; }
.pc-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transition: background .35s ease; }
/* живая демо-карточка: статусы цикла оплаты (классы вешает landing.js) */
.pc-status.wait { color: var(--text-secondary); }
.pc-status.wait::before { background: var(--status-yellow); animation: pc-pulse 1.3s ease-in-out infinite; }
.pc-status.confirm { color: var(--accent); }
.pc-status.confirm::before { animation: pc-pulse .8s ease-in-out infinite; }
@keyframes pc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 35%, transparent); }
  50% { box-shadow: 0 0 0 5px transparent; }
}
.pc-timer { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* ---------- 8. Интеграция ---------- */
.integr { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.int-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.int-list li { display: flex; gap: 13px; font-size: 16px; color: var(--text-secondary); line-height: 1.5; }
.int-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.int-list b { color: var(--text-primary); font-weight: 500; }
.snippet { margin: 0; background: #0e0e0e; border: 1px solid hsl(0,0%,20%); border-radius: var(--radius-xl); padding: 20px 22px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.75; color: #d6d6d6; overflow-x: auto; }
.snippet .k { color: #79b8ff; } .snippet .s { color: #9ecbff; } .snippet .c { color: #6a737d; } .snippet .hl { color: #67d178; }

/* вкладки API: создать счёт / webhook */
.api-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.api-tab {
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 15px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.api-tab:hover { color: var(--text-primary); }
.api-tab.active { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.api-panes { display: grid; }
.api-panes .api-pane { grid-area: 1 / 1; min-width: 0; }
.api-pane {
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
}
.api-pane.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .api-pane { transition: none; }
}

/* ---------- 9. Деньги ваши ---------- */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); background: color-mix(in srgb, var(--bg-light) 55%, transparent); max-width: 820px; }
.callout h2 { margin: 0 0 16px; }
.callout p { margin: 0 0 14px; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.callout p:last-child { margin-bottom: 0; }
.callout b { color: var(--text-primary); font-weight: 500; }

/* ---------- 10. FAQ ---------- */
.faq-list { max-width: 820px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 4px; font-size: 18px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .2s ease; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 26px; font-weight: 300; color: var(--text-secondary); transition: transform .2s ease; line-height: 1; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { margin: 0 4px 22px; color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 64ch; }

/* ---------- 11. Форма заявки ---------- */
.apply-section { border-top: 1px solid var(--border); }
.apply { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.apply-copy h2 { margin: 0 0 16px; }
.apply-copy p { margin: 0; color: var(--text-secondary); font-size: 17px; line-height: 1.6; max-width: 42ch; }
.apply-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.field input { font-family: inherit; font-size: 15px; color: var(--text-primary); background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; width: 100%; }
.field input:focus { outline: none; border-color: var(--accent); }
.apply-form .btn-primary { justify-content: center; margin-top: 6px; }

/* карточка заявки: Telegram на первом месте + рабочая форма */
.apply-card {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  padding: clamp(22px, 3vw, 32px);
}
.tg-cta {
  display: flex; align-items: center; gap: 15px;
  text-decoration: none; color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); padding: 15px 18px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}
.tg-cta:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .3); }
.tg-cta-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--accent); color: #fff; }
.tg-cta-ico svg { width: 24px; height: 24px; }
.tg-cta-txt { display: grid; gap: 3px; min-width: 0; }
.tg-cta-txt b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tg-cta-txt span { font-size: 13.5px; color: var(--text-secondary); line-height: 1.4; }
.tg-cta-arr { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--text-secondary); transition: transform .25s ease, color .25s ease; }
.tg-cta:hover .tg-cta-arr { transform: translateX(4px); color: var(--accent); }

.apply-div {
  display: flex; align-items: center; gap: 14px; margin-block: 20px;
  color: var(--text-tertiary); font-size: 12px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.apply-div::before, .apply-div::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label i { color: var(--status-red); font-style: normal; }
.field input::placeholder { color: var(--text-tertiary); }
.field input { transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.field input.invalid { border-color: var(--status-red); }
.apply-err { margin: -2px 0 0; font-size: 13.5px; color: var(--status-red); }
.apply-form .btn-primary[disabled] { opacity: .6; pointer-events: none; }

.apply-done { display: grid; gap: 12px; justify-items: start; margin-top: clamp(18px, 2.5vw, 24px); animation: rise .5s cubic-bezier(.2, .7, .2, 1); }
.done-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--status-green); color: #fff; }
.done-ico svg { width: 24px; height: 24px; display: block; margin-top: 1px; }
.apply-done h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.apply-done p { margin: 0 0 8px; color: var(--text-secondary); font-size: 15.5px; line-height: 1.55; max-width: 44ch; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- 12. Футер ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(40px, 6vh, 64px); }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; clip-path: inset(4px 3px 3px 3px round 6px); }
.footer-brand .footer-mark-dark { display: none; }
html.dark .footer-brand .footer-mark-light { display: none; }
html.dark .footer-brand .footer-mark-dark { display: block; }
.footer-brand b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.footer-tag { color: var(--text-secondary); font-size: 14px; margin: 14px 0 0; max-width: 30ch; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 80px); }
.footer-col h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 15px; margin-bottom: 10px; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: var(--text-primary); transform: translateX(3px); }
.footer-bottom { margin-top: clamp(32px, 5vh, 48px); padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-tertiary); font-size: 13px; }

@media (max-width: 860px) {
  .checkout-wrap, .integr, .apply { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 28px; }
}

/* ---------- 12a. Калькулятор экономии ---------- */
.calc-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(24px, 3.4vw, 44px);
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  align-items: center;
}
.calc-lab { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); margin-bottom: 10px; }
.calc-value { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.calc-range {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 6px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--fill, 10%), var(--border) var(--fill, 10%));
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--text-primary); border: 3px solid var(--bg);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3); cursor: grab;
  transition: transform .15s ease;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--text-primary); border: 3px solid var(--bg); cursor: grab; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-tertiary); }
.calc-note { margin: 20px 0 0; font-size: 13.5px; color: var(--text-tertiary); line-height: 1.55; max-width: 42ch; }

.calc-out { display: grid; gap: 10px; }
.calc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; background: var(--bg);
  transition: border-color .25s ease;
}
.calc-who { font-size: 14.5px; color: var(--text-secondary); }
.calc-who i { font-style: normal; color: var(--text-tertiary); margin-left: 6px; font-size: 13px; }
.calc-fee { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-row--scale { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.calc-row--scale .calc-who { color: var(--text-primary); font-weight: 600; }
.calc-row--scale .calc-fee { color: var(--accent); }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 18px 2px; }
.calc-total span { font-size: 14.5px; color: var(--text-secondary); }
.calc-total b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.02em; color: var(--status-green); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) { .calc-box { grid-template-columns: 1fr; } }

/* ---------- 12b. Сравнительная таблица ---------- */
.cmp-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-xl); }
.cmp { width: 100%; border-collapse: collapse; min-width: 740px; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 14px clamp(14px, 1.8vw, 24px); border-top: 1px solid var(--border); vertical-align: top; line-height: 1.45; }
.cmp thead th { border-top: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; }
.cmp tbody td:first-child { color: var(--text-secondary); }
.cmp b { font-weight: 600; }
.cmp tbody tr { transition: background .2s ease; }
.cmp tbody tr:hover { background: var(--bg-light); }
.cmp .cmp-scale-col { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cmp-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--text-primary); }
.cmp-brand img { width: 24px; height: 24px; border-radius: 6px; clip-path: inset(3px 2px 2px 2px round 5px); }
.cmp-mark-dark { display: none; }
html.dark .cmp-mark-light { display: none; }
html.dark .cmp-mark-dark { display: inline; }

/* ---------- 12c. Демо оплаты (управление) ---------- */
.demo-ctl {
  margin-top: 26px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 20px; display: grid; gap: 9px;
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
}
.demo-lab { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-tertiary); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; }
.chip {
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary);
  cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.chip:hover { border-color: var(--text-tertiary); color: var(--text-primary); transform: translateY(-1px); }
.chip.active { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.demo-start { justify-content: center; margin-top: 4px; }
.demo-ctl .muted-note { margin: 6px 0 0; font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }

.pc-amount-usd { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.pc-bar { height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; margin-bottom: 12px; }
.pc-bar-fill {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: var(--status-green);
  transition: width .7s cubic-bezier(.2, .7, .2, 1), background .4s ease;
}

/* ---------- 12d. Кому подходит ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.aud {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(20px, 2.4vw, 30px);
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  transition: border-color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.aud:hover { transform: translateY(-3px); border-color: var(--text-tertiary); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .3); }
.aud-ico {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  margin-bottom: 16px; color: var(--text-primary);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.aud-ico svg { width: 21px; height: 21px; }
.aud:hover .aud-ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.aud h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.aud p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 980px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .aud-grid { grid-template-columns: 1fr; } }

/* ---------- 12e. Цифры доверия ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.trust-stat { display: grid; gap: 8px; align-content: start; }
.stat-num { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.trust-stat span { font-size: 14px; color: var(--text-secondary); line-height: 1.45; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- 12f. Личный кабинет (демо-дашборд) ---------- */
.dash {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .4);
}
.dash-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-dot.r { background: var(--status-red); }
.dash-dot.y { background: var(--status-yellow); }
.dash-dot.g { background: var(--status-green); }
.dash-url {
  margin-left: 14px; font-size: 12.5px; color: var(--text-tertiary);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 4px 14px; background: var(--bg);
  font-variant-numeric: tabular-nums;
}
.dash-body { display: grid; grid-template-columns: minmax(260px, .9fr) 1.6fr; }
.dash-side { padding: clamp(18px, 2.4vw, 28px); border-right: 1px solid var(--border); display: grid; gap: 18px; align-content: start; }
.dash-total { display: grid; gap: 4px; }
.dash-total span { font-size: 12.5px; color: var(--text-secondary); }
.dash-total b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-total i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--status-green); }
.dash-assets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-assets li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-md);
  transition: background .2s ease;
}
.dash-assets li:hover { background: var(--bg); }
.dash-assets img { width: 26px; height: 26px; flex: none; }
.da-name { font-size: 13.5px; font-weight: 600; display: grid; }
.da-name i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-tertiary); }
.da-val { margin-left: auto; text-align: right; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; display: grid; }
.da-val i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-tertiary); }
.dash-actions { display: flex; gap: 8px; }
.dash-btn {
  flex: 1; text-align: center; font-size: 13.5px; font-weight: 600;
  padding: 10px 8px; border-radius: var(--radius-full);
  border: 1px solid var(--border); color: var(--text-primary);
}
.dash-btn.primary { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.dash-main { padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.dash-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-row-head b { font-size: 15px; font-weight: 700; }
.dash-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-secondary); }
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--status-green); animation: pc-pulse 1.4s ease-in-out infinite; }
.dash-pays { list-style: none; margin: 0; padding: 0; }
.dash-pays li {
  display: grid; grid-template-columns: 14px minmax(0, 1.5fr) 52px auto 90px;
  align-items: center; gap: 12px;
  padding: 11px 4px; border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.dash-pays li:first-child { border-top: 0; }
.dash-pays li.fresh { animation: dp-in .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes dp-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.dp-st { width: 9px; height: 9px; border-radius: 50%; }
.dp-st.ok { background: var(--status-green); }
.dp-st.wait { background: var(--status-yellow); animation: pc-pulse 1.3s ease-in-out infinite; }
.dp-id { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-coin { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 2px 0; text-align: center; }
.dp-sum { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.dp-time { font-size: 12px; color: var(--text-tertiary); text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--border); }
  .dash-pays li { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .dp-coin, .dp-time { display: none; }
}

/* ---------- 12g. Кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text-primary); cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), background .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--bg-light); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 13. Выбор оформления под клиента (демо тем) ---------- */
.themes-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.themes-copy p { margin: 0 0 16px; color: var(--text-secondary); font-size: 17px; line-height: 1.6; max-width: 48ch; }
.themes-copy b { color: var(--text-primary); font-weight: 500; }
.themes-copy .muted-note { font-size: 14px; color: var(--text-tertiary); margin: 18px 0 0; }

.theme-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.theme-btn {
  font-family: inherit; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-light) 55%, transparent);
  padding: 13px 15px; display: grid; gap: 3px;
  transition: border-color .25s ease, background .25s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.theme-btn:hover { transform: translateY(-2px); border-color: var(--text-tertiary); }
.theme-btn.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.theme-btn b { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; }
.theme-btn span { font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }

/* демо-карточка с темами: все цвета — через переменные, темы их переопределяют */
.tcard {
  --tc-bg: #ffffff; --tc-text: #14161a; --tc-sub: #6b7280; --tc-border: #e5e7eb;
  --tc-accent: #2f81f7; --tc-btn-text: #fff; --tc-qr: #14161a; --tc-qr-bg: #fff;
  --tc-radius: 14px; --tc-deco: transparent;
  position: relative; overflow: hidden;
  width: 100%; max-width: 350px; margin-inline: auto;
  background-color: var(--tc-bg); color: var(--tc-text);
  border: 1px solid var(--tc-border); border-radius: var(--tc-radius);
  padding: 26px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .45);
}
.tcard, .tcard *, .tcard *::before {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, border-radius .5s ease;
}
.tcard.pop { animation: tc-pop .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes tc-pop { 0% { transform: scale(.965); } 60% { transform: scale(1.012); } 100% { transform: none; } }

.tc-deco { position: absolute; top: 4px; right: 6px; width: 86px; height: 86px; color: var(--tc-deco); pointer-events: none; }
.tc-deco svg { width: 100%; height: 100%; }
.tc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; position: relative; }
.tc-merchant { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.tc-badge { font-size: 11px; color: var(--tc-sub); border: 1px solid var(--tc-border); border-radius: 999px; padding: 4px 9px; }
.tc-amount { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.tc-amount span { font-size: 12px; color: var(--tc-sub); }
.tc-amount b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.tc-qr {
  position: relative; width: 148px; height: 148px; margin: 0 auto 18px;
  background-color: var(--tc-qr-bg);
  background-image: radial-gradient(var(--tc-qr) 0.9px, transparent 1.2px);
  background-size: 9px 9px;
  border-radius: 10px; border: 1px solid var(--tc-border);
}
.tc-qr .f { position: absolute; width: 26px; height: 26px; border: 5px solid var(--tc-qr); background: var(--tc-qr-bg); border-radius: 4px; }
.tc-qr .f.tl { top: 10px; left: 10px; } .tc-qr .f.tr { top: 10px; right: 10px; } .tc-qr .f.bl { bottom: 10px; left: 10px; }
.tc-mk {
  position: absolute; inset: 0; margin: auto;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--tc-qr-bg); border: 1px solid var(--tc-border);
  display: grid; place-items: center;
}
.tc-mk img { width: 34px; height: 34px; border-radius: 8px; clip-path: inset(3px 2px 2px 2px round 6px); }
.tc-addr { font-size: 13px; text-align: center; color: var(--tc-sub); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.tc-edge { color: var(--tc-accent); font-weight: 600; }
.tc-pay {
  display: block; text-align: center;
  background-color: var(--tc-accent); color: var(--tc-btn-text);
  border-radius: calc(var(--tc-radius) - 5px);
  padding: 13px; font-size: 15px; font-weight: 600;
}

/* сами темы */
.tcard.t-dark { --tc-bg: #121316; --tc-text: #f1f2f4; --tc-sub: #9aa1ab; --tc-border: #2a2d33; --tc-accent: #4f8cff; --tc-btn-text: #fff; --tc-qr: #f1f2f4; --tc-qr-bg: #1b1d22; }
.tcard.t-business { --tc-bg: #0e1c30; --tc-text: #edf2f9; --tc-sub: #8fa3bf; --tc-border: #24385a; --tc-accent: #d9b35c; --tc-btn-text: #102036; --tc-qr: #0e1c30; --tc-qr-bg: #f5f1e8; --tc-radius: 8px; }
.tcard.t-anime { --tc-bg: #fff0f7; --tc-text: #4b2a5e; --tc-sub: #a6699b; --tc-border: #f4c6e0; --tc-accent: #ff5ca8; --tc-btn-text: #fff; --tc-qr: #d6336c; --tc-qr-bg: #fff; --tc-radius: 22px; --tc-deco: #ff8fc4; }
.tcard.t-neon { --tc-bg: #0a0f16; --tc-text: #d9faff; --tc-sub: #5e7e8c; --tc-border: #16323f; --tc-accent: #00e5ff; --tc-btn-text: #06262e; --tc-qr: #00e5ff; --tc-qr-bg: #081019; --tc-radius: 12px; }
.tcard.t-neon { box-shadow: 0 0 44px -8px rgba(0, 229, 255, .35), 0 24px 60px -28px rgba(0, 0, 0, .6); }
.tcard.t-mono { --tc-bg: #ffffff; --tc-text: #000; --tc-sub: #5a5a5a; --tc-border: #000; --tc-accent: #000; --tc-btn-text: #fff; --tc-qr: #000; --tc-qr-bg: #fff; --tc-radius: 2px; }
.tcard.t-sunset { --tc-bg: #fff3e4; --tc-text: #5b2a12; --tc-sub: #b07a52; --tc-border: #f3d4ae; --tc-accent: #f97316; --tc-btn-text: #fff; --tc-qr: #c2410c; --tc-qr-bg: #fff9f0; --tc-radius: 16px; --tc-deco: #fdba74; }

/* C.C. — гостья аниме-темы, выглядывает из-за нижнего края */
.tc-chan {
  position: absolute; right: -10px; bottom: 50px;
  width: 104px; pointer-events: none;
  opacity: 0; transform: translateY(16px) rotate(3deg);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.tc-chan svg { width: 100%; height: auto; display: block; }
.tcard.t-anime .tc-chan { opacity: 1; transform: none; }

/* настоящий QR-код на canvas (рисует assets/qr.js, цвета — из переменных темы) */
.tc-qrc {
  position: absolute; inset: 5px;
  width: calc(100% - 10px); height: calc(100% - 10px);
  display: none; border-radius: 6px;
}
.tcard.has-qr .tc-qrc { display: block; }
.tcard.has-qr .tc-qr { background-image: none; }
.tcard.has-qr .tc-qr .f { display: none; }
.tc-mk { z-index: 2; }

@media (max-width: 860px) {
  .themes-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .theme-picker { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tcard.pop { animation: none; }
}

/* ---------- 14. Плавное появление при скролле (классы вешает landing.js) ---------- */
.sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--sr-d, 0s);
}
.sr.sr-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1; transform: none; transition: none; }
}

/* линия в герое растёт слева направо */
.reveal-rule {
  transform-origin: left center;
  animation: rule-grow .9s cubic-bezier(.2, .7, .2, 1) .32s both;
}
@keyframes rule-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-rule { animation: none; }
}

/* плавное раскрытие FAQ (высоту анимирует landing.js) */
.faq-content { overflow: hidden; height: auto; transition: height .34s cubic-bezier(.4, 0, .2, 1); }
.faq-content .faq-a { transition: opacity .34s ease, transform .34s ease; }
.faq-list details:not([open]) .faq-content .faq-a { opacity: 0; transform: translateY(-4px); }
.faq-list details[open] .faq-content .faq-a { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .faq-content, .faq-content .faq-a { transition: none; }
}
