/* ---------- Tokens ---------- */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #efebe4;
  --ink: #1d2320;
  --muted: #6a706b;
  --line: #e2ddd4;
  --brand: #1f4a3f;
  --brand-hover: #173a31;
  --brand-soft: #e3ece8;
  --accent: #b8743a;
  --danger: #b3261e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(29 35 32 / 6%), 0 8px 24px rgb(29 35 32 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: #3b423e; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .75rem; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-tg { background: #e8f3fb; color: #1e6fa8; }
.btn-max { background: #efeafd; color: #5b3fd1; }
.btn-tg:hover, .btn-max:hover { filter: brightness(.96); }
.btn-tg:hover { color: #1e6fa8; }
.btn-max:hover { color: #5b3fd1; }
.icon { flex: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .htmx-request .btn { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 245 241 / 92%); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { color: var(--muted); font-size: .78rem; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--brand); }
.main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-phone { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 960px) {
  .header-phone { display: none; }
  .burger { display: flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-phone { display: block; font-weight: 700; border-bottom: 0 !important; }
}
@media (max-width: 480px) {
  .header-actions .btn { display: none; }
  .logo-text small { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-alt { background: var(--surface-2); }
.section-accent { background: var(--brand); color: #fff; }
.section-accent .lead { color: rgb(255 255 255 / 82%); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.page-head { padding-top: 24px; padding-bottom: 8px; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.panel { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .panel { padding: 32px; } }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.hero-art { display: none; }
@media (min-width: 960px) { .hero-art { display: block; width: 100%; max-width: 560px; height: auto; justify-self: end; } }
.hero-art { overflow: visible; }
.hero-art text { font-family: var(--font); }
.hero-float { animation: hero-float 6s ease-in-out infinite; }
.hero-float-2 { animation-delay: -3s; }
.hero-float-3 { animation-delay: -1.5s; }
@keyframes hero-float { 50% { transform: translateY(-8px); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); }
.hero-facts strong { display: block; font-size: 1.6rem; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: .875rem; font-weight: 600; color: #3b423e; padding: 0; margin-bottom: 6px; }
.field > span { margin-bottom: 0; }
.field em { font-style: normal; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff 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='%236a706b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
input[type=range] { width: 100%; accent-color: var(--brand); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.segmented input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 8px 12px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.segmented input:focus-visible + span, .pill input:focus-visible + span { outline: 2px solid var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill span { display: block; min-width: 44px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.lead-form { display: grid; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-error { color: var(--danger); background: #fbeceb; border-radius: 8px; padding: 10px 14px; margin: 0; font-size: .9rem; }
.lead-success { text-align: center; padding: 16px 0; }
.lead-success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 12px; }

/* ---------- Cards ---------- */
.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(29 35 32 / 6%), 0 16px 32px rgb(29 35 32 / 10%); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card.is-closed .card-media img { filter: grayscale(.7); opacity: .85; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badges-inline { position: static; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.badge-new { background: var(--brand); color: #fff; }
.badge-down { background: #fdf0e3; color: #9a5a1f; }
.badge-closed { background: var(--ink); color: #fff; }
.card-count { position: absolute; right: 12px; bottom: 12px; background: rgb(0 0 0 / 55%); color: #fff; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-price { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; }
.card-price small, .price-box-price small { font-size: .6em; font-weight: 500; color: var(--muted); }
.card-price s { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.card-ppm { font-size: .85rem; color: var(--muted); }
.card-title { font-size: 1.05rem; margin: 8px 0 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* вся карточка кликабельна */
.card { position: relative; }
.card-addr { color: var(--muted); margin: 0; font-size: .92rem; }
.card-meta { display: flex; gap: 12px; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------- Features / steps / reviews ---------- */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 24px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature-num { font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--brand); padding-top: 16px; display: grid; gap: 6px; }
.steps li::before { content: counter(step); font-weight: 800; font-size: 2rem; color: var(--brand); line-height: 1; }
.steps span { color: var(--muted); }
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.review blockquote { margin: 0; }
.review blockquote::before { content: "«"; font-size: 2.4rem; line-height: .5; color: var(--accent); display: block; margin-bottom: 12px; }
.review figcaption { display: grid; font-size: .92rem; }

/* ---------- Catalog ---------- */
.catalog { display: grid; gap: 24px; padding-bottom: 64px; align-items: start; }
@media (min-width: 960px) { .catalog { grid-template-columns: 280px 1fr; gap: 32px; } }
.filters { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .filters { position: sticky; top: 88px; } }
.filters-head { display: none; justify-content: space-between; align-items: center; }
.filters-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.filters-apply, .filters-open { display: none; }
@media (max-width: 959px) {
  .filters { position: fixed; inset: 0; z-index: 60; border-radius: 0; overflow-y: auto; align-content: start; transform: translateX(-100%); transition: transform .25s; visibility: hidden; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-head, .filters-apply { display: flex; }
  .filters-open { display: inline-flex; }
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sort { margin-left: auto; width: 220px; }
.sort select { min-height: 40px; }
.results-count { color: var(--muted); margin-bottom: 16px; }
#results { transition: opacity .2s; }
#results.htmx-request { opacity: .45; }
.empty { background: var(--surface); border-radius: var(--radius); padding: 32px; text-align: center; }
.empty p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.pager a, .pager-current { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; text-decoration: none; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pager-current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Property page ---------- */
.prop-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.prop-title h1 { margin-bottom: .2em; }
.prop-addr { color: var(--muted); font-size: 1.05rem; margin: 0; }
.prop-layout { display: grid; gap: 32px; padding-top: 16px; padding-bottom: 32px; align-items: start; }
@media (min-width: 960px) { .prop-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }
.prop-main { min-width: 0; }
.prop-section { margin-top: 40px; }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgb(0 0 0 / 60%); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .85rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--surface-2); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .more-hidden { display: none; }
.thumb-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 50%); color: #fff; font-weight: 700; font-size: 1.1rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.specs div { background: var(--surface); padding: 14px 16px; }
.specs dt { font-size: .82rem; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.prose { white-space: pre-line; max-width: 70ch; }
.map { height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); z-index: 0; }

.prop-aside { position: sticky; top: 88px; }
.price-box { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.price-box-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.price-old { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sold-note { background: var(--surface-2); padding: 12px; border-radius: var(--radius-sm); margin: 4px 0; font-size: .92rem; }
.agent { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: .92rem; }
.agent img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.share { display: flex; gap: 20px; font-size: .9rem; }

.mobile-cta { display: none; }
@media (max-width: 959px) {
  .prop-aside { position: static; }
  .page-property { padding-bottom: 76px; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgb(0 0 0 / 8%);
  }
  .mobile-cta strong { font-size: 1.15rem; }
}

/* ---------- About / contacts / prices ---------- */
.about-hero { display: grid; gap: 32px; align-items: center; padding-bottom: 40px; }
@media (min-width: 860px) { .about-hero { grid-template-columns: 400px 1fr; gap: 56px; } }
.about-photo { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 20px; background: var(--surface-2); }
.prices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 24px 0 12px; }
.price-card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.price-card-accent { border: 2px solid var(--brand); }
.price-card-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.price-card-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-card ul { padding-left: 1.1em; margin: 0; color: #3b423e; display: grid; gap: 6px; }
.contacts { padding-bottom: 72px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-bottom: 24px; }
.contact-item { display: grid; background: var(--surface); padding: 16px 20px; border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.contact-item strong { font-size: 1.15rem; }
.prose-doc { padding-bottom: 72px; }
.prose-doc h2 { font-size: 1.25rem; margin-top: 1.8em; }
.status-page { text-align: center; padding: 80px 16px 100px; }
.status-code { font-size: 5rem; font-weight: 800; color: var(--brand-soft); line-height: 1; margin: 0; -webkit-text-stroke: 2px var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ccc9; padding: 48px 0 24px; font-size: .92rem; }
.site-footer a { color: #e8eae8; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #9ba09c; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-name { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.footer-h { color: #fff; font-weight: 600; margin-bottom: 8px; }
.site-footer .footer-contact { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.footer-contact .icon { color: #9fc2b6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #3a413d; margin-top: 32px; padding-top: 20px; color: #9ba09c; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgb(20 24 22 / 55%); backdrop-filter: blur(2px); }
.lead-dialog { width: min(440px, calc(100% - 32px)); border-radius: 18px; padding: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgb(0 0 0 / 25%); }
.lead-dialog h2 { font-size: 1.4rem; padding-right: 32px; }
.dialog-close, .lb-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgb(10 12 11 / 95%); }
.lightbox[open] { display: grid; place-items: center; }
.lb-img { max-width: calc(100vw - 24px); max-height: calc(100vh - 80px); object-fit: contain; user-select: none; }
.lb-close { color: #fff; z-index: 2; top: 16px; right: 20px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 12%); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgb(255 255 255 / 24%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }
@media (max-width: 600px) { .lb-nav { display: none; } }

/* ---------- Print = PDF-буклет объекта ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .mobile-cta, .crumbs, .btn, dialog, .gallery-count { display: none !important; }
  .prop-layout { display: block; }
  .prop-aside { position: static; margin-top: 16px; }
  .price-box { box-shadow: none; border: 1px solid #ccc; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery-thumbs .more-hidden { display: block; }
  .thumb-more { display: none; }
  .map { display: none; }
  .prop-section { break-inside: avoid; margin-top: 20px; }
  .card, .specs div { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

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