@font-face { font-family: Golos; font-weight: 400; font-display: swap; src: url(/fonts/golos-cyrillic-400.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Golos; font-weight: 400; font-display: swap; src: url(/fonts/golos-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Golos; font-weight: 600; font-display: swap; src: url(/fonts/golos-cyrillic-600.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Golos; font-weight: 600; font-display: swap; src: url(/fonts/golos-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0a0b;
  --card: #141416;
  --card-2: #1b1b1f;
  --line: #2a2a30;
  --text: #f5f5f6;
  --muted: #9d9da6;
  --red: #e3262b;
  --red-hi: #ff3d42;
  --red-lo: #9f1418;
  --green: #31d36f;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(227, 38, 43, .28), transparent 60%),
    radial-gradient(80% 40% at -20% 10%, rgba(227, 38, 43, .12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 15px/1.5 Golos, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 520px; margin: 0 auto; padding: 12px 16px;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(227, 38, 43, .35), 0 6px 18px -6px rgba(227, 38, 43, .7); }
.wordmark { font-weight: 600; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.wordmark b { font-weight: 600; }
.wordmark em { font-style: normal; color: var(--red-hi); }
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line);
}
.icon-btn svg { width: 20px; height: 20px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.lang button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed='true'] { background: var(--red); color: #fff; }

/* ---------- Страница ---------- */

.page { max-width: 520px; margin: 0 auto; padding: 8px 16px 40px; }

.hero { padding: 18px 2px 18px; }
.live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--green); background: rgba(49, 211, 111, .08); border: 1px solid rgba(49, 211, 111, .25);
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.live.off { color: var(--muted); background: var(--card-2); border-color: var(--line); }
.live.off i { animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px transparent; } }
.hero h1 { margin: 14px 0 8px; font-size: 30px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--red-hi); }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Калькулятор ---------- */

.calc {
  position: relative;
  padding: 16px; border-radius: 24px;
  background: linear-gradient(180deg, #19191c, #121214);
  border: 1px solid rgba(227, 38, 43, .35);
  box-shadow: 0 30px 60px -30px rgba(227, 38, 43, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.calc-title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
.calc-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); }
.calc-rate { font-size: 13.5px; font-weight: 600; text-align: right; }

.box { padding: 12px 14px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--line); transition: border-color .15s; }
.box:focus-within { border-color: var(--red); }
.box-label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.box-row { display: flex; align-items: center; gap: 10px; }
.amount {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 2px 0 0;
  font-size: 30px; font-weight: 600; letter-spacing: -.01em;
}
.amount::placeholder { color: #55555c; }
.cur-switch { display: flex; padding: 3px; border-radius: 12px; background: #0f0f11; border: 1px solid var(--line); flex: none; }
.cur-switch button { border: 0; background: none; padding: 7px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cur-switch button[aria-pressed='true'] { background: var(--red); color: #fff; box-shadow: 0 4px 14px -4px rgba(227, 38, 43, .8); }
.cur-fixed { flex: none; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; background: #0f0f11; border: 1px solid var(--line); }

.arrow { display: grid; place-items: center; height: 0; position: relative; z-index: 1; }
.arrow button { padding: 0; border: 0; background: none; border-radius: 11px; }
.arrow svg {
  display: block; width: 36px; height: 36px; padding: 8px; margin: -2px 0; border-radius: 11px;
  background: #0f0f11; border: 1px solid var(--line); color: var(--red-hi); transition: transform .25s, border-color .15s;
}
.arrow button:active svg { border-color: var(--red); }
.arrow button.flipped svg { transform: rotate(180deg); }
#payout-note { margin-top: 10px; }
.box + .arrow + .box { margin-top: 8px; }
.calc > .box:first-of-type { margin-bottom: 8px; }

.chips { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #0f0f11; border: 1px solid var(--line); color: #d6d6da;
}
.chip:active { border-color: var(--red); }

.upgrade {
  display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: rgba(227, 38, 43, .1); border: 1px dashed rgba(227, 38, 43, .55); color: #ffc9ca; font-size: 13px;
}
.calc-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.calc-note.warn { color: #ffb4b6; }

/* ---------- Блоки ---------- */

.block { margin-top: 26px; }
.block h2, .h2, .safe h2 { display: block; margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.method {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center;
}
.method svg { width: 28px; height: 28px; color: var(--muted); }
.method[aria-pressed='true'] { border-color: var(--red); background: linear-gradient(180deg, rgba(227, 38, 43, .16), rgba(227, 38, 43, .04)); }
.method[aria-pressed='true'] svg { color: var(--red-hi); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #d6d6da; }
.pill[aria-pressed='true'] { border-color: var(--red); color: #fff; background: rgba(227, 38, 43, .14); }

textarea {
  width: 100%; resize: vertical; min-height: 64px; padding: 12px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); outline: 0; font-size: 15px;
}
textarea:focus { border-color: var(--red); }

.submit { margin-top: 22px; }
.cta {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px; border: 0; border-radius: 16px; font-size: 17px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, #c71d22);
  box-shadow: 0 16px 34px -14px rgba(227, 38, 43, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cta svg { width: 20px; height: 20px; }
.cta:disabled { opacity: .45; box-shadow: none; }
.cta:not(:disabled):active { transform: translateY(1px); }
.hint { margin: 10px 4px 0; text-align: center; font-size: 13px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); font-weight: 600; box-shadow: 0 6px 16px -6px rgba(227, 38, 43, .9);
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 13.5px; }

.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rate-card { padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.rate-card h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rate-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, .05); }
.rate-row:first-of-type { border-top: 0; }
.rate-row b { font-weight: 600; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; font-weight: 600; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red-hi); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 2px 14px; color: #c4c4ca; font-size: 14px; }

.safe {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; margin-top: 26px; padding: 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(227, 38, 43, .14), rgba(227, 38, 43, .03)); border: 1px solid rgba(227, 38, 43, .3);
}
.safe svg { width: 40px; height: 40px; color: var(--red-hi); }
.safe h2 { margin-bottom: 4px; font-size: 16px; }
.safe p { margin: 0; color: #c4c4ca; font-size: 13.5px; }
.safe a { color: #fff; font-weight: 600; }

.foot { margin-top: 26px; text-align: center; color: #6c6c74; font-size: 12.5px; }
.ghost { width: 100%; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; margin-bottom: 16px; }

/* ---------- Окно ---------- */

.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.sheet-card {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  background: #121214; border: 1px solid var(--line); border-bottom: 0; animation: up .25s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card-2); font-size: 22px; line-height: 1; }
.done-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: rgba(49, 211, 111, .12); color: var(--green); }
.done-icon svg { width: 30px; height: 30px; stroke-width: 2.4; }
.sheet h3 { margin: 0 0 6px; text-align: center; font-size: 21px; font-weight: 600; }
.sheet .lead { margin: 0 0 16px; text-align: center; color: var(--muted); font-size: 14px; }
.summary { padding: 4px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.summary div:first-child { border-top: 0; }
.summary span { color: var(--muted); }
.summary b { font-weight: 600; text-align: right; }
.sheet .cta { margin-top: 4px; }
.order { padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 8px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.order-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #26262b; color: #d6d6da; }
.badge.new { background: rgba(227, 38, 43, .16); color: #ffb4b6; }
.badge.work { background: rgba(245, 180, 40, .14); color: #ffd27a; }
.badge.done { background: rgba(49, 211, 111, .12); color: var(--green); }
.empty { text-align: center; color: var(--muted); padding: 20px 0; }

@media (max-width: 370px) {
  .wordmark { font-size: 15px; }
  .hero h1 { font-size: 26px; }
  .amount { font-size: 26px; }
  .method { font-size: 11.5px; }
}
@media (min-width: 700px) {
  .page { padding-top: 20px; }
  .hero h1 { font-size: 36px; }
}
.amount[readonly] { cursor: default; }
.amount.loading { opacity: .4; transition: opacity .15s; }
.rate-row span, .rate-row b { white-space: nowrap; }
.rate-card { min-width: 0; }
@media (max-width: 400px) { .rate-row { font-size: 12.5px; } .rate-card { padding: 12px 10px; } }
