/* Salepost /pay: тёмная тема как у лендинга. Mobile-first (390px), затем десктоп. */
:root {
  --bg: #000;
  --card: #161616;
  --card2: #252525;
  --line: #2f2f2f;
  --text: #fff;
  --muted: #9a9a9a;
  --accent: radial-gradient(circle at 50% 0%, #2198ff 0%, #0d84fb 100%);
  --blue: #1f94ff;
  --err: #ff5b5b;
  --ok: #3ddc84;
  --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; min-height: 100vh;
  display: flex; flex-direction: column;
  background-image: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(33,152,255,.16), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Jost', 'Inter', sans-serif; font-weight: 700; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* шапка */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; }
.logo img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 10px; }
.nav a {
  color: #fff; font-size: 15px; font-weight: 600; padding: 10px 18px; line-height: 1.2;
  border: 1.5px solid #fff; border-radius: 12px; background: #262626;
  transition: background .15s, color .15s, border-color .15s;
}
.nav a:hover { text-decoration: none; background: #fff; color: #000; }
.nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
main { flex: 1; padding: 8px 0 32px; }
.head { text-align: center; margin: 12px 0 20px; }
.head p { color: var(--muted); margin: 8px 0 0; }

/* карточка */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card, .card + section, section + .card { margin-top: 14px; }

/* форма */
label.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.lbl small { color: var(--muted); font-weight: 400; }
.field { margin-bottom: 16px; }
.inp {
  width: 100%; height: 56px; background: var(--card2); color: var(--text);
  border: 1.5px solid transparent; border-radius: 14px; padding: 0 16px;
  font: inherit; font-size: 18px; outline: none; -webkit-appearance: none; appearance: none;
}
.inp::placeholder { color: #6d6d6d; }
.inp:focus { border-color: var(--blue); }
.inp.bad { border-color: var(--err); }
.sum { position: relative; }
.sum .inp { padding-right: 48px; font-size: 24px; font-weight: 700; font-family: 'Jost', 'Inter', sans-serif; }
.sum .cur { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); pointer-events: none; }
.err { color: var(--err); font-size: 13px; margin-top: 6px; min-height: 0; display: none; }
.err.on { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  flex: 1 1 calc(25% - 8px); min-width: 70px; height: 44px; border-radius: 12px; cursor: pointer;
  background: var(--card2); color: var(--text); border: 1.5px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600;
}
.chip:hover { border-color: #444; }
.chip.on { border-color: var(--blue); background: rgba(33,152,255,.14); }

.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cfcfcf; cursor: pointer; margin: 4px 0 4px; }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree .box {
  flex: 0 0 24px; height: 24px; border-radius: 7px; background: var(--card2); border: 1.5px solid #4a4a4a;
  display: grid; place-items: center; margin-top: 1px;
}
.agree .box svg { width: 14px; height: 14px; opacity: 0; }
.agree input:checked + .box { background: var(--blue); border-color: var(--blue); }
.agree input:checked + .box svg { opacity: 1; }
.agree input:focus-visible + .box { outline: 2px solid #fff; outline-offset: 2px; }
.agree.bad .box { border-color: var(--err); }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; margin-top: 16px;
  border: 0; border-radius: 16px; background: var(--accent); color: #fff; cursor: pointer;
  font-family: 'Jost', 'Inter', sans-serif; font-size: 20px; font-weight: 700; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.ghost { background: var(--card2); }

/* что оплачивается */
.what { display: grid; gap: 10px; }
.what .row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.what .row span:first-child { color: var(--muted); flex: 0 0 auto; }
.what .row span:last-child { text-align: right; }
.what .name { font-size: 16px; font-weight: 600; }
.pm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pm span {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  background: var(--card2); border-radius: 10px; font-size: 13px; font-weight: 600; color: #ddd;
}
.pm svg { width: 16px; height: 16px; flex: none; }
.note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* менеджеры */
.help { margin-top: 32px; }
/* на странице с формой менеджеры уходят ниже первого экрана, чтобы не отвлекать от оплаты (просьба владельца) */
#payForm ~ .help { margin-top: max(65vh, 380px); }
.help h2 { text-align: center; margin-bottom: 16px; font-size: 20px; }
.mgrs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mgrs .mgr { flex: 0 0 calc(33.333% - 6px); min-width: 0; }
.mgr {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 2px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-size: 15px;
}
.mgr:hover { text-decoration: none; background: var(--card2); }
.mgr img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 6px; }
.mgr b { font-weight: 600; }
.mgr small { color: var(--muted); font-size: 11px; line-height: 1.35; white-space: nowrap; }
/* результат */
.result { text-align: center; padding: 28px 18px; }
.ico { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; }
.ico.ok { background: rgba(61,220,132,.15); color: var(--ok); }
.ico.no { background: rgba(255,91,91,.15); color: var(--err); }
.ico svg { width: 36px; height: 36px; }
.result p { color: #cfcfcf; margin: 10px 0 0; }
.result .paid { color: var(--ok); font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.result .reason { color: var(--muted); font-size: 14px; }
.result .btns { display: grid; gap: 10px; margin-top: 20px; }
.result .btns .btn { margin-top: 0; }

/* оферта */
.doc { max-width: 820px; }
.doc h1 { text-align: center; font-size: 26px; margin: 12px 0 20px; }
.doc h2 { font-size: 19px; margin: 24px 0 8px; }
.doc p { color: #d6d6d6; font-size: 14.5px; margin: 0 0 10px; overflow-wrap: anywhere; }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 13px; color: var(--muted); }
footer .wrap { max-width: 1100px; display: grid; gap: 14px; }
footer p { margin: 0 0 3px; }
footer a { color: var(--muted); text-decoration: underline; }
.flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  .wrap { padding: 0 24px; }
  main .wrap.narrow { max-width: 600px; }
  .card { padding: 24px; }
  .mgrs .mgr { flex-basis: calc(20% - 8px); }
  .logo img { height: 46px; }
  .help { margin-left: -110px; margin-right: -110px; }
  .mgr { font-size: 16px; }
  .mgr small { font-size: 13px; }
  main .wrap.wide { max-width: 760px; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
  .flinks { text-align: right; }
}

