:root {
  --bg: #0a0e1a;
  --bg-soft: #111726;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #eef1f8;
  --text-muted: #9aa6c0;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --danger: #f43f5e;
  --radius: 20px;
  --maxw: 1140px;
  --shadow-glow: 0 18px 50px -12px rgba(99, 102, 241, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ============ Декоративные градиентные орбиты ============ */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.orb--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -160px;
  left: -120px;
}

.orb--2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: 40%;
  right: -160px;
}

.orb--3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: -180px;
  left: 30%;
}

/* ============ Контейнер и секции ============ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ Блок 1: Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero__title {
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 44px;
}

.hero__cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 920px;
  margin-bottom: 48px;
}

.cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cell:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.55);
}

.cell__icon {
  font-size: 2rem;
}

.cell__text {
  font-weight: 600;
  font-size: 1.02rem;
}

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #08101f;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 24px 60px -12px rgba(99, 102, 241, 0.7);
}

.btn--primary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.btn--block {
  width: 100%;
}

.btn--telegram {
  width: 100%;
  background: linear-gradient(120deg, #229ed9, #2bb5e0);
  color: #fff;
  box-shadow: 0 14px 40px -12px rgba(34, 158, 217, 0.6);
}

.btn--telegram:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.btn--pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 18px 50px -12px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 18px 60px -8px rgba(34, 211, 238, 0.7); }
}

/* ============ Сетки и карточки ============ */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  padding: 34px 30px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card--danger:hover {
  border-color: rgba(244, 63, 94, 0.5);
}

.card__num {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--danger);
  background: rgba(244, 63, 94, 0.12);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ============ Блок 3: Решения ============ */
.solution {
  padding: 30px 30px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.solution:hover {
  transform: translateY(-5px);
  border-left-color: var(--accent-2);
}

.solution__pain {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.solution__answer {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ============ Блок 4: Этапы ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.step {
  position: relative;
  padding: 40px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
}

.step__num {
  position: absolute;
  top: -22px;
  left: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #08101f;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
}

.step__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.banner {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--surface-border);
}

/* ============ Блок 5: План ============ */
.plan {
  list-style: none;
  counter-reset: plan;
  max-width: 720px;
  margin: 0 auto 44px;
  display: grid;
  gap: 16px;
}

.plan__item {
  counter-increment: plan;
  position: relative;
  padding: 22px 24px 22px 78px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  font-size: 1.08rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.plan__item:hover {
  transform: translateX(6px);
  border-color: rgba(99, 102, 241, 0.55);
}

.plan__item::before {
  content: counter(plan);
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  color: #08101f;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.section .plan + .btn {
  display: flex;
  margin: 0 auto;
}

/* ============ Блок 6: Финальный CTA ============ */
.section--final {
  text-align: center;
}

.section--final .container {
  max-width: 820px;
  padding: 64px 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  backdrop-filter: blur(12px);
}

.final__title {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.final__text {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

/* ============ Футер ============ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--surface-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============ Модальное окно ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(6px);
  animation: fade 0.25s ease;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-soft);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 40px 34px 34px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal__subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 26px;
}

.modal__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal__divider::before,
.modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--surface-border);
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form__field {
  display: grid;
  gap: 6px;
}

.lead-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lead-form__input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.lead-form__input::placeholder {
  color: rgba(154, 166, 192, 0.6);
}

.lead-form__input:focus {
  outline: none;
  border-color: var(--accent);
}

.lead-form__textarea {
  resize: vertical;
  min-height: 76px;
  font-family: inherit;
}

.lead-form__req {
  color: var(--danger);
}

.lead-form__input--error {
  border-color: var(--danger);
}

.lead-form__error {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1em;
}

.lead-form__error:empty {
  display: none;
}

.cform__btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lead-form__success,
.lead-form__fail {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}

.lead-form__success {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent-2);
}

.lead-form__fail {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4b4;
}

[hidden] {
  display: none !important;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn--pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Адаптив ============ */
@media (max-width: 900px) {
  .grid--3,
  .steps {
    grid-template-columns: 1fr;
  }
  .step__num {
    top: -20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .hero__cells {
    grid-template-columns: 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
}
