/* ==========================================================================
   BARAKOV PROTECTION — Design tokens
   ========================================================================== */
:root {
  --bg: #0b0d10;
  --bg-alt: #101318;
  --surface: #171b21;
  --surface-2: #1e232b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f6f7;
  --text-muted: #9aa1ac;
  --text-dim: #6b7280;
  --accent: #ff5a1f;
  --accent-2: #ffc93c;
  --accent-rgb: 255, 90, 31;
  --steel: #c8cdd3;
  --ok: #33d17a;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --container: 1220px;

  --ff-head: "Oswald", "Arial Narrow", sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 84px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body, h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; height: 100%; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(70px, 10vw, 130px); position: relative; }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__title {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-top: 10px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.services__grid .reveal, .gallery__grid .reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 16px 30px;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #e8430c);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), 0.55);
}
.btn--primary:hover { box-shadow: 0 16px 36px -8px rgba(var(--accent-rgb), 0.7); }
.btn--outline {
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn--ghost:hover { background: #fff; color: var(--bg); }
.btn--block { width: 100%; padding: 17px 30px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  height: 72px;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
/* Знакът стои сам, без рамка — иначе става „лого в кутийка“. */
.brand__mark {
  width: 42px; height: 42px;
  flex: none;
  display: block;
  overflow: visible;
}
.brand__name {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}
/* Разстоянието идва от истински интервал в текста, не от отстъп — иначе
   марката се чете и копира като една слята дума. */
.brand__name em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-block: 6px;
  transition: color 0.3s;
  /* „ЗА НАС“ и „0897 647 777“ не бива да се пренасят на два реда,
     когато мястото в лентата намалее. */
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

.site-header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.phone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 10px 18px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: var(--ff-head);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color .3s, color .3s;
}
.phone-pill svg { color: var(--accent); }
.phone-pill:hover { border-color: var(--accent); color: var(--accent-2); }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 32px; height: 22px; justify-content: center; }
.hamburger span { display: block; height: 2px; width: 100%; background: var(--text); transition: transform .35s var(--ease), opacity .35s var(--ease); }

/* ==========================================================================
   Mobile nav
   Прагът е 1000px, а не 900: с името BARAKOV PROTECTION марката е по-широка
   и седемте връзки плюс телефонът спират да се побират под ~1000px.
   Стойността трябва да съвпада с проверката в js/main.js.
   ========================================================================== */
@media (max-width: 1000px) {
  .nav {
    position: fixed;
    inset: 72px 0 0 0;
    height: calc(100vh - 72px);
    background: rgba(10, 12, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 400;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.4rem; }
  .phone-pill span { display: none; }
  .phone-pill { padding: 10px; }
  .hamburger { display: flex; }
  .hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.is-active span:nth-child(2) { opacity: 0; }
  .hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("../assets/img/hero-sunset-sm.jpg");
  background-image: image-set(
    url("../assets/img/hero-sunset-sm.jpg") 1x
  );
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.08);
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  z-index: 0;
}
@media (min-width: 900px) {
  .hero__bg { background-image: url("../assets/img/hero-sunset-lg.jpg"); }
}
@keyframes heroKenBurns {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to   { transform: scale(1.16) translate3d(-1%, -1%, 0); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,7,9,0.55) 0%, rgba(7,8,10,0.72) 46%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6,7,9,0.85) 0%, rgba(6,7,9,0.35) 55%, rgba(6,7,9,0.65) 100%);
}
.hero__canvas {
  position: absolute; top: 0; bottom: 0; right: 0;
  left: 40%;
  width: 60%; height: 100%;
  z-index: 2;
  display: block;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; padding-block: 40px; }
.hero__title {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  margin-top: 18px;
  max-width: 16ch;
  text-shadow: 0 6px 40px rgba(0,0,0,0.35);
}
.hero__lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(50px, 8vw, 84px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero__stats dt {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--accent-2);
}
.hero__stats dd { margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); max-width: 12ch; }

.hero__scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 20px;
}
.hero__scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: var(--accent-2); border-radius: 4px; transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 8px; } }

@media (max-width: 900px) {
  .hero__stats { grid-template-columns: repeat(2, auto); row-gap: 26px; }
  .hero__scroll-cue { display: none; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-lg);
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.about__badge {
  position: absolute; left: -18px; bottom: -18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.6);
  font-family: var(--ff-head);
  text-transform: uppercase;
  line-height: 1.3;
}
.about__badge strong { display: block; color: var(--accent-2); font-size: 1.02rem; }
.about__badge span { color: var(--text-muted); font-size: 0.8rem; }

.about__text p { color: var(--text-muted); margin-top: 18px; max-width: 56ch; }
.about__text .section__title { margin-bottom: 6px; }
.checklist { margin-top: 26px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); font-size: 0.96rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid var(--accent);
}
.checklist li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__badge { left: 12px; bottom: -16px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
}
.service-card__icon {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-2);
  margin-bottom: 22px;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card h3 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.service-card p { color: var(--text-muted); font-size: 0.94rem; }

@media (max-width: 980px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Fleet
   ========================================================================== */
.fleet__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.fleet-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.fleet-card__media { aspect-ratio: 16/10; overflow: hidden; }
.fleet-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fleet-card:hover .fleet-card__media img { transform: scale(1.06); }
.fleet-card__body { padding: 28px; }
.fleet-card__body h3 {
  font-family: var(--ff-head); text-transform: uppercase; font-size: 1.4rem; margin-bottom: 18px;
}
.spec-list { display: grid; gap: 12px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list span { color: var(--text-muted); }
.spec-list strong { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .02em; color: var(--accent-2); font-weight: 500; }

.fleet__note { margin-top: 30px; color: var(--text-muted); text-align: center; font-size: 0.95rem; }

@media (max-width: 760px) { .fleet__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.gallery-item.is-hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-item figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  font-family: var(--ff-head); text-transform: uppercase; font-size: 0.82rem; letter-spacing: .03em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
/* Keyboard users get the same caption reveal as a hover. */
.gallery-item:hover::after, .gallery-item:hover figcaption,
.gallery-item:focus-visible::after, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery-item:focus-visible img { transform: scale(1.08); }

@media (max-width: 980px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,7,9,0.94);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease);
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox__caption { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; color: var(--text-muted); font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .04em; }
.lightbox__close { position: absolute; top: 24px; right: 28px; font-size: 2.2rem; line-height: 1; color: var(--text); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 1.1rem;
  transition: background .3s;
}
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox { padding: 16px; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing__inner { text-align: center; max-width: 720px; }
.pricing__range {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-top: 20px;
  color: var(--text);
}
.pricing__range span:first-child { color: var(--accent-2); }
.pricing__range span:last-child { color: var(--accent); }
.pricing__range small { font-family: var(--ff-body); font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.pricing__desc { color: var(--text-muted); margin: 22px auto 34px; max-width: 52ch; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { position: relative; padding-block: clamp(80px, 12vw, 140px); overflow: hidden; }
.cta-banner__bg {
  position: absolute; inset: 0;
  /* Различна снимка от началния екран — банерът вече стои точно под него
     и повтарянето на същия кадър изглеждаше като грешка. */
  background-image: url("../assets/img/gallery-double-car-lg.jpg");
  background-size: cover; background-position: center 45%;
  /* Дневна снимка под бял текст — затъмнява се по-силно от залезния кадър. */
  filter: saturate(1.05) brightness(0.62);
}
.cta-banner__bg::after { content: ""; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(8,9,11,0.74) 18%, rgba(8,9,11,0.80) 82%, var(--bg) 100%);
}
/* Подложка зад текста: снимката има светъл камион точно в средата, така че
   равномерното затъмняване не стига за бял текст. */
.cta-banner__inner {
  position: relative; text-align: center; max-width: 700px;
  padding: clamp(32px, 5vw, 54px) clamp(22px, 4vw, 48px);
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(8,9,11,0.88) 0%, rgba(8,9,11,0.76) 55%, rgba(8,9,11,0.45) 100%);
  backdrop-filter: blur(3px);
}
.cta-banner__inner h2 {
  font-family: var(--ff-head); text-transform: uppercase; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15;
}
.cta-banner__inner p { color: var(--steel); margin-top: 16px; }
.cta-banner__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list { display: grid; gap: 14px; max-width: 860px; }
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(255, 255, 255, 0.05); }
.faq-item summary {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  flex: 1;
}
/* Плюс/минус индикатор, рисуван със CSS — без допълнителен HTML */
.faq-item summary::after {
  content: ""; flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center/100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
/* Двете чертички остават — завъртени на 45° образуват „×“. */
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  max-width: 68ch;
  line-height: 1.7;
}
.faq-item > p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); }
.contact__lead { color: var(--text-muted); margin-top: 18px; max-width: 46ch; }
.contact__list { margin-top: 34px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-2);
}
.contact__list strong { display: block; font-family: var(--ff-head); text-transform: uppercase; font-size: 0.95rem; letter-spacing: .02em; }
.contact__list a, .contact__list span { color: var(--text-muted); font-size: 0.94rem; }
.contact__list a:hover { color: var(--accent-2); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__form label { display: grid; gap: 8px; font-size: 0.86rem; color: var(--text-muted); }
.contact__form label em { color: var(--accent); font-style: normal; }
.contact__form input, .contact__form select, .contact__form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  transition: border-color .3s;
  resize: vertical;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.contact__form input:invalid:not(:placeholder-shown) { border-color: #d84343; }
.form-note { min-height: 20px; font-size: 0.9rem; color: var(--ok); text-align: center; }
.form-note.is-error { color: #ff7a6b; }

/* Send options shown once the enquiry validates */
.form-send__intro {
  margin: 4px 0 14px;
  font-size: 0.95rem;
  color: var(--ok);
}
.form-send__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.form-send__btn {
  flex: 1 1 170px;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.88rem;
}
.form-send__copy {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-send__copy:hover { color: var(--accent-2); }
.form-send__preview {
  margin: 14px 0 0;
  padding: 14px 16px;
  max-height: 190px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form-send__btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: 60px 30px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 30px;
  align-items: start;
}
.brand--footer { margin-bottom: 4px; }
.site-footer__tagline { color: var(--text-dim); font-size: 0.9rem; max-width: 32ch; margin-top: 14px; }
.site-footer__nav { display: grid; gap: 12px; align-content: start; margin-top: 6px; }
.site-footer__nav a { color: var(--text-muted); font-size: 0.92rem; transition: color .3s; }
.site-footer__nav a:hover { color: var(--accent-2); }
.site-footer__phone {
  font-family: var(--ff-head); text-transform: uppercase; font-size: 1.2rem; font-weight: 600;
  color: var(--accent-2); white-space: nowrap;
}
.site-footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
}
.site-footer__left { display: grid; gap: 6px; }
.site-footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.site-footer__credit {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.site-footer__credit a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .3s;
}
.site-footer__credit a:hover { color: var(--accent-2); }
.site-footer__legal {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: right;
}

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .site-footer__tagline { max-width: none; }
  .site-footer__phone { grid-column: auto; }
  .site-footer__legal { text-align: left; }
}

/* ==========================================================================
   Floating call button
   ========================================================================== */
.call-fab {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e8430c);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(var(--accent-rgb), 0.65);
  z-index: 600;
  transition: transform .3s var(--ease);
}
.call-fab:hover { transform: scale(1.08); }
.call-fab__ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.55);
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  80% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .call-fab__ring { animation: none; } }

/* ==========================================================================
   Loading screen
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease);
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__scene { position: relative; width: min(94vw, 900px); height: 220px; }

.loader__truck {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: clamp(150px, 24vw, 280px);
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
.loader__truck svg { width: 100%; height: auto; overflow: visible; }
.loader__truck--left { transform: translate(-102%, 0); }
.loader__truck--right { transform: translate(2%, 0); }
.loader__flip { transform: scaleX(-1); }

.loader.is-departing .loader__truck--left { transform: translate(-102%, 0) translateX(-160vw); }
.loader.is-departing .loader__truck--right { transform: translate(2%, 0) translateX(160vw); }

.tk-chassis, .tk-cab { fill: #e7e9ec; }
.tk-glass, .tk-car-glass { fill: #232830; }
.tk-beacon { fill: var(--accent-2); }
.tk-bumper { fill: #9aa1ac; }
.tk-seam { stroke: rgba(0,0,0,0.18); stroke-width: 1.4; }
.tk-shadow { fill: rgba(0,0,0,0.35); filter: blur(1px); }
.tk-tire { fill: #1b1e22; }
.tk-hub { fill: #9aa1ac; }
.tk-car-body { fill: var(--accent); }
.tk-car-roof { fill: #e8430c; }
.tk-car-wheel { fill: #14161a; }
.tk-crate { fill: #cf7a3e; stroke: #8a4f24; stroke-width: 1.5; }
.tk-crate--b { fill: #d6883f; }
.tk-crate--c { fill: #c26f37; }
.tk-strap { stroke: var(--accent-2); stroke-width: 2.5; }

.loader.is-departing .wheel { animation: wheelSpin 0.5s linear infinite; }
@keyframes wheelSpin { to { transform: rotate(360deg); } }

.loader__logo {
  position: absolute; top: 50%; left: 50%;
  width: max-content;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  text-align: center;
  transition: opacity .6s var(--ease), transform .6s var(--ease-out-back);
  transition-delay: .3s;
}
.loader.is-departing .loader__logo { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loader__word {
  display: block;
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 1.15;
}
.loader__word--accent { color: var(--accent); }
.loader__mark {
  display: block;
  width: clamp(48px, 11vw, 74px);
  height: auto;
  margin: 0 auto 18px;
}

@media (prefers-reduced-motion: reduce) {
  .loader__truck, .loader__logo { transition-duration: .3s; }
}

/* ==========================================================================
   Misc animation helpers
   ========================================================================== */
@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
}
