:root {
  /* Явно говорим браузеру/WebView, что страница светлая — иначе Android
     WebView с системным тёмным режимом сам инвертирует цвета ("force dark"),
     превращая градиентный фон в блёклый серый с нечитаемым текстом поверх
     наших собственных цветов. */
  color-scheme: light;
  --bg-top: #F7FAFF;
  --bg-bottom: #E8F0FF;
  --text-primary: #172033;
  --text-secondary: #64748B;
  --accent-purple: #7968FF;
  --accent-cyan: #58E1D4;
  --accent-pink: #C993FF;
  --glass-surface: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius-lg: 28px;
  --radius-md: 22px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  /* Без "fixed" — см. cabinet_static/styles.css, ненадёжно в мобильных WebView. */
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  line-height: 1.5;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
p { margin: 0; }

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.38));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -20px rgba(121, 104, 255, 0.25);
  padding: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-gradient {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(121, 104, 255, 0.55);
}
.btn-gradient:hover { box-shadow: 0 16px 30px -10px rgba(121, 104, 255, 0.65); }

.btn-outline {
  background: rgba(255,255,255,0.5);
  color: var(--text-primary);
  border: 1px solid rgba(88, 225, 212, 0.45);
}
.btn-outline:hover { background: rgba(255,255,255,0.75); }

.btn-disabled {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-secondary);
  cursor: default;
  font-size: 14px;
  padding: 10px 20px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 250, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.06);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cabinet { padding: 10px 20px; font-size: 14px; }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 0 24px 18px; }
.nav-mobile a { padding: 10px 4px; text-decoration: none; color: var(--text-primary); font-weight: 500; }
.nav-mobile.open { display: flex; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max-width); margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-purple); background: rgba(121, 104, 255, 0.1);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-logo { height: 76px; width: auto; display: block; margin-bottom: 26px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); text-wrap: balance; }
.hero .lede { font-size: 18px; color: var(--text-secondary); margin: 18px 0 28px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 16px; max-width: 46ch; font-size: 14px; color: var(--text-secondary);
  background: rgba(255, 181, 71, 0.14); border: 1px solid rgba(255, 181, 71, 0.3);
  padding: 12px 16px; border-radius: 14px;
}
.hero-trial { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }

.hero-visual { display: flex; justify-content: center; }
.report-mock { width: 100%; max-width: 340px; }
.report-mock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.report-mock-head .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan)); }
.report-mock-title { font-weight: 600; font-size: 15px; color: var(--text-secondary); }
.report-mock-metrics { display: flex; gap: 12px; margin-bottom: 20px; }
.metric-pill {
  flex: 1; background: rgba(255,255,255,0.55); border: 1px solid rgba(121,104,255,0.22);
  border-radius: 18px; padding: 14px; text-align: center;
}
.metric-value { display: block; font-size: 26px; font-weight: 700; }
.metric-value.purple { color: var(--accent-purple); }
.metric-value.cyan { color: #2FADA0; }
.metric-label { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.report-mock-wave { margin-bottom: 14px; }
.report-mock-wave svg { width: 100%; height: 52px; display: block; }
.report-mock-caption { font-size: 12px; color: var(--text-secondary); }

/* ---------- sections ---------- */
.section { max-width: var(--max-width); margin: 0 auto; padding: 56px 24px; }
.section h2 { font-size: clamp(24px, 3vw, 32px); }
.section-lede { color: var(--text-secondary); font-size: 16px; margin-top: 8px; margin-bottom: 32px; max-width: 60ch; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px; color: #fff;
}
.feature-icon.purple { background: var(--accent-purple); }
.feature-icon.cyan { background: var(--accent-cyan); color: #0F5B54; }
.feature-icon.pink { background: var(--accent-pink); }
.feature h3 { font-size: 17px; }
.feature p { color: var(--text-secondary); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--text-secondary); font-size: 14.5px; }

.price-card { max-width: 480px; margin-top: 24px; text-align: left; }
.price-main { margin-bottom: 18px; }
.price-value { display: block; font-size: 44px; font-weight: 700; }
.price-caption { display: block; color: var(--text-secondary); font-size: 15px; margin-top: 4px; }
.price-list { margin: 0 0 24px; padding-left: 20px; color: var(--text-secondary); font-size: 15px; }
.price-list li { margin-bottom: 8px; }
.price-btn { width: 100%; }
.price-card .hero-note { max-width: none; }

.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.download-card { text-align: center; }
.download-icon {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px;
  background: rgba(121, 104, 255, 0.12); color: var(--accent-purple);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.download-card h3 { font-size: 17px; }
.download-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; min-height: 36px; }
.download-note { text-align: center; color: var(--text-secondary); font-size: 13.5px; margin-top: 24px; }

.footer {
  max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 56px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-secondary); font-size: 14px; border-top: 1px solid rgba(23,32,51,0.08); margin-top: 24px;
}
.footer-logo { height: 20px; width: auto; display: block; opacity: 0.85; }
.footer a { text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--text-primary); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { order: -1; }
  .hero-logo { height: 56px; margin-bottom: 18px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cabinet { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
