/* PitStop website v2 — редизайн по референсам Lazyweb (FlutterFlow, Raycast, onX Offroad):
   глубокий фон с радиальными свечениями, центрированный hero с крупной типографикой,
   плавающий навбар-пилюля, контрастные CTA, карточки с glow-бордером, большой ритм секций.
   Без внешних шрифтов/CDN — системный стек, быстрая загрузка из РФ. */

:root {
  --bg: #0b0c10;
  --bg-soft: #101218;
  --card: #14161c;
  --card-2: #1a1d25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f6f8;
  --muted: #8f96a3;
  --accent: #d4af37;
  --accent-2: #e5c158;
  --accent-dark: #a8861f;
  --accent-ink: #171205;
  --ok: #4cc38a;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Floating navbar (Raycast-style pill) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0 10px;
  background: linear-gradient(rgba(11, 12, 16, 0.92), rgba(11, 12, 16, 0.75));
  backdrop-filter: blur(10px);
}

.header-pill {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}

.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 48px; padding: 0 10px;
  background: rgba(20, 22, 28, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); padding-left: 8px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { text-decoration: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; padding-right: 6px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .nav-cta {
  background: transparent; color: var(--accent-2);
  border: 1px solid rgba(212, 175, 55, 0.55);
  font-weight: 700; padding: 7px 17px; border-radius: 999px;
  white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.nav .nav-cta:hover { background: rgba(212, 175, 55, 0.14); text-decoration: none; }

/* Language switcher chip (RU|EN), активный сегмент — золотой */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 2px;
}
.lang-switch a, .lang-switch span {
  padding: 4px 11px; font-size: 13px; font-weight: 700;
  color: var(--muted); border-radius: 999px; line-height: 1.4;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch .lang-active { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 760px) {
  .nav > a:not(.nav-cta) { display: none; }
  .header-inner { justify-content: space-between; }
  .nav { gap: 10px; }
  .nav .nav-cta { padding: 7px 13px; font-size: 14px; }
  .lang-switch a, .lang-switch span { padding: 4px 8px; font-size: 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
}

/* ---------- Hero: текст слева, мокап телефона справа (на мобиле — столбиком) ---------- */

.hero {
  position: relative;
  padding: 72px 0 56px;
}
.hero::before {
  content: ""; position: absolute; inset: -80px 0 0;
  background:
    radial-gradient(640px 340px at 25% -40px, rgba(212, 175, 55, 0.16), transparent 70%),
    radial-gradient(900px 500px at 80% 110%, rgba(212, 175, 55, 0.09), transparent 72%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  width: 100%; box-sizing: border-box; gap: 48px;
}
.hero-text { flex: 0 1 55%; min-width: 320px; text-align: left; }
.hero-text h1 { overflow-wrap: break-word; }
.phone-wrap { flex: 0 1 40%; display: flex; justify-content: flex-end; }
.phone-wrap img { max-width: 100%; height: auto; object-fit: contain; }
@media (max-width: 1080px) {
  .hero-inner { flex-direction: column; }
  .hero-text { flex: none; min-width: 0; width: 100%; text-align: center; }
  .phone-wrap { flex: none; justify-content: center; }
  .hero { padding: 56px 0 40px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20, 22, 28, 0.8); border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 13.5px; padding: 7px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08; font-weight: 800; letter-spacing: -1.2px;
  max-width: 16ch; margin: 0;
}
.hero h1 .accent { white-space: nowrap;

  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 58ch; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px; margin-top: 34px; }
@media (max-width: 900px) { .hero-actions { justify-content: center; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 16.5px;
  border: 1px solid transparent; cursor: pointer; letter-spacing: 0.1px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover { background: var(--accent-2); text-decoration: none; box-shadow: 0 10px 34px rgba(212, 175, 55, 0.45); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); text-decoration: none; }
.btn-light { background: #fff; color: #101218; }
.btn-light:hover { background: #eceef2; text-decoration: none; }

/* Store badge-CTA (главная кнопка hero — скачать бесплатно): залитая фирменным
   оранжевым, перетягивает внимание; вторая кнопка hero — контурная .btn-ghost */
.btn-store {
  display: inline-flex; align-items: center; gap: 13px;
  background: var(--accent); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 9px 26px 9px 10px;
  box-shadow: 0 10px 34px rgba(212, 175, 55, 0.4);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-store:hover { text-decoration: none; transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 14px 40px rgba(212, 175, 55, 0.5); }
.store-icon {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
  background: var(--accent-ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.store-text { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.store-text small { font-size: 11px; font-weight: 700; color: rgba(23, 18, 5, 0.72); text-transform: uppercase; letter-spacing: 0.8px; }
.store-text b { font-size: 18px; font-weight: 800; color: var(--accent-ink); letter-spacing: -0.2px; }

/* Визуальная цепочка OBD2: адаптер → приложение → экран */
.obd-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 4px; margin: 0 auto 46px; max-width: 720px;
}
.obd-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 22px; min-width: 150px;
}
.obd-step .obd-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(212, 175, 55, 0.13); border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex; align-items: center; justify-content: center;
}
.obd-step .obd-cap { font-size: 13.5px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.35; }
.obd-arrow { color: var(--accent); font-size: 22px; font-weight: 700; padding: 0 8px; }

/* Отзывы из RuStore (заполняется из /reviews.json; без файла секция скрыта) */
#reviews { display: none; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 10px 22px; margin-bottom: 34px;
  font-size: 15.5px; font-weight: 700;
}
.rating-badge .rv-avg { color: var(--accent); font-size: 18px; font-weight: 800; }
.rating-badge .rv-total { color: var(--muted); font-weight: 500; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.rv-stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }
.review-card p {
  color: #ccd0d8; font-size: 15.5px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.rv-meta { color: var(--muted); font-size: 13px; margin-top: auto; }
.reviews-more { text-align: center; margin-top: 30px; }

/* Полоса «для кого» (марки/JDM) и строка «ещё внутри» */
.more-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 26px; }
.audience-strip {
  margin-top: 16px; padding: 18px 28px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  color: var(--muted); font-size: 16px;
}
.audience-strip b { color: var(--text); }

.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Phone showcase ---------- */

.phone-wrap { position: relative; display: flex; justify-content: center; margin-top: 0; }
.phone-wrap::before {
  content: ""; position: absolute; top: 8%; bottom: 12%; left: 50%; transform: translateX(-50%);
  width: 560px; max-width: 92vw;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.16), transparent 78%);
  pointer-events: none;
}
.phone {
  width: 318px; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #262932, #101216);
  border: 1px solid #2f333d;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 70px rgba(212, 175, 55, 0.12);
}
.phone-screen { background: var(--bg-soft); border-radius: 29px; overflow: hidden; }
.phone-status { display: flex; justify-content: space-between; padding: 11px 18px 4px; font-size: 11.5px; color: var(--muted); }
.phone-body { padding: 10px 14px 16px; }
.phone-title { font-size: 15.5px; font-weight: 700; margin: 6px 2px 10px; display: flex; align-items: center; justify-content: space-between; }
.phone-title .badge-pro {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  color: var(--accent-ink); font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 9px; letter-spacing: 0.4px;
}
.phone-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 15px; margin-bottom: 10px;
}
.phone-card .label { font-size: 11.5px; color: var(--muted); }
.phone-card .value { font-size: 21px; font-weight: 800; margin-top: 2px; letter-spacing: -0.4px; }
.phone-card .value small { font-size: 12px; color: var(--muted); font-weight: 500; }
.phone-card .delta { font-size: 11.5px; color: var(--ok); margin-top: 2px; }
.phone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-row .phone-card .value { font-size: 15.5px; }
.spark { margin-top: 6px; width: 100%; height: 46px; }
.phone-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: rgba(212, 175, 55, 0.14); }

/* ---------- Sections ---------- */

.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2); font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 14px;
}

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 84px 0; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.card:hover { border-color: rgba(212, 175, 55, 0.45); background: var(--card-2); transform: translateY(-3px); }
.card h3 { font-size: 18.5px; font-weight: 700; margin: 16px 0 7px; letter-spacing: -0.2px; }
.card p { color: var(--muted); font-size: 15.5px; }

.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(212, 175, 55, 0.13);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Check list (Pro) ---------- */

.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.16); border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-2); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-list .cl-text strong { display: block; font-size: 16.5px; }
.check-list .cl-text span { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing (FlutterFlow Growth-card паттерн) ---------- */

.pricing-card {
  background: linear-gradient(175deg, var(--card-2), var(--card) 55%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  padding: 40px 36px; max-width: 480px; margin: 0 auto;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 70px rgba(212, 175, 55, 0.13), 0 0 0 1px rgba(212, 175, 55, 0.08);
}
.pricing-card::before {
  content: ""; position: absolute; top: -110px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 190px;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.3), transparent 75%);
  pointer-events: none;
}
.pricing-card .plan-name {
  color: var(--accent-2); font-weight: 800; font-size: 13.5px;
  letter-spacing: 2.4px; text-transform: uppercase; text-align: center;
}
.pricing-card .plan-price { font-size: 46px; font-weight: 800; margin-top: 10px; text-align: center; letter-spacing: -1px; }
.pricing-card .plan-sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; text-align: center; }
.pricing-card .btn { width: 100%; margin-top: 26px; }
.pricing-fineprint { color: var(--muted); font-size: 13px; margin-top: 16px; text-align: center; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before {
  display: inline-flex; width: 36px; height: 36px; border-radius: 11px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 17px; align-items: center; justify-content: center;
}
.step h3 { font-size: 17.5px; margin: 14px 0 7px; }
.step p { color: var(--muted); font-size: 15px; }
.step .mono {
  display: inline-block; margin-top: 10px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 13px; font-family: ui-monospace, Consolas, monospace;
  font-size: 13px; color: var(--accent-2);
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* ---------- Stats band ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stat .num { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--accent); }
.stat .cap { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Articles ---------- */

.article-list { display: grid; gap: 18px; }
.article-item {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.article-item:hover { border-color: rgba(212, 175, 55, 0.45); transform: translateY(-2px); text-decoration: none; }
.article-item h3 { font-size: 20px; margin-bottom: 8px; }
.article-item:hover h3 { color: var(--accent-2); }
.article-item p { color: var(--muted); font-size: 15.5px; }
.article-item .meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

.article-body { max-width: 740px; margin: 0 auto; }
.article-body h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.18; letter-spacing: -0.6px; margin: 20px 0 10px; }
.article-body .meta { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.article-body h2 { font-size: 24px; margin: 38px 0 13px; letter-spacing: -0.3px; }
.article-body p { margin-bottom: 17px; color: #ccd0d8; }
.article-body ul, .article-body ol { margin: 0 0 17px 22px; color: #ccd0d8; }
.article-body li { margin-bottom: 9px; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px; margin: 22px 0;
  background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}
.article-body code {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; color: var(--accent-2);
}
.article-cta {
  margin-top: 40px; background: linear-gradient(175deg, var(--card-2), var(--card));
  border: 1px solid rgba(212, 175, 55, 0.35); border-radius: var(--radius); padding: 30px;
}
.article-cta h3 { font-size: 20px; margin-bottom: 9px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; text-align: center; padding: 110px 0; overflow: hidden;
  background: var(--bg-soft); border-top: 1px solid var(--line);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 280px at 50% 0%, rgba(212, 175, 55, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-band > .container { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.6px; }
.cta-band p { color: var(--muted); margin: 14px auto 30px; max-width: 54ch; font-size: 18px; }
.cta-band .btn { margin: 0 6px 10px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin-top: 20px; color: #62697a; font-size: 13px; }
