:root {
  /* Акцентът на сайта е само тук. Клиентът избра черно с оранжево. */
  --color-primary: #FF6A00;
  --color-primary-dark: #CC5200;
  --color-primary-soft: rgba(255, 106, 0, 0.14);
  --color-on-primary: #1A0C02;

  --color-bg: #0A0A0C;
  --color-surface: #131317;
  --color-surface-2: #1B1B21;
  --color-white: #FFFFFF;
  --color-text: #F2F3F5;
  --color-text-muted: #9BA3AC;
  --color-border: #26262E;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --container-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.text-muted { color: var(--color-text-muted); font-size: 0.9rem; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.1rem; margin-bottom: 8px; }

p { color: var(--color-text-muted); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.stars { display: flex; gap: 2px; color: var(--color-primary); }

.star { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 6px 24px rgba(255, 106, 0, 0.28);
}

.btn--primary:hover { background: var(--color-white); transform: translateY(-2px); }

.btn--outline {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-text);
}

.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; }

/* Фонът на логото е премахнат - остават само буквите и червената черта,
   затова няма нужда от заобляне. */
.logo__img {
  height: 46px;
  width: auto;
}

.nav { display: flex; gap: 4px; }

.nav a {
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav a:hover { color: var(--color-primary); }

/* Секцията, в която се намира читателят, се огражда и се откроява */
.nav a.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-color: rgba(255, 106, 0, 0.45);
  font-size: 0.96rem;
  font-weight: 600;
}

.header__cta { flex-shrink: 0; padding: 11px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 120px 0 110px;
  background: linear-gradient(180deg, #14100C 0%, var(--color-bg) 100%);
}

/* Бавно дишащо сияние - дава живот на екрана, без да има снимка или видео */
.hero__glow {
  position: absolute;
  z-index: 1;
  top: -35%;
  left: -10%;
  width: 120%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(255, 106, 0, 0.16) 0%, transparent 62%);
  animation: hero-glow 9s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: translate(3%, 2%) scale(1.08); }
}

/* Наклонен отблясък, като светлина, минаваща по лакиран капак */
.hero__sheen {
  position: absolute;
  z-index: 1;
  inset: -40% -20%;
  background: linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, 0.045) 50%, transparent 58%);
  animation: hero-sheen 11s ease-in-out infinite;
}

@keyframes hero-sheen {
  0%, 100% { transform: translateX(-18%); }
  50%      { transform: translateX(18%); }
}

/* Отделна преливка в долния край - гарантира, че независимо какво се движи
   във видеото и в сиянието, последните 200 пиксела стигат до плътно черно
   и няма шев със секцията отдолу. */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgb(10, 10, 12) 100%);
}

.hero__inner { position: relative; z-index: 3; width: 100%; }

/* Центрирано и на цялата ширина на контейнера, за да се подравни с полетата
   за доверие отдолу - линията над числата съвпада с тяхната ширина. */
.hero__content {
  width: 100%;
  text-align: center;
}

.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.08; }

.hero__accent {
  background: linear-gradient(100deg, var(--color-primary) 10%, #FFB067 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Видеото запълва целия начален екран. Държано е по-живо, отколкото
   изглежда разумно за текст отгоре - четливостта се пази от тъмното петно
   в .hero__overlay, което е само зад текста, а не по целия екран. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

/* Тъмен слой - по-плътен горе и долу, за да се четат заглавието и бутоните */
/* Слоевете отдолу нагоре: видео (0), сияние и отблясък (1), затъмняване (2),
   текст (3). Затъмняването трябва да е НАД сиянието, иначе то свети в долния
   край и се получава шев със секцията отдолу. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Два слоя. Първият е меко петно точно зад заглавието и текста - там се
     пази четливостта. Вторият е по цялата височина, но е доста по-лек от
     преди: така по краищата на екрана видеото се вижда, а не е завеса.
     Долу стига до плътно, за да се слее със секцията отдолу без шев. */
  background:
    radial-gradient(
      ellipse 72% 46% at 50% 46%,
      rgba(10, 10, 12, 0.56) 0%,
      rgba(10, 10, 12, 0.32) 56%,
      rgba(10, 10, 12, 0) 80%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 12, 0.5) 0%,
      rgba(10, 10, 12, 0.14) 38%,
      rgba(10, 10, 12, 0.32) 68%,
      rgba(10, 10, 12, 0.9) 88%,
      rgb(10, 10, 12) 100%
    );
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__sheen { animation: none; }
}

/* По-светъл от общия сив текст. На видео приглушеното сиво не издържа -
   с по-живия кадър отдолу падаше под четимото. */
.hero__content p {
  margin: 26px auto 38px;
  font-size: 1.16rem;
  max-width: 780px;
  color: #E8EBEF;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  font-size: 0.9rem;
  /* По-светъл от общия сив текст - дребен е и стои върху живия кадър */
  color: #CBD2DA;
}

.hero__rating strong { color: var(--color-text); }

/* Sections */
section { padding: 90px 0; }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 52px; }

.section-heading p { margin-top: 14px; }

/* Доказателства - идват веднага след началния екран, преди всякакви обяснения.
   Първото, което човек пита за скъпа кола, е "мога ли да им се доверя". */
.proof { border-bottom: 1px solid var(--color-border); }

.proof__shots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.proof__more { display: block; width: fit-content; margin: 30px auto 0; }


/* Trust */
.trust { padding: 56px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust__item { text-align: center; }

.trust__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 50%;
}

.trust__item h3 { font-size: 0.98rem; margin-bottom: 6px; }
.trust__item p { font-size: 0.86rem; }

/* About */
.about { background: var(--color-surface); }

.about__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* Заглавието тук няма отдолу разредката, която дава ".section-heading" в
   другите секции, затова се задава на място. */
.about__content h2 { margin-bottom: 16px; }
.about__content p { margin-bottom: 14px; }
.about__content strong { color: var(--color-text); }

/* Градът и обхватът стоят под текста като два отделни факта, вместо да
   удължават изреченията. Така абзаците са къси, а на телефон, където всичко
   е центрирано, текстът спира да изглежда като стена. */
.about__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-2);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about__facts svg { flex: 0 0 auto; color: var(--color-primary); }

.about__visual { display: flex; justify-content: center; }

/* Без зададено съотношение - видеото пази собствените си пропорции, така че
   работи и хоризонтално, и вертикално, без черни ленти и без изрязване. */
.about__visual video,
.about__visual img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #000;
}

/* Services */
.services { background: var(--color-surface); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 32px 26px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover { transform: translateY(-4px); border-color: var(--color-primary); }

/* PPF е най-скъпата услуга, затова се откроява */
.service-card--featured {
  background: linear-gradient(160deg, rgba(255, 106, 0, 0.1) 0%, var(--color-bg) 60%);
  border-color: rgba(255, 106, 0, 0.35);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  color: var(--color-primary);
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-card p { font-size: 0.92rem; }

.service-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.service-card__link:hover { text-decoration: underline; }

.services__note { text-align: center; margin-top: 36px; }

/* При цена от 450 до 3500 евро човек не натиска "купи" - обажда се.
   Затова всеки пакет завършва с покана за конкретна оферта. */
.package__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 106, 0, 0.45);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.package__cta:hover { background: var(--color-primary); color: var(--color-on-primary); }
.package__cta svg { flex-shrink: 0; }

.package__hint {
  margin-top: 10px;
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.5;
}

/* Кой пакет е за мен - сваля от посетителя товара сам да се ориентира */
.chooser {
  margin-top: 56px;
  padding: 40px 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.chooser h3 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
}

.chooser__lead { margin-bottom: 30px; font-size: 0.95rem; }

.chooser__cta { font-size: 1.05rem; }


.packages { background: var(--color-bg); }

/* Пакети - разгъващи се, за да не стане страницата стена от точки */
/* Заглавията на групите са центрирани и едри, в един стил с "Гаранция"
   и "Сертификати". */
.packages__group-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 30px;
}

.packages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
  align-items: start;
}

.package {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.package:hover { border-color: rgba(255, 106, 0, 0.45); }

.package--featured { border-color: rgba(255, 106, 0, 0.4); background: linear-gradient(170deg, rgba(255, 106, 0, 0.08) 0%, var(--color-surface) 55%); }

.package__head {
  display: grid;
  gap: 6px;
  padding: 26px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.package__head::-webkit-details-marker { display: none; }

/* Заглавието и подзаглавието пазят място за два реда, за да са главите на
   всичките шест пакета еднакво високи, независимо колко е дълъг текстът. */
.package__tier {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 2.7em;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding-right: 30px;
}

.package__tier em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-on-primary);
  background: var(--color-primary);
  padding: 3px 8px;
  border-radius: 999px;
}

.package__price {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.package__tagline {
  min-height: 3em;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.package__toggle {
  position: absolute;
  top: 26px;
  right: 22px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.package[open] .package__toggle { transform: rotate(180deg); }

.package__body { padding: 0 24px 26px; }

.package__intro {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  margin-bottom: 14px;
}

.package__list { display: grid; gap: 10px; }

.package__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
}

.package__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* Допълнителни услуги */
.addons { margin-bottom: 56px; }

/* Подзаглавието следва центрирания стил на заглавието над него */
.addons .packages__group-title { margin-bottom: 12px; }

/* Без ограничение по ширина, за да стои изречението на един ред */
.addons__note {
  margin: 0 0 26px;
  text-align: center;
  font-size: 0.92rem;
}

.addons__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.addons__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.92rem;
}

.addons__list li::before {
  content: "+";
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

/* Гаранция */
.warranty {
  padding: 46px 34px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.warranty__intro { margin-bottom: 32px; }

/* Гаранцията е силен аргумент, затова заглавието е изнесено като
   собствена шапка на блока, а не като поредния ред текст. */
.warranty__intro h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

/* Без ограничение по ширина, за да стои изречението на един ред */
.warranty__intro p { font-size: 0.95rem; }

.warranty__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}

.warranty__item {
  display: grid;
  gap: 4px;
  padding: 18px 12px;
  background: var(--color-bg);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.warranty__years {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

/* Марки */
.brands { background: var(--color-bg); }

.brands__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
}

.brands__row:last-child { border-bottom: 1px solid var(--color-border); }

.brands__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Трите марки заемат три равни части - едната в началото, едната в средата
   и едната в края на реда. */
.brands__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}

.brand {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.brand:first-child { justify-self: start; }
.brand:nth-child(2) { justify-self: center; }
.brand:last-child { justify-self: end; }

.brand__name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Логата на марките имат собствен светлосив фон, не прозрачен. Подложката е
   в същия цвят, за да не се вижда правоъгълник в правоъгълник, и е нужна,
   защото тъмните им части иначе изчезват върху черното.
   Височината е по-голяма заради квадратните лога - при ниска подложка
   Arlon, Nanolex и Ceramic Bond излизаха два пъти по-дребни от SONAX. */
.brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 88px;
  padding: 10px 14px;
  background: #F7F7F7;
  border-radius: 10px;
}

.brand__logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Ако файлът липсва, кутийката се връща на пунктирано каре */
.brand__logo.placeholder {
  background: var(--color-surface-2);
  font-size: 0.7rem;
}

.brand__logo.placeholder::after { content: "лого"; }

/* Сертификати */
.certs { margin-top: 56px; text-align: center; }

/* Сертификатите доказват марките отгоре, затова заглавието е изнесено
   като шапка на блока, а не като страничен подзаглавен ред. */
.certs__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.certs__note { margin: 0 auto 28px; font-size: 0.92rem; max-width: 560px; }

.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Снимките на сертификатите са хоризонтални, затова и рамката е такава */
.cert {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert__label {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.cert > * { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Уголемяване */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(6, 6, 8, 0.94);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.lightbox__close:hover { background: var(--color-primary); color: var(--color-on-primary); }

/* Placeholder-и за материала, който още го няма */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background: var(--color-surface-2);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}


/* Проекти - раздели по услуга */
.work { background: var(--color-bg); }

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.tab {
  padding: 11px 22px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tab:hover { color: var(--color-primary); border-color: var(--color-primary); }

.tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* Две редици, които се плъзгат сами. Избледняват по двата края, за да се
   усеща, че продължават, и може да се дърпат на ръка. */
.shots { display: grid; gap: 12px; }

/* Обвивка около всяка редица - държи стрелката, за да не я хване
   избледняването по краищата. Прави се от кода.

   "min-width: 0" е задължително. Обвивката е клетка в мрежата ".shots" и без
   него клетката се разтяга колкото всичките снимки, наредени една до друга -
   над 7000 пиксела. Тогава редицата се събира в клетката, минава за "няма
   накъде да се плъзга" и си изключва избледняването, стрелката и движението,
   а цялата страница тръгва настрани. */
.shots__rail { position: relative; min-width: 0; }

.shots__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

/* Когато снимките се събират на екрана, няма накъде да се плъзга:
   редицата стои мирно, центрирана, без избледняване и без стрелка. */
.shots__row.is-static {
  justify-content: center;
  -webkit-mask-image: none;
  mask-image: none;
}

.shots__rail.is-static .shots__faster { display: none; }

.shots__row::-webkit-scrollbar { display: none; }

.shot {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface);
  cursor: zoom-in;
}

/* Фиксирана ширина само в плъзгащите се редици. В секция "Резултати"
   снимките са в мрежа и там ширината се определя от колоната. */
.shots__row .shot { flex: 0 0 auto; width: 200px; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shot:hover img { transform: scale(1.04); }

/* Скритите снимки се показват с бутона "Покажи още" */

/* Стрелките се ползват от каросела с отзивите */
.work__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface-2);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.work__arrow:hover { background: var(--color-primary); color: var(--color-on-primary); }

.work__arrow:disabled { opacity: 0; pointer-events: none; }

.work__arrow--prev { left: -22px; }
.work__arrow--next { right: -22px; }

/* Стрелката на плъзгащите се редици със снимки. Една е, стои отдясно и не
   премества на стъпки като стрелките на отзивите - забързва движението на
   своята редица, докато мишката е отгоре или бутонът е натиснат. Оцветена е,
   за да личи върху избледнелия край. На телефон я няма: там редицата се
   дърпа с пръст. */
.shots__faster {
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.shots__faster:hover { transform: translateY(-50%) scale(1.08); }
.shots__faster:active { transform: translateY(-50%) scale(0.94); }

/* Video */
/* Видеата са вертикални 9:16, затова вървят като лента, която се плъзга
   настрани - на телефон се гледат както в социалните мрежи, вместо да са
   едно под друго и да разтягат страницата. */
.video { background: var(--color-surface); }

.reels { position: relative; }

.reels__track {
  --reels-visible: 4;
  --reels-gap: 18px;
  display: flex;
  gap: var(--reels-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.reels__track::-webkit-scrollbar { display: none; }

.reel {
  position: relative;
  flex: 0 0 calc(
    (100% - (var(--reels-visible) - 1) * var(--reels-gap)) / var(--reels-visible)
  );
  margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  scroll-snap-align: start;
}

.reel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.66);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.15s ease;
}

.reel__sound:hover { background: var(--color-primary); color: var(--color-on-primary); }

.reel__ico--on { display: none; }
.reel.is-unmuted .reel__ico--on { display: block; }
.reel.is-unmuted .reel__ico--off { display: none; }
.reel.is-unmuted .reel__sound { background: var(--color-primary); color: var(--color-on-primary); }

/* Reviews */
.reviews { background: var(--color-surface); }

.reviews__score {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 44px;
}

.reviews__google { width: 44px; height: 44px; }

.reviews__score-value {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.reviews__score .star { width: 20px; height: 20px; }

/* Отзивите се скролват като галерията */
.reviews__carousel { position: relative; }

.reviews__track {
  --reviews-visible: 3;
  --reviews-gap: 22px;
  display: flex;
  gap: var(--reviews-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  align-items: stretch;
}

.reviews__track::-webkit-scrollbar { display: none; }

/* Картите са бели като истинските Google карти - веднага се чете, че отзивите
   идват отвън, а не са писани от нас. */
.review-card {
  flex: 0 0 calc(
    (100% - (var(--reviews-visible) - 1) * var(--reviews-gap)) / var(--reviews-visible)
  );
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px 22px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
}

.review-card__top { display: flex; align-items: center; gap: 12px; }

.review-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
}

/* Цветовете се редуват, както в Google */
.review-card:nth-child(3n + 1) .review-card__avatar { background: #E8F0FE; color: #1967D2; }
.review-card:nth-child(3n + 2) .review-card__avatar { background: #FCE8E6; color: #C5221F; }
.review-card:nth-child(3n) .review-card__avatar { background: #E6F4EA; color: #137333; }

.review-card__who { flex: 1; min-width: 0; display: grid; gap: 1px; }

.review-card__name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card__date { font-size: 0.78rem; color: #5F6368; }

.review-card__g { flex-shrink: 0; width: 20px; height: 20px; }

.review-card__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3C4043;
}

/* Contact */
.contact { background: var(--color-surface); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  /* Картата е ярко бяла върху тъмния сайт, затова е леко приглушена */
  filter: grayscale(0.3) contrast(1.05);
}

.contact__info h2 { margin-bottom: 16px; }
.contact__info > p { margin-bottom: 26px; max-width: 440px; }

.contact__cta { margin-bottom: 30px; font-size: 1.05rem; }

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
}

.contact__list svg { color: var(--color-primary); flex-shrink: 0; }

.contact__hours { display: grid; gap: 3px; }

.contact__list a:hover { color: var(--color-primary); }

.contact__socials { display: flex; gap: 12px; margin-top: 30px; }

.contact__socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact__socials a:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* Въпроси - свалят последните съмнения точно преди обаждането */
.faq__list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq__item:hover { border-color: rgba(255, 106, 0, 0.4); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__toggle { color: var(--color-text-muted); flex-shrink: 0; transition: transform 0.2s ease; }
.faq__item[open] .faq__toggle { transform: rotate(180deg); color: var(--color-primary); }

.faq__item p {
  padding: 0 24px;
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.faq__item p:first-of-type { padding-top: 4px; }

.faq__cta {
  margin-top: 44px;
  text-align: center;
}

.faq__cta p { margin-bottom: 16px; font-size: 1rem; }

/* Правна страница */
.legal__inner { max-width: 760px; }

.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }

.legal h2 {
  font-size: 1.15rem;
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.legal p { margin-bottom: 14px; }

.legal strong { color: var(--color-text); }

.legal a { color: var(--color-primary); }
.legal a:hover { text-decoration: underline; }

.legal__lead { font-size: 1.05rem; }

.legal__list { display: grid; gap: 12px; margin-bottom: 14px; }

.legal__list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-muted);
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.legal__back { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--color-border); }

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
}

.footer__inner { text-align: center; font-size: 0.85rem; }

.footer__link { color: var(--color-text-muted); }
.footer__link:hover { color: var(--color-primary); }

/* Mobile call bar */
.call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  gap: 10px;
  /* Долният отстъп е нарочно по-голям от горния: на телефон с кейс или
     протектор бутоните опираха в ръба и се натискаха трудно. env() добавя
     отгоре и системната зона там, където телефонът я съобщава - на Android
     тя често е нула и затова не може да се разчита само на нея. */
  padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

.call-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.call-bar__btn--call { background: var(--color-primary); color: var(--color-on-primary); }

.call-bar__btn--wa {
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.22);
}

/* Responsive */

/* Със седем пункта менюто става тясно на по-малки лаптопи */
@media (max-width: 1100px) {
  .nav { gap: 2px; }
  .nav a { padding: 8px 11px; font-size: 0.87rem; }
  .nav a.is-active { font-size: 0.9rem; }
  .logo__img { height: 38px; }
  .header__cta { padding: 10px 18px; font-size: 0.85rem; }
}

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

  /* На една колона текстовете не се пренасят, така че резервираното място
     за втори ред само би оставило дупки. */
  .package__tier,
  .package__tagline { min-height: 0; }

  .shots__row .shot { width: 180px; }
  .proof__shots { grid-template-columns: repeat(3, 1fr); }
  .addons__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 14, 18, 0.98);
    backdrop-filter: blur(14px);
    padding: 12px 16px 20px;
    gap: 2px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.55);
    animation: nav-drop 0.22s ease;
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Всеки ред е на цялата ширина, с удобно за пръст поле и стрелка вдясно */
  .nav.is-open a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    border-radius: 12px;
    font-size: 1.02rem;
    color: var(--color-text);
  }

  .nav.is-open a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.3;
  }

  .nav.is-open a.is-active {
    font-size: 1.02rem;
    background: var(--color-primary-soft);
    border-color: rgba(255, 106, 0, 0.45);
  }

  .nav.is-open a.is-active::after { opacity: 0.8; }

  /* Хамбургерът става кръстче, когато менюто е отворено */
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 90px 0 80px; min-height: 0; }
  .hero__stats { gap: 16px 32px; margin-top: 34px; padding-top: 26px; }
  .hero__stats { gap: 14px 26px; }
  .hero__stats span { font-size: 0.76rem; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__track { --reviews-visible: 1.6; --reviews-gap: 16px; }
  /* Вертикалните видеа се събират в средата на екрана, вместо да се разливат */


  .shots__row .shot { width: 160px; }
  .reels__track { --reels-visible: 2.3; --reels-gap: 14px; }
  /* На телефон няма стрелки - редиците се дърпат с пръст */
  .work__arrow, .shots__faster { display: none; }

  /* Изключение: в "Видео" стрелките остават. Там на екрана стои само един
     клип и иначе не личи, че има още. Прибират се навътре, защото при
     широчина на целия екран -22px ги изнася извън него. */
  #reelsPrev, #reelsNext { display: flex; }
  #reelsPrev { left: 6px; }
  #reelsNext { right: 6px; }

  /* На телефон всичко върви в една колона, затова и текстът е центриран,
     както в останалите секции */
  .about__inner { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
  .about__content { text-align: center; }
  .about__content p { max-width: 560px; margin-left: auto; margin-right: auto; }
  .about__facts { justify-content: center; }
  .about__visual { max-width: 420px; }

  .brands__row { grid-template-columns: 1fr; gap: 18px; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .brand__name { font-size: 1.05rem; }
  .brand__logo { width: 118px; height: 74px; padding: 8px 11px; }

  .contact__inner { grid-template-columns: 1fr; gap: 36px; }

  /* Само на телефон - целите контакти са центрирани */
  .contact__info { text-align: center; }
  .contact__info h2 { font-size: 2rem; }
  .contact__info > p { margin-left: auto; margin-right: auto; }
  .contact__socials { justify-content: center; }

  /* Списъкът остава подравнен вляво вътре в себе си, за да са иконките
     една под друга, но самият блок е центриран */
  .contact__list {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .call-bar { display: flex; }
  /* Прави място за лентата с бутоните, която стои отгоре */
  .footer { padding-bottom: 92px; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .tab { padding: 9px 16px; font-size: 0.85rem; }
  /* На телефон заглавието падаше на три реда - смалено е точно колкото
     да се събере на два, както е замислено с прекъсването в кода. */
  .hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.1rem); }

  .shots__row .shot { width: 136px; }
  .proof__shots { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .addons__list { grid-template-columns: 1fr; }
  .chooser { padding: 28px 20px; }
  .faq__item summary { padding: 18px 18px; font-size: 0.94rem; }
  .faq__item p { padding: 0 18px; }
  .warranty { padding: 28px 22px; }
  .warranty__grid { grid-template-columns: 1fr; }
  .brands__list { gap: 10px; }
  .brand__name { font-size: 0.92rem; }
  .brand__logo { width: 94px; height: 60px; padding: 6px 8px; }
  .reviews__track { --reviews-visible: 1.1; }
  /* Точно един клип на екрана. При 1.25 се подаваше ивица от следващия, но
     той още не е зареден (preload="none") и ивицата изглеждаше като черна
     дупка отстрани. Сега се минава със стрелките и с плъзгане. */
  .reels__track { --reels-visible: 1; --reels-gap: 12px; }
  .reviews__score { text-align: center; }
}
