/* Общий стиль лендингов. Мобильный трафик первый, десктоп вторым. */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #15202b;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --brand: #0e5ad6;
  --brand-dark: #0a3f98;
  --accent: #10b981;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 36, 70, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- шапка ---------- */
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.logo { font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.logo span { color: var(--brand); }
.top-note { font-size: 13px; color: var(--muted); text-align: right; }

/* ---------- первый экран ---------- */
.hero {
  background: linear-gradient(180deg, #eaf1ff 0%, var(--bg) 100%);
  padding: 28px 0 8px;
}
.hero-grid { display: grid; gap: 20px; }
.hero h1 {
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.hero-art {
  background: radial-gradient(circle at 50% 45%, #dbe9ff 0%, rgba(219, 233, 255, 0) 70%);
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: var(--radius);
}
.hero-art img { max-height: 320px; width: auto; }
.pack-fallback {
  width: 180px;
  height: 230px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow);
}

/* форма в первом экране: человек может оставить заявку, не прокручивая */
.hero-side { display: grid; gap: 16px; }
.hero-form { padding: 18px; }
.hero-form h3 { margin: 0 0 4px; font-size: 20px; }
.hero-form .sub-note { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.trust-line {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin: 12px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 13px;
}
.trust-line li { display: flex; align-items: center; gap: 6px; }
.trust-line li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.form.is-sent { display: none; }

.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.price-note { color: var(--muted); font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- секции ---------- */
section { padding: 34px 0; }
h2 {
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.cards { display: grid; gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card .num {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #e8f0ff;
  color: var(--brand);
  font-weight: 800;
  display: grid; place-items: center;
  margin-bottom: 12px;
}

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- форма ---------- */
.order { background: #0f1b2d; color: #fff; }
.order h2 { color: #fff; }
.order .sub { color: #9fb3c8; margin: 0 0 20px; }
.form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 17px;
  font-family: inherit;
  background: #fbfcfe;
}
.field input:focus { outline: none; border-color: var(--brand); background: #fff; }
.field.err input { border-color: #e11d48; background: #fff5f7; }
.field .msg { color: #e11d48; font-size: 13px; margin-top: 6px; display: none; }
.field.err .msg { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

.done { display: none; text-align: center; padding: 10px 0; }
.done .ok {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/26px no-repeat;
}
.done h3 { margin: 0 0 8px; font-size: 22px; }
.done p { color: var(--muted); margin: 0; }
.is-done .form-body { display: none; }
.is-done .done { display: block; }

/* ---------- подвал ---------- */
footer { padding: 26px 0 96px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 8px; }
.disclaimer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

/* ---------- липкая кнопка ---------- */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky .p { font-weight: 800; white-space: nowrap; }
.sticky .btn { padding: 13px 20px; font-size: 16px; }

/* Телефон: в первый экран должны попасть заголовок, цена и поля формы.
   Длинный подзаголовок и список буллитов уезжают, их содержание всё равно
   повторяется в блоках ниже и в строке доверия под кнопкой. */
@media (max-width: 759px) {
  .hero { padding: 18px 0 4px; }
  .hero h1 { font-size: 25px; margin-bottom: 8px; }
  .hero p.lead { font-size: 16px; margin-bottom: 12px; }
  .hero .ticks { display: none; }
  .hero-art { min-height: 0; padding: 0; }
  .hero-art img { max-height: 132px; }
  .hero .price-row { margin-bottom: 10px; }
  .hero .price { font-size: 30px; }
  .hero-grid { gap: 12px; }
  .hero-side { gap: 10px; }
  .hero-form { padding: 16px; }
  .hero-form h3 { font-size: 18px; }
  .hero-form .sub-note { margin-bottom: 10px; font-size: 13px; }
  .hero-form .field label { font-size: 13px; margin-bottom: 4px; }
  .hero-form .field input { padding: 12px 14px; }
  .hero-form .form { gap: 10px; }
  .hero > .wrap > div > .btn { display: none; } /* на телефоне ведёт форма, а не кнопка */
}

@media (min-width: 760px) {
  .hero { padding: 44px 0 20px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .hero-art { order: 2; min-height: 260px; }
  .hero-side { order: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .btn { width: auto; }
  .form { padding: 28px; }
  .sticky { display: none; }
  footer { padding-bottom: 40px; }
}
