/* ==========================================================================
   SPARTAK AUTO PLOVDIV
   Визуален език: спец-лист на бойна машина. Изложена конструкция, монопис за
   данните, огромна геометрична типография за твърденията, червено само като
   сигнал. Нищо заоблено, нищо меко.
   Палитрата излиза от логото: черно, хром, червеното на вълната.
   ========================================================================== */

:root {
  --void:   #000000;
  --ink:    #0a0a0b;
  --ink-2:  #0e0e10;
  --panel:  #121215;
  --panel-2:#191a1d;
  --bone:   #f1efe9;          /* обърнатите секции */
  --bone-2: #e2dfd6;

  --line:      #26262a;
  --line-hot:  #3a3a41;
  --line-soft: #17171a;

  --red:      #ff2118;
  --red-deep: #c1000a;
  --red-dim:  rgba(255, 33, 24, .14);

  --text:  #f4f4f5;
  --muted: #8b8b93;
  --dim:   #7d7d86;   /* 4.9:1 върху --ink — дребните етикети трябва да се четат */

  --chrome: linear-gradient(178deg, #ffffff 0%, #d9d9dc 34%, #85858c 58%, #f4f4f6 100%);

  --wrap: 1440px;
  --gut: clamp(20px, 4vw, 64px);
  --head-h: 72px;

  --f-display: "Unbounded", "Arial Black", Impact, system-ui, sans-serif;
  --f-cond:    "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-body:    "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.16, .84, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--line-hot); border: 3px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* --------------------------------------------------------- типографска стълба */
h1, h2, h3, h4 { margin: 0; }

.display {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.035em;
}

.mono-label {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
}
.mono-label::before { content: "[ "; color: var(--dim); }
.mono-label::after  { content: " ]"; color: var(--dim); }

.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stroke-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-hot);
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--red); color: #fff; padding: 12px 20px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------- изложена конструкция */
.rig {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.rig span { border-left: 1px solid rgba(255, 255, 255, .035); }
.rig span:last-child { border-right: 1px solid rgba(255, 255, 255, .035); }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed; left: 0; top: 0; z-index: 120;
  height: 3px; width: 0; background: var(--red);
  box-shadow: 0 0 18px rgba(255, 33, 24, .8);
  transition: width .1s linear;
}

/* червено-черна лента за опасност — разделител между секциите */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg,
    var(--red) 0 14px, var(--void) 14px 28px);
  opacity: .9;
}
.hazard.thin { height: 8px; opacity: .55; }

main, .head, .foot { position: relative; z-index: 2; }

/* --------------------------------------------------------------------- шапка */
.head {
  position: sticky; top: 0; z-index: 100;
  height: var(--head-h);
  display: flex; align-items: center;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .25s, border-color .25s;
}
.head.is-stuck { background: rgba(5, 5, 6, .97); border-bottom-color: var(--line-hot); }
.head .wrap { display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand img { width: 42px; height: 42px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b {
  font-family: var(--f-display); font-weight: 900; font-size: 15px;
  letter-spacing: -.02em; text-transform: uppercase;
}
.brand-txt span {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .34em;
  color: var(--dim); text-transform: uppercase; margin-top: 5px;
}

.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; padding: 10px 13px;
  font-family: var(--f-mono); font-weight: 700;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .18s;
}
.nav a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--red); transform: scaleY(0); transform-origin: bottom;
  transition: transform .26s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::before, .nav a.is-active::before { transform: scaleY(1); }

.head-phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .12em;
  padding: 11px 17px; background: var(--red); color: #fff;
  border: 1px solid var(--red);
  transition: background .18s, color .18s;
}
.head-phone:hover { background: transparent; color: var(--red); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 19px; height: 2px; background: #fff; transition: .22s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------- бутони */
.btn {
  --sh: var(--red);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-weight: 700;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 17px 28px; cursor: pointer;
  border: 2px solid currentColor;
  background: transparent; color: #fff;
  box-shadow: 6px 6px 0 var(--sh);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .18s, color .18s;
}
.btn:hover { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--sh); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--sh); }

.btn-red { background: var(--red); border-color: var(--red); color: #fff; --sh: #4d0004; }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost { --sh: var(--line-hot); color: #fff; border-color: var(--line-hot); }
.btn-ghost:hover { background: #fff; color: var(--void); border-color: #fff; }
.btn-chrome { background: #fff; border-color: #fff; color: var(--void); --sh: var(--red); }
.btn-sm { padding: 12px 18px; font-size: 11px; box-shadow: 4px 4px 0 var(--sh); }
.btn-sm:hover { box-shadow: 1px 1px 0 var(--sh); }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 40px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 42%, rgba(255, 33, 24, .17), transparent 58%),
    radial-gradient(80% 60% at 12% 8%, rgba(255, 255, 255, .05), transparent 60%);
}
.hero-mark {
  position: absolute; right: -14%; top: 50%; translate: 0 -50%; z-index: 0;
  width: min(88vw, 940px); opacity: .16;
  filter: grayscale(1) contrast(1.35);
  pointer-events: none;
  animation: markIn 1.6s var(--ease) both;
}
@keyframes markIn { from { opacity: 0; transform: translateX(70px) scale(1.06); } to { opacity: .16; } }

/* вертикалната релса вляво */
.hero-rail {
  position: absolute; left: calc(var(--gut) - 26px); top: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; pointer-events: none;
}
.hero-rail span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .46em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap;
}

.hero-in { position: relative; z-index: 3; padding: 60px 0 48px; }

.hero h1 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(52px, 13.5vw, 208px);
  line-height: .80; letter-spacing: -.045em;
  margin: 20px 0 0;
  /* типът излиза извън колоната — конструкцията е по-важна от рамката */
  margin-left: -.055em;
}
.hero h1 .l2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: clamp(1px, .28vw, 3px) rgba(255, 255, 255, .5);
}
/* трето ниво на скалата — градът остава в h1, но не се бори с името */
.hero h1 .l3 {
  display: block; margin-top: .34em;
  font-size: .17em; letter-spacing: .42em; line-height: 1;
  color: var(--red); -webkit-text-stroke: 0;
}
.hero p.lead {
  margin: 30px 0 0; max-width: 46ch; font-size: clamp(15px, 1.35vw, 19px);
  color: var(--muted); border-left: 2px solid var(--red); padding-left: 20px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-foot { position: relative; z-index: 3; margin-top: auto; }

/* спец-таблица със ключовите числа */
.hero-stats {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .55);
}
.hero-stats .st { padding: 22px 26px; border-right: 1px solid var(--line); }
.hero-stats .st:first-child { padding-left: var(--gut); }
.hero-stats .st:last-child { border-right: 0; padding-right: var(--gut); }
.hero-stats b {
  display: block; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1; letter-spacing: -.03em;
}
.hero-stats span {
  display: block; margin-top: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim);
}

.scroll-hint {
  position: absolute; right: var(--gut); bottom: 96px; z-index: 3;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--dim);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(var(--red), transparent);
  animation: drop 1.9s var(--ease) infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 55%, 100% { transform: scaleY(1); transform-origin: top; } }

/* ------------------------------------------------------------------ секции */
.section { position: relative; padding: clamp(72px, 9vw, 132px) 0; }
.section.alt { background: var(--ink-2); border-block: 1px solid var(--line); }

/* обърната секция — твърд контраст, най-бруталният ход в целия сайт */
.section.invert { background: var(--bone); color: #141416; border-block: 0; }
.invert .mono-label { color: var(--red-deep); }
.invert .mono-label::before, .invert .mono-label::after { color: rgba(0, 0, 0, .35); }
.invert h2 { color: #0c0c0d; }
.invert .ghost-num { color: transparent; -webkit-text-stroke: 1px rgba(0, 0, 0, .16); }
.invert .sec-head p { color: #55555c; }
.invert .rule-hard { background: rgba(0, 0, 0, .18); }

.sec-head {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 40px; align-items: end;
  margin-bottom: clamp(36px, 4vw, 60px);
}
.sec-head h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 76px); line-height: .84; letter-spacing: -.04em;
  margin: 16px 0 0;
}
.sec-head p { color: var(--muted); margin: 0 0 6px; max-width: 44ch; font-size: 15px; }
/* съдържанието стои над номера-призрак, без фонът на секцията да го крие */
.sec-head > div, .sec-head > p { position: relative; z-index: 1; }

.ghost-num {
  position: absolute; right: 0; top: -.34em; z-index: 0;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(110px, 17vw, 260px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  pointer-events: none; user-select: none;
}

.rule-hard { height: 2px; background: var(--line-hot); border: 0; margin: 0; }

/* --------------------------------------------------------------- бягаща лента */
.ticker {
  overflow: hidden; padding: 26px 0;
  background: var(--void);
  border-block: 1px solid var(--line);
}
.ticker-in { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
.ticker b {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(26px, 4.4vw, 58px); line-height: 1;
  letter-spacing: -.03em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px var(--line-hot);
  padding: 0 22px; white-space: nowrap;
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.ticker b:nth-child(3n) { color: var(--red); -webkit-text-stroke-color: var(--red); }
.ticker b i { color: var(--red); font-style: normal; -webkit-text-stroke: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ карти на обяви */
.cars { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

/* хоризонтална релса на началната — обявите се разлистват, не се изсипват */
.cars.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px);
  grid-template-columns: none;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: thin;
  cursor: grab;
}
.cars.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cars.rail > * { scroll-snap-align: start; }

.car {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}
.car:hover {
  border-color: var(--red);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(255, 33, 24, .28);
}

.car-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--void); }
.car-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.86);
  transition: filter .45s var(--ease), transform .7s var(--ease);
}
.car:hover .car-media img { filter: none; transform: scale(1.05); }
.car-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 34%, transparent 52%, rgba(0,0,0,.92) 100%);
}

.car-price {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--red); color: #fff;
  font-family: var(--f-display); font-weight: 900; font-size: 21px;
  letter-spacing: -.02em; padding: 10px 18px 9px;
}
.car-price small {
  display: block; font-family: var(--f-mono); font-weight: 400;
  font-size: 9px; letter-spacing: .14em; opacity: .85; margin-top: 3px;
}

.car-tags { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.tag {
  font-family: var(--f-mono); font-weight: 700; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 9px; background: rgba(0, 0, 0, .8); color: #fff;
  border: 1px solid var(--line-hot);
}
.tag.new { background: var(--red); border-color: var(--red); }
.tag.sold { background: #17171a; color: var(--dim); }
.tag.res { background: #d39b00; border-color: #d39b00; color: #150f00; }

.car-photos {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  color: #fff; background: rgba(0, 0, 0, .72);
  border: 1px solid var(--line-hot); padding: 4px 9px;
}

.car-go {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 17px;
  opacity: 0; transform: translate(6px, 6px);
  transition: opacity .22s, transform .22s var(--ease);
}
.car:hover .car-go { opacity: 1; transform: none; }

.car-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.car-brand {
  font-family: var(--f-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--red);
}
.car h3 {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase;
  font-size: 18px; line-height: 1.14; letter-spacing: .005em;
  margin: 9px 0 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.car-specs {
  margin-top: auto; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.car-specs div {
  background: var(--ink); padding: 9px 11px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
}
.car-specs b {
  display: block; margin-top: 4px; color: var(--text);
  font-family: var(--f-cond); font-weight: 500; font-size: 14px; letter-spacing: .02em;
}
.car.is-sold .car-media img { filter: grayscale(1) brightness(.42); }
.car.is-sold:hover .car-media img { filter: grayscale(1) brightness(.5); }

.rail-hint {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--dim);
}
.rail-hint::before { content: ""; width: 46px; height: 1px; background: var(--red); }

/* -------------------------------------------------------------------- филтри */
.filters {
  background: var(--panel); border: 1px solid var(--line); padding: 24px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.filters .f label {
  display: block; font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.filters select, .filters input {
  width: 100%; background: var(--void); border: 1px solid var(--line);
  padding: 12px 13px; font-family: var(--f-mono); font-size: 13px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.filters select:focus, .filters input:focus { border-color: var(--red); box-shadow: 3px 3px 0 var(--red-dim); }
.filters .f-row { display: flex; gap: 8px; }
.filters .full { grid-column: 1 / -1; }

.f-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 20px 0 32px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.f-bar .count b {
  color: #fff; font-family: var(--f-display); font-weight: 900;
  font-size: 24px; letter-spacing: -.03em; margin-right: 4px;
}
.f-bar .spacer { margin-left: auto; }
.f-bar label { display: inline-flex; gap: 9px; align-items: center; cursor: pointer; }

.chip {
  border: 1px solid var(--line-hot); background: transparent; color: var(--muted);
  padding: 10px 16px; cursor: pointer;
  font-family: var(--f-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  transition: .18s;
}
.chip:hover { color: #fff; border-color: var(--red); background: var(--red-dim); }
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }

.empty { text-align: center; padding: 100px 20px; color: var(--muted); }
.empty h3 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -.03em; margin-bottom: 14px; color: #fff;
}

/* ----------------------------------------------------------- страница обява */
.detail-top { padding: 34px 0 0; }
.crumbs {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 24px;
}
.crumbs a:hover { color: var(--red); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 30px; align-items: start; }

.gallery { border: 1px solid var(--line); background: var(--void); }
.gal-main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gal-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 54px; height: 54px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 22px;
  display: grid; place-items: center; transition: background .18s;
}
.gal-nav:hover { background: var(--red); }
.gal-nav.prev { left: 0; }
.gal-nav.next { right: 0; }
.gal-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(0, 0, 0, .78); border: 1px solid var(--line-hot);
  padding: 6px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
}
.gal-strip { display: flex; gap: 5px; padding: 5px; overflow-x: auto; scrollbar-width: thin; }
.gal-strip img {
  width: 108px; height: 72px; object-fit: cover; cursor: pointer; flex: 0 0 auto;
  opacity: .38; filter: grayscale(1);
  outline: 2px solid transparent; outline-offset: -2px;
  transition: opacity .18s, filter .18s, outline-color .18s;
}
.gal-strip img:hover { opacity: .75; }
.gal-strip img.is-on { opacity: 1; filter: none; outline-color: var(--red); }

.buybox { border: 1px solid var(--line); background: var(--panel); position: sticky; top: calc(var(--head-h) + 16px); }
.buybox-head { padding: 24px; border-bottom: 1px solid var(--line); }
.buybox h1 {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase;
  font-size: 23px; line-height: 1.12;
}
.buybox .price {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(34px, 3.6vw, 50px); letter-spacing: -.04em;
  margin-top: 16px; line-height: 1;
}
.buybox .vat { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.buybox .acts { padding: 20px; display: grid; gap: 12px; }
.buybox .acts .btn { width: 100%; }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.specs div { background: var(--panel); padding: 16px 18px; }
.specs dt { font-family: var(--f-mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.specs dd {
  margin: 8px 0 0; font-family: var(--f-cond); font-weight: 500;
  font-size: 19px; letter-spacing: .01em;
}

.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.extra-cat { border: 1px solid var(--line); background: var(--panel); padding: 22px; }
.extra-cat h4 {
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.extra-cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.extra-cat li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.extra-cat li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--red); }

.desc-box {
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  background: var(--panel); padding: 28px;
  white-space: pre-line; color: var(--muted); line-height: 1.85; max-width: 90ch;
}

.section-h {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 42px); letter-spacing: -.035em;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------ lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .97); display: none; }
.lb.is-open { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 24px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close {
  position: absolute; right: 18px; top: 18px; width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--line-hot); color: #fff;
  font-size: 22px; cursor: pointer; transition: .18s;
}
.lb-close:hover { background: var(--red); border-color: var(--red); }
.lb .gal-nav { background: transparent; border: 1px solid var(--line-hot); }
.lb-strip { display: flex; gap: 5px; padding: 12px; overflow-x: auto; }
.lb-strip img { width: 92px; height: 62px; object-fit: cover; opacity: .35; cursor: pointer; flex: 0 0 auto; filter: grayscale(1); }
.lb-strip img.is-on { opacity: 1; filter: none; outline: 2px solid var(--red); outline-offset: -2px; }

/* ------------------------------------------------------------- „защо при нас“ */
.usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.usp-item { background: var(--ink); padding: 36px 28px 32px; transition: background .28s; }
.usp-item:hover { background: var(--panel); }
.usp-item .num {
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--red);
}
.usp-item h3 {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase;
  font-size: 21px; margin: 16px 0 12px; line-height: 1.1;
}
.usp-item p { margin: 0; color: var(--muted); font-size: 15px; }

.invert .usp { background: rgba(0, 0, 0, .16); border-color: rgba(0, 0, 0, .16); }
.invert .usp-item { background: var(--bone); }
.invert .usp-item:hover { background: var(--bone-2); }
.invert .usp-item h3 { color: #0c0c0d; }
.invert .usp-item p { color: #52525a; }
.invert .usp-item .num { color: var(--red-deep); }

/* ------------------------------------------------------------ избор по бюджет */
.budget { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.bud {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; min-height: 268px;
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s, background .22s;
}
.bud::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .34s var(--ease);
}
.bud:hover {
  border-color: var(--red-deep); background: var(--panel-2);
  transform: translate(-4px, -4px); box-shadow: 10px 10px 0 rgba(255, 33, 24, .2);
}
.bud:hover::before { transform: scaleX(1); }
.bud .cnt { font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--red); }
.bud h3 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 2.9vw, 36px); letter-spacing: -.04em;
  margin: 18px 0 12px; line-height: .92;
}
.bud p { color: var(--muted); font-size: 14px; margin: 0; }
.bud .go {
  margin-top: auto; padding-top: 24px;
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
}
.bud .go::after { content: "→"; color: var(--red); transition: transform .22s var(--ease); }
.bud:hover .go::after { transform: translateX(8px); }

/* -------------------------------------------------------------------- въпроси */
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.faq details { background: var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 26px;
  font-family: var(--f-cond); font-weight: 700; font-size: 19px;
  text-transform: uppercase; letter-spacing: .01em;
  display: flex; align-items: center; gap: 18px;
  transition: background .18s, color .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--red); font-size: 28px; line-height: 1; transition: transform .24s var(--ease); }
.faq details[open] summary { background: var(--panel); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { background: var(--panel); }
.faq .ans { padding: 0 26px 26px; color: var(--muted); max-width: 78ch; }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin: 0; }

.invert .faq { background: rgba(0,0,0,.16); border-color: rgba(0,0,0,.16); }
.invert .faq details { background: var(--bone); }
.invert .faq summary { color: #0c0c0d; }
.invert .faq details[open] summary, .invert .faq summary:hover { background: var(--bone-2); }
.invert .faq .ans { color: #52525a; }

/* ---------------------------------------------------------- чипове с доверие */
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.trust-chips span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding: 9px 13px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
}
.trust-chips span::before { content: ""; width: 5px; height: 5px; background: var(--red); flex: 0 0 auto; }

/* ------------------------------------------------------------------ контакти */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); background: var(--panel); padding: 30px; }
.card h3 {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase;
  font-size: 20px; margin-bottom: 16px;
}
.card p { color: var(--muted); margin: 0 0 8px; }
.card a.big {
  font-family: var(--f-display); font-weight: 900; font-size: 23px;
  letter-spacing: -.035em; display: block; margin-bottom: 8px;
}
.card a.big:hover { color: var(--red); }

.map { border: 1px solid var(--line); filter: grayscale(1) invert(.92) contrast(.82); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }

.form { display: grid; gap: 15px; }
.form label { font-family: var(--f-mono); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.form input, .form textarea, .form select {
  width: 100%; background: var(--void); border: 1px solid var(--line);
  padding: 14px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.form input:focus, .form textarea:focus { border-color: var(--red); box-shadow: 3px 3px 0 var(--red-dim); }
.form textarea { min-height: 132px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ----------------------------------------------------------------------- CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(72px, 8vw, 116px) 0;
  background: var(--void);
  border-block: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 33, 24, .22), transparent 70%);
}
.cta .wrap { position: relative; }
.cta h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 6vw, 82px); line-height: .86; letter-spacing: -.045em;
  margin: 18px 0 0;
}
.cta p { color: var(--muted); max-width: 56ch; margin: 24px auto 34px; }

/* -------------------------------------------------------------------- футър */
.foot { background: var(--void); border-top: 1px solid var(--line); padding: 70px 0 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 44px; }
.foot h4 {
  font-family: var(--f-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 20px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot a { color: var(--muted); font-size: 14px; transition: color .18s; }
.foot a:hover { color: var(--red); }
.foot .brand img { width: 68px; height: 68px; }
.foot p { color: var(--dim); font-size: 14px; }

/* гигантският логотип, който излиза през долния ръб */
.foot-mark {
  margin-top: 56px; text-align: center;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 12vw, 175px); line-height: .78; letter-spacing: -.055em;
  color: transparent; -webkit-text-stroke: 1px var(--line-hot);
  user-select: none; margin-bottom: -.2em; white-space: nowrap;
}

.foot-bottom {
  margin-top: 20px; border-top: 1px solid var(--line); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim);
}
.updated { display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 7px; height: 7px; background: #2ee06a; box-shadow: 0 0 10px #2ee06a; }

/* --------------------------------------------------------- лента за звънене */
.callbar { display: none; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; cursor: pointer;
  border: 1px solid var(--line-hot); background: rgba(10, 10, 11, .92);
  color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: .22s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--red); border-color: var(--red); }

/* ------------------------------------------------------------------ движение */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.skel { background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 220% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -220% 0; } }
.skel-card { height: 420px; border: 1px solid var(--line); }

/* --------------------------------------------------------------- отзивчивост */
@media (max-width: 1180px) {
  .detail-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sec-head p { margin-bottom: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .st { border-bottom: 1px solid var(--line); padding-left: var(--gut) !important; padding-right: 20px; }
  .hero-rail, .scroll-hint { display: none; }
  .rig { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto; flex-direction: column; gap: 0;
    background: rgba(5, 5, 6, .985); border-bottom: 2px solid var(--red);
    padding: 8px var(--gut) 26px;
    transform: translateY(-125%); transition: transform .34s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 17px 2px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
  .nav a::before { display: none; }
  .brand-txt span { display: none; }
  .hero { min-height: auto; padding-top: 20px; }
  .form .row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 2px solid var(--red);
    background: rgba(5, 5, 6, .97); backdrop-filter: blur(12px);
  }
  .callbar a {
    padding: 15px 8px; text-align: center;
    font-family: var(--f-mono); font-weight: 700; font-size: 11px;
    letter-spacing: .16em; text-transform: uppercase;
  }
  .callbar a:first-child { background: var(--red); color: #fff; }
  body { padding-bottom: 52px; }
  .to-top { bottom: 66px; }
  .head-phone span { display: none; }
}

@media (max-width: 460px) {
  .cars.rail { grid-auto-columns: 84vw; }
  .btn { padding: 15px 20px; font-size: 11px; box-shadow: 4px 4px 0 var(--sh); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
