/* =========================================================================
   Inbotic — стили лендинга.
   Дизайн правится здесь. Почти всё (цвета, шрифты, отступы, радиусы)
   вынесено в переменные :root ниже — меняй их, и тема обновится целиком.
   ========================================================================= */

:root {
  /* Палитра */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1a1f2b;
  --color-muted: #5b6473;
  --color-accent: #2f6bff;
  --color-accent-dark: #1f4fd1;
  --color-accent2: #6b3bff;
  --brand-gradient: linear-gradient(135deg, #3b7bff 0%, #6b3bff 100%);
  --color-border: #e4e8ef;
  --color-dark: #0e1320;

  /* Типографика */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-base: 17px;
  --lh-base: 1.6;

  /* Геометрия */
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1080px;
  --gap: 24px;
  --section-y: 88px;

  /* Тени */
  --shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
}

/* Сброс */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-gradient); color: #fff; }
.btn--primary:hover { filter: brightness(1.07); box-shadow: 0 6px 20px rgba(107, 59, 255, .35); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: var(--color-bg-alt); }
.btn--outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn--outline:hover { background: rgba(47, 107, 255, .08); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 18px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.logo__text { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--color-muted); font-size: 15px; }
.nav a:hover { color: var(--color-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* На весь экран за вычетом высоты залипающей шапки (64px) — на старте
     видна только главная надпись, остальное раскрывается при скролле. */
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: 40px 0 96px;
  text-align: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; }

/* Подсказка «листайте вниз» */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: .04em;
}
.hero__scroll-arrow { font-size: 20px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero__subtitle { font-size: 19px; color: var(--color-muted); margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__badges {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
  color: var(--color-muted);
  font-size: 14px;
}
.hero__badges li::before { content: "✓ "; color: var(--color-accent); font-weight: 700; }

/* ---------- Секции ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-bg-alt); }
.section__title {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -.02em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section__lead {
  text-align: center;
  color: var(--color-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ---------- Карточки ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card__title { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--color-muted); }

/* ---------- Тарифы ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.plan {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.plan__tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name { font-size: 22px; }
.plan__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan__term { color: var(--color-muted); font-size: 14px; margin-bottom: 16px; }
.plan__desc { color: var(--color-muted); margin-bottom: 18px; }
.plan__list { margin-bottom: 24px; }
.plan__list li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--color-border); }
.plan__list li::before {
  content: "→"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700;
}
.pricing__note { text-align: center; color: var(--color-muted); font-size: 14px; margin-top: 28px; }

/* ---------- Шаги процесса ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--brand-gradient); color: #fff;
  border-radius: 50%; font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--color-muted); font-size: 15px; }

/* ---------- Демо (CTA) ---------- */
.section--cta { background: var(--color-dark); color: #fff; }
.section--cta .section__title { text-align: left; }
.section--cta .section__lead { text-align: left; margin: 0; color: rgba(255,255,255,.7); }
.demo__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.demo__inner > div { flex: 1 1 380px; }

/* ---------- Форма ---------- */
.lead__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.lead__text .section__title, .lead__text .section__lead { text-align: left; margin-left: 0; }
.lead-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}
.field textarea { resize: vertical; }
.lead-form__status { margin-top: 14px; font-size: 15px; min-height: 1.2em; }
.lead-form__status.is-ok { color: #138a4e; }
.lead-form__status.is-error { color: #c0392b; }
.lead-form__privacy { margin-top: 14px; font-size: 12px; color: var(--color-muted); }

/* ---------- Футер ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
}
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.footer__legal { font-size: 13px; margin-top: 8px; max-width: 460px; }
.footer__contacts { display: flex; gap: 22px; align-items: flex-start; }
.footer__contacts a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }

/* ---------- Появление при скролле (reveal) ----------
   Скрываем data-reveal только при включённом JS (класс has-js ставится в <head>),
   чтобы без JS контент был виден сразу. is-visible навешивает app.js. */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__scroll-arrow { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  :root { --section-y: 64px; }
  .pricing, .steps { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .cards--3 { grid-template-columns: 1fr; }
  .lead__inner { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__subtitle { font-size: 17px; }
}
