/* ==========================================================================
   Eclipse Vision — основни стилове
   Черно-златна тема, изцяло гъвкава (responsive) от телефон до голям монитор.
   ========================================================================== */

/* Google Fonts се зареждат през <link> в includes/header.php (и admin_header.php),
   не през @import тук — @import блокира паралелното зареждане и бави страницата. */

:root {
  --bg: #070707;
  --panel: #0d0d0d;
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f5f4f2;
  --muted: #93918c;
  --link: #dad8d3;
  --gold: #c9a24a;
  --gold-soft: rgba(201, 162, 74, .15);
  --container: 1360px;
  --gap: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: #d8b562; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.25); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.gold { color: var(--gold); }

.text-link-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}
.text-link-gold:hover { border-color: var(--gold); opacity: .88; }

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 28px 0;
  display: block;
}
.img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
.img-row img {
  flex: 1 1 220px;
  min-width: 140px;
  max-height: 320px;
  object-fit: cover;
  margin: 0;
  border-radius: 2px;
}
@media (max-width: 560px) {
  .img-row img { flex-basis: 100%; max-height: none; }
}

/* ---------- Разширени блокове на статия ("зад кадъра" — редуващи се видео/снимки + текст) ---------- */
.story-block {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.story-block .grid-2 { align-items: center; }
.story-media--right { order: 2; }
.story-text--right { order: 1; }
@media (max-width: 699px) {
  .story-media--right, .story-text--right { order: initial; }
}
.story-media .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 2px;
  overflow: hidden;
  background: var(--panel);
}
.story-media .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.story-media .img-row { margin: 0; }
.story-media .img-row img { max-height: 260px; }
.story-text .eyebrow { display: block; margin-bottom: 14px; }
.story-text h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0 0 16px; }
.story-text p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 20px; }

.placeholder-img {
  background: radial-gradient(120% 140% at 20% 0%, #1c1c1c, #0c0c0c 70%);
  border-radius: 2px;
}

/* ---------- Видео на място (без напускане на сайта) ---------- */

.video-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}
.video-thumb .placeholder-img {
  position: absolute;
  inset: 0;
  margin: 0;
}
.video-thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 7, .6);
  border: 2px solid var(--gold);
  color: var(--gold);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
}
.video-thumb .play-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.video-thumb:hover .play-btn,
.video-thumb:focus-within .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-thumb .play-btn:hover { background: var(--gold); color: var(--bg); }
.video-thumb.playing .placeholder-img,
.video-thumb.playing .play-btn { display: none; }
.video-thumb .video-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 7, .75);
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.video-thumb .video-close svg { width: 15px; height: 15px; }
.video-thumb .video-close:hover { background: var(--gold); color: var(--bg); }
.video-thumb.playing .video-close { display: flex; }
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Header / navigation ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(7, 7, 7, .92);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 32px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.brand-main { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: .06em; }
.brand-sub { font-size: 9px; letter-spacing: .55em; color: var(--muted); }
.brand-logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }

.nav-links {
  display: none;
  gap: 38px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--link);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-lang { display: none; gap: 8px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.nav-lang .on { color: var(--gold); }

.nav-toggle {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 16px var(--gap) 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--link);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a.active { color: var(--gold); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-lang { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 110px); margin-top: clamp(24px, 4vw, 48px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.footer-col a, .footer-col span { color: var(--link); }
.footer-col-head { font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.footer-about p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 320px; }
.footer-about .social-row { margin-top: 10px; }

.social-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.social-circle {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: color .15s ease, transform .15s ease;
}
.social-circle svg { width: 100%; height: 100%; }
.social-circle:hover,
.social-circle:focus-visible { color: #ecd28f; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--gold); }
.footer-legal-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.footer-legal-link-btn:hover { color: var(--gold); }

@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Банер за съгласие с бисквитките ---------- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #0d0d0d;
  border-top: 1px solid var(--gold);
  box-shadow: 0 -8px 24px rgba(0,0,0,.35);
  padding: 18px 20px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.cookie-consent-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-consent-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
}
@media (min-width: 700px) {
  .cookie-consent-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-consent-text { max-width: 640px; }
  .cookie-consent-actions { flex-wrap: nowrap; }
  .cookie-consent-actions .btn { flex: 0 0 auto; }
}

/* ---------- Бутон "Към началото" — само на мобилни ---------- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, bottom .25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: #d8b562; }
@media (min-width: 700px) {
  .back-to-top { display: none; }
}

/* ---------- Sections / grids (reused across pages) ---------- */

section { padding: clamp(64px, 8vw, 110px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.grid { display: grid; gap: 24px; }
.grid-tight { gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }

/* На телефон секцията "Екипът зад кадъра" на началната страница показва текста
   преди снимката (на компютър снимката е вляво, текстът вдясно — това не се пипа). */
@media (max-width: 699px) {
  .home-about-text { order: -1; }
}
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}
.grid-5 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }

.grid-6 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Hero — showreel на цяла ширина, слят с фона ---------- */

.hero-full {
  position: relative;
  min-height: clamp(520px, 82vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;  /* поддържа 16:9 спрямо ширината на прозореца */
  border: 0;
  pointer-events: none;
  /* леко уголемено, за да "изрежем" остатъчния YouTube надпис/лого по ръбовете */
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-video.loaded { opacity: 1; }
@media (min-aspect-ratio: 16/9) {
  .hero-video { min-height: 100%; min-width: 177.78vh; } /* поддържа 16:9 спрямо височината, при широки екрани */
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,7,.96) 0%, rgba(7,7,7,.82) 28%, rgba(7,7,7,.35) 58%, rgba(7,7,7,.08) 100%),
    linear-gradient(to bottom, rgba(7,7,7,.35) 0%, rgba(7,7,7,0) 18%, rgba(7,7,7,0) 68%, var(--bg) 100%);
}
@media (max-width: 899px) {
  .hero-fade {
    background:
      linear-gradient(to bottom, rgba(7,7,7,.4) 0%, rgba(7,7,7,.4) 36%, rgba(7,7,7,.82) 66%, var(--bg) 100%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: clamp(48px, 8vw, 80px);
  padding-left: clamp(16px, 2vw, 24px); /* по-навътре в ляво от стандартния контейнерен отстъп */
}
.hero-text {
  max-width: 640px;
  /* нарочно без margin: auto — да остане залепен за лявата колона, както лого/менюто, а не центриран в средата на широката секция */
}
.hero-content h1 { font-size: clamp(44px, 6vw, 76px); }

/* На телефон видеото остава чисто (без надписи върху него) — текстът/бутоните
   слизат отдолу, в тъмната част на страницата, вместо да стоят върху кадрите. */
@media (max-width: 599px) {
  .hero-full {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .hero-media-bg {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .hero-fade { display: none; } /* без затъмняване — видеото е самостоятелно и чисто */
  .hero-content {
    position: static;
    padding: 28px 16px 32px !important;
    background: var(--bg);
  }
  .hero-content h1 { font-size: clamp(30px, 8.5vw, 38px); margin-top: 10px !important; }
  .hero-content .eyebrow { font-size: 10px; letter-spacing: .2em; }
  .hero-text p { font-size: 13px !important; line-height: 1.6 !important; margin-top: 12px !important; }
  .hero-content .btn { height: 42px; padding: 0 18px; font-size: 11px; }
  .hero-text > div { margin-top: 16px !important; gap: 10px !important; }

  /* Еднакво разстояние преди и след статистиката, спрямо бутоните горе и "Услуги" долу. */
  .stats-strip { padding: 20px 0 !important; margin-bottom: 32px !important; }
}

.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-bottom: clamp(48px, 8vw, 96px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
  text-align: center;
}
.stats-strip > div { flex: 0 1 auto; padding: 0 clamp(16px, 3vw, 40px); }
.stat-num { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(24px, 3vw, 30px); color: var(--gold); }
.stat-label { font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .blog-layout { grid-template-columns: 1.3fr 1fr; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; align-items: stretch; }
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  min-height: 280px;
  height: 100%;
}
.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  border: 0;
  /* Затъмнява стандартната Google карта, за да пасва на тъмната тема на сайта. */
  filter: invert(90%) hue-rotate(180deg) contrast(85%) brightness(95%) saturate(115%);
}
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -92%);
  pointer-events: none;
}
.map-pin svg {
  width: 42px;
  height: 42px;
  color: var(--gold);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.6));
}

.contact-form-full {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 36px);
  box-sizing: border-box;
}

.card-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; }
.card-tag { font-size: 11px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: inherit;
  background: none;
  border: none;
  padding: 8px 0 18px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-right: 20px;
}
.filter-btn.active, .filter-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* На телефон подредбата по няколко реда изглежда тромаво — вместо това правим
   хоризонтален ред с плъзгане, като компактни "хапчета" (чипове). */
@media (max-width: 599px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 28px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex: 0 0 auto;
    margin-right: 0;
    padding: 7px 14px;
    font-size: 11px;
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 20px;
    white-space: nowrap;
  }
  .filter-btn.active, .filter-btn:hover {
    border-color: var(--gold);
    background: rgba(212,175,99,.08);
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (min-width: 900px) {
  .pagination { margin-top: 110px; }
}
.pagination-num, .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.pagination { gap: 10px; }
.pagination-num:hover, .pagination-btn:hover { color: var(--gold); border-color: var(--gold); }
.pagination-num.active { color: var(--bg); background: var(--gold); border-color: var(--gold); font-weight: 700; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; color: var(--muted); }
.form-field input,
.form-field textarea,
.form-field select {
  height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.form-field textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--gold); }

.alert { padding: 14px 18px; border: 1px solid; font-size: 14px; margin-bottom: 20px; }
.alert-ok { border-color: #3a5a3a; background: rgba(80,160,80,.08); color: #b9e6b9; }
.alert-err { border-color: #6a3a3a; background: rgba(200,80,80,.08); color: #f0b9b9; }

/* ---------- Анимации при зареждане / скролиране ---------- */
.reveal {
  opacity: 0;
  transform: translateY(54px) scale(.97);
  transition: opacity .9s cubic-bezier(.16,.8,.24,1), transform .9s cubic-bezier(.16,.8,.24,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(42px) scale(.97);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }

/* Хероят се появява сам при първото зареждане на началната страница (не чака скрол). */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim { opacity: 0; animation: heroFadeUp .9s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-anim--delay1 { animation-delay: .15s; }
.hero-anim--delay2 { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero-anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Рентал — търсачка, навигация по категории, карти с техника, страница на артикул
   ========================================================================== */

/* ---------- Търсачка в хероя ---------- */
.rental-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 4px 4px 16px;
}
.rental-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.rental-search input {
  flex: 1;
  height: 42px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  min-width: 0;
}
.rental-search input:focus { outline: none; }
.rental-search .btn { height: 42px; padding: 0 20px; }

/* ---------- Навигация по категории (икони) ---------- */
.rental-cat-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 4vw, 40px) var(--gap) 8px;
  scrollbar-width: none;
}
.rental-cat-nav::-webkit-scrollbar { display: none; }
.rental-cat-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 96px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .02em;
  text-align: center;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.rental-cat-btn:hover { border-color: var(--gold); color: var(--text); }
.rental-cat-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,162,74,.08); }
.rental-cat-icon { width: 26px; height: 26px; }
.rental-cat-icon svg { width: 100%; height: 100%; }

/* ---------- Заглавие на секция + сортиране ---------- */
.rental-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.rental-sort-form { display: flex; align-items: center; gap: 10px; }
.rental-sort-form select {
  height: 38px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

/* ---------- Решетка с карти техника ---------- */
.rental-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.rental-card { display: flex; flex-direction: column; position: relative; }
.rental-card-media { position: relative; display: block; }
.rental-badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.rental-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(7,7,7,.55);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.rental-fav-btn svg { width: 16px; height: 16px; }
.rental-fav-btn:hover { border-color: var(--gold); color: var(--gold); }
.rental-fav-btn.is-fav { color: var(--gold); border-color: var(--gold); }
.rental-fav-btn.is-fav svg { fill: var(--gold); }

.rental-card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.rental-card-subtitle { font-size: 12px; line-height: 1.6; margin: 0; }
.rental-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 13px; }

/* ---------- Страница на артикул ---------- */
.rental-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.rental-breadcrumb a:hover { color: var(--gold); }

.rental-detail-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .rental-detail-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}

.rental-gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.rental-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rental-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
}
.rental-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rental-thumb.active, .rental-thumb:hover { border-color: var(--gold); }

.rental-price-big { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 28px; color: var(--gold); margin-top: 18px; text-transform: uppercase; }

.rental-period-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.rental-period-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}
.rental-period-btn strong { color: var(--text); font-size: 14px; }
.rental-period-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,162,74,.08); }
.rental-period-btn.active strong { color: var(--gold); }

.rental-stock-row { display: flex; gap: 18px; margin-top: 20px; font-size: 13px; flex-wrap: wrap; }
.rental-stock-row span { display: inline-flex; align-items: center; gap: 8px; }
.rental-stock-ok { color: #9fd89f; }
.rental-stock-row svg { width: 16px; height: 16px; }

/* ---------- Табове (Описание / Характеристики / Какво е включено ...) ---------- */
.rental-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 64px);
  scrollbar-width: none;
}
.rental-tabs::-webkit-scrollbar { display: none; }
.rental-tab-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-family: inherit;
  padding: 14px 4px;
  margin-right: 28px;
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.rental-tab-btn.active, .rental-tab-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }

.rental-tab-panel { display: none; padding-top: 32px; }
.rental-tab-panel.active { display: block; }

.rental-specs-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rental-specs-grid { grid-template-columns: repeat(2, 1fr); } }
.rental-spec-item { display: flex; align-items: flex-start; gap: 14px; }
.rental-spec-icon { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.rental-spec-icon svg { width: 100%; height: 100%; }
.rental-spec-label { font-size: 14px; font-weight: 600; }

.rental-includes-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rental-includes-grid { grid-template-columns: repeat(3, 1fr); } }
.rental-include-item { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.rental-include-item .rental-spec-icon { width: 20px; height: 20px; }

/* ==========================================================================
   Клиенти — панел с въртящи се лога на началната страница
   ========================================================================== */
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(48px, 6vw, 88px);
  animation: clientsScroll 32s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.clients-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 130px;
  height: 64px;
}
.clients-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .75;
  transition: opacity .2s ease;
}
.clients-logo:hover img { opacity: 1; }

@keyframes clientsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
