/* ============================================================
   Стек — лендинг. Самодостаточные стили (без зависимостей).
   Палитра: почти чёрный + золото, как в исходном сайте.
   ============================================================ */

:root {
  --background: oklch(13% 0 0);
  --foreground: oklch(98% 0 0);
  --muted-foreground: oklch(68% 0 0);
  --gold: oklch(82% .14 88);
  --gold-soft: oklch(90% .09 92);
  --gold-glow: oklch(82% .14 88 / .16);
  --border: oklch(100% 0 0 / .12);
  --primary-foreground: oklch(15% .02 88);
  --blue: oklch(64% .17 245);
  --radius: 10px;
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
  --shadow-gold: 0 18px 50px -12px oklch(82% .14 88 / .45);
  --font-sans: "Inter Tight", system-ui, sans-serif;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-num: "Bebas Neue", "Archivo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Декор: свечение + виньетка-зерно ---------- */

.glow {
  position: fixed;
  top: 42%;
  left: 50%;
  translate: -50% -50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow-breathe 9s ease-in-out infinite;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(transparent 40%, oklch(0% 0 0 / .55) 100%),
    repeating-conic-gradient(oklch(100% 0 0 / .012) 0% .0001%, transparent .0002% .0004%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Каркас ---------- */

.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 3dvh, 40px) 16px;
}

.stage {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3dvh, 32px);
}

/* ---------- Шапка ---------- */

.site-header {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 3dvh, 32px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -.02em;
  color: var(--foreground);
}

.brand sup {
  font-size: .45em;
  color: var(--gold);
  margin-left: 2px;
}

.brand-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(10px, 2.4vw, 12px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid oklch(82% .14 88 / .35);
  background: oklch(82% .14 88 / .07);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------- Демо-плашка ---------- */

.demo-banner {
  margin: 0;
  font-size: 12px;
  color: var(--muted-foreground);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: center;
}

/* ---------- Интро-карточка ---------- */

.intro-card {
  text-align: center;
  background: oklch(82% .14 88 / .06);
  border: 1px solid oklch(82% .14 88 / .35);
  border-radius: 12px;
  padding: clamp(14px, 2.4dvh, 24px) clamp(14px, 3vw, 24px);
}

.intro-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(20px, 5.4vw, 32px);
  line-height: 1.1;
}

.intro-hint {
  margin: 10px auto 0;
  max-width: 46ch;
  color: var(--muted-foreground);
  font-size: clamp(12px, 3vw, 15px);
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------- Сетка банков 3×3 ---------- */

.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6dvh, 14px) 8px;
  padding-top: 10px; /* место для бейджей, выступающих над плиткой */
}

.bank-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: clamp(14px, 2.2dvh, 20px) 4px clamp(10px, 1.6dvh, 14px);
  color: var(--foreground);
  font-family: var(--font-display);
  background: oklch(100% 0 0 / .025);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .15s var(--ease-premium), box-shadow .3s ease;
}

.bank-tile:hover:not(:disabled) { border-color: oklch(82% .14 88 / .5); }
.bank-tile:active:not(:disabled) { transform: scale(.97); }

.bank-tile.is-on {
  border-color: var(--gold);
  background: oklch(82% .14 88 / .09);
  box-shadow: 0 0 18px oklch(82% .14 88 / .15);
}

.bank-tile:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.bank-tile:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* чекбокс */
.bank-box {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--primary-foreground);
  border: 1.5px solid oklch(82% .14 88 / .6);
  border-radius: 3px;
  transition: background-color .3s ease, border-color .3s ease;
}

.bank-tile.is-on .bank-box {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px oklch(82% .14 88 / .55);
}

.bank-box svg {
  width: 10px;
  height: 10px;
  animation: check-pop .4s var(--ease-premium) both;
}

/* название и сумма */
.bank-name {
  max-width: 100%;
  padding: 0 2px;
  font-size: clamp(8.5px, 2.6vw, 13px);
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-pay {
  color: var(--gold);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  font-size: clamp(16px, 4.6vw, 24px);
  line-height: 1;
  text-shadow: 0 0 24px oklch(82% .14 88 / .25);
}

/* бейдж «ВЫБОР ПОЛЬЗОВАТЕЛЕЙ» */
.bank-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px 1px 3px;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid oklch(68% .16 245 / .55);
  border-radius: 999px;
  font-size: clamp(6.5px, 1.7vw, 9px);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.bank-badge-icon {
  flex: none;
  width: 11px;
  height: 11px;
  display: inline-grid;
  place-items: center;
  color: oklch(100% 0 0);
  background: var(--blue);
  border-radius: 50%;
}

.bank-badge-icon svg { width: 7px; height: 7px; }

/* пометка «скоро» */
.bank-soon {
  font-family: var(--font-sans);
  font-size: clamp(8px, 2vw, 10px);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.partner-note {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted-foreground);
  opacity: .8;
  font-size: clamp(10px, 2.4vw, 12px);
}

/* ---------- Итого ---------- */

.total { text-align: center; }

.total-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted-foreground);
  font-size: clamp(12px, 3vw, 15px);
}

.total-value {
  margin: 4px 0 8px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-shadow: 0 0 40px oklch(82% .14 88 / .3);
  font-size: clamp(56px, 15vw, 96px);
  line-height: 1.05;
}

.total-note {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--muted-foreground);
  font-size: clamp(12px, 2.8vw, 14px);
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------- Заголовки секций ---------- */

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
  color: var(--gold);
  font-size: clamp(14px, 3.6vw, 18px);
}

/* ---------- Как это работает ---------- */

.how,
.terms {
  background: oklch(100% 0 0 / .02);
  border: 1px solid oklch(82% .14 88 / .3);
  border-radius: 12px;
  padding: clamp(14px, 2.4dvh, 24px) clamp(12px, 3vw, 22px);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.4;
}

.step-num {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: oklch(82% .14 88 / .15);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.step-arrow {
  align-self: center;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  transform: rotate(90deg);
  padding: 2px 0;
}

.chain {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(11px, 2.8vw, 14px);
}

.chain span { color: var(--gold); margin: 0 6px; }

@media (min-width: 720px) {
  .steps { flex-direction: row; align-items: stretch; gap: 8px; }
  .step { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .step-arrow { transform: none; align-self: center; }
}

/* ---------- Условия выплат ---------- */

.terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.45;
  color: var(--foreground);
}

.terms-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px oklch(82% .14 88 / .5);
}

.terms-list a { color: var(--gold-soft); }

.terms-free {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid oklch(82% .14 88 / .18);
  text-align: center;
  font-size: clamp(12px, 3vw, 14px);
}

.terms-free b { color: var(--gold); font-weight: 600; }

.terms-details {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: oklch(100% 0 0 / .02);
}

.terms-details summary {
  cursor: pointer;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted-foreground);
  transition: color .2s ease;
}

.terms-details summary:hover { color: var(--gold-soft); }

.terms-details summary:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
  border-radius: 8px;
}

.terms-details[open] summary { color: var(--gold); }

.terms-details p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted-foreground);
  font-size: clamp(12px, 2.8vw, 13px);
  line-height: 1.55;
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#cta-slot { width: 100%; display: flex; justify-content: center; }

.gold-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: clamp(56px, 8dvh, 72px);
  padding: 18px 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 3.6vw, 18px);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform .5s var(--ease-premium), background-color .4s ease, box-shadow .5s var(--ease-premium);
}

.gold-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, oklch(100% 0 0 / .45) 50%, transparent 70%);
  transform: translate(-120%);
  animation: shimmer 4.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}

.gold-button:hover:not(:disabled) {
  background: var(--gold-soft);
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -16px oklch(82% .14 88 / .6);
}

.gold-button:active:not(:disabled) { transform: translateY(0) scale(.985); }

.gold-button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

.gold-button:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gold-button:disabled::after { animation: none; }

.cta-note {
  margin: 0;
  max-width: 44ch;
  text-align: center;
  color: var(--muted-foreground);
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1.45;
}

/* ---------- Футер ---------- */

.site-footer {
  width: 100%;
  max-width: 560px;
  margin-top: clamp(24px, 4dvh, 44px);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
  font-size: clamp(11px, 2.6vw, 13px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer p { margin: 0; }

.footer-legal { opacity: .8; line-height: 1.5; }

.footer-link a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid oklch(90% .09 92 / .35);
  transition: border-color .2s ease;
}

.footer-link a:hover { border-color: var(--gold-soft); }

.footer-link a:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Утилиты ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Анимации ---------- */

.reveal {
  animation: reveal-up .9s var(--ease-premium) both;
  animation-delay: var(--d, 0s);
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: .8; scale: 1; }
  50%      { opacity: 1;  scale: 1.06; }
}

@keyframes shimmer {
  0%       { transform: translate(-120%); }
  45%, 100% { transform: translate(120%); }
}

@keyframes check-pop {
  0%   { opacity: 0; transform: scale(.4); }
  60%  { transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Узкие экраны ---------- */

@media (max-width: 380px) {
  .bank-grid { gap: 10px 6px; }
  .bank-name { font-size: clamp(8px, 2.5vw, 11px); letter-spacing: -.02em; }
  .bank-pay { font-size: clamp(15px, 4.4vw, 20px); }
  .bank-badge { font-size: 6.5px; padding: 1px 5px 1px 2px; gap: 2px; }
  .bank-badge-icon { width: 9px; height: 9px; }
  .bank-badge-icon svg { width: 6px; height: 6px; }
  .bank-box { width: 12px; height: 12px; top: 6px; left: 6px; }
  .bank-box svg { width: 8px; height: 8px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .glow,
  .gold-button::after,
  .bank-box svg { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .gold-button,
  .bank-tile,
  .bank-box { transition: none; }
}

/* ---------- Баннер согласия (152-ФЗ) ---------- */

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(680px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(20, 20, 24, .92);
  border: 1px solid rgba(231, 200, 115, .28);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.consent-banner[hidden] { display: none; }
.consent-text { margin: 0; font-size: 13px; line-height: 1.5; color: #d7d7de; }
.consent-text a { color: var(--gold, #e7c873); }
.consent-accept { flex: 0 0 auto; padding: 11px 22px; font-size: 14px; }
@media (max-width: 560px) {
  .consent-banner { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .consent-accept { width: 100%; }
}
