/* Layout: catalog page after the reference — filter bar, view controls, card grid with optional map; slate accent from the logo */
:root {
  --bg: #F0F3F6;
  --surface: #FFFFFF;
  --ink: #1B2632;
  --muted: #5B6B79;
  --line: #D7DEE5;
  --accent: #44647F;
  --accent-strong: #36536B;
  --accent-ink: #FFFFFF;
  --accent-soft: #E1E9F0;
  --warn: #9A6A1E;
  --warn-soft: #F6ECDC;
  --ok: #2F6E52;
  --ok-soft: #E1F0E8;
  --deep: #1A2632;
  --deep-ink: #E7EDF2;
  --deep-muted: #93A4B3;
  --deep-line: #2C3A47;
  --font-display: "Spectral", "PT Serif", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --wrap: 1360px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F161D; --surface: #16202A; --ink: #E5EBF0; --muted: #94A4B2; --line: #283541;
    --accent: #8EAECA; --accent-strong: #A9C3D9; --accent-ink: #0E1620; --accent-soft: #1D2C39;
    --warn: #E2B66E; --warn-soft: #3A2E1B; --ok: #8CCBAA; --ok-soft: #1B3328;
    --deep: #0A1016; --deep-ink: #E5EBF0; --deep-muted: #8797A5; --deep-line: #22303C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F161D; --surface: #16202A; --ink: #E5EBF0; --muted: #94A4B2; --line: #283541;
  --accent: #8EAECA; --accent-strong: #A9C3D9; --accent-ink: #0E1620; --accent-soft: #1D2C39;
  --warn: #E2B66E; --warn-soft: #3A2E1B; --ok: #8CCBAA; --ok-soft: #1B3328;
  --deep: #0A1016; --deep-ink: #E5EBF0; --deep-muted: #8797A5; --deep-line: #22303C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.brand span { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: var(--accent-soft); }
.header-phone { text-decoration: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 960px) { .nav { display: none; } .header-phone { margin-left: auto; } }
@media (max-width: 440px) { .brand span { display: none; } }

/* Filter bar */
.filterbar { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; padding-block: 12px; }
.f { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 44px; min-width: 0; }
.f select, .f input { border: 0; background: transparent; padding: 0 12px; height: 42px; min-width: 0; }
.f select { font-weight: 600; padding-right: 8px; cursor: pointer; }
.f-range input { width: 92px; border-left: 1px solid var(--line); }
.f-label { padding: 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.f-reset { margin-left: auto; }
@media (max-width: 760px) {
  .filters > * { flex: 1 1 100%; }
  .f-range input { flex: 1 1 0; width: auto; }
  .f select { flex: 1 1 auto; }
  .f-reset { margin-left: 0; }
}

/* Catalog */
main { padding-block: 18px 64px; outline: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.cat-head h1 { font-size: clamp(28px, 3.2vw, 40px); }
.cat-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.sort select { height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 12px; font-weight: 600; }
.found { color: var(--muted); font-size: 13px; margin: 12px 0 18px; }
@media (max-width: 640px) { .seg-layout { display: none; } }

.cat-body { display: grid; gap: 20px; align-items: start; }
.layout-split { grid-template-columns: minmax(0, 1fr) minmax(300px, 40%); }
.layout-split .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-split .map, .layout-map .map { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 1100px) { .layout-split { grid-template-columns: 1fr; } .layout-split .map { position: static; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.card:hover { border-color: var(--accent); box-shadow: 0 6px 24px -12px rgba(27, 38, 50, .35); }
.card-media { position: relative; aspect-ratio: 16 / 10.5; background: var(--accent-soft); }
.slider, .track { width: 100%; height: 100%; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; user-select: none; }
.dots { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 6px; justify-content: center; pointer-events: none; }
.dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.dots i.on { background: #fff; }
.tags { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags-static { position: static; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.card-body { display: grid; gap: 10px; padding: 16px 16px 18px; align-content: start; flex: 1; }
.card-name { font-size: 21px; }
.card-name a { text-decoration: none; }
.card-area { font-size: 22px; font-weight: 700; }
.card-area small { font-size: 14px; font-weight: 600; color: var(--muted); }
.card-price { display: grid; gap: 2px; font-weight: 600; }
.pl { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.pl span { color: var(--muted); font-weight: 500; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; padding: 3px 8px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); }
.where { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.where li { display: flex; gap: 6px; }
.cat-list { display: grid; gap: 20px; min-width: 0; }
.more { display: flex; justify-content: center; }
.empty { grid-column: 1 / -1; padding: 40px; display: grid; justify-items: center; gap: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Map */
.map { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.map-frame { width: 100%; height: min(70vh, 560px); border: 0; border-radius: 8px; background: var(--accent-soft); }
.map-stub { display: grid; gap: 6px; place-content: center; text-align: center; height: 260px; border-radius: 8px; color: var(--muted); padding: 20px;
  background: repeating-linear-gradient(45deg, var(--accent-soft) 0 12px, var(--bg) 12px 24px); }
.map-stub b { color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.map-list li { display: grid; gap: 4px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.map-list li:last-child { border-bottom: 0; }
.map-pick { display: flex; gap: 8px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; }
.map-pick span { display: grid; }
.map-pick small { color: var(--muted); }
.map-pick[aria-pressed="true"] b { color: var(--accent); }
.map-ext { font-size: 13px; color: var(--accent); font-weight: 600; padding-left: 22px; }

/* Object page */
.obj-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.obj-head h1 { font-size: clamp(30px, 3.6vw, 46px); }
.obj-addr { display: flex; gap: 6px; color: var(--muted); margin-top: 6px; }
.obj-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.obj-aside { display: grid; gap: 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.aside-card { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.aside-area { font-family: var(--font-display); font-size: 30px; }
.aside-area small { font-size: 18px; color: var(--muted); }
.aside-price { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; }
.aside-price b { font-size: 18px; }
.aside-price span { color: var(--muted); font-size: 13px; }
.obj-lead { font-size: 18px; max-width: 46em; margin: 28px 0 22px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fact { display: grid; gap: 2px; padding: 16px 18px; border-right: 1px solid var(--line); }
.fact b { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.fact span { color: var(--muted); font-size: 13px; }
.facts-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.obj-sec { margin-top: 40px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.obj-sec h2 { font-size: clamp(24px, 2.4vw, 30px); }
.obj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 960px) {
  .obj-top { grid-template-columns: 1fr; }
  .obj-aside { position: static; }
  .obj-cols { grid-template-columns: 1fr; }
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lots-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.lots-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lots-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lots-table tr:last-child td { border-bottom: 0; }
.lots-table tbody tr { cursor: pointer; }
.lots-table tbody tr:hover { background: var(--accent-soft); }
.lots-table td a { font-weight: 600; text-decoration: none; }
.lots-table td small { display: block; color: var(--muted); }
.status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.st-free { background: var(--ok-soft); color: var(--ok); }
.st-reserved { background: var(--warn-soft); color: var(--warn); }

/* Gallery (object page + lot dialog) */
.gallery { display: grid; gap: 10px; min-width: 0; }
.gallery-main { aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--accent-soft); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { margin: 0; display: grid; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }

/* Lot dialog */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10, 16, 22, .62);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet { position: relative; width: min(1120px, 100%); max-height: 100%; overflow: auto; background: var(--surface); border-radius: 14px; display: grid; grid-template-columns: 1.3fr 1fr; }
.sheet .gallery { padding: 16px; align-content: start; }
.sheet .gallery-main { aspect-ratio: 4 / 3; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 22px; line-height: 1; }
.sheet-info { padding: 26px 26px 26px 10px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.sheet-info h2 { font-size: 30px; padding-right: 44px; }
.sheet-price { display: grid; gap: 4px; padding-block: 12px; border-block: 1px solid var(--line); }
.sheet-price b { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
@media (max-width: 820px) { .sheet { grid-template-columns: 1fr; } .sheet-info { padding: 4px 18px 22px; } }

/* About (SEO text) */
.about { background: var(--surface); border-top: 1px solid var(--line); }
.about-inner { padding-block: 48px; display: grid; gap: 16px; justify-items: start; }
.about-inner > * { max-width: 760px; }
.about h2 { font-size: 26px; }
.about-text { display: grid; gap: 12px; color: var(--muted); max-height: 140px; overflow: hidden; position: relative; }
.about-text::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(to bottom, transparent, var(--surface)); }
.about-text.open { max-height: none; }
.about-text.open::after { display: none; }
.about-text h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.about-text ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* Footer */
.footer { background: var(--deep); color: var(--deep-ink); padding-block: 44px 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--deep-line); }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols h4 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--deep-muted); }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols span { color: var(--deep-muted); font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 28px 16px; }
.footer-bottom .brand span { color: var(--deep-ink); }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 8px; background: var(--deep-line); color: var(--deep-ink); border: 0; text-decoration: none; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.footer-note { color: var(--deep-muted); font-size: 13px; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* Lead form (Bitrix24 CRM form) */
.lead { background: var(--accent-soft); border-top: 1px solid var(--line); }
.lead-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding-block: 56px; align-items: start; }
.lead-text { display: grid; gap: 14px; }
.lead-text h2 { font-size: clamp(28px, 3.2vw, 40px); }
.lead-text p { color: var(--muted); max-width: 32em; }
.lead-phone { font-family: var(--font-display); font-size: 28px; text-decoration: none; font-variant-numeric: tabular-nums; }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 200px; min-width: 0; }
.lead-stub { display: grid; gap: 6px; place-content: center; text-align: center; min-height: 260px; color: var(--muted); }
.lead-stub b { color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 500; }
@media (max-width: 860px) { .lead-inner { grid-template-columns: 1fr; padding-block: 40px; } }
/* Bitrix24 form: match site palette, hide duplicate header (title is shown beside the form) */
.lead-form .b24-form-header { display: none !important; }
.lead-form .b24-form-wrapper { box-shadow: none !important; border: 0 !important; background: transparent !important; }
.lead-form .b24-form-btn { background: var(--accent) !important; border-radius: 8px !important; font-family: var(--font-body) !important; font-weight: 600 !important; }
.lead-form .b24-form-btn:hover { background: var(--accent-strong) !important; }
.lead-form .b24-form-control { border-radius: 8px !important; font-family: var(--font-body) !important; }
.lead-form .b24-form-wrapper.b24-form-border-bottom { border-bottom: 0 !important; }

/* Mobile: filters collapse behind a toggle */
.filters-toggle-row { display: none; }
@media (max-width: 760px) {
  .filters-toggle-row { display: block; padding-block: 10px; }
  .filters-toggle { width: 100%; }
  .filters { display: none; padding-top: 0; }
  .filters.open { display: flex; }
}

/* Bitrix form: always light and readable, regardless of the site theme */
.lead-form { background: #FFFFFF !important; border-color: #D7DEE5 !important; color-scheme: light; }
.lead-form .b24-form, .lead-form .b24-form-wrapper, .lead-form .b24-form-content { background: #FFFFFF !important; color: #1B2632 !important; }
.lead-form .b24-form-control,
.lead-form input, .lead-form textarea, .lead-form select { background: #F1F3F5 !important; color: #1B2632 !important; border: 1px solid #D7DEE5 !important; }
.lead-form .b24-form-control-label, .lead-form .b24-form-control-label * { color: #5B6B79 !important; }
.lead-form .b24-form-field-agreement, .lead-form .b24-form-field-agreement *,
.lead-form .b24-form-control-desc, .lead-form label { color: #5B6B79 !important; }
.lead-form .b24-form-field-agreement-link { color: #36536B !important; }
.lead-form .b24-form-btn { background: #44647F !important; color: #FFFFFF !important; }
.lead-form .b24-form-btn:hover { background: #36536B !important; }
.lead-form .b24-form-sign, .lead-form .b24-form-sign * { color: #8A97A3 !important; }
.lead-form input[type="checkbox"] { background: #FFFFFF !important; accent-color: #44647F; }

/* Mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }
.mobile-menu { display: grid; border-top: 1px solid var(--line); background: var(--surface); padding: 6px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.mobile-menu a { text-decoration: none; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 961px) { .mobile-menu { display: none !important; } }
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .header-phone { margin-left: auto; padding: 9px 12px; }
}
@media (max-width: 380px) { .header-phone { font-size: 14px; padding: 9px 10px; } }

.obj-sec .more { margin-top: 4px; }

/* Phone: lots table as compact rows, facts in two columns, specs stacked */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .lots-table { min-width: 0; }
  .lots-table thead { display: none; }
  .lots-table tbody tr:not([hidden]) { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .lots-table tbody tr:last-child { border-bottom: 0; }
  .lots-table td { padding: 0; border: 0; }
  .lots-table td:first-child { grid-column: 1 / -1; }
  .lots-table .c-area { color: var(--muted); }
  .lots-table .c-price { text-align: right; font-weight: 600; grid-column: 2; grid-row: 2; }
  .lots-table .c-det { grid-column: 1; grid-row: 3; color: var(--muted); font-size: 13px; }
  .lots-table .c-st { grid-column: 2; grid-row: 3; text-align: right; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid var(--line); }
  .fact b { font-size: 22px; }
  .spec-list div { flex-direction: column; gap: 2px; }
  .spec-list dd { text-align: left; }
}
@media (max-width: 640px) { .map-frame { height: 340px; } }

/* Direct phone in lead block */
.lead-call { display: grid; gap: 6px; justify-items: start; margin-top: 6px; }
.lead-call-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lead-phone { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink) !important; font-family: var(--font-body); font-weight: 700; font-size: 24px; transition: background .2s; }
.lead-phone:hover { background: var(--accent-strong); }
.lead-phone-ico { width: 22px; height: 22px; flex: 0 0 22px; }
.lead-call-hint { font-size: 13px; color: var(--muted); }
@media (max-width: 420px) { .lead-phone { font-size: 20px; padding: 12px 16px; width: 100%; justify-content: center; } .lead-call { justify-items: stretch; } }

.tag-type { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
