:root {
  --bg: #fbf7f3; --ink: #2b2523; --muted: #7a6f6a; --accent: #c8623b;
  --accent-dark: #a94f2f; --card: #fff; --line: #eadfd7; --soft: #f3e8e0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt-s { margin-top: .75rem; }
.mt-l { margin-top: 1.5rem; }
.centered { margin: 0 auto; }
.narrow { max-width: 44rem; }

.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  padding: .85rem 1.25rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }
.btn-block { display: block; width: 100%; }
#buy { margin-top: 1rem; }

/* первый экран */
.hero { padding-top: 2.5rem; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero .lead { font-size: 1.2rem; margin-bottom: 1.5rem; }
.hero .actions { display: grid; gap: .75rem; }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--accent); margin-bottom: 1rem; }
.phone { width: min(280px, 70vw); margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 36px; border: 10px solid var(--ink);
  background: #000; overflow: hidden; box-shadow: 0 20px 40px rgba(43, 37, 35, .18); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* карточки */
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 700; margin-bottom: .5rem; }
.steps { counter-reset: step; }
.soon { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--soft);
  border-radius: 999px; padding: .1rem .6rem; margin-left: .4rem; vertical-align: middle; }

/* оплата */
.pay-card { max-width: 30rem; }
.periods { display: flex; gap: .5rem; margin-bottom: .75rem; }
.periods button { flex: 1; font: inherit; font-weight: 600; padding: .55rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.periods button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--soft); }
.periods .best { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--accent);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem;
  margin-left: .35rem; vertical-align: middle; }
.currencies { display: flex; gap: .5rem; margin-bottom: 1rem; }
.currencies button { flex: 1; font: inherit; padding: .5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.currencies button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.price { font-size: 2.2rem; font-weight: 700; margin: 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
label { display: block; font-size: .95rem; color: var(--muted); margin: 1rem 0 .25rem; }
input { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.status { margin: .75rem 0 0; min-height: 1.5rem; color: var(--accent-dark); }

/* вопросы */
details { border-top: 1px solid var(--line); padding: .75rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .5rem 0 0; }

/* подвал */
footer { padding: 2rem 0 3rem; font-size: .9rem; color: var(--muted); }
footer address { font-style: normal; white-space: pre-line; margin-bottom: 1rem; }
footer nav a { margin-right: 1rem; }
.paylogos { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; align-items: center; }
.paylogos img { height: 28px; width: auto; }

[hidden] { display: none !important; }

/* планшет: две колонки в первом экране, кнопки не ломаются, телефон поменьше */
@media (min-width: 720px) {
  h1 { font-size: 2.4rem; }
  .hero .wrap { grid-template-columns: 1.2fr 1fr; }
  .hero .actions { max-width: 22rem; }
  .hero .actions .btn { white-space: nowrap; }
  .phone { width: min(240px, 34vw); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ПК: кнопки в ряд, четыре карточки подписки в ряд */
@media (min-width: 1024px) {
  h1 { font-size: 2.8rem; }
  .hero .actions { max-width: none; grid-template-columns: auto auto; justify-content: start; }
  .phone { width: 300px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
