/* СЕКВО — стиль сайта.
   Токены те же, что в приложении (android .../theme/Theme.kt):
   крем #F7F5EE, зелёный #087A3D, мягкая зелёная поверхность #DDF2D8,
   тёмный текст #12351F, внимание #D69A00, опасность #D84C4C. */

:root {
  --bg: #f7f5ee;
  --surface: #ffffff;
  --surface-alt: #efede4;
  --primary: #087a3d;
  --primary-dark: #05602f;
  --primary-light: #ddf2d8;
  --dark: #12351f;
  --muted: #5c6b60;
  --warning: #d69a00;
  --danger: #d84c4c;
  --line: rgba(18, 53, 31, 0.12);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px rgba(18, 53, 31, 0.08);
  --shadow-sm: 0 6px 18px rgba(18, 53, 31, 0.06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 238, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.logo:hover { text-decoration: none; }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--dark); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }

/* ---------- первый экран ---------- */

.hero { padding: 72px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 34em;
}

/* ---------- кнопки магазинов ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 11px 18px 11px 15px;
  min-width: 190px;
  position: relative;
}
.store:hover { text-decoration: none; background: #1b4a2c; }
.store svg { flex: none; }
.store span { display: block; line-height: 1.25; }
.store .store-top { font-size: 11px; opacity: 0.72; }
.store .store-name { font-size: 16px; font-weight: 700; }

/* Магазин, где приложения ещё нет: кнопка не ведёт в никуда, а честно говорит. */
.store.soon { background: var(--surface); color: var(--muted); border: 1px dashed var(--line); pointer-events: none; }
.store.soon .store-name { color: var(--dark); }
.store.soon::after {
  content: "скоро";
  position: absolute;
  top: -9px;
  right: 12px;
  background: var(--warning);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
}

.hero-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- телефон ---------- */

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px;
  border-radius: 42px;
  background: var(--dark);
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone-screen {
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  padding: 18px 16px 22px;
}

.card-photo {
  height: 118px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e6efe3, #cfe6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.score-row { display: flex; align-items: baseline; gap: 8px; }
.score-num { font-size: 46px; font-weight: 800; color: var(--primary); line-height: 1; }
.score-max { font-size: 15px; color: var(--muted); }
.grade {
  margin-left: auto;
  background: rgba(8, 122, 61, 0.14);
  color: var(--primary);
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 15px;
}
.verdict { font-weight: 700; margin: 10px 0 8px; font-size: 16px; }
.bar { height: 9px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; width: 78%; background: var(--primary); border-radius: 999px; }
.approx { font-size: 11px; color: var(--muted); margin-bottom: 14px; line-height: 1.35; }

.factor {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.good { background: var(--primary); }
.dot.warn { background: var(--warning); }
.dot.bad { background: var(--danger); }
.factor b { margin-left: auto; font-weight: 700; color: var(--muted); font-size: 12px; }

/* ---------- секции ---------- */

section { padding: 64px 0; }
section.tight { padding: 44px 0; }

h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 46em; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 16px 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}

/* ---------- честность ---------- */

.honest { background: var(--dark); color: #e7efe8; border-radius: 36px; padding: 56px 44px; }
.honest h2 { color: #fff; }
.honest .section-lead { color: rgba(231, 239, 232, 0.72); }
.honest .rule {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0 4px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}
.honest .rule b { font-size: 19px; color: #fff; font-weight: 700; }
.honest .rule p { margin: 0; color: rgba(231, 239, 232, 0.76); }

/* ---------- подписка ---------- */

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.plan { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.plan.accent { border: 2px solid var(--primary); }
.plan h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.price { font-size: 34px; font-weight: 800; margin: 12px 0 4px; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-note { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.plan li:first-child { border-top: none; }
.plan li::before {
  content: "";
  position: absolute; left: 4px; top: 17px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.plan li.soon { color: var(--muted); }
.plan li.soon::before { border-color: var(--warning); }
.tag-soon {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

/* ---------- цифры ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--primary-light); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font-size: 32px; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- поддержка ---------- */

.support {
  background: var(--surface);
  border-radius: 36px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-sm);
}
.support div { flex: 1; }
.support h2 { margin-bottom: 8px; }
.support p { color: var(--muted); margin: 0; }

/* ---------- подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
  font-size: 15px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--dark); font-size: 15px; margin: 0 0 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }
.legal-note { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; }

/* Реквизиты и контакты — их требует и приём платежей, и магазины приложений. */
.requisites { font-size: 14px; line-height: 1.7; }
.requisites b { color: var(--dark); }

/* ---------- юридические страницы ---------- */

.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: 32px; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.doc h2 { font-size: 22px; margin: 34px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #24402f; font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.doc th { background: var(--surface-alt); font-weight: 700; }
.doc .fill {
  background: #fff5d6;
  border-bottom: 1px dashed var(--warning);
  padding: 0 3px;
  font-weight: 600;
}
.callout {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 15px;
}

/* ---------- телефоны и планшеты ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-2, .plans, .stats, .footer-grid { grid-template-columns: 1fr; }
  .honest { padding: 40px 24px; border-radius: 28px; }
  .honest .rule { grid-template-columns: 1fr; gap: 8px; }
  .support { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .nav { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 24px; }
  .store { min-width: 100%; }
  .stats { grid-template-columns: 1fr; }
}

.stats-note{margin-top:14px;text-align:center;font-size:14px;line-height:1.5;color:var(--muted,#8b9186);max-width:640px;margin-left:auto;margin-right:auto}
