/* ═══════════════════════════════════════════════════════════
   ТОКЕНЫ
   Оранжевый — первичный (CTA, числа, выделение).
   Фиолетовый — мягкий вторичный (eyebrow, иконки, фон секций).
   Обе роли читаются повсюду, ни одна не доминирует.
═══════════════════════════════════════════════════════════ */
:root {
  --bg: #f4f4f7;
  --text: #1a1a2e;
  --muted: #64637a;
  --accent: #edb468;
  --accent-dark: #c9893c;
  --surface: #ffffff;
  --border: #e4e3ee;
  --ok: #1f7a37;
  --danger: #a62727;

  /* фиолетовый — мягкий, не агрессивный */
  --purple: #7c6fe0;
  --purple-text: #5a4fcf;
  --purple-bg: #f2f0fc;
  --purple-border: #d8d4f5;
  --purple-icon-bg: #ebe8fa;
}

/* ── СБРОС ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }

/* ── ШАПКА ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}
.brand img { width: 38px; height: 38px; }
.topbar-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-text);
  border: 1px solid var(--purple-border);
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--purple-bg);
  transition: background 0.16s;
}
.topbar-link:hover { background: #e9e5fa; }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 52px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.1;
  color: var(--text);
}
.hero-subtitle {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media {
  margin: 0;
  align-self: center;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(26, 26, 46, 0.10);
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* ── КНОПКИ ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a2e;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn-secondary:hover { border-color: #c8c6da; background: #f8f7ff; }
.btn-submit { width: 100%; }

/* ── БАЗОВАЯ СЕКЦИЯ ── */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.4vw, 36px);
}
.section-lead {
  color: var(--muted);
  max-width: 740px;
  line-height: 1.6;
}

/* eyebrow — фиолетовый, появляется во всех секциях */
.section-eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--purple-text);
}

/* ── КАРТОЧКИ VALUE ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  border-top: 3px solid var(--purple-border);
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── ДЛЯ КОГО ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.audience-card:hover {
  border-color: var(--purple-border);
  box-shadow: 0 6px 24px rgba(124, 111, 224, 0.10);
}
.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--purple-icon-bg);
  font-size: 22px;
  margin-bottom: 14px;
}
.audience-card h3 { margin: 0 0 8px; font-size: 15px; }
.audience-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── ПРЕИМУЩЕСТВА — светло-лавандовый фон, не тёмный ── */
.section.section-adv {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 56px;
  padding-bottom: 60px;
  background: var(--purple-bg);
  border-top: 1px solid var(--purple-border);
  border-bottom: 1px solid var(--purple-border);
}

/* внутренние дочерние элементы секции центрируются */
.section-adv > .section-eyebrow,
.section-adv > h2,
.section-adv > .adv-stat-bar,
.section-adv > .adv-grid {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-adv > .adv-grid {
  padding-left: 0;
  padding-right: 0;
}



.section-adv > h2 {
  color: var(--text);
  margin-bottom: 28px;
}

/* плашка со статистикой */
.adv-stat-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--purple-border);
  border-radius: 16px;
  padding: 22px 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.adv-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1 1 130px;
}
.adv-stat-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}
.adv-stat-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.adv-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--purple-border);
  flex-shrink: 0;
}

/* карточки преимуществ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple-border);
  border-radius: 16px;
  padding: 20px 18px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.adv-card:hover {
  border-color: var(--purple);
  border-top-color: var(--purple);
  box-shadow: 0 6px 22px rgba(124, 111, 224, 0.12);
}
.adv-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-icon-bg);
  font-size: 22px;
  margin-bottom: 14px;
}
.adv-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.adv-card p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* акцентная карточка — оранжевая тема (ИИ / аналитика) */
.adv-card-accent {
  background: #fffbf3;
  border-color: #f5d8a0;
  border-top-color: var(--accent);
}
.adv-card-accent:hover {
  border-color: var(--accent-dark);
  border-top-color: var(--accent-dark);
  box-shadow: 0 6px 22px rgba(237, 180, 104, 0.18);
}
.adv-card-accent .adv-card-icon { background: #fff0d4; }
.adv-card-accent h3 { color: var(--accent-dark); }

/* ── ПРОБНЫЙ ПЕРИОД (оранжевый акцент) ── */
.section-accent {
  max-width: 100%;
  background: #fff8ec;
  border-top: 1px solid #f3deb8;
  border-bottom: 1px solid #f3deb8;
}
.section-accent h2,
.section-accent .section-eyebrow,
.section-accent .section-lead,
.section-accent .checks {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.checks { margin-top: 16px; color: var(--muted); line-height: 1.7; }
.checks li + li { margin-top: 6px; }

/* ── ФОРМА ── */
.form-wrap {
  margin-top: 20px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.field, .field-row { margin-bottom: 14px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input {
  width: 100%;
  border: 1px solid #cccbda;
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.15);
}
.input-invalid { border-color: #de8d8d; }
.input-invalid:focus { box-shadow: 0 0 0 3px rgba(166, 39, 39, 0.12); }
.field-msg { margin: 5px 0 0; min-height: 18px; color: var(--danger); font-size: 13px; }
/* убрали .consent-note — заменён чекбоксом */

/* ── Чекбокс согласия ── */
.field-checkbox { margin: 4px 0 16px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box {
  border-color: var(--purple);
  background: var(--purple);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-box {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.checkbox-label.invalid .checkbox-box,
.field-checkbox .input-invalid + .checkbox-box {
  border-color: var(--danger);
}

.checkbox-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.checkbox-text a {
  color: var(--purple-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-global-msg { margin: 10px 0 0; min-height: 18px; color: var(--danger); font-size: 14px; }
.captcha-box { margin: 10px 0; }
.req { color: #b34c4c; }
.form-success {
  border: 1px solid #c0e6cc;
  background: #f0faf4;
  padding: 20px;
  border-radius: 14px;
}
.form-success h3 { margin: 0 0 8px; color: var(--ok); }

/* ── ЛОГОТИПЫ ── */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.logo-slot {
  min-height: 80px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.logo-slot img { max-width: 100%; height: auto; display: block; }

/* ── ФУТЕР ── */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.footer-links { display: inline-flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--purple-text); }

/* ── АДАПТИВ ── */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    gap: 24px;
  }
  .hero-media { max-width: 720px; margin: 0 auto; }

  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv-stat-sep { display: none; }

  .field-row,
  .grid-3,
  .logos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section-adv > .adv-stat-bar {
    margin-left: 24px;
    margin-right: 24px;
    align-items: start;
  }

  .section-adv > .adv-grid {
    padding-left: 24px;
    padding-right: 24px;
  }
  .adv-stat {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .audience-grid,
  .adv-grid { grid-template-columns: 1fr; }

  .adv-stat-bar { padding: 16px 18px; }
  .adv-stat-num { font-size: 32px; }

  .hero h1 { font-size: clamp(22px, 7vw, 30px); }
}
