:root {
  --bg: #f5f7fb;
  --text: #101218;
  --muted: #647084;
  --line: #dfe5ee;
  --white: #ffffff;
  --blue: #1e54ff;
  --blue-dark: #163fc4;
  --dark: #101218;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --shadow: 0 28px 80px rgba(16, 18, 24, 0.12);
  --shadow-soft: 0 18px 50px rgba(16, 18, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  font-size: 20px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text strong {
  font-size: 14px;
  letter-spacing: 0.16em;
}

.logo__text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  font-weight: 800;
  transition: 0.2s ease;
}

.button--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 32px rgba(30,84,255,0.24);
}

.button--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button--dark {
  background: var(--dark);
  color: white;
}

.button--dark:hover {
  background: var(--blue);
}

.button--ghost {
  background: white;
  border: 1px solid var(--line);
}

.button--ghost:hover {
  border-color: var(--dark);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 6%, rgba(30,84,255,0.12), transparent 36%),
    var(--white);
}

.hero__grid {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 54px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--blue);
}

.hero h1,
.hero h2,
.section h2,
.dark h2,
.process h2,
.form-box h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 76px);
}

.hero h2 {
  margin-top: 10px;
  max-width: 740px;
  color: var(--blue);
  font-size: clamp(38px, 5.2vw, 66px);
}

.hero__lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #4b5567;
  font-size: 20px;
  line-height: 1.65;
}

.hero__points {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.point span {
  min-width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(30,84,255,0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.point p {
  margin: 4px 0 0;
  color: #273142;
  font-size: 17px;
  line-height: 1.45;
}

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

.hero__visual {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #e8edf5;
  box-shadow: var(--shadow);
}

.hero__visual img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
}

.hero__card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.hero__card strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__card span {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
}

.section {
  padding: 88px 0;
}

.section__head {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--blue {
  color: #9eb6ff;
}

.section h2,
.dark h2,
.process h2,
.form-box h2 {
  font-size: clamp(36px, 4vw, 56px);
}

.section__head p,
.dark p,
.form-box p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(30,84,255,0.1);
  color: var(--blue);
  font-weight: 950;
  font-size: 22px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dark {
  padding: 92px 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(30,84,255,0.25), transparent 32%),
    var(--dark);
  color: var(--white);
}

.dark__grid,
.process__grid,
.form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.dark p {
  color: #c7cfdb;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.stat {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.1);
}

.stat strong {
  display: block;
  font-size: 26px;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: #c7cfdb;
  font-size: 14px;
}

.dark__visual,
.process__image {
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.dark__visual img,
.process__image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.step {
  display: flex;
  gap: 18px;
}

.step > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 950;
}

.step h3 {
  margin: 0;
  font-size: 22px;
}

.step p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-section {
  padding: 92px 0;
  background: var(--white);
}

.form-box {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.form-note {
  font-size: 16px !important;
}

.form-card {
  padding: 28px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-card h3 {
  margin: 0 0 20px;
  font-size: 26px;
}

.form-card form {
  display: grid;
  gap: 15px;
}

.form-card label {
  display: grid;
  gap: 8px;
}

.form-card label span {
  color: #4b5567;
  font-size: 14px;
  font-weight: 700;
}

.form-card input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9fc;
  color: var(--text);
  font: inherit;
  outline: none;
}

.form-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30,84,255,0.12);
}

.form-card button {
  min-height: 60px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.form-card button:hover {
  background: var(--blue-dark);
}

.form-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}



.form-card--bitrix {
  padding: 18px;
  overflow: hidden;
  min-height: 520px;
}

.form-card--bitrix iframe {
  width: 100% !important;
  min-height: 520px !important;
  border: 0 !important;
  display: block;
  background: #ffffff;
}

@media (max-width: 640px) {
  .form-card--bitrix {
    min-height: 600px;
    padding: 12px;
  }

  .form-card--bitrix iframe {
    min-height: 600px !important;
  }
}

.footer {
  padding: 28px 0;
  background: var(--dark);
  color: white;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #c7cfdb;
}

.footer strong {
  color: white;
}

@media (max-width: 980px) {
  .nav,
  .header__button {
    display: none;
  }

  .hero__grid,
  .dark__grid,
  .process__grid,
  .form-box {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
  }

  .hero__visual {
    max-width: 620px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dark__visual img,
  .process__image img {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header__inner {
    min-height: 66px;
  }

  .hero__grid {
    padding-top: 38px;
    padding-bottom: 44px;
    gap: 36px;
  }

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

  .hero h2 {
    font-size: 34px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__visual {
    border-radius: 26px;
  }

  .hero__visual img {
    height: 430px;
  }

  .hero__card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .hero__card span {
    font-size: 18px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .section,
  .dark,
  .form-section {
    padding: 64px 0;
  }

  .cards,
  .stats {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: unset;
  }

  .form-box {
    padding: 20px;
    border-radius: 24px;
  }

  .form-card {
    padding: 20px;
  }

  .footer__inner {
    flex-direction: column;
  }
}
