:root {
  --bg: #071018;
  --bg-2: #0c1824;
  --bg-3: #102033;
  --ink: #e8eef4;
  --muted: #93a0ae;
  --faint: #6b7886;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --blue: #2b8ff0;
  --blue-2: #1e6fd1;
  --blue-deep: #0b4f9c;
  --paper: #f3f6f9;
  --paper-ink: #12181f;
  --paper-muted: #5b6672;
  --ok: #3dbe86;
  --danger: #e05a5a;
  --radius: 14px;
  --max: 1120px;
  --header-h: 72px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 16, 24, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }

.header-phone {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(43, 143, 240, 0.22), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(11, 79, 156, 0.28), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 22px;
  position: relative;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
}

.hero h1 {
  position: relative;
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 16ch;
}

.lead {
  position: relative;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 34px;
}

.actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); }

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 64px;
  max-width: 720px;
}
.stat {
  padding-right: 12px;
  border-left: 1px solid var(--line-strong);
  padding-left: 16px;
}
.stat b {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.stat span {
  color: var(--faint);
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section-light {
  background: var(--paper);
  color: var(--paper-ink);
}
.section-alt { background: var(--bg-2); }

.section-head {
  max-width: 40rem;
  margin-bottom: 42px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-head p + p { margin-top: 12px; }
.section-light .section-head p,
.section-light .muted { color: var(--paper-muted); }

.muted { color: var(--muted); }

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.section-light .card {
  background: #fff;
  border-color: #e4e9ee;
  box-shadow: 0 8px 24px rgba(16, 32, 48, 0.04);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.card p { margin: 0 0 18px; color: var(--muted); }
.section-light .card p { color: var(--paper-muted); }

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--line);
}
.section-light .list li { border-top-color: #e8edf2; }
.list li:first-child { border-top: 0; }
.list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 16px;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  padding: 8px 8px 0 0;
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.step p { margin: 0; color: var(--muted); }

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 42px;
}
.price-card h3 { margin-top: 0; }
.price-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }

/* Background / tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.section-head + .tech-grid { margin-top: 36px; }
.tech h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.92rem;
  color: var(--ink);
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding-left: 16px;
  border-left: 2px solid var(--blue);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card a {
  color: var(--ink);
  text-decoration: none;
}
.contact-card a:hover { color: var(--blue); }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-row:first-child { border-top: 0; padding-top: 0; }
.contact-row span {
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}
label span { color: var(--muted); }
input, textarea, select {
  width: 100%;
  background: #0a1520;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--blue);
}
.choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.choices legend {
  padding: 0;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  background: #0a1520;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.choice span { color: var(--ink); }
.choice:hover { border-color: rgba(255,255,255,0.22); }
.choice input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.choice:has(input:checked) {
  border-color: var(--blue);
  background: #0c1c2c;
}
textarea { min-height: 140px; resize: vertical; }
.form-note {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.85rem;
}
.form-status {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.form-status.show { display: block; }
.form-status.ok {
  background: rgba(61, 190, 134, 0.12);
  color: #9be7c4;
}
.form-status.err {
  background: rgba(224, 90, 90, 0.12);
  color: #f0b0b0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  color: var(--faint);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0a1622;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .header-phone { display: none; }
  .grid-2,
  .steps,
  .pricing,
  .tech-grid,
  .contact-grid,
  .principles {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}

@media (max-width: 420px) {
  .wrap, .header-inner { width: min(var(--max), calc(100% - 28px)); }
}
