:root {
  --bg: #f6f7fc;
  --card: #ffffff;
  --text: #16172b;
  --muted: #5d6178;
  --line: #e4e6f0;
  --accent: #4f46e5;
  --accent-2: #7c6cff;
  --accent-soft: #eceafd;
  --good: #16a34a;
  --good-soft: #e3f6ea;
  --bad: #dc2626;
  --bad-soft: #fdeaea;
  --warn-soft: #fdf1df;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e1c;
    --card: #181a2e;
    --text: #eceef8;
    --muted: #9aa0bd;
    --line: #2b2d47;
    --accent: #8b85ff;
    --accent-2: #a99dff;
    --accent-soft: #26255a;
    --good: #34d27a;
    --good-soft: #163626;
    --bad: #f87171;
    --bad-soft: #3d1c22;
    --warn-soft: #3a2d12;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main, .top, footer { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .1s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn.big { padding: 15px 26px; font-size: 18px; border-radius: 14px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent); }
.btn.primary:hover { box-shadow: 0 12px 30px -8px var(--accent); }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { border: 1px solid var(--line); background: var(--card); }

/* ---- hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.hero-art { position: relative; min-height: 420px; }
.pc { position: absolute; left: 0; top: 30px; width: 88%; }
.pc-screen {
  aspect-ratio: 16 / 10; border-radius: 14px; border: 8px solid #23243a; color: #fff; text-align: center;
  background: linear-gradient(135deg, #0f1020, #231f5c); display: flex; flex-direction: column; justify-content: center;
  padding: 16px 34% 16px 16px; box-shadow: 0 30px 60px -30px rgba(30, 27, 90, .6);
}
.pc-stand { width: 26%; height: 34px; margin: 0 auto; background: linear-gradient(#2c2d45, #1d1e30); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.lock-icon { font-size: clamp(26px, 3.4vw, 38px); }
.lock-title { font-weight: 700; font-size: clamp(14px, 1.9vw, 21px); margin-top: 4px; }
.lock-sub { color: #a5a8c8; font-size: clamp(11px, 1.2vw, 13px); margin-top: 6px; }
.lock-btns { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.lock-btns span { background: rgba(255, 255, 255, .16); border-radius: 8px; padding: 5px 10px; font-size: clamp(10px, 1.1vw, 12px); font-weight: 600; }

.phone {
  position: absolute; right: 0; bottom: 0; width: 46%; min-width: 210px; max-width: 250px;
  background: var(--bg); border: 9px solid #16172b; border-radius: 34px; padding: 30px 10px 14px;
  box-shadow: 0 30px 60px -20px rgba(22, 23, 43, .45);
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; background: #16172b; border-radius: 10px; }
.phone-req { background: var(--warn-soft); border-radius: 14px; padding: 10px 12px; font-size: 12px; margin-bottom: 8px; }
.phone-req b { display: block; }
.phone-req i { display: block; color: var(--muted); margin: 2px 0 8px; }
.phone-req .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-req .row span { text-align: center; border-radius: 8px; padding: 6px 4px; font-weight: 600; font-size: 11px; }
.good { background: var(--good-soft); color: var(--good); }
.bad { background: var(--bad-soft); color: var(--bad); }
.phone-card { background: var(--card); border-radius: 14px; padding: 12px; }
.pc-name { font-weight: 700; font-size: 14px; }
.pc-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.pc-balance { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.pc-small { font-size: 11px; color: var(--muted); }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.row4 span { background: var(--accent-soft); color: var(--accent); text-align: center; border-radius: 8px; padding: 6px 0; font-size: 11px; font-weight: 700; }

/* ---- sections */
section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0 0 28px; }
.steps, .features, .faq { padding: 56px 0; border-top: 1px solid var(--line); }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border-radius: 20px; padding: 26px; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
}
.steps h3, .f h3 { font-size: 19px; margin: 14px 0 8px; }
.steps p, .f p { margin: 0; color: var(--muted); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.f { background: var(--card); border-radius: 18px; padding: 22px; }
.f > span { font-size: 28px; }
.f h3 { margin-top: 8px; font-size: 17px; }
.f p { font-size: 15px; }

.faq details { background: var(--card); border-radius: 16px; padding: 4px 22px; margin-bottom: 10px; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.bottom-cta { text-align: center; padding: 64px 0 72px; border-top: 1px solid var(--line); }
.bottom-cta .cta { justify-content: center; }
footer { color: var(--muted); font-size: 14px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  /* на узких экранах иллюстрация в обычном потоке: ПК, под ним телефон чуть внахлёст на подставку */
  .hero-art { min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .pc { position: relative; top: 0; width: 100%; }
  .pc-screen { padding: 16px; }
  .phone { position: relative; margin: -24px 0 0 auto; width: 60%; max-width: 260px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  main, .top, footer { padding-left: 16px; padding-right: 16px; }
  .lead { font-size: 17px; }
  .cta .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .phone { width: 70%; }
}
