/* ============================================================
   ПРЕСТИЖ СТРОЙ ЕООД — Design System
   Palette: deep navy / brand red / warm gold / warm paper
   Type: Unbounded (display) + Manrope (text)
   ============================================================ */

:root {
  --ink: #0d1422;
  --navy: #142138;
  --navy-2: #1b2c4c;
  --navy-3: #24365c;
  --red: #b5322c;
  --red-bright: #cf3d36;
  --red-deep: #8e2521;
  --gold: #e3a83c;
  --paper: #f4f1ea;
  --paper-2: #ece8de;
  --white: #ffffff;
  --text: #1c2434;
  --text-soft: #4c576c;
  --text-inv: #eef1f7;
  --text-inv-soft: #aab5c9;
  --line: rgba(20, 33, 56, 0.14);
  --line-inv: rgba(238, 241, 247, 0.16);

  --font-display: "Unbounded", sans-serif;
  --font-text: "Manrope", sans-serif;

  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem; --s6: 4.5rem; --s7: 6.5rem;

  --w-max: 76rem;
  --slope: 3.2deg;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 40px -18px rgba(13, 20, 34, 0.35);
}

/* ---------- 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-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); text-wrap: balance; }
h4, h5 { font-family: var(--font-text); font-weight: 800; color: var(--navy); }
.h-display { font-size: clamp(2rem, 5.2vw, 3.9rem); overflow-wrap: break-word; }
.h-xl { font-size: clamp(1.7rem, 3.6vw, 2.8rem); overflow-wrap: break-word; }
/* „Хидроизолация" (13 знака Unbounded) не се събира под ~380px при 2rem */
@media (max-width: 379px) {
  .h-display { font-size: 1.7rem; }
  .h-xl { font-size: 1.5rem; }
}
.h-lg { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.h-md { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-text); font-size: 0.8125rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 3px; background: var(--red); flex: none; }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--gold); }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--text-soft); max-width: 46ch; }
.on-dark .lead { color: var(--text-inv-soft); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--w-max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { display: grid; gap: 1.1rem; max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.on-dark { background: var(--navy); color: var(--text-inv); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-ink { background: var(--ink); }

/* grain texture on dark sections */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* slanted section edges — the "roof pitch" motif */
.slope-top { clip-path: polygon(0 0, 100% clamp(1.2rem, 3.5vw, 3.4rem), 100% 100%, 0 100%); margin-top: calc(clamp(1.2rem, 3.5vw, 3.4rem) * -1); }
.slope-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(1.2rem, 3.5vw, 3.4rem)), 0 100%); }
.slope-both { clip-path: polygon(0 0, 100% clamp(1.2rem, 3.5vw, 3.4rem), 100% calc(100% - clamp(1.2rem, 3.5vw, 3.4rem)), 0 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.85rem 1.9rem;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.01em;
  border-radius: 3px; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.btn svg { flex: none; }
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(181, 50, 44, 0.7); }
.btn-red:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--line-inv); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-ghost-dark { border: 2px solid rgba(20,33,56,0.35); color: var(--navy); }
.btn-ghost-dark:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s;
}
.site-header.is-solid { background: rgba(13, 20, 34, 0.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-inv); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: #fff; }
.brand img { width: 3rem; height: 3rem; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.1; letter-spacing: 0.02em; }
.brand-name small { display: block; font-family: var(--font-text); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; margin-top: 0.2rem; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.6rem 0.85rem; color: var(--text-inv-soft); font-weight: 700; font-size: 0.95rem;
  border-radius: 3px; transition: color 0.2s;
}
.main-nav a:hover { color: #fff; }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--red-bright); }
.header-phone { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; color: #fff; padding: 0.6rem 1.1rem; border: 2px solid var(--line-inv); border-radius: 3px; transition: border-color 0.25s, color 0.25s; white-space: nowrap; }
.header-phone:hover { border-color: var(--gold); color: var(--gold); }
.header-phone svg { color: var(--gold); }

/* burger */
.burger { display: none; position: relative; z-index: 130; width: 3rem; height: 3rem; border-radius: 3px; align-items: center; justify-content: center; }
.burger-box { width: 1.7rem; height: 14px; position: relative; }
.burger-box span { position: absolute; left: 0; width: 100%; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.32s var(--ease), opacity 0.2s, top 0.32s var(--ease); }
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 50%; margin-top: -1.25px; }
.burger-box span:nth-child(3) { top: 100%; margin-top: -2.5px; }
.burger[aria-expanded="true"] .burger-box span:nth-child(1) { top: 50%; margin-top: -1.25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-box span:nth-child(3) { top: 50%; margin-top: -1.25px; transform: rotate(-45deg); }

/* mobile menu overlay */
/* при отворено меню header-ът (с бургера-X) трябва да е над overlay-а */
body.menu-open .site-header { z-index: 140; background: none; box-shadow: none; backdrop-filter: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--ink) 0%, var(--navy-2) 100%);
  padding: 6.5rem 2rem 2.5rem;
  visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
  overflow-y: auto;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.mobile-menu nav { display: grid; gap: 0.25rem; }
.mobile-menu nav > a {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 6vw, 1.9rem);
  color: #fff; padding: 0.55rem 0; border-bottom: 1px solid var(--line-inv);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu nav > a.is-active { color: var(--gold); }
.mobile-menu nav > a::after { content: "→"; font-family: var(--font-text); font-size: 1.1rem; color: var(--red-bright); }
.mobile-menu.is-open nav > a { opacity: 1; transform: none; }
.mobile-menu.is-open nav > a:nth-child(1) { transition-delay: 0.06s; } .mobile-menu.is-open nav > a:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.is-open nav > a:nth-child(3) { transition-delay: 0.16s; } .mobile-menu.is-open nav > a:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu.is-open nav > a:nth-child(5) { transition-delay: 0.26s; } .mobile-menu.is-open nav > a:nth-child(6) { transition-delay: 0.31s; }
.mobile-menu-cta { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 0.85rem; }
.mobile-menu-note { color: var(--text-inv-soft); font-size: 0.9rem; text-align: center; }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); color: var(--text-inv); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 112%; object-fit: cover; object-position: 62% 38%; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(13,20,34,0.94) 0%, rgba(13,20,34,0.82) 34%, rgba(13,20,34,0.38) 62%, rgba(13,20,34,0.55) 100%),
              linear-gradient(0deg, rgba(13,20,34,0.9) 0%, rgba(13,20,34,0) 40%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 8.5rem 4.5rem; }
.hero-content { max-width: 40rem; display: grid; gap: 1.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 5.6vw, 4.1rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line-inv); }
.hero-chips li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 700; color: var(--text-inv-soft); }
.hero-chips svg { color: var(--gold); flex: none; }
.hero-scroll {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 2.2rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--text-inv-soft); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after { content: ""; width: 2px; height: 3.4rem; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2.2s var(--ease) infinite; }
@keyframes scrollPulse { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* page hero (inner pages) */
.page-hero { position: relative; background: var(--ink); color: var(--text-inv); padding-top: 4.75rem; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,20,34,0.9), rgba(13,20,34,0.55)); }
.page-hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; gap: 1.2rem; max-width: 50rem; }
.page-hero h1 { color: #fff; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; font-weight: 700; color: var(--text-inv-soft); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { color: var(--red-bright); }
.breadcrumbs [aria-current] { color: #fff; }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding-block: 0.9rem; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 3rem; font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.marquee span i { font-style: normal; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / split ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.split-rev > .split-media { order: 2; } }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-card); }
.split-media .media-tag {
  position: absolute; left: 1rem; bottom: 1rem; background: rgba(13,20,34,0.85); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 0.9rem; border-left: 3px solid var(--red-bright); border-radius: 2px;
}
.split-body { display: grid; gap: 1.25rem; }
.split-body p { color: var(--text-soft); max-width: 54ch; }
.on-dark .split-body p { color: var(--text-inv-soft); }
.checklist { display: grid; gap: 0.7rem; margin-top: 0.3rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 700; color: var(--navy); }
.on-dark .checklist li { color: var(--text-inv); }
.checklist svg { flex: none; color: var(--red); margin-top: 0.2rem; }
.on-dark .checklist svg { color: var(--gold); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 1.6rem; }
.stats > div { background: var(--paper); padding: 1.4rem 1.2rem; display: grid; gap: 0.3rem; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--red); line-height: 1; }
.stat-num sup { font-size: 0.55em; color: var(--gold); }
.stat-label { font-size: 0.85rem; font-weight: 700; color: var(--text-soft); line-height: 1.35; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.service-card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1.8rem 1.6rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red) 40%, transparent 40%);
  transition: background-position 0.4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.service-card .num {
  position: absolute; top: 1.05rem; right: 1.2rem;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(20,33,56,0.16);
}
.service-card .icon { width: 3.2rem; height: 3.2rem; border-radius: 4px; background: var(--paper); color: var(--red); display: grid; place-items: center; }
.service-card h3 { font-size: 1.12rem; line-height: 1.25; }
.service-card p { color: var(--text-soft); font-size: 0.96rem; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.92rem; color: var(--red); letter-spacing: 0.02em; }
.service-card .card-link svg { transition: transform 0.3s var(--ease); }
.service-card:hover .card-link svg { transform: translateX(5px); }
.stretched::after { content: ""; position: absolute; inset: 0; }

/* ---------- USP band ---------- */
.usp-grid { display: grid; gap: 1px; background: var(--line-inv); border: 1px solid var(--line-inv); border-radius: 4px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.usp { background: var(--navy); padding: 2rem 1.7rem; display: grid; gap: 0.8rem; align-content: start; transition: background 0.3s; }
.usp:hover { background: var(--navy-2); }
.usp svg { color: var(--gold); }
.usp h3 { color: #fff; font-size: 1.02rem; }
.usp p { color: var(--text-inv-soft); font-size: 0.94rem; }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 1.4rem; }
.process li { counter-increment: step; position: relative; padding: 0 0 2.4rem 2.6rem; }
.process li:last-child { padding-bottom: 0.4rem; }
.process li::before {
  content: "0" counter(step); position: absolute; left: -1.45rem; top: -0.2rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--red);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--red);
}
.on-dark .process { border-color: var(--line-inv); }
.on-dark .process li::before { background: var(--navy); border-color: var(--gold); color: var(--gold); }
.process h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.process p { color: var(--text-soft); max-width: 52ch; }
.on-dark .process p { color: var(--text-inv-soft); }

/* ---------- Projects / case studies ---------- */
.projects-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } .projects-grid .project-card:first-child { grid-column: span 3; } }
.project-card {
  position: relative; display: block; border-radius: 4px; overflow: hidden; background: var(--ink);
  box-shadow: var(--shadow-card);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; opacity: 0.92; }
.project-card:hover img { transform: scale(1.045); opacity: 1; }
.project-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(0deg, rgba(13,20,34,0.92) 20%, transparent);
  color: #fff; display: grid; gap: 0.3rem;
}
.project-card .tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.project-card h3 { color: #fff; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.project-card p { font-size: 0.92rem; color: var(--text-inv-soft); }
.projects-grid .project-card:first-child img { aspect-ratio: 16 / 8; }
.projects-grid .project-card:not(:first-child) img { aspect-ratio: 4 / 3; }

/* case study article */
.case { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.case-item { display: grid; gap: 1.75rem; }
@media (min-width: 960px) {
  .case-item { grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
  .case-item:nth-child(even) .case-media { order: 2; }
}
.case-media img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-card); }
.case-body { display: grid; gap: 1rem; align-content: center; }
.case-body h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.case-steps { display: grid; gap: 0.85rem; margin-top: 0.4rem; }
.case-steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; }
.case-steps b { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: var(--red); border: 1.5px solid currentColor; border-radius: 50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; margin-top: 0.1rem; }
.case-steps span { color: var(--text-soft); font-size: 0.98rem; }
.case-steps strong { color: var(--navy); }

/* ---------- Price band ---------- */
.price-band { position: relative; overflow: hidden; }
.price-band .wrap { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .price-band .wrap { grid-template-columns: 1.3fr auto; } }
.price-figure { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.price-figure .from { font-size: 1rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.price-figure .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 5.2rem); color: #fff; line-height: 1; }
.price-figure .unit { font-family: var(--font-display); font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 700; color: var(--text-inv-soft); }
.price-note { color: var(--text-inv-soft); max-width: 46ch; }

/* ---------- А–Я services list ---------- */
.az-list { columns: 1; gap: 2.5rem; }
@media (min-width: 700px) { .az-list { columns: 2; } }
@media (min-width: 1050px) { .az-list { columns: 3; } }
.az-list li { break-inside: avoid; display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0; font-weight: 600; color: var(--text); border-bottom: 1px dashed var(--line); }
.az-list svg { flex: none; color: var(--red); margin-top: 0.28rem; }

/* detail list on service pages */
.detail-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.detail-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 3px; padding: 1.4rem 1.4rem; display: grid; gap: 0.45rem; align-content: start; }
.detail-card h3 { font-family: var(--font-text); font-weight: 800; font-size: 1.02rem; color: var(--navy); }
.detail-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 50rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; }
.faq-item[open] { box-shadow: var(--shadow-card); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
  font-weight: 800; color: var(--navy); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 0.85rem; height: 0.85rem;
  background: linear-gradient(var(--red), var(--red)) center/100% 2px no-repeat,
              linear-gradient(var(--red), var(--red)) center/2px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-soft); max-width: 62ch; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; text-align: left; }
.cta-final-media { position: absolute; inset: 0; }
.cta-final-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.cta-final-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 8%, rgba(13,20,34,0.72)); }
.cta-final .wrap { position: relative; z-index: 2; display: grid; gap: 1.6rem; max-width: 52rem; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 0.4rem; }
.cta-contacts a { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; color: #fff; font-size: 1.05rem; transition: color 0.2s; }
.cta-contacts a:hover { color: var(--gold); }
.cta-contacts svg { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-soft); padding: clamp(3rem, 6vw, 4.5rem) 0 6.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 0; } .site-footer { padding-bottom: 3rem; } }
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.footer-brand p { max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { transition: color 0.2s; display: inline-flex; gap: 0.6rem; align-items: center; }
.footer-col a:hover { color: var(--gold); }
.footer-col svg { color: var(--red-bright); flex: none; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inv); display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; font-size: 0.85rem; }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-inv);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 30px rgba(13,20,34,0.35);
}
.callbar a { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.6rem; font-weight: 800; font-size: 0.98rem; color: #fff; }
.callbar .call { background: var(--red); }
.callbar .wapp { background: #1f8f4d; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-info { display: grid; gap: 1.4rem; }
.contact-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.contact-row .icon { width: 2.7rem; height: 2.7rem; border-radius: 4px; background: var(--paper); color: var(--red); display: grid; place-items: center; }
.contact-row h3 { font-family: var(--font-text); font-weight: 800; font-size: 0.98rem; }
.contact-row a { font-weight: 800; color: var(--red); }
.contact-row a:hover { text-decoration: underline; }
.contact-row p { color: var(--text-soft); font-size: 0.95rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.2rem; }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 800; font-size: 0.9rem; color: var(--navy); }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; min-height: 3.1rem; padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper);
  color: var(--text); transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field .hint { font-size: 0.82rem; color: var(--text-soft); }
.form-note { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Reveal animations ---------- */
/* Скриващите състояния важат само когато JS е наличен (клас .js на <html>).
   Без JS / ако observer-ът не сработи, всичко – вкл. снимките на проектите – е видимо. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Снимките се появяват с нежно избледняване, но НИКОГА не се скриват напълно –
   критично съдържание (портфолио) не бива да зависи от clip/observer. */
.js .reveal-img > img, .js .reveal-img > .media-tag { opacity: 0.001; transition: opacity 0.8s var(--ease); }
.js .reveal-img.is-visible > img, .js .reveal-img.is-visible > .media-tag { opacity: 1; }
.reveal-img > img, .reveal-img > .media-tag { opacity: 1; }
.js [data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .header-phone { display: none; }
}
@media (min-width: 1021px) { .mobile-menu { display: none; } }
@media (max-width: 760px) {
  .callbar { display: grid; }
  .site-footer { padding-bottom: 7.5rem; }
  .hero-inner { padding-bottom: 5.5rem; }
  .hero-scroll { display: none; }
  .hero-media img { object-position: 68% 30%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal, [data-stagger] > *, .reveal-img > img, .reveal-img > .media-tag { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; }
  .hero-media img { transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .callbar, .hero-scroll, .marquee { display: none; }
}
