:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #111827;
  --muted: #687385;
  --line: rgba(17, 24, 39, 0.1);
  --brand: #2563eb;
  --brand-dark: #1748b5;
  --accent: #0f766e;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(247, 249, 252, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.topbar__nav,
.topbar__phone {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.topbar__nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topbar__phone {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.compact {
  padding: 66px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 42px;
}

.hero__content h1,
.section-head h2,
.check-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.benefits span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #2f3a4a;
  font-size: 14px;
  font-weight: 800;
}

.lead-card,
.check-form,
.final-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-card {
  padding: 24px;
}

.lead-card__head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.lead-card__head strong {
  font-size: 24px;
}

.lead-card__head span,
.form-note,
.section-head p,
.check-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field span {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fbfdff;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
}

.field--large input {
  min-height: 68px;
  font-size: 20px;
}

.field input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button--primary {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.button--ghost {
  width: fit-content;
  border: 1px solid var(--line);
  background: #ffffff;
}

.button--wide {
  min-height: 66px;
  font-size: 18px;
}

.form-note {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
}

.form-note.is-error {
  color: var(--danger);
}

.form-note.is-success {
  color: var(--accent);
  font-weight: 800;
}

.suggestions {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.14);
}

.suggestions button {
  width: 100%;
  border: 0;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestions button:hover {
  background: var(--surface-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-head--row p {
  max-width: 370px;
}

.section-head h2,
.check-copy h2,
.final-cta h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.reason-grid,
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.reason-grid article,
.tariff-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.reason-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.reason-grid strong {
  font-size: 18px;
}

.reason-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.tariff-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tariff-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 24px;
}

.tariff-card--accent {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
}

.tariff-card h3 {
  margin: 22px 0 12px;
  font-size: 26px;
}

.price {
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 16px;
}

.tariff-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.45;
}

.tariff-card .button {
  margin-top: auto;
}

.check-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 48px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.check-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.check-form {
  padding: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.final-form {
  display: grid;
  grid-template-columns: 1fr 0.7fr auto;
  gap: 12px;
  align-items: start;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.final-form .button {
  width: auto;
  margin-top: 21px;
}

.final-form .form-note {
  grid-column: 1 / -1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 920px) {
  .topbar__nav {
    display: none;
  }

  .hero,
  .check-section,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 34px;
  }

  .reason-grid,
  .tariff-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .section-head--row {
    display: block;
  }

  .final-form {
    grid-template-columns: 1fr;
  }

  .final-form .button {
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .topbar__phone {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 48px 0;
  }

  .hero__content h1 {
    font-size: 40px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .lead-card,
  .check-form,
  .final-cta,
  .check-section {
    padding: 18px;
  }

  .reason-grid,
  .tariff-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .tariff-card {
    min-height: 0;
  }

  .footer {
    display: grid;
    width: min(100% - 24px, 1180px);
  }
}
