/* barriosdepunta — прибрежный редакционный стиль: камень, лесной зеленый, латунь */
:root {
  --paper: #F7F5F0;
  --stone: #ECE8DE;
  --stone-2: #E1DBCD;
  --surface: #FFFEFB;
  --forest: #173A30;
  --forest-2: #10291F;
  --ink: #1D2621;
  --muted: #5E6862;
  --faint: #6C7670;
  --line: #DCD6C8;
  --line-2: #C7BFAE;
  --brass: #A88450;
  --brass-ink: #7A5C2E;
  --brass-soft: #F1E8D6;
  --sage: #DDE6DE;
  --on-dark: #F7F5F0;
  --on-dark-2: #C9CFC7;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: 32px;
  --head-h: 72px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--forest); color: var(--on-dark); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

.display { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.01em; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--brass-ink); margin-bottom: 14px; }
.lead, .section__lead { font-size: 17px; color: var(--muted); max-width: 58ch; margin: 14px 0 0; }
.note { color: var(--muted); font-size: 14px; }
.link { color: var(--forest); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration-thickness: 2px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px;
  border: 1px solid var(--forest); border-radius: var(--r); background: var(--forest); color: var(--on-dark);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--forest-2); }
.btn--line { background: transparent; color: var(--forest); border-color: var(--line-2); }
.btn--line:hover { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: #1B1408; }
.btn--brass:hover { background: #B99462; border-color: #B99462; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn.is-on { background: var(--sage); color: var(--forest); border-color: var(--forest); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }

/* Шапка */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: var(--paper); border-bottom: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
.site-head--over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: var(--on-dark); }
.site-head--over::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(to bottom, rgba(10, 22, 17, .45), transparent); pointer-events: none; transition: opacity .25s; }
.site-head--over.is-solid { background: var(--paper); color: var(--ink); border-color: var(--line); }
.site-head--over.is-solid::before { opacity: 0; }
.site-head__row { position: relative; display: flex; align-items: center; gap: 36px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; stroke-width: 1.4; }
.logo__text { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .005em; line-height: 1; }
.logo__text i, .site-foot__brand i { font-weight: 500; color: var(--brass); }
.site-head--over:not(.is-solid) .logo__text i { color: #E2C792; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: currentColor; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brass); color: #1B1408; font-size: 12px; font-weight: 700; margin-left: 4px; }
.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.langs a { text-decoration: none; padding: 5px 7px; opacity: .65; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { opacity: 1; border-bottom: 1px solid currentColor; }

/* Главная: hero */
.hero { position: relative; min-height: min(100vh, 940px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--forest-2); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroIn 1.6s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 15, .1) 30%, rgba(8, 20, 15, .72) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 160px; padding-bottom: 44px; }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7vw, 104px); line-height: .98; letter-spacing: -0.015em; max-width: 13ch; }
.hero__sub { margin: 22px 0 0; max-width: 56ch; font-size: 18px; color: var(--on-dark-2); }
@keyframes heroIn { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }

.finder { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 0; margin-top: 40px; max-width: 1040px; background: rgba(247, 245, 240, .1); border: 1px solid rgba(247, 245, 240, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.finder__field { display: grid; gap: 2px; padding: 14px 20px 10px; border-right: 1px solid rgba(247, 245, 240, .2); font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--on-dark-2); }
.finder select { width: 100%; border: 0; background: transparent; color: var(--on-dark); font-size: 17px; font-weight: 500; padding: 4px 26px 6px 0; min-height: 36px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F7F5F0' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.finder select option { color: var(--ink); }
.finder .btn { height: 100%; min-height: 72px; padding: 0 34px; border-radius: 0; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(247, 245, 240, .22); }
.hero__stats div { display: flex; flex-direction: column-reverse; padding-right: 44px; margin-right: 44px; border-right: 1px solid rgba(247, 245, 240, .22); }
.hero__stats div:last-child { border: 0; }
.hero__stats dt { font-size: 13px; color: var(--on-dark-2); }
.hero__stats dd { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; }

/* Секции */
.section { padding: 104px 0; }
.section--stone { background: var(--stone); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.page-head { padding-top: 64px; padding-bottom: 40px; }

/* Рельс зон */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-nav { display: flex; gap: 10px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; color: var(--on-dark); text-decoration: none; background: var(--forest); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 20, 15, .78)); }
.tile:hover img { transform: scale(1.04); }
.tile__text { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: grid; gap: 4px; }
.tile__name { font-family: var(--serif); font-size: 32px; line-height: 1.05; }
.tile__n { font-size: 14px; color: var(--on-dark-2); }
.tile__intro { font-size: 14px; color: var(--on-dark-2); max-width: 46ch; margin-top: 6px; }
.tile--wide { aspect-ratio: 4 / 3; }
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 104px; }

/* Карточки */
.grid { display: grid; gap: 44px 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-2); }
.card__media > a, .card__media img { display: block; width: 100%; height: 100%; }
.card__media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__type { position: absolute; left: 14px; top: 14px; padding: 5px 11px; background: rgba(247, 245, 240, .92); color: var(--ink); font-size: 12px; font-weight: 600; }
.card__save { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 245, 240, .92); cursor: pointer; transition: background .2s; }
.card__save input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.card__save svg { width: 18px; height: 18px; stroke-width: 1.8; color: var(--forest); pointer-events: none; }
.card__save .i-check { display: none; }
.card__save:has(input:checked) { background: var(--forest); }
.card__save:has(input:checked) svg { color: var(--on-dark); }
.card__save:has(input:checked) .i-plus { display: none; }
.card__save:has(input:checked) .i-check { display: block; }
.card__save:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.card__loc { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card__loc span { color: var(--brass-ink); }
.card__title { margin-top: 4px; font-family: var(--serif); font-size: 29px; line-height: 1.08; font-weight: 500; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card__tagline { margin: 12px 0 0; color: var(--muted); font-size: 16px; max-width: 52ch; }
.card__specs { margin: 12px 0 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--ink); }
.card__specs span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--line-2); margin: 0 12px; vertical-align: -1px; }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 16px; }
.card__price { margin: 0; font-weight: 700; font-size: 15px; }
.card__price span { font-weight: 500; color: var(--muted); }
.card__fill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.card__fill i { width: 36px; height: 3px; background: linear-gradient(90deg, var(--brass) var(--p), var(--line) var(--p)); }
.card--large { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; margin-bottom: 64px; background: var(--surface); }
.card--large .card__media { aspect-ratio: auto; min-height: 460px; }
.card--large .card__body { padding: 48px 44px 36px; }
.card--large .card__title { font-size: 48px; margin-top: 10px; }
.card--large .card__specs { font-size: 15px; margin-top: 24px; }

/* Побережье */
.coast-band { background: var(--forest); color: var(--on-dark); padding: 96px 0 72px; }
.coast-band__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.coast-band__head p { color: var(--on-dark-2); max-width: 44ch; margin: 0; }
.coast { margin: 0; }
.coast__frame { position: relative; aspect-ratio: 1000 / 300; }
.coast__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.coast__sea { fill: rgba(247, 245, 240, .07); }
.coast__shore { fill: none; stroke: #CDB88E; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.coast__lagoon { fill: rgba(247, 245, 240, .08); stroke: rgba(205, 184, 142, .6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.coast__zone { position: absolute; transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--on-dark-2); text-decoration: none; white-space: nowrap; }
.coast__zone:hover { color: var(--on-dark); }
.coast__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #E2C792; box-shadow: 0 0 0 4px rgba(226, 199, 146, .18); z-index: 1; transition: transform .2s; }
.coast__dot:hover, .coast__dot:focus-visible { transform: scale(1.5); z-index: 3; background: var(--on-dark); }
.coast__tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) scale(.667); transform-origin: bottom center; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; padding: 7px 12px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.coast__tip small { display: block; font-weight: 400; color: var(--muted); }
.coast__dot:hover .coast__tip, .coast__dot:focus-visible .coast__tip { opacity: 1; }

/* Редакционный сплит */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--stone); }
.split__media { min-height: 640px; position: relative; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__text { padding: 104px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 104px 80px; align-self: center; }
.split__text > p { max-width: 50ch; color: var(--muted); font-size: 17px; margin-top: 20px; }
.conf-legend { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 18px; max-width: 520px; }
.conf-legend li { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.conf-legend b { color: var(--ink); font-weight: 600; }

.cta { text-align: center; }
.cta__inner { max-width: 760px; }
.cta p { color: var(--muted); font-size: 17px; margin: 20px auto 32px; max-width: 56ch; }

/* Маркеры источников */
.src { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 6px; border-radius: 10px; font-size: 11px; font-weight: 700; text-decoration: none; vertical-align: 2px; flex: none; font-variant-numeric: tabular-nums; }
.src--verified { background: var(--sage); color: var(--forest); }
.src--single_source { background: var(--brass-soft); color: var(--brass-ink); }
.src--estimate { background: transparent; color: var(--muted); border: 1px dashed var(--faint); }
.conf-legend .src { margin: 2px 0 0; }

/* Каталог */
.catalog { --bar-h: 68px; }
.filterbar { position: sticky; top: var(--head-h); z-index: 40; display: flex; align-items: center; gap: 10px; height: var(--bar-h); padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.filterbar__search { position: relative; flex: 0 1 280px; }
.filterbar__search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.filterbar__search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); font-size: 15px; }
.pill { position: relative; }
.pill summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; user-select: none; }
.pill summary::-webkit-details-marker { display: none; }
.pill summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 4px; }
.pill[open] summary, .pill summary:hover { border-color: var(--forest); }
.pill__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--forest); color: var(--on-dark); font-size: 12px; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; width: 300px; max-height: 70vh; overflow: auto; padding: 16px 20px 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px -12px rgba(23, 58, 48, .28); }
.pop--wide { width: 560px; }
.pop--nums { display: grid; gap: 14px; }
.pop--nums label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pop input[type=number] { height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--paper); font-size: 16px; width: 100%; }
.pop__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pop fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.pop legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.pop__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 12px 0 16px; background: var(--surface); border-top: 1px solid var(--line); margin-top: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 15px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--forest); margin: 0; flex: none; }
.opt span { flex: 1; }
.opt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.opt--off { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 18px; font-size: 14px; cursor: pointer; }
.chip small { color: var(--muted); }
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.chip input:checked + span small { color: var(--on-dark-2); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.filterbar__clear { font-size: 14px; font-weight: 600; color: var(--forest); white-space: nowrap; text-underline-offset: 4px; }
.filterbar__sort { margin-left: auto; }
.filterbar__sort select { height: 44px; padding: 0 36px 0 16px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D2621' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 15px; cursor: pointer; }

.catalog__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 42%); }
.results { padding: 36px var(--gutter) 80px; min-width: 0; }
.results__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.results__head h1 { font-family: var(--serif); font-size: 44px; line-height: 1; }
.results__head p { margin: 0; color: var(--muted); }
.catalog__map { position: sticky; top: calc(var(--head-h) + var(--bar-h)); height: calc(100vh - var(--head-h) - var(--bar-h)); border-left: 1px solid var(--line); }
.map { height: 380px; background: var(--stone-2); z-index: 0; }
.map--catalog { height: 100%; }
.map-toggle { display: none; }
.empty { padding: 56px 24px; border: 1px solid var(--line); text-align: center; color: var(--muted); background: var(--surface); }
.empty__title { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-bottom: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 48px; color: var(--muted); }
.leaflet-container { font: 14px/1.4 var(--sans); }
.leaflet-popup-content-wrapper { border-radius: var(--r); }
.leaflet-popup-content a { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--forest); text-decoration: none; }
.price-pin { background: var(--forest); color: var(--on-dark); font: 700 12px/1 var(--sans); padding: 7px 9px; border-radius: 14px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); transform: translate(-50%, -50%); display: inline-block; transition: background .15s, transform .15s; }
.price-pin.is-hot { background: var(--brass); color: #1B1408; transform: translate(-50%, -50%) scale(1.15); }
.leaflet-div-icon { background: none; border: 0; }
.price-pin--dot { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--paper); }
.leaflet-tile-pane { filter: grayscale(.55) sepia(.18) saturate(.9) brightness(1.03); }

/* Поселок */
.barrio__hero { position: relative; height: min(88vh, 860px); min-height: 520px; color: var(--on-dark); background: var(--forest-2); overflow: hidden; }
.barrio__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroIn 1.4s var(--ease) both; }
.barrio__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,15,.15) 35%, rgba(8,20,15,.75)); }
.barrio__hero-text { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 1; }
.barrio__hero h1 { font-family: var(--serif); font-size: clamp(48px, 7.5vw, 110px); line-height: .95; letter-spacing: -0.015em; max-width: 14ch; }
.barrio__sub { margin: 16px 0 0; font-size: 18px; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.barrio__km { padding: 3px 10px; border: 1px solid rgba(247,245,240,.4); font-size: 14px; }
.barrio__photo-note { position: absolute; right: var(--gutter); bottom: 18px; z-index: 1; margin: 0; font-size: 12px; color: var(--on-dark-2); font-style: italic; }
.crumbs { font-size: 14px; margin-bottom: 18px; color: var(--on-dark-2); }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(247,245,240,.4); }
.crumbs a:hover { color: var(--on-dark); }
.statband { background: var(--forest); color: var(--on-dark); }
.statband__row { display: flex; flex-wrap: wrap; margin: 0 auto; padding-top: 30px; padding-bottom: 30px; }
.statband__row div { flex: 1 1 160px; padding: 4px 28px; border-left: 1px solid rgba(247,245,240,.18); }
.statband__row div:first-child { border-left: 0; padding-left: 0; }
.statband dd { margin: 0; font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.statband dt { font-size: 13px; color: var(--on-dark-2); margin-top: 4px; }
.subnav { position: sticky; top: var(--head-h); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav__row { display: flex; align-items: center; gap: 32px; height: 60px; overflow-x: auto; scrollbar-width: none; }
.subnav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 18px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-bottom-color: var(--brass); }
.subnav__cmp { margin-left: auto; white-space: nowrap; }
.barrio__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 88px; padding-top: 72px; padding-bottom: 104px; }
.barrio__tagline { font-family: var(--serif); font-size: 36px; line-height: 1.15; max-width: 26ch; margin-bottom: 28px; }
.prose p { max-width: 66ch; font-size: 17px; line-height: 1.75; color: #33403A; }
.block { margin-top: 72px; }
.block h2.display, h2.display.block { font-size: 38px; margin-bottom: 24px; }
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; }
.amen li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.amen svg { width: 26px; height: 26px; color: var(--brass-ink); flex: none; }
.passport { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; }
.passport__group h2 { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brass-ink); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.passport dl { margin: 0; }
.passport dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.passport dt { color: var(--muted); }
.passport dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.passport .is-empty dd { font-weight: 400; color: var(--faint); font-style: italic; }
.passport__missing { grid-column: 1 / -1; margin: 0; padding: 18px 22px; background: var(--brass-soft); font-size: 15px; }
.sources ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sources li { display: flex; gap: 14px; font-size: 15px; scroll-margin-top: 150px; }
.sources li:target { background: var(--brass-soft); margin: -8px; padding: 8px; }
.sources li .src { margin: 2px 0 0; }
.sources a { font-weight: 600; color: var(--forest); word-break: break-word; }
.sources__conf { color: var(--muted); font-size: 13px; margin-left: 8px; }
.sources li p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.panel { position: sticky; top: calc(var(--head-h) + 84px); display: grid; gap: 12px; padding: 30px; background: var(--surface); border: 1px solid var(--line); }
.panel__facts { margin: 0 0 12px; display: grid; gap: 16px; }
.panel__facts div { display: flex; flex-direction: column-reverse; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel__facts dt { font-size: 13px; color: var(--muted); }
.panel__facts dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.panel__meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.fill { display: inline-flex; align-items: center; gap: 8px; }
.fill__bar { width: 48px; height: 3px; background: var(--line); overflow: hidden; }
.fill__bar i { display: block; height: 100%; background: var(--brass); }

/* Зона */
.zone-hero { position: relative; min-height: min(72vh, 680px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--forest-2); overflow: hidden; }
.zone-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zone-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,15,.15) 35%, rgba(8,20,15,.75)); }
.zone-hero__text { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 56px; }
.zone-hero h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 100px); line-height: .95; }
.zone-hero p { max-width: 58ch; font-size: 18px; margin: 18px 0 0; color: var(--on-dark-2); }

/* Сравнение */
.cmp-scroll { overflow-x: auto; margin-bottom: 104px; background: var(--surface); border: 1px solid var(--line); }
.cmp { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; table-layout: fixed; }
.cmp th, .cmp td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody th { font-weight: 400; color: var(--muted); width: 22%; }
.cmp td { font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp td.is-empty { color: var(--faint); font-weight: 400; }
.cmp td.is-best { background: var(--sage); color: var(--forest); box-shadow: inset 2px 0 0 var(--forest); }
.cmp thead th { padding-top: 20px; padding-bottom: 20px; }
.cmp thead img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.cmp thead a { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; font-weight: 500; text-decoration: none; }
.cmp thead a:hover { text-decoration: underline; }
.cmp thead span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 4px; }
.cmp thead .link { font-size: 13px; margin-top: 8px; }
.cmp__section th { background: var(--stone); color: var(--brass-ink) !important; font-weight: 700 !important; font-size: 13px; letter-spacing: .04em; }

.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--forest-2); color: var(--on-dark); }
.compare-bar__row { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.compare-bar__list { list-style: none; display: flex; gap: 8px; margin: 0 auto 0 0; padding: 0; flex-wrap: wrap; }
.compare-bar__list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 14px; border: 1px solid rgba(247,245,240,.28); border-radius: 18px; font-size: 14px; }
.compare-bar__list button { border: 0; background: none; color: var(--on-dark); cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 6px; opacity: .7; }
.compare-bar__list button:hover { opacity: 1; }
.compare-bar .btn { background: var(--brass); border-color: var(--brass); color: #1B1408; }
.compare-bar .btn--line { background: transparent; border-color: rgba(247,245,240,.35); color: var(--on-dark); }
.has-compare-bar { padding-bottom: 68px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--on-dark); padding: 12px 18px; z-index: 80; font-size: 15px; }

.prose-page { max-width: 800px; padding-top: 72px; padding-bottom: 104px; }
.prose-page h1 { margin-bottom: 28px; }

/* Подвал */
.site-foot { background: var(--forest-2); color: var(--on-dark-2); padding: 88px 0 32px; font-size: 14px; }
.site-foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(247,245,240,.14); }
.site-foot__brand { font-family: var(--serif); font-size: 32px; color: var(--on-dark); margin-bottom: 12px; line-height: 1; }
.site-foot__about p { max-width: 38ch; }
.site-foot__small { font-size: 13px; opacity: .8; }
.site-foot nav { display: grid; gap: 9px; align-content: start; }
.site-foot__h { color: var(--on-dark); font-weight: 600; margin-bottom: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.site-foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.site-foot__langs { display: flex; gap: 18px; }
.site-foot__langs a[aria-current] { color: var(--on-dark); }

/* Адаптив */
@media (max-width: 1180px) {
  .catalog__split { grid-template-columns: 1fr; }
  .catalog__map { display: none; position: fixed; inset: calc(var(--head-h) + var(--bar-h)) 0 0 0; height: auto; z-index: 35; border: 0; }
  .catalog.is-map .catalog__map { display: block; }
  .map-toggle { display: inline-flex; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 45; padding: 12px 24px; border: 0; border-radius: 24px; background: var(--forest); color: var(--on-dark); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; }
  .has-compare-bar .map-toggle { bottom: 88px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .barrio__layout { grid-template-columns: 1fr; gap: 48px; }
  .barrio__aside { order: -1; }
  .panel { position: static; }
  .panel__facts { grid-template-columns: repeat(3, 1fr); }
  .card--large { grid-template-columns: 1fr; }
  .card--large .card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 420px; }
  .split__text { padding: 72px var(--gutter); }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .site-foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --head-h: 64px; }
  .site-nav { gap: 18px; }
  .finder { grid-template-columns: 1fr; }
  .finder__field { border-right: 0; border-bottom: 1px solid rgba(247,245,240,.2); }
  .finder .btn { min-height: 56px; }
  .hero__stats div { padding-right: 24px; margin-right: 24px; }
  .filterbar { overflow-x: auto; scrollbar-width: none; }
  .filterbar::-webkit-scrollbar { display: none; }
  .filterbar__search { flex: 0 0 200px; }
  .pop { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 75vh; z-index: 90; box-shadow: 0 -20px 60px rgba(0,0,0,.25); }
  .pop--wide { width: auto; }
  .passport { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-head__row { gap: 14px; }
  .site-nav { display: none; }
  .langs { margin-left: auto; }
  .logo__text { font-size: 22px; }
  .hero { min-height: 100svh; }
  .hero__inner { padding-top: 120px; padding-bottom: 28px; }
  .hero__sub { font-size: 16px; }
  .hero__stats div { flex: 1 1 40%; border: 0; margin: 0 0 10px; padding: 0; }
  .hero__stats dd { font-size: 28px; }
  .grid--3 { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 74%; }
  .zone-grid { grid-template-columns: 1fr; }
  .card--large .card__body { padding: 28px 22px; }
  .card--large .card__title { font-size: 36px; }
  .coast__zone { font-size: 11px; }
  .coast__frame { aspect-ratio: 1000 / 440; }
  .statband dd { font-size: 28px; }
  .statband__row div { flex: 1 1 45%; padding: 8px 0; border: 0; }
  .panel__facts { grid-template-columns: 1fr 1fr; }
  .barrio__tagline { font-size: 28px; }
  .barrio__photo-note { display: none; }
  .compare-bar__list { display: none; }
  .compare-bar__row { justify-content: flex-end; }
  .site-foot__top { grid-template-columns: 1fr; }
  .results__head h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Мобильное меню */
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-left: auto; color: inherit; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .menu-btn { display: inline-grid; place-items: center; margin-left: 0; order: 3; }
  .langs { margin-left: auto; }
  .site-nav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; gap: 0; padding: 8px var(--gutter) 16px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}
.catalog:has(.pill[open]) .map-toggle { display: none; }
@media (max-width: 860px) {
  .pill[open]::before { content: ""; position: fixed; inset: 0; z-index: 89; background: rgba(16, 41, 31, .45); }
  .pop { padding-top: 20px; }
}
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(8, 20, 15, .35) 0%, rgba(8, 20, 15, .55) 40%, rgba(8, 20, 15, .85) 100%); }
  .hero__sub { color: var(--on-dark); }
}
input::placeholder { color: #9AA29C; opacity: 1; }
.tile--wide::after { background: linear-gradient(180deg, rgba(8,20,15,.05) 20%, rgba(8,20,15,.55) 55%, rgba(8,20,15,.88) 100%); }

/* Галерея */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--stone-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--2 .gallery__item { grid-column: span 2; grid-row: span 2; }
.gallery--3 .gallery__item:not(:first-child) { grid-column: span 2; }
.gallery--4 .gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 41, 31, .55); color: var(--on-dark); font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 1fr auto; background: rgba(10, 20, 16, .96); color: var(--on-dark); }
.lightbox img { max-width: 92vw; max-height: 80vh; margin: auto; object-fit: contain; align-self: center; justify-self: center; }
.lightbox__bar { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px 24px; font-size: 14px; color: var(--on-dark-2); }
.lightbox__bar a { color: var(--on-dark-2); }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(247,245,240,.3); background: rgba(10,20,16,.4); color: var(--on-dark); cursor: pointer; display: grid; place-items: center; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
.lightbox__close { position: absolute; top: 18px; right: 20px; width: 48px; height: 48px; border: 0; background: none; color: var(--on-dark); font-size: 34px; cursor: pointer; }

/* Расстояния */
.near { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 20px; }
.near h3 { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brass-ink); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.near dl { margin: 0; }
.near dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.near dt small { display: block; font-size: 13px; color: var(--muted); }
.near dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.near dd span { display: block; font-size: 13px; color: var(--muted); }

/* Контакты */
.panel__links { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.panel__h { font-size: 13px; font-weight: 700; color: var(--brass-ink); margin: 6px 0 6px; }
.panel__links a { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; font-size: 15px; word-break: break-word; }
.panel__links a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.panel__links svg { width: 18px; height: 18px; color: var(--brass-ink); flex: none; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery .gallery__item:not(:first-child) { grid-column: span 1; grid-row: span 1; }
  .near { grid-template-columns: 1fr; }
}
.card__photos { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(16, 41, 31, .72); color: var(--on-dark); font-size: 12px; font-weight: 600; }
.card__photos svg { width: 14px; height: 14px; }
.photo-credit { position: absolute; right: var(--gutter); bottom: 12px; z-index: 2; margin: 0; font-size: 11px; color: rgba(247, 245, 240, .75); }
.photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(247, 245, 240, .4); }
.split__media .photo-credit { right: 16px; }
.barrio__photo-note a { color: inherit; }
.credits { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; }
.credits li { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.credits img { width: 120px; height: 76px; object-fit: cover; flex: none; }
.credits div { display: grid; gap: 2px; }
.credits a { color: var(--forest); font-weight: 600; word-break: break-word; }
.credits span { color: var(--muted); }

/* Мобильные правки: логотип в одну строку, подпись к фото не поверх текста */
.logo__text { white-space: nowrap; }
@media (max-width: 640px) {
  .logo { gap: 8px; }
  .logo__mark { width: 26px; height: 26px; }
  .logo__text { font-size: 20px; }
  .langs { gap: 0; }
  .langs a { padding: 5px 5px; font-size: 12px; }
  .hero .photo-credit, .zone-hero .photo-credit { top: calc(var(--head-h) + 6px); bottom: auto; right: var(--gutter); max-width: 70%; text-align: right; }
}
@media (max-width: 360px) {
  .logo__text { font-size: 18px; }
  .langs a { padding: 5px 3px; }
}
.zone-hero p.photo-credit { font-size: 11px; margin: 0; max-width: none; color: rgba(247, 245, 240, .75); }
