/* ===== Переменные ===== */
:root {
  --bg: #0b1020;
  --bg-soft: #11182e;
  --surface: #ffffff;
  --surface-alt: #f5f7fc;
  --text: #1a2238;
  --text-soft: #5a6478;
  --accent: #4f6bff;
  --accent-2: #7c4dff;
  --accent-soft: #eef1ff;
  --border: #e6e9f2;
  --radius: 18px;
  --shadow: 0 18px 48px -20px rgba(20, 30, 70, 0.25);
  --container: 1140px;
}

/* ===== База ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(79, 107, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(79, 107, 255, 0.8); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-block { width: 100%; }

/* ===== Шапка ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 20px;
}
.logo-text { font-weight: 600; }
.logo-text strong { font-weight: 800; }
.nav { display: flex; gap: 30px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--text-soft); transition: color 0.15s; }
.nav a:hover { color: var(--accent); }
.header-cta { padding: 11px 22px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 80% 10%, rgba(124, 77, 255, 0.18), transparent 60%),
    radial-gradient(50% 60% at 10% 20%, rgba(79, 107, 255, 0.16), transparent 60%),
    var(--surface-alt);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 24px 96px;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 22px 0 30px;
  font-size: 18px;
  color: var(--text-soft);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}
.stat span { font-size: 14px; color: var(--text-soft); }

/* Hero визуал */
.hero-visual {
  position: relative;
  height: 420px;
}
.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}
.glass-card p { font-weight: 700; font-size: 15px; }
.glass-card span { font-size: 13px; color: var(--text-soft); }
.card-1 { top: 18px; left: 0; width: 250px; animation: float 6s ease-in-out infinite; }
.card-2 { top: 150px; right: 0; width: 240px; animation: float 7s ease-in-out infinite reverse; }
.card-3 { bottom: 14px; left: 40px; width: 240px; animation: float 8s ease-in-out infinite; }
.card-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 10px;
}
.card-dot.green { background: #1fc77f; }
.bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
  margin-bottom: 12px;
}
.bar i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Доверие ===== */
.trust {
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 18px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 38px;
}
.trust-logos span {
  font-weight: 800;
  font-size: 18px;
  color: #aab2c5;
  letter-spacing: -0.01em;
}

/* ===== Секции ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--surface-alt); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 54px;
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow.light { color: #b9c4ff; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 17px;
}

/* ===== Сетки ===== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Карточки услуг ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.service h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.service p { color: var(--text-soft); font-size: 15px; }

/* ===== Преимущества ===== */
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.benefit strong {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}
.benefit h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.benefit p { color: var(--text-soft); font-size: 15px; }

/* ===== Шаги ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.section-alt .step { background: var(--surface); }
.step-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
}
.step h3 { font-size: 18px; font-weight: 800; margin: 8px 0; }
.step p { color: var(--text-soft); font-size: 15px; }

/* ===== Кейсы ===== */
.case-metric {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.case h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.case p { color: var(--text-soft); font-size: 15px; }

/* ===== Отзывы ===== */
.quote {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.quote p { font-size: 17px; font-weight: 500; }
.quote footer { margin-top: 18px; }
.quote footer strong { display: block; font-weight: 800; }
.quote footer span { color: var(--text-soft); font-size: 14px; }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(124, 77, 255, 0.4), transparent 60%),
    var(--bg);
  color: #fff;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 54px;
  align-items: center;
}
.cta-text h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-text p { margin: 16px 0 22px; color: #aeb7d0; font-size: 17px; }
.cta-list { display: grid; gap: 10px; }
.cta-list li {
  padding-left: 28px;
  position: relative;
  color: #dfe4f3;
}
.cta-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1fc77f;
  font-weight: 800;
}

/* ===== Форма ===== */
.contact-form {
  background: var(--surface);
  color: var(--text);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input.invalid,
.field textarea.invalid { border-color: #ff5a5a; }
.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
}
.form-success {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #e7f9f0;
  color: #138a5a;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}
.form-success.show { display: block; }

/* ===== Подвал ===== */
.site-footer {
  background: var(--bg-soft);
  color: #aeb7d0;
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 15px; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

/* ===== Анимация появления ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 360px; max-width: 420px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 56px 24px 70px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
