/* ============================================================
   Tajer Landing — автономный CSS.
   Значения перенесены 1:1 из дизайн-токенов PWA (tokens.css),
   чтобы лендинг и приложение были визуально едины,
   но без сборки Tailwind — чистый CSS, мгновенная загрузка.
   ============================================================ */

:root {
  /* палитра — из PWA */
  --page: #f7f8fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-2: #6b7280;
  --accent: #005bff;
  --accent-hover: #0047cc;
  --on-accent: #ffffff;

  --radius-btn: 8px;
  --radius-card: 12px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lift: 0 8px 24px rgba(16, 24, 40, 0.10);

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Кнопки (аналог CVA-кнопок PWA) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .05s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--page); }

.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; box-shadow: var(--shadow-lift); }

/* ---------- Хедер ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; display: block; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 50% -100px, rgba(0, 91, 255, 0.08), transparent 70%),
    var(--page);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  padding: 72px 20px 80px;
  text-align: center;
  max-width: 780px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  background: rgba(0, 91, 255, 0.08);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.lead {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-2);
}
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-hint { font-size: 14px; color: var(--text-2); }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  margin: 0 0 36px;
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* ---------- Карточки ценности ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.card-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(0, 91, 255, 0.08);
  color: var(--accent);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Шаги ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
  display: grid;
  gap: 18px;
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.step-n {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--text-2); }

/* ---------- Доверие ---------- */
.trust { max-width: 720px; text-align: center; }
.trust-lead { margin: 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); }
.install-note {
  margin: 18px auto 0;
  max-width: 560px;
  padding: 12px 18px;
  background: rgba(0, 91, 255, 0.06);
  border-radius: var(--radius-btn);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Полоса-CTA ---------- */
.cta-band { background: var(--text); }
.cta-band-inner { text-align: center; }
.cta-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; }
.cta-band p { margin: 0 0 26px; color: #cbd2dd; font-size: 17px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 4px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* ---------- Футер ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { text-align: center; display: grid; gap: 14px; justify-items: center; }
.footer-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.copyright { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero-inner { padding: 52px 20px 60px; }
  .section { padding: 48px 0; }
  .btn-lg { width: 100%; }
}

/* уважаем настройку пониженной анимации */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
