:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5d6877;
  --accent: #3a7bd5;
  --accent-dark: #2a63b3;
  --border: #dfe5ee;
  --ok: #2a8a3e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent-dark); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* верхняя полоса */
.top {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.top nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--accent-dark); }

/* первый экран */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 14px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 0 26px; }
.hero-row { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.hero-row > div:first-child { flex: 1 1 420px; }
.hero-row .shot { flex: 0 1 360px; }
.hero-row .shot img { max-height: 470px; object-fit: cover; object-position: top; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); padding: 12px 24px; }
.btn.ghost:hover { background: #eaf1fb; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 15px; margin-top: 12px; }

section { padding: 34px 0; }
section h2 { font-size: 28px; margin: 0 0 18px; }

/* карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.product { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: inherit; }
.product img { width: 72px; height: 72px; border-radius: 16px; flex: 0 0 auto; }
.product:hover { border-color: var(--accent); box-shadow: 0 6px 22px rgba(58,123,213,.15); }
.soon { opacity: .75; border-style: dashed; }
.tag { display: inline-block; font-size: 13px; background: #eaf1fb; color: var(--accent-dark); padding: 2px 10px; border-radius: 20px; margin-top: 10px; }

/* скриншоты */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; align-items: start; }
.shots figure { margin: 0; }
.shots img, .shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(20, 35, 60, .22);
  display: block;
}
.shots figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; text-align: center; }

/* шаги */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px 16px 64px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.price {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 26px;
  max-width: 560px;
}
.price .sum { font-size: 38px; font-weight: 700; }
.price ul { margin: 12px 0 18px; padding-left: 20px; color: var(--muted); }
.todo { background: #fff4c7; padding: 0 5px; border-radius: 4px; }

details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--border); background: var(--card); padding: 26px 0; color: var(--muted); font-size: 15px; margin-top: 30px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 18px; }
}
