/* Марафон — лендинг. Мобильные первыми: аудитория заходит с телефона. */

:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --ink: #2b2320;
  --ink-soft: #6b5f59;
  --accent: #b8453a;
  --accent-hover: #9c3830;
  --accent-soft: #fdeeea;
  --line: #ebe0d9;
  --kaspi: #f14635;
  --telegram: #2aabee;
  --radius: 16px;
  --wrap: 720px;
}

* { box-sizing: border-box; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(30px, 7vw, 46px); }
h2 { font-size: clamp(23px, 5vw, 30px); margin-bottom: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 16px; }

/* ─── Первый экран ─── */

.hero {
  background: linear-gradient(170deg, #fdf3ef 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.lead { font-size: clamp(17px, 2.4vw, 19px); color: var(--ink-soft); max-width: 540px; margin: 0 auto 32px; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  border: 0;
  border-radius: 100px;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cta:hover { background: var(--accent-hover); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.cta-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* ─── Секции ─── */

.section { padding: 48px 20px; }

.pains { list-style: none; padding: 0; margin: 0 0 20px; }
.pains li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.pains li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.pains-note { font-weight: 500; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.dishes-intro { color: var(--ink-soft); }

.dishes {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .dishes { grid-template-columns: 1fr 1fr; } }

.dishes li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 46px;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.steps strong { color: var(--ink); }

.price-block { text-align: center; }
.price { font-size: 44px; font-weight: 700; margin: 0 0 6px; }
.price-note { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
summary { cursor: pointer; font-weight: 600; list-style-position: inside; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

footer { padding: 32px 20px 48px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ─── Окно оплаты ─── */

.modal {
  position: fixed; inset: 0;
  background: rgba(30, 22, 18, 0.55);
  display: grid; place-items: center;
  padding: 20px;
  z-index: 100;
}
.modal[hidden] { display: none; }

.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  padding: 36px 26px 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0;
  font-size: 30px; line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.kaspi-btn, .tg-btn {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 16px;
  border-radius: 100px;
  margin: 0 0 18px;
}
.kaspi-btn { background: var(--kaspi); }
.tg-btn { background: var(--telegram); margin-top: 22px; }

.qr-hint, .save-hint { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }

.qr { display: grid; place-items: center; }
.qr svg { width: 100%; max-width: 260px; height: auto; border: 1px solid var(--line); border-radius: 12px; }

.timer { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }
.await { font-size: 14px; color: var(--accent); margin: 6px 0 0; }

.spinner {
  width: 34px; height: 34px;
  margin: 22px auto 4px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
