:root {
  --bg: #f7f3ee;
  --card: #fffdf9;
  --text: #2a2320;
  --muted: #6f645c;
  --line: #e6dcd2;
  --accent: #8a5a3c;
  --accent-soft: #f3e6da;
  --ok: #2f7d5b;
  --bad: #a33a3a;
  --shadow: 0 12px 40px rgba(42, 35, 32, .09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --card: #211b17;
    --text: #f4ede6;
    --muted: #b9a99c;
    --line: #3b312a;
    --accent: #d7a06f;
    --accent-soft: #33271e;
    --ok: #7fc9a5;
    --bad: #ff9c9c;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), var(--bg) 62%);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}

.mark.ok { background: var(--ok); font-size: 24px; }
.mark.bad { background: var(--bad); font-size: 24px; }

h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.widget {
  display: flex;
  justify-content: center;
  margin: 22px 0 12px;
  min-height: 48px;
}

.fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.ghost {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

form { margin: 20px 0 0; }

/* Лендинг: мобильный первым, без горизонтального скролла. */
body:has(.landing) {
  align-items: flex-start;
}

.landing {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.tagline {
  max-width: 34ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: 1.5;
}

.cta { margin: 0 0 8px; }
.cta .widget { justify-content: flex-start; margin: 0; }

.cta-label {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.feature h2,
.block h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.feature p,
.block p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.block {
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.steps {
  margin: 14px 0 12px;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.note {
  margin: 0 !important;
  font-size: 13px !important;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 6px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.foot a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.card.wide {
  max-width: 620px;
  text-align: left;
}

.card.wide h1 {
  margin-bottom: 18px;
}

.card.wide p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.card.wide .btn {
  margin-top: 6px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
