/* ============================================================
   DEVA-BUILD87 — Строително-ремонтни услуги
   Дизайн система: светъл минимализъм · бяло + червен акцент
   Типография: Oswald (заглавия, главни букви) + Inter (текст)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f3f2ef;
  --dark: #121212;
  --dark-soft: #1b1b1b;
  --line: #e8e6e1;
  --line-strong: #d8d5cf;
  --text: #141414;
  --muted: #6b6a64;
  --accent: #e8432a;
  --accent-deep: #c93016;
  --accent-ink: #ffffff;
  --gradient-accent: linear-gradient(115deg, #f1573f 0%, #e8432a 55%, #d03116 100%);
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 18px 44px rgba(20, 20, 20, 0.1);
  --shadow-accent: 0 12px 30px rgba(232, 67, 42, 0.28);
  --container: 1200px;
  --nav-h: 84px;
  /* z-скала */
  --z-nav: 50;
  --z-menu: 60;
  --z-float: 40;
  --z-lightbox: 80;
}

/* ---------- Reset / база ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

body.menu-locked {
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Типография ---------- */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.accent-text {
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- Помощни ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(72px, 9vw, 116px);
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.section-head h2 {
  margin-bottom: 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head--center .kicker::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  /* На телефон: бързо докосване без забавяне и без iPhone „задържане"
     прозорчето с преглед на връзката (черната кутийка) */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--accent {
  background: var(--dark);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--dark {
  background: #fff;
  color: var(--text);
}

.btn--dark:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Навигация ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand .num {
  color: var(--accent);
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 920px) {
  .brand-logo {
    height: 38px;
  }
}

/* Лого върху бял бадж в тъмния footer */
.site-footer .footer-brand .brand {
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.site-footer .footer-brand .brand-logo {
  height: 40px;
}

.site-nav {
  margin-left: auto;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

.site-nav a.is-active {
  color: var(--accent);
}

.nav-phone {
  min-height: 46px;
  padding: 10px 22px;
  font-size: 0.93rem;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: calc(var(--z-menu) + 1);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Мобилно меню */
@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    display: grid;
    place-items: center;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav > ul {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .site-nav a {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.35rem;
    padding: 14px 28px;
    color: var(--text);
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-phone {
    display: none;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Главно hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 48px;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.45) 44%, rgba(255, 255, 255, 0.15) 100%),
    linear-gradient(to top, rgba(255, 255, 255, 0.46) 0%, transparent 36%);
}

.hero-inner {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 67, 42, 0.16);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  margin-bottom: 36px;
  color: #4d4c47;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 880px;
  box-shadow: var(--shadow-card);
}

.hero-stats > div {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 6px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Черна лента с услуги ---------- */
.services-strip {
  background: var(--dark);
  color: #fff;
}

.services-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-block: 16px;
}

.services-strip a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.2s ease;
}

.services-strip a svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}

.services-strip a:hover {
  color: var(--accent);
}

/* ---------- Вътрешно hero (подстраници) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px));
  padding-bottom: clamp(56px, 7vw, 88px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero .kicker {
  margin-bottom: 14px;
}

.page-hero h1 {
  margin-bottom: 18px;
  max-width: 760px;
}

.page-hero .lead {
  max-width: 680px;
}

/* ---------- Лента с предимства ---------- */
.ribbon {
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 26px;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.93rem;
}

.ribbon-item svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

/* ---------- Карти услуги ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(232, 67, 42, 0.08);
  border: 1px solid rgba(232, 67, 42, 0.22);
  color: var(--accent);
  transition: background-color 0.25s ease;
}

.service-card:hover .service-icon {
  background: rgba(232, 67, 42, 0.14);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
}

.card-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.service-card:hover .card-link svg,
.project-card:hover .card-link svg {
  transform: translateX(5px);
}

/* ---------- Разделени секции (текст + изображение) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split--reverse > .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.split-media .frame-accent {
  position: absolute;
  inset: 26px -22px -22px 26px;
  border: 1px solid rgba(232, 67, 42, 0.35);
  border-radius: var(--radius);
  z-index: -1;
}

/* Постер-снимки (вертикални корици) — показват се изцяло, без изрязване */
.split-media--poster {
  display: flex;
  justify-content: center;
}

.split-media--poster img {
  aspect-ratio: auto;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 560px;
}

.experience-chip {
  position: absolute;
  left: -18px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.experience-chip .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.experience-chip .small {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 130px;
  color: var(--muted);
}

.split-content h2 {
  margin-bottom: 18px;
}

.split-content > p {
  color: var(--muted);
  margin-bottom: 26px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
}

.check-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

/* ---------- Процес / стъпки ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  border-color: rgba(232, 67, 42, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 18px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Проекти ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 11px 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

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

.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.06);
}

.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.project-body {
  padding: 22px 24px 26px;
}

.project-body h3 {
  margin-bottom: 6px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---------- Отзиви ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  border-color: rgba(232, 67, 42, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
}

.stars svg {
  width: 18px;
  height: 18px;
}

.testimonial blockquote {
  color: var(--muted);
  font-size: 0.97rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 67, 42, 0.1);
  border: 1px solid rgba(232, 67, 42, 0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
}

.testimonial-author .name {
  font-weight: 700;
  font-size: 0.96rem;
}

.testimonial-author .where {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- CTA лента ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  padding: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(232, 67, 42, 0.16);
  filter: blur(2px);
}

.cta-band h2 {
  margin-bottom: 12px;
  color: #fff;
}

.cta-band p {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

.cta-band .actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  white-space: nowrap;
  color: #fff;
  transition: color 0.2s ease;
}

.cta-phone:hover {
  color: var(--accent);
}

.cta-phone svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

/* ---------- Услуги: детайлни блокове ---------- */
.service-detail {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.service-detail + .service-detail {
  margin-top: clamp(64px, 8vw, 104px);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Стойности / характеристики ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  border-color: rgba(232, 67, 42, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.value-card .service-icon {
  margin-bottom: 18px;
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.is-open {
  border-color: rgba(232, 67, 42, 0.45);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 26px 24px;
  color: var(--muted);
}

/* ---------- Контакти ---------- */
.contact-layout {
  display: grid;
  /* Формата е основната (по-широка) колона и стои първа — преди контактите */
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

/* Формата първа: на компютър — лявата (по-широка) колона;
   на телефон — най-отгоре, преди картите с контакти */
.contact-layout .contact-form {
  order: -1;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a.contact-card:hover {
  border-color: rgba(232, 67, 42, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.contact-card .service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
}

.contact-card .service-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-card .value {
  font-weight: 700;
  font-size: 1.06rem;
  word-break: break-word;
}

/* Форма */
.contact-form {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 52px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6a64' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(107, 106, 100, 0.55);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 67, 42, 0.14);
}

.form-field input.has-error,
.form-field textarea.has-error {
  border-color: #dc2626;
}

.form-error {
  display: none;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
}

.has-error ~ .form-error {
  display: block;
}

.form-note {
  margin-top: 16px;
  font-size: 0.87rem;
  color: var(--muted);
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #15803d;
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

.map-frame {
  margin-top: clamp(48px, 6vw, 72px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(0.95);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding-top: clamp(56px, 7vw, 80px);
}

.site-footer .brand {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.94rem;
  margin-top: 18px;
  max-width: 34ch;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  background: var(--accent);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

.footer-contact a {
  color: #fff;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.87rem;
}

/* ---------- Плаващи бутони ---------- */
.float-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-float);
  display: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.float-call svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 920px) {
  .float-call {
    display: inline-flex;
  }
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-float);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(20, 20, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 920px) {
  .to-top {
    bottom: 92px;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 20, 20, 0.8);
  color: #fff;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* ---------- Scroll reveal анимации ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible {
  transform: translateX(0);
}

/* Hero entrance */
.hero [data-hero],
.page-hero [data-hero] {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Бутоните в hero НЕ се плъзгат — само избледняват на място. Така няма
   „движеща се мишена" и клик/докосване винаги попада точно върху бутона,
   който се вижда (иначе плъзгащите се бутони отвеждаха на грешна страница). */
.hero .hero-actions[data-hero],
.page-hero .hero-actions[data-hero] {
  transform: none;
  animation-name: heroFade;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-hero .kicker[data-hero] {
  display: inline-flex;
}

.hero [data-hero="1"], .page-hero [data-hero="1"] { animation-delay: 0.1s; }
.hero [data-hero="2"], .page-hero [data-hero="2"] { animation-delay: 0.25s; }
.hero [data-hero="3"], .page-hero [data-hero="3"] { animation-delay: 0.4s; }
.hero [data-hero="4"] { animation-delay: 0.55s; }
.hero [data-hero="5"] { animation-delay: 0.75s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Отзивчивост ---------- */
@media (max-width: 1060px) {
  .services-grid,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split--reverse > .split-media {
    order: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

  .experience-chip {
    left: 16px;
  }

  .split-media .frame-accent {
    display: none;
  }

  .services-strip-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .values-grid,
  .steps,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    gap: 20px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .ribbon-grid {
    grid-template-columns: 1fr;
  }

  .hero-scroll {
    display: none;
  }

  .form-field--half {
    grid-column: 1 / -1;
  }

  .services-strip-row {
    flex-direction: column;
    gap: 10px;
    padding-block: 18px;
  }
}

/* ---------- Падащо меню „Услуги“ ---------- */
.site-nav li {
  position: relative;
}

.site-nav .caret {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 4px;
  transition: transform 0.25s ease;
}

.has-sub:hover > a .caret,
.has-sub:focus-within > a .caret {
  transform: rotate(180deg);
}

.has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: var(--z-nav);
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .sub-menu a {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.site-nav .sub-menu a:hover {
  background: var(--bg-soft);
}

.site-nav .sub-menu .sub-all {
  color: var(--accent);
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  margin-top: 6px;
  padding-top: 13px;
}

@media (max-width: 920px) {
  .site-nav {
    display: flex;
    overflow-y: auto;
  }

  .site-nav > ul {
    margin: auto;
    padding: calc(var(--nav-h) + 8px) 24px 48px;
  }

  .has-sub::after {
    display: none;
  }

  .sub-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    /* Наследява видимостта на мобилното меню: при затворено меню
       (.site-nav е visibility:hidden) подменюто също е скрито и НЕ е
       кликаемо. Иначе стоеше невидимо върху hero бутона и го отвеждаше
       към „Услуги". При отворено меню (.nav-open) се показва нормално. */
    visibility: inherit;
    transform: none;
  }

  .site-nav .sub-menu a {
    font-family: var(--font-body);
    text-transform: none;
    font-size: 1.02rem;
    font-weight: 500;
    padding: 9px 16px;
    color: var(--muted);
  }

  .site-nav .sub-menu a:hover {
    background: transparent;
  }

  .site-nav .sub-menu .sub-all {
    border-top: 0;
    margin-top: 0;
    padding-top: 9px;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  flex: none;
}

.breadcrumbs [aria-current] {
  color: var(--text);
}

.page-hero .hero-actions {
  margin: 32px 0 0;
}

/* ---------- Галерия на услуга ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 20px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.82), transparent);
}

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

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

/* ---------- Свързани услуги ---------- */
a.chip {
  transition: border-color 0.2s ease, color 0.2s ease;
}

a.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero за страница на услуга (с постер-корица) ---------- */
.page-hero--split .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 390px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.page-hero-poster {
  position: relative;
  width: 100%;
  justify-self: end;
}

.page-hero-poster img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.page-hero-poster .frame-accent {
  position: absolute;
  inset: 26px -20px -20px 26px;
  border: 1px solid rgba(232, 67, 42, 0.35);
  border-radius: var(--radius);
  z-index: -1;
}

@media (max-width: 920px) {
  .page-hero--split .container {
    grid-template-columns: 1fr;
  }

  .page-hero-poster {
    justify-self: center;
    max-width: 340px;
  }

  .page-hero-poster .frame-accent {
    inset: 16px -12px -12px 16px;
  }
}

/* ---------- Фини анимации (паралакс и микро-взаимодействия) ---------- */
/* Бавно кинематографично приближение на hero снимката; контейнерът е
   оразмерен с резерв (-12%), за да поеме паралакс отместването от JS */
.hero-bg {
  inset: -12% 0;
  will-change: transform;
}

.hero-bg img {
  animation: heroZoom 16s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Плавно „наместване" на постер снимката на вътрешните страници */
.page-hero-poster img {
  animation: posterSettle 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes posterSettle {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

/* Стрелките в бутоните се плъзгат напред при посочване */
.btn svg {
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Подканата за скрол „диша" леко */
.hero-scroll svg {
  animation: scrollNudge 2.4s ease-in-out infinite;
}

@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Плаващият бутон за обаждане привлича окото с мек пулс */
.float-call::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: callPulse 3.6s ease-out infinite;
  pointer-events: none;
}

@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 67, 42, 0.45); }
  35% { box-shadow: 0 0 0 14px rgba(232, 67, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 67, 42, 0); }
}

/* ---------- Намалено движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .hero [data-hero],
  .page-hero [data-hero] {
    opacity: 1;
    transform: none;
  }
}
