/*
 * bar.css — основата на демото: мярка, ритъм и движение. Марката е твоя.
 *
 * Всичко тук се управлява с променливи. Темата на клиента е един блок `:root{…}` в неговия
 * style.css, зареден СЛЕД този файл: цветове, два шрифта, радиус. Нищо друго не се пренаписва.
 *
 * Повърхностите са две — светла (`--paper`/`--ink`) и дълбока (`--deep`/`--deep-ink`). Частите
 * четат само `--bg --fg --mut --ln --dim`, а `.b-deep` ги обръща за всичко вътре в себе си:
 * бутон, пренесен в тъмна лента, не остава с цвета на светлата.
 */

:root {
  --paper: #f5f3ee;
  --ink: #14161a;
  --muted: #565c66;
  --line: rgba(20, 22, 26, .13);

  --deep: #0b1530;
  --deep-ink: #f4f6fb;
  --deep-muted: #aab3c7;
  --deep-line: rgba(244, 246, 251, .16);

  --accent: #d0342c;
  --accent-ink: #ffffff;

  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 700;
  --display-tracking: -.025em;
  --display-leading: 1.04;

  --radius: 18px;
  --radius-s: 10px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --nav-h: 76px;
  --section: clamp(76px, 10vw, 168px);

  --t-hero: clamp(2.7rem, 1rem + 6.4vw, 6.6rem);
  --t-h1: clamp(2.3rem, 1.1rem + 4.2vw, 4.6rem);
  --t-h2: clamp(1.9rem, 1.1rem + 2.8vw, 3.4rem);
  --t-h3: clamp(1.25rem, 1.05rem + .8vw, 1.7rem);
  --t-lead: clamp(1.06rem, .96rem + .5vw, 1.32rem);
  --t-body: 1rem;
  --t-small: .875rem;
  --t-micro: .75rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --bg: var(--paper);
  --fg: var(--ink);
  --mut: var(--muted);
  --ln: var(--line);
  /* Бледото състояние (непрочетена дума, неактивна стъпка) пак се чете: 3:1 е долната граница. */
  --dim: color-mix(in srgb, var(--fg) 52%, var(--bg));
  /* Акцентът като ЦВЯТ НА БУКВИ: потъмнен върху светло, изсветлен върху тъмно. Чистият акцент е
   * за плътни повърхности (бутон, лента); оранжево върху хартия е 2,7:1 и качването го връща. */
  --accent-text: color-mix(in srgb, var(--accent) 74%, #000);
}

.b-deep {
  --bg: var(--deep);
  --fg: var(--deep-ink);
  --mut: var(--deep-muted);
  --ln: var(--deep-line);
  --dim: color-mix(in srgb, var(--fg) 46%, var(--bg));
  --accent-text: color-mix(in srgb, var(--accent) 78%, #fff);
  background: var(--bg);
  color: var(--fg);
}

.b-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --mut: var(--muted);
  --ln: var(--line);
  --dim: color-mix(in srgb, var(--fg) 52%, var(--bg));
  --accent-text: color-mix(in srgb, var(--accent) 74%, #000);
  background: var(--bg);
  color: var(--fg);
}

/* ─── Основа ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* Плавният скрол е на натискането (bar.js), не на страницата: `scroll-behavior: smooth` в CSS
 * забавя и всеки скрол от скрипт, и проверката, която обхожда страницата, не стига дъното ѝ. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

/* `lang="bg"` makes a font switch to its Bulgarian letterforms, and „Обекти" reads „Обекmu" — a typo on a screen.
 * Form controls get their own font from the browser instead of inheriting it, so they are named too: on 04.10.2026
 * the rule on `html` alone left every button of the МегаПласт demo reading „Хоmел Дунаβ". */
html, button, input, select, textarea {
  font-feature-settings: "locl" 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, canvas { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.18; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.b-hero-type { font-size: var(--t-hero); line-height: .98; }
.b-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--mut); max-width: 56ch; }
.b-muted { color: var(--mut); }
.b-accent { color: var(--accent-text); }

.b-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mut);
}
.b-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.b-eyebrow--dot::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ─── Подредба ───────────────────────────────────────────────────────────── */

.b-wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.b-wrap--wide { --wrap: 1520px; }
.b-wrap--text { --wrap: 820px; }

/* Секцията реже настрани: елемент, който влиза отстрани, не разширява страницата на телефон. */
.b-section { padding-block: var(--section); position: relative; overflow-x: clip; }
.b-section--tight { padding-block: calc(var(--section) * .6); }

.b-grid { display: grid; gap: clamp(18px, 2.4vw, 36px); }
.b-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 110px);
  align-items: center;
}
.b-split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.b-split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.b-stack-s > * + * { margin-top: 14px; }
.b-stack-m > * + * { margin-top: 26px; }
.b-stack-l > * + * { margin-top: clamp(30px, 4vw, 56px); }

@media (max-width: 960px) {
  .b-grid--3, .b-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-split, .b-split--wide-left, .b-split--wide-right { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .b-grid--2, .b-grid--3, .b-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ─── Бутони ─────────────────────────────────────────────────────────────── */

.b-btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.b-btn svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .35s var(--ease); }
.b-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--btn-bg) 70%, transparent); }
.b-btn:hover svg { transform: translateX(4px); }
.b-btn:active { transform: translateY(0); }
.b-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 34%, transparent);
}
.b-btn--ghost:hover { --btn-bg: var(--fg); --btn-fg: var(--bg); box-shadow: none; }
.b-btn--plain { --btn-bg: var(--fg); --btn-fg: var(--bg); }
.b-btn--s { min-height: 42px; padding: 0 1.2em; font-size: .85rem; }

.b-link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease), gap .35s var(--ease);
}
.b-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.b-link:hover { background-size: 0 1px; background-position: 100% 100%; gap: .85em; }

.b-chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .42em .95em;
  border: 1px solid var(--ln);
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 500;
  white-space: nowrap;
}

/* ─── Горна лента ────────────────────────────────────────────────────────────
 * `sticky`, не `fixed`: стои върху героя с отрицателно поле, без да е плаващ слой над бутоните.
 * Менюто на телефон е чекбокс и етикет — отваря се и без скрипт. */

.b-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  margin-bottom: calc(var(--nav-h) * -1);
  color: var(--nav-fg, var(--deep-ink));
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.b-nav--solid, .b-nav.is-stuck {
  background: color-mix(in srgb, var(--nav-bg, var(--paper)) 88%, transparent);
  color: var(--nav-fg-stuck, var(--ink));
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.b-nav--solid { margin-bottom: 0; }
.b-nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}
.b-nav__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.b-nav__brand img { height: 40px; width: auto; object-fit: contain; }
.b-nav__links { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 34px); margin-left: auto; }
.b-nav__links a {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 8px;
}
.b-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.b-nav__links a:hover::after, .b-nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.b-nav__tel { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.b-nav__tel svg { width: 16px; height: 16px; flex: 0 0 auto; }
.b-nav__toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.b-nav__burger { display: none; }

@media (max-width: 980px) {
  .b-nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px; height: 46px;
    margin-left: auto;
    padding: 0 11px;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .b-nav__burger span { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
  .b-nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    padding: 12px var(--gutter) 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg, var(--paper));
    color: var(--nav-fg-stuck, var(--ink));
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .35);
    display: none;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .b-nav__links a { padding: 15px 0; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .b-nav__links a::after { display: none; }
  .b-nav__links .b-btn { margin-top: 18px; border-bottom: 0; }
  .b-nav__toggle:checked ~ .b-nav__links { display: flex; }
  .b-nav__toggle:checked ~ .b-nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .b-nav__toggle:checked ~ .b-nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .b-nav__tel span { display: none; }
  .b-nav .b-nav__cta { display: none; }
}

/* ─── Герой ──────────────────────────────────────────────────────────────── */

.b-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 7vw, 96px);
  overflow: clip;
  isolation: isolate;
}
.b-hero--center { align-items: center; }
.b-hero__media { position: absolute; inset: 0; z-index: -2; }
.b-hero__media img, .b-hero__media video { width: 100%; height: 100%; object-fit: cover; }
/* Затъмняването е преход, не плоска завеса: текстът стои върху тъмното, снимката диша в светлото. */
.b-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--deep) 94%, transparent) 0%, color-mix(in srgb, var(--deep) 80%, transparent) 38%, color-mix(in srgb, var(--deep) 30%, transparent) 70%, transparent 92%),
    linear-gradient(0deg, color-mix(in srgb, var(--deep) 80%, transparent) 0%, transparent 50%);
}
.b-hero__shade--bottom { background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 94%, transparent) 0%, color-mix(in srgb, var(--deep) 62%, transparent) 46%, color-mix(in srgb, var(--deep) 40%, transparent) 100%); }
/* На телефон текстът покрива цялата ширина на снимката: затъмнява се цялата, по-силно отдолу. */
@media (max-width: 760px) {
  .b-hero__shade, .b-hero__shade--bottom { background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 96%, transparent) 0%, color-mix(in srgb, var(--deep) 84%, transparent) 55%, color-mix(in srgb, var(--deep) 62%, transparent) 100%); }
}

.b-pagehead {
  position: relative;
  min-height: min(62vh, 620px);
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 56px) 0 clamp(34px, 5vw, 70px);
  overflow: clip;
  isolation: isolate;
}

/* ─── Появяване ──────────────────────────────────────────────────────────────
 * Скрива се само докато скриптът работи (`.b-js` се слага в <head>). Не дойде ли bar.js,
 * всичко се показва само след 2,5 s. */

.b-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .85s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.b-js [data-reveal="fade"] { transform: none; }
.b-js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.b-js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.b-js [data-reveal="scale"] { transform: scale(.93); }
/* Маската реже СЪДЪРЖАНИЕТО, не самия елемент: браузърът не брои за видим елемент, изрязан от
 * собствения си `clip-path`, и наблюдателят никога не го пуска (снимките на образеца, 29.09.2026). */
.b-js [data-reveal^="mask"] { opacity: 1; transform: none; }
.b-js [data-reveal^="mask"]:not(.is-in) { background: none; }
.b-js [data-reveal^="mask"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease), transform 1.4s var(--ease); transition-delay: inherit; }
.b-js [data-reveal="mask-x"] > * { clip-path: inset(0 100% 0 0); }
.b-js [data-reveal].is-in { opacity: 1; transform: none; }
.b-js [data-reveal^="mask"].is-in > * { clip-path: inset(0); }
.b-js:not(.b-ready) [data-reveal], .b-js:not(.b-ready) [data-reveal^="mask"] > * { animation: b-show 0s 2.5s forwards; }
@media (max-width: 760px) {
  .b-js [data-reveal="left"], .b-js [data-reveal="right"] { transform: translate3d(0, 30px, 0); }
}
@keyframes b-show { to { opacity: 1; transform: none; clip-path: none; } }

/* Снимка в рамка: рамката се разкрива, снимката вътре се успокоява от леко уголемена. */
.b-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: color-mix(in srgb, var(--fg) 7%, var(--bg)); }
.b-frame > img { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.b-js .b-frame[data-reveal] > img { transform: scale(1.14); }
.b-js .b-frame[data-reveal].is-in > img { transform: scale(1); }
a:hover > .b-frame > img, .b-frame--hover:hover > img { transform: scale(1.045); }

/* Заглавие дума по дума: думата излиза иззад ръба на реда си. */
.b-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .16em; margin: -.08em -.02em -.16em; }
.b-w__i { display: inline-block; transform: translate3d(0, 112%, 0); transition: transform 1s var(--ease); transition-delay: calc(var(--w, 0) * 55ms + var(--wd, 0ms)); will-change: transform; }
.is-in > .b-w > .b-w__i, .is-in .b-w__i { transform: none; }

/* Текст, който се „прочита" със скрола. */
.b-r { color: var(--dim); transition: color .45s var(--ease); }
.b-r.is-on { color: inherit; }

/* ─── Сцена, водена от скрола ────────────────────────────────────────────────
 * Секцията е дълга `--len` екрана, сцената вътре стои залепена. bar.js пише `--p` (0…1) върху
 * секцията и `--k` (0…1) върху всеки елемент с `data-phase="начало край"`. Рисунката се движи
 * с тях изцяло в CSS: `transform: translateX(calc((1 - var(--k)) * -340px))`. */

.b-scene { position: relative; height: calc(var(--len, 3) * 100vh); height: calc(var(--len, 3) * 100svh); --p: 0; }
.b-scene__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  display: grid;
  align-items: center;
  padding-top: var(--nav-h);
}
:where(.b-scene [data-phase]) { --k: 0; }
.b-scene svg { overflow: visible; }
/* `:where` не тежи: всяко правило на страницата го надвива (стрелка, която се върти около оста на уреда). */
:where(.b-scene [data-phase], .b-scene [data-at]) { transform-box: fill-box; }

/* Стъпките на сцената: бледи, докато не дойде редът им — но четими и тогава. */
.b-step { color: var(--dim); transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease), transform .6s var(--ease); }
.b-step.is-on { color: var(--fg); }
.b-step__mark { transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease); }

/* Без скрипт и при „по-малко движение" сцената е картина в крайното си състояние, не празен път. */
html:not(.b-js) .b-scene { height: auto; --p: 1; }
html:not(.b-js) .b-scene__stage { position: relative; height: auto; padding-block: var(--section); }
html:not(.b-js) .b-scene [data-phase] { --k: 1; }
html:not(.b-js) .b-step { color: var(--fg); }
.b-scene--still { height: auto; }
.b-scene--still .b-scene__stage { position: relative; height: auto; min-height: 0; padding-block: var(--section); }

@media (max-width: 960px) {
  .b-scene { height: calc(var(--len-phone, var(--len, 3)) * 100vh); height: calc(var(--len-phone, var(--len, 3)) * 100svh); }
}

/* ─── Хоризонтална галерия, водена от скрола ────────────────────────────────
 * На компютър страницата скролва надолу, а редът върви настрани. На телефон е обикновен ред,
 * който се плъзга с пръст. */

.b-hscroll { position: relative; }
.b-hscroll__stage { overflow: clip; padding-block: var(--section); }
.b-hscroll__track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.b-hscroll__track::-webkit-scrollbar { display: none; }
.b-hscroll__track > * { flex: 0 0 auto; width: min(78vw, 460px); scroll-snap-align: start; }
.b-hscroll.is-pinned .b-hscroll__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--nav-h) 0;
}
.b-hscroll.is-pinned .b-hscroll__track { overflow: visible; scroll-snap-type: none; will-change: transform; }
/* Картата се събира в екрана: редът взима само мястото под заглавието на секцията, а снимката
 * (първото дете на картата) се свива, за да останат надписите под нея (Monblan Design, 01.10.2026:
 * на прозорец, по-нисък от 1 000 пиксела, заглавията под снимките бяха отрязани). */
.b-hscroll.is-pinned .b-hscroll__track { flex: 0 1 auto; min-height: 0; align-items: flex-start; padding-bottom: clamp(16px, 4vh, 48px); }
.b-hscroll.is-pinned .b-hscroll__track > * { display: flex; flex-direction: column; max-height: 100%; }
.b-hscroll.is-pinned .b-hscroll__track > * > :first-child { flex: 0 1 auto; min-height: 0; }
.b-hscroll.is-pinned .b-hscroll__track > * > :not(:first-child) { flex: none; }
.b-hscroll.is-pinned .b-hscroll__track > * > img:first-child { object-fit: cover; }

/* ─── Бягаща лента ───────────────────────────────────────────────────────── */

.b-marquee { overflow: clip; display: flex; user-select: none; }
.b-marquee__row {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--gap, 48px);
  padding-right: var(--gap, 48px);
  min-width: 100%;
  animation: b-marquee var(--speed, 38s) linear infinite;
}
.b-marquee--back .b-marquee__row { animation-direction: reverse; }
.b-marquee:hover .b-marquee__row { animation-play-state: paused; }
.b-marquee__row > * { flex: 0 0 auto; white-space: nowrap; }
@keyframes b-marquee { to { transform: translate3d(-100%, 0, 0); } }

.b-band {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, .8rem + .6vw, 1.35rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.b-band--slant { transform: rotate(-1.6deg) scale(1.04); transform-origin: center; }
.b-band i { display: inline-block; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); opacity: .85; }

/* ─── Слайдер ────────────────────────────────────────────────────────────────
 * Слайдовете лежат един върху друг в една клетка: височината е на най-високия, нищо не подскача. */

.b-slider { position: relative; display: grid; overflow: clip; isolation: isolate; }
.b-slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease-io), visibility 0s 1.1s;
  z-index: 0;
}
.b-slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease-io), visibility 0s; z-index: 1; }
.b-slide__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.b-slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); }
.b-slide.is-on .b-slide__media img { animation: b-drift 9s var(--ease) both; }
@keyframes b-drift { from { transform: scale(1.09); } to { transform: scale(1.001); } }
.b-slider__nav {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  bottom: clamp(18px, 3vw, 40px);
  pointer-events: none;
}
.b-slider__nav .b-wrap { display: flex; align-items: center; gap: 12px; }
.b-slider__dot {
  pointer-events: auto;
  position: relative;
  width: 54px; height: 28px;
  border: 0; padding: 0;
  background: none;
}
.b-slider__dot::before, .b-slider__dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 13px;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, currentColor 34%, transparent);
}
.b-slider__dot::after { background: currentColor; transform: scaleX(0); transform-origin: left; }
.b-slider__dot.is-on::after { animation: b-fill var(--auto, 6s) linear forwards; }
.b-slider.is-paused .b-slider__dot.is-on::after { animation-play-state: paused; }
@keyframes b-fill { to { transform: scaleX(1); } }
.b-slider__count { margin-left: auto; font-size: var(--t-small); font-variant-numeric: tabular-nums; letter-spacing: .08em; pointer-events: none; }
.b-slider__arrow {
  pointer-events: auto;
  width: 50px; height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  background: none;
  transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.b-slider__arrow svg { width: 18px; height: 18px; }
.b-slider__arrow:hover { background: var(--fg); color: var(--bg); transform: scale(1.06); }

/* ─── Преди / след ───────────────────────────────────────────────────────── */

.b-compare { position: relative; overflow: hidden; border-radius: var(--radius); --x: 50%; touch-action: pan-y; }
.b-compare img { width: 100%; height: 100%; display: block; }
.b-compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.b-compare__line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  pointer-events: none;
}
.b-compare__line::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.b-compare input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.b-compare__tag {
  position: absolute;
  bottom: 14px;
  padding: .35em .9em;
  border-radius: 999px;
  background: rgba(10, 12, 16, .62);
  color: #fff;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.b-compare__tag--a { left: 14px; }
.b-compare__tag--b { right: 14px; }

/* ─── Карти, които се подреждат една върху друга ─────────────────────────── */

.b-pile > * {
  position: sticky;
  top: calc(var(--nav-h) + 20px + var(--i, 0) * 16px);
  transform-origin: center top;
}
.b-pile > * + * { margin-top: clamp(20px, 3vw, 40px); }

/* ─── Карта ──────────────────────────────────────────────────────────────── */

.b-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s;
}
a.b-card:hover, .b-card--lift:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--fg) 45%, transparent); }
.b-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.b-card__media img { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.b-card:hover .b-card__media img { transform: scale(1.06); }
.b-card__body { padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-card__body p { color: var(--mut); font-size: .95rem; }

/* Карта, която се накланя под мишката. */
[data-tilt] { transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; }
[data-tilt].is-tilting { transition: transform .08s linear; }

/* ─── Числа ──────────────────────────────────────────────────────────────── */

.b-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--ln); }
.b-fact { padding: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 30px) clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--ln); }
.b-fact__n {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.b-fact__n small { font-size: .42em; letter-spacing: 0; margin-left: .15em; color: var(--accent-text); }
.b-fact__l { display: block; margin-top: 12px; font-size: var(--t-small); color: var(--mut); max-width: 26ch; }

/* Огромно число или дума зад съдържанието. Декорът не е текст на страницата: думата стои в
 * `data-text`, рисува я `::before` — и може да пресича ръба, без да е „отрязано изречение". */
.b-ghost::before { content: attr(data-text); }
.b-ghost {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 22rem);
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 16%, transparent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ─── Сгъваеми редове ────────────────────────────────────────────────────── */

.b-acc { border-top: 1px solid var(--ln); }
.b-acc details { border-bottom: 1px solid var(--ln); }
.b-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h3);
  letter-spacing: -.01em;
}
.b-acc summary::-webkit-details-marker { display: none; }
.b-acc summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .45s var(--ease);
}
.b-acc details[open] summary::after { transform: rotate(135deg); }
.b-acc__body { padding: 0 0 28px; color: var(--mut); max-width: 70ch; }

/* ─── Табове ─────────────────────────────────────────────────────────────── */

.b-tabs__list { display: flex; gap: 8px; flex-wrap: wrap; }
.b-tabs__list button {
  border: 1px solid var(--ln);
  background: none;
  border-radius: 999px;
  padding: .6em 1.25em;
  font-weight: 500;
  font-size: .92rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
.b-tabs__list button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.b-js .b-tabs__panel[hidden] { display: none; }
.b-js .b-tabs__panel { animation: b-tab .6s var(--ease) both; }
@keyframes b-tab { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ─── Линия на напредъка ─────────────────────────────────────────────────── */

.b-progress {
  position: fixed;
  z-index: 60;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(var(--page, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ─── Голяма снимка при докосване ────────────────────────────────────────── */

[data-zoom] { cursor: zoom-in; }
.b-zoom {
  border: 0; padding: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  background: rgba(8, 10, 14, .94);
  color: #fff;
}
.b-zoom::backdrop { background: rgba(8, 10, 14, .94); }
.b-zoom[open] { display: grid; place-items: center; animation: b-zoom-in .35s var(--ease); }
.b-zoom img { max-width: 94vw; max-height: 88vh; max-height: 88dvh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.b-zoom__x {
  position: absolute;
  top: 18px; right: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
@keyframes b-zoom-in { from { opacity: 0; } }

/* ─── Списък, чиято снимка върви след мишката ────────────────────────────── */

[data-peeks] { position: relative; }
.b-peek {
  position: absolute;
  top: 0; left: 0;
  z-index: 5;
  width: clamp(220px, 24vw, 360px);
  aspect-ratio: 4 / 5;
  margin: -34% 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  scale: .86;
  rotate: -3deg;
  transition: opacity .45s var(--ease), scale .6s var(--ease), rotate .6s var(--ease);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55);
}
.b-peek.is-on { opacity: 1; scale: 1; rotate: 0deg; }
.b-peek img { width: 100%; height: 100%; }
.b-peek__inline { display: none; }
@media (hover: none), (pointer: coarse), (max-width: 960px) {
  .b-peek { display: none; }
  .b-peek__inline { display: block; }
}

/* ─── Календар и часове ──────────────────────────────────────────────────── */

.b-cal { user-select: none; }
.b-cal__bar { display: flex; justify-content: space-between; margin-bottom: -40px; position: relative; z-index: 1; }
.b-cal__nav {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: none;
  transition: background-color .25s, color .25s, opacity .25s;
}
.b-cal__nav svg { width: 18px; height: 18px; }
.b-cal__nav:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.b-cal__nav:disabled { opacity: .3; cursor: default; }
.b-cal__months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
.b-cal__title { height: 40px; display: grid; place-items: center; font-weight: 600; text-transform: capitalize; }
.b-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 14px; }
.b-cal__wd { text-align: center; font-size: var(--t-micro); font-weight: 600; letter-spacing: .08em; color: var(--mut); padding-bottom: 8px; }
.b-cal__day {
  aspect-ratio: 1;
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.b-cal__day:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.b-cal__day:disabled { color: color-mix(in srgb, var(--fg) 30%, var(--bg)); cursor: default; }
.b-cal__day.is-today { box-shadow: inset 0 0 0 1px var(--ln); }
.b-cal__day.is-between { background: color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 0; }
.b-cal__day.is-on, .b-cal__day.is-on:hover { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.b-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.b-slot {
  min-height: 46px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-s);
  background: none;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.b-slot:hover:not(:disabled) { border-color: var(--fg); }
.b-slot:disabled { color: color-mix(in srgb, var(--fg) 30%, var(--bg)); text-decoration: line-through; cursor: default; }
.b-slot.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ─── Карта на България с точки ──────────────────────────────────────────── */

.b-map { position: relative; }
.b-map svg { width: 100%; height: auto; display: block; }
.b-map__land { fill: color-mix(in srgb, var(--fg) 9%, transparent); stroke: color-mix(in srgb, var(--fg) 30%, transparent); stroke-width: .6; stroke-linejoin: round; transition: fill .4s; }
.b-map__land:hover, .b-map__land.is-on { fill: color-mix(in srgb, var(--accent) 34%, transparent); }
.b-pin {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
}
.b-pin::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 85%, transparent);
  transition: transform .35s var(--ease);
}
.b-pin::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: b-ping 2.6s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 240ms);
}
.b-pin:hover::before, .b-pin.is-on::before { transform: scale(1.5); }
.b-pin__name {
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translate(-50%, 4px);
  padding: .3em .7em;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--t-micro);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease);
}
.b-pin:hover .b-pin__name, .b-pin.is-on .b-pin__name { opacity: 1; transform: translate(-50%, -4px); }
@keyframes b-ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.4); opacity: 0; } }

/* ─── Формуляр ───────────────────────────────────────────────────────────── */

.b-field { display: flex; flex-direction: column; gap: 8px; }
.b-field label { font-size: var(--t-small); font-weight: 600; }
.b-field input, .b-field select, .b-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--fg) 3%, var(--bg));
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.b-field textarea { min-height: 130px; resize: vertical; }
.b-field input:focus, .b-field select:focus, .b-field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ─── Поток от частици ───────────────────────────────────────────────────────
   Платно върху снимката на героя. Цветът на частиците е `color` на платното.
   <canvas class="b-flow" data-flow data-from="68% 42%" data-angle="200" data-shape="flake"> */

.b-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--accent); z-index: 1; }
/* В героя платното стои след сянката и под думите: искрата минава зад заглавието, не през него. */
.b-hero > .b-flow { z-index: -1; }

/* ─── Режими ─────────────────────────────────────────────────────────────────
   Един превключвател сменя `data-mode` на секцията; темата ѝ е два блока с цветове. */

.b-modes {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 8%, transparent); border: 1px solid var(--ln);
}
.b-modes button {
  appearance: none; border: 0; background: none; color: var(--mut); font: inherit; font-size: .9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: 0 1.1em; border-radius: 999px; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.b-modes button svg { width: 16px; height: 16px; flex: none; }
.b-modes button.is-on { background: var(--accent); color: var(--accent-ink); }
.b-modes button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-mode-scope] { transition: background-color .6s var(--ease), color .6s var(--ease); }

/* ─── Стъклена карта и плаваща бележка ───────────────────────────────────── */

.b-glass {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  border-radius: calc(var(--radius) + 6px);
}
.b-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  animation: b-float 7s var(--ease) infinite alternate;
}
.b-float b { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.b-float small { display: block; color: var(--mut); font-size: .78rem; margin-top: 2px; }
.b-float svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.b-float:nth-of-type(2n) { animation-delay: -3.5s; }
@keyframes b-float { from { transform: translate3d(0, -5px, 0); } to { transform: translate3d(0, 6px, 0); } }
@media (max-width: 759px) { .b-float { display: none; } }

/* ─── Горна лента като хапче ─────────────────────────────────────────────── */

/* Хапчето носи своята повърхност и върху снимката, и след скрол: цветовете му са тези на
   залепената лента (`--nav-bg`, `--nav-fg-stuck`), а самата лента остава прозрачна. */
.b-nav--pill { top: 14px; background: none; border: 0; }
.b-nav--pill .b-nav__in {
  border-radius: 999px; padding-inline: clamp(16px, 2vw, 28px);
  background: color-mix(in srgb, var(--nav-bg, var(--paper)) 74%, transparent);
  color: var(--nav-fg-stuck, var(--ink));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--nav-fg-stuck, var(--ink)) 14%, transparent);
}
.b-nav--pill.is-stuck { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 980px) {
  .b-nav--pill .b-nav__links { top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); border-radius: 22px; padding-top: 8px; }
}

/* ─── Сметка: плъзгач, избори, число ─────────────────────────────────────── */

.b-calc { display: grid; gap: clamp(20px, 3vw, 44px); }
@media (min-width: 900px) { .b-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.b-calc__ask { display: grid; gap: 26px; align-content: start; }
.b-calc__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.b-calc__big { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-top: 8px; }

.b-range {
  appearance: none; -webkit-appearance: none; width: 100%; height: 28px; background: none; margin: 6px 0 0; cursor: pointer; --fill: 50%;
}
.b-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill), color-mix(in srgb, var(--fg) 16%, transparent) var(--fill));
}
.b-range::-moz-range-track { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 16%, transparent); }
.b-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.b-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.b-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.b-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
.b-range__ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--mut); margin-top: 4px; }

.b-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.b-picks label { position: relative; cursor: pointer; }
.b-picks input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.b-picks span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.05em; border-radius: var(--radius);
  border: 1px solid var(--ln); font-size: .92rem; font-weight: 500; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.b-picks input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.b-picks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Дъга, която се пълни до `--v` (0…1). Числото стои в средата ѝ. */
.b-gauge { position: relative; width: min(100%, 320px); margin-inline: auto; aspect-ratio: 2 / 1.12; --v: 0; }
.b-gauge svg { width: 100%; height: 100%; overflow: visible; display: block; }
.b-gauge path { fill: none; stroke-width: 12; stroke-linecap: round; }
.b-gauge__rail { stroke: color-mix(in srgb, var(--fg) 14%, transparent); }
.b-gauge__fill { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v) * 100); transition: stroke-dashoffset .7s var(--ease); }
.b-gauge__in { position: absolute; inset: auto 0 6%; text-align: center; }
.b-gauge__in b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.b-gauge__in small { display: block; color: var(--mut); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

.b-match { display: grid; gap: 8px; margin-top: 22px; }
.b-match__row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px;
  border: 1px solid var(--ln); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.b-match__row:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.b-match__row img { width: 56px; height: 56px; object-fit: cover; border-radius: calc(var(--radius) - 2px); }
.b-match__row b { display: block; font-size: .98rem; }
.b-match__row small { color: var(--mut); font-size: .8rem; }
.b-match__row em { font-style: normal; font-family: var(--font-display); font-size: 1.1rem; white-space: nowrap; }
[hidden] { display: none !important; }

/* ─── Долна част ─────────────────────────────────────────────────────────── */

.b-foot { padding-block: clamp(56px, 7vw, 110px) 34px; font-size: .95rem; }
.b-foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 70px); }
.b-foot h4 { font-family: var(--font-text); font-size: var(--t-micro); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); margin-bottom: 18px; }
.b-foot li + li { margin-top: 10px; }
.b-foot a { text-decoration: none; color: inherit; opacity: .86; transition: opacity .25s; }
.b-foot a:hover { opacity: 1; text-decoration: underline; }
.b-foot__end { margin-top: clamp(40px, 5vw, 80px); padding-top: 24px; border-top: 1px solid var(--ln); display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; font-size: var(--t-small); color: var(--mut); }
@media (max-width: 900px) { .b-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .b-foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* ─── Спокойно ───────────────────────────────────────────────────────────────
 * Който е поискал по-малко движение, получава готовата страница: всичко на мястото си. */

@media (prefers-reduced-motion: reduce) {
  .b-js [data-reveal], .b-js [data-reveal^="mask"] > *, .b-w__i { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .b-js .b-frame[data-reveal] > img { transform: none !important; }
  .b-r { color: inherit; }
  .b-marquee__row, .b-slide.is-on .b-slide__media img, .b-pin::after, .b-slider__dot.is-on::after { animation: none !important; }
  .b-step { color: var(--fg); }
}
