/* Главная. Главный образ — живая платёжная панель в первом экране над призматическим свечением;
   остальное спокойное: стеклянные плитки на белом. */

/* шапка: внутренний ряд по ширине контента, матовая полоса — .sitebar в app.css */
.topbar.site { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 700px) { .topbar.site { padding-inline: 24px; } }
.sitenav { display: none; gap: 2px; margin-left: 14px; }
.sitenav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .92rem; padding: 8px 11px; border-radius: 10px; white-space: nowrap; transition: background-color .15s, color .15s; }
.sitenav a:hover { color: var(--ink); background: var(--cobalt-soft); }
@media (min-width: 1140px) { .sitenav { display: flex; } }
.signin { white-space: nowrap; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 1.04rem; border-radius: 16px; }

/* ---------- первый экран ---------- */
.hero { display: grid; gap: 40px; padding-top: clamp(36px, 8vh, 88px); padding-bottom: clamp(48px, 10vh, 112px); align-items: center; }
@media (min-width: 940px) { .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; } }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.4rem); font-weight: 700; line-height: .96; letter-spacing: -0.055em; max-width: 10ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.hero-facts span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 99px;
  font: 600 1rem/1.1 var(--display); letter-spacing: -0.01em; color: var(--ink);
  background: var(--glass); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 var(--edge), 0 1px 2px rgba(12, 22, 51, .05);
}
.hero-facts span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--cobalt), #19C3D6); }
.hero-lead { margin-top: 22px; font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.hero-cta { margin: 30px 0 12px; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } .hero-facts span { font-size: .92rem; } }

.hero-demo { display: grid; justify-items: center; position: relative; isolation: isolate; padding: 12px 0; }
/* призма: свет, преломлённый стеклом панели */
.hero-demo::before {
  content: ""; position: absolute; z-index: -1; inset: -8% 0; pointer-events: none;
  background:
    radial-gradient(40% 36% at 30% 30%, rgba(47, 75, 255, .5), transparent 72%),
    radial-gradient(36% 34% at 78% 40%, rgba(25, 195, 214, .46), transparent 72%),
    radial-gradient(40% 32% at 46% 82%, rgba(52, 211, 153, .36), transparent 72%),
    radial-gradient(24% 22% at 82% 84%, rgba(140, 120, 255, .3), transparent 72%);
}
@media (min-width: 940px) { .hero-demo::before { inset: -22% 0; } }
@media (min-width: 1240px) { .hero-demo::before { inset: -22% -8%; } }
.ticket.demo { max-width: 384px; transform: rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .ticket.demo { transform: none; } }
.ticket.demo .amount { font-size: 3.2rem; }
.ticket.demo .ticket-body { min-height: 236px; }
.demo-q { font-weight: 650; margin-bottom: 12px; }
.demo-coins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-coins .coinbtn { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); }
.demo-coins .coinbtn.pick { border-color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); background: var(--cobalt-soft); }
.demo-intent { display: grid; grid-template-columns: 1fr 108px; gap: 14px; align-items: center; }
.demo-intent .amount-label { margin: 0; }
.demo-amt { font: 680 1.7rem/1.1 var(--display); letter-spacing: -0.03em; margin: 2px 0; }
.demo-amt span { font-size: .6em; color: var(--ink-2); }
.demo-intent .qrbox { width: 108px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: none; }
.demo-intent .qrbox svg { display: block; width: 100%; height: auto; }
.demo-addr { display: grid; gap: 6px; margin-top: 16px; }
.demo-line { height: 42px; border-radius: 12px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 10px, var(--line-2) 10px 12px); }
.ticket.demo .paystatus { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--cobalt-soft); font-size: .92rem; }
.ticket.demo .done { display: grid; justify-items: center; gap: 10px; padding-top: 28px; }
.ticket.demo .done-ico svg { width: 76px; height: 76px; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ticket.demo .done-ico .ring { stroke: var(--mint); stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw .6s ease-out forwards; }
.ticket.demo .done-ico .mark { stroke: var(--mint); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .5s ease-out forwards; }
.demo-paid { font: 680 1.4rem/1.2 var(--display); letter-spacing: -0.02em; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- секции ---------- */
.band { padding: clamp(56px, 10vh, 104px) 0; }
.sect { padding-top: clamp(56px, 10vh, 104px); padding-bottom: 8px; }
.sect-head { display: grid; gap: 12px; max-width: 64ch; margin-bottom: 28px; }
.sect-head .muted, .agents-grid p { line-height: 1.6; }

/* шаги — настоящая последовательность, поэтому номера */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.steps li {
  counter-increment: st; display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 var(--edge), var(--shadow-1);
}
.steps li::before {
  content: counter(st); font: 700 3rem/1 var(--display); letter-spacing: -0.05em; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--cobalt), #19C3D6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { color: var(--ink-2); max-width: 42ch; }

.coingrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); }
@media (min-width: 700px) { .coingrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.coincard {
  background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; align-content: start;
  box-shadow: inset 0 1px 0 var(--edge), 0 1px 2px rgba(12, 22, 51, .04);
}
.coincard.stable { grid-column: span 2; }
@media (max-width: 480px) { .coincard { padding: 12px; } .feetable th, .feetable td { padding: 12px 14px; } }
.cc-top { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; }
.cc-top b { font-weight: 650; }
.netlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.netlist li { font-size: .8rem; font-weight: 550; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 99px; }

.fees { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .fees { grid-template-columns: 1fr 1.2fr; } .payoutfees { grid-column: 1 / -1; } }
/* калькулятор — «денежная» панель: тот же кобальтовый стеклянный градиент, что у баланса в кабинете */
.calc {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--r-xl); padding: 24px; display: grid; gap: 10px;
  background: linear-gradient(150deg, #3651FF 0%, #2236D6 55%, #1A2AA8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 60px -30px rgba(29, 47, 200, .7);
}
.calc::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 100% 0%, rgba(25, 195, 214, .45), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(140, 120, 255, .35), transparent 70%);
}
.calc label.field { color: rgba(255, 255, 255, .86); }
.calc input {
  font: 650 1.7rem/1.2 var(--display); letter-spacing: -0.02em; background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.calc input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
.calc .faint { color: rgba(255, 255, 255, .8); }
.calc-out { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 8px; }
.calc-out div { display: grid; gap: 2px; }
.calc-out b { font: 650 1.25rem/1.2 var(--display); }
.calc-out b.big { font-size: 2.1rem; letter-spacing: -0.035em; }
.feetable {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--glass); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 var(--edge), var(--shadow-1);
}
.feetable th, .feetable td { padding: 15px 20px; border-bottom: 1px solid var(--line-2); text-align: left; }
.feetable tr:last-child th, .feetable tr:last-child td { border-bottom: 0; }
.feetable th { font-weight: 450; color: var(--ink-2); }
.feetable td { font-weight: 650; text-align: right; }
.payoutfees h3 { margin-bottom: 12px; }
.payoutfees ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.payoutfees li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 15px; border-radius: 13px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: .92rem; }

.agents { margin-top: clamp(56px, 10vh, 104px); position: relative; isolation: isolate; }
.agents::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--cobalt) 5%, transparent) 30%, color-mix(in srgb, var(--cobalt) 5%, transparent) 70%, transparent);
}
.agents-grid { display: grid; gap: 28px; }
@media (min-width: 940px) { .agents-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; } }
.agents-grid > div:first-child { display: grid; gap: 14px; align-content: start; }
.agents-grid p { color: var(--ink-2); max-width: 52ch; }
.agcode { min-width: 0; }

.cta-band {
  display: grid; gap: 16px; justify-items: center; text-align: center; position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(56px, 10vh, 104px); padding: clamp(40px, 8vh, 72px) 20px; border-radius: var(--r-xl);
  background: var(--glass); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 var(--edge), var(--shadow-2);
  max-width: calc(1180px - 48px); width: calc(100% - 32px);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(40% 80% at 15% 100%, var(--glow-2), transparent 70%), radial-gradient(40% 80% at 85% 0%, var(--glow-1), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.cta-band p { max-width: 52ch; }
.wrap.cta-band { padding-inline: 20px; }

.faq { display: grid; margin-top: 22px; max-width: 840px; gap: 8px; }
.faq details {
  border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line-2); padding: 0 18px;
  transition: background-color .2s, box-shadow .2s;
}
.faq details[open] { background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), var(--shadow-1); }
.faq summary { cursor: pointer; padding: 17px 36px 17px 0; font-weight: 600; font-size: 1.04rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font: 300 1.6rem/1 var(--sans); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink-2); max-width: 68ch; line-height: 1.6; }

.sitefoot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 40px; padding-bottom: 40px; margin-top: 72px; border-top: 1px solid var(--line-2); }
.sitefoot .brand svg { width: 24px; height: 24px; }
.footnav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1; }
.footnav a { color: var(--ink-2); font-weight: 550; text-decoration: none; }
.footnav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 420px) { .site .signin { display: none; } }
@media (max-width: 560px) {
  .feetable, .feetable tbody { display: block; }
  .feetable tr { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
  .feetable tr:last-child { border-bottom: 0; }
  .feetable th, .feetable td { padding: 0; border: 0; }
  .feetable td { flex: none; max-width: 48%; }
}
.agents-grid .reslist { margin-top: 6px; }
