/* Сайт AppsBack. Тот же визуальный язык, что у мини-аппа: Manrope + Unbounded, светлый фон, белые карточки. */
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap;
  src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap;
  src: url("/static/fonts/manrope-latin.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: "Unbounded"; font-weight: 500 600; font-display: swap;
  src: url("/static/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500 600; font-display: swap;
  src: url("/static/fonts/unbounded-latin.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: #F3F4F6; --card: #FFFFFF; --ink: #0E1116; --ink-2: #3B414C; --ink-3: #5B6270; --line: #D5D8DE;
  --soft: #EEF0F3; --accent: #1E4FE0; --accent-dark: #163BA8; --accent-soft: #E8EDFC;
  --warn-bg: #FFF4E5; --warn-ink: #8A3F06; --ok: #12784A; --ok-bg: #E6F5EC; --bad: #B3261E; --bad-bg: #FCEBEA;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 "Manrope", system-ui, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1 { margin: 0; font: 600 26px/1.2 "Unbounded", sans-serif; }
h2 { margin: 0; font: 600 18px/1.3 "Unbounded", sans-serif; }
h3 { margin: 0; font: 700 16px/1.35 "Manrope", sans-serif; }
p { margin: 0; }
[hidden] { display: none !important; }
.boot { padding: 64px 20px; text-align: center; color: var(--ink-3); }

.shell { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 0 12px; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 17px/1 "Unbounded", sans-serif; color: var(--ink);
  text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.chip.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
main { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
main.with-bar { padding-bottom: 104px; }

.card { background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card.flat { padding: 4px 16px; gap: 0; }
.hero { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.hero p { color: #C9CED8; }
.muted { color: var(--ink-3); font-size: 14px; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.fill { flex: 1; min-width: 0; }
.right { margin-left: auto; text-align: right; }
.cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px 16px;
  border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn:active { background: var(--accent-dark); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn.slim { min-height: 40px; width: auto; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; }

label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 16px; font-weight: 500; outline: none; -webkit-appearance: none; appearance: none; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.code { text-align: center; font: 600 26px/1 "Unbounded", sans-serif; letter-spacing: .3em; }
textarea { min-height: 76px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }

.note { border-radius: 14px; padding: 12px 14px; font-size: 14px; background: var(--soft); color: var(--ink-2); }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.bad { background: var(--bad-bg); color: var(--bad); }

.steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: step; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }

.tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tariff { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; text-align: left; color: var(--ink); text-decoration: none; }
.tariff.on { border-color: var(--accent); background: var(--accent-soft); }
.tariff b { font: 600 20px/1.2 "Unbounded", sans-serif; }
.tariff .per { font-size: 13px; color: var(--ink-3); }

.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.icons .cell { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px;
  line-height: 1.25; color: var(--ink-2); min-width: 0; }
.icons .cell span { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--soft); object-fit: cover; }
.icon.big { width: 64px; height: 64px; border-radius: 15px; }
.icon.letter { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: var(--ink-3); }

.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--soft); background: none;
  width: 100%; text-align: left; }
.item:last-child { border-bottom: 0; }
.item .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 15px; font-weight: 700; }
.item.on .mark { background: var(--accent); border-color: var(--accent); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 700; }
.badge.wait { background: var(--warn-bg); color: var(--warn-ink); }
.badge.off { background: var(--soft); color: var(--ink-3); }
.group { margin: 12px 0 2px; font-weight: 700; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(243, 244, 246, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar > div { max-width: 528px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.progress { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }

details { border-bottom: 1px solid var(--soft); padding: 12px 0; }
details:last-child { border-bottom: 0; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.doc { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.doc h2, .doc h3 { margin: 18px 0 8px; color: var(--ink); }
.doc p, .doc ul, .doc ol { margin: 0 0 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 0 0 6px; }
.doc mark { background: #FFE58A; color: #0E1116; padding: 0 3px; border-radius: 4px; }

footer { margin-top: 8px; padding: 18px 0 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
footer a { color: var(--ink-2); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 528px;
  padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; z-index: 10; text-align: center; }
.toast.bad { background: var(--bad); }
@media (min-width: 600px) { h1 { font-size: 30px; } .icons { grid-template-columns: repeat(6, 1fr); } }
.block { display: block; }
.pad { padding: 12px 0; }
.tabs.tight { padding-bottom: 0; }
.center { align-self: center; }
.start { align-self: flex-start; }
.plain { text-decoration: none; }
.progress i.full { width: 100%; }
