/* Chekly — сайт. Палитра приложения: основной #2D6A4F, акцент #1D9E75, фон #F5FBF5. */
:root {
  --primary: #2D6A4F;
  --primary-2: #1D9E75;
  --mint: #52B788;
  --mint-soft: #D8F3DC;
  --bg: #F5FBF5;
  --surface: #FFFFFF;
  --text: #13201A;
  --muted: #5B6B63;
  --line: rgba(45, 106, 79, .14);
  --shadow: 0 24px 60px -24px rgba(19, 60, 42, .35);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #52B788;
    --primary-2: #74C69D;
    --mint-soft: #1C3328;
    --bg: #0E1612;
    --surface: #16211B;
    --text: #E9F2EC;
    --muted: #A3B5AA;
    --line: rgba(116, 198, 157, .16);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
/* Адрес почты не разрываем по дефису (chekly-help) */
a[href^="mailto:"] { white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Шапка: прозрачная, при прокрутке — фон и тень (JS добавляет .scrolled) */
.top {
  position: sticky; top: 0; z-index: 10;
  transition: background .25s, box-shadow .25s;
}
.top.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* Safari в iOS 26 рисует страницу и над видимой областью — под строкой состояния.
   Без этой полосы над шапкой просвечивал прокручиваемый текст. */
.top.scrolled::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px;
  background: var(--bg);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav { display: none; } }

/* Первый экран */
/* Первый экран уходит под прозрачную шапку (−68px = её высота), чтобы свечение
   начиналось с самого верха страницы, а не обрезалось ровной линией под шапкой. */
.hero { position: relative; overflow: hidden; margin-top: -68px; padding: calc(48px + 68px) 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 40%, color-mix(in srgb, var(--mint) 38%, transparent), transparent 70%),
    radial-gradient(35% 45% at 15% 10%, color-mix(in srgb, var(--primary-2) 22%, transparent), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--mint-soft); color: var(--primary);
}
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 18px 0 18px; }
h1 .accent { background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 36ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none;
  background: var(--primary); color: #fff;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; border: 1px solid var(--line); cursor: default; }
.btn.ghost:hover { transform: none; }
.btn svg { width: 20px; height: 20px; }
/* Официальные значки магазинов (Google Play, RuStore): файлы не меняем — ни цвет,
   ни пропорции, ни анимацию. Одинаковая высота: значок Google не меньше соседних;
   отступ между ними — не меньше четверти высоты (правила Google и Apple). */
.cta.badges { gap: 16px; align-items: center; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 52px; width: auto; display: block; }
@media (max-width: 720px) { .cta.badges { flex-direction: column; } }
.soon { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* Веер из трёх скриншотов: Главная спереди, Аналитика и Чеки позади */
.stack-col { display: flex; justify-content: center; }
.stack { position: relative; width: min(470px, 92vw); aspect-ratio: 470 / 545; }
.s {
  position: absolute; top: 4%; left: 50%; width: 46%;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #F5FBF5;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.s-main  { z-index: 2; translate: -50% 0; width: 52%; top: 0; }
.s-left  { z-index: 1; translate: -102% 6%; rotate: -8deg; opacity: .96; }
.s-right { z-index: 1; translate: 2% 6%;   rotate: 8deg;  opacity: .96; }
.stack:hover .s-left  { transform: translateX(-10px) rotate(-2deg); }
.stack:hover .s-right { transform: translateX(10px) rotate(2deg); }
.stack:hover .s-main  { transform: translateY(-6px); }
@media (max-width: 900px) {
  /* minmax(0, 1fr): колонка не шире экрана, даже если что-то внутри не сжимается */
  .hero .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .soon { text-align: center; }
  /* .cta — flex: центрирует justify-content, а не text-align */
  .cta { justify-content: center; }
}

/* Секции */
section { padding: 64px 0; }
@media (max-width: 720px) { section { padding: 44px 0; } .hero { padding: calc(28px + 68px) 0 16px; } h2 { margin-bottom: 28px; } }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-2); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 40px; max-width: 22ch; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic, .trust .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--primary); margin-bottom: 16px;
}
.card .ic svg, .trust .ic svg { width: 24px; height: 24px; }
.card p { margin: 0; font-weight: 600; line-height: 1.45; }

/* Акцентная полоса */
.band { padding: 0; }
.band .inner {
  border-radius: 28px; padding: 48px clamp(24px, 5vw, 64px);
  background: linear-gradient(120deg, #2D6A4F, #1D9E75);
  color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  box-shadow: var(--shadow);
}
.band p { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.35; }
.band .big { font-size: 64px; line-height: 1; opacity: .9; }
@media (max-width: 720px) { .band .inner { grid-template-columns: 1fr; } .band .big { display: none; } }

/* Приватность */
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .trust-list { grid-template-columns: 1fr; } }
.trust { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trust p { margin: 0; font-weight: 600; }
.note { color: var(--muted); margin: 28px 0 0; font-size: 15px; }
/* «политике конфиденциальности» не разрываем — на узком экране переносится целиком */
.note a { white-space: nowrap; }

/* Шаги */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--primary-2); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step p { margin: 0; font-weight: 600; }

/* Финал */
.final { text-align: center; }
.final h2 { margin-left: auto; margin-right: auto; }
.final .cta { justify-content: center; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Появление при прокрутке (JS добавляет .in) */
/* Прячем только при работающем JS (класс .js ставится в <head>) — без JS всё видно сразу */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .s { transition: none; }
  html { scroll-behavior: auto; }
}

/* Политика конфиденциальности */
.doc { max-width: 760px; padding: 32px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; max-width: none; }
.doc .date { color: var(--muted); margin-top: 0; }
.doc .en { color: var(--muted); font-style: italic; }
.doc ul { padding-left: 22px; }
