/* ═══════════════════════════════════════════════
   AVA PRIME & PARTNERS — prototype stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --ink: #0b0d0f;
  --ink-2: #101316;
  --ink-3: #16191d;
  --ivory: #f3efe7;
  --ivory-2: #eae4d8;
  --gold: #c7a468;
  --gold-2: #b08d4f;
  --gold-on-light: #7a5f2a;
  --line-dark: rgba(243, 239, 231, 0.14);
  --line-light: rgba(11, 13, 15, 0.14);
  --muted-on-dark: rgba(243, 239, 231, 0.62);
  --muted-on-light: rgba(11, 13, 15, 0.6);
  --serif: "Cormorant", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 5rem);
  --sect: clamp(5rem, 11vw, 10rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* авторските display правила не бива да убиват hidden атрибута */
[hidden] { display: none !important; }

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

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

/* ── Typography helpers ─────────────────────── */

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.label::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.8rem;
  opacity: 0.7;
}

/* word-split spans (JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; }
.wi { display: inline-block; will-change: transform; }

/* ── Buttons ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}

.btn span { position: relative; z-index: 1; }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ivory);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn--gold:hover::after { transform: scaleX(1); transform-origin: left; }

.btn--outline { border: 1px solid var(--line-dark); color: var(--ivory); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--big { padding: 1.25rem 2.8rem; font-size: 0.9rem; }

/* ── Preloader ──────────────────────────────── */

.preloader {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__curtain {
  position: absolute; left: 0; width: 100%; height: 50.5%;
  background: var(--ink);
}
.preloader__curtain--1 { top: 0; }
.preloader__curtain--2 { bottom: 0; }

.preloader__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}

.preloader__mark { width: 64px; color: var(--gold); }
.preloader__mark path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.preloader__word {
  font-size: 0.85rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
}
.preloader__word span { color: var(--gold); }

.preloader__count {
  position: absolute; right: var(--pad); bottom: 2rem; z-index: 2;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: rgba(243, 239, 231, 0.22);
}

/* ── Cursor ─────────────────────────────────── */

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 300;
  transform: translate(-100px, -100px);
}

.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold);
}

.cursor-ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(199, 164, 104, 0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease,
              background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-ring__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-ring.is-view {
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor-ring.is-view .cursor-ring__label { opacity: 1; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Floating hover image ───────────────────── */

.float-img {
  position: fixed; top: 0; left: 0;
  width: clamp(220px, 22vw, 330px);
  aspect-ratio: 4 / 5;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
}
.float-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Header ─────────────────────────────────── */

.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem var(--pad);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.header.is-scrolled {
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem var(--pad);
}

.header__logo {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--ivory);
}

.logo-mark { width: 30px; flex: none; color: var(--gold); }

.logo-word {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.25;
  display: flex; flex-direction: column;
}
.logo-word em {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
}

.header__nav { display: flex; gap: 2.2rem; }

.header__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  position: relative;
  transition: color 0.3s ease;
}
.header__link::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.header__link:hover { color: var(--ivory); }
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 1.4rem; }

.burger {
  width: 44px; height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ivory);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ── Fullscreen menu ────────────────────────── */

.menu {
  position: fixed; inset: 0;
  z-index: 99;
  visibility: hidden;
  pointer-events: none;
}
.menu.is-open { pointer-events: auto; }

.menu__bg {
  position: absolute; inset: 0;
  background: var(--ink-2);
}

.menu__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3rem;
  padding: 6rem var(--pad) 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* auto margins center the block when there is room and allow scrolling when there is not */
.menu__nav { display: flex; flex-direction: column; margin-top: auto; }
.menu__meta { margin-bottom: auto; }

.menu__link {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 0.35em 0;
  overflow: hidden;
}
.menu__num {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.menu__word {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  display: inline-block;
  transition: color 0.3s ease, transform 0.4s ease;
}
.menu__link:hover .menu__word { color: var(--gold); transform: translateX(10px); }

.menu__meta { display: flex; gap: 4rem 4rem; flex-wrap: wrap; }
.menu__meta-label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted-on-dark); margin-bottom: 0.4rem;
}
.menu__meta-link { font-size: 1.05rem; color: var(--ivory); }
.menu__meta-link:hover { color: var(--gold); }

/* ── Hero ───────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) 2.4rem;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__img {
  width: 100%; height: 115%;
  object-fit: cover;
  transform-origin: center;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,13,15,0.55) 0%, rgba(11,13,15,0.25) 40%, rgba(11,13,15,0.88) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(11,13,15,0) 0%, rgba(11,13,15,0.35) 100%);
}

.hero__content { margin-top: auto; padding-top: 6.5rem; max-width: 1100px; }

.hero__eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.8vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 1.2rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--muted-on-dark);
  max-width: 640px;
  margin-bottom: 1.9rem;
}

/* search card */

.search {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 1.4rem;
  padding: 1.2rem 1.7rem;
  background: rgba(16, 19, 22, 0.66);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  margin-bottom: 1.9rem;
}

.search__field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.search__field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ivory);
  font: 500 1rem var(--sans); /* >=16px prevents iOS focus zoom */
  padding: 0.45rem 1.4rem 0.45rem 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c7a468' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  transition: border-color 0.3s ease;
}
.search__field select:focus { outline: none; border-color: var(--gold); }
.search__field select option { background: var(--ink-2); color: var(--ivory); }

/* hero stats */

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
}

.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.hero__scrollhint {
  position: absolute;
  right: calc(var(--pad) / 2);
  bottom: 2.4rem;
  width: 1px; height: 56px;
  background: rgba(243, 239, 231, 0.18);
  overflow: hidden;
}
.hero__scrollhint span {
  position: absolute; top: -40%;
  width: 100%; height: 40%;
  background: var(--gold);
  animation: scrollhint 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollhint {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* ── Marquee ────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 1.6rem 0;
  background: var(--ink);
}

.marquee__track { display: flex; width: max-content; will-change: transform; }

.marquee__inner {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 164, 104, 0.75);
  padding-right: 1rem;
}

/* ── Featured (horizontal) ──────────────────── */

.featured { background: var(--ink); }

.featured-pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 0 3rem;
  overflow: hidden;
}

.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--pad);
  margin-bottom: 3rem;
}

.featured__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.featured__counter {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--muted-on-dark);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.featured__counter i { font-style: normal; color: var(--gold); opacity: 0.6; }
.featured__counter span:first-child { color: var(--ivory); font-size: 2.2rem; }

.hwrap { overflow: hidden; }

.hcards {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}

.hcard {
  position: relative;
  /* width also derives from viewport height so the whole pinned block fits 100vh */
  width: min(clamp(320px, 38vw, 560px), calc((100vh - 34rem) * 4 / 3));
  flex: none;
}

.hcard__media {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.hcard__media img {
  width: 112%; height: 100%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
  transition: filter 0.4s ease;
}
.hcard:hover .hcard__media img { filter: brightness(1.08); }

.hcard__body { padding: 1.4rem 0.2rem 0; }

.hcard__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.hcard__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.hcard__price {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory);
  margin-bottom: 0.9rem;
}

.hcard__specs {
  display: flex; gap: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted-on-dark);
  margin-bottom: 1rem;
}
.hcard__specs li { position: relative; }
.hcard__specs li + li::before {
  content: "·";
  position: absolute; left: -0.85rem;
  color: var(--gold);
}

.hcard__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(199, 164, 104, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.3s ease;
}
.hcard__link:hover { border-color: var(--gold); }

.featured__progress {
  height: 1px;
  background: var(--line-dark);
  margin: 3.2rem var(--pad) 0;
  position: relative;
}
.featured__progress span {
  position: absolute; left: 0; top: -0.5px;
  height: 2px; width: 0%;
  background: var(--gold);
}

/* compact variant so the whole pinned block fits shorter laptop screens */
@media (min-width: 901px) and (max-height: 820px) {
  .featured-pin { padding: 3.2rem 0 1.2rem; }
  .featured__head { margin-bottom: 1.4rem; }
  .featured__head .h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
  .featured__counter span:first-child { font-size: 1.7rem; }
  .featured__progress { margin-top: 1.6rem; }
  .hcard { width: min(clamp(300px, 38vw, 560px), calc((100vh - 26rem) * 3 / 2)); }
  .hcard__media { aspect-ratio: 3 / 2; }
  .hcard__body { padding-top: 1rem; }
  .hcard__name { font-size: clamp(1.3rem, 1.8vw, 1.8rem); }
  .hcard__price { margin-bottom: 0.6rem; }
  .hcard__specs { margin-bottom: 0.7rem; }
}

/* ── Philosophy ─────────────────────────────── */

.philosophy {
  background: var(--ivory);
  color: var(--ink);
  padding: var(--sect) var(--pad);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}

.philosophy__img {
  margin-top: 2rem;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}

.mask-img { overflow: hidden; position: relative; }
.mask-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}

.philosophy__statement {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.28;
  margin-bottom: 2.4rem;
}
.philosophy__statement .sw { opacity: 0.14; }

.philosophy__text {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--muted-on-light);
  max-width: 560px;
  margin-bottom: 3rem;
}

.philosophy__signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
}
.philosophy__role {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin-top: 0.5rem;
}

/* light-section label/line color (darker gold for AA contrast on ivory) */
.philosophy .label, .districts .label, .team .label { color: var(--gold-on-light); }
.philosophy .label::before, .districts .label::before, .team .label::before { background: var(--gold-on-light); }

/* ── Services ───────────────────────────────── */

.services {
  background: var(--ink);
  padding: var(--sect) var(--pad);
}

.services__head { margin-bottom: 3.5rem; max-width: 900px; }

.services__list { border-top: 1px solid var(--line-dark); }

.service {
  display: grid;
  grid-template-columns: 4rem 1.2fr 1.6fr 3rem;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0.5rem;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  transition: padding-left 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.service:hover { padding-left: 1.4rem; }

.service__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
}

.service__name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  transition: color 0.3s ease;
}
.service:hover .service__name { color: var(--gold); }

.service__desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted-on-dark);
  max-width: 480px;
}

.service__arrow {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.service:hover .service__arrow { opacity: 1; transform: translateX(0); }

/* ── Districts ──────────────────────────────── */

.districts {
  background: var(--ivory);
  color: var(--ink);
  padding: var(--sect) var(--pad);
}

.districts__head { margin-bottom: 3.5rem; max-width: 900px; }

.districts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1.2rem;
}

.district {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: block;
}
.district--tall { grid-row: span 2; }

.district img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 1, 0.35, 1);
  will-change: transform;
}
.district:hover img { transform: scale(1.07); }

.district::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,13,15,0.85) 0%, rgba(11,13,15,0.05) 55%);
  transition: background 0.4s ease;
}

.district__info {
  position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 1;
  color: var(--ivory);
}
.district__info h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
}
.district__info p {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

/* ── Quote ──────────────────────────────────── */

.quote {
  background: var(--ink);
  padding: var(--sect) var(--pad);
  text-align: center;
  position: relative;
}

.quote__mark {
  position: absolute;
  top: clamp(1.5rem, 5vw, 4rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(7rem, 14vw, 13rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
}

.quote__text {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  max-width: 1050px;
  margin: 0 auto 2.2rem;
}
.quote__text .sw { opacity: 0.14; }

.quote__author {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Team ───────────────────────────────────── */

.team {
  background: var(--ivory);
  color: var(--ink);
  padding: var(--sect) var(--pad);
}

.team__head { margin-bottom: 3.5rem; }
.team__more { margin-top: 1.4rem; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.member__photo {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  margin-bottom: 1.3rem;
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s ease, transform 1s cubic-bezier(0.25, 1, 0.35, 1);
}
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.04); }

.member__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
}
.member__role {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin-top: 0.35rem;
}

/* ── CTA ────────────────────────────────────── */

.cta {
  position: relative;
  padding: clamp(7rem, 16vw, 14rem) var(--pad);
  overflow: hidden;
  text-align: center;
}

.cta__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta__media img {
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
}
.cta__shade { position: absolute; inset: 0; background: rgba(11, 13, 15, 0.78); }

.cta__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 1000px;
  margin: 0 auto 1.4rem;
}
.cta__title em { font-style: italic; color: var(--gold); font-weight: 400; }

.cta__sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted-on-dark);
  margin-bottom: 2.8rem;
}

/* ── Contact ────────────────────────────────── */

.contact {
  background: var(--ink-2);
  padding: var(--sect) var(--pad);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  max-width: 1500px;
  margin: 0 auto;
}

.contact__rows { margin-top: 2.8rem; }

.contact__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact__key {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  padding-top: 0.2rem;
}
.contact__val { font-size: 1rem; color: var(--ivory); }
a.contact__val:hover { color: var(--gold); }

.contact__social { display: flex; gap: 1.8rem; margin-top: 2.2rem; }
.contact__social a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  transition: color 0.3s ease;
}
.contact__social a:hover { color: var(--gold); }

/* form */

.contact__form { padding-top: 0.6rem; }

.field { position: relative; margin-bottom: 2rem; }

.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ivory);
  font: 400 1rem var(--sans);
  padding: 0.8rem 0 0.6rem;
  resize: none;
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field label {
  position: absolute; left: 0; top: 0.8rem;
  font-size: 0.95rem;
  color: var(--muted-on-dark);
  pointer-events: none;
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
  transform-origin: left top;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-success {
  margin-top: 1.4rem;
  font-size: 1rem;
  color: var(--gold);
}

/* ── Footer ─────────────────────────────────── */

.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 4.5rem var(--pad) 1.8rem;
}

.footer__mega {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding-bottom: 4rem;
}

.footer__mark { width: 56px; color: var(--gold); opacity: 0.9; }

.footer__word {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7.5vw, 6.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.05;
  color: var(--ivory);
}
.footer__word span { color: var(--gold); font-style: italic; font-weight: 400; }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}

.footer__links { display: flex; gap: 1.8rem; }
.footer__links a:hover, .footer__credit:hover { color: var(--gold); }
.footer__credit { letter-spacing: 0.06em; }

/* ── Responsive ─────────────────────────────── */

/* 7 линка в навигацията — стягане при по-тесни екрани */
@media (max-width: 1500px) {
  .header__nav { gap: 1.6rem; }
  .header__link { font-size: 0.76rem; letter-spacing: 0.12em; }
}

@media (max-width: 1200px) {
  .header__nav { gap: 1.2rem; }
  .header__cta { display: none; }
}

@media (max-width: 1100px) {
  .service { grid-template-columns: 3rem 1fr 2.4rem; }
  .service__desc { display: none; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }

  .search { grid-template-columns: 1fr 1fr; }
  .search__btn { grid-column: 1 / -1; justify-self: stretch; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .hero__scrollhint { display: none; }

  /* featured becomes vertical */
  .featured-pin { min-height: 0; padding: var(--sect) 0; }
  .featured__counter { display: none; }
  .featured__side { align-items: flex-start; }
  .hwrap { overflow: visible; }
  .hcards {
    width: auto;
    flex-direction: column;
    gap: 3.5rem;
  }
  .hcard { width: 100%; }
  .hcard__media img { width: 100%; }
  .featured__progress { display: none; }

  .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy__img { max-width: 420px; }

  .districts__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }

  .team__grid { grid-template-columns: 1fr; max-width: 460px; }

  .contact__grid { grid-template-columns: 1fr; }

  .br-desktop { display: none; }
}

@media (max-width: 560px) {
  .search { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .districts__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .district--tall { grid-row: auto; }
  .contact__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════
   ВЪТРЕШНИ СТРАНИЦИ
   ═══════════════════════════════════════════════ */

/* ── Page transition wipe ───────────────────── */

.wipe {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--ink);
}

/* ── Page hero ──────────────────────────────── */

.page-hero {
  background: var(--ink);
  padding: clamp(9rem, 16vh, 12rem) var(--pad) clamp(3rem, 6vh, 4.5rem);
  border-bottom: 1px solid var(--line-dark);
}

.page-hero__inner { max-width: 1500px; margin: 0 auto; }

.crumbs {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 1.4rem;
}
.crumbs a { transition: color 0.3s ease; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--gold); }
.crumbs i { font-style: normal; color: var(--gold); opacity: 0.55; }

.page-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.04;
  max-width: 1000px;
}
.page-hero__title em { font-style: italic; font-weight: 400; color: var(--gold); }

.page-hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 300;
  color: var(--muted-on-dark);
  max-width: 640px;
  margin-top: 1.3rem;
}

/* ── Секционни помощници ────────────────────── */

.sect { padding: var(--sect) var(--pad); }
.sect--ivory { background: var(--ivory); color: var(--ink); }
.sect--ink { background: var(--ink); }
.sect--ink2 { background: var(--ink-2); }
.sect__inner { max-width: 1500px; margin: 0 auto; }
.sect__head { margin-bottom: 3rem; max-width: 900px; }
.sect--ivory .label { color: var(--gold-on-light); }
.sect--ivory .label::before { background: var(--gold-on-light); }

.tlink {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(199, 164, 104, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.3s ease;
  white-space: nowrap;
}
.tlink:hover { border-color: var(--gold); }
.sect--ivory .tlink { color: var(--gold-on-light); border-color: rgba(122, 95, 42, 0.35); }
.sect--ivory .tlink:hover { border-color: var(--gold-on-light); }

.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--ink-3); }

/* ── Header активна навигация ───────────────── */

.header__link.is-active { color: var(--ivory); }
.header__link.is-active::after { transform: scaleX(1); }

/* ── Филтри (imoti) ─────────────────────────── */

.filters {
  background: var(--ink);
  padding: 0 var(--pad) 2.5rem;
}
.filters__inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: end;
  gap: 1.4rem;
  padding: 1.2rem 1.7rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
}
.filters .search__field label { margin-bottom: 0.4rem; }
.filters__reset {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  padding: 0.6rem 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.filters__reset:hover { color: var(--gold); }

.listings {
  background: var(--ink);
  padding: 0 var(--pad) var(--sect);
}
.listings__inner { max-width: 1500px; margin: 0 auto; }
.listings__count {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 1.8rem;
}
.listings__empty {
  text-align: center;
  padding: 4rem 0;
}
.listings__empty p {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

/* ── Карти на имоти (pgrid) ─────────────────── */

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1.2rem, 2vw, 2rem);
}

/* двуколонен вариант (свързани статии) — колабира в мобилните media правила по-долу */
.agrid--2 { grid-template-columns: 1fr 1fr; max-width: 1000px; }

.pcard { position: relative; }

.pcard__media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.35, 1), filter 0.4s ease;
  will-change: transform;
}
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard--sold .pcard__media img { filter: grayscale(0.55) brightness(0.85); }

.pcard__chips {
  position: absolute; top: 0.9rem; left: 0.9rem;
  display: flex; gap: 0.5rem;
}

.chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.35em 0.9em;
  border-radius: 100px;
}
.chip--sold { background: var(--ivory); color: var(--ink); }

.pcard__body { padding: 1.1rem 0.2rem 0; }
.pcard__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.pcard__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
.pcard__name a:hover { color: var(--gold); }
.pcard__price {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.pcard--sold .pcard__price { color: var(--muted-on-dark); }
.pcard__specs {
  display: flex; gap: 1.3rem;
  font-size: 0.78rem;
  color: var(--muted-on-dark);
  margin-bottom: 0.6rem;
}
.pcard__specs li { position: relative; }
.pcard__specs li + li::before {
  content: "·";
  position: absolute; left: -0.8rem;
  color: var(--gold);
}
.pcard__short {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted-on-dark);
  max-width: 400px;
}

/* карти върху светла секция */
.sect--ivory .pcard__specs, .sect--ivory .pcard__short { color: var(--muted-on-light); }
.sect--ivory .pcard__tag { color: var(--gold-on-light); }

/* ── Детайлна страница на имот ──────────────── */

.pd {
  background: var(--ink);
  padding: 0 var(--pad) var(--sect);
}
.pd__inner { max-width: 1500px; margin: 0 auto; }

.pd__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.pd__gallery { min-width: 0; }
.pd__main {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
}
.pd__main img { width: 100%; height: 100%; object-fit: cover; }

/* стрелките се показват при посочване; на тъч няма посочване, затова стоят винаги */
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(11, 13, 15, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ivory);
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.pd-nav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pd-nav--prev { left: 1rem; }
.pd-nav--next { right: 1rem; }
.pd__main:hover .pd-nav, .pd-nav:focus-visible { opacity: 1; }
.pd-nav:hover, .pd-nav:focus-visible { background: rgba(11, 13, 15, 0.72); border-color: var(--gold); color: var(--gold); }
@media (hover: none) { .pd-nav { opacity: 1; } }
@media (max-width: 560px) { .pd-nav { width: 40px; height: 40px; } .pd-nav--prev { left: 0.6rem; } .pd-nav--next { right: 0.6rem; } }

.pd__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.pd-thumb {
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  padding: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active, .pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { outline: 1px solid var(--gold); outline-offset: 2px; }

.pd__side { position: sticky; top: 6.5rem; }

.pd__badges { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.pd__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.pd__tag a:hover { text-decoration: underline; }
.pd__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}
.pd__price {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.pd__specs {
  display: flex;
  gap: 1.8rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 1.6rem;
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}
.pd__specs span {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivory);
  line-height: 1.1;
}

.agent-card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 1.3rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  margin-bottom: 1.4rem;
}
.agent-card__photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.agent-card__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.agent-card__role {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin: 0.25rem 0 0.55rem;
}
.agent-card__line { display: block; font-size: 0.9rem; color: var(--ivory); }
.agent-card__line:hover { color: var(--gold); }

.pd__cta { display: flex; flex-direction: column; gap: 0.8rem; }
.pd__cta .btn { justify-content: center; }

.pd__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vh, 4rem);
}

.pd__desc p {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(243, 239, 231, 0.82);
  margin-bottom: 1.2rem;
  max-width: 720px;
}

.pd__h {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 2.2rem 0 1.1rem;
}
.pd__desc .pd__h:first-child { margin-top: 0; }

.pd__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 2rem;
}
.pd__features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: rgba(243, 239, 231, 0.85);
}
.pd__features li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 0.65rem; height: 1px;
  background: var(--gold);
}

.pd__table { border-top: 1px solid var(--line-dark); }
.pd-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.pd-row dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  padding-top: 0.2rem;
}
.pd-row dd { font-size: 0.95rem; }

.pd-district {
  margin-top: 2.4rem;
  padding: 1.6rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
}
.pd-district h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 0.2rem; }
.pd-district__range { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.pd-district p { font-size: 0.92rem; font-weight: 300; color: var(--muted-on-dark); margin-bottom: 1rem; }

.pd__notfound {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
  padding: var(--sect) var(--pad);
}
.pd__notfound h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }

/* ── Квартали (редове) ──────────────────────── */

.drow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
  border-bottom: 1px solid var(--line-light);
}
.drow:last-child { border-bottom: none; }
.drow:nth-child(even) .drow__media { order: 2; }

.drow__media {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.drow__media img { width: 100%; height: 100%; object-fit: cover; }

.drow__name {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.drow__profile {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: 1.2rem;
}
.drow__blurb {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-on-light);
  max-width: 520px;
  margin-bottom: 1.6rem;
}
.drow__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.5rem;
  margin-bottom: 1.8rem;
}
.drow__meta p {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}
.drow__meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-top: 0.2rem;
}

/* ── Стъпки / процес (услуги, продай) ───────── */

.svc {
  padding: clamp(3rem, 7vh, 5rem) 0;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2rem, 4vw, 5rem);
}
.svc:last-of-type { border-bottom: none; }
.svc__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.svc__name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.svc__desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-on-dark);
  max-width: 480px;
  margin-bottom: 1.6rem;
}

.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 0 1.1rem 3.4rem;
  border-bottom: 1px solid var(--line-dark);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.15rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
}
.steps strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.steps p { font-size: 0.92rem; font-weight: 300; color: var(--muted-on-dark); }

/* ── Ценности / мрежи от карти ──────────────── */

.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.vcard {
  padding: 2rem 1.8rem;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
}
.sect--ink .vcard, .sect--ink2 .vcard {
  border-color: var(--line-dark);
  background: var(--ink-2);
}
.vcard__num { font-family: var(--serif); font-size: 1rem; color: var(--gold-on-light); margin-bottom: 1.2rem; }
.sect--ink .vcard__num, .sect--ink2 .vcard__num { color: var(--gold); }
.vcard h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; margin-bottom: 0.6rem; }
.vcard p { font-size: 0.95rem; font-weight: 300; color: var(--muted-on-light); }
.sect--ink .vcard p, .sect--ink2 .vcard p { color: var(--muted-on-dark); }

/* ── Времева линия (за нас) ─────────────────── */

.timeline {
  position: relative;
  max-width: 760px;
  padding-left: 2.2rem;
}
.timeline::before {
  content: "";
  position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line-light);
}
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -2.2rem; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-on-light);
  transform: translateX(0.5px);
}
.tl-item time {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-on-light);
  display: block;
  margin-bottom: 0.2rem;
}
.tl-item p { font-size: 0.98rem; font-weight: 300; color: var(--muted-on-light); max-width: 560px; }
.tl-item strong { color: var(--ink); font-weight: 600; }

/* ── Статии ─────────────────────────────────── */

.agrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
.acard { display: block; }
.acard__media {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.1rem;
}
.acard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.35, 1);
}
.acard:hover .acard__media img { transform: scale(1.05); }
.acard__meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: 0.5rem;
}
.sect--ink .acard__meta, .sect--ink2 .acard__meta { color: var(--gold); }
.acard__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.acard:hover .acard__title { color: var(--gold-2); }
.acard__excerpt { font-size: 0.93rem; font-weight: 300; color: var(--muted-on-light); }
.sect--ink .acard__excerpt, .sect--ink2 .acard__excerpt { color: var(--muted-on-dark); }

/* пълна статия */
.art {
  background: var(--ivory);
  color: var(--ink);
  padding: var(--sect) var(--pad);
}
.art__inner { max-width: 780px; margin: 0 auto; }
.art__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin-bottom: 2.5rem;
}
.art__meta b { color: var(--gold-on-light); }

.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 2.6rem 0 1rem;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 2rem 0 0.8rem;
}
.prose p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(11, 13, 15, 0.82);
  margin-bottom: 1.2rem;
}
.prose ul {
  margin: 0 0 1.4rem;
  padding-left: 0;
}
.prose li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(11, 13, 15, 0.82);
  margin-bottom: 0.55rem;
}
.prose li::before {
  content: "";
  position: absolute; left: 0; top: 0.75em;
  width: 0.7rem; height: 1px;
  background: var(--gold-on-light);
}
.prose blockquote {
  margin: 2.2rem 0;
  padding: 1.6rem 2rem;
  border-left: 2px solid var(--gold-on-light);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 6px 6px 0;
}
.prose blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}
.prose blockquote p:last-child { margin-bottom: 0; font-size: 0.9rem; font-family: var(--sans); font-style: normal; }
.prose strong { font-weight: 600; color: var(--ink); }

/* правни страници ползват .prose върху .art */

/* ── Акордеон ───────────────────────────────── */

.acc-group { border-top: 1px solid var(--line-light); margin-bottom: 3rem; }
.sect--ink .acc-group, .sect--ink2 .acc-group { border-color: var(--line-dark); }

.acc { border-bottom: 1px solid var(--line-light); }
.sect--ink .acc, .sect--ink2 .acc { border-color: var(--line-dark); }

.acc__btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.4rem 0.2rem;
}
.acc__q {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.3s ease;
}
.acc__btn:hover .acc__q { color: var(--gold-2); }
.acc__icon {
  flex: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-on-light);
  transition: transform 0.4s ease;
}
.sect--ink .acc__icon, .sect--ink2 .acc__icon { color: var(--gold); }
.acc.is-open .acc__icon { transform: rotate(45deg); }

.acc__body { height: 0; overflow: hidden; }
.acc__content { padding: 0 0.2rem 1.6rem; max-width: 720px; }
.acc__content p {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-on-light);
  margin-bottom: 0.8rem;
}
.sect--ink .acc__content p, .sect--ink2 .acc__content p { color: var(--muted-on-dark); }
.acc__content ul { padding-left: 1.2rem; }
.acc__content li { font-size: 0.95rem; font-weight: 300; color: var(--muted-on-light); margin-bottom: 0.4rem; list-style: disc; }
.acc__content strong { font-weight: 600; }

/* ── Карта (контакт) ────────────────────────── */

.map-embed {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line-dark);
  aspect-ratio: 16 / 9;
}
.map-embed iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.95) brightness(0.9);
  transition: filter 0.5s ease;
}
.map-embed:hover iframe { filter: grayscale(0.2) contrast(1) brightness(1); }

/* ── Лента CTA (band) ───────────────────────── */

.band {
  padding: clamp(4rem, 9vh, 6.5rem) var(--pad);
  text-align: center;
}
.band--gold { background: var(--gold); color: var(--ink); }
.band h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 1rem;
}
.band p { font-weight: 300; max-width: 560px; margin: 0 auto 2rem; opacity: 0.8; }
.band--gold .btn--gold { background: var(--ink); color: var(--ivory); }
.band--gold .btn--gold::after { background: var(--ink-3); }

/* ── Форми: селекти на тъмно (продай) ───────── */

.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ivory);
  font: 400 1rem var(--sans);
  padding: 0.8rem 1.4rem 0.6rem 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c7a468' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  transition: border-color 0.3s ease;
}
.field select:focus { outline: none; border-color: var(--gold); }
.field select option { background: var(--ink-2); color: var(--ivory); }
.field--select label {
  position: static;
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 0.4rem 0 1.8rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted-on-dark);
}
.consent input {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 0.2rem;
  accent-color: var(--gold);
}
.consent a { text-decoration: underline; }
.consent a:hover { color: var(--gold); }

/* ── Footer колони ──────────────────────────── */

.footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  max-width: 1500px;
  margin: 0 auto;
}
.footer__blurb {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted-on-dark);
  max-width: 340px;
  margin-bottom: 1.4rem;
}
.footer__contact a, .footer__contact p {
  display: block;
  font-size: 0.92rem;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}
.footer__contact a:hover { color: var(--gold); }
.footer__contact p { color: var(--muted-on-dark); }
.footer__head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  margin-bottom: 0.55rem;
  transition: color 0.3s ease;
}
.footer__col a:hover { color: var(--ivory); }
.footer__line {
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  margin-bottom: 0.55rem;
}

/* ── 404 ────────────────────────────────────── */

.nf {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad);
  background: var(--ink);
}
.nf__code {
  font-family: var(--serif);
  font-size: clamp(7rem, 22vw, 16rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 164, 104, 0.75);
}
.nf h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; margin: 1.2rem 0 0.6rem; }
.nf p { color: var(--muted-on-dark); font-weight: 300; margin-bottom: 2rem; }
.nf__links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── Responsive за новите компоненти ────────── */

@media (max-width: 1100px) {
  .pgrid, .agrid { grid-template-columns: 1fr 1fr; }
  .filters__inner { grid-template-columns: 1fr 1fr; }
  .filters__reset { grid-column: 1 / -1; justify-self: start; }
  .pd__top, .pd__grid { grid-template-columns: 1fr; }
  .pd__side { position: static; }
  .svc { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 900px) {
  .vgrid { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 1fr; gap: 1.6rem; }
  .drow:nth-child(even) .drow__media { order: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .band .btn {
    white-space: normal;
    padding: 1rem 1.6rem;
    max-width: 100%;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .pgrid, .agrid, .agrid--2 { grid-template-columns: 1fr; }
  .filters__inner { grid-template-columns: 1fr; }
  .pd__thumbs { grid-template-columns: repeat(4, 1fr); }
  .pd__features { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 2.2rem; }
  .pd__specs { gap: 1.2rem; flex-wrap: wrap; }
}

/* ── Контраст на hover върху светли секции ──── */

.sect--ivory .acard:hover .acard__title,
.sect--ivory .acc__btn:hover .acc__q {
  color: var(--gold-on-light);
}

/* ── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero__scrollhint span { animation: none; }
  html { scroll-behavior: auto; }

  /* хоризонталната галерия няма pin — картите се подреждат вертикално */
  .hwrap { overflow: visible; }
  .hcards { width: auto; flex-direction: column; gap: 3.5rem; }
  .hcard { width: 100%; }
  .featured-pin { min-height: 0; }
  .featured__progress, .featured__counter { display: none; }
}


/* ═══════════ Панел: динамични допълнения ═══════════ */
.chip--reserved { border-color: var(--gold); color: var(--gold); }
.preview-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 2000; display: flex; justify-content: center; gap: 1.2rem; padding: 0.55rem 1rem; background: var(--gold); color: var(--ink); font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.preview-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.has-preview .header { top: 2.2rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-error { margin-top: 1rem; color: #c96f5f; font-size: 0.9rem; }
