/* ==========================================================
   Гербера ООД — общ стил
   ========================================================== */
:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --cream: #faf8f5;
  --sand: #f3eee6;
  --line: #e7e0d5;
  --surface: #ffffff;
  --night: #17140f;
  --night-soft: #25211a;
  --accent: #c8102e;        /* червено от марката Гербера */
  --accent-dark: #9b0d23;
  --accent-soft: #fdeced;
  --gold: #ff8f8f;

  --free: #3d8b50;
  --free-bg: #e8f3e9;
  --free-line: #bcd9c0;
  --reserved: #c68a1d;
  --reserved-bg: #fbf1dc;
  --reserved-line: #ecd29c;
  --sold: #a8a29e;
  --sold-bg: #f0edea;
  --sold-line: #dcd6cf;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }

/* ---------- Типография ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 500; margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h1 {
  font-weight: 600; margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em;
}
h2.section-title {
  font-weight: 600; margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08;
}
.lead { color: var(--muted); font-weight: 300; max-width: 58ch; margin: 16px 0 0; font-size: 16px; }
.section-head { max-width: 64ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-weight: 300; margin: 0; }
section.block { padding-block: 84px 24px; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; padding: 15px 26px; font-family: var(--font-body);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .3s, border-color .3s, color .3s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: #cfc6b8; }
.btn-line:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.btn-sm { padding: 11px 18px; font-size: 11px; border-radius: 12px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Хедър ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1; }
.brand-sub { display: block; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-family: var(--font-body); font-weight: 500; }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  text-decoration: none; font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  padding: 10px 14px; border-radius: 999px; color: var(--ink-soft); transition: background .3s, color .3s;
}
.main-nav a:hover, .main-nav a.active { background: var(--sand); color: var(--ink); }
.header-phone { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--accent-dark); }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: '';
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ---------- Хлебна пътечка ---------- */
.crumbs { font-size: 12px; color: var(--muted); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs span[aria-hidden] { color: #c9c1b5; }

/* ---------- Чипове, значки ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 12.5px; color: var(--ink-soft);
}
.fact b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 7px 14px; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.badge.free { background: var(--free-bg); border-color: var(--free-line); color: var(--free); }
.badge.reserved { background: var(--reserved-bg); border-color: var(--reserved-line); color: var(--reserved); }
.badge.sold { background: var(--sold-bg); border-color: var(--sold-line); color: #78716c; }
.badge.ready { background: var(--free-bg); border-color: var(--free-line); color: var(--free); }
.badge.building { background: var(--accent-soft); border-color: #f3c0c8; color: var(--accent-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); cursor: pointer; font-size: 12.5px;
  border-radius: 999px; padding: 9px 16px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-soft); transition: all .25s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Начало: hero ---------- */
.hero { padding-block: 56px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-visual {
  background: var(--night); border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: 0 34px 90px rgba(60, 48, 34, .22); aspect-ratio: 5 / 4;
}
.hero-visual svg { display: block; width: 100%; height: 100%; }
.hero-visual .tag {
  position: absolute; left: 18px; bottom: 18px; color: #fff;
  background: rgba(20,17,12,.7); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 14px; border-radius: 999px; font-size: 11.5px; letter-spacing: .06em;
  backdrop-filter: blur(6px);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stat { background: var(--surface); padding: 18px 20px; }
.stat b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- Карти на сгради ---------- */
.buildings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.b-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.b-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(60,48,34,.14); border-color: #d9cfc0; }
.b-card-visual { background: var(--night); padding: 22px 22px 0; display: flex; justify-content: center; height: 220px; align-items: flex-end; }
.b-card-visual svg { height: 100%; width: auto; display: block; }
.b-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-card-body .badge { align-self: flex-start; }
.b-card-body h3 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.05; }
.b-card-body .addr { font-size: 12.5px; color: var(--muted); margin: 0; }
.b-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-soft); }
.b-card-meta b { font-variant-numeric: tabular-nums; }
.avail-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--sold-bg); margin-top: 4px; }
.avail-bar i { display: block; }
.avail-bar .f { background: var(--free); }
.avail-bar .r { background: var(--reserved); }
.b-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.b-card-foot .go { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent-dark); }

/* ---------- Търсачка на апартаменти ---------- */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; margin-top: 40px; }
.finder-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.finder-head h3 { margin: 0; font-size: 26px; font-weight: 600; }
.finder-filters { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 20px; }
.filter-group .lbl { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.apt-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none;
  display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; background: var(--cream);
  transition: border-color .3s, background .3s;
}
.apt-card:hover { border-color: var(--accent); background: #fff; }
.apt-card svg { width: 74px; height: 60px; display: block; }
.apt-card h4 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.1; }
.apt-card p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.apt-card .area { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.more-row { text-align: center; margin-top: 18px; }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; }

/* ---------- За нас ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--ink-soft); font-weight: 300; margin: 0 0 16px; }
.about-text p strong { font-weight: 600; color: var(--ink); }
.values { display: grid; gap: 14px; }
.value { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.value .num {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px;
}
.value h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.value p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 300; }

/* ---------- Реализирани обекти ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.done-card { border-top: 2px solid var(--ink); padding-top: 16px; }
.done-card .yr { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.done-card h4 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin: 6px 0 4px; line-height: 1.1; }
.done-card p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 300; }
.done-card .big { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; margin-top: 12px; display: block; font-variant-numeric: tabular-nums; }
.done-card .big small { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }

/* ---------- Нови проекти ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project {
  border-radius: 24px; background: var(--night); color: #fff; padding: 30px; position: relative; overflow: hidden;
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
}
.project svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.project > * { position: relative; }
.project .eyebrow { color: var(--gold); }
.project h3 { font-size: 34px; font-weight: 500; margin: 0 0 8px; line-height: 1.05; }
.project p { margin: 0; color: #d6d3d1; font-weight: 300; font-size: 14px; max-width: 48ch; }
.project .facts .fact { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e7e5e4; }
.project .facts .fact b { color: #fff; }

/* ---------- Контакти ---------- */
section.contact {
  background: var(--night); border-radius: 24px; color: #fff;
  padding: 40px 32px; margin-top: 84px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px;
}
.contact h2, .contact h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; line-height: 1.08; }
.contact p { margin: 0; color: #a8a29e; font-weight: 300; font-size: 14px; max-width: 46ch; }
.contact .eyebrow { color: var(--gold); }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px; }
.contact-list span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #a8a29e; padding-top: 3px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.contact .btn-line { color: #fff; border-color: rgba(255,255,255,.3); }
.contact .btn-line:hover { border-color: var(--gold); color: var(--gold); }
.contact-form { display: grid; gap: 12px; align-content: start; }
.contact-form label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #a8a29e; display: grid; gap: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; font-size: 14px; letter-spacing: normal; text-transform: none; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 13px 14px;
}
.contact-form select option { color: var(--ink); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--gold); }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.contact-form .note { font-size: 12px; color: #78716c; text-transform: none; letter-spacing: normal; }

/* ---------- Футър ---------- */
footer.site-footer { padding-block: 34px 46px; }
.footer-inner { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 300; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--accent-dark); }

/* ==========================================================
   Страница на сграда
   ========================================================== */
.page-hero { padding-block: 22px 34px; }
.page-hero .badge { margin-bottom: 18px; }
.bld-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel {
  background: var(--night); border-radius: 24px; overflow: hidden; color: #fff;
  box-shadow: 0 34px 90px rgba(60, 48, 34, .22);
}
.panel-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 20px 24px 14px; }
.panel-top .eyebrow { color: var(--gold); margin: 0; }
.panel-top h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 0; }
.panel-top .sub { font-size: 12.5px; color: #a8a29e; font-weight: 300; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: #d6d3d1; margin-left: auto; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.facade-wrap { padding: 8px 18px 22px; overflow-x: auto; }
.facade { display: block; margin: 0 auto; width: 100%; height: auto; }
.facade-wrap .facade { min-width: 460px; }
.facade .apt { cursor: pointer; transition: opacity .25s, filter .25s; }
.facade .apt:hover rect.win, .facade .apt:focus rect.win { filter: brightness(1.18); stroke: #fff; stroke-width: 2; }
.facade .apt.dim { opacity: .18; }
.facade .apt:focus { outline: none; }
.facade .apt.current rect.win { stroke: #fff; stroke-width: 3; }
.facade-tip {
  position: fixed; z-index: 90; pointer-events: none; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35);
  font-size: 12.5px; min-width: 190px; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s;
}
.facade-tip.show { opacity: 1; transform: none; }
.facade-tip h5 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.facade-tip .row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.facade-tip .row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.panel-bottom { padding: 0 24px 22px; }
.panel-bottom .hint { margin: 0; font-size: 12px; color: #a8a29e; font-weight: 300; }

.side { display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; }
.card .filter-group + .filter-group { margin-top: 16px; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.spec li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.spec li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec span { color: var(--muted); }
.spec b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.table-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; padding: 20px 22px 12px; }
.table-head h3 { margin: 0; font-size: 24px; font-weight: 600; }
.table-head .count { font-size: 12.5px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table.apts { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.apts th {
  text-align: left; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; padding: 12px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream);
  cursor: pointer; user-select: none; white-space: nowrap;
}
table.apts th[aria-sort="ascending"]::after { content: ' ↑'; }
table.apts th[aria-sort="descending"]::after { content: ' ↓'; }
table.apts td { padding: 13px 22px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.apts tr:last-child td { border-bottom: 0; }
table.apts tbody tr { cursor: pointer; transition: background .2s; }
table.apts tbody tr:hover { background: var(--accent-soft); }
table.apts td.num-cell { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
table.apts a { text-decoration: none; }
table.apts .badge { padding: 4px 10px; font-size: 10px; }

/* ==========================================================
   Страница на апартамент (по концепцията „360° обиколка“)
   ========================================================== */
.tour-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 20px 24px 14px; }
.tour-top .eyebrow { color: var(--gold); margin: 0; }
.tour-top .counter { font-size: 11px; letter-spacing: .25em; color: #a8a29e; font-variant-numeric: tabular-nums; }
.tour-top h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 0; }
.tour-top .area { font-size: 12.5px; color: #a8a29e; font-weight: 300; font-variant-numeric: tabular-nums; }
.view-switch { margin-left: auto; display: flex; gap: 4px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 4px; }
.view-switch button {
  font-family: var(--font-body); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 0; background: transparent; color: #d6d3d1; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.view-switch button.active { background: #fff; color: var(--night); font-weight: 600; }
.view-switch button:disabled { opacity: .4; cursor: not-allowed; }
.stage { position: relative; }
.plan-stage { padding: 12px 24px 8px; display: flex; justify-content: center; background: radial-gradient(circle at 50% 40%, #2b261e, var(--night) 70%); }
.plan-svg { width: 100%; max-width: 760px; height: auto; display: block; }
.plan-svg .room { cursor: pointer; }
.plan-svg .room rect { fill: #f5efe4; stroke: #2a251d; stroke-width: .12; transition: fill .3s; }
.plan-svg .room.wet rect { fill: #e3ecef; }
.plan-svg .room.out rect { fill: #d9d0bd; stroke: #6b6258; stroke-width: .08; }
.plan-svg .room:hover rect { fill: #fbdde1; }
.plan-svg .room.active rect { fill: #f6b8c1; }
.plan-svg .room text { font-family: var(--font-body); fill: #3b342b; pointer-events: none; }
.plan-svg .room text.n { font-size: .36px; font-weight: 600; }
.plan-svg .room text.a { font-size: .32px; fill: #7d7568; }
.plan-svg .wall { fill: none; stroke: #1c1917; stroke-width: .22; }
.plan-svg .door { fill: none; stroke: #8f6e41; stroke-width: .06; }
.plan-svg .compass text { font-size: .38px; fill: #d6d3d1; font-family: var(--font-body); }
#psv { height: min(62vh, 640px); min-height: 360px; }
.tour-bottom { padding: 16px 24px 20px; }
.tour-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rooms { display: flex; gap: 8px; flex-wrap: wrap; }
.rooms button, .arrow-btn {
  font-family: var(--font-body); cursor: pointer; color: #fff;
  background: transparent; border: 1px solid rgba(255,255,255,.22);
  transition: border-color .3s, background .3s, color .3s;
}
.rooms button { border-radius: 999px; padding: 10px 18px; font-size: 12.5px; }
.rooms button:hover { border-color: var(--gold); color: var(--gold); }
.rooms button.active { background: #fff; color: var(--night); border-color: #fff; font-weight: 500; }
.rooms button:disabled { opacity: .35; cursor: not-allowed; border-color: rgba(255,255,255,.12); color: #d6d3d1; }
.arrow-btn { width: 42px; height: 42px; border-radius: 999px; font-size: 15px; background: rgba(255,255,255,.06); flex-shrink: 0; }
.arrow-btn:hover { background: rgba(255,255,255,.16); }
.tour-bottom .hint { margin: 12px 0 0; font-size: 12px; font-weight: 300; color: #a8a29e; }
.soon {
  position: absolute; left: 16px; top: 12px; z-index: 5; font-size: 11px; letter-spacing: .06em;
  background: rgba(20,17,12,.7); color: #d6d3d1; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 13px;
}

/* 3D разходка (модел по чертежа) */
.tour3d { position: relative; height: min(64vh, 660px); min-height: 380px; background: linear-gradient(#cfe0ee, #e9e4da); overflow: hidden; outline: none; touch-action: none; }
.tour3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.tour3d-canvas:active { cursor: grabbing; }
.tour3d-spots { position: absolute; inset: 0; pointer-events: none; }
.nav-spot3d { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-spot3d .nav-spot-label { font-size: 11.5px; padding: 5px 11px; }
.tour3d.house .nav-spot3d .nav-spot-dot { width: 12px; height: 12px; border-width: 2px; }
.t3d-tools { position: absolute; right: 12px; top: 12px; z-index: 5; display: flex; gap: 6px; }
.t3d-tools button { font: 500 12px var(--font-body); color: #fff; background: rgba(20,17,12,.72); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 13px; cursor: pointer; backdrop-filter: blur(6px); }
.t3d-tools button:hover { background: var(--accent); border-color: var(--accent); }
.t3d-note { position: absolute; left: 12px; bottom: 12px; z-index: 5; font-size: 11px; color: #fff; background: rgba(20,17,12,.6); border-radius: 999px; padding: 6px 12px; pointer-events: none; }
.t3d-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--night); font-size: 13px; letter-spacing: .06em; }

/* Кликаеми точки в панорамата */
.nav-spot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; cursor: pointer; user-select: none; width: 100%; height: 100%; }
.nav-spot-dot { width: 18px; height: 18px; border-radius: 999px; background: #fff; border: 3px solid var(--accent); animation: spot-pulse 2.2s infinite; }
.nav-spot-label {
  background: rgba(20,17,12,.72); color: #fff; font-family: var(--font-body); font-size: 12px; letter-spacing: .06em;
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); white-space: nowrap;
}
@keyframes spot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,16,46,.55); }
  70% { box-shadow: 0 0 0 14px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

.apt-sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 26px; }
.where { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.where svg { width: 100%; height: auto; background: var(--night); border-radius: 14px; padding: 10px; }
.where p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.stack-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stack-list a { font-size: 12px; text-decoration: none; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-variant-numeric: tabular-nums; }
.stack-list a:hover { border-color: var(--accent); color: var(--accent-dark); }
.stack-list a.sold { color: #b7b0a9; text-decoration: line-through; }
.stack-list a.reserved { border-color: var(--reserved-line); }

/* Процес — от чертеж до визуализация */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-dark);
  font-family: var(--font-display); font-size: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.step p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 300; }

.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(15,13,10,.9); backdrop-filter: blur(6px); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 12px; }

.not-found { padding-block: 120px; text-align: center; }
.not-found p { color: var(--muted); }

/* ---------- Анимации при скрол ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Адаптивност
   ========================================================== */
@media (max-width: 1020px) {
  .main-nav, .header-phone { display: none; }
  .menu-btn { display: flex; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .site-header.open .main-nav a { padding: 14px 12px; font-size: 15px; }
  .hero-grid, .about-grid, .bld-layout, .apt-sections { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  section.contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section.block { padding-block: 60px 12px; }
  .hero { padding-block: 32px 24px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 14px; }
  .stat b { font-size: 26px; }
  .finder { padding: 18px; }
  .panel-top, .tour-top { padding-inline: 16px; }
  .tour-bottom, .panel-bottom { padding-inline: 16px; }
  .plan-stage { padding-inline: 8px; }
  .facade-wrap { padding-inline: 8px; }
  .legend { margin-left: 0; width: 100%; }
  .view-switch { margin-left: 0; }
  .rooms { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; flex: 1; }
  .rooms::-webkit-scrollbar { display: none; }
  .rooms button { flex-shrink: 0; }
  .steps { grid-template-columns: 1fr; }
  .where { grid-template-columns: 110px 1fr; }
  section.contact { padding: 28px 20px; margin-top: 60px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .project { padding: 22px; min-height: 260px; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   v2 — комплекси, секции, галерия
   ========================================================== */
.btn-dark:hover { color: #fff; }
.btn-accent { color: #fff; }
.btn-accent:hover { color: #fff; }
.brand img { border-radius: 10px; }
.apt-card h4 small { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--accent-dark); letter-spacing: .06em; margin-left: 4px; }

/* Hero със снимка */
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 34px 90px rgba(60, 48, 34, .22); aspect-ratio: 4 / 3; background: var(--night); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .tag { position: absolute; left: 18px; bottom: 18px; color: #fff; background: rgba(20,17,12,.72); border: 1px solid rgba(255,255,255,.2); padding: 10px 16px; border-radius: 16px; font-size: 12px; backdrop-filter: blur(6px); text-decoration: none; display: grid; gap: 2px; transition: background .3s; }
.hero-photo .tag:hover { background: rgba(20,17,12,.9); }
.hero-photo .tag b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.hero-photo .tag span { color: var(--gold); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.stats.four { grid-template-columns: repeat(4, 1fr); }

/* Карта на комплекс в продажба */
.complex-list { display: grid; gap: 28px; }
.cx { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.cx-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cx-body h3 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.02; }
.cx-body .addr { margin: 0; font-size: 13px; color: var(--muted); }
.cx-body p.d { margin: 0; font-size: 14px; color: var(--ink-soft); font-weight: 300; }
.cx-body .badge { align-self: flex-start; }
.sec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sec-chip { text-decoration: none; border: 1px solid var(--line); background: var(--cream); border-radius: 14px; padding: 9px 13px; display: grid; gap: 1px; min-width: 88px; transition: border-color .25s, background .25s; }
.sec-chip:hover { border-color: var(--accent); background: #fff; }
.sec-chip b { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.sec-chip span { font-size: 11px; color: var(--muted); }
.sec-chip span i { font-style: normal; color: var(--free); font-weight: 600; }
.cx-body .cta-row { margin-top: auto; padding-top: 8px; }

/* Рендер с кликаеми секции */
.render { position: relative; background: var(--night); overflow: hidden; }
.render img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx .render { min-height: 320px; }
.pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: rgba(23,20,15,.86); color: #fff; border: 1px solid rgba(255,255,255,.28);
  padding: 6px 12px 6px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(6px); transition: background .25s, transform .25s, border-color .25s; white-space: nowrap;
}
.pin::before { content: ''; width: 11px; height: 11px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,16,46,.6); animation: spot-pulse 2.4s infinite; }
.pin:hover, .pin:focus-visible, .pin.hl { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.pin:hover::before, .pin.hl::before { background: #fff; }
.pin small { font-weight: 400; opacity: .75; font-size: 10.5px; }
.render-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; font-size: 11px; color: #fff; background: rgba(20,17,12,.7); border: 1px solid rgba(255,255,255,.2); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); }

/* Разпродадени */
.soldout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.so { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.so .img { position: relative; aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.so .img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(.95); opacity: .8; }
.so .img .badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); }
.so-body { padding: 16px 18px 18px; }
.so-body h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.so-body p { margin: 0; font-size: 12.5px; color: var(--muted); }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.sub-head h3 { margin: 0; font-size: 28px; font-weight: 600; }
.sub-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* За нас — удостоверения и механизация */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.cred { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.cred .k { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.cred b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 6px 0 4px; line-height: 1.1; }
.cred p { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 300; }

/* Реализирани обекти със снимки */
.done-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.done .img { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.done .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.done .img.none { display: flex; align-items: center; justify-content: center; background: var(--night); }
.done .img.none img { width: 64px; height: 64px; opacity: .8; }
.done-body { padding: 16px 18px 18px; }
.done-body .pl { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.done-body h4 { margin: 4px 0 4px; font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.1; }
.done-body p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 300; }

/* Галерия */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery button { border: 0; padding: 0; background: var(--sand); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox figcaption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #d6d3d1; font-size: 13px; }

/* Комплекс — страница */
.cx-hero-render { border-radius: 24px; box-shadow: 0 34px 90px rgba(60, 48, 34, .22); }
.sections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 24px; }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; align-items: end; transition: border-color .3s, transform .3s, box-shadow .3s; }
.sec-card:hover, .sec-card.hl { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(60,48,34,.12); }
.sec-card .fv { background: var(--night); border-radius: 12px; padding: 8px 6px 0; display: flex; justify-content: center; }
.sec-card .fv svg { width: 100%; height: auto; }
.sec-card h4 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.05; }
.sec-card p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sec-card p i { font-style: normal; color: var(--free); font-weight: 600; }

/* Табове за секциите */
.sec-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.sec-tabs a { text-decoration: none; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.sec-tabs a:hover { border-color: var(--accent); }
.sec-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 1020px) {
  .cx { grid-template-columns: 1fr; }
  .cx .render { min-height: 0; aspect-ratio: 16 / 10; }
  .done-grid { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stats.four { grid-template-columns: 1fr 1fr; }
  .done-grid { grid-template-columns: 1fr; }
  .cx-body { padding: 20px; }
  .pin { font-size: 10.5px; padding: 4px 9px 4px 5px; gap: 5px; }
  .pin::before { width: 8px; height: 8px; }
  .pin small { display: none; }
  .render-hint { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
/* точките се позиционират спрямо самото изображение, без изрязване */
.render { display: flex; align-items: center; justify-content: center; }
.render .ri { position: relative; width: 100%; }
.render .ri img { width: 100%; height: auto; object-fit: initial; }
.cx .render { min-height: 0; }
@media (max-width: 1020px) { .cx .render { aspect-ratio: auto; } }
.stats.four .stat b { font-size: 30px; }
@media (max-width: 760px) { .stats.four .stat b { font-size: 26px; } }
.facade-wrap .facade { min-width: 0; max-width: 360px; }
.sec-card { grid-template-columns: 54px 1fr; }

/* Етажен план — чертеж с очертани апартаменти */
.fp-stage { background: #fff; padding: 10px; }
.fp-svg { display: block; width: 100%; height: auto; }
.fp-apt polygon { stroke-width: 3; transition: fill-opacity .25s; fill-opacity: .22; }
.fp-apt.free polygon { fill: #3d8b50; stroke: #3d8b50; }
.fp-apt.reserved polygon { fill: #d99a1e; stroke: #d99a1e; }
.fp-apt.sold polygon { fill: #57534e; stroke: #57534e; fill-opacity: .35; }
.fp-apt[tabindex] { cursor: pointer; }
.fp-apt[tabindex]:hover polygon, .fp-apt[tabindex]:focus polygon, .fp-apt.current polygon { fill-opacity: .45; stroke-width: 5; }
.fp-apt:focus { outline: none; }
.fp-tag rect { fill: #17140f; opacity: .88; }
.fp-apt.free .fp-tag rect { fill: #2f6f3f; }
.fp-tag text { fill: #fff; font: 600 19px Montserrat, sans-serif; }
.fp-apt.sold .fp-tag text { text-decoration: line-through; }
.fp-floors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 14px 24px 0; }
.fp-floors .lbl { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #a8a29e; margin-right: 6px; }
.fp-floors button { font-family: var(--font-body); font-size: 12.5px; border-radius: 999px; padding: 7px 13px; cursor: pointer; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); }
.fp-floors button.active { background: #fff; color: var(--night); border-color: #fff; font-weight: 600; }
.fp-note { font-size: 11.5px; color: #a8a29e; margin: 8px 0 0; }
.drawing-card .fp-svg { border: 1px solid var(--line); border-radius: 12px; }
.drawing-card p { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.real-note { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #f3c0c8; border-radius: 999px; padding: 6px 12px; margin-left: 8px; }
@media (max-width: 760px) { .fp-floors { padding-inline: 16px; } .real-note { margin: 10px 0 0; } }
.fp-apt.dim { opacity: .25; }
.plan-svg { max-height: min(70vh, 640px); }
.plan-svg .room.sm text.n { font-size: .27px; }
.plan-svg .room.sm text.a { font-size: .26px; }
.fp-svg.hl .fp-apt:not(.current) { opacity: .3; }
.fp-svg.hl .fp-apt:not(.current) .fp-tag { display: none; }

/* ==========================================================
   v3 — движение и hero
   ========================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-in .5s ease both; }

/* Хедър върху тъмния hero */
.site-header { transition: background .35s, border-color .35s, color .35s; }
.site-header.on-dark:not(.scrolled):not(.open) { background: transparent; backdrop-filter: none; color: #fff; }
.site-header.on-dark:not(.scrolled):not(.open) .brand-sub { color: rgba(255,255,255,.7); }
.site-header.on-dark:not(.scrolled):not(.open) .main-nav a { color: rgba(255,255,255,.85); }
.site-header.on-dark:not(.scrolled):not(.open) .main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-header.on-dark:not(.scrolled):not(.open) .menu-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.site-header.on-dark:not(.scrolled):not(.open) .menu-btn span,
.site-header.on-dark:not(.scrolled):not(.open) .menu-btn span::before,
.site-header.on-dark:not(.scrolled):not(.open) .menu-btn span::after { background: #fff; }

/* Hero на цял екран */
.hero-x {
  position: relative; margin-top: -72px; padding-top: 72px; min-height: min(94vh, 900px);
  display: flex; align-items: center; overflow: hidden; background: var(--night); color: #fff; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,13,10,.88) 0%, rgba(15,13,10,.6) 45%, rgba(15,13,10,.12) 100%),
              linear-gradient(0deg, rgba(15,13,10,.7) 0%, rgba(15,13,10,0) 40%); }
.hero-inner { width: 100%; padding-block: 60px 120px; }
.hero-x .eyebrow { color: var(--gold); }
.hero-x h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 11ch; color: #fff; }
.hero-x .lead { color: rgba(255,255,255,.78); font-size: 17px; max-width: 46ch; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split .w > span { display: inline-block; animation: word-up .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms + .15s); }
@keyframes word-up { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-anim { animation: fade-up .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) * 90ms + .15s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Бързо търсене */
.quick {
  margin-top: 34px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 22px;
  background: rgba(23,20,15,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px);
  border-radius: 22px; padding: 18px 18px 18px 22px; width: fit-content; max-width: 100%;
}
.q-field { display: grid; gap: 8px; }
.q-lbl { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: rgba(255,255,255,.07); border-radius: 14px; padding: 4px; }
.seg button {
  font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.85); background: transparent; border: 0;
  padding: 9px 14px; border-radius: 10px; cursor: pointer; min-width: 40px; transition: background .25s, color .25s;
}
.seg button:hover { background: rgba(255,255,255,.1); }
.seg button.active { background: #fff; color: var(--ink); font-weight: 600; }
.q-go { padding: 16px 22px; gap: 14px; }
.q-go b { font-variant-numeric: tabular-nums; font-size: 14px; }
.q-go span[aria-hidden] { transition: transform .3s; }
.q-go:hover span[aria-hidden] { transform: translateX(4px); }

.hero-card {
  position: absolute; right: max(20px, calc((100vw - 1200px) / 2 + 20px)); bottom: 110px; z-index: 1;
  display: grid; gap: 2px; text-decoration: none; color: #fff; padding: 14px 18px; border-radius: 18px;
  background: rgba(23,20,15,.6); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); transition: background .3s, transform .3s;
}
.hero-card:hover { background: rgba(23,20,15,.85); transform: translateY(-3px); }
.hero-card span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hero-card b { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.hero-card i { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.75); }

.scroll-cue { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: 28px; height: 46px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

.hero-stats { position: relative; z-index: 2; margin-top: -48px; box-shadow: 0 24px 60px rgba(60,48,34,.14); background: var(--line); }
.hero-stats .stat { padding: 22px 24px; }

/* Поетапно появяване */
.js [data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--stagger, 0) * 90ms); }
.js [data-stagger] > *.in { opacity: 1; transform: none; }
.hero-stats.reveal { opacity: 1; transform: none; }

/* Бягаща лента */
.ticker { margin-top: 84px; background: var(--night); color: #e7e5e4; overflow: hidden; padding: 20px 0; border-block: 1px solid #2b261e; }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker span { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); white-space: nowrap; padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: ''; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); margin-left: 28px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Точки на секциите — изскачат една след друга */
@keyframes pin-in { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.js .cx:not(.in) .pin { opacity: 0; }
.cx.in .pin, .cx-hero-render .pin { animation: pin-in .55s cubic-bezier(.2,.9,.3,1.3) backwards; animation-delay: calc(var(--i, 0) * 110ms + .35s); }
.cx .render img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cx:hover .render img { transform: scale(1.03); }

/* Фасада — „строи се“ етаж по етаж */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.facade-wrap .apt, .facade-wrap .na { animation: rise .5s ease backwards; animation-delay: calc(var(--d, 0) * 55ms + .1s); transform-box: fill-box; }

/* Етажен план — апартаментите се появяват последователно */
@keyframes fp-in { from { opacity: 0; } to { opacity: 1; } }
.fp-apt { animation: fp-in .6s ease backwards; animation-delay: calc(var(--i, 0) * 110ms); }
.fp-svg.hl .fp-apt:not(.current) { animation: none; }
.fp-tag { transition: transform .25s; transform-box: fill-box; transform-origin: center; }
.fp-apt[tabindex]:hover .fp-tag { transform: scale(1.12); }

/* Карти — по-жив hover */
.apt-card, .so, .done, .sec-card, .cred, .value { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .3s, background .3s; }
.apt-card:hover, .done:hover, .cred:hover, .value:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(60,48,34,.12); }
.done .img img, .so .img img { transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s, opacity .6s; }
.done:hover .img img { transform: scale(1.05); }
.so:hover .img img { filter: grayscale(.3); opacity: 1; }
.btn { transition: background .3s, border-color .3s, color .3s, transform .2s; }
.btn:active { transform: scale(.97); }

/* Лайтбокс със стрелки */
.lightbox img.swap { animation: fp-in .35s ease; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: background .25s;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox img { cursor: default; }

/* Мобилна лента с бързи действия */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 80;
    padding: 8px; border-radius: 20px; background: rgba(23,20,15,.92); backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0,0,0,.3);
    animation: fade-up .6s .6s both;
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; text-decoration: none; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; background: rgba(255,255,255,.08); }
  .mbar a.accent { background: var(--accent); color: var(--ink); }
  .mbar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
  body.has-mbar { padding-bottom: 84px; }

  .hero-x { min-height: 100svh; align-items: flex-end; }
  .hero-inner { padding-block: 40px 90px; }
  .hero-shade { background: linear-gradient(0deg, rgba(15,13,10,.95) 0%, rgba(15,13,10,.7) 55%, rgba(15,13,10,.25) 100%); }
  .quick { padding: 14px; gap: 14px; width: 100%; }
  .q-field, .q-go { width: 100%; }
  .seg { width: 100%; } .seg button { flex: 1; }
  .q-go { justify-content: space-between; }
  .hero-card, .scroll-cue { display: none; }
  .hero-stats { margin-top: 20px; }
  .ticker { margin-top: 60px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .ticker-track { animation: none !important; }
  .js [data-stagger] > *, .js .cx:not(.in) .pin { opacity: 1; transform: none; }
}
.fp-floors .fp-arrow { width: 36px; padding: 7px 0; background: rgba(255,255,255,.06); }
.fp-floors .fp-arrow:disabled { opacity: .3; cursor: default; }
.fp-floors button { transition: background .25s, color .25s; }
.fp-floors button:not(.active):not(:disabled):hover { background: rgba(255,255,255,.14); }
/* смяна на помещение — плавно */
#roomName { transition: opacity .25s; }
#roomName.swap { animation: fp-in .4s ease; }
.done-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.done-list li { display: grid; gap: 2px; padding: 18px 0; border-top: 1px solid var(--line); }
.done-list .pl { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.done-list b { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.done-list li > span:last-child { font-size: 13px; color: var(--muted); font-weight: 300; }
@media (max-width: 1020px) { .done-list { grid-template-columns: 1fr; } }
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery button { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-height: 920px) { .scroll-cue { display: none; } }

/* Hero — плавна смяна между двете актуални визуализации */
.hero-bg img { position: absolute; inset: 0; }
.hero-bg img.alt { opacity: 0; animation: kenburns 26s ease-in-out infinite alternate, xfade 16s ease-in-out infinite; }
@keyframes xfade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* Сравнение с плъзгач */
.compare { --pos: 50%; position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 34px 90px rgba(60, 48, 34, .22); background: var(--night); user-select: none; }
.compare img { display: block; width: 100%; height: auto; }
.compare .c-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .c-top img { height: 100%; object-fit: cover; }
.compare .c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.compare .c-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 999px;
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible ~ .c-handle span, .compare:has(input:focus-visible) .c-handle span { outline: 3px solid var(--accent); }
.compare .c-lbl { position: absolute; top: 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #fff; background: rgba(23,20,15,.7); border: 1px solid rgba(255,255,255,.2); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none; }
.compare .c-lbl-l { left: 16px; } .compare .c-lbl-r { right: 16px; }
@media (max-width: 760px) { .compare { border-radius: 16px; } .compare .c-lbl { font-size: 9.5px; top: 10px; } .compare .c-lbl-l { left: 10px; } .compare .c-lbl-r { right: 10px; } }
@media (prefers-reduced-motion: reduce) { .hero-bg img.alt { display: none; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 4px 0 0; font-size: 13px; min-height: 1.2em; }
.form-status.ok { color: #86efac; }
.form-status.err { color: #fca5a5; }
.r-tabs { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; gap: 4px; background: rgba(23,20,15,.7); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px; backdrop-filter: blur(6px); }
.r-tabs button { font: 600 11px var(--font-body); letter-spacing: .06em; color: #e7e5e4; background: transparent; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.r-tabs button.active { background: #fff; color: var(--ink); }
.pin.soon { background: rgba(23,20,15,.6); }
.pin.soon::before { background: #a8a29e; animation: none; }
.sec-chip.soon span { color: var(--muted); font-style: italic; }
.plan-thumb { width: 74px; height: 60px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); display: block; }
.sec-card.soon .fv { min-height: 60px; background: repeating-linear-gradient(45deg,#2b261e 0 6px,#231f19 6px 12px); }
.soon-card { margin-top: 10px; } .soon-card p { color: var(--ink-soft); margin: 0 0 8px; }
/* Обзаведен план с помещения */
.plan-stage { background: #fbfaf7; padding: 16px; }
.fplan { position: relative; max-width: 820px; margin: 0 auto; }
.fplan img { display: block; width: 100%; height: auto; max-height: min(70vh, 720px); object-fit: contain; border-radius: 10px; }
.hot { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.hot::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); transition: transform .25s; }
.hot.wet::after { background: #3b82a0; } .hot.out::after { background: #8a8172; }
.hot span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none;
  background: var(--night); color: #fff; font: 500 12px var(--font-body); padding: 6px 10px; border-radius: 999px; opacity: 0; transition: opacity .2s, transform .2s; }
.hot:hover span, .hot:focus-visible span, .hot.active span { opacity: 1; transform: translate(-50%, 0); }
.hot.active { background: var(--accent); } .hot.active::after { background: #fff; animation: spot-pulse 2.2s infinite; }
.muted { color: var(--muted); font-size: 12px; }
