/* Лендинг приложения водителя. Палитра и шрифт — с santehprof.ru. */
:root {
  --brand: #ff6f00;
  --brand-600: #e56400;
  --brand-700: #c85700;
  --amber: #ffa000;
  --amber-100: #ffc369;
  --ink: #1c1c1e;
  --ink-soft: #4a4a4f;
  --muted: #8a8a90;
  --line: #e7e7ea;
  --bg: #f5f5f5;
  --card: #ffffff;
  --ios: #0a84ff;
  --android: #3ddc84;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(28, 28, 30, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 28, 30, 0.12);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 32px);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 245, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}
.site-header__logo { height: 34px; width: 34px; }
.site-header__badge {
  margin-left: auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-700);
  background: #fff3e8;
  border: 1px solid #ffd9b8;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 84px) 0 clamp(28px, 5vw, 48px); text-align: center; }
.hero__kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Montserrat', 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
}

/* ---------- Карточки платформ ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  padding-bottom: clamp(24px, 5vw, 40px);
}
.pcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pcard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent, var(--brand));
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard--ios { --accent: var(--ios); }
.pcard--android { --accent: var(--android); }
.pcard.is-recommended { outline: 2px solid var(--accent); outline-offset: -2px; }

.pcard__head { display: flex; align-items: center; gap: 14px; }
.pcard__glyph {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
}
.pcard__glyph svg { width: 30px; height: 30px; }
.pcard__title { margin: 0; font-size: 22px; font-weight: 800; }
.pcard__title small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }

.pcard__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.pcard__note { margin: 0; color: var(--ink-soft); font-size: 15px; }
.pcard__cta { margin-top: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  font-family: inherit; font-weight: 800; font-size: 17px;
  padding: 15px 22px;
  border: 0; border-radius: 14px;
  background: var(--brand); color: #fff;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--bg); border-color: #d8d8dc; }
.btn svg { width: 20px; height: 20px; }
.btn__sub { font-weight: 700; opacity: 0.85; font-size: 14px; }

/* ---------- Секции инструкций ---------- */
.guide { padding: clamp(30px, 6vw, 56px) 0; }
.guide + .guide { border-top: 1px solid var(--line); }
.guide__head { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 4vw, 32px); }
.guide__head .pcard__glyph { width: 44px; height: 44px; border-radius: 12px; }
.guide__head .pcard__glyph svg { width: 24px; height: 24px; }
.guide__head h2 {
  font-family: 'Montserrat', 'Nunito Sans', sans-serif;
  font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin: 0; letter-spacing: -0.01em;
}
.guide--ios { --accent: var(--ios); }
.guide--android { --accent: var(--android); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 2.5vw, 22px);
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.step__num {
  counter-increment: step;
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  font-weight: 800; font-size: 16px;
  background: var(--accent); color: #fff;
}
.step__num::before { content: counter(step); }
.step__illus {
  border-radius: 12px;
  background: linear-gradient(160deg, #f7f8fa, #eef0f4);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
}
.step__illus svg { width: 100%; height: 100%; }
.step h3 { margin: 0; font-size: 17px; font-weight: 800; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.step p b { color: var(--ink); }

.callout {
  margin-top: clamp(18px, 3vw, 26px);
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8f0;
  border: 1px solid #ffe0c2;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px; color: var(--ink-soft);
}
.callout svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.callout b { color: var(--ink); }

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer__row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--brand); }
.site-footer__sep { margin-left: auto; }

/* ---------- Анимации: обобщённые, без привязки к nth-child ----------
   Любой блок с [data-reveal] анимируется при появлении. Задержка задаётся
   переменной --reveal-i, которую расставляет JS по индексу внутри группы,
   поэтому блоки можно свободно добавлять/убирать. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .pcard, .btn { transition: none; }
}
