/* =========================================================
   Элит Авто — аренда авто в Тирасполе
   style.css — все стили сайта (подключается из index.html)
   ========================================================= */

:root {
  --ink: #080808;
  --surface: #0f0f0f;
  --card: #161616;
  --hover: #1e1e1e;
  --gold: #c9a84c;
  --gold-bright: #e8c96a;
  --gold-dim: rgba(201,168,76,0.15);
  --cream: #f0ead8;
  --silver: #d8d8d8;
  --muted: #8a8a8a;
  --faint: rgba(240,234,216,0.06);
  --line: rgba(240,234,216,0.1);
  --success: #3d9970;
  --danger: #c0392b;
  --radius: 16px;
  --radius-sm: 9px;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
  --header-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--silver);
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-tap-highlight-color: rgba(201,168,76,0.15);
}
body.scroll-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.12;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1380px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ─── HEADER ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s, background 0.3s;
}
header.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.7); background: rgba(8,8,8,0.97); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 32px); height: var(--header-h); gap: 12px;
  max-width: 1380px; margin: 0 auto;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: var(--cream); letter-spacing: 2px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.logo-dot {
  width: 9px; height: 9px; background: var(--gold); border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(201,168,76,0.8);
}

nav.desk-nav { display: none; gap: 30px; }
.nav-link {
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.25s; padding: 4px 0; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 10px; }

.btn-call {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; min-height: 42px;
  background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 600;
  border-radius: 40px; white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
}
.btn-call:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-call .call-num { display: none; }

.burger {
  width: 44px; height: 42px; border-radius: 12px;
  background: var(--faint); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; flex-shrink: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.28s, opacity 0.2s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none; border-top: 1px solid var(--line);
  background: rgba(8,8,8,0.98); padding: 10px clamp(16px,4vw,32px) 16px;
}
.mobile-menu.open { display: block; animation: fadeDown 0.25s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  display: block; padding: 13px 4px; font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--silver); border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; color: var(--gold); }

/* ─── HERO ─── */
#hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: clamp(28px, 5vw, 52px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 70% at 78% 20%, rgba(201,168,76,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 5% 90%, rgba(201,168,76,0.05) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(240,234,216,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,234,216,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridShift 22s linear infinite;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}
@keyframes gridShift { from { transform: translate(0,0); } to { transform: translate(80px, 80px); } }

.hero-content { position: relative; z-index: 2; max-width: 840px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px; animation: fadeUp 0.7s both;
}
.hero-eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }

.hero-title {
  font-size: clamp(32px, 5.4vw, 62px);
  margin-bottom: 14px; animation: fadeUp 0.7s 0.08s both;
}
.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(14px, 2vw, 16px); color: var(--muted); max-width: 560px;
  margin-bottom: 24px; font-weight: 400; animation: fadeUp 0.7s 0.16s both;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; animation: fadeUp 0.7s 0.24s both; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; min-height: 48px;
  background: var(--gold); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 40px; border: none;
  cursor: pointer; transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 8px 30px rgba(201,168,76,0.28);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.4); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; min-height: 48px;
  background: transparent; color: var(--cream);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 40px;
  border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.7s 0.32s both;
}
.hero-stat { flex: 1; min-width: 90px; text-align: left; padding: 0 22px; border-right: 1px solid var(--line); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--cream); line-height: 1; }
.hero-stat-num span { color: var(--gold); }
.hero-stat-label { font-size: 10.5px; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; margin-top: 5px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── CATALOG ─── */
#catalog { padding: clamp(34px, 4vw, 54px) 0 70px; }

.section-header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 22px; }
.section-kicker { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 4vw, 46px); color: var(--cream); margin-bottom: 8px; position: relative; display: inline-block; }
.section-title::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  height: 2px; width: 0; background: var(--gold); border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible .section-title::after { width: 60%; }
.section-desc { font-size: 15px; color: var(--muted); max-width: 620px; }

/* ─── ПАНЕЛЬ ПОИСКА / СОРТИРОВКИ ─── */
.toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.search-wrap { position: relative; }
.search-wrap .s-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.search-inp {
  width: 100%; padding: 13px 42px 13px 42px; min-height: 48px;
  background: var(--card); border: 1px solid var(--line); border-radius: 40px;
  color: var(--cream); font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-inp::placeholder { color: var(--muted); }
.search-inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--hover); color: var(--silver); font-size: 16px; display: none;
  align-items: center; justify-content: center; line-height: 1;
}
.search-clear.show { display: flex; }

.toolbar-row { display: flex; gap: 10px; }
.select-ui, .btn-filter {
  flex: 1; min-height: 48px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 40px;
  color: var(--silver); font-size: 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 38px;
}
.select-ui:focus { outline: none; border-color: var(--gold); }
.select-ui option { background: var(--card); color: var(--silver); }
.btn-filter {
  background-image: none; padding-right: 16px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; letter-spacing: 0.5px; transition: border-color 0.2s, color 0.2s;
}
.btn-filter:hover { border-color: var(--gold); color: var(--gold); }
.btn-filter.active { border-color: var(--gold); color: var(--gold); }
.filter-count {
  background: var(--gold); color: var(--ink); border-radius: 20px;
  font-size: 11px; font-weight: 700; padding: 1px 8px; display: none;
}
.filter-count.show { display: inline-block; }

.filters-panel {
  display: none; gap: 12px; padding: 16px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.filters-panel.open { display: grid; animation: fadeDown 0.25s ease; }
.fp-field { display: flex; flex-direction: column; gap: 6px; }
.fp-label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fp-field .select-ui { border-radius: var(--radius-sm); min-height: 44px; }
.fp-reset {
  grid-column: 1/-1; min-height: 44px; border-radius: 40px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s, border-color 0.2s;
}
.fp-reset:hover { color: var(--danger); border-color: var(--danger); }

/* ─── TABS ─── */
.filter-bar {
  display: flex; gap: 8px; margin-bottom: 14px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px; scroll-snap-type: x proximity;
}
.filter-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 20px; min-height: 42px; white-space: nowrap; scroll-snap-align: start;
  background: transparent; border: 1px solid var(--line);
  border-radius: 40px; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; flex: 0 0 auto;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold); }
.tab-btn.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.result-line { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.result-line b { color: var(--gold); font-weight: 700; }

/* ─── CARS GRID ─── */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.car-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s, border-color 0.25s;
  animation: cardIn 0.5s both;
  transform-style: preserve-3d;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.car-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.3);
  border-color: rgba(201,168,76,0.3);
}
/* ─── СВАЙП-ГАЛЕРЕЯ В КАРТОЧКЕ ─── */
.car-gallery {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #0d0d0d; cursor: zoom-in;
  touch-action: pan-y; /* вертикальный скролл страницы остаётся, горизонталь — наша */
}
.gal-track {
  display: flex; height: 100%; width: 100%;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.gal-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.gal-slide img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none; user-select: none;
}
.car-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,0.6) 0%, transparent 50%); pointer-events: none; z-index: 1; }
.car-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; z-index: 2; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.badge-available { background: rgba(61,153,112,0.85); color: #fff; animation: availPulse 2.8s ease-in-out infinite; }
@keyframes availPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(61,153,112,0); } 50% { box-shadow: 0 0 0 4px rgba(61,153,112,0.2); } }
.badge-booked { background: rgba(192,57,43,0.85); color: #fff; }
.badge-class { background: rgba(201,168,76,0.85); color: var(--ink); }

.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(8,8,8,0.55); color: #fff; font-size: 20px; line-height: 1;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  z-index: 3; opacity: 0; transition: opacity 0.2s, background 0.2s, color 0.2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gal-nav.prev { left: 8px; }
.gal-nav.next { right: 8px; }
.gal-nav:hover { background: var(--gold); color: var(--ink); }
.car-card:hover .gal-nav, .car-gallery:focus-within .gal-nav { opacity: 1; }
@media (pointer: fine) { .gal-nav { display: flex; } }

.gal-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 6px; pointer-events: none;
}
.gal-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: width 0.25s, background 0.25s; }
.gal-dot.active { width: 18px; border-radius: 4px; background: var(--gold); }

.photo-hint {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(8,8,8,0.75); color: var(--silver);
  padding: 5px 11px; border-radius: 20px; font-size: 10px; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 5px; pointer-events: none;
}

.car-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.car-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.car-name { font-size: 20px; color: var(--cream); }

/* ─── КОММЕНТАРИЙ К АВТОМОБИЛЮ ─── */
.car-note {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px; margin-bottom: 14px;
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.55; color: var(--cream);
  overflow-wrap: anywhere;
}
.car-note-ico { font-size: 14px; line-height: 1.4; flex-shrink: 0; }

/* ─── ЗНАЧОК TELEGRAM ─── */
.tg-ico { width: 1.35em; height: 1.35em; display: block; flex-shrink: 0; }
.fab .tg-ico { width: 26px; height: 26px; }
.contact-icon .tg-ico { width: 17px; height: 17px; }
.mobile-menu .tg-ico { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* ─── ХАРАКТЕРИСТИКИ: ИКОНКА + ПОДПИСЬ + ЗНАЧЕНИЕ ─── */
.car-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 10px; padding: 14px 0; margin: 12px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.spec { display: flex; align-items: center; gap: 9px; min-width: 0; }
/* если характеристик нечётное число — последняя занимает всю ширину */
.spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.spec-icon {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--faint); display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; line-height: 1;
}
.spec-txt { min-width: 0; }
.spec-label { font-size: 9.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.spec-val { font-size: 13px; color: var(--silver); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.spec-val.ok { color: var(--success); }
.spec-val.no { color: var(--danger); }

.car-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.price-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.price-main { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 700; color: var(--cream); line-height: 1; }
.price-main span { font-size: 16px; color: var(--muted); }
.price-discount-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.price-discount-label { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; }
.price-discount-val { font-size: 15px; font-weight: 700; color: var(--gold); }

.car-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-book {
  flex: 1; padding: 13px 18px; min-height: 46px;
  background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 40px; border: none;
  cursor: pointer; transition: background 0.25s, transform 0.2s;
}
.btn-book:hover:not(:disabled) { background: var(--gold-bright); }
.btn-book:disabled { background: var(--hover); color: var(--muted); cursor: not-allowed; }
.btn-more {
  padding: 13px 18px; min-height: 46px;
  background: transparent; color: var(--silver);
  border: 1px solid var(--line); border-radius: 40px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.btn-more:hover { border-color: var(--gold); color: var(--gold); }

/* ─── SKELETON ─── */
.sk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sk-img { aspect-ratio: 16/9; }
.sk-line { height: 12px; border-radius: 6px; margin: 12px 18px; }
.sk-img, .sk-line {
  background: linear-gradient(100deg, #171717 30%, #232323 50%, #171717 70%);
  background-size: 240% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }

/* ─── MARQUEE ─── */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; background: var(--surface); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-item { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-item span { color: var(--gold); margin-right: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ─── ABOUT ─── */
#about { padding: clamp(60px, 8vw, 100px) 0; background: var(--surface); position: relative; overflow: hidden; }
#about::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
.advantages-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.adv-card { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.3s, border-color 0.25s, box-shadow 0.3s; }
.adv-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.adv-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.adv-title { font-size: 17px; color: var(--cream); margin-bottom: 8px; }
.adv-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── FAQ ─── */
#faq { padding: clamp(60px, 8vw, 100px) 0; }
.faq-list { display: grid; gap: 12px; margin-top: 36px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: border-color 0.25s; }
.faq-item[open] { border-color: rgba(201,168,76,0.3); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 600; color: var(--cream); font-family: 'Cormorant Garamond', serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 22px; flex-shrink: 0; transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── FLOAT BAR ─── */
.float-bar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + var(--safe-b)); z-index: 800; display: none; }
.float-bar.visible { display: block; animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.float-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px;
  background: rgba(22,22,22,0.98); border: 1px solid rgba(201,168,76,0.4);
  border-radius: 40px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6); max-width: 560px; margin: 0 auto;
}
.float-car-name { font-size: 14px; font-weight: 600; color: var(--cream); }
.float-car-price { font-size: 12px; color: var(--gold); }
.float-btn { padding: 12px 22px; min-height: 44px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 40px; border: none; cursor: pointer; white-space: nowrap; }
.float-btn:hover { background: var(--gold-bright); }
.float-close { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1; }

/* ─── FAB ─── */
.fab-stack { position: fixed; right: 14px; bottom: calc(16px + var(--safe-b)); z-index: 790; display: flex; flex-direction: column-reverse; gap: 10px; transition: bottom 0.3s; }
body.has-float .fab-stack { bottom: calc(92px + var(--safe-b)); }
.fab {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(22,22,22,0.96); color: var(--gold); font-size: 20px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, opacity 0.3s;
}
.fab:hover { transform: scale(1.07); border-color: var(--gold); }
.fab-top { opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 16px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px; animation: scaleIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal-top { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; background: var(--card); z-index: 3; }
.modal-heading { font-size: 24px; color: var(--cream); }
.modal-close-btn {
  width: 40px; height: 40px; flex-shrink: 0; background: var(--hover);
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--silver); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s; line-height: 1;
}
.modal-close-btn:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.modal-body { padding: 20px 22px calc(22px + var(--safe-b)); }

.selected-summary { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--faint); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius); margin-bottom: 22px; }
.summary-img { width: 80px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.summary-name { font-size: 15px; font-weight: 600; color: var(--cream); }
.summary-price { font-size: 13px; color: var(--gold); margin-top: 2px; }

.form-field { margin-bottom: 16px; position: relative; }
.form-field:focus-within .form-lbl { color: var(--gold); }
.form-lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; transition: color 0.2s; }
.form-inp {
  width: 100%; padding: 13px 16px; min-height: 48px;
  background: var(--hover); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--cream);
  font-size: 16px; transition: border-color 0.2s, box-shadow 0.25s;
}
.form-inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-inp::placeholder { color: var(--muted); }
.form-inp.invalid { border-color: var(--danger); }
textarea.form-inp { resize: vertical; min-height: 88px; max-height: 200px; line-height: 1.6; }
.optional-tag { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: var(--faint); color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.6); }
input[type="date"].form-inp { min-height: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.total-line { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.total-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.total-val { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--gold); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.total-val.pop { transform: scale(1.18); }
.total-note { font-size: 11px; color: var(--success); margin-top: -12px; margin-bottom: 18px; }
.btn-submit-full {
  width: 100%; padding: 16px; min-height: 54px;
  background: var(--gold); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 40px; border: none;
  cursor: pointer; transition: background 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}
.btn-submit-full:hover:not(:disabled) { background: var(--gold-bright); box-shadow: 0 8px 32px rgba(201,168,76,0.45); }
.btn-submit-full:disabled { background: var(--hover); color: var(--muted); box-shadow: none; cursor: not-allowed; }

/* ─── КАРТОЧКА «ПОДРОБНЕЕ» ─── */
.det-hero { position: relative; aspect-ratio: 16/10; background: #0d0d0d; cursor: zoom-in; }
.det-hero img { width: 100%; height: 100%; object-fit: cover; }
.det-hero-hint { position: absolute; bottom: 10px; right: 10px; background: rgba(8,8,8,0.8); color: var(--silver); font-size: 11px; padding: 6px 12px; border-radius: 20px; }
.det-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.det-thumbs::-webkit-scrollbar { display: none; }
.det-thumbs img { width: 74px; height: 54px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.det-title { font-size: 24px; color: var(--cream); }
.det-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.det-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.det-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.det-table td:first-child { color: var(--muted); width: 52%; }
.det-table td:last-child { color: var(--cream); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.det-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin-bottom: 16px; }

/* ─── LIGHTBOX (мобильная галерея) ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: #050505;
  display: none; flex-direction: column;
  height: 100vh; height: 100dvh; overscroll-behavior: contain;
}
.lightbox.open { display: flex; animation: fadeIn 0.22s; }
.lb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) 12px 10px; flex-shrink: 0; z-index: 3;
}
.lb-counter { background: rgba(255,255,255,0.08); color: var(--silver); padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.lb-close {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(201,168,76,0.92); color: var(--ink); border: none; border-radius: 50%;
  font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lb-stage {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 0; touch-action: none;
}
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none; will-change: transform; cursor: pointer;
}
.lb-img.anim-l { animation: lbL 0.26s cubic-bezier(0.25,0.46,0.45,0.94); }
.lb-img.anim-r { animation: lbR 0.26s cubic-bezier(0.25,0.46,0.45,0.94); }
@keyframes lbL { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes lbR { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: rgba(255,255,255,0.1); color: #fff;
  border: none; border-radius: 50%; font-size: 24px; cursor: pointer;
  display: none; align-items: center; justify-content: center; z-index: 2; line-height: 1;
  backdrop-filter: blur(8px);
}
.lb-nav.prev { left: 8px; }
.lb-nav.next { right: 8px; }
.lb-nav:active { background: rgba(201,168,76,0.85); color: var(--ink); }
.lb-bottom { flex-shrink: 0; padding: 10px 12px calc(12px + var(--safe-b)); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs img { width: 62px; height: 46px; flex: 0 0 auto; object-fit: cover; border-radius: 7px; opacity: 0.45; border: 2px solid transparent; cursor: pointer; transition: opacity 0.2s, border-color 0.2s; }
.lb-thumbs img.active { opacity: 1; border-color: var(--gold); }
.lb-hint { text-align: center; font-size: 11px; color: #6d6d6d; letter-spacing: 0.4px; margin-top: 4px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; top: calc(78px + var(--safe-t)); right: 16px; z-index: 2500; min-width: 260px; max-width: 360px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); transform: translateX(130%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast-title { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.toast-msg { font-size: 12px; color: var(--muted); }

/* ─── FOOTER ─── */
footer { padding: 70px 0 calc(36px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 44px; margin-bottom: 54px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 320px; }
.footer-col-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.contact-icon { color: var(--gold); font-size: 14px; margin-top: 2px; }
.contact-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.contact-text a { color: var(--silver); transition: color 0.2s; }
.contact-text a:hover { color: var(--gold); }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ─── PROGRESS / CURSOR / REVEAL ─── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 1001; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); width: 0%; transition: width 0.1s linear; box-shadow: 0 0 8px rgba(201,168,76,0.6); }
.cursor-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%,-50%); transition: transform 0.1s, opacity 0.3s; opacity: 0; }
.cursor-ring { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(201,168,76,0.5); position: fixed; z-index: 9998; pointer-events: none; transform: translate(-50%,-50%); transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.25s; opacity: 0; }
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { opacity: 1; }
  body { cursor: none; }
  a, button, [onclick], .car-gallery, select, input { cursor: none; }
  .lb-nav { display: flex; }
}
.cursor-ring.hovering { width: 48px; height: 48px; border-color: rgba(201,168,76,0.8); background: rgba(201,168,76,0.05); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.empty-state { grid-column: 1/-1; text-align: center; padding: 70px 20px; }
.empty-state h3 { font-size: 24px; color: var(--cream); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── RESPONSIVE ─── */
@media (min-width: 600px) {
  .btn-call .call-num { display: inline; }
  .toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .toolbar-row { flex: 0 0 auto; }
  .select-ui, .btn-filter { min-width: 190px; flex: 0 0 auto; }
}
@media (min-width: 700px) {
  nav.desk-nav { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
  .lb-nav { display: flex; }
  .lb-nav.prev { left: 20px; }
  .lb-nav.next { right: 20px; }
  .lb-nav { width: 52px; height: 52px; }
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .lb-stage { padding: 0 70px; }
  .car-card:hover { transform: translateY(-6px); }
}
@media (min-width: 1024px) {
  .cars-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box { max-width: none; max-height: 94dvh; border-radius: 20px 20px 0 0; border-bottom: none; animation: sheetUp 0.32s cubic-bezier(0.22,1,0.36,1); }
  .toast { left: 12px; right: 12px; min-width: 0; max-width: none; }
  .hero-cta .btn-primary, .hero-cta .btn-outline { flex: 1 1 100%; }
  .hero-stat { padding: 0 12px; }
  .car-body { padding: 16px; }
  .car-name { font-size: 18px; }
  .price-main { font-size: 30px; }
  .spec-label { font-size: 9px; }
  .spec-val { font-size: 12.5px; }
  .lb-stage { padding: 0 4px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .car-specs { grid-template-columns: 1fr; }
  .car-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .hero-grid-lines, .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}
