:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f6f6f4;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #767676;
  --line: #e5e5e5;
  --line-2: #cfcfcf;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 50; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color .2s ease, color .2s ease; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.link-arrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; gap: 40px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; color: inherit; }
.logo-ico { width: 40px; height: 40px; flex: none; }
.logo-ico-light { display: none; }
.logo-txt { display: grid; }
.logo-name { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.logo-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 30px; flex: 1; }
.nav a { font-size: 15px; text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-phone { font-size: 15px; font-weight: 500; text-decoration: none; margin: 0 8px; white-space: nowrap; }
.fav-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); }
.fav-link span { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; }
.burger summary::-webkit-details-marker { display: none; }
.burger-panel { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); min-width: 240px; padding: 10px 0; display: grid; }
.burger-panel a { padding: 12px 20px; text-decoration: none; }
.burger-panel a:hover { background: var(--soft); }

/* главная */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 13em; }
.hero-lead { margin-top: 22px; max-width: 38em; font-size: 18px; color: var(--ink-2); }
.search { display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; align-items: end; gap: 0; margin-top: 44px; border: 1px solid var(--line-2); }
.search > * { border-right: 1px solid var(--line); }
.search > *:last-child { border-right: 0; }
.search .seg-inline { align-self: stretch; padding: 8px; display: flex; align-items: center; }
.search-f { display: grid; gap: 2px; padding: 10px 18px; font-size: 12px; color: var(--muted); }
.search-f select, .search-f input { border: 0; background: transparent; font-size: 16px; color: var(--ink); padding: 2px 0; min-height: 28px; outline: none; width: 100%; }
.search .btn { align-self: stretch; min-height: 64px; border: 0; }
.hero-stats { display: flex; gap: 64px; margin: 48px 0 0; flex-wrap: wrap; }
.hero-stats dt { font-size: 40px; font-weight: 300; line-height: 1; }
.hero-stats dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 0; }
.seg legend { font-size: 12px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 18px; font-size: 14px; border: 1px solid transparent; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.seg-inline span { padding: 9px 16px; }

.block { padding: 80px 0 0; }
.block-tight { padding-top: 28px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 32px; }
.h-small { font-size: 22px; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none; background: var(--soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.tile:hover img { transform: scale(1.04); }
.tile-body { position: absolute; left: 24px; bottom: 20px; right: 24px; z-index: 1; display: grid; gap: 2px; }
.tile-title { font-size: 22px; font-weight: 300; }
.tile-count { font-size: 13px; opacity: .85; }
.dlist { list-style: none; padding: 0; margin: 0; columns: 3 260px; column-gap: 40px; }
.dlist li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.dlist-name { font-weight: 500; }
.dlist-links { display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.dlist-links a { color: var(--muted); }
.dlist-links a:hover { color: var(--ink); }

/* заголовок раздела */
.page-head { padding: 28px 0 8px; }
.page-head h1 { margin-top: 18px; }
.page-lead { margin-top: 18px; max-width: 46em; color: var(--ink-2); font-size: 17px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14px; background: #fff; user-select: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd[open] summary, .dd summary:hover { border-color: var(--ink); }
.dd[open] summary svg { transform: rotate(180deg); }
.dd.is-set summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.dd-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line-2); padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.dd-list { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.chk { display: flex; align-items: center; gap: 10px; padding: 7px 4px; cursor: pointer; font-size: 14px; }
.chk input { width: 16px; height: 16px; accent-color: var(--ink); }
.chk em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }
.dd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: block; min-width: 48px; padding: 8px 12px; border: 1px solid var(--line-2); text-align: center; font-size: 14px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.dd-range { display: flex; gap: 10px; }
.dd-range label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.dd-range input { width: 110px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); font-size: 15px; color: var(--ink); }
.reset { border: 0; background: none; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 10px; }
.reset:hover { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 24px; }
.found { color: var(--muted); font-size: 14px; }
.toolbar-right { display: flex; align-items: center; gap: 16px; }
.sort select { border: 0; background: transparent; font-size: 14px; padding: 8px 4px; cursor: pointer; }
.views { display: flex; border: 1px solid var(--line-2); }
.views button { width: 42px; height: 40px; display: grid; place-items: center; border: 0; background: #fff; cursor: pointer; color: var(--muted); }
.views button + button { border-left: 1px solid var(--line-2); }
.views button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* карточки: список */
.cards { display: grid; }
.card { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr) 220px; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.cards > .card:first-child { padding-top: 0; }
.slider { position: relative; background: var(--soft); aspect-ratio: 4 / 3; overflow: hidden; }
.slider-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.92); cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.sl-prev { left: 10px; }
.sl-next { right: 10px; }
.slider:hover .sl-btn, .sl-btn:focus-visible { opacity: 1; }
.sl-count { position: absolute; right: 10px; bottom: 10px; background: rgba(17,17,17,.7); color: #fff; font-size: 12px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.badge { background: #fff; color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; }
.fav { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.92); cursor: pointer; color: var(--ink); }
.fav[aria-pressed="true"] svg path { fill: var(--ink); }
.card-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-place { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.card-title { font-size: 26px; line-height: 1.2; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-text { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: auto 0 0; border-top: 1px solid var(--line); }
.card-facts div { padding: 12px 12px 0 0; }
.card-facts dt { font-size: 12px; color: var(--muted); }
.card-facts dd { margin: 2px 0 0; font-size: 15px; }
.card-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card-price { font-size: 26px; font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-price small, .panel-price small, .mobile-price small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.card-m2 { font-size: 14px; color: var(--muted); }
.card-side .btn { margin-top: auto; }

/* карточки: плитка */
.cards-grid, .cards.is-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px; }
.cards-grid .card, .cards.is-grid .card { grid-template-columns: 1fr; gap: 16px; padding: 0; border: 0; }
.cards-grid .card-text, .cards.is-grid .card-text, .cards-grid .card-side .btn, .cards.is-grid .card-side .btn { display: none; }
.cards-grid .card-title, .cards.is-grid .card-title { font-size: 20px; }
.cards-grid .card-side, .cards.is-grid .card-side { order: 1; flex-direction: row; align-items: baseline; gap: 12px; }
.cards-grid .card-main, .cards.is-grid .card-main { order: 2; }
.cards-grid .card-facts div:nth-child(n+4), .cards.is-grid .card-facts div:nth-child(n+4) { display: none; }
.cards-grid .card-main, .cards.is-grid .card-main { gap: 6px; }
.cards-grid .card-facts, .cards.is-grid .card-facts { margin-top: 6px; }
.cards-grid .card-price, .cards.is-grid .card-price { font-size: 22px; }

.more { display: flex; justify-content: center; padding-top: 36px; }
.empty { padding: 48px 0; color: var(--ink-2); }

/* карта */
.map-box { height: 620px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 8px; }
.map-one { height: 380px; margin-top: 16px; }
.map-box .leaflet-tile-pane { filter: grayscale(1) contrast(1.05) brightness(1.03); }
.pin { background: var(--ink); color: #fff; font: 600 12px/1 var(--font); padding: 6px 8px; white-space: nowrap; transform: translate(-50%, -100%); position: absolute; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.map-pop { width: 220px; font-family: var(--font); }
.map-pop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.map-pop b { display: block; font-size: 16px; font-weight: 500; }
.map-pop a { color: var(--ink); }
.leaflet-popup-content-wrapper { border-radius: 0 !important; }

/* подбор */
.lead { margin-top: 96px; background: var(--soft); padding: 72px 0; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.lead-text p { margin-top: 18px; color: var(--ink-2); max-width: 30em; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.fld input { min-height: 50px; padding: 0 14px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; color: var(--ink); border-radius: 0; }
.fld input:focus { border-color: var(--ink); outline: none; }
.fld-wide, .lead-form .seg, .lead-form .btn, .lead-note { grid-column: 1 / -1; }
.lead-form .seg span { border: 1px solid var(--line-2); background: #fff; }
.lead-form .seg label + label span { border-left: 0; }
.lead-form .seg input:checked + span { border-color: var(--ink); }
.lead-note { font-size: 13px; color: var(--muted); }

/* SEO */
.seo { padding: 80px 0 0; }
.seo h2 { margin-bottom: 24px; }
.acc { border-top: 1px solid var(--line); max-width: 920px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; }
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc p { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 8px 14px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; }
.tags a:hover { border-color: var(--ink); }
.tags em { font-style: normal; color: var(--muted); margin-left: 4px; }

/* объект */
.page-head-obj { padding-bottom: 28px; }
.obj-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; }
.obj-head .eyebrow { margin-bottom: 12px; }
.fav-inline { position: static; width: auto; height: 44px; padding: 0 16px; gap: 8px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: #fff; font-size: 14px; white-space: nowrap; }
.fav-inline[aria-pressed="true"] { border-color: var(--ink); }
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 2.2 / 1; }
.gal-item { position: relative; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; overflow: hidden; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.03); }
.gal-main { grid-row: 1 / 3; }
.gal-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal-1 .gal-main { grid-row: auto; }
.gal-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.gal-2 .gal-main { grid-row: auto; }
.gal-3 { grid-template-columns: 2fr 1fr; }
.gal-4 .gal-item:nth-child(2), .gal-4 .gal-item:nth-child(3) { grid-column: 2; }
.gal-4 .gal-item:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.gal-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,17,17,.5); color: #fff; font-size: 15px; letter-spacing: .04em; }
.obj { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; margin-top: 48px; align-items: start; }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.key-facts div { padding: 20px 16px 20px 0; }
.key-facts dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.key-facts dd { margin: 4px 0 0; font-size: 24px; font-weight: 300; }
.obj-sec { margin-top: 48px; }
.obj-sec h2 { font-size: 28px; margin-bottom: 18px; }
.obj-sec > p { max-width: 44em; color: var(--ink-2); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; margin: 24px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 32px; }
.feat li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.orig { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.orig summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 17px; }
.orig summary::-webkit-details-marker { display: none; }
.orig[open] summary svg { transform: rotate(180deg); }
.orig p { padding-bottom: 20px; color: var(--muted); }
.obj-aside { position: sticky; top: 100px; }
.panel { border: 1px solid var(--line-2); padding: 28px; display: grid; gap: 14px; }
.panel-price { font-size: 34px; font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.agent { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; }
.agent-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; letter-spacing: .08em; flex: none; }
.agent-name { font-weight: 500; }
.agent a { color: var(--muted); text-decoration: none; font-size: 15px; }
.panel .btn svg { flex: none; }
.panel-note { font-size: 13px; color: var(--muted); }
.obj-id { color: var(--ink); user-select: all; white-space: nowrap; }
.mobile-cta { display: none; }

.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10,10,10,.96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lb-close { position: fixed; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 34px; cursor: pointer; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-count { position: fixed; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .8; }

.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; margin: 0; }
.contacts div { padding: 20px 0; border-top: 1px solid var(--line); }
.contacts dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.contacts dd { margin: 6px 0 0; font-size: 22px; font-weight: 300; }

/* подвал */
.ftr { margin-top: 96px; background: var(--ink); color: #d9d9d9; padding: 64px 0 40px; font-size: 14px; }
.lead + .seo + .ftr, .seo + .ftr { margin-top: 96px; }
.ftr a { color: #d9d9d9; text-decoration: none; }
.ftr a:hover { color: #fff; }
.logo-inv .logo-name { color: #fff; }
.logo-inv .logo-sub { color: #9a9a9a; }
.ftr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #2c2c2c; flex-wrap: wrap; }
.ftr-contacts { display: grid; gap: 8px; justify-items: end; }
.ftr-phone { font-size: 26px; font-weight: 300; color: #fff !important; }
.ftr-msg { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; }
.ftr-h { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.ftr-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr-bottom { border-top: 1px solid #2c2c2c; padding-top: 24px; display: grid; gap: 6px; color: #8a8a8a; font-size: 13px; }

/* адаптив */
@media (max-width: 1360px) {
  .hdr-phone { display: none; }
  .hdr-row { gap: 28px; }
  .nav { gap: 22px; }
}
@media (max-width: 1180px) {
  .card { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .card-side { grid-column: 2; flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
  .card-side .btn { margin: 0 0 0 auto; }
}
@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .nav, .hdr-cta, .hdr-actions .icon-btn { display: none; }
  .burger { display: block; }
  .hdr-row { justify-content: space-between; min-height: 64px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .search .seg-inline { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; min-height: 56px; }
  .obj { grid-template-columns: 1fr; gap: 40px; }
  .obj-aside { position: static; }
  .lead-row { grid-template-columns: 1fr; gap: 32px; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .gal-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gal .gal-item:not(.gal-main) { grid-column: auto; grid-row: auto; }
  .gal-item:not(.gal-main) { aspect-ratio: 4 / 3; }
  .gal-item:nth-child(n+4) { display: none; }
  .mobile-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-price { font-size: 20px; font-variant-numeric: tabular-nums; }
  body:has(.mobile-cta) .ftr { padding-bottom: 100px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero { padding: 40px 0 44px; }
  .hero-stats { gap: 28px; }
  .hero-stats dt { font-size: 30px; }
  .card { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .card-side { grid-column: auto; order: 1; }
  .card-main { order: 2; }
  .card-facts div:nth-child(n+4) { display: none; }
  .logo-name { font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
  .card-side .btn { display: none; }
  .card-title { font-size: 22px; }
  .toolbar { flex-wrap: wrap; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 14px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .dd { position: static; }
  .dd summary { white-space: nowrap; }
  .dd-panel { left: 20px; right: 20px; min-width: 0; }
  .map-box { height: 70vh; }
  .obj-head { flex-direction: column; align-items: flex-start; }
  .lead-form { grid-template-columns: 1fr; }
  .ftr-top { flex-direction: column; }
  .ftr-contacts { justify-items: start; }
  .ftr-cols { grid-template-columns: 1fr; gap: 24px; }
  .lb-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.catalog { position: relative; }
@media (max-width: 720px) { .dd-panel { top: 56px; } }

/* валюта */
.cur { display: flex; border: 1px solid var(--line-2); margin-right: 6px; }
.cur button { min-width: 40px; height: 36px; padding: 0 8px; border: 0; background: #fff; font-size: 13px; cursor: pointer; color: var(--muted); }
.cur button + button { border-left: 1px solid var(--line-2); }
.cur button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cur button:hover:not([aria-pressed="true"]) { color: var(--ink); }
@media (max-width: 960px) {
  .hdr-actions .fav-link { display: none; }
  .cur { margin-right: 0; }
  .cur button { min-width: 36px; height: 34px; padding: 0 6px; }
}


/* ===== шапка: выпадающее меню ===== */
.hdr { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.mega-item { display: flex; align-items: center; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.mega-item:hover .mega, .mega-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1.2fr; gap: 40px; padding-top: 36px; padding-bottom: 40px; }
.mega-h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.mega ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mega-cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.mega a { text-decoration: none; border: 0; padding: 0; color: var(--ink); }
.mega li a:hover { text-decoration: underline; }
.mega-card { display: grid; align-content: start; gap: 12px; padding: 24px; background: var(--soft); }
.mega-card-t { font-size: 20px; font-weight: 300; line-height: 1.3; }
.mega-card .link-arrow { justify-self: start; }

/* ===== прозрачная шапка над фото ===== */
.has-hero .hdr { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: none; }
.has-hero .hdr .nav > a, .has-hero .hdr .mega-item > a, .has-hero .hdr .hdr-phone, .has-hero .hdr .fav-link, .has-hero .hdr .icon-btn, .has-hero .hdr .burger summary { color: #fff; }
.has-hero .hdr .logo-sub { color: rgba(255,255,255,.7); }
.has-hero .hdr .icon-btn { border-color: rgba(255,255,255,.35); }
.has-hero .hdr .cur { border-color: rgba(255,255,255,.35); }
.has-hero .hdr .cur button { background: transparent; color: rgba(255,255,255,.75); }
.has-hero .hdr .cur button + button { border-left-color: rgba(255,255,255,.35); }
.has-hero .hdr .cur button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.has-hero .hdr .hdr-cta { background: #fff; color: var(--ink); border-color: #fff; }
.has-hero .hdr .nav a:hover, .has-hero .hdr .mega-item > a:hover { border-bottom-color: #fff; }
.has-hero .hdr.is-solid, .has-hero .hdr:hover, .has-hero .hdr:focus-within { background: rgba(255,255,255,.97); color: var(--ink); border-bottom-color: var(--line); }
.has-hero .hdr.is-solid :is(.mega-item > a, .nav > a, .hdr-phone, .fav-link, .icon-btn, .burger summary),
.has-hero .hdr:hover :is(.mega-item > a, .nav > a, .hdr-phone, .fav-link, .icon-btn, .burger summary),
.has-hero .hdr:focus-within :is(.mega-item > a, .nav > a, .hdr-phone, .fav-link, .icon-btn, .burger summary) { color: var(--ink); }
.has-hero .hdr:is(.is-solid, :hover, :focus-within) .logo-sub { color: var(--muted); }
.has-hero .hdr:is(.is-solid, :hover, :focus-within) :is(.icon-btn, .cur) { border-color: var(--line-2); }
.has-hero .hdr:is(.is-solid, :hover, :focus-within) .cur button { color: var(--muted); }
.has-hero .hdr:is(.is-solid, :hover, :focus-within) .cur button + button { border-left-color: var(--line-2); }
.has-hero .hdr:is(.is-solid, :hover, :focus-within) .cur button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.has-hero .hdr:is(.is-solid, :hover, :focus-within) .hdr-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.has-hero .hdr:is(.is-solid, :hover, :focus-within) .nav a:hover { border-bottom-color: var(--ink); }

/* ===== главный экран ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; border: 0; color: #fff;
  background: #1b1b1b var(--hero, none) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.65) 100%); }
.hero > * { position: relative; }
.hero-in { padding-top: 140px; padding-bottom: 40px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 84px); max-width: 12em; line-height: 1.02; }
.hero .hero-lead { color: rgba(255,255,255,.85); margin-top: 22px; max-width: 34em; font-size: 18px; }
.eyebrow-inv { color: rgba(255,255,255,.75); }
.finder { margin-top: 40px; background: #fff; color: var(--ink); max-width: 1100px; }
.finder-tabs { display: flex; border-bottom: 1px solid var(--line); }
.finder-tabs label { cursor: pointer; }
.finder-tabs input { position: absolute; opacity: 0; }
.finder-tabs span { display: block; padding: 16px 26px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.finder-tabs input:checked + span { color: var(--ink); border-bottom-color: var(--ink); }
.finder-tabs input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: -4px; }
.finder-row { display: grid; grid-template-columns: repeat(4, 1fr) auto; }
.finder-f { display: grid; gap: 2px; padding: 14px 20px; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); }
.finder-f select, .finder-f input { border: 0; background: transparent; font-size: 16px; color: var(--ink); padding: 2px 0; min-height: 30px; outline: none; width: 100%; }
.finder-btn { min-height: 72px; min-width: 200px; border: 0; }
.hero-strip { border-top: 1px solid rgba(255,255,255,.2); }
.hero-strip-in { display: flex; gap: 48px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: 14px; color: rgba(255,255,255,.8); }
.hero-strip b { font-size: 22px; font-weight: 300; color: #fff; margin-right: 6px; }

/* ===== подбор ===== */
.tabs { display: flex; gap: 28px; }
.tabs button { border: 0; background: none; padding: 6px 0; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pick-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.pick-panel a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 20px; font-weight: 300; transition: padding .2s ease; }
.pick-panel a:hover { padding-left: 8px; }
.pick-panel em { font-style: normal; font-size: 14px; color: var(--muted); }
.block-sub { margin-top: 10px; color: var(--muted); }

/* ===== лучшие предложения ===== */
.offers { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.offer { display: grid; align-content: start; gap: 14px; text-decoration: none; color: var(--ink); }
.offer-big { grid-row: 1 / 3; }
.offer-img { display: block; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.offer-big .offer-img { aspect-ratio: auto; height: 100%; min-height: 420px; max-height: 620px; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.offer:hover img { transform: scale(1.04); }
.offer-body { display: grid; gap: 6px; }
.offer-tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.offer-title { font-size: 20px; font-weight: 300; line-height: 1.25; }
.offer-big .offer-title { font-size: 30px; }
.offer-price { font-size: 18px; font-variant-numeric: tabular-nums; }
.offer-price small { color: var(--muted); font-size: 14px; }
.offer-text { color: var(--ink-2); font-size: 15px; max-width: 40em; }
.offer .link-arrow { justify-self: start; margin-top: 8px; }
.offer-big { display: grid; grid-template-rows: 1fr auto; }

/* ===== собственникам, шаги, канал ===== */
.owners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.owner-card { display: grid; align-content: start; gap: 14px; padding: 40px; background: var(--soft); text-decoration: none; color: var(--ink); min-height: 280px; transition: background-color .2s ease; }
.owner-card:hover { background: #efefec; }
.owner-n { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.owner-t { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.1; }
.owner-d { color: var(--ink-2); max-width: 30em; }
.owner-card .link-arrow { justify-self: start; margin-top: auto; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--ink); }
.steps li { display: grid; align-content: start; gap: 10px; padding-top: 24px; }
.step-n { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.step-t { font-size: 24px; font-weight: 300; }
.step-d { color: var(--ink-2); font-size: 15px; }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px; background: var(--ink); color: #fff; text-decoration: none; }
.channel-text { display: grid; gap: 10px; }
.channel .eyebrow { margin: 0; }
.channel-t { font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; line-height: 1.1; }
.channel-d { color: rgba(255,255,255,.7); max-width: 34em; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.channel:hover .btn-light { background: transparent; color: #fff; }

@media (max-width: 1100px) {
  .mega { display: none; }
  .finder-row { grid-template-columns: 1fr 1fr; }
  .finder-f { border-bottom: 1px solid var(--line); }
  .finder-btn { grid-column: 1 / -1; min-height: 60px; }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer-big { grid-column: 1 / -1; grid-row: auto; }
  .offer-big .offer-img { min-height: 0; aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .has-hero .hdr .burger-panel a { color: var(--ink); }
}
@media (max-width: 720px) {
  .hero-in { padding-top: 110px; padding-bottom: 28px; }
  .hero .hero-lead { font-size: 16px; }
  .finder-row { grid-template-columns: 1fr; }
  .finder-f { border-right: 0; }
  .hero-strip-in { gap: 18px; font-size: 13px; }
  .offers, .owners, .steps { grid-template-columns: 1fr; }
  .owner-card { padding: 28px; min-height: 0; }
  .channel { flex-direction: column; align-items: flex-start; padding: 32px; }
  .pick-panel a { font-size: 18px; }
  .block-head { flex-wrap: wrap; }
}
.hero > .wrap, .hero-strip { width: 100%; }
.hero-strip-in { align-items: baseline; }
[hidden] { display: none !important; }
.mega a.mega-card { padding: 28px; }
@media (max-width: 720px) {
  .hdr-actions { gap: 4px; }
  .cur button { min-width: 30px; height: 32px; padding: 0 5px; font-size: 12px; }
  .logo-sub { display: none; }
  .finder-row { grid-template-columns: 1fr; }
  .finder-f { padding: 10px 16px; }
}
.hero { background-position: center 45%; }
.hero::before { background:
  linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 80%),
  linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.6) 100%); }

/* ===== широкие фильтры ===== */
.dd-wide { min-width: 420px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; max-height: 420px; }
.dd-list input[type="radio"] { width: 16px; height: 16px; accent-color: var(--ink); }

/* ===== страница карты ===== */
.map-page { display: flex; flex-direction: column; height: calc(100svh - 77px); }
.map-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.mf select, .mf input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; color: var(--ink); }
.map-filters .found { margin-left: auto; }
.map-filters .seg span { border: 1px solid var(--line-2); padding: 9px 16px; }
.map-filters .seg label + label span { border-left: 0; }
.map-split { flex: 1; display: grid; grid-template-columns: 1fr 400px; min-height: 0; }
.map-canvas { min-height: 0; background: var(--soft); }
.map-canvas .leaflet-tile-pane { filter: grayscale(1) contrast(1.05) brightness(1.03); }
.map-list { overflow-y: auto; border-left: 1px solid var(--line); }
.ml-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ml-item:hover { background: var(--soft); }
.ml-item img, .ml-noimg { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); display: block; }
.ml-item > span { display: grid; align-content: start; gap: 2px; font-size: 14px; }
.ml-item b { font-size: 17px; font-weight: 500; }
.ml-item small { color: var(--muted); }
.ml-empty { padding: 24px; color: var(--muted); }

/* ===== форма собственника ===== */
.owner-form { max-width: 920px; display: grid; gap: 28px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; }
.of-sec { border: 0; border-top: 1px solid var(--ink); padding: 24px 0 0; margin: 0; display: grid; gap: 18px; }
.of-sec legend { font-size: 24px; font-weight: 300; padding: 0 0 12px; float: left; width: 100%; }
.of-sec > * { clear: both; }
.of-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.of-grid .fld-wide { grid-column: 1 / -1; }
.fld select, .fld textarea { min-height: 50px; padding: 0 14px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; color: var(--ink); border-radius: 0; }
.fld textarea { padding: 12px 14px; resize: vertical; font: inherit; }
.fld small { color: var(--muted); font-size: 12px; }
.of-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.owner-form .seg span { border: 1px solid var(--line-2); padding: 12px 28px; }
.owner-form .seg label + label span { border-left: 0; }
.photos-in { display: grid; gap: 14px; }
.photo-drop { display: grid; place-items: center; min-height: 140px; border: 1px dashed var(--line-2); cursor: pointer; text-align: center; padding: 20px; }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--ink); }
.photo-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-drop b { display: block; font-weight: 500; font-size: 16px; }
.photo-drop small { color: var(--muted); }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ph { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; background: rgba(255,255,255,.92); font-size: 18px; cursor: pointer; }
.ph span { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: #fff; font-size: 11px; padding: 2px 6px; letter-spacing: .06em; }
.chk-consent { align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.chk-consent input { margin-top: 3px; flex: none; }
.of-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lead-note.err { color: #b42318; }
.owner-done { max-width: 640px; display: grid; gap: 16px; padding: 40px 0; }

@media (max-width: 960px) {
  .map-split { grid-template-columns: 1fr; grid-template-rows: 1fr 40%; }
  .map-list { border-left: 0; border-top: 1px solid var(--line); }
  .map-page { height: calc(100svh - 65px); }
  .map-filters { padding: 12px 20px; }
  .of-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .dd-wide { grid-template-columns: 1fr; min-width: 0; }
  .map-filters .found { margin-left: 0; width: 100%; }
  .of-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1600px) { .hdr-phone { display: none; } }
@media (max-width: 1320px) { .hdr-actions .icon-btn { display: none; } .nav { gap: 20px; } .hdr-row { gap: 24px; } }
@media (max-width: 1100px) { .nav, .hdr-cta { display: none; } .burger { display: block; } }

/* логотип в одну строку */
.logo-name { text-transform: none; letter-spacing: .01em; font-size: 18px; font-weight: 600; }
.has-hero .hdr.is-solid, .has-hero .hdr:hover, .has-hero .hdr:focus-within { background: #fff; }
.hdr { background: #fff; }
.has-hero .hdr { background: transparent; }
/* карта на главной */
.home-map { height: 560px; margin-top: 8px; }
.home-map .leaflet-tile-pane { filter: grayscale(1) contrast(1.05) brightness(1.03); }
.home-map-deal { margin-bottom: 14px; }
.home-map-deal span { border: 1px solid var(--line-2); }
.home-map-deal label + label span { border-left: 0; }
@media (max-width: 720px) { .logo-name { font-size: 16px; letter-spacing: 0; } .home-map { height: 420px; } }

/* окно записи на просмотр */
.modal { border: 0; padding: 0; width: min(460px, 94vw); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(10,10,10,.55); }
.modal-form, .modal-done { position: relative; display: grid; gap: 14px; padding: 36px 32px 28px; }
.modal h2 { font-size: 28px; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.modal .fld input { min-height: 50px; }
.panel .btn-dark { margin-top: 4px; }
.home-cat-deal span { border: 1px solid var(--line-2); }
.home-cat-deal label + label span { border-left: 0; }
.home-cat { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* разделы продажи */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; display: grid; align-content: start; gap: 4px; min-height: 150px; padding: 22px 22px 18px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .2s ease, background-color .2s ease; }
.cat:hover { border-color: var(--ink); }
.cat.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-name { font-size: 19px; font-weight: 400; line-height: 1.2; max-width: 11em; }
.cat-n { font-size: 13px; color: var(--muted); }
.cat.is-current .cat-n { color: rgba(255,255,255,.7); }
.cat-ico { position: absolute; right: 14px; bottom: 10px; width: 84px; opacity: .85; }
.cat-ico svg { width: 100%; height: auto; display: block; }
@media (max-width: 960px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cats { grid-template-columns: 1fr; } .cat { min-height: 110px; } }

/* цены и о районе */
.stats table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.stats th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; letter-spacing: .04em; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.stats td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.small-note { font-size: 13px; margin-top: 10px; }
.about-district { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.about-district h2 { margin-bottom: 18px; }
.about-district p { color: var(--ink-2); max-width: 40em; }
.about-district p + p { margin-top: 14px; }
/* отзывы */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review { margin: 0; padding: 28px; background: var(--soft); display: grid; gap: 18px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 300; }
.review figcaption { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; font-size: 14px; }
.review figcaption span, .review figcaption a { color: var(--muted); }
.review-cta { margin-top: 28px; color: var(--ink-2); }
@media (max-width: 860px) { .about-district { grid-template-columns: 1fr; gap: 28px; } }

.obj-date { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.obj-desc { margin-top: 16px; max-width: 44em; color: var(--ink-2); font-size: 17px; }

/* ---------- Maxis Group: логотип ---------- */
:root { --brand: #002a38; }
.logo-name { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.has-hero .hdr:not(.is-solid):not(:hover):not(:focus-within) .logo-ico-dark { display: none; }
.has-hero .hdr:not(.is-solid):not(:hover):not(:focus-within) .logo-ico-light { display: block; }
.has-hero .hdr:not(.is-solid):not(:hover):not(:focus-within) .logo-name { color: #fff; }
.ftr-logo img { width: 160px; height: auto; display: block; }
.agent-mark { object-fit: contain; background: none; border-radius: 0; }
.ftr-legal { padding: 28px 0 0; color: #9a9a9a; font-size: 13px; line-height: 1.6; }
.ftr-legal p + p { margin-top: 6px; }
.ftr-legal b { color: #d9d9d9; font-weight: 500; }
.ftr-legal a { text-decoration: underline; }
.panel-legal, .obj-legal { font-size: 12px; color: var(--muted); }
.obj-legal { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--line-2); }
@media (max-width: 720px) { .logo-sub { display: none; } .logo-ico { width: 34px; height: 34px; } }

/* ---------- Услуги ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (min-width: 1181px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } .svc-t { font-size: 19px; } .svc-s { font-size: 15px; } }
.svc { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 40px 24px 32px; background: #f4f5f6; border-radius: 12px; text-align: center; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, background .2s; }
.svc:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 42, 56, .12); }
.svc-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; color: var(--brand); }
.svc-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-t { font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.svc-s { font-size: 17px; color: var(--ink-2); }
.svc-more { margin-top: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.svc-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.svc-head .btn { margin-top: 24px; }
.svc-ico-lg { width: 88px; height: 88px; margin: 18px 0 0; padding: 14px; background: #f4f5f6; border-radius: 12px; }
.svc-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding-top: 24px; }
.svc-aside { position: sticky; top: 96px; }
.svc-aside .panel { display: grid; gap: 12px; }
.panel-t { font-size: 20px; font-weight: 500; }
.svc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-list li { position: relative; padding-left: 26px; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 1px; background: var(--brand); }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.svc-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.svc-steps h3, .svc-grounds h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.svc-steps p, .svc-grounds p { margin: 0; color: var(--ink-2); }
.svc-steps .step-n { font-size: 22px; font-weight: 300; color: var(--brand); }
.svc-grounds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc-grounds > div { padding: 18px 20px; background: #f4f5f6; border-radius: 10px; }
.lead-form select { min-height: 50px; padding: 0 14px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; color: var(--ink); border-radius: 0; }

/* ---------- О компании ---------- */
.legal-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; margin: 0; }
.legal-dl div { padding: 16px 0; border-top: 1px solid var(--line); }
.legal-dl dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; display: grid; }
.legal-dl dt span { font-size: 11px; color: var(--line-2); }
.legal-dl dd { margin: 6px 0 0; font-size: 18px; }
.legal-text > * { max-width: 860px; }
.legal-text p { margin: 0 0 14px; color: var(--ink-2); }
.legal-sr { margin-top: 24px; padding: 24px 28px; background: #f4f5f6; border-radius: 10px; }
.legal-sr h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
.legal-sr h3:first-child { margin-top: 0; }
.legal-sr ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); }

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-page { grid-template-columns: 1fr; gap: 24px; }
  .svc-aside { position: static; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc { padding: 24px 12px 20px; }
  .svc-ico { width: 48px; height: 48px; margin-bottom: 8px; }
  .svc-t { font-size: 16px; } .svc-s { font-size: 14px; }
  .svc-head { grid-template-columns: 1fr; gap: 0; }
  .svc-ico-lg { width: 64px; height: 64px; }
  .svc-grounds { grid-template-columns: 1fr; }
}
