/* =========================================================
   Сайт новостроек Москвы — основные стили
   Цвета и размеры меняются в одном месте: блок :root ниже
   ========================================================= */

:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #F9F8F5;
  --ink: #15171C;
  --ink-2: #3B3F4A;
  --muted: #737885;
  --line: #E7E4DD;
  --line-2: #D7D3CA;
  --accent: #FF5A1F;
  --accent-hover: #EE4A0F;
  --accent-soft: #FFEEE6;
  --accent-ink: #C2410C;
  --dark: #121419;
  --dark-2: #1C1F26;
  --green: #12A150;
  --green-soft: #E2F5E9;
  --green-ink: #0B7A3B;
  --blue: #2457D6;
  --blue-soft: #E7EEFD;
  --warn: #FFB020;
  --danger: #D92D20;
  --r-xl: 26px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(21, 23, 28, .05);
  --shadow: 0 2px 6px rgba(21, 23, 28, .04), 0 14px 34px rgba(21, 23, 28, .08);
  --shadow-lg: 0 28px 70px rgba(21, 23, 28, .18);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --container: 1300px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main { min-height: 60vh; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--font-display); letter-spacing: -0.025em; font-weight: 600; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(255, 90, 31, .35);
}
.logo-mark svg { display: block; }
.logo-text b { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; display: block; line-height: 1; }
.brand-accent { color: var(--accent); }
.logo-text small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; font-weight: 600; }
.main-nav { display: flex; gap: 2px; margin-left: 6px; }
.main-nav a { padding: 9px 14px; border-radius: 10px; font-weight: 700; color: var(--ink-2); font-size: 14.5px; transition: background .15s, color .15s; white-space: nowrap; }
@media (max-width: 1420px) { .header-phone { display: none; } .main-nav a { padding: 9px 11px; } }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; position: relative;
  border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, color .15s; flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--accent); }
.fav-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  padding: 0 5px; border: 2px solid #fff;
}
.header-phone { font-weight: 800; font-size: 15px; white-space: nowrap; }
.header-phone small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.burger { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: 8px 16px 20px; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 20px rgba(255, 90, 31, .28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2E37; }
.btn-light { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: var(--line-2); background: #fff; }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #F1EFEA; }
.btn-outline-white { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .08); }
.btn-danger { background: #FDECEB; color: var(--danger); }
.btn-danger:hover { background: #FAD7D4; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }

.input, .select, .textarea {
  width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 23, 28, .08); }
.input::placeholder, .textarea::placeholder { color: #A3A7B0; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737885' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: background .12s, color .12s, border-color .12s;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .cnt { font-size: 12px; opacity: .6; font-weight: 600; }
.seg { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; flex-wrap: nowrap; }
.seg .chip { border: 0; background: transparent; height: 34px; padding: 0 13px; }
.seg .chip.on { background: var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.tag svg { width: 13px; height: 13px; }
.tag-green { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }
.tag-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.tag-blue { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.tag-dark { background: var(--ink); border-color: transparent; color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px;
  font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .94); color: var(--ink); white-space: nowrap;
}
.badge-dark { background: rgba(21, 23, 28, .86); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-warn { background: var(--warn); color: #3B2600; }
.badge-accent { background: var(--accent); color: #fff; }

.metro { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); min-width: 0; flex-wrap: wrap; }
.metro i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.metro .time { color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.metro .time svg { width: 14px; height: 14px; }

.link { color: var(--blue); font-weight: 700; }
.link:hover { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; white-space: nowrap; }
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- секции ---------- */
.section { padding-block: 80px; }
.section-sm { padding-block: 48px; }
.section-white { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2, .h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.section-head p { color: var(--muted); max-width: 600px; margin-top: 12px; font-size: 16.5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- главная: первый экран ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; border-radius: 0 0 40px 40px; }
.hero::before {
  content: ''; position: absolute; width: 900px; height: 900px; right: -260px; top: -420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .38) 0%, rgba(255, 90, 31, 0) 62%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; padding-block: 76px 92px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px 0 6px; border-radius: 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 700; margin-bottom: 26px;
}
.hero-pill b { background: var(--accent); border-radius: 13px; padding: 3px 10px; font-size: 12px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.1vw, 56px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; color: rgba(255, 255, 255, .7); margin-top: 22px; max-width: 580px; line-height: 1.55; }
.search-panel {
  background: #fff; color: var(--ink); border-radius: 22px; padding: 16px; margin-top: 34px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: end;
}
.search-panel .field > span { font-size: 12px; color: var(--muted); }
.search-panel .actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-panel .actions .btn-primary { flex: 1; }
.hero-stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats b { font-family: var(--font-display); font-size: 30px; font-weight: 600; display: block; letter-spacing: -0.03em; }
.hero-stats span { color: rgba(255, 255, 255, .58); font-size: 14px; }
.hero-art { position: relative; aspect-ratio: 4 / 4.4; }
.hero-art .art-frame { position: absolute; inset: 0 0 0 30px; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.hero-art .art-frame svg { width: 100%; height: 100%; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 13px; animation: floaty 6s ease-in-out infinite;
}
.float-card b { font-size: 16px; display: block; font-weight: 800; }
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.float-card.one { left: -10px; top: 14%; }
.float-card.two { right: -14px; bottom: 16%; animation-delay: -3s; }
.float-card.three { left: 12%; bottom: -18px; animation-delay: -1.5s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- главная: блоки ---------- */
.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.intro-statement { font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 29px); line-height: 1.28; letter-spacing: -0.03em; font-weight: 500; }
.intro-statement em { font-style: normal; color: var(--accent); }
.intro-points { display: grid; gap: 14px; }
.point { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.point .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.point h3 { font-size: 17px; margin-bottom: 4px; }
.point p { color: var(--muted); font-size: 14.5px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
a.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 14.5px; }
.feature .more { margin-top: auto; padding-top: 18px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.feature.dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.feature.dark p { color: rgba(255, 255, 255, .62); }
.feature.dark .ic { background: rgba(255, 255, 255, .1); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: '0' counter(step); font-family: var(--font-display); font-size: 15px; color: var(--accent);
  font-weight: 600; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); margin-bottom: 24px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat {
  padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; min-height: 140px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.cat .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.cat b { font-size: 15px; line-height: 1.3; }
.cat span { color: var(--muted); font-size: 13px; margin-top: auto; }

.map-teaser { position: relative; border-radius: var(--r-xl); overflow: hidden; height: 500px; border: 1px solid var(--line); background: #EDEAE3; }
.map-teaser .map { position: absolute; inset: 0; }
.map-teaser-card {
  position: absolute; left: 24px; top: 24px; z-index: 500; background: #fff; border-radius: 22px; padding: 28px;
  width: 380px; max-height: calc(100% - 48px); overflow: auto; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px;
}
.map-teaser-card h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.map-teaser-card p { color: var(--muted); }
.map-teaser-card .btn { margin-top: auto; }
.districts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.districts a { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.districts a span { color: var(--muted); font-weight: 600; }
.districts a:hover { color: var(--accent); }

/* ---------- карточка ЖК ---------- */
.cx-card {
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cx-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.cx-media { position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden; background: var(--surface-2); }
.cx-media > svg, .cx-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cx-card:hover .cx-media > svg, .cx-card:hover .cx-media > img { transform: scale(1.03); }
.cx-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.cx-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cx-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.cx-name:hover { color: var(--accent); }
.cx-dev { font-size: 13px; color: var(--muted); font-weight: 600; }
.cx-addr { font-size: 13.5px; color: var(--muted); }
.cx-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cx-rooms a { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.cx-rooms a span { color: var(--muted); }
.cx-rooms a b { font-weight: 700; white-space: nowrap; }
.cx-rooms a:hover b { color: var(--accent); }
.cx-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cx-foot small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.cx-foot b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- карточка квартиры ---------- */
.apt-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow .2s, border-color .2s; min-width: 0; }
.apt-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.apt-media { position: relative; background: var(--surface-2); border-radius: 14px; overflow: hidden; margin: 10px; }
.apt-media-link { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; }
.apt-media-link svg, .apt-media-link img { width: 100%; height: 100%; object-fit: contain; }
.apt-media .badge { position: absolute; left: 10px; top: 10px; pointer-events: none; }
.fav-btn {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); color: var(--ink-2); transition: color .15s, transform .15s;
}
.fav-btn:hover { color: var(--accent); transform: scale(1.06); }
.fav-btn.on { color: var(--accent); }
.fav-btn.on svg { fill: currentColor; }
.apt-body { padding: 18px 10px 18px 8px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.apt-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.apt-title:hover { color: var(--accent); }
.apt-cx { font-size: 14px; color: var(--muted); }
.apt-cx a { font-weight: 800; color: var(--ink); }
.apt-cx a:hover { color: var(--accent); }
.apt-addr { font-size: 13.5px; color: var(--muted); }
.apt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.apt-side { padding: 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.apt-price b { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; display: block; white-space: nowrap; }
.apt-price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.apt-mortgage { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.apt-mortgage b { white-space: nowrap; }
.apt-side .btns { display: grid; gap: 8px; margin-top: auto; }
.apt-card.row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 240px; }
.apt-card.row .apt-media { min-height: 190px; }
.apt-card.grid { display: flex; flex-direction: column; }
.apt-card.grid .apt-media { aspect-ratio: 4 / 3.2; margin-bottom: 0; }
.apt-card.grid .apt-side { order: 2; border-left: 0; padding: 14px 18px 0; }
.apt-card.grid .apt-body { order: 3; padding: 4px 18px 18px; }
.apt-card.grid .apt-side .btns, .apt-card.grid .apt-mortgage { display: none; }
.apt-card.grid .apt-title { font-size: 15.5px; }

/* ---------- страница: заголовок и хлебные крошки ---------- */
.page-head { padding-block: 28px 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }
.page-title { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.page-sub { color: var(--muted); margin-top: 10px; font-size: 16px; max-width: 760px; }

/* ---------- каталог ---------- */
.quickbar {
  display: flex; gap: 10px; align-items: center; margin-top: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px; flex-wrap: wrap;
}
.search-box { position: relative; flex: 1 1 280px; min-width: 0; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box .input { padding-left: 42px; }
.catalog-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 80px; }
.filters-panel {
  position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 20px 20px; scrollbar-width: thin;
}
.drawer-head {
  display: none; align-items: center; justify-content: space-between; padding: 16px 0; background: var(--surface);
  position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 19px;
}
.f-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-sec:last-child { border-bottom: 0; }
.f-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input-wrap { position: relative; display: block; }
.input-wrap > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; font-weight: 600; }
.input-wrap .input { padding-left: 34px; height: 40px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; position: relative; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; transition: all .12s; background: #fff;
}
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box::after {
  content: ''; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check .lbl { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.check .cnt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.check-list { max-height: 248px; overflow: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; }
.f-sec[data-sec="district"] .check-list, .f-sec[data-sec="payment"] .check-list, .f-sec[data-sec="features"] .check-list { max-height: none; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; padding: 5px 0; position: relative; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggles { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.f-search { height: 38px; margin-bottom: 8px; font-size: 14px; }
.more-link { font-size: 13.5px; font-weight: 800; color: var(--blue); margin-top: 6px; }
.f-actions { position: sticky; bottom: -20px; background: var(--surface); padding: 14px 0 20px; display: none; gap: 8px; border-top: 1px solid var(--line); }
.f-actions .btn-primary { flex: 1; }

.results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.results-count { font-size: 16px; font-weight: 800; }
.results-count span { color: var(--muted); font-weight: 600; }
.results-bar .spacer { flex: 1; }
.results-bar .select { width: auto; height: 40px; font-size: 14px; font-weight: 700; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface); }
.view-toggle button { width: 36px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.on { background: var(--ink); color: #fff; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.active-chip {
  height: 32px; padding: 0 6px 0 12px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.active-chip button { opacity: .65; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.active-chip button:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.clear-all { font-size: 13px; font-weight: 800; color: var(--accent); padding: 0 6px; }
.results-list { display: grid; gap: 14px; }
.results-list.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination button { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; }
.pagination button:hover { border-color: var(--line-2); }
.pagination button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .4; pointer-events: none; }
.pagination .dots { align-self: center; color: var(--muted); padding: 0 4px; }
.filter-toggle { display: none; }
.filter-toggle .num { background: var(--accent); color: #fff; border-radius: 9px; font-size: 11.5px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }

.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }
.empty .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.skeleton {
  background: linear-gradient(90deg, #EDEBE6 0%, #F7F6F2 50%, #EDEBE6 100%); background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear; border-radius: var(--r-lg);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- карта ---------- */
body[data-page="map"] .site-footer { display: none; }
.map-page { position: relative; display: grid; grid-template-columns: 430px minmax(0, 1fr); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
.map-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); min-height: 0; z-index: 2; }
.map-side-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.map-side-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.map-side-head .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.map-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.map-summary span { color: var(--muted); font-weight: 600; }
.map-list { overflow: auto; flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.map-item {
  display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; width: 100%;
}
.map-item:hover, .map-item.active { border-color: var(--ink); box-shadow: var(--shadow); }
.thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.thumb > svg, .thumb > img { width: 100%; height: 100%; object-fit: cover; }
.map-item h3 { font-size: 15px; font-weight: 800; line-height: 1.3; }
.map-item .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.map-item .metro { font-size: 13px; }
.map-item .price { font-weight: 800; font-size: 16px; margin-top: auto; }
.map-item .price span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.map-canvas { position: relative; min-height: 0; }
.map-canvas > .map { position: absolute; inset: 0; }
.map-float { position: absolute; z-index: 500; top: 14px; left: 50%; transform: translateX(-50%); }
.map-float .switch { background: #fff; padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.map-mobile-toggle { display: none; }
.map-loading { position: absolute; z-index: 600; top: 64px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; }

.leaflet-container { font-family: var(--font); background: #EDEAE3; }
.tiles-light .leaflet-tile-pane { filter: saturate(.42) sepia(.08) brightness(1.05) contrast(.9); }
.tiles-soft .leaflet-tile-pane { filter: grayscale(1) brightness(1.1) contrast(.78); }
.tiles-mono .leaflet-tile-pane { filter: grayscale(.92) sepia(.14) brightness(1.08) contrast(.86); }
.leaflet-gl-layer, .maplibregl-canvas { outline: none; }
.poi-pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.pin-icon { background: none; border: 0; }
.pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); white-space: nowrap;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1; padding: 7px 10px; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28); transition: background .15s, transform .15s; cursor: pointer;
}
.pin::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; background: inherit;
  transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.pin.done { background: #0F7A3E; }
.pin.active { background: var(--accent); transform: translate(-50%, calc(-100% - 7px)) scale(1.1); }
.pin.single { width: 22px; height: 22px; padding: 0; border-radius: 50% 50% 50% 0; transform: translate(-50%, -130%) rotate(-45deg); background: var(--accent); border: 3px solid #fff; }
.pin.single::after { display: none; }
.cluster-icon { background: none; border: 0; }
.cluster {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; line-height: 1;
  box-shadow: 0 0 0 7px rgba(255, 90, 31, .22), 0 8px 18px rgba(0, 0, 0, .22); text-align: center;
}
.cluster small { display: block; font-size: 9.5px; font-weight: 700; opacity: .85; margin-top: 2px; }
.leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 0; width: 300px !important; font-family: var(--font); font-size: 14px; line-height: 1.45; }
.leaflet-popup-tip { box-shadow: none; }
.leaflet-container a.leaflet-popup-close-button {
  top: 10px; right: 10px; width: 30px; height: 30px; background: #fff; border-radius: 50%; color: var(--ink); font-size: 20px;
  line-height: 28px; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); z-index: 2;
}
.leaflet-container a { color: inherit; }
.popup-cx .media { aspect-ratio: 16 / 9; display: block; position: relative; }
.popup-cx .media > svg, .popup-cx .media > img { width: 100%; height: 100%; object-fit: cover; }
.popup-cx .media .badge { position: absolute; left: 10px; bottom: 10px; }
.popup-cx .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.popup-cx h3 { font-size: 17px; font-weight: 800; }
.popup-cx .rooms { display: grid; gap: 2px; margin: 4px 0 6px; font-size: 13px; }
.popup-cx .rooms a { display: flex; justify-content: space-between; padding: 2px 0; }
.popup-cx .rooms a span { color: var(--muted); }
.popup-cx .rooms a:hover b { color: var(--accent); }
.popup-cx .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.popup-cx .btn { color: #fff; }
.popup-cx .btn-light { color: var(--ink); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 36px !important; color: var(--ink) !important; }
.leaflet-control-attribution { font-size: 10.5px; }

/* ---------- страница ЖК ---------- */
.cx-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.gallery { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10.5; }
.gallery .main { position: absolute; inset: 0; }
.gallery .main > svg, .gallery .main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery .badges { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-count { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { width: 92px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 2px solid transparent; opacity: .7; }
.gallery-thumbs button.on { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.info-card h1 { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.info-card .addr { color: var(--muted); font-size: 15px; }
.info-card .dev-line { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.info-card .dev-line small { color: var(--muted); display: block; font-size: 12px; font-weight: 600; }
.info-card .dev-line b { font-size: 15px; }
.price-from small { color: var(--muted); font-size: 13px; font-weight: 700; display: block; }
.price-from b { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.price-from span { color: var(--muted); font-size: 14px; font-weight: 600; margin-left: 6px; }
.info-card .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fact { background: var(--surface); padding: 18px 20px; }
.fact small { color: var(--muted); font-size: 13px; display: block; font-weight: 600; }
.fact b { font-size: 16.5px; font-weight: 800; display: block; margin-top: 4px; }
.rooms-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.room-tile {
  padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left;
  transition: border-color .15s, background .15s; display: flex; flex-direction: column; gap: 2px;
}
.room-tile:hover { border-color: var(--line-2); }
.room-tile.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.room-tile.on small { color: rgba(255, 255, 255, .6); }
.room-tile b { font-size: 16px; font-weight: 800; }
.room-tile span { font-size: 15px; font-weight: 700; }
.room-tile small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.apt-lines { display: grid; gap: 8px; }
.apt-line {
  display: grid; grid-template-columns: 76px minmax(0, 1.5fr) 1fr 1fr 1.1fr 1.3fr 40px; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s;
}
.apt-line:hover { border-color: transparent; box-shadow: var(--shadow); }
.apt-line .thumb { aspect-ratio: auto; width: 76px; height: 60px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.apt-line .thumb svg, .apt-line .thumb img { object-fit: contain; }
.apt-line b { font-weight: 800; }
.apt-line small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.apt-line .price { text-align: right; }
.apt-line .price b { font-size: 16px; white-space: nowrap; }
.apt-line .fav-btn { position: static; box-shadow: none; border: 1px solid var(--line); width: 36px; height: 36px; }
.feat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feat-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.feat-item .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.mini-map { height: 400px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); position: relative; background: #EDEAE3; }
.mini-map .map { position: absolute; inset: 0; }
.text-block { font-size: 16px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; max-width: 820px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }

.dev-logo {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 20px; color: #fff; flex-shrink: 0; overflow: hidden; letter-spacing: -0.03em;
}
.dev-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.dev-logo.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.dev-logo.lg { width: 84px; height: 84px; border-radius: 24px; font-size: 30px; }
.dev-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.dev-card h3 { font-size: 19px; margin-bottom: 4px; }
.dev-card p { color: var(--muted); font-size: 14.5px; }
.dev-stats { display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap; }
.dev-stats div small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.dev-stats div b { font-size: 16px; font-weight: 800; }
.dev-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.dev-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.dev-tile .top { display: flex; gap: 14px; align-items: center; }
.dev-tile h3 { font-size: 18px; font-weight: 800; }
.dev-tile p { color: var(--muted); font-size: 14px; flex: 1; }
.dev-tile .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.dev-tile .stats small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.dev-tile .stats b { font-size: 15px; font-weight: 800; white-space: nowrap; }

/* ---------- страница квартиры ---------- */
.apt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 40px; }
.apt-head-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel > h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.01em; }
.apt-gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 20px; }
.apt-gallery-tabs { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.apt-gallery-main { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; background: #fff; }
.apt-gallery-main > .plan-wrap { position: absolute; inset: 24px; display: grid; place-items: center; }
.apt-gallery-main > .plan-wrap > svg, .apt-gallery-main > .plan-wrap > img { width: 100%; height: 100%; object-fit: contain; }
.apt-gallery-main > .photo { position: absolute; inset: 0; }
.apt-gallery-main > .photo > svg, .apt-gallery-main > .photo > img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.spec span { color: var(--muted); }
.spec b { font-weight: 700; text-align: right; }
.spec b a { color: var(--blue); }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list .tag { height: 34px; padding: 0 14px; font-size: 13.5px; }
.buy-card { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.buy-card .price { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.buy-card .ppm { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.buy-card .note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--green-ink); background: var(--green-soft); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.buy-card .row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy-card .divider { height: 1px; background: var(--line); margin: 2px 0; }
.buy-card .dev-mini { display: flex; gap: 12px; align-items: center; }
.buy-card .dev-mini small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.calc .field + .field { margin-top: 16px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.calc-row b { font-size: 15px; }
.calc-progs { display: flex; flex-wrap: wrap; gap: 6px; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 22px; margin: 6px 0 0; }
.calc-result { background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.calc-result small { color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; display: block; }
.calc-result .big { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.calc-result .line { display: flex; justify-content: space-between; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; gap: 10px; }
.calc-result .line span { color: rgba(255, 255, 255, .6); }
.calc-hint { font-size: 12px; color: rgba(255, 255, 255, .45); }

/* ---------- блок с заявкой ---------- */
.cta-band {
  background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: 52px; display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 48px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .35), rgba(255, 90, 31, 0) 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cta-band p { color: rgba(255, 255, 255, .66); margin-top: 14px; font-size: 16px; }
.cta-band .contacts { display: flex; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.cta-band .contacts a { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.cta-band .contacts .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.lead-inline { display: grid; gap: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); padding: 22px; border-radius: 22px; }
.lead-inline .input, .lead-inline .textarea { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; }
.lead-inline .input::placeholder, .lead-inline .textarea::placeholder { color: rgba(255, 255, 255, .45); }
.lead-inline .input:focus, .lead-inline .textarea:focus { border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.lead-inline .consent { color: rgba(255, 255, 255, .45); }
.lead-inline .consent a { text-decoration: underline; }
.lead-done { text-align: center; padding: 24px 8px; }
.lead-done .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.lead-done h3 { font-size: 21px; margin-bottom: 6px; }
.lead-done p { color: inherit; opacity: .7; }

/* ---------- окно, уведомления ---------- */
.modal-root {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px;
  background: rgba(15, 17, 22, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .15s ease-out;
}
.modal {
  background: var(--surface); border-radius: 24px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow: auto; padding: 30px; position: relative; box-shadow: var(--shadow-lg); animation: pop .2s ease-out;
}
.modal.wide { max-width: 900px; }
.modal.xwide { max-width: 1100px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); z-index: 5; }
.modal-close:hover { background: var(--line); }
.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; padding-right: 40px; letter-spacing: -0.01em; }
.modal .sub { color: var(--muted); margin-bottom: 20px; font-size: 14.5px; }
.modal .obj { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.modal .obj .thumb { width: 64px; height: 52px; aspect-ratio: auto; padding: 3px; background: #fff; flex-shrink: 0; }
.modal .obj .thumb svg { object-fit: contain; }
.modal .obj b { display: block; font-size: 14.5px; }
.modal .obj small { color: var(--muted); font-size: 13px; }
.form-stack { display: grid; gap: 12px; }
.consent { font-size: 12px; color: var(--muted); line-height: 1.45; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
body.no-scroll { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4000; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow-lg); animation: pop .2s; font-size: 14.5px; }
.toast.error { background: var(--danger); }
.toast.ok { background: #0F7A3E; }

/* ---------- застройщики, о сервисе ---------- */
.dev-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }
.dev-hero h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.03em; }
.dev-hero p { color: var(--muted); margin-top: 8px; max-width: 720px; }
.stat-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stat-box small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-box b { display: block; font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }

.about-hero { padding-block: 56px 24px; }
.about-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; max-width: 980px; }
.about-hero h1 em { font-style: normal; color: var(--accent); }
.about-hero p { font-size: 18px; color: var(--muted); max-width: 720px; margin-top: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ticks { list-style: none; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15.5px; }
.ticks li::before {
  content: ''; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B7A3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center no-repeat;
}
.ticks li b { display: block; margin-bottom: 2px; }
.ticks li span { color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; font-size: 15.5px; max-width: 820px; line-height: 1.6; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.contact-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-card small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.contact-card b { font-size: 16px; }

/* ---------- подвал ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 800; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 10px; font-size: 14.5px; }
.footer-about { font-size: 14px; margin-top: 18px; max-width: 340px; line-height: 1.6; }
.footer-phone { font-size: 22px; font-weight: 800; color: #fff; display: block; letter-spacing: -0.01em; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap; color: rgba(255, 255, 255, .45); }
.site-footer .logo-text small { color: rgba(255, 255, 255, .5); }
.site-footer .logo-text b { color: #fff; }

.admin-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 900; background: var(--ink); color: #fff; height: 40px; padding: 0 16px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; box-shadow: var(--shadow-lg);
}
.admin-pill:hover { background: var(--accent); }
body[data-page="map"] .admin-pill { left: auto; right: 70px; }
.map-side-head .f-sec { padding: 2px 0; border: 0; }
.map-side-head .f-title { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.map-side-head .f-sec[data-sec="rooms"] .f-title { display: none; }
.btn[data-fav].on { color: var(--accent); border-color: #FFD0BC; background: var(--accent-soft); }
.btn[data-fav].on svg { fill: currentColor; }
.btn[data-fav].on span { display: none; }
.btn[data-fav].on::after { content: 'В избранном'; }

/* ---------- согласие, cookie, сравнение ---------- */
.consent-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.45; position: relative; }
.consent-check input { position: absolute; opacity: 0; pointer-events: none; }
.consent-check .box { width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; display: grid; place-items: center; margin-top: 1px; }
.consent-check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.consent-check input:checked + .box::after { content: ''; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.consent-check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-check a { text-decoration: underline; color: inherit; }
.consent-check.need .box { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 45, 32, .15); }
.lead-inline .consent-check { color: rgba(255, 255, 255, .55); }
.lead-inline .consent-check .box { background: transparent; border-color: rgba(255, 255, 255, .35); }
.captcha-box:empty { display: none; }
.cookie-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 950; max-width: 460px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--ink-2);
}
.cookie-bar a { text-decoration: underline; }
.cookie-bar .btn { flex-shrink: 0; }
body:has(.cookie-bar) .admin-pill { bottom: 96px; }
.compare-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 940; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow-lg); font-size: 14px; white-space: nowrap;
}
.compare-bar .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; width: 34px; height: 34px; }
.cmp-btn { top: 54px; }
.cmp-btn svg { stroke-width: 2.4; }
.cmp-btn.on { background: var(--ink); color: #fff; }
.cmp-btn.on svg { fill: none; }
.btn.cmp-toggle.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn.cmp-toggle.on span { display: none; }
.btn.cmp-toggle.on::after { content: 'В сравнении'; }
.price-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; font-weight: 700; color: var(--green-ink); }
.price-drop s { color: var(--muted); font-weight: 600; }
.price-drop.big { font-size: 14px; background: var(--green-soft); border-radius: 12px; padding: 9px 12px; }
/* Скидка застройщика: цена без скидки рядом с текущей */
.badge-sale { background: #E5322D; color: #fff; }
.apt-price .price-was { display: flex; align-items: center; gap: 6px; margin: 2px 0 1px; font-size: 14px; color: var(--muted); font-weight: 600; }
.apt-price .price-was s { color: var(--muted); }
.apt-price .price-was em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: #E5322D; border-radius: 6px; padding: 1px 6px; }
.price-sale { display: flex; gap: 10px; align-items: flex-start; background: #FDECEB; color: #B42318; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.price-sale div { display: grid; gap: 2px; }
.price-sale span { color: var(--ink-2); font-size: 13px; }
.price-sale s { color: var(--muted); }
.hide-sm { }

/* ---------- квиз ---------- */
.modal.quiz-modal { max-width: 620px; }
.quiz-head { display: grid; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--muted); font-weight: 700; padding-right: 40px; }
.quiz-bar { height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.quiz h3 { font-size: 24px; letter-spacing: -0.02em; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.quiz-options.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.quiz-opt {
  min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2);
  font-weight: 700; font-size: 15px; text-align: left; transition: border-color .12s, background .12s;
}
.quiz-opt:hover { border-color: var(--line-2); background: #fff; }
.quiz-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.quiz-options.compact .quiz-opt { min-height: 44px; text-align: center; font-size: 14px; }
.quiz-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.quiz-nav .btn-primary { min-width: 160px; }
.quiz-count { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); font-size: 14px; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.quiz-banner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 40px; border-radius: var(--r-xl);
  background: linear-gradient(120deg, #FFF1EA 0%, #FFE2D3 100%); border: 1px solid #FFD5C1;
}
.quiz-banner h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.quiz-banner p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.quiz-banner-side { display: grid; gap: 18px; justify-items: start; }
.quiz-steps { display: flex; gap: 8px; }
.quiz-steps span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 800; color: var(--accent); box-shadow: var(--shadow-sm); }

/* ---------- акции, ход строительства, шахматка ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.promo-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: box-shadow .2s, transform .2s; min-height: 170px;
}
.promo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.promo-img { aspect-ratio: 16 / 8; display: block; background: var(--surface-2); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-badge {
  align-self: flex-start; margin: 18px 18px 0; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 20px; padding: 6px 14px; border-radius: 12px; letter-spacing: -0.02em;
}
.promo-img + .promo-badge { position: absolute; top: 0; left: 0; }
.promo-body { padding: 14px 18px 18px; display: grid; gap: 6px; }
.promo-body b { font-size: 17px; line-height: 1.3; }
.promo-text { color: var(--ink-2); font-size: 14px; }
.promo-meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.promo-grid.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.promo-grid.compact .promo-card { flex-direction: row; align-items: center; min-height: 0; }
.promo-grid.compact .promo-badge { margin: 14px 0 14px 14px; font-size: 16px; flex-shrink: 0; }
.promo-grid.compact .promo-img { display: none; }
.promo-grid.compact .promo-body { padding: 12px 14px; }
.promo-grid.compact .promo-body b { font-size: 15px; }
.timeline { display: grid; gap: 14px; border-left: 2px solid var(--line); margin-left: 10px; padding-left: 22px; }
.tl-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.tl-item::before { content: ''; position: absolute; left: -31px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.tl-date { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 15px; }
.tl-item p { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }
.tl-photos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tl-photos img { width: 120px; height: 86px; object-fit: cover; border-radius: 10px; }
.chess { display: grid; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.chess-building { display: grid; gap: 4px; }
.chess-row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; }
.chess-floor { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.chess-cells { display: flex; gap: 4px; flex-wrap: nowrap; }
.chess-cell {
  width: 56px; height: 44px; flex-shrink: 0; border-radius: 8px; display: grid; place-content: center; text-align: center; line-height: 1.1;
  border: 1px solid transparent; transition: transform .1s, box-shadow .1s;
}
.chess-cell b { font-size: 14px; }
.chess-cell small { font-size: 11px; opacity: .8; }
.chess-cell.sale { background: var(--green-soft); color: var(--green-ink); border-color: #BFE6CD; }
.chess-cell.reserved { background: #FFF4D6; color: #8A5A00; border-color: #F5DFA0; }
.chess-cell.sold { background: var(--surface-2); color: #B5B8BF; border-color: var(--line); }
a.chess-cell:hover { transform: scale(1.08); box-shadow: var(--shadow); z-index: 1; }
.chess-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 14px; align-items: center; }
.chess-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.chess-legend i.sale { background: var(--green-soft); border: 1px solid #BFE6CD; }
.chess-legend i.reserved { background: #FFF4D6; border: 1px solid #F5DFA0; }
.chess-legend i.sold { background: var(--surface-2); border: 1px solid var(--line); }
#chess { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.empty-sm { padding: 24px; text-align: center; }

/* ---------- инфраструктура рядом ---------- */
.place-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.place-layout .mini-map { height: 440px; }
.places { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.place-metro { display: flex; gap: 8px; align-items: center; font-size: 14px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.place-list { display: grid; }
.place-row { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.place-row span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }

/* ---------- история цены, сравнение, подписка, политика ---------- */
.ph-list { display: grid; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.ph-row.head { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ph-row b.down { color: var(--green-ink); }
.ph-row b.up { color: var(--danger); }
.ph-row.muted { color: var(--muted); border-bottom: 0; }
.cmp-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table th { font-weight: 400; min-width: 210px; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-label { color: var(--muted); font-weight: 700; white-space: nowrap; width: 160px; background: var(--surface-2); }
.cmp-table td.best { color: var(--green-ink); font-weight: 800; background: #F2FBF5; }
.cmp-head { display: grid; gap: 10px; position: relative; }
.cmp-plan { width: 100%; aspect-ratio: 4 / 3; padding: 8px; background: var(--surface-2); border-radius: 12px; }
.cmp-plan svg, .cmp-plan img { object-fit: contain; }
.cmp-title { font-weight: 800; font-size: 15px; line-height: 1.3; }
.cmp-title:hover { color: var(--accent); }
.cmp-remove { position: absolute; top: 6px; right: 6px; z-index: 2; width: 32px; height: 32px; }
.subscribe-strip { display: flex; gap: 14px; align-items: center; background: #F0EEFF; border: 1px solid #DCD6FF; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.subscribe-strip .ic { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #2F7BFF, #8B3DFF); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
/* Кнопки связи через MAX */
.btn-max { background: linear-gradient(135deg, #2F7BFF, #8B3DFF); color: #fff; border-color: transparent; }
.btn-max:hover { filter: brightness(1.08); color: #fff; }
.btn-max[hidden] { display: none; }
.footer-max { display: inline-flex; align-items: center; gap: 6px; }
.footer-max[hidden] { display: none; }
.lead-alt { margin-top: 14px; font-size: 14px; color: var(--ink-2); text-align: center; }
.lead-alt a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.subscribe-strip div { flex: 1; font-size: 14px; display: grid; }
.subscribe-strip div span { color: var(--ink-2); }
.legal h2 { font-size: 19px; font-weight: 800; margin: 26px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); line-height: 1.65; margin-bottom: 8px; font-size: 15px; }

/* ---------- адаптивность ---------- */
@media (max-width: 1280px) {
  .results-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apt-card.row { grid-template-columns: 220px minmax(0, 1fr) 220px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .main-nav, .header-cta, .header-phone { display: none; }
  .burger { display: grid; }
  .mobile-menu.open { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 72px; }
  .hero-art { display: none; }
  .intro, .split, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .features-grid, .grid-3, .grid-4, .stat-boxes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cx-hero, .apt-layout, .calc { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .rooms-summary { grid-template-columns: repeat(3, 1fr); }
  .feat-list { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 36px; gap: 28px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel {
    position: fixed; inset: 0; z-index: 2000; border-radius: 0; max-height: none; border: 0;
    transform: translateX(-102%); transition: transform .25s ease; padding-top: 0;
  }
  .filters-panel.open { transform: none; }
  .drawer-head { display: flex; }
  .f-actions { display: flex; }
  .filter-toggle { display: inline-flex; }
  .dev-hero { grid-template-columns: auto 1fr; }
  .dev-hero > .btns { grid-column: 1 / -1; }
  .map-teaser-card { width: 320px; }
  .apt-line { grid-template-columns: 70px minmax(0, 1fr) auto 40px; }
  .apt-line .hide-md { display: none; }
}
@media (max-width: 900px) {
  .map-page { grid-template-columns: 1fr; }
  .map-side { position: absolute; inset: 0; transform: translateX(-102%); transition: transform .25s; z-index: 700; }
  .map-page.show-list .map-side { transform: none; }
  .map-mobile-toggle { display: inline-flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 800; box-shadow: var(--shadow-lg); }
  .map-float { top: 10px; }
  .apt-card.row { display: flex; flex-direction: column; }
  .apt-card.row .apt-media { min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 0; }
  .apt-card.row .apt-side { order: 2; border-left: 0; padding: 14px 18px 0; }
  .apt-card.row .apt-body { order: 3; padding: 4px 18px 18px; }
  .apt-card.row .apt-side .btns { display: none; }
  .map-teaser { height: auto; }
  .map-teaser .map { position: relative; height: 320px; }
  .map-teaser-card { position: relative; inset: auto; width: auto; box-shadow: none; border-radius: 0; }
}
@media (max-width: 1080px) {
  .place-layout, .quiz-banner { grid-template-columns: 1fr; }
  .quiz-banner { padding: 28px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-options.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .compare-bar { bottom: 10px; width: calc(100% - 20px); justify-content: space-between; }
  .subscribe-strip { flex-wrap: wrap; }
  .place-layout .mini-map { height: 320px; }
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .section { padding-block: 52px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .features-grid, .grid-2, .grid-3, .grid-4, .steps, .feat-list { grid-template-columns: 1fr; }
  .stat-boxes { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .search-panel { grid-template-columns: 1fr; }
  .search-panel .actions .btn { flex: 1 1 100%; }
  .hero-inner { padding-block: 36px 56px; }
  .search-panel .seg { width: 100%; justify-content: space-between; }
  .search-panel .seg .chip { flex: 1; justify-content: center; padding: 0 6px; }
  .specs { grid-template-columns: 1fr; }
  .hero { border-radius: 0 0 28px 28px; }
  .hero-stats { gap: 18px 28px; }
  .hero-stats b { font-size: 24px; }
  .modal { padding: 24px 18px; border-radius: 20px; }
  .results-list.grid { grid-template-columns: 1fr; }
  .rooms-summary { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 14px 16px; }
  .panel, .info-card { padding: 20px; }
  .cta-band { padding: 26px 20px; border-radius: 22px; }
  .info-card .btns { grid-template-columns: 1fr; }
  .dev-card { grid-template-columns: auto 1fr; }
  .dev-card > .btn { grid-column: 1 / -1; }
  .dev-hero { padding: 22px; gap: 16px; }
  .header-inner { gap: 12px; }
  .logo-text small { display: none; }
  .quickbar .seg { width: 100%; }
  .quickbar .seg .chip { flex: 1; justify-content: center; padding: 0 6px; }
  .results-bar .select { flex: 1; }
  .apt-line { grid-template-columns: 64px minmax(0, 1fr) 36px; }
  .apt-line .price { grid-column: 2 / 3; text-align: left; }
  .apt-line .hide-sm { display: none; }
  .map-item { grid-template-columns: 88px minmax(0, 1fr); }
  .calc-result .big { font-size: 26px; }
  .districts { grid-template-columns: 1fr; }
}

/* ---------- текст и ссылки, которые сервер готовит для поисковиков ---------- */
/* Краткая карточка квартиры / ЖК: видна, пока страница догружается, потом её заменяет полная */
.ssr-block h1 { margin-bottom: 18px; }
.ssr-block h2 { font-size: 20px; margin: 24px 0 10px; }
.ssr-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 18px; }
.ssr-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.ssr-facts dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ssr-facts dd { margin: 2px 0 0; font-weight: 700; }
.ssr-desc { color: var(--ink-2); max-width: 820px; }
.ssr-desc p { margin: 0 0 10px; }
.ssr-links { margin-top: 14px; font-weight: 600; }
.ssr-links a, .seo-text a, .seo-group a { color: var(--accent-ink); }
.ssr-links a:hover, .seo-text a:hover, .seo-group a:hover { text-decoration: underline; }
/* Список квартир в каталоге до загрузки скрипта */
.ssr-apt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ssr-apt span { display: grid; gap: 2px; min-width: 0; }
.ssr-apt small { color: var(--muted); font-size: 13px; }
.ssr-apt strong { white-space: nowrap; }
.ssr-tile { display: grid; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ssr-tile small { color: var(--muted); }
.ssr-tile span { font-weight: 700; }
/* Блок подборок: по комнатам, округам, метро */
.seo-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 32px; }
.seo-group h3 { font-size: 15px; margin: 0 0 10px; }
.seo-group h2 { font-size: 20px; margin: 0 0 12px; }
.seo-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.seo-group li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.seo-group li span { color: var(--muted); white-space: nowrap; font-size: 13px; }
.seo-group.wide { grid-column: 1 / -1; }
.seo-group.wide ul { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px 32px; }
.seo-text h2 { font-size: 22px; margin: 0 0 12px; }
.seo-text h3 { font-size: 17px; margin: 22px 0 10px; }
.seo-text p { color: var(--ink-2); max-width: 860px; margin: 0 0 10px; }
.seo-cx { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
@media (max-width: 640px) {
  .seo-group.wide ul { grid-template-columns: 1fr; }
  .seo-group li { flex-direction: column; gap: 0; }
  .ssr-apt { flex-direction: column; align-items: flex-start; gap: 6px; }
}
