/* ==========================================================================
   БИЛДИНГ ЕООД — Стилове
   Vanilla CSS. Без build стъпка. Без зависимости.
   1. Променливи и основи
   2. Типография и помощни класове
   3. Бутони
   4. Хедър и навигация
   5. Херо
   6. Статистики / бягащ ред
   7. Услуги
   8. Процес
   9. Галерия + лайтбокс
  10. Калкулатор
  11. Защо нас / За нас
  12. ЧЗВ
  13. Контакти и форми
  14. Футър, FAB, скрол-нагоре
  15. Анимации и достъпност
   ========================================================================== */

/* 1. Променливи и основи ================================================== */

:root {
  /* Цветове */
  --ink:        var(--v24-ink, #0d1117);
  --ink-2:      var(--v24-ink-2, #151b23);
  --ink-3:      #1e262f;
  --paper:      var(--v24-bg, #f6f4f0);
  --paper-2:    #ece8e1;
  --white:      #ffffff;
  --accent:     var(--v24-accent, #f2a81d);
  --accent-2:   var(--v24-primary, #ffbc3d);
  --accent-ink: var(--v24-on-primary, #17150c);

  --text:        var(--v24-text, #1a1f26);
  --text-muted:  var(--v24-muted, #5b6572);
  --text-invert: #ffffff;
  --text-invert-muted: rgba(255, 255, 255, .68);

  --line:        var(--v24-border, #dedad2);
  --line-dark:   rgba(255, 255, 255, .12);

  /* Типография */
  --font-display: var(--v24-font-head, "Oswald", "Arial Narrow", system-ui, sans-serif);
  --font-body:    var(--v24-font-body, "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);

  /* Ритъм */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 128px);
  --radius: var(--v24-radius, 4px);
  --radius-lg: 8px;

  /* Ефекти */
  --shadow-sm: 0 1px 2px rgba(13, 17, 23, .06), 0 4px 12px rgba(13, 17, 23, .05);
  --shadow-md: 0 8px 24px rgba(13, 17, 23, .10), 0 2px 6px rgba(13, 17, 23, .06);
  --shadow-lg: 0 24px 60px rgba(13, 17, 23, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

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

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

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

/* 2. Типография и помощни класове ========================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section--paper { background: var(--paper); }

.section--dark {
  background: var(--ink);
  color: var(--text-invert);
}

.section--dark p { color: var(--text-invert-muted); }

.section--tight { padding-block: clamp(48px, 5vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section--dark .eyebrow { color: rgba(255, 255, 255, .6); }

/* Върху тъмна снимка сивото се губи — там надсловът е в акцентния цвят */
.hero .eyebrow,
.page-hero .eyebrow,
.calc-section .eyebrow {
  color: var(--accent-2);
  font-weight: 600;
}

.hero .eyebrow::before,
.page-hero .eyebrow::before,
.calc-section .eyebrow::before { background: var(--white); }

.sec-head {
  display: grid;
  gap: clamp(16px, 3vw, 56px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.sec-head h2 { margin-bottom: 0; }

.sec-head__text {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 56ch;
}

.section--dark .sec-head__text { color: var(--text-invert-muted); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

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

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 3. Бутони =============================================================== */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}

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

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

.btn--primary:hover { --btn-bg: var(--accent-2); --btn-bd: var(--accent-2); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-invert);
  --btn-bd: rgba(255, 255, 255, .38);
}

.btn--ghost:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-bd: var(--white);
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bd: var(--ink);
}

.btn--dark:hover { --btn-bg: var(--ink-3); --btn-bd: var(--ink-3); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}

.btn--outline:hover { --btn-bd: var(--ink); }

.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--block { width: 100%; }

.btn .icon { width: 18px; height: 18px; flex: none; }

/* Текстова връзка със стрелка */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: .92rem;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: gap .18s var(--ease), color .18s var(--ease);
}

.link-arrow:hover { gap: 14px; }
.section--dark .link-arrow { color: var(--white); }

/* 4. Хедър и навигация ==================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), height .3s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.site-header.is-solid {
  background: rgba(13, 17, 23, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .22);
}

/* Вътрешни страници: непрозрачен хедър от самото начало */
.site-header--static { background: var(--ink); border-bottom-color: var(--line-dark); }

/* Лого */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--accent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}

/* Навигация — десктоп */
.nav { margin-inline-start: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: .93rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
  transition: color .18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--white); }

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white);
  transition: color .18s var(--ease);
}

.header-phone:hover { color: var(--accent); }
.header-phone .icon { width: 17px; height: 17px; color: var(--accent); }

/* Хамбургер */
.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  flex: none;
}

.burger__box {
  position: relative;
  width: 22px; height: 14px;
}

.burger__box span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--white);
  transition: transform .28s var(--ease), opacity .18s var(--ease), top .28s var(--ease);
}

.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }

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

/* Мобилно меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-menu__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

.mobile-menu__link span {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  color: var(--accent);
}

.mobile-menu__foot {
  display: grid;
  gap: 12px;
}

.mobile-menu__foot .btn { width: 100%; }

@media (max-width: 1023px) {
  .nav,
  .header-phone { display: none; }
  .burger { display: inline-flex; }
}

/* На тесни екрани CTA-то в хедъра отстъпва място на логото и бургера —
   долната плаваща лента поема ролята му. */
@media (max-width: 599px) {
  .header-actions .btn { display: none; }
}

/* 5. Херо ================================================================= */

.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(48px, 7vw, 96px);
  background: var(--ink);
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 22s var(--ease) forwards;
}

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

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13, 17, 23, .93) 0%, rgba(13, 17, 23, .78) 42%, rgba(13, 17, 23, .34) 78%, rgba(13, 17, 23, .5) 100%),
    linear-gradient(to top, rgba(13, 17, 23, .96) 0%, rgba(13, 17, 23, 0) 46%);
}

.hero__inner { position: relative; max-width: 820px; }

.hero__title { margin-bottom: 22px; }

.hero__title .line { display: block; }

.hero__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
  max-width: 60ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

/* На мобилни устройства бутоните в херото заемат цялата ширина */
@media (max-width: 599px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.hero__chips .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Компактно херо за вътрешни страници */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; }

.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 17, 23, .95) 12%, rgba(13, 17, 23, .72) 62%, rgba(13, 17, 23, .55) 100%);
}

.page-hero h1 { margin-bottom: 18px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 62ch; font-size: 1.08rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .3); }
.breadcrumbs [aria-current] { color: var(--accent); }

/* 6. Статистики / бягащ ред =============================================== */

.stats {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  color: var(--text-invert);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 800px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px);
  border-inline-end: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 800px) {
  .stat { border-bottom: 0; }
  .stat:last-child { border-inline-end: 0; }
}

@media (max-width: 799px) {
  .stat:nth-child(2n) { border-inline-end: 0; }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
}

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat__label {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .68);
  line-height: 1.4;
}

/* Бягащ ред */
.marquee {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 15px 0;
  overflow: hidden;
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-inline-end: 40px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__group span::after { content: "◆"; font-size: .55em; opacity: .55; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 7. Услуги =============================================================== */

.svc-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.svc__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.svc:hover .svc__media img { transform: scale(1.06); }

.svc__icon {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.svc__icon svg { width: 26px; height: 26px; }

.svc__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.6vw, 30px);
}

.svc__title { margin-bottom: 12px; }

.svc__text {
  color: var(--text-muted);
  font-size: .97rem;
  margin-bottom: 20px;
}

.svc__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: .92rem;
}

.svc__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.svc__list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: .55em;
  background: var(--accent);
  transform: rotate(45deg);
}

.svc__body .link-arrow { margin-top: auto; align-self: flex-start; }

/* Разгърнати услуги (страница „Услуги“) */
.svc-detail {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.svc-detail:first-of-type { border-top: 0; padding-top: 0; }

@media (min-width: 900px) {
  .svc-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-detail--flip .svc-detail__media { order: 2; }
}

.svc-detail__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}

.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }

.svc-detail__num {
  position: absolute;
  top: 0; left: 0;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.svc-detail h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* На мобилни устройства CTA бутоните на услугите заемат цялата ширина */
@media (max-width: 599px) {
  .svc-detail .btn { width: 100%; }
}

.two-col-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px 24px;
  font-size: .96rem;
}

@media (min-width: 560px) { .two-col-list { grid-template-columns: 1fr 1fr; } }

.two-col-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.two-col-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: .55em;
  background: var(--accent);
  transform: rotate(45deg);
}

/* 8. Процес =============================================================== */

.steps {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--line-dark);
  transition: border-color .3s var(--ease);
}

.section--paper .step { border-top-color: var(--line); }

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

.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

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

.step p { font-size: .96rem; }

/* 9. Галерия + лайтбокс =================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter {
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 700;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.section--dark .filter { border-color: var(--line-dark); color: rgba(255, 255, 255, .7); }

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

.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: 220px;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.tile--tall { grid-row: span 2; }

@media (max-width: 640px) { .tile--tall { grid-row: span 1; } }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .4s var(--ease);
}

.tile:hover img { transform: scale(1.07); }

.tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 20px 18px;
  text-align: left;
  background: linear-gradient(to top, rgba(13, 17, 23, .92), rgba(13, 17, 23, 0));
  color: var(--white);
  transform: translateY(8px);
  opacity: .96;
  transition: transform .3s var(--ease);
}

.tile:hover .tile__overlay { transform: none; }

.tile__cat {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.tile__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
}

.tile.is-hidden { display: none; }

.tile[hidden] { display: none; }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 10, 14, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}

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

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 76svh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin-inline: auto;
}

.lightbox__caption {
  text-align: center;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.lightbox__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.lightbox__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.lightbox__prev { left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.06); }

/* 10. Калкулатор ========================================================== */

.calc-section {
  position: relative;
  background: var(--ink);
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}

.calc-section__bg { position: absolute; inset: 0; z-index: -2; }

.calc-section__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }

.calc-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(13, 17, 23, .97) 30%, rgba(13, 17, 23, .82) 100%);
}

.calc-layout {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 1000px) {
  .calc-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

.calc-intro h2 { margin-bottom: 18px; }

.calc-intro__note {
  margin-top: 26px;
  padding: 18px 20px;
  background: rgba(242, 168, 29, .1);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

.calc-panel {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-panel__body { padding: clamp(22px, 3.4vw, 40px); }

.calc-step + .calc-step { margin-top: 30px; }

.calc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.calc-label__num {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 800;
  flex: none;
}

/* Радио „чипове“ */
.chip-group {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s var(--ease);
}

.chip__box strong { font-size: .95rem; font-weight: 800; line-height: 1.25; }
.chip__box small { font-size: .78rem; color: var(--text-muted); line-height: 1.35; }

.chip input:hover + .chip__box { background: var(--paper-2); }

.chip input:checked + .chip__box {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.chip input:checked + .chip__box small { color: rgba(255, 255, 255, .68); }

.chip input:focus-visible + .chip__box { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Плъзгач за площ */
.area-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.area-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  flex: none;
}

.area-input input {
  width: 76px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: right;
  -moz-appearance: textfield;
}

.area-input input::-webkit-outer-spin-button,
.area-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.area-input input:focus { outline: none; }
.area-input:focus-within { border-color: var(--accent); }
.area-input span { font-weight: 700; color: var(--text-muted); }

.range {
  flex: 1 1 220px;
  min-width: 180px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--paper-2);
  border-radius: 100px;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  background: var(--accent);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: grab;
}

.range::-moz-range-thumb {
  width: 26px; height: 26px;
  background: var(--accent);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: grab;
  box-sizing: border-box;
}

/* Допълнения */
.extras {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.check { position: relative; display: flex; }

.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.check__box {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.check__box::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 3px;
  transition: all .2s var(--ease);
}

.check input:checked + .check__box { background: rgba(242, 168, 29, .14); }

.check input:checked + .check__box::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317150c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--accent);
}

.check input:focus-visible + .check__box { outline: 3px solid var(--accent); outline-offset: 2px; }

.check.is-off { display: none; }

/* Резултат */
.calc-result {
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--ink);
  color: var(--white);
}

.calc-result__label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 10px;
}

.calc-result__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--accent);
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}

.calc-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

.calc-result__meta b { color: var(--white); font-weight: 700; }

.calc-result__actions { display: grid; gap: 10px; }

@media (min-width: 520px) {
  .calc-result__actions { grid-template-columns: 1fr auto; }
}

/* 11. Защо нас / За нас =================================================== */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--flip .split__media { order: 2; }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--paper-2);
}

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

.split__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 78%;
  padding: 22px 26px;
  background: var(--accent);
  color: var(--accent-ink);
  border-top-left-radius: var(--radius-lg);
}

.split__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.split__badge span { font-size: .86rem; font-weight: 700; opacity: .82; }

.why-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.why-list li { display: flex; gap: 16px; }

.why-list .icon-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
}

.why-list .icon-box svg { width: 22px; height: 22px; }

.why-list h3 { font-size: 1.08rem; margin-bottom: 5px; }
.why-list p { font-size: .95rem; color: var(--text-muted); }
.section--dark .why-list p { color: var(--text-invert-muted); }

/* CTA лента */
.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-band__inner {
  display: grid;
  gap: 26px;
  align-items: center;
  padding-block: clamp(44px, 6vw, 76px);
}

@media (min-width: 860px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
}

.cta-band h2 { margin-bottom: 10px; }
.cta-band p { font-size: 1.05rem; opacity: .82; max-width: 56ch; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* На мобилни устройства бутоните в CTA лентата заемат цялата ширина */
@media (max-width: 599px) {
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { width: 100%; }
}

.cta-band .btn--dark:hover { --btn-bg: #000; --btn-bd: #000; }

.cta-band .btn--outline {
  --btn-fg: var(--accent-ink);
  --btn-bd: rgba(23, 21, 12, .35);
}

.cta-band .btn--outline:hover { --btn-bd: var(--accent-ink); --btn-bg: rgba(255,255,255,.35); }

/* 12. ЧЗВ ================================================================= */

.faq { display: grid; gap: 0; }

.faq__item { border-bottom: 1px solid var(--line); }

.section--dark .faq__item { border-bottom-color: var(--line-dark); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  transition: color .2s var(--ease);
}

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

.faq__icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  margin-top: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: .55;
  transition: opacity .2s var(--ease), transform .3s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 5px auto 5px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.faq__icon::after { transform: translateY(-50%) rotate(90deg); }

.faq__q[aria-expanded="true"] .faq__icon { opacity: 1; color: var(--accent); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { opacity: 0; }

.faq__a {
  overflow: hidden;
  height: 0;
  transition: height .32s var(--ease);
}

.faq__a > div { padding: 0 48px 26px 0; color: var(--text-muted); font-size: 1rem; }

.section--dark .faq__a > div { color: var(--text-invert-muted); }

/* 13. Контакти и форми ==================================================== */

.contact-layout {
  display: grid;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

.form-card {
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section--dark .form-card { border-color: transparent; }

.form-grid { display: grid; gap: 18px; }

@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 7px; }

.field label {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: .97rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

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

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6572' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: #d64545; }

.field__error {
  display: none;
  font-size: .8rem;
  font-weight: 700;
  color: #d64545;
}

.field.has-error .field__error { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d64545; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

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

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: .93rem;
  line-height: 1.5;
}

.form-status.is-visible { display: flex; }

.form-status--ok {
  background: rgba(31, 141, 88, .1);
  border-left: 3px solid #1f8d58;
  color: #14603b;
}

.form-status--err {
  background: rgba(214, 69, 69, .1);
  border-left: 3px solid #d64545;
  color: #8f2020;
}

.form-status .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Контактна информация */
.info-card {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
}

.info-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 20px;
}

.info-list li { display: flex; gap: 15px; }

.info-list .icon-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--accent);
}

.info-list .icon-box svg { width: 20px; height: 20px; }

.info-list__label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin: 0 0 3px;
}

.info-list__value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.info-list__value a:hover { color: var(--accent); }
.info-list__value small { display: block; font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.55); margin-top: 2px; }

.info-actions { display: grid; gap: 10px; }

@media (min-width: 460px) { .info-actions { grid-template-columns: 1fr 1fr; } }

.btn--viber { --btn-bg: #7360f2; --btn-bd: #7360f2; --btn-fg: #fff; }
.btn--viber:hover { --btn-bg: #8878ff; --btn-bd: #8878ff; }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* 14. Футър, FAB, скрол-нагоре ============================================ */

.site-footer {
  background: var(--ink);
  color: var(--text-invert);
  padding-top: clamp(52px, 6vw, 88px);
}

.footer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer-about p {
  margin-top: 18px;
  font-size: .93rem;
  color: var(--text-invert-muted);
  max-width: 40ch;
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: .93rem;
}

.footer-col a { color: var(--text-invert-muted); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-col address {
  font-style: normal;
  font-size: .93rem;
  color: var(--text-invert-muted);
  display: grid;
  gap: 11px;
}

.footer-col address a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}

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

/* Плаващи бутони (мобилни) */
.fab {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  border-top: 1px solid var(--line-dark);
}

.fab a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 8px;
  font-size: .92rem;
  font-weight: 800;
  background: var(--ink);
  color: var(--white);
}

.fab a + a { border-left: 1px solid var(--line-dark); }
.fab a.is-accent { background: var(--accent); color: var(--accent-ink); }
.fab .icon { width: 18px; height: 18px; }

@media (max-width: 767px) {
  .fab { display: flex; }
  body { padding-bottom: 54px; }
}

/* Скрол нагоре */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 89;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 767px) { .to-top { bottom: 68px; right: 14px; } }

/* 15. Анимации и достъпност =============================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .hero__media img { animation: none; }
}

/* Печат */
@media print {
  .site-header, .mobile-menu, .fab, .to-top, .lightbox, .marquee { display: none !important; }
  body { color: #000; background: #fff; }
  .section--dark, .calc-section, .site-footer { background: #fff !important; color: #000 !important; }
}


/* v24: optional client logo in the brand slot (identity.logo in site.json) */
.brand__logo { display: block; height: 48px; width: auto; }
.site-footer .brand__logo { height: 44px; }
