:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #17243a;
  --muted: #586575;
  --line: #dde4ee;
  --brand: #1d5fb8;
  --brand-dark: #164a91;
  --error: #b3261e;
  --ok-bg: #e8f3ec;
  --ok-line: #b6d9c4;
  --ok-ink: #1c5a34;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, dl, dd, ol, ul {
  margin: 0;
}

img, input, textarea, button {
  font: inherit;
}

.wrap {
  max-width: 1080px;
  padding: 0 24px;
  margin: 0 auto;
}

.wrap--narrow {
  max-width: 720px;
}

/* ---------- Шапка ---------- */

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero__title {
  max-width: 780px;
  margin-top: 14px;
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero__lead {
  max-width: 720px;
  margin-top: 20px;
  font-size: 19px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.fact dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--wide {
  width: 100%;
}

.form .btn--wide {
  margin-top: 24px;
}

.btn:focus-visible,
.field__input:focus-visible {
  outline: 3px solid rgba(29, 95, 184, 0.35);
  outline-offset: 2px;
}

/* ---------- Секции ---------- */

.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-size: 32px;
  line-height: 1.25;
}

.section__lead {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
}

/* ---------- Шаги услуги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e7eefb;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
}

.step__title {
  margin-top: 14px;
  font-size: 19px;
}

.step__text {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

.note {
  margin-top: 32px;
  padding: 24px 26px;
  background: #eef3fa;
  border-left: 4px solid var(--brand);
  border-radius: 4px var(--radius) var(--radius) 4px;
}

.note__title {
  font-size: 18px;
}

.note__text {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Преимущества ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card__title {
  font-size: 19px;
  line-height: 1.35;
}

.card__text {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Форма ---------- */

.form {
  margin-top: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field + .field {
  margin-top: 20px;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.field__req {
  color: var(--error);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}

.field__input--area {
  min-height: 128px;
  resize: vertical;
}

.field__input::placeholder {
  color: #8c97a6;
}

.field__error {
  margin-top: 6px;
  font-size: 14px;
  color: var(--error);
}

.field.is-invalid .field__input {
  border-color: var(--error);
  background: #fdf5f5;
}

.form__hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Подтверждение ---------- */

.confirm {
  margin-top: 24px;
  padding: 24px 26px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--radius);
  color: var(--ok-ink);
}

.confirm__title {
  font-size: 19px;
}

.confirm__text {
  margin-top: 8px;
  font-size: 16px;
}

.confirm__list {
  margin: 14px 0 0;
  font-size: 16px;
}

.confirm__list div {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}

.confirm__list dt {
  min-width: 96px;
  font-weight: 600;
}

.confirm__list dd {
  word-break: break-word;
}

/* ---------- Подвал ---------- */

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}

.footer__text {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Адаптация под телефон ---------- */

@media (max-width: 720px) {
  .hero {
    padding: 44px 0 36px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__facts {
    gap: 14px 28px;
    margin-top: 32px;
    padding-top: 22px;
  }

  .section {
    padding: 44px 0;
  }

  .section__title {
    font-size: 26px;
  }
}

@media (max-width: 430px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero__title {
    font-size: 27px;
    line-height: 1.22;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__facts {
    display: grid;
    gap: 14px;
    margin-top: 26px;
  }

  .section {
    padding: 36px 0;
  }

  .section__title {
    font-size: 23px;
  }

  .step,
  .card {
    padding: 20px;
  }

  .form {
    padding: 20px 16px;
  }

  .confirm {
    padding: 20px 16px;
  }

  .confirm__list div {
    display: block;
  }

  .confirm__list dt {
    min-width: 0;
  }
}
