/* ООО "ТЕМПО" — «Ритм» / tempo timeline. Deep teal-petrol dark theme, Sora display. */

:root {
  --bg: #06201f;
  --bg-2: #0a2a28;
  --panel: #0d3230;
  --panel-2: #103a37;
  --ink: #eafbf4;
  --muted: #8fb8ae;
  --line: rgba(120, 200, 180, 0.16);
  --accent: #38e6a2;      /* bright teal-lime */
  --accent-2: #17b28a;
  --accent-ink: #04201a;
  --tick: rgba(56, 230, 162, 0.22);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --wrap: 1160px;
  --num: "Sora", ui-monospace, monospace;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  /* subtle repeating vertical "beat" tick pattern */
  background-image:
    linear-gradient(180deg, var(--bg-2), var(--bg) 340px),
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 84px);
  color: var(--ink);
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }

/* tabular numerals for timeline / prices */
.beat-num, .tl-num, .car-price, .req-grid p, .hero-stats dt {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- scroll progress (sticky beat bar) ---------- */
.beat-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 200;
}
.beat-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px var(--accent);
  transition: width 0.08s linear;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 32, 31, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-tick {
  width: 12px; height: 26px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--accent);
}
.brand-name { font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink) !important; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-2); }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 13px 26px; transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 26px rgba(56, 230, 162, 0.28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-line {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent-2); padding: 9px 18px; font-size: 0.88rem;
}
.btn-line:hover { background: var(--accent); color: var(--accent-ink); }
.btn-block { width: 100%; }

/* ---------- section head ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-kicker {
  display: inline-block; font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-lead { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 22px;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(56, 230, 162, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 230, 162, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(56, 230, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 230, 162, 0); }
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; }
.hero-lead { color: var(--muted); font-size: 1.12rem; margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-stats dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hero-stats dd { margin: 6px 0 0; font-size: 0.92rem; color: var(--ink); }

.hero-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 40px);
  opacity: 0.5; pointer-events: none;
}
.card-label { position: relative; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card-title { position: relative; font-size: 1.15rem; font-weight: 600; margin-top: 16px; line-height: 1.4; }
.mini-track { position: relative; display: flex; align-items: center; gap: 0; margin-top: 26px; }
.mini-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.mini-node {
  position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); margin-right: auto;
}
.mini-node:last-child { margin-right: 0; }
.mini-node.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
.mini-track.wide { max-width: 340px; }
.card-foot { position: relative; margin-top: 18px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }

/* signature horizontal rhythm line under hero */
.rhythm-line {
  position: relative; height: 2px; margin: 64px 0 0;
  background: var(--line);
}
.rhythm-line .rl-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: var(--rl, 0%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.1s linear;
}

/* ---------- beats (rental + ads on the track) ---------- */
.beats { padding: 72px 0; }
.beats .wrap { position: relative; }
.beats-track {
  position: absolute; left: 24px; right: 24px; top: 96px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-2) 0 18px, transparent 18px 34px);
  opacity: 0.5;
}
.beats-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.beat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; transition: transform 0.25s, border-color 0.25s;
}
.beat-card:hover { transform: translateY(-4px); border-color: rgba(56, 230, 162, 0.4); }
.beat-card::before {
  content: ""; position: absolute; top: -8px; left: 34px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent); border: 3px solid var(--bg);
}
.beat-num {
  font-family: var(--num); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent);
}
.beat-card h2 { font-size: 1.5rem; margin: 12px 0 10px; }
.beat-lead { color: var(--muted); }
.beat-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.beat-list li { position: relative; padding-left: 22px; font-size: 0.96rem; color: var(--ink); }
.beat-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent);
}
.beat-list strong { color: var(--ink); font-weight: 700; }

/* ---------- fleet (horizontal scroll strip) ---------- */
.fleet { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fleet-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 300px;
  gap: 22px; overflow-x: auto; padding: 6px 4px 24px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--accent-2) transparent;
}
.fleet-strip::-webkit-scrollbar { height: 8px; }
.fleet-strip::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 999px; }
.fleet-strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.car-card {
  scroll-snap-align: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, border-color 0.25s;
}
.car-card:hover { transform: translateY(-4px); border-color: rgba(56, 230, 162, 0.4); }
.car-media { aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.car-card:hover .car-media img { transform: scale(1.05); }
.car-body { padding: 18px 20px 22px; }
.car-class {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.car-body h3 { font-size: 1.15rem; }
.car-price { color: var(--muted); margin: 6px 0 16px; font-weight: 500; }

/* ---------- process (main horizontal timeline) ---------- */
.process { padding: 82px 0; }
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px;
  background: var(--line);
}
.tl-node { position: relative; padding-top: 46px; }
.tl-tick {
  position: absolute; top: 8px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); transition: all 0.35s;
}
.tl-node.is-live .tl-tick { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--accent); }
.tl-num {
  font-family: var(--num); font-size: 0.85rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em; display: block; margin-bottom: 8px; opacity: 0.55; transition: opacity 0.35s;
}
.tl-node.is-live .tl-num { opacity: 1; }
.tl-node h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tl-node p { color: var(--muted); font-size: 0.95rem; }

/* ---------- lead form ---------- */
.lead { padding: 82px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.lead-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.lead-intro h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 12px 0 0; }
#leadForm {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 230, 162, 0.16);
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
#formMessage { margin-top: 14px; font-size: 0.92rem; min-height: 1em; }
#formMessage.is-error { color: #ff9a9a; }
#formMessage.is-success { color: var(--accent); }
#mailLink { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 0.9rem; }
.is-hidden { display: none; }

/* ---------- requisites ---------- */
.requisites { padding: 40px 0 8px; }
.requisites details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.requisites summary {
  cursor: pointer; padding: 20px 26px; font-weight: 600; list-style: none;
  color: var(--ink); font-size: 1rem;
}
.requisites summary::-webkit-details-marker { display: none; }
.requisites summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.requisites details[open] summary::after { content: "−"; }
.req-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px;
  padding: 6px 26px 28px;
}
.req-grid span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.req-grid p { margin: 4px 0 0; font-size: 0.92rem; color: var(--ink); word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { width: 100%; color: var(--muted); font-size: 0.82rem; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .beats-grid { grid-template-columns: 1fr; }
  .beats-track { display: none; }
  .beat-card::before { left: 30px; }
  .lead-grid { grid-template-columns: 1fr; gap: 32px; }
  /* timeline -> vertical */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .tl-node { padding: 4px 0 30px 40px; }
  .tl-tick { top: 4px; left: 0; }
  .tl-num { display: inline-block; margin-right: 8px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 48px 0 0; }
  .hero-stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .fleet-strip { grid-auto-columns: 82%; }
  .req-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 10px; }
  #leadForm { padding: 22px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
  .beat-progress span, .rhythm-line .rl-fill { transition: none; }
  .car-card, .beat-card, .car-media img { transition: none; }
  .tl-tick, .tl-num { transition: none; }
}


/* === Этап 1: фундамент (авто-добавлено) === */
img { height: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 999;
  padding: 10px 18px; background: #111; color: #fff; border-radius: 6px;
  font-size: .9rem; text-decoration: none;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* === Этап 2: функциональность === */

/* --- фильтр парка (beat-node pills) --- */
.fleet-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.fleet-filter-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.fleet-filter-chip::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); flex: 0 0 auto;
}
.fleet-filter-chip:hover { border-color: var(--accent-2); color: var(--ink); }
.fleet-filter-chip[aria-pressed="true"] {
  border-color: var(--accent); color: var(--ink); background: var(--panel);
}
.fleet-filter-chip[aria-pressed="true"]::before {
  background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.car-card.is-filtered { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fleet-filter-chip { transition: border-color 0.2s, color 0.2s, background 0.2s; }
}

/* --- лайтбокс авто --- */
.car-zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.car-zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.car-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.car-modal[hidden] { display: none; }
.car-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 22, 21, 0.86); backdrop-filter: blur(5px); }
.car-modal-panel {
  position: relative; z-index: 1; width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: var(--panel); border: 1px solid rgba(56, 230, 162, 0.35);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.car-modal-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg); }
.car-modal-body { padding: 22px 26px 24px; }
.car-modal-class {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.car-modal-title { font-size: 1.4rem; margin: 0 0 6px; }
.car-modal-price { display: block; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.car-modal-beat {
  height: 2px; margin: 20px 0 0;
  background: repeating-linear-gradient(90deg, var(--accent-2) 0 18px, transparent 18px 34px);
  position: relative;
}
.car-modal-beat::before, .car-modal-beat::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.car-modal-beat::before { left: 0; }
.car-modal-beat::after { right: 0; }
.car-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: rgba(6, 32, 31, 0.8); border: 1px solid var(--line); color: var(--ink);
  font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.car-modal-close:hover { border-color: var(--accent); color: var(--accent); }
body.car-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .car-modal-panel { animation: tempoModalIn 0.26s ease; }
  @keyframes tempoModalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* --- калькулятор --- */
.calc { padding: 72px 0; }
.calc-panel {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.calc-fields .field { margin-bottom: 18px; }
.calc-stepper { display: flex; gap: 10px; align-items: stretch; }
.calc-stepper input { text-align: center; font-variant-numeric: tabular-nums; }
.calc-step {
  flex: 0 0 46px; border-radius: 10px; cursor: pointer; font-size: 1.15rem; line-height: 1;
  background: var(--bg); border: 1px solid var(--line); color: var(--accent);
}
.calc-step:hover { border-color: var(--accent); }
.calc-result { border-left: 1px solid var(--line); padding-left: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.calc-sum-label {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.calc-sum {
  font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.1; color: var(--ink); margin: 10px 0 0;
}
.calc-track {
  width: 100%; height: 2px; margin: 16px 0;
  background: repeating-linear-gradient(90deg, var(--accent-2) 0 18px, transparent 18px 34px);
  opacity: 0.6;
}
.calc-note { color: var(--muted); font-size: 0.82rem; margin-bottom: 18px; }
@media (max-width: 900px) {
  .calc-panel { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
}

/* --- FAQ --- */
.faq { padding: 72px 0 82px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.faq-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line);
}
.faq-item[open] { border-color: rgba(56, 230, 162, 0.4); }
.faq-item[open]::before { background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 24px;
  font-weight: 600; font-size: 0.98rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.3rem; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 24px 20px; color: var(--muted); font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item { transition: border-color 0.25s; }
}

/* --- sticky mobile CTA --- */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 32, 31, 0.92); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(56, 230, 162, 0.35);
  }
  .sticky-cta.is-off { display: none; }
  .sticky-cta-link {
    display: flex; align-items: center; justify-content: center;
    padding: 14px; border-radius: 999px; text-decoration: none;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 700; font-size: 0.98rem;
    box-shadow: 0 8px 26px rgba(56, 230, 162, 0.3);
  }
}

/* --- печать реквизитов --- */
.print-req {
  margin: 0 26px 26px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  background: transparent; border: 1px solid var(--accent-2); color: var(--accent);
}
.print-req:hover { background: var(--accent); color: var(--accent-ink); }
@media print {
  body.print-requisites * { visibility: hidden; }
  body.print-requisites .requisites,
  body.print-requisites .requisites * { visibility: visible; }
  body.print-requisites .requisites {
    position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0;
  }
  body.print-requisites .requisites details,
  body.print-requisites .requisites summary::after { background: #fff !important; }
  body.print-requisites .requisites * {
    color: #000 !important; background: #fff !important;
    box-shadow: none !important; text-shadow: none !important; border-color: #999 !important;
  }
  body.print-requisites .print-req { display: none; }
}


/* === Этап 3: тонировка фото и микро-детали === */
#fleet img, .btlb__img, .car-modal__img, .lightbox__img {
  filter: hue-rotate(6deg) saturate(.96) contrast(1.05);
}
::selection { background: #38e6a2; color: #06201f; }
html { scrollbar-color: #38e6a2 #0a2a28; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a2a28; }
::-webkit-scrollbar-thumb { background: #38e6a2; border-radius: 6px; border: 2px solid #0a2a28; }

/* === Этап 3: wow === */

.mini-node.on, .beats .on { animation: gwPulse 2.4s ease-in-out infinite; }
@keyframes gwPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(56,230,162,.5); } 50% { box-shadow: 0 0 0 9px rgba(56,230,162,0); } }
@media (prefers-reduced-motion: reduce) { .mini-node.on, .beats .on { animation:none; } }


/* === Этап 4: отзывы === */
.btrev { padding: clamp(48px,6vw,76px) clamp(18px,4vw,48px); }
.btrev__wrap { max-width: 1200px; margin: 0 auto; }
.btrev__title { margin: 0 0 30px; }
.btrev__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.btrev__item { margin: 0; padding: 24px 24px 20px; border-left: 3px solid #38e6a2; position: relative; }
.btrev__item::before { content: "\201C"; position: absolute; top: 6px; right: 16px; font-size: 3rem; line-height: 1; color: #38e6a2; opacity: .35; font-family: Georgia, serif; }
.btrev__item blockquote { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.55; }
.btrev__item figcaption { font-size: .82rem; opacity: .75; }
.btrev__note { margin-top: 16px; font-size: .74rem; opacity: .5; }
@media (max-width: 900px) { .btrev__grid { grid-template-columns: 1fr; } }
.btrev__item { background: rgba(255,255,255,.04); }

/* === Этап 4: тап-таргеты === */
@media (max-width: 900px) {
  nav a, footer a { padding-top: 8px; padding-bottom: 8px; }
}

/* === Этап 4: анти-переполнение v2 === */
@media (max-width: 900px) {
  html, body { overflow-x: clip; }
}

/* === Этап 4: форма на мобиле (анти-min-content) === */
@media (max-width: 900px) {
  #lead * { min-width: 0; }
  #lead input, #lead select, #lead textarea { width: 100%; }
  #lead .btconsent input[type="checkbox"] { width: 16px; flex: 0 0 auto; }
}

/* === Этап 4: рекламный шоукейс === */
.btads { margin: 34px 0 0; }
.btads img { width: 100%; height: auto; display: block; border-radius: 6px;
  border: 1px solid #38e6a2; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.btads figcaption { margin-top: 10px; font-size: .82rem; opacity: .75;
  padding-left: 12px; border-left: 3px solid #38e6a2; }

/* === Этап 5: согласие ПДн === */
.btconsent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem;
  line-height: 1.5; opacity: .9; grid-column: 1 / -1; margin: 4px 0 2px; }
.btconsent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto;
  accent-color: #38e6a2; }
.btconsent a { text-decoration: underline; }

/* === Этап 6: аудит (доверие, форма, форматы) === */
.bttrust { display:flex; flex-wrap:wrap; gap:8px 22px; justify-content:center; align-items:center;
  padding:14px 20px; font-size:.82rem; letter-spacing:.02em; opacity:.92;
  border-top:1px solid #38e6a255; border-bottom:1px solid #38e6a255; }
.bttrust span { white-space:nowrap; }
.bttrust span::before { content:"✓ "; color:#38e6a2; font-weight:700; }
.btformats { list-style:none; margin:26px 0 0; padding:0; display:grid;
  grid-template-columns:repeat(6,1fr); gap:10px; }
.btformats li { display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:14px 6px; font-size:.78rem; text-align:center; border:1px solid #38e6a244;
  border-radius:8px; color:inherit; }
.btformats svg { color:#38e6a2; }
.btmore { grid-column:1/-1; margin:2px 0; }
.btmore summary { cursor:pointer; font-size:.85rem; opacity:.8; padding:8px 0; }
.btmore summary:hover { opacity:1; }
.btmore__grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; padding-top:12px; }
.btnote { grid-column:1/-1; font-size:.8rem; opacity:.65; margin:8px 0 0; line-height:1.5; }
@media (max-width:900px){ .btformats { grid-template-columns:repeat(3,1fr); } }
@media (max-width:600px){ .btmore__grid { grid-template-columns:1fr; } .btformats { grid-template-columns:repeat(2,1fr); } }

/* === P1: светлые вставки === */
#faq, #reviews { background: #eef7f2; color: #0d2b26; }
#faq summary, #faq h2, #reviews h2 { color: #0d2b26; }
#faq details { border-color: rgba(13,43,38,.18); }
#reviews .btrev__item { background: #fff; }
#faq p, #reviews blockquote, #reviews figcaption { color: #2c4a44; }

/* === P1: юрссылки в футере === */
footer a[href^="privacy"], footer a[href^="terms"], footer a[href^="mailto"] {
  opacity: .62; font-size: .86em; }
footer a[href^="privacy"]:hover, footer a[href^="terms"]:hover, footer a[href^="mailto"]:hover { opacity: 1; }

/* === Волна 1: интеграция === */

.bttrust { border-color: rgba(56,230,162,.3); font-variant-numeric: tabular-nums; }
.bttrust span::before { content: ""; } .bttrust span + span::before { content: "●  "; color: #38e6a2; font-size: .6em; vertical-align: middle; }
.btformats li { border-color: rgba(56,230,162,.35); border-radius: 4px; background: rgba(56,230,162,.04); }

/* === Волна 2: паспарту — фото вплавляются в тёмный фон === */
.car-zoom { position: relative; overflow: hidden; }
.car-zoom::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 44px 22px #06201f66, inset 0 0 90px 46px #06201f40; }
.car-zoom img { filter: brightness(.9) saturate(1.05) contrast(1.04); }
.btads { position: relative; }
.btads::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 6px;
  box-shadow: inset 0 0 46px 24px #06201f59; }
.btads figcaption { position: relative; }

/* === Волна 3: композиционный ритм === */
/* акт «Парк + Калькулятор»: секции сшиваются */
#fleet:has(+ #calc) { padding-bottom: clamp(14px, 2.2vw, 28px); }
#fleet + #calc { padding-top: clamp(14px, 2.2vw, 28px); }
/* акт «Отзывы + FAQ» */
#reviews:has(+ #faq) { padding-bottom: clamp(16px, 2.4vw, 30px); }
#reviews + #faq { padding-top: clamp(16px, 2.4vw, 30px); }
/* вдох перед актом отзывов */
* + #reviews { margin-top: clamp(8px, 1.6vw, 22px); }
/* сценарии/сравнение прижаты к trust-полосе */
.bttrust + .btscen, .bttrust + .btcompare { padding-top: clamp(18px, 2.6vw, 30px); }

/* === Волна 5: футер-подвал === */
.btfoot { margin-top: clamp(30px,4vw,54px); padding: clamp(28px,4vw,46px) clamp(20px,4vw,48px) 26px; border-top: 1px solid #38e6a255; }
.btfoot__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.btfoot__brand strong { font-size: 1.15rem; }
.btfoot__brand p { margin: 8px 0 0; font-size: .85rem; opacity: .7; max-width: 32ch; }
.btfoot__col { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.btfoot__col span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .55; }
.btfoot__col a { opacity: .85; } .btfoot__col a:hover { opacity: 1; color: #38e6a2; }
.btfoot__legal { max-width: 1200px; margin: 26px auto 0; font-size: .74rem; opacity: .5; }
@media (max-width: 900px) { .btfoot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .btfoot__grid { grid-template-columns: 1fr; } }


/* === Итерация 1: подстраницы === */

/* кнопки-ссылки */
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* хаб-навигация по разделам (главная) */
.beats-grid--3 { grid-template-columns: repeat(3, 1fr); }
a.beat-card { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--ink); }
a.beat-card .beat-lead { margin-bottom: 4px; }
.beat-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  color: var(--accent); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
}
.beat-more::after { content: "→"; transition: transform 0.2s; }
a.beat-card:hover .beat-more::after { transform: translateX(5px); }
@media (max-width: 900px) { .beats-grid--3 { grid-template-columns: 1fr; } }

/* герой подстраниц */
.page-hero { padding: 64px 0 0; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; max-width: 24ch; }
.page-hero .hero-lead { max-width: 620px; }
.page-hero .rhythm-line { margin-top: 56px; }
@media (max-width: 600px) { .page-hero { padding: 44px 0 0; } }

/* секция форматов (страница рекламы) */
.formats-block { padding: 72px 0 12px; }
.formats-block .btformats { margin-top: 0; }

/* CTA-полоса подстраниц */
.btcta { padding: 72px 0 40px; }
.btcta-panel {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow);
}
.btcta-panel::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 40px);
  opacity: 0.5; pointer-events: none;
}
.btcta-copy { position: relative; max-width: 560px; }
.btcta-panel h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 10px; }
.btcta-panel p { color: var(--muted); margin-top: 10px; }
.btcta-panel .btn { position: relative; }
@media (max-width: 600px) { .btcta-panel { padding: 26px 22px; } .btcta-panel .btn { width: 100%; } }

/* текущий раздел в навигации */
.site-nav a[aria-current="page"] { color: var(--accent); }

/* юрссылки в подвале подстраниц (пути через ../) */
footer a[href^="../privacy"], footer a[href^="../terms"] { opacity: .62; font-size: .86em; }
footer a[href^="../privacy"]:hover, footer a[href^="../terms"]:hover { opacity: 1; }

/* светлая вставка FAQ: карточки вопросов на белом (фикс контраста) */
#faq .faq-item { background: #fff; border-color: rgba(13,43,38,.18); }
#faq .faq-item summary::after { color: #17b28a; }
#faq .faq-item::before { background: rgba(13,43,38,.14); }
#faq .faq-item[open] { border-color: #17b28a; }

/* === Итерация 2: модули === */
/* пресеты срока в калькуляторе: бит-точка на активном */
.calc-presets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.calc-preset {
  font: inherit; font-size: .92rem; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 16px; cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.calc-preset::before { content: "● "; font-size: .62em; vertical-align: middle; color: transparent; transition: color .2s; }
.calc-preset:hover { border-color: var(--accent); color: var(--ink); }
.calc-preset.is-active { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 1px var(--accent) inset; }
.calc-preset.is-active::before { color: var(--accent); }
.calc-preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* подвал: две колонки — бренд слева, навигация и документы справа */
.btfoot--duo .btfoot__grid { grid-template-columns: 1.2fr 1fr; gap: 34px; }
.btfoot--duo .btfoot__brand a { display: inline-block; margin-top: 12px; font-size: .88rem; opacity: .85; }
.btfoot--duo .btfoot__brand a:hover { opacity: 1; color: var(--accent); }
.btfoot__nav { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.btfoot__nav a { opacity: .85; }
.btfoot__nav a:hover { opacity: 1; color: var(--accent); }
.btfoot__nav span, .btfoot__docs span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .55; }
.btfoot__docs { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
@media (max-width: 700px) { .btfoot--duo .btfoot__grid { grid-template-columns: 1fr; } }

/* === Итерация 3: легенда === */
/* Учёт и закрывающие — бит-список для бухгалтерии (#uchet-ritm) */
.acct { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acct-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.acct-list li { position: relative; padding: 16px 18px 16px 46px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; line-height: 1.55; color: var(--muted); }
.acct-list li strong { display: block; color: var(--ink); margin-bottom: 2px; }
.acct-list li:last-child { grid-column: 1 / -1; }
.acct-tick { position: absolute; left: 20px; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--tick); }
@media (max-width: 900px) {
  .acct { padding: 56px 0; }
  .acct-list { grid-template-columns: 1fr; }
  .acct-list li:last-child { grid-column: auto; }
}
