:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #5e6b82;
  --line: #dfe6f2;
  --blue: #315da8;
  --blue-dark: #21447f;
  --blue-soft: #eaf1ff;
  --green: #2f7f70;
  --shadow: 0 24px 70px rgba(25, 48, 86, 0.12);
  --radius: 28px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(49, 93, 168, 0.13), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 45%, #eef4ff 100%);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(49, 93, 168, 0.45);
  outline-offset: 4px;
}

.site-header,
.section,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: var(--blue);
  font-size: 20px;
  letter-spacing: 2px;
}

.nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(223, 230, 242, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.section {
  padding: 76px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 34px;
  align-items: stretch;
  min-height: 720px;
  padding-top: 86px;
}

.hero-content,
.hero-card,
.card,
.contact-card,
.requisites,
.cta {
  border: 1px solid rgba(223, 230, 242, 0.82);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 18px 40px rgba(49, 93, 168, 0.26);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue);
  background: var(--blue-soft);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: end;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 28px 28px auto auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(49, 93, 168, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(49, 93, 168, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle, #000 0 52%, transparent 72%);
}

.metric {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #edf4ff);
}

.metric span {
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.metric p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

.intro,
.section-heading {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 36px;
  align-items: end;
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.card {
  min-height: 260px;
  padding: 28px;
  border-radius: 24px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--blue);
  font-weight: 900;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card.accent {
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--green));
}

.card.accent .card-number,
.card.accent p {
  color: rgba(255, 255, 255, 0.84);
}

.process {
  padding-top: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 241, 255, 0.94)),
    radial-gradient(circle at 85% 15%, rgba(47, 127, 112, 0.18), transparent 18rem);
}

.contacts {
  padding-bottom: 54px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  margin-top: 34px;
}

.contact-card,
.requisites {
  padding: 28px;
  border-radius: 24px;
}

.contact-card {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-card strong {
  color: var(--blue);
  font-size: 1.18rem;
}

.contact-card span,
.contact-card a {
  color: var(--muted);
}

.contact-card a:hover {
  color: var(--blue);
}

.requisites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.requisites div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.requisites dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
}

.requisites dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 38px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--blue);
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro,
  .section-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .section {
    padding: 48px 0;
  }

  .hero-content,
  .hero-card,
  .card,
  .contact-card,
  .requisites,
  .cta,
  .steps li {
    border-radius: 20px;
  }

  .hero-content,
  .hero-card {
    padding: 24px;
  }

  .hero-actions,
  .cta,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cards,
  .steps,
  .requisites {
    grid-template-columns: 1fr;
  }

  .card,
  .steps li {
    min-height: auto;
  }

  .card-number,
  .steps span {
    margin-bottom: 28px;
  }
}
