/* ==========================================================================
   ParkingShare — общая дизайн-система лендинга
   Самодостаточна: не зависит от ассетов приложения на app.parkingshare.ru.
   Повторяет визуальные токены приложения (тёмный фон, томатный акцент,
   шрифты DM Sans / Space Grotesk) для фирменной преемственности.
   ========================================================================== */

/* ---- Дизайн-токены (совпадают с приложением) ---------------------------- */
:root {
  --bg: #0B0D13;
  --bg-elev: #14171F;
  --bg-elev-2: #1A1E28;
  --border: #1E2230;
  --border-strong: #2A2E3E;
  --fg: #E2E4EA;
  --muted: #8B91A3;
  --muted-2: #5C6178;
  --accent: #FF6347;
  --accent-hover: #E5533A;
  --accent-soft: rgba(255, 99, 71, 0.14);
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #60A5FA;

  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 80px rgba(255, 99, 71, 0.18);

  --section-y: clamp(56px, 9vw, 110px);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Фоновые «blob’ы» (как в приложении) -------------------------------- */
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.14; }
.bg-blob-1 { width: min(560px, 90vw); height: min(560px, 90vw); background: var(--accent); top: -180px; right: -140px; animation: bf1 22s ease-in-out infinite; }
.bg-blob-2 { width: min(460px, 80vw); height: min(460px, 80vw); background: var(--success); bottom: -160px; left: -140px; animation: bf2 26s ease-in-out infinite; }
@keyframes bf1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-70px,55px) scale(1.1)} 66%{transform:translate(45px,-35px) scale(.92)} }
@keyframes bf2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(55px,-45px) scale(.9)} 66%{transform:translate(-35px,35px) scale(1.08)} }

/* ---- Каркас ------------------------------------------------------------- */
.page { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-y) 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 99, 71, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title .accent { color: var(--accent); }
.section-lead {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 640px;
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Шапка -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 19, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transform: translateZ(0);
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand__icon { color: var(--accent); font-size: 22px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.site-nav a:hover { color: var(--fg); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .link-muted { color: var(--muted); font-size: 15px; font-weight: 500; }
.header-cta .link-muted:hover { color: var(--fg); }
@media (max-width: 860px) { .site-nav { display: none; } }
@media (max-width: 560px) { .header-cta .link-muted { display: none; } }

/* ---- Кнопки ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap; text-align: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(255, 99, 71, 0.28); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(.99); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.03); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-top: clamp(60px, 9vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero__title .accent { color: var(--accent); }
.hero__sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted-2); font-size: 14px; }
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof i { color: var(--success); }

/* Превью приложения — рамка телефона с живым iframe */
.hero__visual { text-align: center; }
.phone-frame {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 9 / 19.2;
  background: #05060A;
  border: 2px solid var(--border-strong);
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
/* Боковые кнопки корпуса */
.phone-frame::before,
.phone-frame::after {
  content: ""; position: absolute; right: -6px; width: 4px;
  background: var(--border-strong); border-radius: 2px;
}
.phone-frame::before { top: 130px; height: 54px; }              /* питание */
.phone-frame::after  { top: 110px; height: 30px; right: auto; left: -6px; box-shadow: 0 48px 0 var(--border-strong); } /* громкость */
/* Камера-«точка» поверх экрана (не перекрывает контент) */
.phone-frame__camera {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; background: #05060A;
  border-radius: 50%; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 3px rgba(96,165,250,.35);
}
.phone-frame__screen {
  display: block; width: 100%; height: 100%;
  border: 0; border-radius: 36px; background: var(--bg);
  object-fit: cover;
}
.phone-caption { margin-top: 16px; font-size: 13px; color: var(--muted-2); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  /* На телефоне «телефон в телефоне» не показываем — только плоский скриншот после текста */
  .hero__visual { order: 2; }
  .phone-frame {
    max-width: 360px; aspect-ratio: auto;
    background: none; border: none; padding: 0; border-radius: var(--radius);
    box-shadow: var(--shadow-card); overflow: hidden;
  }
  .phone-frame::before, .phone-frame::after, .phone-frame__camera { display: none; }
  .phone-frame__screen { border-radius: 0; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; }
}

/* ---- Сетка «боли» ------------------------------------------------------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s, transform .25s;
}
.pain-card:hover { border-color: rgba(248,113,113,.3); transform: translateY(-3px); }
.pain-card__icon { font-size: 26px; color: var(--danger); margin-bottom: 16px; }
.pain-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.pain-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---- Сетка «возможности» ------------------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: border-color .25s, transform .25s, background .25s;
}
.feature-card:hover { border-color: rgba(255,99,71,.3); transform: translateY(-4px); background: var(--bg-elev-2); }
.feature-card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- Шаги «как это работает» -------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step__num {
  counter-increment: step;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent);
  margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.step__num::before {
  content: "0" counter(step);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,99,71,.35);
  background: var(--accent-soft); display: grid; place-items: center; font-size: 15px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step__icon { font-size: 22px; color: var(--accent); margin-bottom: 14px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---- Двухколоночный блок «разделение» ----------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; position: relative; overflow: hidden;
}
.split-card--owner { border-top: 3px solid var(--accent); }
.split-card--renter { border-top: 3px solid var(--success); }
.split-card__tag { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.split-card--owner .split-card__tag { color: var(--accent); }
.split-card--renter .split-card__tag { color: var(--success); }
.split-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 16px; }
.split-card ul li { display: flex; gap: 12px; padding: 9px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--border); }
.split-card ul li:last-child { border-bottom: none; }
.split-card ul li i { color: var(--success); margin-top: 4px; flex-shrink: 0; }
.split-card--owner ul li i { color: var(--accent); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---- Цифры / статистика ------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 42px); color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat__label { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Доверие / безопасность -------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust-item { display: flex; gap: 16px; padding: 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.trust-item__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(52,211,153,.12); color: var(--success); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.trust-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---- Цитаты / отзывы ---------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px;
}
.quote__text { font-size: 16px; line-height: 1.7; }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote__name { font-weight: 600; font-size: 14px; }
.quote__role { font-size: 12.5px; color: var(--muted); }
.quote__stars { color: var(--warning); font-size: 13px; letter-spacing: 2px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---- FAQ (с <details> — нативно индексируется) -------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; margin-bottom: 14px; overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: rgba(255,99,71,.3); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 17px;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--accent); transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---- Финальный CTA ------------------------------------------------------ */
.cta-band {
  background: linear-gradient(135deg, rgba(255,99,71,.12), rgba(255,99,71,.03));
  border: 1px solid rgba(255,99,71,.25); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px); text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-band .btn { margin: 0 auto; }

/* ---- Финансовый блок (вариант 2) --------------------------------------- */
.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.money-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; position: relative;
}
.money-card--featured { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.money-card__tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 999px; }
.money-card__price { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--fg); margin: 8px 0 4px; }
.money-card__period { color: var(--muted-2); font-size: 13px; margin-bottom: 18px; }
.money-card ul { text-align: left; }
.money-card ul li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--muted); }
.money-card ul li i { color: var(--success); margin-top: 4px; }
@media (max-width: 820px) { .money-grid { grid-template-columns: 1fr; } }

/* ---- Подвал ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 16px; color: var(--fg); }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Сквозные утилиты --------------------------------------------------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.nowrap { white-space: nowrap; }
.badge-soft { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* ---- Доступность: уважаем prefers-reduced-motion ----------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
