/* Have CMS — секции страниц: герой, шаги, карточки модулей, FAQ, калькулятор, смета. */

/* ── Секции с номером на полях ────────────────────────────────────────── */

.section { border-top: 1px solid var(--line); padding: 72px 0 0; margin-top: 72px; }
.section__head { display: flex; gap: 20px; align-items: baseline; margin-bottom: 44px; }
.section__no {
  font-size: 13px; font-weight: 500; color: var(--accent);
  letter-spacing: .04em; min-width: 30px;
}
.section__title { font-size: clamp(26px, 3.4vw, 40px); }
.section__lead { color: var(--muted); max-width: 60ch; margin: 14px 0 0; font-size: 17px; }

/* ── Герой ────────────────────────────────────────────────────────────── */

.hero { padding: 92px 0 8px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
.hero__eyebrow::before {
  content: ''; width: 34px; height: 1px; background: var(--accent);
}

.hero__title {
  font-size: clamp(38px, 7.2vw, 84px);
  max-width: 16ch;
  letter-spacing: -0.04em;
}
.hero__title em { font-style: normal; color: var(--accent); }

.hero__sub { margin: 28px 0 0; max-width: 54ch; font-size: clamp(17px, 1.9vw, 21px); color: var(--muted); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0 48px;
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero__fact { padding: 6px 0; }
.hero__fact b { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.03em; }
.hero__fact span { font-size: 14px; color: var(--muted); }

/* ── Шаги ─────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 28px 24px 34px; }
.step__no { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .04em; }
.step h3 { margin: 18px 0 10px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Карточки модулей ─────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 21px; margin-top: 4px; }
.card .price { margin: auto 0 0; padding-top: 16px; font-weight: 500; }
.card p { margin: 0; font-size: 15px; }

.badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.badge--available { border-color: var(--accent); color: var(--accent); }
.badge--beta { border-color: var(--fg); color: var(--fg); }

/* ── Страница модуля ──────────────────────────────────────────────────── */

.module__head { padding: 64px 0 0; }
.module__title { font-size: clamp(32px, 5vw, 58px); margin: 18px 0 0; }
.module__tagline { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin: 18px 0 0; max-width: 48ch; }
.module__price { margin-top: 32px; font-size: 22px; font-weight: 500; }
.module__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.module__includes li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.module__includes li::before { content: ''; position: absolute; left: 0; top: 21px; width: 8px; height: 1px; background: var(--accent); }

/* ── Отличия ──────────────────────────────────────────────────────────── */

.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.diff h3 { font-size: 20px; margin-bottom: 10px; }
.diff p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  font-size: 19px; font-weight: 500; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* ── Финальный призыв ─────────────────────────────────────────────────── */

.cta { border-top: 1px solid var(--line); margin-top: 72px; padding: 72px 0 0; }
.cta h2 { font-size: clamp(28px, 4.4vw, 52px); max-width: 18ch; }
.cta .btn { margin-top: 32px; }

/* ── Калькулятор и смета (задачи 5 и 6) ───────────────────────────────── */

.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 56px; }
/* Группа — это подпись и тонкая линия снизу, без рамок. Раньше здесь был fieldset,
   но его собственная рамка и поведение legend мешали больше, чем помогали. */
.calc__group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.calc__group > .calc__label {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.calc__options { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__opt { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 15px; transition: border-color .18s ease; }
.calc__opt:hover { border-color: var(--fg); }
.calc__opt input { accent-color: var(--accent); }
.calc__opt--off { opacity: .45; cursor: not-allowed; }
.calc__pages { display: flex; align-items: center; gap: 16px; }
.calc__pages input { flex: 1; accent-color: var(--accent); }
.calc__pages output { font-weight: 500; min-width: 3ch; }

.calc__result, .quote { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 28px; }
.quote__label { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.quote__sum { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.quote__lines { margin: 18px 0 0; font-size: 15px; }
.quote__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.quote__lines li b { color: var(--fg); font-weight: 500; }
.quote__monthly { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.quote__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.quote__link { margin-top: 16px; font-size: 15px; color: var(--muted); word-break: break-all; }

/* ── Юридические тексты ───────────────────────────────────────────────── */

.doc { max-width: 74ch; padding-top: 56px; }
.doc h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 40px 0 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc li { padding: 4px 0 4px 20px; position: relative; color: var(--muted); }
.doc li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 1px; background: var(--accent); }
.doc p { color: var(--muted); }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .diffs { grid-template-columns: 1fr; gap: 28px; }
  .calc, .module__body { grid-template-columns: 1fr; gap: 32px; }
  .calc__result, .quote { position: static; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero__meta { gap: 0 28px; }
  .section { padding-top: 48px; margin-top: 48px; }
  .section__head { flex-direction: column; gap: 8px; margin-bottom: 28px; }
}

/* Поля формы заявки */
.field { display: block; margin-bottom: 12px; }
.field input {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s ease;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { border-color: var(--accent); outline: none; }
