/* kwikex — стили сайта. Цвета: docs/brand.md (оттенок 04). Главная — по макету 5 «Сборка»
   (docs/design/build_home5.py, утверждён владельцем 14.09.2026). */
:root {
  --orange: #e04500; --orange-deep: #a83300; --orange-light: #f56a1a; --orange-soft: #ffe7dc;
  --bg: #f7f8fb; --card: #ffffff; --border: #e3e6ee; --chip: #f2f4f8; --input-border: #d5d9e3;
  --ink: #121416; --muted: #5f6470; --success: #12cf54; --success-ink: #0f8f3d; --success-soft: #e3f9ea;
  --danger: #f04438; --warn-bg: #fff4e8; --warn-text: #8a3a00; --black: #0e0e10;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --hero: linear-gradient(135deg, #e04500 0%, #f56a1a 48%, #a83300 100%);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; line-height: 1.45; }
a { color: var(--orange-deep); text-decoration: none; } a:hover { color: var(--orange); }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
.wordmark { display: inline-flex; align-items: center; gap: 0.06em; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.wordmark .bolt { display: block; flex-shrink: 0; }
.plate { display: inline-flex; align-items: center; background: var(--orange); border-radius: calc(var(--plate-size) * 0.45); padding: calc(var(--plate-size) * 0.42) calc(var(--plate-size) * 0.62); line-height: 1; box-shadow: 0 4px 14px rgba(224, 69, 0, 0.28); }
.plate:hover { background: var(--orange-light); }
.hidden { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page { display: flex; flex-direction: column; gap: 16px; padding: 0 0 32px 0; }
@media (max-width: 899px) { .desk-only { display: none !important; } }
.icon-line { display: inline-flex; align-items: center; gap: 6px; }

/* --- общие элементы (главная, реквизиты, заявка) ----------------------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.wrap > .card, .wrap > .row, .wrap > .btn, .wrap > .trust, .wrap > .support, .wrap > .stepper, .wrap > .head, .wrap > .footer-note { margin-left: 20px; margin-right: 20px; }
.label { font-size: 13px; color: var(--muted); font-weight: 500; }
.row { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.amount { display: flex; align-items: baseline; gap: 8px; }
.amount input, .amount .num { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; border: 0; background: transparent; padding: 0; width: 100%; min-width: 0; outline: none; }
.amount .unit { font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--chip); color: var(--ink); border: 1px solid var(--border); }
.chip.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.arrow { display: flex; justify-content: center; margin: -22px 0; position: relative; z-index: 1; }
.arrow span { width: 38px; height: 38px; border-radius: 19px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.rate { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.rate b { color: var(--ink); font-size: 15px; font-weight: 600; }
.trust { display: flex; align-items: center; gap: 10px; background: var(--success-soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.trust svg { color: var(--success-ink); flex-shrink: 0; }
.warn { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-bg); color: var(--warn-text); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.4; }
.warn svg { flex-shrink: 0; margin-top: 1px; }
.error { background: #fdecec; color: #8a1f1f; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 16px; font-weight: 600; font-size: 17px; border: 0; background: var(--orange); color: #fff; width: 100%; white-space: nowrap; }
.btn:hover { color: #fff; background: var(--orange-light); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn.small, .btn.sm { min-height: 44px; font-size: 14px; border-radius: 12px; padding: 0 18px; width: auto; display: inline-flex; }
.btn.outline { background: transparent; color: var(--orange-deep); border: 1.5px solid var(--orange); }
.btn.inline { width: auto; display: inline-flex; padding: 0 24px; }
.btn.white { background: #fff; color: var(--orange-deep); } .btn.white:hover { background: #fff; color: var(--orange); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); } .btn.ghost:hover { color: var(--orange); background: transparent; }
.btn.ghost-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); } .btn.ghost-w:hover { background: rgba(255,255,255,0.12); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field select { min-height: 52px; padding: 0 14px; background: var(--card); border: 1.5px solid var(--input-border); border-radius: 14px; font-size: 17px; width: 100%; -webkit-appearance: none; appearance: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field .ok { border-color: var(--success); } .field .bad { border-color: var(--danger); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--chip); border-radius: 14px; padding: 4px; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 11px; font-weight: 500; font-size: 15px; color: var(--muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 4px 2px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--orange); }
.summary { display: flex; align-items: center; gap: 8px; background: var(--chip); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.summary .r { margin-left: auto; color: var(--muted); }
.head { display: flex; flex-direction: column; gap: 4px; }
.head .code { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: 0.06em; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--orange-soft); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.pill.attention { background: var(--warn-bg); color: var(--warn-text); }
.pill.done { background: var(--success-soft); color: var(--success-ink); }
.stepper { display: flex; gap: 2px; align-items: flex-start; }
.stepper .s { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 0; font-size: 11px; text-align: center; color: var(--muted); line-height: 1.2; }
.stepper .dot { width: 22px; height: 22px; border-radius: 11px; background: var(--chip); border: 1px solid var(--border); }
.stepper .s.done { color: var(--ink); } .stepper .s.done .dot { background: var(--success); border-color: var(--success); }
.stepper .s.now { color: var(--ink); } .stepper .s.now .dot { background: var(--orange); border: 4px solid var(--orange-soft); }
.stepper .s.warn .dot { background: var(--danger); border: 4px solid #fde2e2; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; line-height: 1.4; }
.qr { flex-shrink: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; width: 96px; height: 96px; background: #fff; }
.qr svg { display: block; width: 96px; height: 96px; }
.support { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 4px 0; }
.footer-note { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.footer-note .line { display: flex; align-items: center; gap: 8px; }
.message { font-size: 15px; line-height: 1.5; }
.copy-ok { color: var(--success-ink); font-size: 12px; }
.lang { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.55); background: transparent; color: inherit; font-size: 13px; font-weight: 600; }
.lang.dark { border-color: var(--border); color: var(--ink); }
.help { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-height: 44px; padding: 0 4px; color: inherit; }
.coin-badge { width: var(--coin-size, 30px); height: var(--coin-size, 30px); border-radius: 50%; background: var(--coin); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: calc(var(--coin-size, 30px) * 0.44); flex-shrink: 0; }
.coin-badge.muted { background: #d9dbe3; }

/* --- шапка --------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; gap: 12px; }
.topbar nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.topbar nav a { color: var(--ink); } .topbar nav a:hover { color: var(--orange); }
.topbar .right { display: flex; align-items: center; gap: 10px; }
.topbar .help { color: var(--ink); }

/* --- бегущая строка -------------------------------------------------------------- */
.ticker { background: var(--orange); color: #fff; font-size: 14px; padding: 10px 0; overflow: hidden; }
.tk { display: flex; white-space: nowrap; width: max-content; animation: tk 45s linear infinite; }
.tk-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.25); }
.tk-item span { opacity: 0.85; } .tk-item em { font-style: normal; font-family: var(--display); font-weight: 600; } .tk-item i { font-style: normal; }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk { animation: none; } }

/* --- первый экран ---------------------------------------------------------------- */
.band { background: var(--hero); color: #fff; border-radius: 0 0 28px 28px; padding: 28px 0 28px 0; }
.hero { display: flex; flex-direction: column; gap: 24px; }
.hero-text { display: flex; flex-direction: column; gap: 10px; }
.band h1 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.band p { margin: 0; font-size: 15px; line-height: 1.5; opacity: 0.92; }
.pill-live { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--orange-deep); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; width: fit-content; margin-bottom: 6px; }
.pill-live .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--success); }
.hero-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.hero-actions .btn { width: auto; padding: 0 24px; display: inline-flex; }
.hero-facts { font-size: 14px; opacity: 0.9; }
.calc { background: #fff; color: var(--ink); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(60, 10, 0, 0.35); }
.calc .box { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.calc .arrow { margin: -20px 0; }
.calc .rate-line b { font-size: 15px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--chip); border-radius: 12px; padding: 4px; }
.tab { border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 0; border-radius: 9px; }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* --- разделы главной ------------------------------------------------------------ */
.landing { display: flex; flex-direction: column; gap: 28px; padding-top: 36px; padding-bottom: 32px; }
.sec { display: flex; flex-direction: column; gap: 18px; }
.sec-head { display: flex; flex-direction: column; gap: 6px; }
.sec-head.row-end { gap: 8px; }
h2 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rates { display: flex; flex-direction: column; gap: 10px; }
.rates-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 20px; padding: 0 24px; font-size: 13px; color: var(--muted); font-weight: 500; }
.rates-row { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.rates-row.soon { background: transparent; border: 1.5px dashed var(--border); color: var(--muted); }
.rates-row .dir { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.rates-row .dir small { color: var(--muted); font-weight: 500; font-size: 13px; } .rates-row .swap { color: var(--muted); }
.rates-row .rv { display: flex; align-items: baseline; gap: 6px; }
.rates-row .rv .label { flex: 1 1 0; }
.rates-row .rv .num { font-family: var(--display); font-weight: 600; font-size: 24px; } .rates-row .rv small { color: var(--muted); font-size: 13px; }
.how { background: var(--orange-soft); border-radius: 28px; padding: 28px 22px; display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.how-text { display: flex; flex-direction: column; gap: 22px; }
.three { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step .n { width: 44px; height: 44px; border-radius: 22px; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; }
.step .t { font-size: 18px; font-weight: 600; } .step .d { font-size: 15px; line-height: 1.5; color: var(--muted); }
.why-sec { gap: 24px; }
.why-text { display: flex; flex-direction: column; gap: 18px; }
.card.why { padding: 22px; gap: 10px; border-radius: 24px; }
.why-ic { width: 48px; height: 48px; border-radius: 16px; background: var(--orange-soft); color: var(--orange-deep); display: inline-flex; align-items: center; justify-content: center; }
.why .t { font-size: 17px; font-weight: 600; } .why .d { font-size: 14px; line-height: 1.5; color: var(--muted); }
.faq-grid { gap: 10px; }
.faq-item { padding: 0; gap: 0; border-radius: 18px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font-size: 16px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; color: var(--muted); transition: transform 0.2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item .a { padding: 0 20px 18px 20px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.support-card { gap: 20px; padding: 24px; border-radius: 28px; }
.support-card p { margin: 8px 0 0 0; font-size: 15px; color: var(--muted); max-width: 560px; }
.support-links { display: flex; flex-direction: column; gap: 10px; }
.foot { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border); padding: 24px 0 8px 0; font-size: 14px; color: var(--muted); }
.foot-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); } .foot-links a:hover { color: var(--orange); }

/* --- иллюстрации: телефон с заявкой, карта с выплатой ------------------------- */
.phone-wrap { height: 560px; position: relative; }
.phone { width: 300px; height: 610px; background: var(--ink); border-radius: 44px; padding: 12px; box-shadow: 0 40px 90px rgba(0,0,0,0.35); transform: scale(0.92); transform-origin: top left; position: relative; }
.phone .island { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 11px; background: #000; }
.phone .screen { background: var(--bg); border-radius: 32px; padding: 56px 16px 18px 16px; display: flex; flex-direction: column; gap: 12px; height: 100%; color: var(--ink); }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ph-status { background: var(--orange-soft); color: var(--orange-deep); border-radius: 8px; padding: 4px 8px; font-weight: 600; }
.ph-dots { display: flex; justify-content: space-between; padding: 0 6px; }
.ph-dots span { width: 18px; height: 18px; border-radius: 9px; background: var(--border); border: 3px solid var(--border); }
.ph-dots .done { background: var(--success); border-color: var(--success); } .ph-dots .now { background: var(--orange); border-color: var(--orange-soft); }
.ph-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.ph-amount { font-family: var(--display); font-weight: 600; font-size: 26px; } .ph-amount small { font-size: 13px; color: var(--muted); font-weight: 500; }
.ph-qr-row { flex-direction: row; gap: 12px; align-items: center; }
.ph-qr { display: grid; grid-template-columns: repeat(9, 1fr); width: 72px; height: 72px; gap: 1px; background: #fff; padding: 4px; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.ph-qr i { background: var(--ink); } .ph-qr i.w { background: #fff; }
.ph-addr { display: flex; flex-direction: column; gap: 6px; font-size: 11px; min-width: 0; }
.ph-addr .mono { font-size: 11px; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: 10px; background: var(--orange-soft); color: var(--orange-deep); font-weight: 600; font-size: 12px; width: fit-content; }
.ph-rate { display: flex; justify-content: space-between; font-size: 12px; } .ph-rate b { display: flex; gap: 4px; align-items: center; }
.ph-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 16px; background: var(--orange); color: #fff; font-weight: 600; font-size: 16px; }
.art { position: relative; width: 420px; height: 300px; }
.art-card { position: absolute; left: 40px; top: 60px; width: 340px; height: 210px; border-radius: 24px; background: var(--hero); box-shadow: 0 30px 60px rgba(224,69,0,0.35); color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.chip-emv { width: 36px; height: 26px; border-radius: 6px; background: rgba(255,255,255,0.35); }
.art-num { font-family: var(--display); font-size: 22px; letter-spacing: 0.12em; }
.art-foot { font-size: 13px; opacity: 0.9; }
.art-pop { position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.14); display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 13px; line-height: 1.3; }
.art-pop small { color: var(--muted); font-size: 12px; } .art-pop b { font-size: 16px; }
.art-paid { left: 0; top: 0; } .art-usdt { right: 0; bottom: 0; }
.art .ok { width: 36px; height: 36px; border-radius: 18px; background: var(--success-soft); color: var(--success-ink); display: inline-flex; align-items: center; justify-content: center; }

/* --- большой экран --------------------------------------------------------------- */
@media (min-width: 720px) {
  .wrap > .card, .wrap > .row, .wrap > .btn, .wrap > .trust, .wrap > .support, .wrap > .stepper, .wrap > .head, .wrap > .footer-note { margin-left: 0; margin-right: 0; }
}
@media (min-width: 900px) {
  .mob-only { display: none !important; }
  .topbar .top { min-height: 68px; }
  .band { border-radius: 0 0 40px 40px; padding: 56px 0 64px 0; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: center; }
  .hero-text { gap: 22px; }
  .band h1 { font-size: 54px; line-height: 1.08; } .band p { font-size: 19px; max-width: 540px; }
  .landing { gap: 72px; padding-top: 72px; }
  h2 { font-size: 36px; }
  .sec-head.row-end { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .faq-grid { gap: 12px; }
  .rates-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 20px; align-items: center; padding: 18px 24px; }
  .rates-row .rv .num { font-size: 26px; }
  .how { border-radius: 40px; padding: 56px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
  .how h2 { font-size: 48px; } .how-text { gap: 28px; }
  .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .step .t { font-size: 20px; }
  .why-sec { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; }
  .why-sec h2 { font-size: 40px; }
  .support-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 48px; }
  .support-links { flex-direction: row; }
  .foot { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 28px; }
}
