/* ==========================================================================
   Алиевстрой ЕООД — design system
   Светла „варовикова“ тема по оригиналното бранд лого: топъл почти бял фон,
   графитен текст и приглушено злато като акцент. Само системни шрифтове,
   без външни зависимости.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Графит — текст. Оттенъкът е взет от покрива в логото (#1f2325). */
  --ink-950: #171513;
  --ink-900: #1f2325;
  --ink-800: #2a2724;
  --ink-700: #3a352d; /* основен текст */
  --ink-600: #554e43; /* приглушен текст */
  --ink-500: #6b6457; /* сиво-кафяв, най-финият легитим текст */

  /* Топли варовикови повърхности */
  --paper-0: #ffffff; /* карти и полета за формуляри */
  --paper-50: #fffdfa; /* повдигната повърхност (--elevated) */
  --paper-100: #f6f2ea; /* фон на страницата */
  --paper-200: #efe9dd; /* алтернативна топла секция (--stone) */
  --plate: #f6f1eb; /* точно цветът на фона в логото */

  --line: #e4dccc; /* декоративна линия */
  --line-soft: #efe9dd;
  --line-strong: #d3c8b3; /* контур на карта/плитка */
  --line-control: #947f57; /* граница на КОНТРОЛ — 3.4:1 върху фона */

  /* Приглушено злато от логото (#c79852) и по-тъмни тонове за текст */
  --gold-800: #5c4413; /* hover на текстов акцент */
  --gold-700: #75591f; /* текстов акцент — 5.8:1 върху фона */
  --gold-600: #8a6a2b; /* само за голям текст и граници */
  --gold-500: #c79852; /* декорация, градиенти, изочаквани */
  --gold-300: #e6d2a8;
  --gold-100: #f7edd8;
  --gold-btn: #d3a75e; /* фон на основния бутон */
  --gold-grad: linear-gradient(180deg, #e2c48c 0%, #d3a75e 52%, #c69a4c 100%);

  /* Тъмни секции — пестеливо, за ритъм (CTA лента, футър) */
  --night-900: #1b1815;
  --night-800: #241f18;
  --night-700: #2f2a22;
  --night-line: rgba(240, 228, 200, 0.18);
  --cream: #f6f1e6;
  --cream-dim: #e2dbcb;
  --muted-night: #c0b8a8;
  --gold-night: #e2cda0;

  --ok: #4a7c59;
  --danger: #b23c28;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  /* Само системен serif (с кирилица) — за заглавията. Прави заглавията
     отличими от „още един светъл сайт с оранжеви бутони“. */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype",
    "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step--2: clamp(0.74rem, 0.72rem + 0.1vw, 0.8rem);
  --step--1: clamp(0.85rem, 0.82rem + 0.14vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.07rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.32vw, 1.32rem);
  --step-2: clamp(1.34rem, 1.2rem + 0.66vw, 1.8rem);
  --step-3: clamp(1.62rem, 1.38rem + 1.15vw, 2.4rem);
  --step-4: clamp(1.9rem, 1.55rem + 1.65vw, 3rem);
  --step-5: clamp(2.05rem, 1.6rem + 2.1vw, 3.35rem);

  --gap: clamp(1rem, 0.75rem + 1.25vw, 1.6rem);
  --gap-lg: clamp(2rem, 1.4rem + 2.8vw, 3.5rem);
  --section-y: clamp(3.25rem, 2.2rem + 5vw, 6.5rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* Сенки в топъл неутрален тон — върху светъл фон */
  --shadow-1: 0 1px 2px rgba(63, 52, 34, 0.06), 0 10px 24px -18px rgba(63, 52, 34, 0.35);
  --shadow-2: 0 2px 6px rgba(63, 52, 34, 0.07), 0 26px 56px -32px rgba(63, 52, 34, 0.38);
  --shadow-ink: 0 18px 40px -26px rgba(23, 21, 19, 0.7);

  /* Фокус: тъмно злато върху светло, светло злато върху тъмно (по-долу) */
  --focus: #6f5212;
  --focus-halo: rgba(255, 255, 255, 0.95);
  --ring: 0 0 0 3px var(--gold-300);

  --maxw: 1200px;
  --maxw-text: 68ch;
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);

  --hairline: 1px solid var(--line);
  --hairline-strong: 1px solid var(--line-strong);

  /* Едва забележима „архитектурна“ мрежа върху светъл фон */
  --gridline:
    linear-gradient(to right, rgba(31, 35, 37, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 35, 37, 0.05) 1px, transparent 1px);
  --grid-size: 46px 46px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* Тъмните повърхности обръщат фокус-индикатора, за да си остава контрастен */
:is(.section--ink, .cta-band:not(.cta-band--light), .hero__band, .site-footer) {
  --focus: #f2dcaa;
  --focus-halo: rgba(23, 21, 19, 0.85);
}

/* --- 2. Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

/* :where() -> нулева специфичност, за да не се презаписват от компонентите */
:where(*) { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--ink-700);
  background-color: var(--paper-100);
  background-image: var(--gridline);
  background-size: var(--grid-size);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
  background-color: var(--paper-200);
}

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

:where(a) {
  color: var(--gold-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.18s;
}

:where(a):hover { color: var(--gold-800); }

:is(.section--ink, .cta-band:not(.cta-band--light), .hero__band, .site-footer) :where(a:not(.btn)) {
  color: var(--gold-night);
}

:is(.section--ink, .cta-band:not(.cta-band--light), .hero__band, .site-footer) :where(a:not(.btn)):hover {
  color: #f4e5c4;
}

/* Двуцветен пръстен: тъмен контур + светъл халo, за да е видим
   и върху златния бутон, и върху тъмните секции */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}

.btn:focus-visible,
.nav__link[aria-current="page"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}

::selection { background: var(--gold-300); color: var(--ink-950); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--gap-lg) 0;
}

/* --- 3. Типография ------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  line-height: 1.14;
  text-wrap: balance;
  font-weight: 700;
}

/* h1/h2 в serif — визуалният „подпис“ на сайта */
h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.012em;
  font-weight: 700;
}

h1 { font-size: var(--step-5); line-height: 1.06; }
h2 { font-size: var(--step-4); line-height: 1.1; }
h3 {
  font-size: var(--step-2);
  line-height: 1.22;
  letter-spacing: -0.012em;
}
h4 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.005em; }

p { text-wrap: wrap; }

strong { color: var(--ink-900); font-weight: 650; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 58ch;
  text-wrap: pretty;
}

.muted { color: var(--ink-600); }
.small { font-size: var(--step--1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--plain::before { display: none; }

.num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--ink-500);
}

/* Текстов акцент в злато. Върху тъмните секции — светлото злато. */
.text-grad { color: var(--gold-700); }

:is(.section--ink, .cta-band, .hero__band) .text-grad { color: var(--gold-night); }

/* --- 4. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
}

.container--narrow { max-width: 900px; }
.container--text { max-width: 820px; }

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight { padding-block: clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem); }

/* Повдигната СВЕТЛА повърхност — разделя секциите без да потъмнява страницата */
.section--elevated {
  background: var(--paper-50);
  border-block: 1px solid var(--line);
}

/* Топла алтернативна секция */
.section--stone {
  background: var(--paper-200);
  color: var(--ink-700);
  background-image: var(--gridline);
  background-size: var(--grid-size);
}

/* Единствената „тъмна“ лента в ритъма на страницата */
.section--ink {
  background: var(--night-800);
  color: var(--cream-dim);
  border-block: 1px solid var(--night-line);
  background-image:
    radial-gradient(80% 130% at 12% 0%, rgba(199, 152, 82, 0.18), transparent 60%),
    var(--gridline);
  background-size: auto, var(--grid-size);
}

.section--ink :is(h1, h2, h3, h4) { color: var(--cream); }
.section--ink .lead { color: var(--cream-dim); }
.section--ink .muted { color: var(--muted-night); }
.section--ink strong { color: var(--cream); }
.section--ink .eyebrow { color: var(--gold-night); }
.section--ink .num { color: var(--muted-night); }
.section--ink hr { border-color: var(--night-line); }

.section--stone :is(h1, h2, h3, h4) { color: var(--ink-950); }
.section--stone .lead { color: var(--ink-600); }
.section--stone .muted { color: var(--ink-600); }
.section--stone strong { color: var(--ink-950); }
.section--stone .num { color: var(--ink-500); }
.section--stone hr { border-color: var(--line-strong); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.stack { display: grid; gap: var(--gap); align-content: start; }
.stack-sm { display: grid; gap: 0.7rem; align-content: start; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--gold-btn);
  --btn-fg: var(--ink-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: var(--btn-bg);
  background-image: var(--gold-grad);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: var(--step-0);
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s,
    border-color 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, var(--shadow-1);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  background-image: linear-gradient(180deg, #e9cf9c 0%, #dcb26a 52%, #cfa256 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--shadow-2);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-fg: var(--ink-900);
  background-color: transparent;
  background-image: none;
  border-color: var(--line-control);
  box-shadow: none;
}

.btn--ghost:hover {
  --btn-fg: var(--gold-800);
  background-color: var(--paper-0);
  background-image: none;
  border-color: var(--gold-700);
  box-shadow: var(--shadow-1);
}

/* Тъмен графитен бутон — за тъмни и топли светли секции */
.btn--on-stone {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--cream);
  background-image: linear-gradient(180deg, #2b2f31 0%, #1f2325 100%);
}

.btn--on-stone:hover {
  background-image: linear-gradient(180deg, #33383a 0%, #23282a 100%);
}

/* Ghost бутон върху тъмна повърхност */
:is(.section--ink, .cta-band:not(.cta-band--light), .hero__band) .btn--ghost {
  --btn-fg: var(--cream);
  border-color: rgba(240, 228, 200, 0.45);
}

:is(.section--ink, .cta-band:not(.cta-band--light), .hero__band) .btn--ghost:hover {
  --btn-fg: var(--gold-night);
  background-color: rgba(240, 228, 200, 0.12);
  border-color: var(--gold-night);
}

/* --- 6. Header / nav ----------------------------------------------------- */
.skip {
  position: absolute;
  left: 50%;
  top: -6rem;
  translate: -50% 0;
  z-index: 200;
  padding: 0.8rem 1.4rem;
  background: var(--gold-btn);
  color: var(--ink-950);
  font-weight: 650;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.site-header.is-stuck {
  background: rgba(252, 250, 246, 0.97);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 10px 30px -24px rgba(63, 52, 34, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 4.25rem;
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink-900);
  margin-right: auto;
  border-radius: var(--r-sm);
}

/* Знакът: най-малката къщичка от логото (покрив + четири прозорчета),
   отделен vector файл. Декоративен е — името носи brand връзката. */
.brand__mark {
  display: block;
  flex: none;
  height: clamp(1.5rem, 1.15rem + 1.2vw, 1.9rem);
  width: auto;
}

.brand__wordmark {
  width: clamp(10.2rem, 14vw, 12.8rem);
  height: auto;
  aspect-ratio: 936 / 114;
  overflow: hidden;
}
.brand--footer {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--ink-800);
  font-size: 0.93rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s, background-color 0.18s;
}

.nav__link:hover { background: var(--paper-200); color: var(--ink-950); }

/* Активният раздел се отбелязва с underline + цвят, не с пълен бутон —
   по-тихо и по-прецизно в редицата линкове. */
.nav__link[aria-current="page"] {
  color: var(--ink-950);
  font-weight: 650;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-700);
}

.nav__cta { margin-left: 0.4rem; }

.nav__toggle {
  position: relative;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-control);
  border-radius: 11px;
  background: var(--paper-0);
  color: var(--ink-900);
}

.nav__toggle span:not(.vh) {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  translate: -50% -50%;
  transition: transform 0.25s var(--ease), opacity 0.15s;
}

.nav__toggle span:nth-child(1) { transform: translateY(-6px); }
.nav__toggle span:nth-child(3) { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* --- 8. Chips / badges --------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.78em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--ink-600);
  background: var(--paper-0);
  white-space: nowrap;
}

.chip--amber {
  border-color: var(--line-control);
  color: var(--gold-700);
  background: var(--gold-100);
  font-weight: 650;
}

.chip--solid { background: var(--gold-btn); color: var(--ink-950); border-color: transparent; font-weight: 650; }

.section--stone .chip { border-color: var(--line-strong); background: var(--paper-0); color: var(--ink-600); }
.section--stone .chip--amber { border-color: var(--line-control); background: var(--gold-100); color: var(--gold-700); }

.section--ink .chip { border-color: var(--night-line); background: var(--night-700); color: var(--cream-dim); }
.section--ink .chip--amber { border-color: rgba(226, 205, 160, 0.5); background: rgba(199, 152, 82, 0.18); color: var(--gold-night); }

.tag {
  display: inline-block;
  align-self: start;
  padding: 0.24em 0.62em;
  border-radius: 5px;
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  color: var(--gold-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section--ink .tag {
  background: rgba(199, 152, 82, 0.18);
  border-color: rgba(226, 205, 160, 0.45);
  color: var(--gold-night);
}

/* --- 9. Trust panel (бивш .hero__panel) ---------------------------------- */
.trust {
  border: var(--hairline-strong);
  border-radius: var(--r-xl);
  background: var(--paper-50);
  box-shadow: var(--shadow-1);
}

.trust__inner {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  padding: clamp(1.35rem, 1rem + 1.4vw, 2.15rem);
}

.trust h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.9rem;
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.trust li {
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.94rem;
  color: var(--ink-700);
}

.trust li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.55em;
  border-radius: 2px;
  background: var(--gold-500);
  rotate: 45deg;
}

.trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-content: start;
  max-width: 15rem;
}

/* --- 10. Cards ----------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.2rem, 1rem + 0.75vw, 1.65rem);
  border: var(--hairline-strong);
  border-radius: var(--r-lg);
  background: var(--paper-0);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s,
    background-color 0.25s;
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover { transform: translateY(-4px); border-color: var(--line-control); box-shadow: var(--shadow-2); }
.card:hover::after { opacity: 0.85; }

.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-600); font-size: 0.95rem; }
.card__icon { width: 3.4rem; height: 3.4rem; border-radius: 12px; border: var(--hairline-strong); }

.card--flat { background: var(--paper-50); box-shadow: none; }
.card--link:focus-within { border-color: var(--gold-700); }

.card__link {
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.card__link .arrow { transition: transform 0.2s var(--ease); }
.card__link:hover .arrow { transform: translateX(3px); }

.card--stone { background: var(--paper-0); border-color: var(--line-strong); }
.card--stone:hover { border-color: var(--gold-600); box-shadow: var(--shadow-2); }
.card--stone p { color: var(--ink-600); }

.section--ink .card {
  background: var(--night-700);
  border-color: var(--night-line);
  box-shadow: none;
}

.section--ink .card:hover { border-color: rgba(226, 205, 160, 0.55); box-shadow: var(--shadow-ink); }
.section--ink .card p { color: var(--muted-night); }

/* --- 11. Feature split --------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.split--reverse > :first-child { order: 2; }

.figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: var(--hairline-strong);
  box-shadow: var(--shadow-2);
  background: var(--paper-200);
}

.figure img { width: 100%; height: auto; }

.figure--tall { aspect-ratio: 4 / 5; }
.figure--tall img { height: 100%; object-fit: cover; }

.figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.75rem 1.25rem 1.05rem;
  background-color: rgba(23, 21, 19, 0.72);
  background-image: linear-gradient(
    rgba(23, 21, 19, 0) 0%,
    rgba(23, 21, 19, 0.62) 42%,
    rgba(23, 21, 19, 0.93) 100%
  );
  font-size: 0.83rem;
  line-height: 1.45;
  color: #f4efe3;
}

.figure__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.42em 0.85em;
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.84);
  border: 1px solid rgba(226, 205, 160, 0.55);
  color: var(--gold-night);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Неутрална бележка под снимките: уточнява, че са илюстративни */
.media-note {
  margin-top: 0.7rem;
  font-size: var(--step--2);
  color: var(--ink-500);
}

.section--stone .media-note { color: var(--ink-600); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }

.checklist li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--ink-700);
  font-size: 0.97rem;
}

.checklist li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3em;
  border-radius: 50%;
  background-color: var(--gold-100);
  border: 1.5px solid var(--gold-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375591f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 0.75rem;
  background-repeat: no-repeat;
  background-position: center;
}

.section--ink .checklist li { color: var(--cream-dim); }

/* --- 12. Numbers / stats ------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  background: var(--night-line);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  padding: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem);
  background: var(--night-800);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.45rem + 1.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gold-night);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted-night);
}

/* Светъл вариант на статистиката (ако се използва извън тъмна лента) */
.section--elevated .stat { background: var(--paper-50); }
.section--elevated .stat__value { color: var(--gold-700); }
.section--elevated .stat__label { color: var(--ink-600); }

/* --- 13. Steps ----------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.step {
  position: relative;
  padding: 1.45rem 1.3rem 1.55rem;
  border: var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--paper-0);
  box-shadow: var(--shadow-1);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-700);
  margin-bottom: 0.55rem;
}

.step h3 { font-size: var(--step-0); margin-bottom: 0.35rem; }
.step p { font-size: 0.93rem; color: var(--ink-600); }

/* --- 14. Regions --------------------------------------------------------- */
.region {
  border: var(--hairline-strong);
  border-radius: var(--r-lg);
  background: var(--paper-0);
  padding: clamp(1.2rem, 1rem + 0.85vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-1);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.region:hover { border-color: var(--gold-600); transform: translateY(-3px); }
.region__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; }
.region h3 { font-size: var(--step-2); }
.region__tag { font-family: var(--font-mono); font-size: 0.76rem; color: var(--gold-700); white-space: nowrap; }
.region__body { color: var(--ink-600); font-size: 0.95rem; }
.region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.region li { font-size: 0.82rem; }
.region--wide { grid-column: 1 / -1; }

.region--stone { background: var(--paper-0); border-color: var(--line-strong); }
.region--stone h3 { color: var(--ink-950); }
.region--stone .region__body { color: var(--ink-600); }

/* --- 15. Accordion (FAQ) ------------------------------------------------- */
.faq { display: grid; gap: 0.65rem; max-width: 880px; margin-inline: auto; }

.faq details {
  border: var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--paper-0);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq details:hover { border-color: var(--gold-600); }
.faq details[open] { border-color: var(--gold-700); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--gold-700);
  border-bottom: 2px solid var(--gold-700);
  rotate: 45deg;
  transition: rotate 0.25s var(--ease);
}

.faq details[open] summary::after { rotate: 225deg; }
.faq .faq__body { padding: 0 1.25rem 1.25rem; color: var(--ink-600); font-size: 0.96rem; }
.faq summary:focus-visible { outline-offset: -3px; }

.section--stone .faq details { background: var(--paper-0); border-color: var(--line-strong); }
.section--stone .faq details:hover { border-color: var(--gold-600); }
.section--stone .faq details[open] { border-color: var(--gold-700); }
.section--stone .faq summary { color: var(--ink-950); }
.section--stone .faq .faq__body { color: var(--ink-600); }

/* --- 16. Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1rem; }

.field { display: grid; gap: 0.4rem; }

.field label { font-size: 0.87rem; font-weight: 600; color: var(--ink-900); }
.field .hint { font-size: 0.8rem; color: var(--ink-600); }
.req { color: var(--gold-700); font-weight: 700; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line-control);
  border-radius: var(--r-sm);
  background: var(--paper-0);
  color: var(--ink-900);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field textarea { min-height: 8.5rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #7d7466; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--gold-700); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--gold-700);
  box-shadow: var(--ring);
  outline: none;
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--danger); }

.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.checkbox { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.87rem; color: var(--ink-600); }
.checkbox input { width: 1.5rem; height: 1.5rem; margin-top: 0.1em; accent-color: var(--gold-700); }

.form__note { font-size: 0.81rem; color: var(--ink-600); }

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-control);
  background: var(--gold-100);
  color: var(--gold-800);
  font-size: 0.9rem;
  font-weight: 600;
}

.form__status:empty { display: none; }

/* --- 17. Contact / info list --------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }

.info-list li {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.info-list li:last-child { border-bottom: 0; }
.info-list dt,
.info-list b {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 650;
  margin-bottom: 0.2rem;
}
.info-list a { font-size: 1.04rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.info-list a:hover { text-decoration: underline; }
.info-list span,
.info-list p { color: var(--ink-700); }

.icon-box {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  color: var(--gold-700);
}

.icon-box svg { width: 1.15rem; height: 1.15rem; }

/* --- 18. CTA band -------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-radius: var(--r-xl);
  padding: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem);
  background: var(--night-800);
  color: var(--cream-dim);
  border: 1px solid var(--night-line);
  box-shadow: var(--shadow-ink);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 88% 8%, rgba(199, 152, 82, 0.26), transparent 60%),
    var(--gridline);
  background-size: auto, var(--grid-size);
}

.cta-band :is(h1, h2, h3, h4) { color: var(--cream); }
.cta-band .lead { color: var(--cream-dim); }
.cta-band .eyebrow { color: var(--gold-night); }

/* Светъл вариант (използван вътре в топла секция) */
.cta-band--light {
  background: var(--paper-0);
  color: var(--ink-700);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}

.cta-band--light::before {
  background:
    radial-gradient(70% 120% at 88% 8%, rgba(199, 152, 82, 0.18), transparent 60%),
    var(--gridline);
  background-size: auto, var(--grid-size);
}

.cta-band--light :is(h1, h2, h3, h4) { color: var(--ink-950); }
.cta-band--light .lead { color: var(--ink-600); }
.cta-band--light .eyebrow { color: var(--gold-700); }
.cta-band--light :where(a:not(.btn)) { color: var(--gold-700); }
.cta-band--light :where(a:not(.btn)):hover { color: var(--gold-800); }

.cta-band__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

/* --- 19. Page hero (subpages) ------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.25rem, 1.7rem + 3.4vw, 4.5rem) clamp(2.25rem, 1.7rem + 3vw, 3.75rem);
  border-bottom: 1px solid var(--line-strong);
  background-color: var(--paper-200);
  background-image:
    radial-gradient(75% 125% at 88% 0%, rgba(199, 152, 82, 0.26), transparent 58%),
    var(--gridline);
  background-size: auto, var(--grid-size);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  opacity: 0.35;
}

.page-hero h1 { max-width: 20ch; }
.page-hero h1 + .lead { margin-top: 1.15rem; }
.page-hero .cluster { margin-top: 1.75rem; }

/* Редакционна композиция на подстраниците: заглавието вляво, уводът и
   евентуалните действия вдясно. На тесен екран колоните се сгъват в
   естествения едноколонен ред (заглавие -> увод -> действия). */
.page-hero__grid {
  display: grid;
  gap: clamp(1.35rem, 0.9rem + 1.6vw, 2.25rem);
}

.page-hero__title { min-width: 0; }
.page-hero__aside { min-width: 0; }
.page-hero__aside .lead { max-width: 50ch; }

@media (min-width: 56rem) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  }
  .page-hero h1 { max-width: 22ch; }
  /* Уводът започва малко по-надолу, за да се изравни с първия ред на
     заглавието, а не с надписа над него. */
  .page-hero__aside { grid-column: 2; grid-row: 1 / span 2; padding-top: clamp(1.6rem, 1rem + 1.6vw, 2.35rem); }
  /* Когато под заглавието има и действия, те остават в лявата колона —
     иначе краткото заглавие оставя празно място под себе си. */
  .page-hero__grid > .cluster { grid-column: 1; grid-row: 2; margin-top: 0; }
}

.breadcrumbs { font-size: 0.82rem; color: var(--ink-600); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-800); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-800); font-weight: 600; }

/* --- 20. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--night-900);
  color: var(--muted-night);
  border-top: 1px solid rgba(199, 152, 82, 0.45);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem) 1.5rem;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: var(--gap-lg);
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted-night);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--cream-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold-night); text-decoration: underline; }
.footer__about { max-width: 36ch; color: var(--muted-night); }
.site-footer .brand { margin-bottom: 0.9rem; color: var(--cream); }
.site-footer .brand:hover { color: var(--gold-night); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--night-line);
  color: #a89e8d;
  font-size: 0.82rem;
}

.footer__bottom a {
  color: var(--cream-dim);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer__bottom a:hover { color: var(--gold-night); }

/* --- 21. Reveal анимация ------------------------------------------------- */
/* Съдържанието е видимо по подразбиране. Скриваме го само когато браузърът
   потвърди, че JavaScript работи — така няма излишък стилов recalc при зареждане. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* Последователното появяване — без JS, чрез nth-child */
@media (scripting: enabled) {
  .grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { --d: 70ms; }
  .grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { --d: 140ms; }
  .grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { --d: 210ms; }
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* --- 22. Илюстрации в рамка и вътрешна навигация ------------------------ */
.art {
  border: var(--hairline-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-200);
  box-shadow: var(--shadow-2);
}

.art img { width: 100%; height: auto; }

.toc {
  position: sticky;
  top: 4.25rem;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  max-width: var(--maxw);
  margin-inline: auto;
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(10px) saturate(130%);
  border-bottom: 1px solid var(--line-strong);
}

.toc a {
  flex: 0 1 auto;
  padding: 0.38em 0.85em;
  border: 1px solid var(--line-control);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 550;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background-color 0.18s;
}

.toc a:hover { border-color: var(--gold-700); color: var(--gold-800); background: var(--gold-100); }

/* Спокоен вариант на индекса: без капсули и рамки, само тих текст с
   тънък разделител — всичките 10 котви на един-два реда. */
.toc--quiet {
  gap: 0.2rem 0.95rem;
  padding-block: 0.6rem;
}

.toc--quiet a {
  padding: 0.2em 0;
  border: 0;
  font-size: var(--step--2);
  font-weight: 500;
  color: var(--ink-500);
  white-space: nowrap;
}

.toc--quiet a + a::before {
  content: "·";
  margin-right: 0.95rem;
  color: var(--line-strong);
}

.toc--quiet a:hover { border: 0; background: none; color: var(--gold-800); }

/* Дългата бележка за гаранцията — стои в края на списъка с услугите,
   а не сред въведението. */
.uslugi-note {
  max-width: 74ch;
  margin-inline: auto;
  padding-top: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
  border-top: var(--hairline-strong);
  font-size: var(--step--1);
  line-height: 1.62;
  color: var(--ink-600);
}

.uslugi-note b { color: var(--ink-900); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

.facts div {
  flex: 1 1 9rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--ink-600);
  background: var(--paper-0);
}

.facts b { display: block; color: var(--ink-900); font-size: 0.95rem; margin-top: 0.15rem; }
.section--stone .facts div { border-color: var(--line-strong); }
.section--stone .facts b { color: var(--ink-950); }

.service-block + .service-block { border-top: 1px solid var(--line); }
.section--stone .service-block + .service-block { border-top-color: var(--line-strong); }

[aria-labelledby] h2,
.service-block { scroll-margin-top: 7rem; }

/* --- 23. Услуги с реални снимки ----------------------------------------- */
.grid-svc {
  display: grid;
  gap: clamp(0.85rem, 0.65rem + 0.75vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
}

.svc {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.svc__media {
  position: relative;
  flex: 0 0 12rem;
  overflow: hidden;
  background: var(--paper-200);
}

/* Абсолютно позиционирано изображение: прекъсва цикъла
   flex-basis ↔ height:100%, който струва допълнителни layout минавания */
.svc__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(63, 52, 34, 0) 55%, rgba(63, 52, 34, 0.16));
  pointer-events: none;
}

.svc__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.4rem) clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem);
}

.svc__body h3 { font-size: var(--step-1); }
.svc__body p { color: var(--ink-600); font-size: 0.92rem; }
.svc__body .card__link { font-size: 0.87rem; }

/* Услуга в разширен split блок (uslugi.html) */
.service-figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: var(--hairline-strong);
  box-shadow: var(--shadow-2);
  background: var(--paper-200);
}

.service-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* --- 24. Области на работа: списъкът е статичен HTML в <details> --------- */
.oblast {
  border-bottom: 1px solid var(--line);
}

.oblast__summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
  padding: 0.95rem 2rem 0.95rem 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-sm);
  transition: color 0.18s, background-color 0.18s;
}

/* Компактен индикатор за затворено и отворено състояние */
.oblast__summary::-webkit-details-marker { display: none; }
.oblast__summary::marker { content: ""; }

.oblast__summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--gold-700);
  font-size: 1.35rem;
  line-height: 1;
}

.oblast[open] > .oblast__summary::after { content: "−"; }

.oblast__summary:hover { background: var(--paper-200); }

.oblast__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink-950);
}

.oblast__body {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: 0.2rem 0 1.6rem;
}

.region-source {
  margin-top: 1.5rem;
  color: var(--ink-600);
  font-size: 0.9rem;
}

.region-source > summary {
  width: fit-content;
  cursor: pointer;
  color: var(--gold-700);
}

.region-source .data-note { margin-top: 0.75rem; }

/* --- 24a. Пълни списъци на населените места ------------------------------- */
.municipality {
  padding-top: 0.95rem;
  border-top: 1px solid var(--line-soft);
}

.municipality:first-child { padding-top: 0; border-top: 0; }

.municipality h4 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink-950);
}

.municipality h4 span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  white-space: nowrap;
}

.municipality__note {
  margin: 0 0 0.75rem;
  max-width: 68ch;
  font-size: 0.88rem;
  color: var(--ink-600);
}

.municipality__note abbr { text-decoration: none; border-bottom: 1px dotted var(--line-control); }

.place-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3 11.5rem;
  column-gap: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-600);
}

.place-list li { break-inside: avoid; padding: 0.06rem 0; }

.place-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

.municipality--kv { padding-bottom: 0.35rem; }

.municipality--kv .place-list { columns: 2 13rem; }

.kv-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.kv-grid .lbl {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.data-note {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding-top: clamp(1.2rem, 0.9rem + 1vw, 1.8rem);
  border-top: 1px solid var(--line-strong);
}

.data-note h2 {
  font-size: var(--step-1);
  margin-bottom: 0.9rem;
}

.data-note .checklist { display: block; list-style: disc; padding-left: 1.25rem; }
.data-note .checklist li { display: list-item; font-size: 0.92rem; margin-top: 0.75rem; }
.data-note .checklist li::before { display: none; }

.data-note code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--paper-100);
  color: var(--ink-950);
}

/* --- 25. Компактна начална страница ------------------------------------ */
.home-hero {
  padding-block: clamp(3rem, 2rem + 3.5vw, 5.25rem);
  background: var(--paper-100);
  border-bottom: 1px solid var(--line);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 2vw, 4rem);
}

.home-hero h1 { max-width: 16ch; }
.home-hero .lead { max-width: 53ch; margin-top: 1.3rem; }
.home-hero__actions { margin-top: 1.7rem; }
.home-hero__phone { font-weight: 700; color: var(--ink-900); padding: 0.8rem 0.4rem; }

/* Рамката е само около снимката; надписът стои под нея върху фона,
   за да няма тъмен слой върху илюстрацията. */
.home-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--paper-200);
  box-shadow: var(--shadow-2);
}

.home-hero__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-hero__visual figcaption {
  margin-top: 0.75rem;
  max-width: 44ch;
  font-size: var(--step--2);
  line-height: 1.5;
  color: var(--ink-500);
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem);
}

.home-section-head > p { max-width: 32ch; color: var(--ink-600); }

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.home-services__group {
  min-width: 0;
  padding: clamp(1.3rem, 1rem + 1.1vw, 2rem);
  background: var(--paper-50);
}

.home-services__number { font: 700 0.75rem var(--font-mono); color: var(--gold-700); }
.home-services__group h3 { margin-top: 0.75rem; font-size: var(--step-1); }
.home-services__group ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.home-services__group li + li { border-top: 1px solid var(--line); }

.home-services__group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0;
  color: var(--ink-700);
  text-decoration: none;
  line-height: 1.4;
}

.home-services__group a::after { content: "↗"; flex: none; color: var(--gold-700); }
.home-services__group a:hover { color: var(--gold-800); text-decoration: underline; }
.home-services__all { display: inline-flex; gap: 0.4rem; margin-top: 1.3rem; font-weight: 700; }

/* --- Сравнение „преди/след“ (една секция на началната страница) ---------- */
.compare { --pos: 50%; margin: 0; }

/* Един и същ 3:2 кадър за двете снимки — нищо не се реже различно */
.compare__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--paper-200);
  box-shadow: var(--shadow-2);
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__line {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper-0);
  box-shadow: 0 0 0 1px rgba(23, 21, 19, 0.22);
  pointer-events: none;
}

.compare__tag {
  position: absolute;
  top: 0.7rem;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-800);
  pointer-events: none;
}

.compare__tag--before { left: 0.7rem; }
.compare__tag--after { right: 0.7rem; }

/* На много тесен екрани по-дългите надписи биха се допирали около лентата. */
@media (max-width: 26rem) {
  .compare__tag { font-size: 0.66rem; padding-inline: 0.55em; }
  .compare__tag--before { left: 0.5rem; }
  .compare__tag--after { right: 0.5rem; }
}

/* Нативният range е и водещият лост: плъзга се върху самата снимка,
   а маркерът му е видимият кръг. Само `appearance: none` — без JS лентата
   не се движи, затова при липса на скриптове тя изобщо не се показва. */
.compare__range {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare__range::-webkit-slider-runnable-track { height: 2px; background: transparent; border: 0; }
.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: calc(1px - 1.3rem);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--paper-0);
  background: rgba(23, 21, 19, 0.55);
  box-shadow: var(--shadow-2);
}
.compare__range::-moz-range-track { height: 2px; background: transparent; border: 0; }
.compare__range::-moz-range-thumb {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--paper-0);
  background: rgba(23, 21, 19, 0.55);
  box-shadow: var(--shadow-2);
}

.compare__note {
  max-width: 66ch;
  margin-top: 0.8rem;
  font-size: var(--step--2);
  color: var(--ink-500);
}

.compare.is-ready .compare__range,
.compare.is-ready .compare__line { display: block; }
.home-compare__hint { display: none; }
.home-compare.is-ready .home-compare__hint { display: block; }

.home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-steps .step { box-shadow: none; }

.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.home-about__copy { max-width: 65ch; }
.home-about__copy ul { margin: 1.2rem 0; padding-left: 1.25rem; }
.home-about__copy li + li { margin-top: 0.35rem; }
.home-about__copy > a { font-weight: 700; }

.home-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.home-contact p:not(.eyebrow) { margin-top: 0.6rem; color: var(--ink-600); }

/* Деликатна препратка към регионите — без отделен тежък блок */
.home-note {
  max-width: 62ch;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-600);
}

/* --- 25. Responsive ----------------------------------------------------- */
@media (max-width: 68rem) {
  .split--reverse > :first-child { order: 0; }
}

@media (max-width: 56rem) {
  .home-hero__grid { grid-template-columns: 1fr; }
  /* Същата снимка се показва по-долу в сравнението „в началото / след
     завършване“ — на тясни екрани скритата колона оставяше дублиране. */
  .home-hero__visual { display: none; }
  .home-services__grid { grid-template-columns: 1fr; }
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-about__grid { grid-template-columns: 1fr; }
  .home-contact__inner { align-items: start; flex-direction: column; }
}

@media (max-width: 60rem) {
  .nav__toggle { display: grid; }
  .nav__list {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.85rem clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem) 1.25rem;
    background: var(--paper-50);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
    display: none;
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
  }

  .nav__list.is-open { display: flex; }
  .nav__link { padding: 0.8rem 0.9rem; border-radius: var(--r-sm); font-size: 1rem; }
  .nav__link[aria-current="page"] { background: var(--gold-100); color: var(--gold-800); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin: 0.5rem 0 0; justify-content: center; }
  .site-header { position: sticky; }
  .site-header .container { position: relative; }
  .toc { top: 4.25rem; }
  .trust__inner { grid-template-columns: 1fr; }
  .trust__badges { max-width: none; }
}

@media (max-width: 40rem) {
  .place-list, .municipality--kv .place-list { columns: 1; }
  .section { padding-block: clamp(2.5rem, 1.8rem + 3.6vw, 3.5rem); }
  .home-section-head { align-items: start; flex-direction: column; }
  .oblast__summary { padding-right: 1.8rem; }
  .home-steps { grid-template-columns: 1fr; }
  .svc__media { flex: 0 0 6.75rem; }
  .grid-svc { grid-template-columns: 1fr; }
  .toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: 0 0 auto; }
  .toc--quiet {
    position: static;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.15rem 0.7rem;
  }
  .toc--quiet a {
    flex: 0 1 auto;
    white-space: normal;
    line-height: 1.3;
    padding-block: 0.35rem;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 0.18em;
  }
  .toc--quiet a + a::before { content: none; }
}

@media (max-width: 32rem) {
  .btn { width: 100%; }
  .cluster--tight { gap: 0.5rem; }
  .figure--tall { aspect-ratio: 3 / 4; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --- 26. Достъпност и потискане на движението ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (prefers-contrast: more) {
  :root {
    --ink-600: #3a352d;
    --ink-500: #4c463b;
    --gold-700: #5c4413;
    --line-control: #7a6639;
    --line-strong: #b9ac93;
  }
  .section--ink,
  .cta-band,
  .site-footer { --cream-dim: #f2ece0; --muted-night: #ddd5c6; }
  .card,
  .figure,
  .faq details,
  .field input,
  .field textarea,
  .field select { border-color: #7a6639; }
}

@media print {
  .site-header, .site-footer, .cta-band, .skip, .nav__toggle, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
