/* ===== Основни настройки ===== */
:root {
  --bg: #121019;           /* фон на страницата */
  --bg-2: #18151f;         /* фон на редуващите се секции */
  --card: #201c2c;         /* карти */
  --line: #2f2a42;         /* линии и рамки */
  --text: #e9e7f1;
  --muted: #a39eb6;
  --accent: #6b55c8;       /* лилаво */
  --accent-light: #a99cf0;
  --accent-dark: #3a2a7a;
  --orange: #d9782c;       /* оранжев бутон */
  --radius: 8px;
  --max: 1180px;
  --head: "Exo 2", "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.2; }

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: var(--head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  border: 1px solid var(--accent);
  background: linear-gradient(#4a3594, #2b1e62);
  transition: .25s;
  cursor: pointer;
}
.btn:hover { background: linear-gradient(#5a43ad, #352676); border-color: #7d68d8; }
.btn-orange { background: linear-gradient(#d9782c, #a64f19); border-color: #e48a3e; }
.btn-orange:hover { background: linear-gradient(#e6873a, #b85b1f); border-color: #f09a50; }
.btn-ghost { background: transparent; border-color: var(--accent); color: #d9d3ff; }
.btn-ghost:hover { background: rgba(107, 85, 200, .18); }

/* ===== Горна лента ===== */
.topbar { background: #0c0a11; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar span { margin-right: 18px; }
.topbar a:hover { color: var(--accent-light); }

/* ===== Навигация ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 16, 25, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--head); font-weight: 600; font-size: 1.35rem; color: #fff; white-space: nowrap; letter-spacing: .5px; }
.logo img { height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; list-style: none; gap: 4px; }
.nav a {
  display: block; padding: 9px 14px; border-radius: 4px;
  font-family: var(--head); font-weight: 500; font-size: .95rem; letter-spacing: .5px;
  text-transform: uppercase; color: #c9c5da; transition: .2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active { box-shadow: inset 0 -2px 0 var(--accent-light); border-radius: 0; }
.nav a.nav-cta { margin-left: 10px; color: #fff; border: 1px solid #6b55c8; background: linear-gradient(#4a3594, #2b1e62); border-radius: 4px; box-shadow: none; }
.nav a.nav-cta:hover { background: linear-gradient(#5a43ad, #352676); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; margin-left: auto;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(107, 85, 200, .28), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(217, 120, 44, .10), transparent 50%),
    var(--bg);
}
/* Слайдшоу на заден фон */
/* снимките са в дясната част, а левият им край се прелива във фона */
.hero-slides {
  position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; left: 35%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 45%);
}
.hero-slides div {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s linear;
}
.hero-slides div.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14, 12, 20, .92) 0%, rgba(14, 12, 20, .6) 40%, rgba(14, 12, 20, .12) 70%, rgba(14, 12, 20, 0) 100%),
              linear-gradient(to top, rgba(14, 12, 20, .85), transparent 28%);
}
@media (max-width: 768px) {
  .hero-slides {
    left: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
  }
  .hero::after { background: rgba(14, 12, 20, .72); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(169, 156, 240, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 156, 240, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero .container { position: relative; z-index: 3; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: 1px;
  text-transform: uppercase; max-width: 780px; margin-bottom: 20px;
}
.hero-tags {
  font-family: var(--head); font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.45rem); letter-spacing: 2px; color: var(--accent-light); margin-bottom: 18px;
}
.hero p { font-size: 1.15rem; max-width: 580px; color: #d4d1e2; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .btn { min-width: 160px; }
.hero-note { margin-top: 34px; color: var(--muted); font-size: .98rem; }

.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(107, 85, 200, .25), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.page-hero p { color: var(--muted); }
.breadcrumbs { font-size: .9rem; margin-top: 10px; color: var(--muted); }
.breadcrumbs a { color: var(--accent-light); }

/* ===== Секции ===== */
.section { padding: 80px 0; }
.section-light { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .eyebrow { font-family: var(--head); color: var(--accent-light); font-weight: 500; text-transform: uppercase; letter-spacing: 3px; font-size: .85rem; }
.section-title h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 12px; }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Лента с предимства */
.strip { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.strip .grid { gap: 16px; }
.strip-item { display: flex; align-items: center; gap: 14px; }
.strip-item .icon { flex: 0 0 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--accent-light); }
.strip-item .icon svg { width: 22px; height: 22px; }
.strip-item strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1rem; }
.strip-item span { color: var(--muted); font-size: .88rem; }
a.strip-item strong, a.strip-item .icon { transition: color .2s, border-color .2s; }
a.strip-item:hover strong { color: var(--accent-light); }
a.strip-item:hover .icon { border-color: var(--accent-light); }

/* Карти с услуги */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: .25s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card .icon {
  width: 54px; height: 54px; border-radius: 8px; background: rgba(107, 85, 200, .16);
  display: grid; place-items: center; color: var(--accent-light); margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.card .tags span,
.card .tags a { font-size: .78rem; color: #cfc9ef; border: 1px solid var(--line); border-radius: 50px; padding: 2px 10px; }
.card .tags a { transition: border-color .2s, color .2s, background .2s; }
.card .tags a:hover { color: #fff; border-color: #6b55c8; background: rgba(107, 85, 200, .25); }

/* Стъпки */
.steps { counter-reset: step; }
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--head); font-weight: 600; font-size: 2rem; color: var(--accent-light); display: block; margin-bottom: 6px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Технологии */
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech span,
.tech a {
  font-family: var(--head); font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 10px 18px; color: #d9d5ea;
}
.tech a { transition: border-color .2s, color .2s, background .2s; }
.tech a:hover { color: #fff; border-color: var(--accent); background: rgba(107, 85, 200, .25); }
/* машината, към която води връзка от началната страница, се отбелязва */
.machine:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.center { text-align: center; margin-top: 36px; }

/* CTA */
.cta {
  text-align: center; padding: 70px 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(107, 85, 200, .45), transparent 60%), var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 28px; }
.cta .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Машинен парк ===== */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  border: 1px solid var(--line); background: var(--card); color: #cfcbe0;
  padding: 9px 20px; border-radius: 4px; font-family: var(--head); font-weight: 500; letter-spacing: .5px;
  text-transform: uppercase; cursor: pointer; font-size: .9rem; transition: .2s;
}
.filter-btn:hover { border-color: var(--accent); color: #fff; }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.machine {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s;
}
.machine:hover { border-color: var(--accent); transform: translateY(-4px); }
.machine-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1724; }
.machine-img img { width: 100%; height: 100%; object-fit: cover; }
.machine-tag {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff;
  font-family: var(--head); font-size: .78rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
}
.machine-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.machine-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.machine-body > p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.specs { list-style: none; border-top: 1px solid var(--line); margin-top: auto; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { font-weight: 500; text-align: right; }
.machine .btn { margin-top: 18px; padding: 10px 20px; }
.machine.hidden { display: none; }

/* ===== Галерия ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--card); border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(10, 8, 16, .85)); color: #fff;
  font-weight: 500; font-size: .95rem; opacity: 0; transition: .3s;
}
.gallery-item:hover figcaption { opacity: 1; }
.gallery-item.is-album { cursor: pointer; }
.gallery-item.is-album figcaption { opacity: 1; z-index: 1; }
.gallery-item img.card-next { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease, transform .4s; }
.gallery-item img.card-next.show { opacity: 1; }
.album-badge { z-index: 1; }
.album-badge {
  position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff;
  font-family: var(--head); font-size: .78rem; font-weight: 600; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 4px;
}
.album-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; }
.album-back { color: var(--accent-light); font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.album-back:hover { color: #fff; }
.album-title { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: 1px; }
.album-count { color: var(--muted); }
.album-empty { color: var(--muted); }
[hidden] { display: none !important; }

.lightbox {
  position: fixed; inset: 0; background: rgba(8, 7, 12, .95); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 40px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 6px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox-inner { text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: .2s;
}
.lb-btn:hover { background: var(--accent); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ===== Контакти ===== */
.contact-info .item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .icon {
  flex: 0 0 52px; height: 52px; border-radius: 8px; background: rgba(107, 85, 200, .16); color: var(--accent-light);
  display: grid; place-items: center;
}
.contact-info .icon svg { width: 24px; height: 24px; }
.contact-info h3, .contact-info h4 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-info p, .contact-info a { color: var(--muted); }
.contact-info a:hover { color: var(--accent-light); }

.form { background: var(--card); border: 1px solid var(--line); padding: 34px; border-radius: var(--radius); }
.form h3 { margin-bottom: 20px; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: #cfcbe0; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  font-family: inherit; font-size: 1rem; transition: .2s; background: #16131f; color: var(--text);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 130px; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 4px; display: none; font-weight: 500; }
.form-msg.ok { display: block; background: rgba(46, 160, 90, .15); color: #8fe0ad; border: 1px solid rgba(46, 160, 90, .4); }
.form-msg.err { display: block; background: rgba(220, 60, 60, .12); color: #f3a3a3; border: 1px solid rgba(220, 60, 60, .4); }

.map { margin-top: 60px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 400px; border: 0; display: block; filter: invert(.9) hue-rotate(200deg) saturate(.6); }

.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 20px; color: var(--muted); }
.hours li span:last-child { white-space: nowrap; }
[id] { scroll-margin-top: 90px; }

/* ===== Футър ===== */
.footer { background: #0c0a11; color: var(--muted); padding: 60px 0 0; font-size: .95rem; border-top: 1px solid var(--line); }
.footer .grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
.footer h3, .footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; }
.footer .logo { display: inline-block; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--accent-light); }
/* Бутон „Оставете отзив в Google“ във футъра */
.footer .btn-review { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 18px; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: #fff; font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: .92rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.footer .btn-review:hover { border-color: var(--accent); background: rgba(107, 85, 200, .15); color: #fff; }
.footer .btn-review svg { width: 18px; height: 18px; flex: 0 0 18px; }
.footer .btn-review .stars { color: #f5b301; letter-spacing: 1px; font-size: .85rem; }
.footer .btn-fb { display: flex; width: fit-content; margin-top: 10px; }
.footer .btn-fb:hover { border-color: #1877F2; background: rgba(24, 119, 242, .15); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0; text-align: center; font-size: .85rem; }

/* ===== Адаптивност ===== */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; background: #16131f;
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 480px; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .nav a.active { box-shadow: inset 2px 0 0 var(--accent-light); }
  .nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-toggle.open span { background: transparent; }
  .nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 70vh; padding: 50px 0; }
  .topbar .hide-sm { display: none; }
  .lightbox { padding: 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .header .logo { font-size: 1.1rem; }
  .hero h1 { font-size: clamp(1.45rem, 8vw, 2rem); letter-spacing: .5px; }
  .hero .btn { flex: 1 1 130px; min-width: 0; padding: 12px 14px; }
  .hero .actions { gap: 12px; }
  .form { padding: 24px 18px; }
}
/* Лента с видео – малки превюта на един ред; при натискане се отваря голямо със звук */
.video-section .section-title p, .photo-section .section-title p { max-width: none; }
.video-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-item:hover img { transform: scale(1.05); }
/* Текст от админ панела върху снимки и видеа */
.item-text { position: absolute; inset: auto 0 0 0; padding: 28px 10px 9px; background: linear-gradient(transparent, rgba(10, 8, 16, .85)); color: #fff; font-size: .85rem; line-height: 1.3; pointer-events: none; }
.item-text span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-caption { position: absolute; z-index: 3; right: 20px; bottom: 16px; max-width: min(420px, calc(100% - 40px)); padding: 6px 12px; border-radius: var(--radius); background: rgba(14, 12, 20, .7); color: #fff; font-size: .9rem; }
.vm-text { color: #fff; text-align: center; margin-top: 10px; }
@media (max-width: 768px) { .hero-caption { right: 10px; bottom: 8px; max-width: calc(100% - 20px); font-size: .8rem; } }
.video-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, calc((100% - 5 * 14px) / 6), 220px); justify-content: start; justify-content: safe center; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--accent-dark) transparent; }
.video-track.auto { scroll-snap-type: none; justify-content: start; }
.video-track.auto .video-item { scroll-snap-align: none; }
.video-item { position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); cursor: pointer; scroll-snap-align: start; transition: border-color .2s; }
.video-item video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-item:hover { border-color: var(--accent); }
.video-item:hover video { transform: scale(1.05); }
.video-item .play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(18, 16, 25, .65); border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: #fff; pointer-events: none; transition: background .2s; }
.video-item:hover .play { background: var(--accent); }
.video-item .play svg { width: 18px; height: 18px; margin-left: 3px; }
.video-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 7, 12, .92); display: none; place-items: center; align-content: center; padding: 20px; }
.video-modal.open { display: grid; }
.video-modal video { max-width: 100%; max-height: 86vh; border-radius: var(--radius); background: #000; }
.video-modal .vm-close { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
/* ===== Политики (privacy.html, cookies.html) ===== */
.footer-bottom .legal-links { display: inline-block; margin-left: 8px; }
.footer-bottom a { color: var(--accent-light); }
.footer-bottom a:hover { color: #fff; }
.form-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form-note a { color: var(--accent-light); text-decoration: underline; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; color: var(--text); }
.legal p, .legal li { color: #cfcbe0; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-light); text-decoration: underline; }
.legal .legal-date { color: var(--muted); font-size: .9rem; }
.legal code { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: .88em; }
.legal .table-wrap { overflow-x: auto; margin: 10px 0 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); background: var(--card); }
/* Лента за бисквитки (показва се, докато посетителят не натисне „Разбрах“) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: .88rem; color: #cfcbe0; }
.cookie-bar p { margin: 0; flex: 1; line-height: 1.5; }
.cookie-bar a { color: var(--accent-light); text-decoration: underline; }
.cookie-bar .btn { padding: 9px 20px; white-space: nowrap; }
@media (max-width: 600px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; } }

/* ===== Страници за услуги ===== */
.service { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.service-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.service-text .service-lead { color: var(--text); font-size: 1.15rem; }
.service-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-side h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.service-side h3 { font-size: 1rem; margin: 22px 0 10px; }
.service-side ul { list-style: none; margin: 0 0 8px; padding: 0; }
.service-side li { color: var(--muted); padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid var(--line); }
.service-side li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.service-side li a { color: var(--text); }
.service-side li a:hover { color: var(--accent-light); }
.service-side .tech { justify-content: flex-start; }
.service-side .btn { margin-top: 22px; width: 100%; text-align: center; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--accent-light); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Страница „За нас“ ===== */
.legal .timeline { list-style: none; padding: 0 0 0 20px; margin: 16px 0 0; border-left: 2px solid var(--line); }
.legal .timeline li { position: relative; margin-bottom: 14px; }
.legal .timeline li::before { content: ""; position: absolute; left: -26px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.legal .timeline b { color: var(--accent-light); margin-right: 8px; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-bottom: 32px; }
.cap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cap h3 { font-size: 1.05rem; margin-bottom: 12px; }
.cap ul { margin: 0; padding-left: 18px; }
.cap li { color: var(--muted); margin-bottom: 6px; }

/* ===== Често задавани въпроси ===== */
.faq { max-width: 860px; }
.faq-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.faq-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .92rem; }
.faq-nav a:hover { border-color: var(--accent); color: var(--accent-light); }
.faq-group { margin-bottom: 40px; scroll-margin-top: 100px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 16px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { position: relative; padding: 16px 52px 16px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent-light); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { display: inline; font-size: 1.02rem; font-weight: 600; }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a a, .faq-more a { color: var(--accent-light); }
.faq-more { text-align: center; color: var(--muted); margin-top: 8px; }

/* ===== Съвети ===== */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.tip-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: border-color .2s; }
.tip-card:hover { border-color: var(--accent); }
.tip-card p { color: var(--muted); flex: 1; }
.tip-more { color: var(--accent-light); margin-top: 12px; font-weight: 500; }
.article .service-lead { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.article-cta { margin-top: 28px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* ===== Банерчета със съвети в началния екран – лента, която се движи сама (main.js) ===== */
.hero-tips { display: flex; gap: 14px; margin-top: 34px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.hero-tips::-webkit-scrollbar { display: none; }
.hero-tips.auto { scroll-snap-type: none; }
.hero-tip { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 84px; padding: 14px 16px; background: rgba(20, 17, 30, .78); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; backdrop-filter: blur(4px); transition: border-color .2s, background .2s; }
.hero-tip:hover { border-color: var(--accent); background: rgba(107, 85, 200, .22); }
.hero-tip small { color: var(--accent-light); font-size: .72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hero-tip span { font-weight: 600; font-size: .95rem; line-height: 1.3; }
@media (max-width: 900px) { .hero-tips { margin-right: -16px; } .hero-tip { flex-basis: 62%; max-width: 230px; min-height: 74px; } }
