/* Capitalex Building — стилове на сайта (версия 4)
   Оформление: спокоен бял сайт. Снимките са чисти (без текст върху тях) и в ширината на съдържанието;
   текстът е под тях. Малка подредена типография: заглавия Cormorant Garamond, текст и меню Inter.
   Цветовете идват от сегашния сайт: медният акцент от логото и тъмнокафявата долна част. */

:root {
  --paper: #ffffff;
  --sand: #f6f3ef;           /* светъл топъл фон: заместители на снимки, рамки */
  --ink: #1c1915;            /* заглавия */
  --logo-ink: #231f20;       /* тъмното в логото */
  --text: #45403b;           /* основен текст */
  --muted: #736c66;          /* второстепенен текст */
  --line: #e7e1da;           /* тънки линии */
  --copper: #c28562;         /* акцентът на сегашния сайт */
  --copper-strong: #95583c;  /* медно за малък текст */
  --rust: #a34215;           /* дясната скоба в логото */
  --night: #19130b;          /* долна част */
  --night-text: #c9c2bb;
  --ok: #2f6b3a;
  --error: #a3271b;

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, "Times New Roman", serif;
  --font-text: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Open Sans", "Segoe UI", Arial, sans-serif;

  /* размери: текст 16, дребен 14, надписи с главни букви 13, H1 34, H2 24, H3 22 (на телефон 27 / 21 / 20) */
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 13px;
  --fs-h1: 34px;
  --fs-h2: 24px;
  --fs-h3: 22px;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --header-h: 72px;
  --draft-h: 0px;
  color-scheme: light;
}
@media (max-width: 767px) {
  :root { --fs-h1: 27px; --fs-h2: 21px; --fs-h3: 20px; --header-h: 60px; }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 500; color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper-strong); outline-offset: 3px; }
::selection { background: #efdfd3; color: var(--ink); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { left: 16px; }

/* ------------------------------------------------------------------ типография */
.h1, .h2, .h3 {
  margin: 0;
  font-family: var(--font-display); font-feature-settings: "locl" 0;
  color: var(--ink);
  letter-spacing: .005em;
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.15; }
.h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.25; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
.label {
  margin: 0;
  font: 500 var(--fs-label)/1.5 var(--font-text);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.prose { max-width: 65ch; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.prose li { margin: 0 0 .5em; padding-left: .2em; }
.prose li::marker { color: var(--copper); }
.prose a { color: var(--copper-strong); }

/* ------------------------------------------------------------------ шапка */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--logo-ink); flex-shrink: 0;
  position: relative; z-index: 2;
}
.logo-mark { width: 21px; height: 20px; flex: none; }
.logo-mark .l { fill: currentColor; }
.logo-mark .r { fill: var(--rust); }
.logo-word {
  font: 700 19px/1 var(--font-logo);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative; display: inline-block; padding: 8px 0;
  font: 400 14px/1 var(--font-text);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--ink);
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: .08em; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }

.lang { display: flex; align-items: center; gap: 6px; font: 400 13px/1 var(--font-text); letter-spacing: .08em; }
.lang a { text-decoration: none; color: var(--muted); padding: 8px 2px; }
.lang a:hover, .lang a[aria-current="true"] { color: var(--ink); }
.lang span { color: #c9c2bb; }

.menu-btn {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer; color: var(--ink);
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .3s ease, top .3s ease, opacity .2s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.site-header.is-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-header.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-btn span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .logo-word { font-size: 17px; }
  .logo-mark { width: 19px; height: 18px; }
  .menu-btn { display: inline-block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 36px;
    background: var(--paper);
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .nav ul a { font-size: 16px; }
  .lang { font-size: 14px; }
}

/* ------------------------------------------------------------------ снимки и заместителите им */
.ph {
  position: relative; overflow: hidden;
  background-color: #ece6df;
  background-image: linear-gradient(140deg, rgba(255, 255, 255, .45), rgba(120, 96, 72, .08));
}
.ph > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.ph.is-missing > img { visibility: hidden; }
[data-mode="draft"] .ph.is-missing::after {
  content: attr(data-ph);
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  font: 500 12px/1.4 var(--font-text); letter-spacing: .02em;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ начало: голямата снимка */
.home-hero { padding-top: clamp(16px, 2.5vw, 32px); }
.hero-frame, .photo {
  position: relative; width: 100%; max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--header-h) - 140px);
  min-height: 200px;
}
.hero-frame { overflow: hidden; background: #ece6df; }
.hero-frame .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-frame .slide.is-active { opacity: 1; }

.hero-bar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px;
  padding-top: 12px;
}
.hero-captions { list-style: none; margin: 0; padding: 0; min-width: 0; }
.hero-captions a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; text-decoration: none; }
.cap-name { font-size: var(--fs-small); color: var(--ink); }
.cap-place { font-size: var(--fs-small); color: var(--muted); }
.hero-captions a:hover .cap-name { text-decoration: underline; text-underline-offset: 3px; }
.hero-dots { display: flex; gap: 2px; flex: none; margin-top: -4px; }
.hero-dots button {
  width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--muted); background: transparent;
  transition: background-color .3s, border-color .3s;
}
.hero-dots button[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------------ секции */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--after-photo { padding-top: clamp(24px, 3vw, 40px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.actions { margin: clamp(56px, 7vw, 88px) 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 0; border-radius: 0;
  background: var(--ink); color: #fff;
  font: 500 var(--fs-label)/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--copper-strong); }
.btn--line, .btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover, .btn-line:hover { background: var(--ink); color: #fff; }
.btn-line {
  display: inline-block; padding: 12px 18px;
  font: 500 var(--fs-label)/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

/* ------------------------------------------------------------------ проектите: по един на ред */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 9vw, 112px); }
.pitem { min-width: 0; }
.pitem-media { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
.pitem-media img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.pitem:hover .pitem-media img { transform: scale(1.015); }
.pitem-text { padding-top: 20px; max-width: 680px; }
.pitem-title a { text-decoration: none; }
.pitem-title a:hover { color: var(--copper-strong); }
.pitem-place { margin: 4px 0 0; font-size: var(--fs-small); color: var(--muted); }
.pitem-desc { margin: 12px 0 0; }
.pitem-more { margin-top: 20px; }

@media (max-width: 600px) {
  .hero-frame, .photo, .pitem-media { aspect-ratio: 3 / 2; }
  .hero-bar { flex-direction: column-reverse; gap: 6px; }
  .hero-dots { margin: -4px 0 0 -9px; }
}

/* ------------------------------------------------------------------ карта на проектите */
.pmap-wrap { padding-top: clamp(16px, 2.5vw, 32px); }
.pmap {
  position: relative; overflow: hidden;
  background: #1f1913;
  aspect-ratio: 1920 / 580;
  max-height: 60vh;
}
.pmap-inner { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1920 / 835; }
.pmap-inner > .ph { position: absolute; inset: 0; }
.pmap .ph {
  background-color: #241d17;
  background-image:
    repeating-linear-gradient(28deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-62deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px);
}
[data-mode="draft"] .pmap .ph.is-missing::after { left: auto; right: 16px; bottom: auto; top: 14px; text-align: right; max-width: 50%; color: rgba(255, 255, 255, .7); }
.pmap-shade { position: absolute; inset: 0; background: linear-gradient(rgba(12, 9, 6, .3), rgba(12, 9, 6, .05) 40%); pointer-events: none; }
.pm { position: absolute; width: 0; height: 0; color: var(--copper); text-decoration: none; z-index: 2; }
.pm-dot {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 6px rgba(194, 133, 98, .28), 0 0 0 13px rgba(194, 133, 98, .1);
  display: grid; place-items: center;
  font: 500 10px/1 var(--font-text); color: #1b140e;
  transition: transform .25s ease;
}
.pm-dot b { display: none; font-weight: 500; }
.pm:hover .pm-dot, .pm:focus-visible .pm-dot { transform: scale(1.18); }
.pm-label {
  position: absolute; white-space: nowrap;
  font: 500 12px/1.4 var(--font-text); letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}
.pm:hover .pm-label, .pm:focus-visible .pm-label { color: #fff; }
.pm[data-side="right"] .pm-label { left: 22px; top: 0; transform: translateY(-50%); }
.pm[data-side="left"] .pm-label { right: 22px; top: 0; transform: translateY(-50%); text-align: right; }
.pm[data-side="below"] .pm-label { top: 20px; left: 0; transform: translateX(-50%); text-align: center; }
.pmap-legend { display: none; }

@media (max-width: 700px) {
  .pmap { aspect-ratio: 4 / 3; }
  .pmap-inner { width: 260%; left: -41%; }
  .pm-label { display: none; }
  .pm-dot { width: 22px; height: 22px; left: -11px; top: -11px; box-shadow: 0 0 0 5px rgba(194, 133, 98, .3); }
  .pm-dot b { display: block; }
  .pmap-legend {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
    list-style: none; margin: 0; padding: 14px 0 0;
    font-size: var(--fs-small); line-height: 1.4;
  }
  .pmap-legend a { display: flex; gap: 10px; align-items: center; text-decoration: none; min-width: 0; color: var(--text); }
  .pmap-legend b {
    flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--copper); color: #1b140e;
    display: grid; place-items: center; font: 500 11px/1 var(--font-text);
  }
}

/* ------------------------------------------------------------------ страница на проект */
.photo-top { margin-block: 0; padding-top: clamp(16px, 2.5vw, 32px); }
.intro { padding-top: clamp(22px, 3vw, 36px); }
.intro .label { margin-bottom: 10px; }
.place { margin: 8px 0 0; color: var(--muted); }

.facts { margin-top: clamp(28px, 4vw, 44px); }
.facts dl {
  display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 20px 16px; margin: 0; padding-block: 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-width: 0; }
.fact dd {
  margin: 0; color: var(--ink);
  font: 500 30px/1 var(--font-display); font-feature-settings: "locl" 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.fact dt { font: 500 var(--fs-label)/1.4 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .facts--4 dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact dd { font-size: 26px; }
  .fact dt { letter-spacing: .04em; }
}

.split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.split-media { aspect-ratio: 1 / 1; max-width: 100%; }
.desc-title { margin-bottom: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.gallery {
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  list-style: none; margin: 0; padding: 0;
}
.gallery li { min-width: 0; }
.gallery a { display: block; position: relative; height: 100%; min-height: 100%; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery li.big { grid-column: span 2; grid-row: span 2; }
.gallery li.big a { aspect-ratio: auto; }
.gallery li.wide { grid-column: span 2; }
.gallery li.wide a { aspect-ratio: auto; }
.gallery a img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery li.big { grid-row: span 1; }
  .gallery li.big a, .gallery li.wide a { aspect-ratio: 16 / 9; }
}

.project-nav {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap;
  padding-block: 28px clamp(48px, 7vw, 88px); border-top: 1px solid var(--line);
}
.project-nav a { text-decoration: none; }
.project-nav .next { text-align: right; margin-left: auto; }
.project-nav small {
  display: block; margin-bottom: 4px;
  font: 500 var(--fs-label)/1.4 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.project-nav strong { font: 500 20px/1.3 var(--font-display); font-feature-settings: "locl" 0; color: var(--ink); }
.project-nav a:hover strong { color: var(--copper-strong); }

/* ------------------------------------------------------------------ преглед на снимка (lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(14, 10, 7, .95); color: #fff;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
}
.lightbox[hidden] { display: none; }
.lb-stage { position: relative; min-height: 0; padding: max(64px, calc(env(safe-area-inset-top, 0px) + 56px)) clamp(12px, 7vw, 110px) 8px; }
.lb-figure { position: relative; margin: 0; width: 100%; height: 100%; display: grid; grid-template: 100% / 100%; place-items: center; }   /* редът е точно колкото екрана → снимката се побира цялата (10.11 23:17) */
.lb-figure img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; }
.lb-figure.is-missing { background: #2c2219; max-width: 960px; aspect-ratio: 4 / 3; height: auto; margin-inline: auto; align-self: center; }
.lb-figure.is-missing img { display: none; }
.lb-figure.is-missing::after {
  content: attr(data-ph); padding: 24px; text-align: center;
  font: 500 13px/1.5 var(--font-text); color: rgba(255, 255, 255, .85);
}
.lb-btn {
  position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(14, 10, 7, .4); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: var(--copper-strong); border-color: var(--copper-strong); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: max(12px, calc(env(safe-area-inset-top, 0px) + 8px)); right: max(12px, calc(env(safe-area-inset-right, 0px) + 8px)); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-count {
  text-align: center; padding: 12px 16px max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  font: 500 13px/1 var(--font-text); letter-spacing: .12em; color: rgba(255, 255, 255, .75);
}
html.lb-open, html.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ контакти */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.page-head .label { margin-top: 10px; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px); align-items: stretch;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-info .h3 { margin-bottom: 22px; }
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; }
.icon-list svg { width: 17px; height: 17px; margin-top: 5px; color: var(--copper); }
.icon-list a { text-decoration: none; overflow-wrap: anywhere; }
.icon-list a:hover { color: var(--copper-strong); }

.map-card {
  position: relative; min-height: 380px; overflow: hidden;
  background-color: var(--sand);
  background-image:
    repeating-linear-gradient(32deg, rgba(149, 88, 60, .07) 0 2px, transparent 2px 58px),
    repeating-linear-gradient(-58deg, rgba(149, 88, 60, .06) 0 2px, transparent 2px 76px),
    linear-gradient(115deg, transparent 0 47%, rgba(255, 255, 255, .95) 47% 49.5%, transparent 49.5%),
    linear-gradient(15deg, transparent 0 61%, rgba(255, 255, 255, .95) 61% 63%, transparent 63%);
  display: grid; place-items: center; text-align: center;
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-face { position: relative; z-index: 1; padding: 32px 24px; display: grid; justify-items: center; gap: 14px; max-width: 420px; }
.map-pin { width: 30px; height: 40px; color: var(--copper-strong); }
.map-face address { font-style: normal; color: var(--ink); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map-note { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); margin: 0; }
.map-card.is-loaded .map-face { display: none; }

/* „Контакти“ — картината на картата на цялата ширина (данни © OpenStreetMap), живата карта на Google — само след натискане (11.11) */
.map-band { position: relative; background: #241d17; color: #fff; }
.map-view { position: relative; height: 460px; overflow: hidden; }
.map-view::after {
  content: ""; position: absolute; inset: auto 0 0; height: 170px; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 14, 10, .85), rgba(18, 14, 10, 0));
}
.map-pic, .map-pic img { display: block; width: 100%; height: 100%; }
.map-pic { cursor: pointer; }
.map-pic img { object-fit: cover; object-position: 50% 50%; }
.map-band .map-mark { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -100%); pointer-events: none; }
.map-band .map-pin { display: block; width: 30px; height: 39px; color: var(--copper); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55)); }
.map-tag {
  position: absolute; left: 50%; top: 50%; z-index: 3; margin: 0; transform: translate(26px, -68px);
  display: grid; gap: 2px; padding: 10px 14px; white-space: nowrap;
  background: rgba(25, 19, 11, .92); border-left: 2px solid var(--copper);
  font: 400 13px/1.35 var(--font-text); color: var(--night-text);
}
.map-tag strong { font-weight: 500; color: #fff; letter-spacing: .02em; }
.map-ui {
  position: absolute; right: calc(var(--gutter) + 40px); bottom: 22px; z-index: 3;   /* +40px — да не се застъпва с бутона „нагоре“ */
  display: grid; justify-items: end; gap: 8px; max-width: min(520px, calc(100% - 2 * var(--gutter) - 40px));
}
.map-ui .map-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.map-ui .map-note { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .66); text-align: right; }
.btn--glass { background: rgba(25, 19, 11, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.btn--glass:hover { background: #fff; color: var(--ink); }
.map-attr { position: absolute; left: 10px; bottom: 6px; z-index: 3; margin: 0; font-size: 11px; line-height: 1.2; }
.map-attr a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.map-attr a:hover { color: #fff; text-decoration: underline; }
.map-band iframe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; }
.map-band.is-loaded { height: 460px; }
.map-band.is-loaded .map-view, .map-band.is-loaded .map-ui { display: none; }
@media (max-width: 700px) {
  .map-view { height: 380px; }
  .map-view::after { height: 60px; }
  .map-tag { transform: translate(-50%, 12px); text-align: center; border-left: 0; border-top: 2px solid var(--copper); }
  .map-ui { position: static; max-width: none; justify-items: center; padding: 18px var(--gutter) 24px; }
  .map-ui .map-actions { justify-content: center; gap: 8px; }
  .map-ui .btn { padding-inline: 14px; font-size: 13px; }
  .map-ui .map-note { text-align: center; }
  .map-band.is-loaded { height: 420px; }
}
.contact-form .form { margin-top: clamp(20px, 3vw, 28px); }
/* „Контакти“ — картата най-отгоре, под прозрачната шапка (Владимир, 11.11 10:00). Картината е в истински размер
   (1920×880 / на телефон 600×700, центрирана, изрязана от рамката) — надписите остават четливи на всеки екран; при по-голям екран — cover. */
.map-hero .map-view { height: min(56.25vw, 78vh); height: min(56.25vw, 78svh); min-height: 380px; }
.map-hero .map-pic { position: relative; overflow: hidden; }
.map-hero .map-pic img { position: absolute; left: 50%; top: 50%; width: 1920px; height: 880px; max-width: none; transform: translate(-50%, -50%); }
@media (min-width: 1921px), (min-height: 1130px) { .map-hero .map-pic img { left: 0; top: 0; width: 100%; height: 100%; transform: none; object-fit: cover; } }
@media (max-width: 640px) { .map-hero .map-pic img { width: 600px; height: 700px; } }
.map-hero .map-view::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 170px; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 8, 6, .6), rgba(10, 8, 6, 0));
}
.map-hero.is-loaded { height: min(56.25vw, 78vh); height: min(56.25vw, 78svh); min-height: 380px; }
@media (max-aspect-ratio: 1/1) {
  .map-hero .map-view, .map-hero.is-loaded { height: 66vh; height: 66svh; min-height: 380px; }
}
@media (max-width: 700px) {
  .map-hero .map-view::after { height: 190px; }
  .map-hero .map-ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; padding: 0; }
  .map-hero .map-ui .map-note { font-size: 11px; }
  .map-ui .map-open-lg { display: none; }      /* на телефон бутонът е само „Google Maps“ — двата бутона се събират на един ред */
}

.form-section { border-top: 1px solid var(--line); }
.form { display: grid; gap: 26px; margin-top: clamp(28px, 4vw, 40px); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 500 var(--fs-small)/1.4 var(--font-text); color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  font: 400 16px/1.5 var(--font-text); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #c9c0b7; border-radius: 0;
  padding: 10px 0;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.field-error { font-size: var(--fs-small); line-height: 1.4; color: var(--error); }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.form-note a { color: var(--copper-strong); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { margin: 0; font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.form-status.is-draft { color: var(--copper-strong); }

/* ------------------------------------------------------------------ правни страници и бележки */
.legal { max-width: 720px; }
.legal h2 {
  margin: 2em 0 .6em;
  font: 500 var(--fs-h2)/1.25 var(--font-display); font-feature-settings: "locl" 0; color: var(--ink);
}
.legal h2:first-of-type { margin-top: 0; }
.note {
  margin: 0 0 2.4em; padding: 14px 18px;
  border: 1px solid var(--line); background: var(--sand);
  font-size: var(--fs-small); line-height: 1.6; color: var(--ink);
}
.fill {
  padding: 0 .35em; border: 1px dashed var(--copper-strong); border-radius: 2px;
  background: #fbf3ec; color: var(--copper-strong); white-space: nowrap;
}

/* ------------------------------------------------------------------ 404 */
.notfound { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.notfound p { margin: 1.2em 0 2em; }

/* ------------------------------------------------------------------ долна част */
.site-footer {
  background: var(--night); color: var(--night-text);
  padding-top: clamp(48px, 7vw, 88px);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 {
  margin: 0 0 16px;
  font: 500 var(--fs-label)/1.4 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .k { color: var(--copper); margin-right: .35em; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px; padding-bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  font-size: var(--fs-small); line-height: 1.8; color: #9a928a;
}
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-bottom .wrap > span { margin-right: auto; }

/* ------------------------------------------------------------------ плаващи бутони */
.call-fab {
  position: fixed; z-index: 40;
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: calc(max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)) + var(--draft-h));
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: background-color .2s;
}
.call-fab:hover { background: var(--copper-strong); }
.call-fab svg { width: 20px; height: 20px; }
.to-top {
  position: fixed; z-index: 40;
  right: max(22px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: calc(max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)) + var(--draft-h));
  width: 42px; height: 42px; border: 1px solid #c9c0b7; background: rgba(255, 255, 255, .94); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.call-fab ~ .to-top { bottom: calc(max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)) + var(--draft-h) + 66px); }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ лента „чернова“ (само в прегледа в claude.ai) */
.draft-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #2a1f16; color: #f1e6dc; border-top: 2px solid var(--copper);
  font: 400 13px/1.45 var(--font-text);
}
.draft-bar p { margin: 0; flex: 1 1 420px; min-width: 0; }
.draft-bar strong { color: var(--copper); letter-spacing: .12em; text-transform: uppercase; margin-right: .5em; }
.draft-bar a { color: #fff; font-weight: 500; }
.draft-bar button {
  border: 1px solid rgba(255, 255, 255, .35); background: none; color: #fff; cursor: pointer;
  padding: 6px 12px; font: 500 12px/1 var(--font-text); letter-spacing: .06em;
}
.draft-bar[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .call-fab, .to-top, .draft-bar, .hero-dots { display: none !important; }
  .page > main { padding-top: 0; }
}

.text-link { color: var(--copper-strong); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ начало: снимката на целия екран, шапката върху нея
   (като на стария сайт; Владимир, 10.11 15:53). Без JavaScript шапката остава бяла. */
.page--home > main { padding-top: 0; }
.home-hero--full { padding-top: 0; position: relative; }
/* снимката — цялата, не се реже отдолу (Владимир, 10.11 16:39): на широк екран рамката е 16:9 по ширината, на тесен — 70 % от височината */
.home-hero--full .hero-frame { aspect-ratio: 16 / 9; width: 100%; height: auto; max-height: none; min-height: 0; }
.home-hero--full .hero-frame img { object-position: center bottom; }
@media (max-aspect-ratio: 1/1) { .home-hero--full .hero-frame { aspect-ratio: auto; height: 70vh; height: 70svh; } }
.home-hero--full .hero-frame::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 8, 6, .5), rgba(10, 8, 6, 0));
}
.home-hero--full .hero-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; margin: 0; }
.home-hero--full .hero-dots button::before { border-color: rgba(255, 255, 255, .9); box-shadow: 0 0 6px rgba(0, 0, 0, .35); }
.home-hero--full .hero-dots button[aria-pressed="true"]::before { background: #fff; border-color: #fff; }
.no-js .page--home > main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
/* „Проекти“ — същото: първата снимка е на цялата ширина, шапката е върху нея (Владимир, 10.11 20:48) */
.page--projects > main { padding-top: 0; }
.no-js .page--projects > main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.page--projects .plist--full > li:first-child .hero-frame::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 8, 6, .5), rgba(10, 8, 6, 0));
}
@media (max-aspect-ratio: 1/1) { .page--projects .plist--full > li:first-child .hero-frame { aspect-ratio: auto; height: 70vh; height: 70svh; } }
/* „Проекти“: шапката е винаги прозрачна, с бялото лого — без бял фон (11.11 12:19); тъмният преход е в самата шапка,
   за да се чете логото над всяка част от снимките и над белите участъци между тях */
.js .page--projects .plist--full > li:first-child .hero-frame::after { display: none; }
.js .page--projects .site-header--over::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--header-h) + 128px); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 8, 6, .5), rgba(10, 8, 6, 0));
  opacity: 0; transition: opacity .35s ease;
}
@media (max-width: 700px) { .js .page--projects .site-header--over::before { height: calc(var(--header-h) + 70px); } }
.js .page--projects .site-header--over:not(.is-solid):not(.is-open)::before { opacity: 1; }
/* „Контакти“ — снимка на сградата на ул. Мур 34 под прозрачната шапка (Владимир, 11.11) */
.page--contacts > main { padding-top: 0; }
.no-js .page--contacts > main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.contact-hero .hero-frame { aspect-ratio: auto; width: 100%; height: min(56.25vw, 78vh); height: min(56.25vw, 78svh); min-height: 300px; max-height: none; }
.contact-hero .hero-frame img { object-position: center 40%; }
.contact-hero .hero-frame::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 8, 6, .5), rgba(10, 8, 6, 0));
}
@media (max-aspect-ratio: 1/1) { .contact-hero .hero-frame { height: 60vh; height: 60svh; } }

.site-header { transition: background-color .35s ease, box-shadow .35s ease, color .35s ease; }
.site-header .brand, .site-header .nav ul a, .site-header .lang a, .site-header .logo-mark .r { transition: color .35s ease, fill .35s ease; }
.js .site-header--over:not(.is-solid):not(.is-open) { background: transparent; box-shadow: none; color: #fff; }
.js .site-header--over:not(.is-solid):not(.is-open) .brand,
.js .site-header--over:not(.is-solid):not(.is-open) .nav ul a,
.js .site-header--over:not(.is-solid):not(.is-open) .lang a { color: #fff; }
.js .site-header--over:not(.is-solid):not(.is-open) .logo-mark .r { fill: #fff; }
.js .site-header--over:not(.is-solid):not(.is-open) .lang span { color: rgba(255, 255, 255, .6); }
.js .site-header--over:not(.is-solid):not(.is-open) .brand,
.js .site-header--over:not(.is-solid):not(.is-open) .nav ul a { text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
/* бутонът за менюто на телефон — бял върху снимката/картата (тъмният не се вижда върху тъмна снимка или карта; 11.11) */
.js .site-header--over:not(.is-solid):not(.is-open) .menu-btn { color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }

/* ------------------------------------------------------------------ стрелките на смяната на снимки (началото и „Проекти“) */
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(20, 16, 12, .38); color: #fff;
  transition: background-color .25s ease;
}
.car-btn:hover, .car-btn:focus-visible { background: rgba(20, 16, 12, .65); }
.car-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* смяната с щракване по снимката (11.11 12:51): дясната половина — следващата, лявата — предишната; курсорът показва посоката */
.hero-frame.is-clickable { cursor: pointer; -webkit-user-select: none; user-select: none; }
.hero-frame.is-clickable.is-left { cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Ccircle cx=%2216%22 cy=%2216%22 r=%2214.5%22 fill=%22rgba(20,16,12,0.55)%22 stroke=%22white%22 stroke-opacity=%220.85%22 stroke-width=%221.2%22/%3E%3Cpath d=%22M18.5 10L12.5 16l6 6%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") 16 16, pointer; }
.hero-frame.is-clickable.is-right { cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Ccircle cx=%2216%22 cy=%2216%22 r=%2214.5%22 fill=%22rgba(20,16,12,0.55)%22 stroke=%22white%22 stroke-opacity=%220.85%22 stroke-width=%221.2%22/%3E%3Cpath d=%22M13.5 10l6 6-6 6%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") 16 16, pointer; }
.car-prev { left: clamp(10px, 2vw, 24px); }
.car-next { right: clamp(10px, 2vw, 24px); }
.car-count {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: 14px; z-index: 3; margin: 0;
  padding: 4px 10px; border-radius: 999px; background: rgba(20, 16, 12, .45); color: #fff;
  font-size: 13px; line-height: 1.4; letter-spacing: .04em;
}
@media (max-width: 600px) { .car-btn { width: 40px; height: 40px; } .car-btn svg { width: 20px; height: 20px; } }

/* ------------------------------------------------------------------ „Проекти“: като началото — всеки обект на цялата ширина, снимките му се сменят */
.plist--full { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(72px, 9vw, 120px); }
.pfull-media { position: relative; }
.pfull-media .hero-frame { aspect-ratio: 16 / 9; width: 100%; height: auto; max-height: none; min-height: 0; }
.pfull-media .hero-frame img { object-position: center bottom; }
@media (max-aspect-ratio: 1/1) { .pfull-media .hero-frame { aspect-ratio: 4 / 3; } }
.pfull-text { padding-top: 22px; }
.pfull-text .pitem-desc { max-width: 680px; }
.pfull-text .pitem-facts { max-width: none; }   /* числата на обекта — на един ред, където има място (11.11) */
.section--projects { padding-top: 0; }   /* без реда със заглавието — първата снимка е точно под шапката (10.11 19:38) */
