/* ==========================================================================
   Дома Ташкента — шрифты (self-hosted, кириллица + латиница)
   Playfair Display — заголовки, Inter — интерфейс.
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-300-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Токены
   ========================================================================== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', 'Times New Roman', Georgia, serif;

  --bg: #f4efe7;
  --bg-2: #ece3d6;
  --surface: #fffdf9;
  --surface-2: #ece4d7;
  --ink: #17130f;
  --ink-2: #4d463d;
  --muted: #7c7264;
  --line: #ded3c3;
  --line-strong: #c9bca7;
  --accent: #b24a2b;
  --accent-ink: #8d3a20;
  --accent-soft: #f3d8cd;
  --deep: #17130f;
  --deep-2: #211b15;
  --light: #fbf6ee;
  --light-soft: rgba(251, 246, 238, 0.68);
  --on-deep: rgba(251, 246, 238, 0.66);
  --shadow-sm: 0 1px 2px rgba(23, 19, 15, 0.04), 0 10px 30px -22px rgba(23, 19, 15, 0.35);
  --shadow-md: 0 24px 60px -38px rgba(23, 19, 15, 0.42);
  --shadow-lg: 0 40px 90px -50px rgba(23, 19, 15, 0.55);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --header-h: 78px;
  --container: 1280px;
  --gutter: 32px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #100e0b;
  --bg-2: #16120e;
  --surface: #191510;
  --surface-2: #221c16;
  --ink: #f4ede2;
  --ink-2: #cec3b2;
  --muted: #9c9082;
  --line: #2d261e;
  --line-strong: #40362a;
  --accent: #e17a54;
  --accent-ink: #f09a7a;
  --accent-soft: #3b241a;
  --deep: #0a0806;
  --deep-2: #14100c;
  --light: #fbf6ee;
  --light-soft: rgba(251, 246, 238, 0.7);
  --on-deep: rgba(251, 246, 238, 0.64);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 14px 30px -24px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 28px 60px -40px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 50px 100px -60px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ==========================================================================
   База
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

::selection { background: var(--accent); color: var(--light); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}
.icon-xs { width: 15px; height: 15px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-wrap { padding-top: 26px; padding-bottom: 96px; }
.section { padding: 92px 0; }
.section + .section { padding-top: 0; }
.section-featured { padding-top: 64px; }

.prose {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); }

/* ==========================================================================
   Типографика
   ========================================================================== */
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 5.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 15ch;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--light { color: var(--light-soft); }
.eyebrow--light .eyebrow-line { background: var(--accent); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 2.9vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title--sm { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.section-sub {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.section-head--light .section-title { color: var(--light); }
.section-head--light .section-sub { color: var(--on-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow .icon { width: 17px; height: 17px; }
.link-arrow:hover { color: var(--accent); gap: 12px; }
.link-arrow--light { color: var(--light); }
.link-arrow--light:hover { color: var(--accent); }

/* ==========================================================================
   Кнопки и бейджи
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--light); }

.btn-accent { background: var(--accent); color: var(--light); }
.btn-accent:hover { background: var(--accent-ink); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--line); }

.btn-ink { background: var(--deep); color: var(--light); }
.btn-ink:hover { background: var(--accent); }

.btn-light { background: var(--light); color: var(--deep); }
.btn-light:hover { background: var(--bg-2); color: var(--deep); }

.btn-sm { min-height: 40px; padding: 9px 17px; font-size: 12.5px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 14px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.badge-deal { background: var(--ink); color: var(--bg); }
.badge-rent { background: var(--accent); color: var(--light); }
.badge-new { background: var(--light); color: var(--deep); }
.badge-soft {
  background: var(--surface-2);
  color: var(--ink-2);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 11.5px;
}
.badge-star { gap: 5px; }
.badge-status { background: var(--light); color: var(--deep); }
.badge-done { background: rgba(38, 58, 49, 0.9); color: var(--light); }
.badge-light { background: rgba(251, 246, 238, 0.18); color: var(--light); backdrop-filter: blur(8px); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.2) blur(14px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.brand-city {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active { color: var(--ink); background: var(--surface-2); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  margin-right: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: var(--bg); }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.fav-count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--light);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.header-cta { margin-left: 4px; }
.menu-btn { display: none; }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px var(--gutter) 32px;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1.15;
}
.mobile-menu-note { margin-top: 30px; max-width: 30ch; }
.mobile-menu-note p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.mobile-menu-note a { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; }
.mobile-menu-note span { display: block; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.mobile-menu-bottom { padding-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.mobile-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: var(--ink-2);
}
.mobile-theme .icon { width: 16px; height: 16px; color: var(--accent); }
.mobile-lang { display: flex; gap: 8px; }
.mobile-lang a {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
}
.mobile-lang a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ==========================================================================
   Главная: hero
   ========================================================================== */
.hero { padding: 40px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { padding-top: 6px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-lead {
  margin-top: 26px;
  max-width: 44ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.trust-item .icon { width: 17px; height: 17px; color: var(--accent); }

.hero-visual { position: relative; padding: 0 24px 26px 0; }
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 19, 15, 0) 58%, rgba(23, 19, 15, 0.45) 100%);
}
.hero-photo-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 246, 238, 0.82);
}
.hero-inset {
  position: absolute;
  left: -46px;
  bottom: 0;
  z-index: 3;
  width: 208px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-md);
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.03); }
.hero-inset::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 12, 9, 0) 40%, rgba(16, 12, 9, 0.78) 100%);
}
.hero-inset figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: var(--light);
}
.hero-inset figcaption span {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.1;
}
.hero-inset figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(251, 246, 238, 0.66);
  text-transform: uppercase;
}
.hero-float {
  position: absolute;
  top: 22px;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.hero-float-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-float-value { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.hero-float-note { font-size: 10.5px; color: var(--muted); }

/* Поиск */
.search-card {
  position: relative;
  z-index: 5;
  margin-top: 34px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.deal-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.deal-tab { position: relative; }
.deal-tab input { position: absolute; opacity: 0; pointer-events: none; }
.deal-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.deal-tab input:checked + span { background: var(--ink); color: var(--bg); }
.deal-tab input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-hint { font-size: 11.5px; color: var(--muted); }

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.search-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.search-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}
.search-control {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.search-control:focus-within { border-color: var(--ink); background: var(--surface); }
.search-control .icon { width: 17px; height: 17px; }
.search-control input,
.search-control select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink);
  appearance: none;
}
.search-control input::placeholder { color: var(--muted); }
.search-control--select { position: relative; padding-right: 34px; }
.search-control--select select { cursor: pointer; }
.icon-chevron {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: var(--muted);
}
.search-submit { height: 52px; min-height: 52px; padding: 0 26px; border-radius: 12px; }

/* Статистика */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stat { padding: 0 26px; border-left: 1px solid var(--line); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-stat-label {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Полоса районов */
.district-strip {
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.strip-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.strip-link .icon { width: 14px; height: 14px; }
.strip-link:hover { color: var(--accent); }
.district-links { display: flex; flex-wrap: wrap; gap: 7px; }
.district-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--bg);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}
.district-link:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.district-count {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  padding-left: 2px;
}

/* ==========================================================================
   Карточки объявлений
   ========================================================================== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.listing-card { position: relative; min-width: 0; }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.card-media-link { display: block; height: 100%; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.listing-card:hover .card-media img { transform: scale(1.035); }
.card-media .badge { position: absolute; top: 13px; left: 13px; z-index: 2; }
.card-media .badge-new { left: auto; right: 58px; }

.fav-form { position: absolute; top: 11px; right: 11px; z-index: 3; margin: 0; }
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(23, 19, 15, 0.08);
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.9);
  color: #17130f;
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.fav-btn .icon { width: 17px; height: 17px; fill: none; }
.fav-btn:hover { background: #fffdf9; transform: scale(1.05); }
.fav-btn.is-active { color: var(--accent); }
.fav-btn.is-active .icon { fill: currentColor; }
.fav-btn.is-busy { opacity: 0.6; pointer-events: none; }

.card-body { padding-top: 15px; }
.card-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-eyebrow .icon { width: 13px; height: 13px; color: var(--accent); }
.card-title {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.01em;
}
.card-title a { transition: color 0.18s var(--ease); }
.card-title a:hover { color: var(--accent); }
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.card-specs span + span::before {
  content: "·";
  margin-right: 9px;
  color: var(--line-strong);
}
.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.price-main { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.price-main small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.price-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card-go .icon { width: 15px; height: 15px; }
.listing-card:hover .card-go { background: var(--accent); border-color: var(--accent); color: var(--light); }

/* ==========================================================================
   Секция продажи/аренды
   ========================================================================== */
.section-deals { padding-top: 0; }
.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deal-card {
  position: relative;
  display: block;
  min-height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deep);
  color: var(--light);
  isolation: isolate;
}
.deal-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  z-index: -2;
}
.deal-card:hover img { transform: scale(1.04); }
.deal-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.06) 12%, rgba(16, 12, 9, 0.9) 100%);
}
.deal-content {
  position: absolute;
  inset: auto 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deal-index {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 246, 238, 0.82);
}
.deal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.deal-meta { font-size: 12px; color: rgba(251, 246, 238, 0.72); }
.deal-arrow {
  position: absolute;
  right: 0;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(251, 246, 238, 0.35);
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.deal-arrow .icon { width: 18px; height: 18px; }
.deal-card:hover .deal-arrow { background: var(--light); color: var(--deep); border-color: var(--light); }

/* ==========================================================================
   Новостройки
   ========================================================================== */
.section-buildings {
  padding: 96px 0;
  background: var(--deep);
  color: var(--light);
}
.building-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.building-card { display: flex; flex-direction: column; color: var(--light); min-width: 0; }
.building-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep-2);
}
.building-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.building-card:hover .building-media img { transform: scale(1.04); }
.building-media .badge { position: absolute; top: 12px; left: 12px; }
.building-body { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.building-district {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-deep);
}
.building-name {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--light);
}
.building-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(251, 246, 238, 0.16);
  font-size: 13.5px;
}
.building-foot small { font-size: 10.5px; color: var(--on-deep); margin-left: 1px; }
.building-foot .icon { width: 16px; height: 16px; color: var(--on-deep); }
.building-card:hover .building-foot .icon { color: var(--accent); }
.nb-card-meta { font-size: 11.5px; color: var(--on-deep); }

.building-card--light { color: var(--ink); }
.building-card--light .building-name { color: var(--ink); }
.building-card--light .building-district,
.building-card--light .nb-card-meta { color: var(--muted); }
.building-card--light .building-foot { border-top-color: var(--line); }
.building-card--light .building-foot .icon { color: var(--muted); }

/* ==========================================================================
   Ипотека на главной
   ========================================================================== */
.section-mortgage { padding-top: 0; }
.mortgage-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent-soft) 55%, transparent) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
}
.mortgage-copy .section-title { margin-top: 14px; max-width: 18ch; }
.mortgage-copy .section-sub { max-width: 42ch; }
.check-list { display: grid; gap: 10px; margin: 24px 0 28px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.check-list .icon { width: 16px; height: 16px; color: var(--accent); }


/* Ползунки: общий вид для светлой карточки и тёмной мини-карточки */
.range {
  --val: 20%;
  --track: var(--line-strong);
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 var(--val), var(--track) var(--val) 100%);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -6.5px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(23, 19, 15, 0.25);
  transition: transform 0.15s var(--ease);
}
.range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
.range::-moz-range-track { height: 4px; border-radius: 999px; background: var(--track); }
.range::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--accent);
}
.calc-card--mini .range::-webkit-slider-thumb { border-color: var(--deep); }

.calc-card--mini {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--light);
  box-shadow: var(--shadow-md);
}
.calc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-card--mini .calc-eyebrow { color: var(--on-deep); }
.calc-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.1);
  font-size: 10px;
  color: var(--light);
}
.calc-result { margin: 22px 0 20px; }
.calc-result-label { display: block; font-size: 11px; color: var(--on-deep); }
.calc-result-value {
  display: block;
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.calc-result-note { display: block; margin-top: 4px; font-size: 11px; color: var(--on-deep); }

.calc-field { display: block; margin-top: 16px; }
.calc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.calc-label output { color: var(--ink); font-weight: 500; font-size: 11.5px; }
.calc-card--mini .calc-label { color: var(--on-deep); }
.calc-card--mini .calc-label output { color: var(--light); }
.calc-card--mini .range { width: 100%; --track: rgba(251, 246, 238, 0.22); }
.calc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--light);
  border-bottom: 1px solid rgba(251, 246, 238, 0.3);
  padding-bottom: 2px;
}
.calc-link .icon { width: 14px; height: 14px; }
.calc-link:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   Новости
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-card { display: flex; flex-direction: column; min-width: 0; }
.news-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--line-strong);
}
.news-meta .news-category { color: var(--accent); font-weight: 600; }
.news-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.01em;
}
.news-card:hover .news-title { color: var(--accent); }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.news-link .icon { width: 14px; height: 14px; }
.news-card--compact .news-meta { margin-top: 12px; }

.news-meta--light { color: var(--muted); }

/* ==========================================================================
   CTA-полоса
   ========================================================================== */
.cta-band {
  padding: 64px 0;
  background: var(--accent);
  color: var(--light);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band .eyebrow { color: rgba(251, 246, 238, 0.66); }
.cta-band .eyebrow-line { background: var(--light); }
.cta-title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.cta-lead { margin-top: 10px; font-size: 14px; color: rgba(251, 246, 238, 0.82); }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
  background: var(--deep);
  color: var(--light);
  padding-top: 64px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(251, 246, 238, 0.14);
}
.footer-brand .brand { color: var(--light); }
.footer-brand .brand-city { color: var(--on-deep); }
.footer-lead {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--on-deep);
}
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 18px;
  font-size: 10.5px;
  color: rgba(251, 246, 238, 0.5);
}
.demo-note .icon { width: 14px; height: 14px; margin-top: 1px; }
.footer-title {
  margin-bottom: 16px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--light);
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-col a, .footer-col p {
  font-size: 13px;
  color: var(--on-deep);
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--light); }
.footer-contacts p { margin-top: 4px; font-size: 12px; color: rgba(251, 246, 238, 0.45); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 20px 0 30px;
  font-size: 11px;
  color: rgba(251, 246, 238, 0.45);
}
.footer-legal { flex: 1; min-width: 240px; }
.footer-made { margin-left: auto; }

/* ==========================================================================
   Общие блоки страниц
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 11.5px;
  color: var(--muted);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { color: var(--line-strong); }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.page-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-sub {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.page-head-actions { flex: none; }

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.segmented a {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.segmented a:hover { color: var(--ink); }
.segmented a.is-active { background: var(--ink); color: var(--bg); }

.result-pill {
  flex: none;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.result-pill--accent { background: var(--accent); border-color: var(--accent); color: var(--light); }

.filter-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; }
.filter-link {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.filter-link:hover { border-color: var(--ink); color: var(--ink); }
.filter-link.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.empty-state--tall { padding: 100px 24px; }
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
}
.empty-icon .icon { width: 26px; height: 26px; }
.empty-state h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 500; }
.empty-state p { margin-top: 8px; max-width: 44ch; font-size: 13.5px; color: var(--muted); }
.empty-state .btn { margin-top: 22px; }

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding: 30px 32px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.inline-cta h2 { font-family: var(--font-serif); font-size: 27px; font-weight: 500; line-height: 1.15; }
.inline-cta p { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 52ch; }
.inline-cta--light { background: var(--surface); border: 1px solid var(--line); }

/* ==========================================================================
   Каталог
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}
.filters {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters-close { display: none; }

.filter-group { margin: 18px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.filter-legend {
  padding: 0;
  margin-bottom: 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
  white-space: nowrap;
}
.chip:hover span { border-color: var(--line-strong); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip--square span { min-width: 36px; padding: 7px 8px; }
.chip-list--price .chip span { font-size: 11px; }
.filter-note { margin-top: 9px; font-size: 10.5px; color: var(--muted); }

.select-wrap { position: relative; }
.select-wrap .field-select { width: 100%; }
.select-wrap .icon-chevron { right: 12px; top: 50%; transform: translateY(-50%); }
.field-select {
  appearance: none;
  width: 100%;
  height: 43px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  outline: 0;
}
.field-select:focus { border-color: var(--ink); }
.select-wrap--compact .field-select { height: 40px; width: 176px; min-width: 0; max-width: 176px; }
.sort-form { flex: none; }

.filter-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter-actions .btn { min-height: 43px; font-size: 12.5px; }
.filter-reset {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-reset:hover { color: var(--accent); }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.results-count { font-size: 12.5px; color: var(--muted); }
.results-count strong { color: var(--ink); font-size: 14px; }
.toolbar-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.filters-open { display: none; }
.sort-form { display: flex; align-items: center; gap: 9px; }
.sort-label { font-size: 11px; color: var(--muted); }

.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  color: var(--ink-2);
}
.active-filter:hover { border-color: var(--ink); color: var(--ink); }
.active-filter .icon { color: var(--muted); }
.active-filter--reset { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }

.listing-grid--catalog { margin-top: 26px; row-gap: 36px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 44px; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.page-btn:hover { border-color: var(--ink); color: var(--ink); }
.page-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.page-btn.is-disabled { opacity: 0.32; pointer-events: none; }
.page-btn .icon { width: 15px; height: 15px; }
.page-dots { padding: 0 3px; color: var(--muted); font-size: 12px; }
.filters-backdrop { display: none; }

/* ==========================================================================
   Карточка объекта
   ========================================================================== */
.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}
.detail-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 22ch;
  text-wrap: balance;
}
.detail-address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.detail-address .icon { width: 15px; height: 15px; color: var(--accent); }
.detail-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
  font-size: 11px;
  color: var(--muted);
}
.detail-head-meta span { display: inline-flex; align-items: center; gap: 5px; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 10px;
  height: 460px;
}
.gallery--single { grid-template-columns: 1fr; }
.gallery-main,
.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery-main img,
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 0; }
.gallery-count {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(16, 12, 9, 0.62);
  color: var(--light);
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 12, 9, 0.46);
  color: var(--light);
  font-family: var(--font-serif);
  font-size: 30px;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 48px;
  align-items: start;
  margin-top: 30px;
}
.detail-main { min-width: 0; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.spec { padding: 18px 20px; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; }
.spec-label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-value {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.spec-value small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.spec-value--sm { font-size: 13px; font-weight: 500; }

.detail-block { margin-top: 40px; }
.detail-section-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.feature-list .icon { color: var(--accent); }

.location-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.location-art { min-height: 230px; }
.location-art svg { width: 100%; height: 100%; }
.location-copy { padding: 24px 26px; }
.location-district {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.location-address { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.location-metro {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--accent);
}
.nearby-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.nearby-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-2); }
.nearby-list li span:last-child { color: var(--muted); }

.detail-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.price-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.price-card-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card-value {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.price-card-sub { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.mortgage-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  margin: 16px 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.mortgage-line strong { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.mortgage-line strong small { font-size: 10px; font-weight: 500; color: var(--muted); }
.mortgage-line a {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-self: start;
}
.owner-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.owner-strip .avatar { width: 38px; height: 38px; font-size: 14px; }
.owner-strip-top { display: flex; align-items: center; gap: 10px; }
.owner-strip .owner-phone { margin-top: 9px; font-size: 16px; }
.owner-strip .owner-note { margin-top: 3px; font-size: 10.5px; }

.price-actions { display: flex; flex-direction: column; gap: 8px; }
.price-actions .btn { min-height: 42px; font-size: 12.5px; }
.price-actions .btn.is-fav { color: var(--accent); border-color: var(--accent); }
.price-actions .btn.is-fav .icon { fill: currentColor; }

.owner-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.owner-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-serif);
  font-size: 17px;
  flex: none;
}
.avatar--building { background: var(--surface-2); color: var(--ink-2); }
.avatar--building .icon { width: 22px; height: 22px; }
.owner-name { font-size: 14px; font-weight: 600; }
.owner-role { margin-top: 2px; font-size: 11px; color: var(--muted); }
.owner-phone {
  display: inline-block;
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.owner-phone:hover { color: var(--accent); }
.owner-note { margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.note-card {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
}
.note-card > .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.note-title { font-size: 11.5px; font-weight: 600; }
.note-text { margin-top: 3px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

.related-section { margin-top: 76px; padding-top: 46px; border-top: 1px solid var(--line); }
.related-section .section-head { margin-bottom: 26px; }

.mobile-actionbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
.mobile-action-price span { display: block; font-size: 16px; font-weight: 600; }
.mobile-action-price small { display: block; font-size: 10.5px; color: var(--muted); }
.mobile-actionbar .btn { min-height: 44px; }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(9, 7, 5, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 90vw; }
.lightbox-figure img {
  max-width: 88vw;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(251, 246, 238, 0.55);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(251, 246, 238, 0.24);
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.08);
  color: var(--light);
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(251, 246, 238, 0.18); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Форма добавления
   ========================================================================== */
.page-head--form { align-items: flex-start; }
.listing-form { margin-top: 30px; }
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}
.form-main { min-width: 0; }
.form-section {
  padding: 26px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.form-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.form-section-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row--three { grid-template-columns: 1fr 1fr 1fr; }
.field-label { font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.field-label em { color: var(--accent); font-style: normal; }
.field-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13.5px;
  outline: 0;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.field-textarea { height: auto; min-height: 132px; padding: 12px 13px; resize: vertical; line-height: 1.6; }
.field-input:focus { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.field-select { height: 46px; padding: 0 34px 0 13px; font-size: 13.5px; }
.field-hint { margin-top: 6px; font-size: 11px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 11.5px; color: var(--accent); }
.alert-error {
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
  font-size: 12.5px;
  color: var(--accent-ink);
}
.alert-error p + p { margin-top: 4px; }

.segmented--form { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; background: transparent; }
.segmented--form .segment { position: relative; }
.segmented--form .segment input { position: absolute; opacity: 0; pointer-events: none; }
.segmented--form .segment span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.segmented--form .segment input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.segmented--form .segment input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.upload-card,
.tips-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.upload { position: relative; }
.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.upload-drop:hover,
.upload-drop.is-dragover { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 30%, transparent); }
.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
}
.upload-title { font-size: 13px; font-weight: 600; }
.upload-text { margin-top: 4px; max-width: 24ch; font-size: 11px; line-height: 1.5; color: var(--muted); }
.upload-drop .btn { margin-top: 12px; }
.upload-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.upload-previews:empty { display: none; }
.preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 7, 5, 0.7);
  color: var(--light);
}
.preview-remove .icon { width: 11px; height: 11px; }
.upload-card .field-hint { margin-top: 10px; }

.tips-card { background: var(--surface-2); }
.tips-title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.tips-card ul { margin-top: 14px; display: grid; gap: 14px; }
.tips-card li { display: flex; gap: 10px; }
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--accent);
  flex: none;
}
.tip-icon .icon { width: 15px; height: 15px; }
.tips-card strong { display: block; font-size: 11.5px; }
.tips-card p { margin-top: 2px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.form-note { font-size: 10px; line-height: 1.5; text-align: center; color: var(--muted); }
.form-aside .btn-lg { min-height: 50px; }

/* ==========================================================================
   Новостройки: страница
   ========================================================================== */
.nb-featured {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.nb-featured-media { position: relative; display: block; min-height: 420px; overflow: hidden; }
.nb-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.nb-featured:hover .nb-featured-media img { transform: scale(1.03); }
.nb-featured-media .badge { position: absolute; top: 16px; left: 16px; }
.nb-featured-body { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.nb-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.nb-name {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.nb-address { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.nb-address .icon { color: var(--accent); }
.nb-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.nb-specs strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.nb-description { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.nb-featured-body .link-arrow { margin-top: 22px; }
.building-grid--page { margin-top: 32px; }

/* ==========================================================================
   Новостройка: карточка
   ========================================================================== */
.nb-hero {
  position: relative;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.nb-hero > img { width: 100%; height: 100%; object-fit: cover; }
.nb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.05) 38%, rgba(16, 12, 9, 0.82) 100%);
}
.nb-hero-overlay {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  z-index: 2;
  color: var(--light);
}
.nb-hero-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.nb-hero-meta { margin-top: 10px; font-size: 12.5px; color: rgba(251, 246, 238, 0.78); }
.nb-specs-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.nb-specs-bar > div { padding: 16px 18px; border-left: 1px solid var(--line); }
.nb-specs-bar > div:first-child { border-left: 0; }
.nb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nb-gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 12px; }
.price-card--nb .price-actions { margin-top: 18px; }

/* ==========================================================================
   Новости: страница
   ========================================================================== */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.news-featured-media { display: block; min-height: 380px; overflow: hidden; }
.news-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-featured:hover .news-featured-media img { transform: scale(1.03); }
.news-featured-body { display: flex; flex-direction: column; justify-content: center; padding: 38px 42px; }
.news-featured-title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.news-featured-excerpt { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.news-featured-body .link-arrow { margin-top: 22px; }

.news-list { margin-top: 14px; }
.news-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.news-row:hover .news-row-title { color: var(--accent); }
.news-row-media { overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2; background: var(--surface-2); }
.news-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-row:hover .news-row-media img { transform: scale(1.04); }
.news-row-body { display: flex; flex-direction: column; align-items: flex-start; }
.news-row .news-meta { margin-top: 0; }
.news-row-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  transition: color 0.18s;
}
.news-row-excerpt { margin-top: 7px; font-size: 12.5px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.news-row-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.news-row-link .icon { width: 13px; height: 13px; }

/* Статья */
.article { max-width: 900px; margin: 0 auto; }
.article-head { max-width: 760px; }
.article-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.article-excerpt { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.article-media { margin: 30px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.article-media img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 34px auto 0; font-size: 16.5px; }
.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 720px;
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-demo { font-size: 10.5px; color: var(--muted); }

/* ==========================================================================
   Ипотека: страница
   ========================================================================== */
.mortgage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
  margin-top: 30px;
}
.calc-form-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.calc-sub { font-size: 10.5px; color: var(--muted); }
.calc-field--price { margin-bottom: 26px; }
.calc-number-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 12px;
  padding: 0 16px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.calc-number {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  appearance: textfield;
  -moz-appearance: textfield;
}
.calc-number::-webkit-outer-spin-button,
.calc-number::-webkit-inner-spin-button { appearance: none; margin: 0; }
.calc-unit { font-size: 12px; color: var(--muted); flex: none; }
.calc-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-value { font-size: 12px; font-weight: 600; color: var(--ink); }
.range-scale { display: flex; justify-content: space-between; margin-top: 5px; font-size: 9.5px; color: var(--muted); }
.calc-hint {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.calc-hint .icon { color: var(--accent); margin-top: 1px; }

.calc-summary {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--deep);
  color: var(--light);
  box-shadow: var(--shadow-md);
}
.calc-summary-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-deep);
}
.calc-payment {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.calc-summary-note { margin-top: 4px; font-size: 11px; color: var(--on-deep); }
.calc-rows { margin-top: 22px; padding-top: 8px; border-top: 1px solid rgba(251, 246, 238, 0.16); }
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 12px;
  color: var(--on-deep);
}
.calc-row strong { font-size: 13px; font-weight: 600; color: var(--light); }
.calc-row--total { margin-top: 4px; padding-top: 13px; border-top: 1px solid rgba(251, 246, 238, 0.16); }
.calc-row--total span { color: var(--light); font-size: 12.5px; }
.calc-row--total strong { font-size: 16px; }
.calc-bar {
  display: flex;
  height: 7px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(251, 246, 238, 0.14);
}
.calc-bar-principal { background: rgba(251, 246, 238, 0.85); }
.calc-bar-interest { background: var(--accent); }
.calc-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 10px; color: var(--on-deep); }
.calc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 999px; }
.dot--ink { background: rgba(251, 246, 238, 0.85); }
.dot--accent { background: var(--accent); }
.calc-cta { margin-top: 22px; }
.calc-disclaimer { margin-top: 12px; font-size: 9.5px; line-height: 1.55; color: rgba(251, 246, 238, 0.45); }

.mortgage-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.info-card h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.info-card p { margin-top: 7px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

/* ==========================================================================
   О проекте
   ========================================================================== */
.about-head { align-items: flex-start; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
}
.about-text { font-size: 16px; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.about-media figcaption { margin-top: 8px; font-size: 10px; color: var(--muted); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-card > .icon { width: 24px; height: 24px; color: var(--accent); }
.feature-card h2 { margin-top: 14px; font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.feature-card p { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.tech-card {
  margin-top: 32px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--deep);
  color: var(--light);
}
.tech-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.tech-head .section-title { color: var(--light); }
.tech-head p { max-width: 46ch; font-size: 12.5px; color: var(--on-deep); }
.tech-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 246, 238, 0.16);
}
.tech-list strong { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-deep); }
.tech-list span { display: block; margin-top: 5px; font-family: var(--font-serif); font-size: 19px; }
.credits { margin-top: 48px; }
.credits p { margin-top: 10px; max-width: 78ch; font-size: 13px; line-height: 1.7; color: var(--muted); }
.credits-list { margin-top: 14px; display: grid; gap: 7px; font-size: 12px; color: var(--ink-2); }
.credits-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Ошибки
   ========================================================================== */
.error-page { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 90px 20px; }
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.error-page .page-title { max-width: none; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Тост */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 130;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Анимация появления */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 1240px) {
  :root { --gutter: 26px; }
  .header-inner { gap: 20px; }
  .nav-link { padding: 9px 10px; }
  .search-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; }
  .mortgage-teaser { gap: 44px; padding: 44px; }
}

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 720px; }
  .display { max-width: 18ch; }
  .hero-visual { padding: 0; max-width: none; }
  .hero-photo { aspect-ratio: 16 / 9; }
  .hero-inset, .hero-float { display: none; }
  .hero-stats { margin-top: 26px; }

  .catalog-layout { grid-template-columns: 1fr; gap: 0; }
  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: min(342px, 90vw);
    max-height: none;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(-103%);
    transition: transform 0.3s var(--ease);
    padding: 20px 20px 32px;
    overflow-y: auto;
  }
  .filters.is-open { transform: none; }
  .filters-head {
    position: sticky;
    top: -20px;
    z-index: 2;
    margin: -20px -20px 0;
    padding: 20px 20px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .filters-close { display: inline-flex; }
  .filters-open { display: inline-flex; }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(9, 7, 5, 0.52); }
  .filters-backdrop[hidden] { display: none; }
  .filter-group { margin-top: 16px; padding-top: 16px; }

  .listing-grid, .listing-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .detail-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .detail-aside .note-card { grid-column: 1 / -1; margin-top: 0; }
  .detail-aside > * { margin-top: 0; }
  .related-section { margin-top: 60px; }
  .form-layout { grid-template-columns: 1fr; gap: 24px; }
  .form-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .form-aside .btn-lg, .form-aside .form-note { grid-column: 1 / -1; }
  .mortgage-grid { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .nb-specs-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-specs-bar > div:nth-child(4) { border-left: 0; }
  .nb-specs-bar > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contacts { grid-column: 2 / -1; }
}

@media (max-width: 980px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-field--grow { grid-column: span 2; }
  .search-submit { width: 100%; }
  .mortgage-teaser { grid-template-columns: 1fr; gap: 30px; }
  .deal-grid { grid-template-columns: 1fr; }
  .deal-card { min-height: 260px; }
  .building-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-featured { grid-template-columns: 1fr; }
  .nb-featured-media { min-height: 300px; aspect-ratio: 16 / 9; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-media { min-height: 280px; aspect-ratio: 16 / 9; }
  .gallery { height: 400px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid .about-media { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mortgage-info { grid-template-columns: 1fr; }
  .tech-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
  .calc-summary, .calc-form-card { padding: 26px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; --gutter: 20px; }
  .header-cta { display: none; }
  .page-wrap { padding-top: 18px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .section-buildings { padding: 68px 0; }
  .display { font-size: clamp(2.6rem, 7.4vw, 3.6rem); }
  .page-title { font-size: clamp(1.9rem, 5.4vw, 2.7rem); }
  .section-title { font-size: clamp(1.6rem, 4vw, 2.1rem); }
  .hero { padding-top: 30px; }
  .search-card { margin-top: 30px; }
  .search-hint { display: none; }
  .gallery { height: 340px; }
  .detail-aside { grid-template-columns: 1fr; }
  .detail-aside .note-card { grid-column: auto; }
  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .location-card { grid-template-columns: 1fr; }
  .location-art { min-height: 150px; }
  .form-aside { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contacts { grid-column: auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .page-head .segmented { align-self: flex-start; }
  .has-actionbar #main { padding-bottom: 72px; }
  .mobile-actionbar { display: flex; }
  .article { max-width: none; }
  .article-body { max-width: none; }
  .article-foot { max-width: none; }
  .nb-hero { height: 400px; }
  .nb-hero-overlay { left: 22px; right: 22px; bottom: 22px; }
  .nb-gallery { grid-template-columns: repeat(2, 1fr); }
  .building-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-row { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .lightbox { padding: 20px; }
  .lightbox-nav--prev { left: 10px; }
  .lightbox-nav--next { right: 10px; }
}

@media (max-width: 760px) {
  .lang-switch { display: none; }
  .nav-link, .main-nav { gap: 0; }
  .search-grid { grid-template-columns: 1fr; }
  .search-field--grow { grid-column: auto; }
  .search-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .deal-tabs { width: 100%; }
  .deal-tab { flex: 1; }
  .deal-tab span { width: 100%; min-width: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero-stat { padding: 0 0 0 16px; }
  .hero-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-stat-value { font-size: 21px; }
  .district-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .district-links::-webkit-scrollbar { display: none; }
  .district-link { flex: none; }
  .listing-grid, .listing-grid--catalog { grid-template-columns: 1fr; gap: 24px; }
  .building-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery { height: auto; grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 4 / 3; height: auto; }
  .gallery-side { display: none; }
  .detail-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .detail-head-meta { flex-direction: row; gap: 14px; align-items: center; }
  .detail-title { max-width: none; }
  .feature-list { grid-template-columns: 1fr; }
  .detail-block { margin-top: 30px; }
  .related-section { margin-top: 48px; padding-top: 34px; }
  .field-row, .field-row--three { grid-template-columns: 1fr; gap: 0; }
  .form-section { padding: 22px 18px; }
  .form-aside { gap: 14px; }
  .segmented--form .segment { flex: 1; }
  .segmented--form .segment span { width: 100%; min-width: 0; padding: 10px 14px; }
  .nb-specs-bar { grid-template-columns: 1fr 1fr; }
  .nb-specs-bar > div:nth-child(3) { border-left: 0; }
  .nb-specs-bar > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nb-specs-bar > div:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
  .nb-featured-body, .news-featured-body { padding: 26px 22px; }
  .news-row { grid-template-columns: 1fr; gap: 14px; }
  .news-row-media { aspect-ratio: 16 / 9; }
  .news-row-title { font-size: 21px; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-made { margin-left: 0; }
  .footer-legal { min-width: 0; }
  .inline-cta { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }
  .nb-hero { height: 320px; border-radius: var(--radius); }
  .nb-hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .tech-card { padding: 28px 22px; }
  .tech-list { grid-template-columns: 1fr; gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .calc-number-wrap { height: 52px; }
  .calc-number { font-size: 20px; }
  .calc-payment { font-size: 2.1rem; }
  .error-page { padding: 60px 8px; }
  .breadcrumbs { font-size: 10.5px; }
}

@media (max-width: 760px) {
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .toolbar-right { flex-wrap: nowrap; justify-content: space-between; width: 100%; }
  .sort-form { flex: 1; justify-content: flex-end; }
  .sort-label { display: none; }
  .select-wrap--compact { flex: 1; max-width: 230px; }
  .select-wrap--compact .field-select { width: 100%; max-width: none; }
}

@media (max-width: 560px) {
  .header-actions { gap: 0; }
  .search-card { padding: 16px; border-radius: 18px; }
  .hero-trust { gap: 12px 16px; }
  .display { font-size: 2.55rem; }
  .hero-lead { font-size: 14px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .section-head .link-arrow { align-self: flex-start; }
  .strip-head { align-items: flex-start; }
  .deal-card { min-height: 230px; border-radius: 18px; }
  .deal-content { inset: auto 20px 20px; }
  .deal-arrow { width: 38px; height: 38px; }
  .listing-grid, .listing-grid--catalog { gap: 22px; }
  .card-title { font-size: 20px; }
  .mortgage-teaser { padding: 24px 18px; border-radius: 22px; }
  .calc-card--mini { padding: 20px; }
  .calc-result-value { font-size: 30px; }
  .cta-band { padding: 48px 0; }
  .page-head { padding-bottom: 24px; }
  .detail-title { font-size: 1.75rem; }
  .location-copy { padding: 20px; }
  .owner-card, .price-card { padding: 18px; }
  .price-card-value { font-size: 25px; }
  .form-section { padding: 20px 16px; }
  .upload-card, .tips-card { padding: 18px; }
  .article-title { font-size: 1.9rem; }
  .article-body { font-size: 15.5px; }
  .article-media { aspect-ratio: 4 / 3; margin-top: 22px; }
  .calc-form-card, .calc-summary { padding: 22px 18px; }
  .mortgage-info { margin-top: 28px; }
  .info-card { padding: 20px; }
  .footer-top { padding-bottom: 34px; }
  .mobile-actionbar { padding-left: 14px; padding-right: 14px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-figure img { max-height: 70vh; }
  .toast { width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 380px) {
  .display { font-size: 2.2rem; }
  .hero-stat-value { font-size: 18px; }
  .btn { padding: 10px 16px; font-size: 12.5px; }
  .card-title { font-size: 19px; }
}

/* ==========================================================================
   Тёмная тема: точечные правки
   ========================================================================== */
[data-theme="dark"] .fav-btn {
  background: rgba(25, 21, 16, 0.82);
  color: var(--light);
  border-color: rgba(251, 246, 238, 0.14);
}
[data-theme="dark"] .fav-btn:hover { background: rgba(25, 21, 16, 0.96); }
[data-theme="dark"] .fav-btn.is-active { color: var(--accent); }
[data-theme="dark"] .badge-deal { background: var(--ink); color: var(--deep); }
[data-theme="dark"] .badge-new { background: var(--deep-2); color: var(--light); }
[data-theme="dark"] .calc-card--mini { border: 1px solid var(--line); background: var(--surface-2); }
[data-theme="dark"] .calc-card--mini .calc-result-value { color: var(--ink); }
[data-theme="dark"] .calc-card--mini .calc-label,
[data-theme="dark"] .calc-card--mini .calc-result-label,
[data-theme="dark"] .calc-card--mini .calc-result-note,
[data-theme="dark"] .calc-card--mini .calc-eyebrow { color: var(--muted); }
[data-theme="dark"] .calc-card--mini .calc-label output { color: var(--ink); }
[data-theme="dark"] .calc-card--mini .calc-link { color: var(--ink); border-color: var(--line-strong); }
[data-theme="dark"] .calc-card--mini .calc-link:hover { color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .calc-summary { border: 1px solid var(--line); }
[data-theme="dark"] .section-buildings,
[data-theme="dark"] .site-footer { background: #0a0806; }
[data-theme="dark"] .btn-primary { background: var(--ink); color: var(--deep); }
[data-theme="dark"] .btn-primary:hover { background: var(--accent); color: var(--light); }
[data-theme="dark"] .btn-ink { background: var(--ink); color: var(--deep); }
[data-theme="dark"] .btn-ink:hover { background: var(--accent); color: var(--light); }
[data-theme="dark"] .segmented a.is-active { background: var(--ink); color: var(--deep); }
[data-theme="dark"] .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--deep); }
[data-theme="dark"] .segmented--form .segment input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--deep); }
[data-theme="dark"] .page-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--deep); }
[data-theme="dark"] .filter-link.is-active { background: var(--ink); border-color: var(--ink); color: var(--deep); }
[data-theme="dark"] .mobile-lang a.is-active { background: var(--ink); color: var(--deep); }
[data-theme="dark"] .header-cta { background: var(--ink); color: var(--deep); }
[data-theme="dark"] .header-cta:hover { background: var(--accent); color: var(--light); }
[data-theme="dark"] .hero-photo { box-shadow: none; }
[data-theme="dark"] .badge-done { background: rgba(143, 187, 164, 0.16); color: #b8d7c5; }
[data-theme="dark"] .building-media .badge-status { background: rgba(251, 246, 238, 0.9); color: #17130f; }
[data-theme="dark"] .nb-featured-media .badge-status { background: rgba(251, 246, 238, 0.9); color: #17130f; }
[data-theme="dark"] .gallery-count { background: rgba(251, 246, 238, 0.14); color: var(--light); }
[data-theme="dark"] .select-wrap .field-select,
[data-theme="dark"] .search-control { background: var(--bg-2); }
[data-theme="dark"] .search-card { background: var(--surface); }
[data-theme="dark"] .deal-tabs { background: var(--bg-2); }
[data-theme="dark"] .deal-tab input:checked + span { background: var(--ink); color: var(--deep); }
[data-theme="dark"] .filters-head { background: var(--surface); }
[data-theme="dark"] .owner-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .form-section,
[data-theme="dark"] .calc-form-card,
[data-theme="dark"] .upload-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .feature-card { background: var(--surface); }
[data-theme="dark"] .note-card,
[data-theme="dark"] .tips-card,
[data-theme="dark"] .inline-cta { background: var(--surface-2); }
[data-theme="dark"] .inline-cta--light { background: var(--surface); }
[data-theme="dark"] .hero-float { background: rgba(25, 21, 16, 0.9); }
[data-theme="dark"] .mobile-actionbar { background: rgba(16, 14, 11, 0.94); }
[data-theme="dark"] .empty-state { background: rgba(25, 21, 16, 0.5); }
[data-theme="dark"] .site-header { background: rgba(16, 14, 11, 0.86); }
[data-theme="dark"] .toast { background: var(--ink); color: var(--deep); }

/* Фолбэки для браузеров без color-mix */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
  .search-card { background: var(--surface); }
  .mobile-actionbar { background: var(--surface); }
  .empty-state { background: var(--surface); }
  .hero-float { background: var(--surface); }
}
