/* ============ Токени ============ */
/* Палитра: тъмносиньо и злато от логото + стоманено синьо като втори цвят */
:root {
  --navy: #223047;
  --navy-deep: #172133;
  --gold: #C2A15A;
  --gold-hi: #E9D9A0;
  --gold-lo: #9C7A3C;
  --gold-grad: linear-gradient(90deg, #A88544, #D9C27E 50%, #A88544);
  --steel: #4F6D8A;
  --steel-soft: #E6ECF2;

  --bg: #F7F5F0;
  --bg-2: var(--steel-soft);
  --surface: #FFFFFF;
  --text: #18212F;
  --muted: #5C6675;
  --line: rgba(24, 33, 47, .12);
  --accent: #8E6C2F;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 16px 40px -24px rgba(16, 24, 40, .25);

  --radius: 8px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --f-display: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E141D; --bg-2: #131C28; --surface: #172130; --text: #ECE8E0; --muted: #97A1B0;
    --line: rgba(255, 255, 255, .09); --accent: #D6B86E; --steel: #8EA8C2; --steel-soft: #131C28;
    --shadow: 0 16px 40px -24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E141D; --bg-2: #131C28; --surface: #172130; --text: #ECE8E0; --muted: #97A1B0;
  --line: rgba(255, 255, 255, .09); --accent: #D6B86E; --steel: #8EA8C2; --steel-soft: #131C28;
  --shadow: 0 16px 40px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(1240px, 100% - 80px); } }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.center { display: flex; justify-content: center; margin-top: 48px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.eyebrow {
  font: 600 12px/1 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 20px;
}

.h2, .h3, .h4, .hero__title { font-family: var(--f-display); font-weight: 400; letter-spacing: -.025em; margin: 0; }
.h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.1; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.h4 { font-size: 19px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }

/* ============ Бутони ============ */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 6px;
  font: 500 15px/1 var(--f-body);
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: #18212F; }
.btn--gold:hover { background: #D3B46C; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.hero .btn--ghost, .page-hero .btn--ghost { color: #F3EFE6; border-color: rgba(255,255,255,.4); background: transparent; }
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover { border-color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #F3EFE6; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: auto;
  font-weight: 500; color: var(--accent); background: none; border: 0; padding: 0;
}
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ============ Интро ============ */
.intro { position: fixed; inset: 0; z-index: 100; background: #182235; display: grid; place-items: center; pointer-events: none; }
.intro__logo { width: min(420px, 70vw); height: auto; }
html:not(.js) .intro, .intro.is-done { display: none; }

/* ============ Навигация ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background-color .5s, backdrop-filter .5s, height .5s var(--ease), border-color .5s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
  color: #F3ECD9;
}
/* Лентата остава тъмносиня и в светлата тема */
.nav.is-solid {
  height: 70px; color: #F3EFE6;
  background: color-mix(in srgb, var(--navy-deep) 94%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: rgba(255, 255, 255, .08);
}
.nav.is-hidden { transform: translateY(-100%); }

/* Оригиналното лого: къщата отгоре, ADAPT SMART SYSTEM отдолу */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; transition: height .5s var(--ease); filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); }
.nav.is-solid .brand img { height: 46px; filter: none; }
.brand--lg img { height: 110px; }
@media (max-width: 600px) { .brand img { height: 44px; } }

.nav__links { display: none; gap: clamp(18px, 2.4vw, 34px); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav__links a { position: relative; opacity: .85; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold-grad); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__cta { display: none; }
@media (min-width: 1180px) { .nav__links { display: flex; } .nav__cta { display: inline-flex; } .burger { display: none !important; } }

/* Лампа – превключвател на темата */
.lamp { width: 44px; height: 64px; margin-top: -18px; background: none; border: 0; padding: 0; position: relative; }
.lamp svg { width: 100%; height: 100%; overflow: visible; }
.lamp__cord { stroke: currentColor; stroke-width: 1.5; opacity: .6; transition: transform .25s var(--ease); }
.lamp__head { transform-origin: 30px 0; transform-box: view-box; }
.lamp__shade { fill: url(#logo-gold); }
.lamp__bulb { fill: #4B5468; transition: fill .4s; }
.lamp__beam { fill: #FFE3A0; opacity: 0; transition: opacity .5s; filter: blur(6px); }
[data-theme="light"] .lamp__bulb { fill: #FFF1C2; }
[data-theme="light"] .lamp__beam { opacity: .55; }
.lamp.is-pulled .lamp__cord { transform: translateY(5px); }

.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; display: grid; place-content: center; gap: 6px; opacity: .9; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 100px 24px 40px;
  font: 300 26px/1.2 var(--f-display);
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.mobile-menu .btn { font-family: var(--f-body); align-self: flex-start; margin-top: 20px; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
body.menu-open .nav:not(.is-solid) { color: var(--text); }

/* ============ Хиро ============ */
.hero { position: relative; height: 100vh; height: 100svh; background: #0B1220; }
html.js-motion .hero { height: 230vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__photos { position: absolute; inset: 0; will-change: transform; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* Един и същ рендер ден и нощ: скролът минава през здрач към нощ със светнали лампи */
.hero__photo--night { opacity: 0; will-change: opacity; }
html:not(.js-motion) .hero__photo--night { opacity: 1; }
.hero__dusk { position: absolute; inset: 0; opacity: 0; mix-blend-mode: multiply;
  background: linear-gradient(180deg, #3B4A7A 0%, #C9875A 55%, #6B4A3A 100%); }
.hero__photo--inside { opacity: 0; z-index: 1; }

.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,12,22,.72), rgba(8,12,22,.15) 60%, rgba(8,12,22,0)),
              linear-gradient(0deg, rgba(8,12,22,.55), rgba(8,12,22,0) 35%);
}
.hero__copy, .hero__caption, .hero-cards, .scroll-hint { z-index: 3; }

.hero__copy {
  position: absolute; color: #F3ECD9;
  left: clamp(16px, 6vw, 96px); right: 16px; top: clamp(120px, 20vh, 220px);
  max-width: 640px;
}
.hero__copy .eyebrow, .hero__caption .eyebrow { color: var(--gold-hi); }
.hero__title { font-size: clamp(34px, 5vw, 68px); line-height: 1.04; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); max-width: 520px; color: rgba(243,236,217,.85); margin: 26px 0 34px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__caption {
  position: absolute; left: clamp(16px, 6vw, 96px); bottom: clamp(60px, 14vh, 140px);
  max-width: 500px; color: #F3ECD9; opacity: 0;
}
.hero__caption-text { font: 300 clamp(22px, 2.4vw, 34px)/1.3 var(--f-display); margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
html:not(.js-motion) .hero__caption { display: none; }

/* Карти като от приложението за управление */
.hero-cards {
  position: absolute; right: clamp(16px, 5vw, 80px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 12px; width: min(330px, 40vw);
}
.hero-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; opacity: 0;
  color: #F3ECD9; background: rgba(10, 15, 26, .5);
  border-left: 2px solid var(--gold);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero-card > svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #D9BE6E; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-card div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hero-card strong { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,236,217,.7); }
.hero-card span { font-size: 16px; color: #F3ECD9; }
html:not(.js-motion) .hero-cards { display: none; }


.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243,236,217,.75);
}
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--gold-hi), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 760px) {
  .hero__stage::before { background: linear-gradient(180deg, rgba(8,12,22,.75), rgba(8,12,22,.1) 55%, rgba(8,12,22,.6)); }
  .hero__copy { top: 104px; }
  .hero__title { font-size: clamp(30px, 8.6vw, 42px); }
  .hero__lead { margin: 18px 0 24px; }
  .hero-cards { top: auto; bottom: 24px; transform: none; left: 16px; right: 16px; width: auto; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-card { padding: 10px; gap: 10px; }
  .hero-card > svg { display: none; }
  .hero__caption { top: 104px; bottom: auto; right: 16px; }
  .scroll-hint { display: none; }
}

/* ============ Числа ============ */
.stats { border-block: 1px solid var(--line); padding: 56px 0; background: var(--bg); position: relative; z-index: 2; }
.stats__grid { display: grid; gap: 36px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .stats__grid { grid-template-columns: 1fr 1fr 1fr 1.3fr; align-items: center; } }
.stat__num { font: 300 clamp(38px, 4.4vw, 56px)/1 var(--f-display); letter-spacing: -.03em; color: var(--text); }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 14px; }
.stat--badges { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) { .stat--badges { grid-column: auto; } }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; font-weight: 500; }
.badge svg { width: 22px; height: 22px; fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ============ Двата входа ============ */
/* Двата входа: ясно оформени като две опции за избор */
.entries__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.entries__head .muted { margin: 16px 0 0; }
.entries__grid { display: grid; gap: 20px; position: relative; }
@media (min-width: 860px) { .entries__grid { grid-template-columns: 1fr auto 1fr; gap: 0 24px; align-items: stretch; } }
.entry {
  position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--gold);
  transition: background-color .3s, box-shadow .3s;
}
.entry:hover, .entry:focus-visible {
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 22%, transparent), var(--shadow);
  outline: none;
}
.entry p:not(.eyebrow) { color: var(--muted); margin: 12px 0 28px; max-width: 46ch; }
.entry h3 { padding-right: 40px; }
.entry__img { margin: calc(-1 * clamp(28px, 4vw, 48px)) calc(-1 * clamp(28px, 4vw, 48px)) 30px; height: 240px; overflow: hidden; position: relative; }
.entry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.entry:hover .entry__img img { transform: scale(1.05); }
.entry__badge {
  position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #18212F; background: var(--gold);
}
.entry__cta { margin-top: auto; align-self: flex-start; }
.entries__or { display: none; }
@media (min-width: 860px) {
  .entries__or { display: flex; align-items: center; justify-content: center; position: relative; }
  .entries__or::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 1px; background: var(--line); }
  .entries__or span {
    position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  }
}

/* ============ Системи: карусел със стрелки ============ */
.systems { position: relative; padding: clamp(80px, 10vw, 128px) 0; background: var(--bg-2); overflow: hidden; }
.systems__inner { display: flex; flex-direction: column; gap: 48px; }
.systems__head { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .systems__head { grid-template-columns: 1.2fr 1fr; } }
.systems__side p { color: var(--muted); margin: 0 0 18px; max-width: 44ch; }
.counter { font: 400 15px var(--f-display); letter-spacing: .06em; color: var(--muted); }
.counter__cur { color: var(--steel); font-size: 26px; }

.carousel { position: relative; }
.systems__track-wrap { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.systems__track-wrap::-webkit-scrollbar { display: none; }
.systems__track-wrap:focus-visible { outline-offset: -2px; }
/* отстъп, така че и първата, и последната карта могат да застанат в центъра */
.systems__track { display: flex; align-items: center; gap: 20px; padding: 36px calc(50vw - min(39vw, 170px)); width: max-content; }
.sys {
  scroll-snap-align: center;
  width: min(78vw, 340px); min-height: 420px; flex: none;
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; cursor: pointer;
  /* картите във фона: по-малки и приглушени */
  transform: scale(.9); opacity: .45; filter: saturate(.5);
  transition: transform .3s var(--ease), opacity .3s var(--ease), filter .3s, border-color .3s, box-shadow .3s;
}
/* картата на фокус: приближена и на преден план */
.sys.is-active {
  transform: scale(1.06); opacity: 1; filter: none; cursor: default;
  border-color: var(--gold); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); position: relative; z-index: 1;
}
.sys:not(.is-active):hover { opacity: .7; }
.sys__n {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px 5px; border-radius: 4px;
  font: 500 12px/1 var(--f-display); letter-spacing: .04em; color: rgba(243, 239, 230, .7);
  background: rgba(10, 15, 26, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sys__n b { font-weight: 600; font-size: 15px; color: var(--gold-hi); }
.sys.is-active .sys__n { background: var(--gold); color: rgba(24, 33, 47, .7); }
.sys.is-active .sys__n b { color: #18212F; }
.sys__img { position: relative; height: 210px; margin: -28px -28px 24px; overflow: hidden; background: var(--bg-2); }
.sys__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sys:hover .sys__img img { transform: scale(1.05); }
.sys h3 { margin: 0 0 12px; }
.sys p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

/* Стрелките стоят в двата края на лентата */
.carousel__btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: opacity .25s, background-color .25s, border-color .25s;
}
.carousel__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn:hover:not(:disabled) { border-color: var(--text); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: clamp(8px, 2vw, 28px); }
.carousel__btn--next { right: clamp(8px, 2vw, 28px); }
@media (hover: none) and (max-width: 700px) { .carousel__btn { display: none; } }

.systems__progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.systems__progress span { display: block; height: 100%; width: 100%; background: var(--steel); transform-origin: left; transform: scaleX(.11); transition: transform .4s var(--ease); }

/* ============ Сцени ============ */
.scenes__text .muted { margin: 22px 0 30px; max-width: 44ch; }
.scene-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line);
  background: transparent; font-weight: 600; font-size: 14px; transition: all .35s var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: transparent; }
.dimmer { display: grid; gap: 10px; margin-bottom: 22px; max-width: 420px; font-size: 14px; font-weight: 600; }
.dimmer span { display: flex; justify-content: space-between; }
.dimmer output { color: var(--accent); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #D9BE6E; cursor: grab; }

.room-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #05080F; }
/* ============ Процес ============ */
.process__grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .process__grid { grid-template-columns: 1fr 1.1fr; gap: 96px; }
  .process__intro { position: sticky; top: 140px; align-self: start; }
}
.process__intro .small { margin-top: 28px; max-width: 40ch; }
.steps { list-style: none; margin: 0; padding: 0 0 0 46px; position: relative; display: grid; gap: 64px; }
.steps__line { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(var(--gold-hi), var(--gold), var(--gold-lo)); transform-origin: top; transform: scaleY(0); }
html:not(.js-motion) .steps__line span { transform: scaleY(1); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: -44px; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--muted); transition: all .5s var(--ease);
}
.step.is-active::before { background: var(--gold-hi); border-color: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 16%, transparent); }
.step__n { font: 500 13px var(--f-display); color: var(--steel); letter-spacing: .06em; }
.step h3 { margin: 10px 0 12px; }
.step p { color: var(--muted); margin: 0; max-width: 52ch; }

/* ============ Проекти ============ */
.section-head { display: grid; gap: 24px; margin-bottom: 56px; align-items: end; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.section-head p { margin: 0 0 12px; }
.projects__grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .projects__grid { grid-template-columns: repeat(3, 1fr); } }
.project { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.project:hover { box-shadow: var(--shadow); }
.project__img { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; overflow: hidden; }
.project__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__img img { transform: scale(1.08); }
.project__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,22,.55), transparent 45%); }
.project__img .ph { z-index: 1; }
.project__img .ph { position: absolute; left: 16px; bottom: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(243,236,217,.6); }
.project__body { padding: 24px 26px 28px; }
.project__body .small { margin: 6px 0 16px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 4px; background: color-mix(in srgb, var(--steel) 10%, transparent); color: var(--steel); }

/* ============ Поддръжка (винаги тъмен блок) ============ */
.support { position: relative; padding: clamp(90px, 12vw, 160px) 0; background: var(--navy-deep); color: #EFE8D8; overflow: hidden; }
.support .eyebrow { color: var(--gold-hi); }
.support .section-head p { color: rgba(239,232,216,.75); }
.support__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); }
.support::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-deep), rgba(24,34,53,.6) 40%, var(--navy-deep)); }
.support > .wrap { position: relative; }
.tiers { display: grid; gap: 20px; position: relative; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.tier {
  --glow: rgba(242, 210, 130, .14);
  border-radius: var(--radius); padding: 36px 32px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(242,229,154,.14); transition: transform .6s var(--ease), border-color .5s;
}
.tier:hover { border-color: rgba(242,229,154,.4); }
.tier--feat { background: rgba(255,255,255,.05); border-color: var(--gold); }
.tier__name { font: 400 14px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 18px; }
.tier__price { font: 300 clamp(36px, 3.6vw, 48px)/1 var(--f-display); margin: 0 0 28px; }
.tier__price small { font: 400 14px var(--f-body); color: rgba(239,232,216,.6); margin-left: 6px; }
.tier ul { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid rgba(242,229,154,.14); display: grid; gap: 14px; font-size: 15px; color: rgba(239,232,216,.8); }
.tier li { padding-left: 26px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.tier-table { margin-top: 48px; overflow-x: auto; }
.tier-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.tier-table th, .tier-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(242,229,154,.12); }
.tier-table th { font-weight: 600; color: var(--gold-hi); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.tier-table td:first-child { color: rgba(239,232,216,.75); width: 40%; }
.tier-table p { color: rgba(239,232,216,.6); margin-top: 20px; }

/* ============ Отзиви ============ */
.reviews__grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 860px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 34px; border-radius: var(--radius); border: 1px dashed var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 260px; }
.review blockquote { margin: 0; font: 300 19px/1.5 var(--f-display); color: var(--muted); }
.review figcaption { display: grid; gap: 4px; font-size: 14px; }
.review figcaption span { color: var(--muted); }

/* ============ Партньори ============ */
.partners { padding: clamp(64px, 8vw, 104px) 0; }
.partners + .faq { padding-top: clamp(32px, 4vw, 56px); }
.partners__head { display: grid; gap: 24px; margin-bottom: 40px; align-items: end; }
@media (min-width: 900px) { .partners__head { grid-template-columns: 1fr 1fr; gap: 64px; } }
.partners__head p { margin: 0; max-width: 52ch; }
.partners__head .eyebrow { margin-bottom: 14px; }
.partners__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 860px) { .partners__grid { grid-template-columns: repeat(4, 1fr); } }
.partners__grid li { display: grid; gap: 6px; padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .partners__grid li + li { padding-left: 24px; border-left: 1px solid var(--line); } .partners__grid li:nth-child(4n+1) { padding-left: 0; border-left: 0; } }
.partners__grid strong { font: 500 26px/1.1 var(--f-display); letter-spacing: -.02em; }
.partners__grid span { font-size: 14px; color: var(--muted); }

/* ============ Въпроси ============ */
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } .faq__grid > div:first-child { position: sticky; top: 140px; align-self: start; } }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; font: 400 clamp(17px, 1.6vw, 20px)/1.35 var(--f-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa__ico { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), border-color .3s; }
.qa__ico::before, .qa__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--accent); transform: translate(-50%, -50%); }
.qa__ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.qa[open] .qa__ico { transform: rotate(180deg); border-color: var(--gold); }
.qa[open] .qa__ico::after { transform: translate(-50%, -50%) rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0 0 26px; color: var(--muted); max-width: 62ch; }

/* ============ Контакт и форма ============ */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: .9fr 1.2fr; gap: 80px; } .contact__intro { position: sticky; top: 120px; align-self: start; } }
.contact__intro > p:not(.eyebrow) { margin: 24px 0 36px; color: var(--muted); max-width: 46ch; }
.contact__info { display: grid; gap: 18px; margin: 0 0 30px; }
.contact__info div { display: grid; gap: 2px; }
.contact__info dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.contact__info dd { margin: 0; font-size: 17px; }
.contact__info a:hover { color: var(--accent); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: color-mix(in srgb, var(--gold) 22%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 8px; padding: 5px; margin-bottom: 32px; }
.tab { position: relative; z-index: 1; min-height: 44px; line-height: 1.15; padding: 4px 8px; border: 0; background: none; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--text); transition: color .4s; }
.tab.is-active { color: #18212F; }
.tabs__ink { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 6px; background: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .45s var(--ease); }
.tabs.is-second .tabs__ink { transform: translateX(100%); }

.form { display: grid; gap: 20px; }
.row { display: grid; gap: 20px; }
@media (min-width: 620px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: 500 16px var(--f-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.field.is-invalid input { border-color: #D0614E; box-shadow: 0 0 0 4px rgba(208,97,78,.15); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: all .3s var(--ease); }
.pills input:checked + span { background: color-mix(in srgb, var(--gold) 20%, transparent); border-color: var(--gold); color: var(--text); }
.pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pills label:hover span { border-color: var(--gold); }
.form__error { margin: 0; color: #D0614E; font-weight: 600; font-size: 14px; }
.form__success { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 6px; }
.form__success svg { width: 76px; height: 76px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.form__success svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: tick .8s .2s var(--ease) forwards; }
.form__success .link-arrow { margin-top: 18px; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* ============ Футър ============ */
.footer { background: var(--navy-deep); color: #E8E4DA; padding: 88px 0 32px; }
.footer__grid { display: grid; gap: 48px 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr .8fr 1fr 1.1fr; } }
.footer__brand p { color: rgba(232,228,218,.6); font-size: 15px; max-width: 30ch; margin: 22px 0 0; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; color: rgba(232,228,218,.8); }
.footer__col a:hover { color: var(--gold-hi); }
.footer__col address { font-style: normal; line-height: 1.5; }
.footer__h { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #8EA8C2; margin: 0 0 10px; }
.footer__cta .footer__h { font: 500 20px/1.3 var(--f-display); letter-spacing: -.01em; text-transform: none; color: #F3EFE6; max-width: 16ch; }
.footer__cta p { margin: 0 0 12px; color: rgba(232,228,218,.6); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13px; color: rgba(232,228,218,.5); }
.footer__bottom p { margin: 0; }

/* ============ Без движение ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Вътрешни страници
   ===================================================================== */

/* Падащо меню „Системи“ */
.nav__drop { position: relative; }
.nav__drop > a::before { content: ""; position: absolute; inset: -14px -10px -30px; }
.drop {
  position: absolute; top: calc(100% + 22px); left: 50%; width: 560px; padding: 14px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--text);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav__drop:hover .drop, .nav__drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; opacity: 1 !important; white-space: normal; }
.drop a::after { display: none; }
.drop a:hover, .drop a[aria-current="page"] { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.drop svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav__links > a[aria-current="page"], .nav__drop > a[aria-current="page"] { opacity: 1; }
.nav__links > a[aria-current="page"]::after, .nav__drop > a[aria-current="page"]::after { transform: scaleX(1); }

.mobile-menu { overflow-y: auto; justify-content: flex-start; }
.mobile-menu__sys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font: 500 14px/1.3 var(--f-body); margin: -8px 0 6px; color: var(--muted); }

/* Хиро на вътрешна страница: винаги тъмно, като нощ */
.page-hero {
  position: relative; overflow: hidden; color: #F3ECD9;
  min-height: 88vh; min-height: 88svh; display: flex; align-items: center;
  padding: 140px 0 90px;
  background:
    radial-gradient(60% 70% at 78% 60%, rgba(242, 200, 120, .16), transparent 70%),
    linear-gradient(180deg, #070C17, #121B2E 60%, #1B2740);
}
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }

.page-hero .eyebrow { color: var(--gold-hi); }
.page-hero h1 { font: 400 clamp(34px, 5vw, 64px)/1.06 var(--f-display); margin: 0; letter-spacing: -.03em; max-width: 18ch; }
.page-hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: rgba(243,236,217,.8); max-width: 56ch; margin: 26px 0 34px; }
.page-hero .btn--ghost { color: #F3ECD9; border-color: rgba(242,229,154,.35); background: rgba(15,22,36,.35); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(243,236,217,.55); margin-bottom: 28px; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span[aria-hidden] { opacity: .5; }
/* Текстови секции: заглавие вляво, текст вдясно */
.split { display: grid; gap: 28px; }
@media (min-width: 960px) { .split { grid-template-columns: .9fr 1.1fr; gap: 80px; } .split > :first-child { position: sticky; top: 120px; align-self: start; } }
.prose p { margin: 0 0 1.1em; color: var(--muted); font-size: 18px; max-width: 62ch; }
.prose .lead { color: var(--text); font: 300 clamp(20px, 1.9vw, 26px)/1.45 var(--f-display); }
.prose strong { color: var(--text); font-weight: 600; }
.section--alt { background: var(--bg-2); }
.inner .section + .section:not(.section--alt):not(.contact) { padding-top: 0; }

/* „Какво включва“ */
.features { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s;
}
.feature:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.feature__n { font: 500 13px var(--f-display); color: var(--steel); padding-top: 3px; min-width: 22px; }
.feature p { margin: 0; font-weight: 500; }

/* Голям цитат */
.quote { margin: 0; padding: clamp(40px, 7vw, 90px) 0; text-align: center; border-block: 1px solid var(--line); }
.quote p { font: 300 clamp(24px, 3.4vw, 44px)/1.3 var(--f-display); margin: 0 auto; max-width: 24ch; }
.quote p::before, .quote p::after { color: var(--accent); }
.quote p::before { content: "„"; } .quote p::after { content: "“"; }

/* Числа (За нас, Отопление) */
.facts { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.fact .stat__num { font-size: clamp(32px, 3.6vw, 48px); }

/* Таблици (светли и тъмни) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 40px; }
.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table thead th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 600; background: color-mix(in srgb, var(--steel) 8%, transparent); }
.table td:first-child { color: var(--muted); width: 44%; }
.table td.yes { color: var(--accent); font-weight: 600; }
.table td.no { color: var(--muted); opacity: .6; }
.table tr { transition: background-color .3s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 80ch; }
.support .table-wrap { background: rgba(255,255,255,.03); border-color: rgba(242,229,154,.14); }
.support .table th, .support .table td { border-color: rgba(242,229,154,.12); }
.support .table td:first-child, .support .note { color: rgba(239,232,216,.7); }
.support .table td.yes, .support .table thead th { color: var(--gold-hi); }

/* Чеклист „Познато ли ви е“ */
.checklist { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 860px) { .checklist { grid-template-columns: 1fr 1fr; } }
.check { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .3s, background-color .3s; }
.check input { position: absolute; opacity: 0; }
.check__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--muted); display: grid; place-items: center; transition: all .3s var(--ease); margin-top: 1px; }
.check__box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #1B2537; border-bottom: 2px solid #1B2537; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .3s var(--ease); }
.check input:checked ~ .check__box { background: var(--gold-grad); border-color: transparent; }
.check input:checked ~ .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:checked ~ span:last-child { color: var(--text); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check:has(input:checked) { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.check > span:last-child { color: var(--muted); font-weight: 500; }
.checklist__meta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 26px; }
.checklist__score { font: 300 18px var(--f-display); color: var(--muted); }
.checklist__count { color: var(--accent); font-size: 30px; }
.checklist__verdict {
  padding: 16px 22px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); font-weight: 600;
  transition: all .5s var(--ease);
}
.checklist__verdict.is-on { border-style: solid; border-color: var(--gold); color: var(--text); background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* Списък с отметки */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 18px 20px 18px 54px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 22px; top: 23px; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

/* Процеси (За нас) */
.pillars { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.pillar:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pillar svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.pillar h3 { margin: 0 0 10px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* Хронология */
.timeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { position: relative; padding: 36px 28px 0 0; border-top: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 16%, transparent); }
.timeline__y { font: 300 clamp(30px, 3vw, 42px)/1 var(--f-display); color: var(--accent); }
.timeline p { color: var(--muted); margin: 14px 0 32px; max-width: 34ch; }

/* Екип */
.team { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, 1fr); } }
.person { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.person__img { aspect-ratio: 4 / 4.4; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 100%, rgba(201,154,94,.55), transparent 70%), linear-gradient(#1A2640, #2D3A58); position: relative; }
.person__img svg { width: 34%; height: 34%; fill: none; stroke: rgba(242,229,154,.5); stroke-width: 1.2; }
.person__img .ph { position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(243,236,217,.55); }
.person__body { padding: 22px 24px 26px; }
.person__role { font-size: 13px; color: var(--accent); font-weight: 600; margin: 4px 0 12px; }
.person__body p:last-child { margin: 0; font-size: 15px; color: var(--muted); }

/* Къде сме */
.place { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 900px) { .place { grid-template-columns: 1fr 1.2fr; } }
.place__card { padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.place__map { min-height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #141D2F; }
.place__map svg { width: 100%; height: 100%; }

/* Другите системи */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 40px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; transition: transform .4s var(--ease), border-color .4s; }
.related a:hover { border-color: var(--gold); }
.related svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* Голяма фонова снимка във вътрешното хиро */
.page-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,12,23,.92) 0%, rgba(7,12,23,.7) 45%, rgba(7,12,23,.35) 100%),
              linear-gradient(0deg, rgba(7,12,23,.6), transparent 40%);
}
.page-hero:has(.page-hero__bg)::after { display: none; }

/* Широка лента със снимка и цитат */
.band { position: relative; overflow: hidden; color: #F3ECD9; min-height: 70vh; display: grid; place-items: center; padding: 120px 16px; }
.band__bg { position: absolute; inset: -12% 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 80% at 50% 50%, rgba(7,12,23,.45), rgba(7,12,23,.85)); }
.band .quote { position: relative; z-index: 2; border: 0; padding: 0; }
.band .quote p { text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.band .quote p::before, .band .quote p::after { color: var(--gold-hi); }
@media (max-width: 959px) {
  .page-hero__bg::after { background: linear-gradient(180deg, rgba(7,12,23,.7), rgba(7,12,23,.86) 55%, rgba(7,12,23,.92)); }
}

/* Текстова секция като банер: снимка на жилище, тъмен воал, светъл текст (и в двете теми) */
.has-bg {
  --text: #F3EFE6; --muted: rgba(243, 239, 230, .74); --line: rgba(255, 255, 255, .16);
  --surface: rgba(255, 255, 255, .06); --bg: #0E141D; --bg-2: #0E141D;
  --accent: #D6B86E; --steel: #A9C0D6;
  position: relative; isolation: isolate; overflow: hidden; color: var(--text); background: #0E141D;
}
.section__bg { position: absolute; inset: -10% 0; z-index: -2; }
.section__bg img { width: 100%; height: 100%; object-fit: cover; }
.has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 12, 22, .86) 0%, rgba(8, 12, 22, .68) 55%, rgba(8, 12, 22, .5) 100%);
}
.has-bg .eyebrow { color: var(--gold-hi); }
.has-bg + .section, .section + .has-bg { padding-top: clamp(80px, 12vw, 160px) !important; }
.has-bg.stats { padding: 72px 0; border: 0; }

/* Снимка зад заглавието на секции с карти (head-bg) и зад текстовата колона (side-bg).
   Снимката избледнява към картите/формата, които остават на чист фон. */
.head-bg, .side-bg { position: relative; isolation: isolate; }
.head-bg > .section__bg, .side-bg > .section__bg { z-index: -1; }
.head-bg > .section__bg::after, .side-bg > .section__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 22, .86), rgba(8, 12, 22, .62));
}
.head-bg > .section__bg {
  inset: 0 0 auto 0; height: var(--hb, 560px);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 180px), transparent);
          mask-image: linear-gradient(180deg, #000 calc(100% - 180px), transparent);
}
.side-bg > .section__bg {
  inset: 0 auto 0 0; width: 64%;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent);
          mask-image: linear-gradient(90deg, #000 58%, transparent);
}
@media (max-width: 999px) {
  .side-bg > .section__bg {
    width: 100%; inset: 0 0 auto 0; height: var(--hb, 70%);
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 160px), transparent);
            mask-image: linear-gradient(180deg, #000 calc(100% - 160px), transparent);
  }
}
/* Текстът върху снимката е светъл и в двете теми */
.head-bg > .wrap > :is(.eyebrow, .h2, .h3, .section-head),
.head-bg .systems__head,
.side-bg :is(.contact__intro, .scenes__text) {
  --text: #F3EFE6; --muted: rgba(243, 239, 230, .76); --line: rgba(255, 255, 255, .2);
  --steel: #A9C0D6; --accent: #D6B86E; --bg: #0E141D;
  color: var(--text);
}
.head-bg > .wrap > .eyebrow, .head-bg .section-head .eyebrow, .head-bg .systems__head .eyebrow,
.side-bg .contact__intro .eyebrow, .side-bg .scenes__text .eyebrow { color: var(--gold-hi); }

/* ============ Декорация на празните фонове: снопове светлина ============ */
:root { --beam: rgba(194, 161, 90, .12); }
:root[data-theme="dark"] { --beam: rgba(214, 184, 110, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --beam: rgba(214, 184, 110, .18); } }

.section:not(.has-bg), .systems { position: relative; isolation: isolate; overflow: clip; }

/* снопове светлина отгоре, като от висящи лампи */
.section:not(.has-bg)::before, .systems::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 85%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(220px 100% at 16% 0%, var(--beam), transparent 70%),
    radial-gradient(300px 90% at 44% 0%, var(--beam), transparent 68%),
    radial-gradient(180px 80% at 66% 0%, var(--beam), transparent 70%),
    radial-gradient(260px 95% at 88% 0%, var(--beam), transparent 70%);
  filter: blur(28px);
  animation: beams 9s ease-in-out infinite alternate;
}
@keyframes beams { from { opacity: .55; } to { opacity: 1; } }

/* в секциите със снимка зад текста украсата стои под картите/формата */
.side-bg::before { left: 40%; }

/* ============ Сцени: визуализацията на почти цял екран, контролите в панел отстрани ============ */
.scenes {
  position: relative; overflow: hidden; background: #05080F;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
}
.scenes .room-wrap { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; }
.scenes .room { aspect-ratio: auto; height: 100%; }
.scenes .room::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(270deg, rgba(5, 8, 15, .7), rgba(5, 8, 15, 0) 50%);
}
.scenes .room__panel { left: clamp(16px, 4vw, 56px); bottom: clamp(16px, 4vw, 56px); z-index: 2; }
.scenes__layout { position: relative; z-index: 2; padding: 110px 0 64px; display: flex; justify-content: flex-end; }
.scenes__panel {
  --text: #F3EFE6; --muted: rgba(243, 239, 230, .76); --line: rgba(255, 255, 255, .22);
  --accent: #D6B86E; --bg: #0E141D;
  width: min(430px, 100%); padding: clamp(24px, 3vw, 36px); color: var(--text);
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 15, 26, .6);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.scenes__panel .eyebrow { color: var(--gold-hi); }
.scenes__panel .h2 { font-size: clamp(26px, 2.6vw, 34px); }
.scenes__panel .muted { margin: 12px 0 18px; font-size: 14px; }
.scenes__panel .scene-btns { margin-bottom: 20px; }
.scenes__panel .chip { height: 36px; padding: 0 12px; font-size: 13px; }
.scenes__panel .dimmer:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .scenes { align-items: flex-end; }
  .scenes__layout { padding: 96px 0 24px; }
  .scenes .room__panel { top: 88px; bottom: auto; }
}

/* Малко разстояние с фон между хирото и лентата с числата */
.hero + .stats { margin-top: clamp(32px, 4vw, 56px); }

/* ============ Стаята: истински лампа, LED и телевизор ============ */
.room { position: relative; overflow: hidden; background: #05080F; --main: 0; --reading: 0; --cinema: 0; --accent: 0; --night: 0; --tv: 0; --all: 0; }
.room__stage { position: absolute; left: 0; top: 0; }
.room__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* изключено: стаята в тъмно */
.room__base { filter: brightness(.16) saturate(.55) contrast(1.05); }
.room__lit { opacity: 0; transition: opacity .9s var(--ease), filter .9s; }
/* светлината от лампата се разлива в стаята около нея */
.room__lit--lamp {
  opacity: var(--main);
  -webkit-mask-image: radial-gradient(60% 75% at 47% 18%, #000 0%, rgba(0,0,0,.75) 35%, transparent 75%);
          mask-image: radial-gradient(60% 75% at 47% 18%, #000 0%, rgba(0,0,0,.75) 35%, transparent 75%);
}
/* самата лампа свети */
.room__lit--ring {
  opacity: var(--main); filter: brightness(1.9) contrast(1.15) sepia(.35);
  -webkit-mask-image: radial-gradient(17% 8% at 48.5% 15%, #000 55%, transparent 100%);
          mask-image: radial-gradient(17% 8% at 48.5% 15%, #000 55%, transparent 100%);
}
/* LED в рафтовете и процепа в тавана */
.room__lit--led {
  opacity: var(--accent); filter: brightness(1.35) sepia(.4);
  -webkit-mask-image: linear-gradient(90deg, transparent 53.5%, #000 55.5%, #000 62.8%, transparent 65%), radial-gradient(10% 4% at 47% 2%, #000, transparent);
          mask-image: linear-gradient(90deg, transparent 53.5%, #000 55.5%, #000 62.8%, transparent 65%), radial-gradient(10% 4% at 47% 2%, #000, transparent);
}
.room__lit--all { opacity: var(--all); }
.room__glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  opacity: var(--main); transition: opacity .9s var(--ease);
  background: radial-gradient(22% 14% at 48.5% 15%, var(--lc, rgba(255, 200, 130, .5)), transparent 70%),
              radial-gradient(45% 55% at 47% 30%, var(--lc, rgba(255, 200, 130, .5)), transparent 75%);
}
/* телевизорът: екранът светва с картина */
.room__tv {
  position: absolute; left: 20.2%; top: 29.3%; width: 33.4%; height: 23.6%;
  overflow: hidden; background: #000; opacity: var(--tv);
  transition: opacity .5s ease, box-shadow .5s;
  box-shadow: 0 0 calc(var(--tv) * 60px) calc(var(--tv) * 8px) rgba(110, 160, 255, .35);
}
.room__tv img { width: 100%; height: 100%; object-fit: cover; animation: tv 14s ease-in-out infinite alternate; }
@keyframes tv { from { transform: scale(1.05) translateX(-2%); filter: brightness(1.05); } to { transform: scale(1.12) translateX(2%); filter: brightness(.9); } }
.room__tv-spill {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: var(--tv);
  transition: opacity .6s ease;
  background: radial-gradient(35% 45% at 37% 55%, rgba(110, 150, 255, .28), transparent 70%);
}

/* нивата на осветлението */
.toggles__title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 20px; }
.toggle {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 6px;
  border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 13px; font-weight: 500; text-align: left;
}
.toggle__n { flex: none; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .1); }
.toggle__sw { margin-left: auto; flex: none; width: 28px; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .18); position: relative; transition: background-color .3s; }
.toggle__sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #F3EFE6; transition: transform .3s var(--ease); }
.toggle[aria-pressed="true"] { border-color: var(--gold); }
.toggle[aria-pressed="true"] .toggle__n { background: var(--gold); color: #18212F; }
.toggle[aria-pressed="true"] .toggle__sw { background: var(--gold); }
.toggle[aria-pressed="true"] .toggle__sw::after { transform: translateX(12px); }

/* 2. Четене: лампион */
.floor-lamp { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.floor-lamp__arm { fill: none; stroke: #151517; stroke-width: .45; stroke-linecap: round; }
.floor-lamp__bulb { fill: #FFE2B0; opacity: calc(.15 + var(--reading) * .85); transition: opacity .8s; filter: drop-shadow(0 0 6px rgba(255, 200, 120, .9)); }
.floor-lamp__cone { opacity: var(--reading); transition: opacity .8s; mix-blend-mode: screen; }
.room__lit--reading {
  opacity: var(--reading);
  -webkit-mask-image: radial-gradient(26% 30% at 16% 74%, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
          mask-image: radial-gradient(26% 30% at 16% 74%, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
}
/* 3. Кино: подсветка зад телевизора */
.light-bias {
  position: absolute; left: 20.2%; top: 29.3%; width: 33.4%; height: 23.6%;
  opacity: var(--cinema); transition: opacity .8s;
  box-shadow: 0 0 60px 26px rgba(120, 140, 255, .55), 0 0 140px 50px rgba(90, 110, 255, .25);
}
/* 5. Нощно: LED под висящия шкаф */
.light-night {
  position: absolute; left: 10.5%; top: 71.6%; width: 51.5%; height: 12%;
  opacity: var(--night); transition: opacity .8s; mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 200, 140, .75) 0%, rgba(255, 190, 120, .25) 25%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* номерата на нивата в стаята */
.marker {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; padding: 0; height: 28px; border: 0; background: none; color: #F3EFE6;
}
.marker b {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: rgba(10, 15, 26, .65); border: 1px solid rgba(255, 255, 255, .45);
  transition: background-color .3s, border-color .3s, color .3s;
}
.marker span {
  max-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 0; margin-left: 6px; border-radius: 4px; background: rgba(10, 15, 26, .65);
  transition: max-width .5s var(--ease), padding .5s;
}
.marker.is-on b { background: var(--gold); border-color: var(--gold); color: #18212F; }
.marker.is-on span, .marker:hover span { max-width: 120px; padding: 4px 8px; }
@media (max-width: 760px) { .marker span { display: none; } }
/* етикетът отива наляво, за да не влиза под панела */
.marker--left { flex-direction: row-reverse; }
.marker--left span { margin: 0 6px 0 0; }
/* точката стои на мястото на светлината, а етикетът се разгъва встрани от нея */
.marker { transform: translate(-14px, -50%); }
.marker--left { transform: translate(calc(-100% + 14px), -50%); }

/* ============ Съгласие във формата ============ */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid { color: #D0614E; }
.consent.is-invalid input { outline: 2px solid #D0614E; outline-offset: 2px; }

/* ============ Страница „Системи“ ============ */
.syscards { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 700px) { .syscards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .syscards { grid-template-columns: repeat(3, 1fr); } }
.syscard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.syscard:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.syscard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.syscard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.syscard:hover .syscard__img img { transform: scale(1.05); }
.syscard__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.syscard__n { font: 500 13px var(--f-display); color: var(--steel); }
.syscard h2 { margin: 0; }
.syscard p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

/* ============ Правни страници ============ */
.legal__wrap { max-width: 860px; }
.legal__text h2 { margin: 40px 0 12px; }
.legal__text h2:first-child { margin-top: 8px; }
.legal__text p { font-size: 16px; }
.legal__text .table { min-width: 0; margin: 8px 0 16px; font-size: 14px; }
.legal .note { margin: 0 0 24px; }
.systems__nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.systems__all { margin-top: 0; }

/* Лентата с числата: само синьо, без снимка */
.has-bg.stats { background: var(--navy); }
.has-bg.stats::before { display: none; }

/* „Без стопанин“: бутон към формата */
.checklist__verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; cursor: pointer; transition: all .3s var(--ease); }
.checklist__cta { color: var(--accent); white-space: nowrap; }
.checklist__cta span { display: inline-block; transition: transform .3s var(--ease); }
.checklist__verdict:hover { border-style: solid; border-color: var(--gold); color: var(--text); }
.checklist__verdict:hover .checklist__cta span { transform: translateX(5px); }
.checklist__verdict.is-on .checklist__cta { color: #18212F; background: var(--gold); padding: 6px 12px; border-radius: 4px; }

/* Секции със снимка зад заглавието винаги имат отстъп отгоре, иначе заглавието опира в ръба на снимката */
.inner .section.head-bg, .inner .section.side-bg { padding-top: clamp(80px, 12vw, 160px) !important; }

/* Формата: снимката е на цялата ширина под тъмен воал, без бяла мъгла към формата в светлата тема */
.side-bg { background: #0E141D; }
.side-bg > .section__bg,
.side-bg > .section__bg { inset: 0; width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
.side-bg > .section__bg::after { background: linear-gradient(90deg, rgba(8, 12, 22, .86), rgba(8, 12, 22, .72)); }
.side-bg::before { display: none; }

/* ============ Хиро: една къща, нощта е изградена върху дневната снимка ============ */
/* сцената покрива екрана със съотношението на снимката, за да стоят прозорците точно */
.hero__scene {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100vw, 141.4vh); height: max(100vh, 70.71vw);
}
.hero__scene .hero__photo { object-position: 50% 50%; }

/* по-малко празно място след проектите и поддръжката */
.section.projects { padding-bottom: clamp(56px, 7vw, 96px); }
.support { padding-bottom: clamp(56px, 7vw, 96px); }
/* снимката зад заглавието на системите е с тъмна рамка по краищата: изрязваме я */
.systems.head-bg > .section__bg { overflow: hidden; }
.systems.head-bg > .section__bg img { transform: scale(1.08); }

/* по-малко празно място под текста в хирото на вътрешните страници */
.page-hero { min-height: 70vh; min-height: 70svh; padding-bottom: 72px; }
/* правните страници нямат снимка и бутон: хирото е колкото текста */
.page-hero:not(:has(.page-hero__bg)) { min-height: 0; padding: 150px 0 64px; }
.page-hero + .legal { padding-top: clamp(40px, 5vw, 64px) !important; }

/* правните връзки са в долния ред на футъра */
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.1fr; } }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__legal a { color: rgba(232,228,218,.6); }
.footer__legal a:hover { color: var(--gold-hi); }

/* стрелка към началото на страницата */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #18212F; box-shadow: 0 10px 30px rgba(8, 12, 22, .35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s, background-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-hi); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inner .page-hero + .section.side-bg { padding-top: clamp(64px, 7vw, 96px) !important; }

/* На телефон: стаята отгоре, панелът с контролите под нея (да не я закрива) */
@media (max-width: 760px) {
  .scenes { display: block; min-height: 0; }
  .scenes .room-wrap { position: relative; inset: auto; }
  .scenes .room { aspect-ratio: 1400 / 1120; height: auto; }
  .scenes .room::after { display: none; }
  .scenes .room__panel { top: auto; bottom: 12px; left: 12px; }
  .scenes__layout { padding: 20px 0 48px; }
  .scenes__panel { width: 100%; }
}

/* Вторичният бутон в хирото: тъмен матиран фон, за да се чете върху осветената фасада */
.hero .btn--ghost {
  background: rgba(12, 18, 30, .62); border-color: rgba(255, 255, 255, .45); color: #F3EFE6;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.hero .btn--ghost:hover { background: rgba(12, 18, 30, .78); border-color: #fff; }

/* Истинска карта (Google Maps) в „Къде сме“ */
.place__map { position: relative; display: flex; }
.place__map iframe { flex: 1; width: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }
.place__maplink {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(12, 18, 30, .85); color: #F3EFE6; border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.place__maplink:hover { border-color: var(--gold); color: var(--gold-hi); }

/* долният ред на футъра не се скрива под бутона „нагоре“ */
@media (min-width: 761px) { .footer__bottom { padding-right: 84px; } }
.note--wide { max-width: none; }

/* Надписите и картите в хирото са декорация, която се появява при скрол.
   Докато са прозрачни, не трябва да хващат кликовете върху бутоните (iPad Pro и широки екрани). */
.hero__caption, .hero-cards, .hero-card { pointer-events: none; }

/* Safari (iPad): снимките в хирото са само фон и никога не хващат кликове;
   текстът и бутоните са в отделен слой най-отгоре. */
.hero__photos, .hero__photos *, .hero__dusk, .hero__scene { pointer-events: none; }
.hero__copy { -webkit-transform: translateZ(0); transform: translateZ(0); }
.hero__btns .btn { position: relative; z-index: 1; }

/* ============ Обекти: карти + галерия ============ */
.project { position: relative; cursor: pointer; display: flex; flex-direction: column; }
.project__body { display: flex; flex-direction: column; flex: 1; }
.project__body .tags { margin-bottom: 20px; }
.project__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.project__count { position: absolute; z-index: 1; right: 14px; top: 14px; font-size: 12px; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; color: #F3ECD9; background: rgba(8, 12, 22, .55); backdrop-filter: blur(6px); }
.project__open { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.project__open::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.project__open:focus-visible { outline: none; }
.project:has(.project__open:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.project:hover .link-arrow span { transform: translateX(6px); }

.pmodal { padding: 0; border: 0; margin: auto; width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 12px; background: var(--surface); color: var(--text); overflow: hidden; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7); }
.pmodal::backdrop { background: rgba(6, 10, 18, .82); backdrop-filter: blur(4px); }
.pmodal[open] { animation: pmodal-in .45s var(--ease); }
@keyframes pmodal-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.pmodal__inner { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.pmodal__close { position: absolute; z-index: 5; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; font: 300 30px/1 var(--f-body); color: #F3ECD9; background: rgba(8, 12, 22, .6); backdrop-filter: blur(6px); cursor: pointer; }
.pmodal__close:hover { background: rgba(8, 12, 22, .85); }

.pgal { position: relative; background: #070B12; }
.pgal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pgal__track::-webkit-scrollbar { display: none; }
.pgal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; height: min(68dvh, 720px); display: grid; place-items: center; }
.pgal__slide img, .pgal__slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.pgal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); color: #F3ECD9; background: rgba(8, 12, 22, .5); backdrop-filter: blur(6px); font: 300 30px/1 var(--f-body); cursor: pointer; transition: background .3s, opacity .3s; }
.pgal__nav:hover { background: rgba(8, 12, 22, .85); }
.pgal__nav:disabled { opacity: 0; pointer-events: none; }
.pgal__nav--prev { left: 16px; }
.pgal__nav--next { right: 16px; }
.pgal__counter { position: absolute; left: 18px; bottom: 14px; margin: 0; font-size: 13px; letter-spacing: .08em; color: rgba(243, 236, 217, .85); }
.pgal--single .pgal__nav, .pgal--single .pgal__counter { display: none; }
.pgal__thumbs { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; background: #070B12; scrollbar-width: thin; }
.pgal__thumbs:empty { display: none; }
.pgal__thumb { flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #111; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; }
.pgal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgal__thumb:hover { opacity: .85; }
.pgal__thumb[aria-selected="true"] { opacity: 1; border-color: var(--gold); }
.pgal__thumb--video { position: relative; }
.pgal__thumb--video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

.pmodal__body { padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 64px) clamp(36px, 5vw, 64px); }
.pmodal__body .h3 { margin: 0 0 20px; }
.project__text { max-width: 680px; }
.project__text p { margin: 0 0 1em; }
.project__spec { max-width: 680px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; letter-spacing: .02em; color: var(--muted); }

@media (max-width: 640px) {
  .pmodal { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .pmodal__inner { max-height: 100dvh; }
  .pgal__slide { height: min(75vw, 56dvh); }
  .pgal__nav { width: 40px; height: 40px; font-size: 26px; }
  .pgal__nav--prev { left: 8px; } .pgal__nav--next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pmodal[open] { animation: none; } }

/* Обекти: цялата снимка се вижда, без движение при посочване */
.project__img { aspect-ratio: 3 / 2; background: #070B12; }
.project__img img, .project__img video { object-fit: contain; object-position: center; }
.project__img::after { content: none; }
.project:hover .project__img img { transform: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Галерия на обект: снимката е винаги цяла и не се мести при скрол.
   Галерията стои неподвижно горе, скролва се само текстът под нея. */
.pmodal__inner { display: flex; flex-direction: column; overflow: hidden; height: calc(100dvh - 32px); }
.pgal, .pgal__thumbs { flex: none; }
.pmodal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pgal__track { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
.pgal__slide { height: min(58dvh, 680px); }
.pgal__slide img, .pgal__slide video { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
@media (max-width: 640px) {
  .pmodal__inner { height: 100dvh; }
  .pgal__slide { height: min(75vw, 46dvh); }
}
.pgal__slide { display: block; position: relative; overflow: hidden; }
.pgal__slide img, .pgal__slide video { position: absolute; inset: 0; }

/* Галерия: смалява се, докато се чете текстът; текстът е на цялата ширина */
.pmodal { --pg-full: min(58dvh, 680px); --pg-min: 140px; --pg-k: 0; }
.pgal__slide { height: calc(var(--pg-full) - (var(--pg-full) - var(--pg-min)) * var(--pg-k)); }
.pgal__thumbs { max-height: calc(80px * (1 - var(--pg-k))); padding-top: calc(12px * (1 - var(--pg-k))); padding-bottom: calc(12px * (1 - var(--pg-k))); opacity: calc(1 - var(--pg-k) * 1.4); overflow-y: hidden; }
.pgal__nav { width: calc(48px - 12px * var(--pg-k)); height: calc(48px - 12px * var(--pg-k)); }
.project__text, .project__spec { max-width: none; }
@media (max-width: 640px) {
  .pmodal { --pg-full: min(75vw, 46dvh); --pg-min: 110px; }
}
.pmodal__body::after { content: ""; display: block; height: var(--pg-pad, 0px); }

/* Галерията стои върху текста и се смалява, без да променя размера на текстовата част (няма подскачане) */
.pmodal__inner { display: block; position: relative; }
.pmodal__media { position: absolute; z-index: 3; top: 0; left: 0; right: 0; background: #070B12; }
.pmodal__body { position: absolute; inset: 0; padding-top: calc(var(--pg-top, 0px) + clamp(28px, 4vw, 56px)); }

/* ============ Видео плейър в ъгъла ============ */
.mini-reel {
  --mr-w: clamp(112px, 10vw, 156px);
  --mr-right: clamp(16px, 2.5vw, 32px);
  position: fixed; z-index: 45; right: var(--mr-right); bottom: calc(clamp(16px, 2.5vw, 32px) + 68px);
  width: var(--mr-w); aspect-ratio: 9 / 16;
  transition: transform .6s var(--ease), opacity .4s, width .5s var(--ease), right .5s var(--ease), bottom .5s var(--ease);
}
.mini-reel__btn { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #070B12; box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); }
.mini-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mini-reel__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 12, 22, .5); backdrop-filter: blur(6px); color: #F3ECD9; transition: transform .3s var(--ease), background .3s; }
.mini-reel__play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.mini-reel__btn:hover .mini-reel__play { transform: scale(1.1); background: var(--gold); color: #18212F; }
.mini-reel__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 9px; font-size: 11px; letter-spacing: .08em; text-align: center; color: #F3ECD9; background: linear-gradient(0deg, rgba(8, 12, 22, .75), transparent); }
.mini-reel__close { position: absolute; z-index: 2; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; font: 400 18px/1 var(--f-body); color: #F3ECD9; background: #18212F; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); cursor: pointer; opacity: 0; transition: opacity .3s; }
.mini-reel:hover .mini-reel__close, .mini-reel:focus-within .mini-reel__close { opacity: 1; }

/* прибран встрани: вижда се само тясна ивица; при посочване излиза */
.mini-reel.is-tucked { transform: translateX(calc(100% + var(--mr-right) - 22px)); opacity: .75; }
.mini-reel.is-tucked .mini-reel__label, .mini-reel.is-tucked .mini-reel__close { opacity: 0; }
.mini-reel.is-tucked:hover, .mini-reel.is-tucked:focus-within, .mini-reel.is-tucked.is-peek { transform: none; opacity: 1; }
.mini-reel.is-tucked:hover .mini-reel__label, .mini-reel.is-tucked.is-peek .mini-reel__label { opacity: 1; }
.mini-reel.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* голям изглед */
.mini-reel-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(6, 10, 18, .85); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.mini-reel-backdrop.is-on { opacity: 1; visibility: visible; }
.mini-reel.is-open { z-index: 95; transform: none; opacity: 1; right: calc(50vw - min(88dvh, 100vw * 16 / 9 - 32px) * 9 / 32); bottom: calc((100dvh - min(88dvh, 100vw * 16 / 9 - 32px)) / 2); width: calc(min(88dvh, 100vw * 16 / 9 - 32px) * 9 / 16); }
.mini-reel.is-open .mini-reel__btn { cursor: default; border-radius: 14px; }
.mini-reel.is-open .mini-reel__video { pointer-events: auto; }
.mini-reel.is-open .mini-reel__play, .mini-reel.is-open .mini-reel__label { display: none; }
.mini-reel.is-open .mini-reel__close { opacity: 1; top: 10px; right: 10px; width: 40px; height: 40px; font-size: 26px; background: rgba(8, 12, 22, .6); }
@media (max-width: 640px) {
  .mini-reel { --mr-w: 96px; }
  .mini-reel.is-open { right: 16px; width: calc(100vw - 32px); bottom: calc((100dvh - (100vw - 32px) * 16 / 9) / 2); }
}
@media (prefers-reduced-motion: reduce) { .mini-reel { transition: opacity .2s; } }
/* невидима зона до ръба на екрана: когато плейърът излезе при посочване, мишката остава върху него */
.mini-reel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: calc(var(--mr-right) + 4px); }
.mini-reel.is-open::after { content: none; }

/* плейър в ъгъла: златна рамка и леко сияние, за да се забелязва */
.mini-reel__btn { box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(194, 161, 90, .22), 0 18px 44px -12px rgba(0, 0, 0, .65); }
.mini-reel:not(.is-open) .mini-reel__btn { animation: mr-glow 2.8s ease-in-out infinite; }
@keyframes mr-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(194, 161, 90, .22), 0 18px 44px -12px rgba(0, 0, 0, .65); }
  50% { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 10px rgba(194, 161, 90, .10), 0 18px 44px -12px rgba(0, 0, 0, .65); }
}
.mini-reel.is-tucked { opacity: 1; }
.mini-reel.is-open .mini-reel__btn { box-shadow: 0 0 0 2px var(--gold), 0 30px 80px -20px rgba(0, 0, 0, .8); }
@media (prefers-reduced-motion: reduce) { .mini-reel .mini-reel__btn { animation: none !important; } }
