:root {
  --bg: #f4f4f8;
  --surface: #ffffff;
  --text: #1e2438;
  --line: #dfe3ee;
  --blue-1: #0c1f6d;
  --blue-2: #255dde;
  --blue-3: #79b6ff;
  --link: #225ed8;
  --nav: #0a0c16;
  --shadow: 0 10px 30px rgba(19, 29, 67, 0.08);
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(180deg, rgba(6,8,16,0.98), rgba(12,14,26,0.96));
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.nav a {
  color: rgba(255,255,255,0.95);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav a:hover { color: #ffffff; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(255,255,255,0.16), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 40%, var(--blue-3) 100%);
  color: white;
  padding: 72px 0 170px;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  border-radius: 50%;
  z-index: -1;
}
.hero::before {
  height: 520px;
  bottom: -240px;
  background: rgba(255,255,255,0.08);
}
.hero::after {
  height: 620px;
  bottom: -330px;
  background: rgba(255,255,255,0.06);
}
.hero-content {
  text-align: center;
  padding-top: 18px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 70px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.14);
}
.hero p {
  margin: 22px auto 0;
  max-width: 900px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.section { padding: 58px 0; }
.section-soft { background: rgba(255,255,255,0.34); }

h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.lead p {
  margin: 0 0 24px;
  font-size: clamp(20px, 2vw, 26px);
  color: #23293a;
  line-height: 1.7;
}
.lead strong { font-weight: 800; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(241,244,252,0.96));
  border: 1px solid #d9dfef;
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 162px;
}
.card::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -48px;
  height: 92px;
  border-radius: 50%;
  background: rgba(81, 124, 234, 0.10);
}
.card h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  max-width: 90%;
  color: #374055;
  font-size: clamp(18px, 1.3vw, 24px);
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.doc-list {
  list-style: disc;
  padding-left: 28px;
  margin: 0;
}
.doc-list li {
  margin: 0 0 16px;
  color: var(--link);
  font-size: clamp(18px, 1.35vw, 24px);
}
.doc-list a:hover { text-decoration: underline; }

.contact {
  font-size: clamp(18px, 1.35vw, 24px);
  color: #262e41;
}
.contact p { margin: 0 0 14px; }
.contact strong { font-weight: 800; }
.contact a { color: var(--link); }

@media (max-width: 960px) {
  .nav { gap: 20px; justify-content: center; }
  .topbar-inner { justify-content: center; padding: 12px 0; }
  .hero { padding: 54px 0 120px; }
  .cards, .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .nav a { font-size: 16px; }
  .section { padding: 40px 0; }
  .card { min-height: auto; }
  .doc-list { padding-left: 22px; }
}
