/* Арендли: один файл стилей витрины и админки. Порядок: шрифты → токены → база → компоненты → страницы → админка → медиазапросы.
   Сборки нет: файл пишется руками и отдаётся как есть. Цвета, отступы и радиусы только через токены ниже. */

/* Onest (SIL OFL 1.1), хранится у нас в public/assets/fonts. Кириллица и латиница отдельными файлами. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/onest-cyrillic.woff2?v=908a305e65") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/onest-latin.woff2?v=d3499b5afc") 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; }
/* Знак рубля лежит в latin-ext, поэтому вынесен в свой крошечный файл. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/onest-rub.woff2?v=109a8e43c8") format("woff2"); unicode-range: U+20BD; }
/* Пока Onest грузится, строки занимают столько же места, сколько займут потом. */
@font-face { font-family: "Onest Fallback"; src: local("Arial"); size-adjust: 103.77%; ascent-override: 93.48%; descent-override: 29.39%; line-gap-override: 0%; }

/* ── Токены ── */
:root {
  --ink: #0E1A33;
  --ink-soft: #3B4863;
  --muted: #5B6680;
  --line: #DDE3EE;
  --line-strong: #C5CEDD;
  --paper: #F5F7FB;
  --surface: #FFFFFF;
  --primary: #1F5BEF;
  --primary-hover: #1747C8;
  --primary-deep: #0F2F8F;
  --primary-soft: #EAF0FF;
  --signal: #FFC233;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --success: #0E7A4F;
  --success-soft: #E6F4EE;
  --on-dark: rgba(255, 255, 255, .78);
  --on-dark-line: rgba(255, 255, 255, .16);
  --font: Onest, "Onest Fallback", Arial, system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;
  --r-card: 12px; --r-ctl: 10px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 26, 51, .06), 0 2px 8px rgba(14, 26, 51, .06);
  --shadow-2: 0 12px 32px rgba(14, 26, 51, .14);
  --gutter: 16px;
  /* Поле слева и справа: контент не шире 1280px, фон блоков идёт на всю ширину. */
  --edge: max(var(--gutter), calc(50% - 640px + var(--gutter)));
}

/* ── База ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2 { line-height: 1.12; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 750; letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.site-footer :focus-visible, .owners :focus-visible, .hero-map :focus-visible { outline-color: var(--signal); }
.page-shell { overflow-x: clip; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#catalog { scroll-margin-top: 16px; }

/* ── Кнопки и чипы ── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-ctl); font-size: 15px; font-weight: 650; line-height: 1.2; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.button--small { min-height: 44px; padding: 0 16px; }
.button--primary { background: var(--primary); color: #fff; }
.button--primary:hover { background: var(--primary-hover); }
.button--dark { background: var(--ink); color: #fff; }
.button--dark:hover { background: #1C2C52; }
.button--signal { background: var(--signal); color: var(--ink); }
.button--signal:hover { background: #FFD066; }
.button--outline { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.button--outline:hover { border-color: var(--ink); }
.popular-cities, .related-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.popular-cities a, .related-cities a { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; transition: background-color .15s, color .15s; }
.popular-cities a::after, .related-cities a::after { content: ""; position: absolute; inset: -4px 0; }
.popular-cities a:hover, .related-cities a:hover { background: var(--primary); color: #fff; }
.related-cities--quiet a { border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); }
.related-cities--quiet a:hover { border-color: var(--primary); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--light { color: var(--on-dark); }
.eyebrow--light .eyebrow-dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 194, 51, .2); }

/* ── Шапка, меню, бургер ── */
.site-header { display: flex; align-items: center; gap: 32px; min-height: 72px; padding: 0 var(--edge); border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; width: 29px; height: 29px; }
.brand-mark span { display: block; width: 10px; border: 3px solid var(--primary); border-radius: 5px; transform: skew(-18deg); }
.brand-mark span:first-child { height: 20px; }
.brand-mark span:last-child { height: 27px; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.brand-name span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-link:hover, .nav-link--active { color: var(--ink); }
.nav-link--active::after { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 3px; border-radius: 3px; background: var(--primary); }
.nav-menu, .city-menu { position: relative; }
.nav-menu-button { padding: 0; font-size: 15px; }
.chevron { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-menu-list, .city-menu-list { position: absolute; z-index: 30; top: calc(100% + 8px); min-width: 240px; max-height: min(70vh, 420px); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-2); }
.nav-menu-list { left: 0; }
.city-menu-list { right: 0; }
.nav-menu-list a, .city-menu-list a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-menu-list a:hover, .city-menu-list a:hover { background: var(--primary-soft); color: var(--primary-hover); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.city-shortcut { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-hover); font-size: 15px; font-weight: 600; }
.city-shortcut svg, .city-field svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.city-shortcut .chevron { width: 14px; height: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--r-ctl); color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; content: ""; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.mobile-nav { position: fixed; z-index: 100; inset: 0; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(14, 26, 51, .5); }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; width: min(88vw, 360px); overflow-y: auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: var(--shadow-2); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 18px; font-weight: 700; }
.nav-close { display: grid; width: 44px; height: 44px; place-items: center; border-radius: var(--r-ctl); }
.nav-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-nav-panel > a:not(.button), .mobile-nav-group summary { display: flex; align-items: center; min-height: 52px; padding: 0 12px; border-radius: var(--r-ctl); font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mobile-nav-group[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.mobile-nav-group a { display: flex; align-items: center; min-height: 48px; padding: 0 12px 0 28px; color: var(--ink-soft); font-size: 16px; font-weight: 500; }
.mobile-nav-panel > a:not(.button):hover, .mobile-nav-group summary:hover, .mobile-nav-group a:hover { background: var(--primary-soft); }
.mobile-nav-panel .button { margin-top: 16px; }
html.nav-open, html.nav-open body { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav-panel { animation: nav-in .2s ease-out; }
  .mobile-nav-backdrop { animation: nav-fade .2s ease-out; }
  @keyframes nav-in { from { transform: translateX(24px); opacity: 0; } }
  @keyframes nav-fade { from { opacity: 0; } }
}

/* ── Плашка города ── */
.city-prompt { display: flex; align-items: center; gap: 8px; margin: 12px var(--edge) 0; padding: 6px 12px; border-radius: var(--r-card); background: var(--primary-soft); }
.city-prompt-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.city-prompt-short { display: none; }

/* ── Главная ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 48px; align-items: center; padding: 48px var(--edge) 40px; }
.hero h1 { margin: 16px 0; }
.hero-lead { max-width: 520px; color: var(--ink-soft); font-size: 17px; }
.search-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; max-width: 640px; margin-top: 24px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.search-panel:focus-within { border-color: var(--primary); }
.search-field, .city-field { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--muted); }
.city-field { background: var(--paper); }
.search-field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.search-field input, .city-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-field input::placeholder, .city-field input::placeholder { color: var(--muted); opacity: 1; }
.search-panel:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.city-suggest { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; left: 0; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-2); }
.city-suggest button { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 8px; text-align: left; }
.city-suggest button:hover { background: var(--primary-soft); }
.city-suggest small { display: block; color: var(--muted); font-size: 13px; }
.hero-map { padding: 24px; border-radius: 16px; background: var(--primary-deep); color: #fff; box-shadow: var(--shadow-2); }
.hero-map-title { margin-bottom: 12px; color: var(--on-dark); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.map-frame { position: relative; }
.map-frame img { display: block; width: 100%; height: auto; }
.map-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 50%; background: var(--primary-deep); transition: transform .15s; }
.map-dot::after { content: ""; position: absolute; inset: -7px; }
.map-dot--live { border-color: var(--signal); background: var(--signal); }
.map-dot:hover, .map-dot:focus-visible { z-index: 2; transform: scale(1.5); }
.map-name { position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 4px 10px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 650; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%) scale(.67); }
.map-dot:hover .map-name, .map-dot:focus-visible .map-name { opacity: 1; }
.hero-map-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 var(--edge) 40px; }
.step { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.step strong { font-size: 16px; font-weight: 650; line-height: 1.3; }
.step-num { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-hover); font-size: 14px; font-weight: 800; }
.step:first-child .step-num { background: var(--primary); color: #fff; }
.owners { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px var(--edge); background: var(--primary-deep); color: #fff; }
.owners h2 { margin: 16px 0 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.owners h2 em { color: var(--signal); }
.owners p { max-width: 440px; margin-bottom: 24px; color: var(--on-dark); font-size: 17px; }
.owners-steps { display: grid; gap: 12px; padding: 0; list-style: none; }
.owners-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-card); background: rgba(255, 255, 255, .08); font-weight: 500; }
.owners-steps span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--signal); color: var(--ink); font-weight: 800; }
.seo-text { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: 56px var(--edge); background: var(--surface); }
.seo-text-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.seo-text-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ── Каталог: заголовок, сетка, карточка ── */
.catalog-section { padding: 24px var(--edge) 56px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin-top: 8px; }
.section-heading h2 span { color: var(--primary); }
.catalog-controls { display: flex; align-items: center; gap: 16px; }
.result-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.sort-select { position: relative; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sort-select select { min-height: 44px; padding: 0 36px 0 14px; appearance: none; border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; }
.sort-select svg { position: absolute; right: 12px; width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; pointer-events: none; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 1fr)); gap: 20px; margin-top: 24px; }
.listing-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 10px; border-radius: 8px; background: var(--signal); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; }
.card-badge--neutral { background: var(--surface); }
.card-fav { position: absolute; z-index: 3; top: 4px; right: 4px; display: grid; width: 44px; height: 44px; place-items: center; color: #fff; }
.card-fav::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: rgba(14, 26, 51, .62); transition: background-color .15s; }
.card-fav svg { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-fav.is-favorite { color: var(--ink); }
.card-fav.is-favorite::before { background: var(--signal); }
.card-fav.is-favorite svg { fill: currentColor; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.card-location { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.card-location svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-location span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { display: -webkit-box; min-height: 2.8em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 650; line-height: 1.4; }
.listing-card .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-title a:hover { color: var(--primary-hover); }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-price { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-price small { color: var(--muted); font-size: 14px; font-weight: 500; }
.card-rating { display: flex; align-items: center; gap: 4px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.card-rating small { color: var(--muted); font-weight: 500; }
.star { color: var(--signal); }
.card-flags { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card-flag { color: var(--muted); font-size: 13px; }
.card-flag--manual { color: var(--primary-hover); }
.card-open { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: auto; border-radius: var(--r-ctl); background: var(--primary-soft); color: var(--primary-hover); font-size: 15px; font-weight: 650; white-space: nowrap; transition: background-color .15s, color .15s; }
.card-open:hover { background: var(--primary); color: #fff; }
.empty-state { padding: 64px 16px; text-align: center; }
.empty-state-icon { color: var(--primary); font-size: 40px; }
.empty-state .empty-title { margin: 8px 0 4px; font-size: 20px; font-weight: 700; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }
.feed-sentinel { padding: 24px 0 8px; color: var(--muted); font-size: 14px; text-align: center; }
.load-more { display: flex; margin: 24px auto 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { display: grid; min-width: 44px; height: 44px; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); font-weight: 650; }
.pagination a:hover, .pagination .is-active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ── Вопросы и ответы ── */
.faq { padding: 24px var(--edge) 64px; }
.faq-heading h2 { margin-top: 8px; }
.faq-list { display: grid; gap: 12px; max-width: 800px; margin-top: 24px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.faq-item[open] { border-color: var(--primary); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 650; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item p { padding: 0 48px 18px 20px; color: var(--ink-soft); }

/* ── Подвал и cookie ── */
.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; padding: 48px var(--edge) 32px; background: var(--ink); color: var(--on-dark); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: var(--signal); }
.site-footer .brand-mark span { border-color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 15px; }
.footer-links { display: flex; justify-content: flex-end; gap: 64px; }
.footer-links div { display: flex; flex-direction: column; min-width: 140px; }
.footer-links strong { margin-bottom: 8px; color: #fff; font-size: 15px; }
.footer-links a { display: flex; align-items: center; min-height: 36px; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-note { grid-column: 1 / -1; font-size: 14px; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: 12px; }
.footer-note a, .footer-bottom a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent-bar { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 880px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--surface); box-shadow: 0 -8px 24px rgba(14, 26, 51, .12); }
.consent-bar p { color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.consent-bar a { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 2px; }
.consent-bar .button { flex: none; }

/* ── Внутренние страницы ── */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 16px var(--edge) 0; color: var(--muted); font-size: 14px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span[aria-current="page"] { color: var(--ink-soft); }
.city-page-hero, .info-page, .listing-page, .form-page, .not-found { padding: 24px var(--edge) 48px; }
.city-page-hero { padding-bottom: 8px; }
.city-page-hero + .catalog-section { padding-top: 16px; }
.city-page-hero h1, .info-page h1, .form-page h1, .not-found h1 { margin: 12px 0; }
.city-page-lead, .not-found-lead { max-width: 720px; margin-bottom: 12px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.city-page-hero p > a { color: var(--primary-hover); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.info-page h2 { margin: 32px 0 8px; font-size: 24px; }
.city-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.city-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); font-weight: 600; }
.city-index a:hover { border-color: var(--primary); color: var(--primary-hover); }
.city-index strong { color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.not-found { max-width: 800px; margin: 0 auto; padding-top: 48px; }
.not-found .search-panel { grid-template-columns: minmax(0, 1fr) auto; }
.not-found > p:last-child { margin-top: 24px; }
.offer-head { max-width: 900px; }
.offer-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.listing-kicker { margin-top: 8px; color: var(--muted); font-size: 14px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); gap: 24px; align-items: stretch; margin-top: 24px; }
.offer-photo { position: relative; min-height: 340px; overflow: hidden; border-radius: 16px; background: var(--line); }
.offer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-buy { display: flex; flex-direction: column; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.offer-price { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.listing-price { font-size: clamp(32px, 4vw, 44px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.05; }
.listing-price small { color: var(--muted); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.offer-checked { padding: 4px 12px; border-radius: var(--r-pill); background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 600; }
.offer-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.offer-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.offer-facts dt { color: var(--muted); font-size: 14px; }
.offer-facts dd { font-weight: 600; overflow-wrap: anywhere; }
.offer-cta { width: 100%; min-height: 56px; margin-top: auto; font-size: 17px; }
.offer-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.offer-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.place { padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.place h2 { margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.place p { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.offer-description { margin-top: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.offer-description h2 { margin-bottom: 16px; font-size: 24px; }
.offer-description p { max-width: 75ch; color: var(--ink-soft); font-size: 17px; line-height: 1.65; white-space: pre-wrap; }
.similar-block { margin-top: 48px; }
.similar-block h2 { margin-bottom: 4px; font-size: 24px; }
.listing-sticky-cta { display: none; }

/* ── Формы и вход ── */
.site-form, .admin-form { display: grid; gap: 16px; max-width: 640px; margin-top: 24px; }
.admin-form { max-width: 760px; margin-top: 0; }
.site-form label, .admin-form label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.site-form input, .site-form textarea, .site-form select, .admin-form input, .admin-form textarea, .admin-form select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font-size: 16px; }
.site-form textarea, .admin-form textarea { min-height: 120px; resize: vertical; }
.site-form input:focus, .site-form textarea:focus, .site-form select:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--primary); }
.consent-row, .check-row, .site-form label.check-row, .admin-form label.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.consent-row input, .admin-form input[type="checkbox"], .site-form input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; flex: none; padding: 0; accent-color: var(--primary); }
.consent-row a { color: var(--primary-hover); text-decoration: underline; }
.form-error, .inline-error { color: var(--danger); font-size: 14px; }
.form-error { padding: 12px 16px; border-radius: var(--r-ctl); background: var(--danger-soft); }
.form-success { padding: 12px 16px; border-radius: var(--r-ctl); background: var(--success-soft); color: var(--success); font-weight: 600; }
.login-shell { display: grid; min-height: 70vh; place-items: center; padding: 40px 16px; }
.login-card { width: min(420px, 100%); padding: 32px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.login-card h1 { margin: 20px 0 0; font-size: 28px; }

/* ── Админка: те же токены, без отдельного оформления ── */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 72px); }
.admin-nav { padding: 24px 16px; border-right: 1px solid var(--line); background: var(--surface); }
.admin-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.admin-nav a:hover, .admin-nav a.is-active { background: var(--primary-soft); color: var(--primary-hover); }
.admin-main { padding: 24px 32px 64px; }
.admin-main h1 { margin-bottom: 16px; font-size: 28px; letter-spacing: -.02em; }
.admin-toolbar, .import-toolbar, .import-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.admin-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-editor { display: grid; gap: 12px; }
.faq-note { color: var(--muted); font-size: 14px; }
.faq-pair { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.stat-card strong { display: block; font-size: 26px; font-weight: 800; }
.stat-card span { color: var(--muted); font-size: 14px; }
.import-lead { max-width: 640px; margin-bottom: 16px; color: var(--ink-soft); }
.import-back { color: var(--ink-soft); font-weight: 600; }
.import-preview { display: grid; gap: 16px; }
.import-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.import-summary p { color: var(--ink-soft); }
.import-summary ul { display: flex; gap: 20px; padding: 0; list-style: none; }
.import-summary strong { display: block; font-size: 22px; font-weight: 800; }
.import-summary span { color: var(--muted); font-size: 14px; }
.import-table-wrap { max-height: 560px; }
.import-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }
.import-pill--create { background: var(--success-soft); color: var(--success); }
.import-pill--update { background: var(--primary-soft); color: var(--primary-hover); }
.import-pill--skip { background: var(--paper); color: var(--ink-soft); }
.import-pill--fail { background: var(--danger-soft); color: var(--danger); }
.import-note { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.import-rollback { min-height: 36px; padding: 0 12px; border: 1px solid var(--danger-soft); border-radius: 8px; background: var(--surface); color: var(--danger); font-weight: 700; }
.import-rollback:hover { background: var(--danger-soft); }

/* ── Медиазапросы ── */
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }
@media (hover: none) { .listing-card:hover { transform: none; } }
@media (pointer: coarse) { .footer-links a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .listing-card:hover { transform: none; }
}
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .hero-map { max-width: 640px; }
  .owners, .seo-text { grid-template-columns: 1fr; gap: 24px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell, .admin-form .grid-2 { grid-template-columns: 1fr; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .site-header { gap: 12px; min-height: 64px; }
  .main-nav, .city-shortcut .chevron { display: none; }
  .header-actions { gap: 8px; margin-left: auto; }
  .nav-toggle { display: grid; }
  .city-shortcut span { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .steps { grid-template-columns: 1fr; gap: 8px; padding-bottom: 24px; }
  .step { padding: 12px 16px; }
  .seo-text-body { grid-template-columns: 1fr; }
  .hero-map { display: none; }
  .offer { grid-template-columns: 1fr; }
  .offer-photo { align-self: start; width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .offer-photo img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .offer-buy { padding: 20px; }
  .offer-places { grid-template-columns: 1fr; }
  .place, .offer-description { padding: 20px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; gap: 32px; }
  .listing-sticky-cta { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(14, 26, 51, .1); }
  .sticky-price { font-size: 20px; font-weight: 800; white-space: nowrap; }
  .sticky-price small { color: var(--muted); font-size: 14px; font-weight: 500; }
  .listing-sticky-cta .button { flex: 1; max-width: 280px; }
  body:has(.listing-sticky-cta) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body:has(.listing-sticky-cta) .consent-bar { bottom: calc(68px + env(safe-area-inset-bottom)); border-bottom: 1px solid var(--line); }
  .admin-main { padding: 20px 16px 48px; }
}
@media (max-width: 560px) {
  .search-panel { grid-template-columns: 1fr; }
  .search-button { width: 100%; }
  .not-found .search-panel { grid-template-columns: 1fr; }
  .city-prompt-short { display: inline; }
  .city-prompt-long { display: none; }
  .city-prompt-text { font-size: 14px; }
  .section-heading { align-items: flex-start; }
  .catalog-controls { justify-content: space-between; width: 100%; }
  .sort-select > span { display: none; }
  .card-title { min-height: 0; }
  .consent-bar { gap: 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .consent-bar p { font-size: 13px; }
  .footer-links { flex-direction: column; gap: 16px; }
  .footer-bottom { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
}
