:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #102033;
  --muted: #627083;
  --line: #dfe5ec;
  --primary: #1f5fae;
  --primary-dark: #16487f;
  --dark: #0d1b2a;
  --dark-soft: #13263b;
  --success: #18794e;
  --danger: #b42318;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 229, 236, 0.8);
}
.header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
}
.logo__text { letter-spacing: -0.02em; }
.header__link { color: var(--primary); font-weight: 600; }
.header__contacts { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__phone { font-weight: 700; white-space: nowrap; }
.header__messengers { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 14px; font-weight: 600; white-space: nowrap; }
.header__contacts a:hover { color: var(--primary-dark); }

.hero {
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at top right, rgba(31, 95, 174, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 72px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow--light { color: #89b8f0; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; letter-spacing: -0.035em; }
h1 { margin-bottom: 24px; font-size: clamp(44px, 6vw, 78px); max-width: 820px; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 52px); }
h3 { margin-bottom: 10px; font-size: 21px; }
p { margin-top: 0; }
.hero__lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 20px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 18px; color: var(--muted); font-size: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.button--primary { color: #fff; background: var(--primary); }
.button--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.button--secondary { background: #fff; border-color: var(--line); }
.button--secondary:hover { border-color: #b8c2ce; }
.button--full { width: 100%; }

.hero__card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.hero__card-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; }
.hero__card-item + .hero__card-item { border-top: 1px solid var(--line); }
.hero__card-number { color: var(--primary); font-weight: 700; }
.hero__card-item strong { display: block; margin-bottom: 5px; }
.hero__card-item p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.section { padding: 88px 0; }
.section--muted { background: #edf1f5; }
.section--dark { color: #fff; background: var(--dark); }
.section__heading { max-width: 760px; margin-bottom: 42px; }
.section__heading > p:last-child { color: var(--muted); }

.cards { display: grid; gap: 20px; }
.cards--four { grid-template-columns: repeat(4, 1fr); }
.card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card__index { display: inline-block; margin-bottom: 44px; color: var(--primary); font-weight: 700; }
.card p { color: var(--muted); margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.step__number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
}
.step p { margin-bottom: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: center; }
.split__content > p { color: var(--muted); font-size: 18px; }
.checklist { margin: 28px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.notice { padding: 34px; border-radius: var(--radius); background: var(--dark); color: #fff; }
.notice__title { margin-bottom: 12px; color: #89b8f0; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.notice p:last-child { margin-bottom: 0; color: #c6d2df; }

.form-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.form-layout__content p:last-child { color: #c6d2df; font-size: 18px; }
.form {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; margin-bottom: 16px; }
.form label > span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--text);
}
.form input:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 174, 0.12); }
.form textarea { resize: vertical; }
.checkbox { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.checkbox span { margin: 0 !important; color: var(--muted); font-weight: 400 !important; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.form__status { min-height: 24px; margin: 12px 0 0; font-size: 14px; }
.form__status--success { color: var(--success); }
.form__status--error { color: var(--danger); }

.footer { padding: 46px 0 24px; background: #08131f; color: #d7e1eb; }
.footer__inner { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; justify-content: space-between; gap: 40px; }
.logo--footer { color: #fff; }
.footer__copy { max-width: 480px; margin: 14px 0 0; color: #8fa0b2; }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__contacts h2 { margin: 0 0 4px; color: #fff; font-size: 18px; letter-spacing: normal; }
.footer__contact-details { display: flex; flex-direction: column; gap: 6px; }
.footer__contact-details span { color: #8fa0b2; }
.footer__contacts a:hover { color: #fff; }
.footer__messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__messenger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #33506d;
  border-radius: 10px;
  color: #fff;
  background: #13263b;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}
.footer__messenger-button:hover { border-color: #5f8fbe; background: #19314a; }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #1d2b3a;
  color: #7f91a4;
  font-size: 13px;
}
.footer__bottom p { margin-bottom: 0; }

.legal { padding: 70px 0; }
.legal__card { max-width: 900px; padding: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.legal__card h1 { font-size: clamp(34px, 5vw, 54px); }
.legal__card h2 { margin-top: 34px; font-size: 26px; }
.legal__card p, .legal__card li { color: var(--muted); }

@media (max-width: 980px) {
  .hero__grid, .split, .form-layout { grid-template-columns: 1fr; gap: 42px; }
  .cards--four { grid-template-columns: repeat(2, 1fr); }
  .header__inner { flex-wrap: wrap; padding: 12px 0; }
  .header__contacts { order: 3; width: 100%; justify-content: space-between; margin-left: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__links { align-items: flex-start; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .header__inner { gap: 10px 14px; }
  .header__link { font-size: 13px; }
  .header__contacts { gap: 10px; }
  .header__phone { font-size: 14px; }
  .header__messengers { gap: 6px; font-size: 13px; }
  .hero { padding: 62px 0 52px; }
  h1 { font-size: 43px; }
  h2 { font-size: 34px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 64px 0; }
  .cards--four, .steps, .form__row { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .card__index { margin-bottom: 28px; }
  .form { padding: 22px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .footer__links { align-items: flex-start; }
  .legal__card { padding: 28px; }
}
