:root {
  --bg: #f6f4f2;
  --surface: #ffffff;
  --band: #efeae6;
  --text: #1c1622;
  --text-2: #5d5566;
  --line: #e4ded9;
  --accent: #e5553b;
  --accent-hover: #cf4329;
  --accent-soft: #fff1ed;
  --grad: linear-gradient(135deg, #ff8a5c, #e5553b 55%, #b8326e);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121016;
    --surface: #1c1922;
    --band: #18151d;
    --text: #f3eff6;
    --text-2: #b4abbd;
    --line: #2d2834;
    --accent-soft: #3a211c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---- top bar ---- */

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 9px; }
.top-nav { display: flex; gap: 20px; margin-left: auto; }
.top-nav a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; }
.top-nav a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.langs button.active { background: var(--accent-soft); color: var(--accent); }

/* ---- hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}
.kicker { color: var(--accent); font-weight: 700; margin: 0 0 10px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--text-2); margin: 0 0 28px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(229, 85, 59, 0.3); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); }

.hero-art { display: grid; justify-items: center; gap: 22px; }
.hero-art img { width: min(220px, 60vw); height: auto; border-radius: 52px; box-shadow: 0 24px 60px rgba(184, 50, 110, 0.28); }
.steps-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.steps-mini li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}
.steps-mini li + li::before { content: "→ "; color: var(--accent); }

/* ---- sections ---- */

section, section.wrap { padding-bottom: 64px; }
.band { background: var(--band); padding: 56px 0; margin-bottom: 64px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 24px; }
h3 { font-size: 17px; margin: 0 0 6px; }

.how { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 6px; }
.how li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.how span { color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.features p { margin: 0; color: var(--text-2); }

.need { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.smartscreen { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px 22px; }
.smartscreen p { margin: 0; color: var(--text-2); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--text-2); }

.final { display: grid; justify-items: center; text-align: center; gap: 4px; }
.final img { border-radius: 18px; margin-bottom: 8px; }

.foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

/* ---- phones ---- */

@media (max-width: 800px) {
  .top { flex-wrap: wrap; gap: 12px; }
  .top-nav { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .langs { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 28px; }
  .hero-art { order: -1; }
  .hero-art img { width: 140px; border-radius: 34px; }
  .how, .features, .need { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
