/* Лендинг Billy. Те же токены, что и в приложении: тёплая бумага, тил, статусы. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #14161a;
  --muted: #6b7280;
  --line: #e7e5e0;
  --brand: #0b3b3c;
  --accent: #f2b705;
  --ok: #2e9e5b;
  --over: #d64545;
  --radius: 20px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0f10; --surface: #15191b; --ink: #f2f4f3;
    --muted: #8b959b; --line: #232a2d; --brand: #5ee6c4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Навигация */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  max-width: var(--maxw); margin: 0 auto;
  backdrop-filter: saturate(160%) blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brand); color: var(--bg);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.nav .btn { height: 40px; padding: 0 16px; }

/* Первый экран */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; font-weight: 700; }
.accent { color: var(--brand); }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Макет телефона */
.phone {
  justify-self: center;
  width: 330px; padding: 12px;
  border: 1px solid var(--line); border-radius: 44px; background: var(--surface);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .55);
}
.phone-screen {
  border-radius: 34px; padding: 22px 18px; background: var(--bg);
  font-variant-numeric: tabular-nums;
}
.screen-top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.screen-top b { display: block; font-size: 14px; }
.screen-top small { color: var(--muted); font-size: 11px; }
.amount { text-align: center; font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.amount-sub { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }
.chip {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.budget {
  margin: 22px 0; padding: 14px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface);
}
.budget-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.bar { position: relative; height: 9px; margin: 10px 0 8px; border-radius: 6px; background: var(--line); }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--ok); }
.bar u { position: absolute; top: -3px; width: 2px; height: 15px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.pace { font-size: 12px; color: var(--ok); font-weight: 600; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.rows li b { margin-left: auto; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.due {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.due small { display: block; color: var(--muted); font-size: 11px; }
.due-sum { font-size: 20px; color: var(--over); }

/* Полоса цифр */
.strip {
  max-width: var(--maxw); margin: 40px auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.strip div {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.strip b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.strip span { font-size: 13px; color: var(--muted); }

/* Секции */
section.how, section.split, section.regions, section.faq, section.final {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px;
}
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.cards article {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.num { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.cards h3 { margin: 12px 0 8px; font-size: 19px; }
.cards p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split p { margin-top: 14px; color: var(--muted); }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--line); font-size: 15px; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  color: var(--ok); font-weight: 700;
}

.muted { color: var(--muted); margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips span {
  padding: 9px 16px; border-radius: 30px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px;
}
.chips .more { color: var(--muted); border-style: dashed; }

.faq details {
  border-top: 1px solid var(--line); padding: 18px 0;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 10px; color: var(--muted); max-width: 62ch; }

.final { text-align: center; }
.final p { margin-top: 12px; color: var(--muted); }
.final .cta { justify-content: center; }

footer {
  max-width: var(--maxw); margin: 40px auto 0; padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  color: var(--muted); font-size: 13px;
}
footer div { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .phone { order: -1; width: 300px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cards, .split { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
}
