/* ============ БАЗА ============ */
:root {
  --bg: #0b0e1a;
  --bg-alt: #10142400;
  --surface: #151a2e;
  --surface-2: #1c2340;
  --border: #2a3155;
  --text: #e8eaf6;
  --text-muted: #9aa3c7;
  --accent: #7c6cff;
  --accent-2: #4dd0e1;
  --accent-grad: linear-gradient(135deg, #7c6cff 0%, #4dd0e1 100%);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; }

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

.container--narrow { max-width: 820px; }

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 4px 20px rgba(124, 108, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 108, 255, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 27px;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 17px; }
.btn--block { display: block; width: 100%; }

/* ============ ШАПКА ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.logo__icon { font-size: 24px; }

.nav { display: flex; gap: 28px; }

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s;
}

.nav__link:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 14px; }

.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.2s;
}

/* ============ ГЛАВНЫЙ ЭКРАН ============ */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(124, 108, 255, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(77, 208, 225, 0.12), transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat__value {
  font-size: 26px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label { font-size: 14px; color: var(--text-muted); }

/* карточка-щит */
.shield-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 360px;
  margin-left: auto;
}

.shield-card__icon { font-size: 44px; text-align: center; margin-bottom: 10px; }

.shield-card__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5dd39e;
  font-weight: 600;
  margin-bottom: 22px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5dd39e;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(93, 211, 158, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(93, 211, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 211, 158, 0); }
}

.shield-card__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.shield-card__row span { color: var(--text-muted); }

/* ============ СЕКЦИИ ============ */
.section { padding: 80px 0; }

.section--alt {
  background: linear-gradient(180deg, rgba(124, 108, 255, 0.05), transparent 70%);
}

.section__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ ПРЕИМУЩЕСТВА ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature__icon { font-size: 34px; margin-bottom: 14px; }

.feature h3 { font-size: 18px; margin-bottom: 8px; }

.feature p { color: var(--text-muted); font-size: 15px; }

/* ============ ТЕХНОЛОГИИ ============ */
.tech {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.tech-card__icon { font-size: 38px; margin-bottom: 14px; }

.tech-card h3 { font-size: 19px; margin-bottom: 10px; }

.tech-card p { color: var(--text-muted); font-size: 15px; }

.tech__note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px;
  max-width: 820px;
  margin: 0 auto;
}

.tech__note b { display: block; margin-bottom: 6px; }

.tech__note p { color: var(--text-muted); font-size: 15px; }

/* ============ ТАРИФЫ ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.plan:hover { transform: translateY(-4px); }

.plan--popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(124, 108, 255, 0.1), var(--surface) 45%);
  box-shadow: 0 12px 40px rgba(124, 108, 255, 0.2);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan__name { font-size: 17px; color: var(--text-muted); margin-bottom: 8px; }

.plan__price { font-size: 40px; font-weight: 800; }

.plan__price span { font-size: 17px; font-weight: 500; color: var(--text-muted); }

.plan__total { font-size: 14px; color: var(--accent-2); margin-bottom: 20px; }

.plan__list {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}

.plan__list li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
}

.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.pricing__note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
}

/* ============ ШАГИ ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}

.step__num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 8px; font-size: 18px; }

.step p { color: var(--text-muted); font-size: 15px; }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq__item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 48px;
  user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq__item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ============ CTA ============ */
.cta {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(124, 108, 255, 0.18), transparent);
}

.cta__inner { text-align: center; }

.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 10px; }

.cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 17px; }

/* ============ ПОДВАЛ ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  background: #090c16;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__desc { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 260px; }

.footer__col h4 { margin-bottom: 14px; font-size: 15px; }

.footer__col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}

.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 14, 0.75);
  backdrop-filter: blur(4px);
}

.modal__window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

.modal__close:hover { color: var(--text); }

.modal__window h3 { font-size: 22px; margin-bottom: 6px; }

.modal__plan { color: var(--text-muted); margin-bottom: 22px; font-size: 15px; }

.modal__plan b { color: var(--accent-2); }

/* ============ ФОРМА ============ */
.form__field { display: block; margin-bottom: 16px; }

.form__field span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form__field input,
.form__field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form__field input:focus,
.form__field select:focus { border-color: var(--accent); }

.form__note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.form__success {
  text-align: center;
  font-size: 16px;
  padding: 20px 0 6px;
  color: #5dd39e;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .shield-card { margin: 0 auto; }
  .features, .tech, .pricing, .steps { grid-template-columns: 1fr 1fr; }
  .plan--popular { order: -1; grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .header__actions .btn { display: none; }
  .features, .tech, .pricing, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero__stats { gap: 24px; }
  .section { padding: 56px 0; }
  .footer__inner { grid-template-columns: 1fr; }
}
