/* ============ БАЗА ============ */
:root {
  --ink: #211b3a;
  --ink-2: #2a2350;
  --purple: #6b4ec9;
  --purple-soft: #efeafb;
  --muted: #6f6a86;
  --line: #ece8f5;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 16px;
}

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

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 720px at 70% 36%, #e8e1f6 0%, rgba(232,225,246,0) 60%),
    radial-gradient(680px 520px at 96% 78%, #efe9f8 0%, rgba(239,233,248,0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f6fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px var(--pad) 40px;
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 13px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(33,27,58,.6);
}
.btn--dark:hover { background: #2c2450; }

.btn--ghost {
  background: transparent;
  border-color: #d3cde6;
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(255,255,255,.7); }

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #e6e1f1;
  box-shadow: 0 10px 26px -16px rgba(33,27,58,.45);
}

.btn--lg { padding: 18px 30px; font-size: 16px; border-radius: 14px; }

.btn__arrow { font-size: 18px; }
.btn__play  { font-size: 11px; color: var(--purple); }

/* ============ ШАПКА ============ */
.header {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { width: 34px; height: 34px; }
.logo__icon svg { width: 100%; height: 100%; }
.logo__text { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 40px);
  font-weight: 600;
  font-size: 15px;
  color: #34304a;
}
.nav a:hover { color: var(--purple); }

.header__actions { display: flex; gap: 14px; }

.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ ГЕРОЙ ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) 1.08fr;
  gap: clamp(12px, 1.5vw, 24px);
  align-items: center;
}
.hero__left { min-width: 0; }

/* ---- Левая колонка ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  color: #4a4467;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 14px -10px rgba(70,50,130,.4);
}
.badge__spark { color: var(--purple); }

.hero__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: clamp(33px, 3.95vw, 58px);
  line-height: 1.16;
  letter-spacing: -.2px;
  margin-bottom: 26px;
  color: #221c3c;
}
.hero__title-accent { color: var(--purple); display: block; white-space: nowrap; }

.hero__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 50px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--purple);
  margin-bottom: 12px;
  box-shadow: 0 6px 16px -12px rgba(70,50,130,.4);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature p { font-size: 14px; line-height: 1.45; color: #4f4a66; font-weight: 500; }

/* ---- Правый коллаж (изображение из макета) ---- */
.hero__right {
  margin-right: calc(-1 * var(--pad));   /* вытекает к правому краю экрана */
}
.hero__collage {
  width: 100%;
  height: auto;
}

/* ============ НИЖНЯЯ СТАТИСТИКА ============ */
.stats {
  margin-top: clamp(28px, 4vw, 52px);
  background: rgba(255,255,255,.72);
  border: 1px solid #f0ecf8;
  border-radius: 22px;
  padding: 26px clamp(20px, 3vw, 44px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  box-shadow: 0 30px 60px -42px rgba(60,40,120,.4);
  position: relative;
  z-index: 2;
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat__icon {
  width: 50px; height: 50px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
}
.stat__icon svg { width: 26px; height: 26px; }
.stat b { font-size: 22px; font-weight: 800; display: block; }
.stat span { font-size: 13px; color: var(--muted); }

/* ============ АДАПТИВ ============ */
.nav__actions { display: none; }

/* ---- Планшет и ниже: навигация в бургер-меню ---- */
@media (max-width: 1180px) {
  .header { position: relative; flex-wrap: nowrap; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 26px 54px -22px rgba(60,40,120,.4);
    z-index: 60;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a:hover { background: var(--purple-soft); }

  .header__actions { margin-left: auto; }
  .burger { display: flex; }
}

/* ---- Гамбургер: крест при открытии ---- */
@media (max-width: 1180px) {
  .burger { position: relative; width: 26px; height: 20px; justify-content: center; }
  .burger span { position: absolute; transition: transform .25s ease, opacity .2s ease; }
  .burger span:nth-child(1) { top: 3px; }
  .burger span:nth-child(2) { top: 9px; }
  .burger span:nth-child(3) { top: 15px; }
  .nav-toggle:checked ~ .burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .burger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
}

/* ---- Геро в одну колонку: текст → визуал → преимущества ---- */
@media (max-width: 960px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero__left { display: contents; }
  .hero__intro, .hero__right, .features { min-width: 0; }
  .hero__intro { order: 1; }
  .hero__right {
    order: 2;
    margin: 26px calc(-1 * var(--pad)) 0;
  }
  .features {
    order: 3;
    margin-top: 34px;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 18px;
  }

  .hero__cta { margin-bottom: 0; }
  .hero__title-accent { white-space: normal; }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 26px;
    margin-top: 36px;
  }
}

/* ---- Планшеты помельче ---- */
@media (max-width: 760px) {
  .header__actions { display: none; }      /* кнопки уезжают в бургер-меню */
  .nav__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav__actions .btn { width: 100%; }

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

/* ---- Телефоны ---- */
@media (max-width: 560px) {
  .hero__title { font-size: clamp(26px, 7.6vw, 34px); }
  .hero__lead { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .badge {
    font-size: 13px;
    padding: 8px 14px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    align-items: flex-start;
  }
}

/* ---- Узкие телефоны ---- */
@media (max-width: 400px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
