/* Сайт NomadDom — стили. Раскладка по образцу Airbnb, цвета и логотип свои. */
:root {
  --ink: #1C1B1A;
  --muted: #57534E;
  --soft: #8A847C;
  --line: #E7E4DF;
  --line-strong: #D6D2CB;
  --bg: #FFFFFF;
  --bg-soft: #F6F3EE;
  --chip: #F0EDE8;
  --photo: #EFEBE5;
  --accent: #0E5A49;
  --accent-soft: #EAF3F0;
  --blue-soft: #EDF1FA;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(28,27,26,.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.45; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.01em; }
.wrap { max-width: 1760px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { font-size: 15px; color: var(--muted); }
.sub.small { font-size: 14px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 12px; text-decoration: none; cursor: pointer; border: 1px solid transparent; min-height: 44px; background: none; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; opacity: .9; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; opacity: .92; }
.btn-line { border-color: var(--ink); background: #fff; }
.btn-pill { border-radius: 999px; border-color: var(--line-strong); font-size: 14px; padding: 10px 16px; background: #fff; }
.btn-pill:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-round { border-radius: 999px; font-size: 14px; font-weight: 600; }
.btn-ghost-round:hover { background: var(--bg-soft); color: var(--ink); }
.round { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); padding: 0; }
.round:hover { box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.linkbtn { font: inherit; font-weight: 600; font-size: 15px; text-decoration: underline; background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--ink); }

/* ---------- шапка (как у Airbnb: логотип · вкладки · кнопки) ---------- */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.page-home .top { background: linear-gradient(#fff, #FBFAF8); }
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: start; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.tabs { display: flex; gap: 8px; align-items: flex-end; }
.tab { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; font-size: 16px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; position: relative; }
.tab svg { color: var(--soft); }
.tab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.tab.on svg { color: var(--accent); }
.tab.soon { cursor: default; }
.badge-soon { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; background: #1C1B1A; color: #fff; position: absolute; top: -2px; right: -8px; }
.top-actions { display: flex; gap: 6px; align-items: center; justify-self: end; }

/* ---------- строка поиска ---------- */
.hero { padding: 10px 0 26px; }
.hero-compact { padding-top: 4px; padding-bottom: 14px; }
.search { margin: 0 auto; width: 100%; max-width: 1060px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; padding: 6px 6px 6px 0; background: #fff; }
.search .field { flex: 1 1 0; min-width: 0; padding: 12px 24px; display: flex; flex-direction: column; gap: 2px; border-radius: 999px; position: relative; cursor: pointer; }
.search .field + .field::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; border-left: 1px solid var(--line); }
.search .field:hover { background: var(--bg-soft); }
.search .field:hover::before, .search .field:hover + .field::before { border-color: transparent; }
.search .field span { font-size: 12px; font-weight: 700; }
.search input, .search select { border: 0; outline: none; font: inherit; font-size: 14px; color: var(--ink); padding: 0; background: transparent; width: 100%; cursor: pointer; text-overflow: ellipsis; }
.search input::placeholder { color: var(--soft); }
.search .f-q { flex-grow: 1.4; }
.search-go { flex: 0 0 auto; height: 52px; min-width: 52px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 700; padding: 0 18px; margin-left: 6px; }
.search-go span { display: none; }
.search-go:hover { filter: brightness(1.1); }
.search.compact { max-width: 1040px; }
.search.compact .field { padding: 8px 18px; }
.search.compact .search-go { height: 44px; min-width: 44px; padding: 0 14px; }

/* ---------- категории (полоса с иконками) ---------- */
.cats-wrap { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.cats-row { display: flex; align-items: center; gap: 8px; position: relative; }
.cats { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-top: 12px; flex: 1; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 12px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; flex-shrink: 0; opacity: .8; }
.cat:hover { color: var(--ink); border-bottom-color: var(--line-strong); opacity: 1; }
.cat.on { color: var(--ink); border-bottom-color: var(--ink); opacity: 1; }
.cat-arrow { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; color: var(--ink); }

/* ---------- главная: ряды карточек ---------- */
.home { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.rail-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.rail-head h2 a { text-decoration: none; }
.rail-nav { display: flex; align-items: center; gap: 8px; }
.rail-all { font-size: 14px; font-weight: 600; margin-right: 6px; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: start; min-width: 0; }

/* ---------- карточка ---------- */
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.card:hover { color: var(--ink); }
.card-photo { position: relative; aspect-ratio: 1 / 0.95; border-radius: var(--radius); background: var(--photo); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-photo img { transform: scale(1.03); }
.tag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.photo-count { position: absolute; right: 12px; bottom: 12px; background: rgba(28,27,26,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; gap: 2px; }
.card-head { display: flex; justify-content: space-between; gap: 8px; }
.card-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-line { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-price { font-size: 15px; margin-top: 4px; }
.dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; display: inline-block; }
.dot-lg { width: 16px; height: 16px; }

.empty { padding: 48px 24px; text-align: center; background: var(--bg-soft); border-radius: var(--radius); }
.empty p { margin: 0 0 16px; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- страница поиска: список + карта ---------- */
.sbar { border-bottom: 1px solid var(--line); background: #fff; }
.sbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.fcount { background: var(--ink); color: #fff; border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sortf select { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.results-col { padding: 24px 24px 48px 40px; min-width: 0; }
.count { margin: 0 0 18px; font-size: 15px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 20px; }
.map-col { position: sticky; top: 72px; height: calc(100vh - 72px); }
.map { width: 100%; height: 100%; background: #EEF0EA; }
.map-col .map { border-left: 1px solid var(--line); }
.map-toggle { display: none; }

/* метки-цены на карте */
.leaflet-div-icon.pin { background: none; border: 0; }
.pin span { display: inline-block; transform: translate(-50%, -50%); background: #fff; color: var(--ink); font: 700 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; padding: 7px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.28); white-space: nowrap; transition: transform .15s; }
.pin.hot span, .pin:hover span { background: var(--ink); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.pin.home span { background: var(--accent); color: #fff; font-size: 18px; padding: 8px 11px; }
.pop { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.pop img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.pop small { color: var(--muted); }
.leaflet-popup-content { margin: 12px; font-family: inherit; }
.leaflet-popup-content-wrapper { border-radius: 14px; }

/* ---------- окно «Фильтры» ---------- */
.fdlg { border: 0; padding: 0; border-radius: 16px; width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 64px); box-shadow: 0 12px 40px rgba(0,0,0,.25); color: var(--ink); }
.fdlg::backdrop { background: rgba(0,0,0,.45); }
.fform { display: flex; flex-direction: column; max-height: calc(100vh - 64px); }
.fhead { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fhead h2 { margin: 0; font-size: 16px; text-align: center; }
.fbody { overflow-y: auto; padding: 0 24px; }
.fsec { padding: 24px 0; border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
.fsec h3 { margin: 0 0 6px; font-size: 20px; }
.fnote { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.ffoot { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span { display: block; text-align: center; padding: 14px 8px; font-weight: 600; cursor: pointer; border-right: 1px solid var(--line); }
.seg-opt:last-child span { border-right: 0; }
.seg-opt input:checked + span { background: var(--ink); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
.hist { display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; height: 64px; margin: 16px 12px 0; }
.hist span { flex: 1; background: #DDD8D1; border-radius: 2px 2px 0 0; max-width: 10px; }
.hist span.in { background: var(--accent); }
.hist span.z { visibility: hidden; }
.range { position: relative; height: 28px; margin: 0 12px; --a: 0%; --b: 100%; }
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line-strong); }
.range::after { content: ""; position: absolute; left: var(--a); right: calc(100% - var(--b)); top: 12px; height: 4px; background: var(--ink); border-radius: 2px; }
.range input { position: absolute; left: 0; width: 100%; top: 2px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 24px; z-index: 1; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 28px; height: 28px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer; }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.range-inputs label { border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 14px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.range-inputs span { display: flex; align-items: center; gap: 4px; color: var(--ink); font-size: 16px; }
.range-inputs input { border: 0; outline: none; font: inherit; width: 100%; padding: 0; }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.frow b { display: block; font-weight: 600; }
.frow span { color: var(--muted); font-size: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; opacity: 0; }
.pill-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pill-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 12px; }
.chk { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-size: 15px; }
.chk input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; }
.chk-ico { color: var(--muted); display: inline-flex; }
.chk.more { display: none; }
.fdlg.show-more .chk.more { display: flex; }
.chk.wide { margin-top: 8px; }

/* ---------- полоса безопасности и подвал ---------- */
.safety { background: var(--bg-soft); }
.safety .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.safety-text { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 420px; }
.safety-text b { display: block; font-size: 17px; margin-bottom: 4px; }
.safety-text p { margin: 0; font-size: 14px; color: var(--muted); }
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); }
.foot .wrap, .foot .wrap-narrow { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px 20px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.page-search .foot { display: none; }

/* ---------- страница объявления ---------- */
.page { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.page h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 8px; border-radius: 16px; overflow: hidden; height: 440px; }
.gallery.n2 { grid-template-columns: 1fr 1fr; }
.gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.n3 .ph.main { grid-row: span 2; }
.gallery .ph { background: var(--photo); min-height: 0; display: flex; align-items: center; justify-content: center; color: var(--soft); font-weight: 600; font-size: 14px; overflow: hidden; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
.gallery.n0 { height: 220px; }
.cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.side-col { flex: 1 1 340px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgba(28,27,26,.10); padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.block { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.block.first { border-top: 0; padding-top: 0; }
.block h2 { margin: 0; font-size: 20px; font-weight: 800; }
.infobox { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); }
.infobox b { display: block; color: var(--accent); font-size: 16px; margin-bottom: 4px; }
.infobox p { margin: 0; font-size: 14px; color: #3F3B36; }
.infobox.amina { background: var(--blue-soft); }
.infobox.amina b { color: #2B4C9B; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; font-size: 15px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts span { color: var(--muted); font-size: 13px; }
.facts b { font-weight: 600; }
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.amen li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.amen svg { color: var(--muted); flex-shrink: 0; }
.comment { margin: 0; font-size: 15px; line-height: 1.6; color: #3F3B36; white-space: pre-line; overflow-wrap: anywhere; }
.where { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.where-name { display: flex; align-items: center; gap: 12px; }
.where-name b { display: block; font-size: 17px; }
.where-name span { font-size: 14px; color: var(--muted); }
.map-listing { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price { margin: 0; font-size: 15px; }
.price b { font-size: 24px; font-weight: 800; }
.owner { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.contacts { display: flex; flex-direction: column; gap: 10px; }
.contacts .btn { width: 100%; }
.contacts .plain { font-size: 15px; padding: 4px 0; overflow-wrap: anywhere; }
.warn { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); }
details.report summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; padding: 8px 0; list-style: none; text-align: center; }
details.report summary::-webkit-details-marker { display: none; }
.report form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.report label { font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.report select, .report textarea { font: inherit; font-size: 14px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; width: 100%; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.back { font-weight: 600; font-size: 14px; text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-strong); }

/* ---------- текстовые страницы ---------- */
.text-page { padding-top: 32px; padding-bottom: 64px; max-width: 760px; }
.text-page h1 { font-size: 30px; margin: 0 0 16px; }
.text-page h2 { font-size: 20px; margin: 28px 0 8px; }
.text-page p, .text-page li { color: #3F3B36; }
.todo { background: #FFF6DB; padding: 2px 6px; border-radius: 6px; }

/* ---------- ширина ноутбука ---------- */
@media (max-width: 1280px) {
  .rail-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .wrap { padding: 0 24px; }
  .rail-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .top-row { grid-template-columns: auto 1fr auto; }
  .tabs { justify-self: center; }
  .split { grid-template-columns: 1fr; }
  .results-col { padding: 20px 24px 96px; }
  .map-col { display: none; position: fixed; inset: 0; top: 0; height: 100vh; z-index: 30; }
  .show-map .map-col { display: block; }
  .map-toggle { display: inline-flex; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; align-items: center; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .top-row { grid-template-columns: 1fr auto; padding-top: 10px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: center; }
  .tab { padding: 8px 12px 10px; font-size: 15px; }
  .tab svg { width: 24px; height: 24px; }
  .badge-soon { position: static; margin-left: 2px; }
  .top-actions .hide-mobile { display: none; }
  .top-actions .btn { padding: 10px 14px; font-size: 14px; }
  .hero { padding: 6px 0 16px; }
  .search, .search.compact { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 8px; }
  .search .field, .search.compact .field { padding: 10px 12px; border-radius: 12px; }
  .search .field + .field::before { left: 12px; right: 12px; top: 0; height: 0; border-left: 0; border-top: 1px solid var(--line); width: auto; }
  .search-go, .search.compact .search-go { width: 100%; border-radius: 12px; margin: 6px 0 0; height: 48px; }
  .search-go span { display: inline; }
  .page-search .search.compact .f-type, .page-search .search.compact .f-price, .page-search .search.compact .f-who { display: none; }
  .cats { gap: 22px; }
  .cat-arrow { display: none; }
  .home { gap: 32px; padding-top: 20px; }
  .rail-head h2 { font-size: 19px; }
  .rail-nav .round { display: none; }
  .rail-track { grid-auto-columns: 78%; gap: 14px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .results-col { padding: 16px 16px 96px; }
  .page h1 { font-size: 23px; }
  .gallery, .gallery.n2, .gallery.n3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 12px; height: 280px; }
  .gallery .ph, .gallery .ph.main { flex: 0 0 88%; min-height: 260px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; }
  .gallery .ph:only-child { flex-basis: 100%; }
  .cols { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; }
  .side-col { order: -1; flex-basis: auto; position: static; }
  .main-col { flex-basis: auto; }
  .amen, .chks { grid-template-columns: 1fr; }
  .map-listing { height: 280px; }
  .fdlg { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  .fform { max-height: 100vh; height: 100%; }
  .fbody { flex: 1; }
  .seg-opt span { padding: 12px 4px; font-size: 14px; }
}


/* ---------- пример V1.3: квартиры, посуточно, страница по образцу ---------- */
.seg4 { grid-template-columns: repeat(4, 1fr); }
.tag-daily { background: #2B4C9B; color: #fff; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.meta-row { display: flex; gap: 20px; font-size: 14px; color: var(--soft); margin-top: -12px; }
.meta-row .views { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.head-block { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.good-price { background: #E3F2EA; color: var(--accent); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.page h1 { font-size: 34px; letter-spacing: -0.02em; }
.addr { font-size: 15px; }
.addr a { color: #2B4C9B; text-decoration: none; margin-left: 6px; }
.addr a:hover { text-decoration: underline; }
.metros { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.m-st { display: inline-flex; align-items: center; gap: 7px; }
.m-min { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); margin-left: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { color: #D7263D; border-color: #D7263D; }
.icon-btn[aria-pressed="true"] svg { fill: #D7263D; }
.actions .btn-pill { border-radius: 10px; min-height: 44px; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.about-col { min-width: 0; }
.kv b { overflow-wrap: anywhere; }
.main-col > * { min-width: 0; }
.about-col h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; text-align: right; }
.price-row { display: flex; justify-content: space-between; align-items: center; }
.side-col .price b { font-size: 30px; }
.side-col .price { font-size: 22px; font-weight: 700; }
.fav-big { border: 0; width: 40px; height: 40px; }
.offer { display: flex; flex-direction: column; gap: 6px; }
.offer label { font-size: 15px; }
.offer-row { display: flex; gap: 8px; }
.offer-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }
.offer-go { width: 48px; border-radius: 10px; border: 0; background: var(--accent-soft); color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.offer small { color: var(--soft); font-size: 12px; }
.offer .offer-msg { color: #B4432B; font-size: 13px; }
.conds { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.dl { display: flex; align-items: baseline; gap: 6px; font-size: 15px; }
.dl span { white-space: nowrap; }
.dl i { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 12px; }
.dl b { font-weight: 500; text-align: right; }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { color: var(--accent); filter: brightness(.97); }
.contacts .btn { width: 100%; }
.infobox.warnbox { background: #FFF4E5; }
.infobox.warnbox b { color: #9A4A00; }
.infobox.warnbox svg { color: #9A4A00; flex-shrink: 0; width: 26px; height: 26px; }
@media (max-width: 760px) {
  .page h1 { font-size: 25px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-col h2 { font-size: 21px; }
  .meta-row { margin-top: -8px; flex-wrap: wrap; gap: 8px 16px; }
}
@media print {
  .top, .foot, .actions, .side-col .offer, .report, .map-listing, .cats-wrap { display: none !important; }
}

.more-rails { max-width: 1180px; display: flex; flex-direction: column; gap: 40px; padding-bottom: 56px; border-top: 1px solid var(--line); padding-top: 40px; }
.more-rails .rail-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
@media (max-width: 760px) { .more-rails { padding-top: 28px; gap: 28px; } .more-rails .rail-track { grid-auto-columns: 78%; } }

/* карта на странице поиска — только по кнопке «Показать карту» */
.sbar-right { display: flex; gap: 8px; align-items: center; }
@media (min-width: 1001px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .map-col { display: none; }
  .split .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .results-col { padding-right: 40px; }
  .show-map-desk .split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .show-map-desk .split .map-col { display: block; }
  .show-map-desk .results-col { padding-right: 24px; }
}
@media (max-width: 1000px) { [data-map-toggle-desk] { display: none; } }

/* =====================================================================
   V1.4 — дизайн по образцу Airbnb: шрифт Onest, шапка с цветными
   вкладками, строка поиска с панелями, карточки, ряды, подвал.
   ===================================================================== */
:root {
  --ink: #222222;
  --muted: #6A6A6A;
  --soft: #929292;
  --line: #EBEBEB;
  --line-strong: #DDDDDD;
  --bg-soft: #F7F7F7;
  --photo: #EFEDEA;
  --heart: #FF385C;
  --shadow-pop: 0 6px 28px rgba(0,0,0,.16), 0 1px 4px rgba(0,0,0,.06);
}
body { font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.005em; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- шапка ---------- */
.top { background: #fff; position: relative; z-index: 40; }
.page-home .top, .page-search .top { background: linear-gradient(180deg, #FFFFFF 0%, #F8F8F8 100%); }
.top-row { grid-template-columns: 1fr auto 1fr; padding-top: 14px; padding-bottom: 0; min-height: 84px; align-items: center; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; color: var(--accent); }
.tabs { gap: 2px; align-self: stretch; align-items: stretch; }
.tab { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 16px; font-weight: 500; color: var(--muted); border-bottom: 0; position: relative; text-decoration: none; white-space: nowrap; }
.tab .ill { flex-shrink: 0; transition: transform .25s cubic-bezier(.2,.8,.3,1.4); }
.tab:hover { color: var(--ink); }
.tab:hover .ill { transform: scale(1.1) rotate(-4deg); }
.tab.on { color: var(--ink); font-weight: 600; }
.tab.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--ink); }
.tab:not(.on):hover::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--line-strong); }
.tab.soon { cursor: default; color: var(--soft); }
.tab.soon .ill { filter: saturate(.85); }
.tab.soon:hover .ill { transform: none; }
.tab.soon:hover::after { display: none; }
.badge-soon { position: absolute; top: 0; left: 30px; right: auto; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px 6px 6px 2px; background: #2B3A55; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.top-actions { gap: 6px; }
.host-link { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 999px; white-space: nowrap; }
.host-link:hover { background: #F2F2F2; color: var(--ink); }
.round-btn { width: 42px; height: 42px; border-radius: 999px; background: #F2F2F2; border: 0; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.round-btn:hover { background: #EBEBEB; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.menu-wrap { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-pop); padding: 8px 0; z-index: 60; }
.menu-pop a { display: block; padding: 12px 18px; font-size: 15px; color: var(--ink); text-decoration: none; }
.menu-pop a:hover { background: #F7F7F7; color: var(--ink); }
.menu-pop .menu-strong { font-weight: 600; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* ---------- строка поиска ---------- */
.hero { padding: 18px 0 32px; }
.hero-compact { padding-top: 10px; padding-bottom: 18px; }
.search { position: relative; margin: 0 auto; width: 100%; max-width: 980px; height: 68px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); display: flex; align-items: center; transition: background .2s; }
.search.compact { max-width: 860px; height: 60px; }
.search.has-open { background: #EBEBEB; border-color: transparent; }
.search-mob { display: none; }
.sf { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.sf-where { flex: 1.5 1 0; }
.sf + .sf::before { content: ""; position: absolute; left: 0; top: 24%; height: 52%; border-left: 1px solid var(--line-strong); z-index: 1; }
.sf:hover::before, .sf:hover + .sf::before, .sf.open::before, .sf.open + .sf::before, .has-open .sf::before { border-color: transparent; }
.sf-btn { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; width: 100%; padding: 0 26px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--ink); box-sizing: border-box; transition: background .15s, box-shadow .15s; }
.compact .sf-btn { padding: 0 22px; }
.sf-btn:hover { background: #EBEBEB; }
.has-open .sf-btn:hover { background: #DDDDDD; }
.sf.open .sf-btn, .sf.open .sf-btn:hover { background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.sf-l { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.sf-v { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-v.set { color: var(--ink); font-weight: 500; }
.sf-in { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; padding: 0; color: var(--ink); width: 100%; text-overflow: ellipsis; cursor: text; }
.sf-in::placeholder { color: var(--muted); }
.sf-pop { display: none; position: absolute; top: calc(100% + 12px); left: 0; width: 360px; max-height: min(70vh, 520px); overflow-y: auto; background: #fff; border-radius: 28px; box-shadow: var(--shadow-pop); padding: 16px; z-index: 70; text-align: left; }
.sf.open .sf-pop { display: block; animation: popin .16s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sf-where .sf-pop { width: 420px; }
.sf-last .sf-pop { left: auto; right: 0; width: 380px; }
.pop-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 12px 10px; text-transform: none; }
.pop-note { font-size: 13px; color: var(--muted); margin: 10px 12px 2px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.opt:hover, .opt.active { background: #F2F2F2; }
.opt[aria-selected="true"] { background: #F2F2F2; box-shadow: inset 0 0 0 2px var(--ink); }
.opt-ico { width: 48px; height: 48px; border-radius: 12px; background: #F2F2F2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink); }
.opt-ico.metro i { width: 16px; height: 16px; border-radius: 999px; box-shadow: 0 0 0 4px #fff; }
.opt b { display: block; font-weight: 500; font-size: 15px; }
.opt small { display: block; color: var(--muted); font-size: 13px; }
.chips-budget { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px; }
.bchip { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.bchip:hover { border-color: var(--ink); }
.bchip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.budget-own { display: flex; gap: 8px; align-items: flex-end; margin: 16px 6px 0; }
.budget-own label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.budget-own input { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); }
.budget-own .btn { min-height: 46px; }
.search-go { flex: 0 0 auto; height: 48px; width: 48px; min-width: 48px; margin: 0 10px 0 4px; padding: 0; border-radius: 999px; border: 0; background: linear-gradient(90deg, #17926C 0%, #0E5A49 100%); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; transition: width .2s ease, padding .2s ease; overflow: hidden; }
.compact .search-go { height: 44px; width: 44px; min-width: 44px; margin-right: 8px; }
.search-go span { display: none; }
.search.has-open .search-go { width: auto; padding: 0 20px 0 16px; }
.search.has-open .search-go span { display: inline; }
.search-go:hover { filter: brightness(1.08); }

/* ---------- карточки ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; }
.card-photo { position: relative; aspect-ratio: 20 / 19; border-radius: 16px; overflow: hidden; background: var(--photo); }
.card-img { display: block; width: 100%; height: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.025); }
.no-photo { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--soft); font-size: 13px; }
.card .tag { max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.96); color: var(--ink); font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.18); pointer-events: none; }
.card .tag-daily { background: #2B4C9B; color: #fff; }
.card-fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.card-fav svg { width: 26px; height: 26px; fill: rgba(0,0,0,.45); stroke: #fff; stroke-width: 2.2; overflow: visible; transition: transform .15s; }
.card-fav:hover svg { transform: scale(1.12); }
.card-fav[aria-pressed="true"] svg { fill: var(--heart); }
.ph-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s, transform .15s; }
.ph-nav[hidden] { display: none; }
.ph-prev { left: 10px; } .ph-next { right: 10px; }
.card:hover .ph-nav, .ph-nav:focus-visible { opacity: 1; }
.ph-nav:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
.ph-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.ph-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.6); transition: transform .2s; }
.ph-dots i.on { background: #fff; transform: scale(1.15); }
.card-body { display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: var(--ink); min-width: 0; }
.card-body:hover { color: var(--ink); }
.card-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-line { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-line .dot { width: 8px; height: 8px; }
.card-price { font-size: 15px; margin-top: 5px; color: var(--ink); }
.card-price b { font-weight: 600; }
@media (hover: none) { .ph-nav { opacity: .95; width: 28px; height: 28px; } }

/* ---------- ряды на главной ---------- */
.home { padding-top: 34px; padding-bottom: 48px; gap: 46px; }
.rail-head { margin-bottom: 16px; }
.rail-head h2 { margin: 0; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.rail-head h2 a { text-decoration: none; color: var(--ink); }
.rail-go { width: 30px; height: 30px; border-radius: 999px; background: #F2F2F2; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.rail-go:hover { background: #E4E4E4; }
.rail-nav { gap: 8px; }
.rail-nav .round { width: 32px; height: 32px; border-color: var(--line-strong); background: #fff; }
.rail-nav .round[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.rail-track { grid-auto-columns: calc((100% - 6 * 16px) / 7); gap: 16px; scroll-padding-left: 0; }
@media (max-width: 1600px) { .rail-track { grid-auto-columns: calc((100% - 5 * 16px) / 6); } }
@media (max-width: 1280px) { .rail-track { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 1100px) { .rail-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 900px) { .rail-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
.more-rails .rail-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }

/* ---------- полоса быстрых фильтров и поиск ---------- */
.cats-wrap { background: #fff; }
.cat { opacity: .75; font-weight: 500; }
.cat.on { opacity: 1; font-weight: 600; }
.sbar-row .btn-pill { border-color: var(--line-strong); }
.count { font-weight: 600; font-size: 16px; }

/* ---------- подвал ---------- */
.foot { background: var(--bg-soft); border-top: 1px solid var(--line); }
.foot .foot-in { display: block; padding-top: 44px; padding-bottom: 0; font-size: 14px; color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
.foot-cols h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.foot-cols a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.foot-cols a:hover { text-decoration: underline; color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 22px 0 30px; color: var(--ink); }
.safety { background: #fff; border-top: 1px solid var(--line); }

/* ---------- узкий компьютер: вкладки на второй строке ---------- */
@media (max-width: 1420px) {
  .top-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .top-row { min-height: 0; padding-top: 10px; }
  .brand-name { font-size: 19px; }
  .host-link { font-size: 14px; padding: 10px; }
  .tabs { justify-self: stretch; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-direction: column; gap: 3px; padding: 6px 10px 10px; font-size: 12px; }
  .tab .ill { width: 30px; height: 30px; }
  .tab.on::after, .tab:not(.on):hover::after { left: 10px; right: 10px; }
  .badge-soon { left: 26px; top: -2px; font-size: 9px; padding: 2px 5px; }
  .hero { padding: 8px 0 18px; }
  .search, .search.compact { height: auto; flex-direction: column; align-items: stretch; border-radius: 32px; padding: 0; box-shadow: 0 3px 12px rgba(0,0,0,.1); }
  .search.has-open { background: #fff; }
  .search-mob { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 32px; }
  .search-mob b { display: block; font-size: 15px; font-weight: 600; }
  .search-mob small { display: block; font-size: 12px; color: var(--muted); }
  .search:not(.open) .sf, .search:not(.open) .search-go { display: none; }
  .search.open { padding: 4px 12px 12px; border-radius: 24px; }
  .search.open .search-mob { padding: 10px 6px; }
  .sf, .sf-where { flex: none; height: auto; border-top: 1px solid var(--line); }
  .sf + .sf::before { display: none; }
  .sf-btn, .compact .sf-btn { padding: 12px 8px; border-radius: 14px; min-height: 56px; }
  .sf.open .sf-btn { box-shadow: none; background: #F7F7F7; }
  .sf-pop, .sf-where .sf-pop, .sf-last .sf-pop { position: static; width: auto; max-height: none; box-shadow: none; border-radius: 16px; padding: 6px 0 10px; animation: none; }
  .search-go, .compact .search-go, .search.has-open .search-go { width: 100%; height: 50px; margin: 10px 0 0; border-radius: 14px; padding: 0; }
  .search-go span, .search.has-open .search-go span { display: inline; }
  .home { padding-top: 22px; gap: 32px; }
  .rail-head h2 { font-size: 19px; }
  .rail-nav .round { display: none; }
  .rail-track, .more-rails .rail-track { grid-auto-columns: 46%; gap: 12px; }
  .card-title { font-size: 14px; }
  .card-line { font-size: 13px; }
  .card-price { font-size: 14px; }
  .foot-cols { grid-template-columns: 1fr; gap: 20px; }
}
[hidden] { display: none !important; }

/* =====================================================================
   V1.5 — вход, анкета «Сдать жильё», кабинет
   ===================================================================== */
body:not(.authed) .auth-in, body.authed .auth-out { display: none !important; }
body:not(.authed) .auth-in-block, body.authed .auth-out-block { display: none !important; }
[data-show-hidden] { display: none !important; }
.menu-pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; color: var(--ink); transition: box-shadow .15s; }
.menu-pill:hover { box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.avatar-sm { width: 30px; height: 30px; border-radius: 999px; color: #717171; display: inline-flex; align-items: center; justify-content: center; }
.avatar-sm.has-user { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.menu-pop button { display: block; width: 100%; text-align: left; padding: 12px 18px; font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.menu-pop button:hover { background: #F7F7F7; }
.btn-wide { width: 100%; min-height: 50px; font-size: 16px; }

/* окно входа */
.ldlg { border: 0; padding: 0; border-radius: 16px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 12px 40px rgba(0,0,0,.25); color: var(--ink); }
.ldlg::backdrop { background: rgba(0,0,0,.45); }
.lbody { padding: 24px; overflow-y: auto; }
.lstep h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.lsub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.lbtn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 18px; margin-bottom: 12px; border: 1px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.lbtn:hover { background: #F7F7F7; color: var(--ink); }
.lbtn span:last-child { flex: 1; text-align: center; margin-right: 34px; }
.lico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.lico-vk { background: #0077FF; }
.lico-ya { background: #FC3F1D; }
.lnote { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.lnote a { color: var(--ink); }
.ldiv { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--muted); font-size: 13px; }
.ldiv::before, .ldiv::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); }
.lform { display: flex; flex-direction: column; gap: 12px; }
.lfield { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.lfield input { font: inherit; font-size: 16px; font-weight: 400; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; }
.lfield input:focus, .hfield input:focus, .hfield select:focus, .hfield textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.chk-line { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.chk-line input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--ink); margin-top: 1px; }
.chk-line a { color: var(--ink); }
.chk-line.strong { padding: 16px; border-radius: 14px; background: #F7F7F7; margin-top: 18px; }
.lerr, .herr { color: #C13515; font-size: 14px; margin: 0; }
.herr { margin-top: 16px; font-weight: 500; }
.lmail { width: 64px; height: 64px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lrow { display: flex; justify-content: space-between; margin-top: 12px; }
.linkbtn[disabled] { color: var(--soft); cursor: default; text-decoration: none; }
.pv-mail { margin-top: 20px; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 16px; background: #FCFCFC; font-size: 14px; }

/* анкета «Сдать жильё» */
.page-host .foot { display: none; }
.host { min-height: 70vh; }
.host-gate { padding: 56px 16px 72px; display: flex; justify-content: center; }
.gate-card { max-width: 460px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate-card h1 { margin: 6px 0 0; font-size: 28px; }
.gate-card p { margin: 0 0 8px; color: var(--muted); }
.gate-card svg { color: var(--soft); }
.host-body { padding-top: 36px; padding-bottom: 140px; max-width: 720px; }
.hstep h1 { font-size: 30px; margin: 0 0 6px; font-weight: 600; }
.hlead { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.hsub { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.ccards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccard { position: relative; cursor: pointer; }
.ccard input { position: absolute; opacity: 0; }
.ccard-in { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 14px; min-height: 132px; transition: box-shadow .15s, border-color .15s; }
.ccard-in b { font-size: 16px; font-weight: 600; margin-top: 4px; }
.ccard-in small { font-size: 13px; color: var(--muted); }
.ccard:hover .ccard-in { border-color: var(--ink); }
.ccard input:checked + .ccard-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #F7F7F7; }
.ccard input:focus-visible + .ccard-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.hfield { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.hfield em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.hfield input, .hfield select, .hfield textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.hfield textarea { resize: vertical; min-height: 120px; }
.hfield.short input { max-width: 160px; }
.hfield.big input { font-size: 26px; font-weight: 600; padding: 16px; }
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hrow b { display: block; font-weight: 600; }
.hrow span { color: var(--muted); font-size: 13px; }
.hrow a { color: var(--ink); }
.hhint { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.drop { position: relative; display: block; border: 2px dashed var(--line-strong); border-radius: 16px; padding: 44px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--ink); background: #FAFAFA; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-in b { display: block; font-size: 18px; font-weight: 600; }
.drop-in small { color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--photo); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.cover { grid-column: span 2; grid-row: span 2; }
.thumb-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.thumb-cover { position: absolute; left: 10px; top: 10px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.atiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.atile { position: relative; cursor: pointer; }
.atile input { position: absolute; opacity: 0; }
.atile span { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; min-height: 96px; transition: border-color .15s, box-shadow .15s; }
.atile b { font-weight: 500; font-size: 15px; }
.atile:hover span { border-color: var(--ink); }
.atile input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #F7F7F7; }
.atile input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.review { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.review-card { border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.review-card .card-photo { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--soft); }
.review-card .card-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-card .card-body { display: flex; flex-direction: column; gap: 2px; }
.review-list { margin: 0; }
.review-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 500; text-align: right; }
.hdone { text-align: center; padding: 40px 0; }
.done-ico { width: 72px; height: 72px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.host-foot { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; }
.host-progress { height: 6px; background: var(--line); }
.host-progress i { display: block; height: 100%; background: var(--ink); border-radius: 0 3px 3px 0; transition: width .3s; }
.host-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; max-width: 720px; }
.host-foot-row .btn { min-width: 140px; }
.step-of { color: var(--muted); font-size: 14px; }
.host-saved { color: var(--soft); font-size: 13px; margin-left: auto; }

/* кабинет */
.me { padding-top: 32px; padding-bottom: 64px; }
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.me-head h1 { margin: 0; font-size: 28px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 28px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.me-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.me-tab { font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); padding: 12px 14px; border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.me-tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.me-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.my-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.my-item .thumb-s { width: 120px; height: 90px; border-radius: 10px; object-fit: cover; background: var(--photo); }
.my-item b { display: block; font-size: 16px; }
.my-item .sub { font-size: 14px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.status.on { background: #E3F2EA; color: var(--accent); }
.status.off { background: #F2F2F2; color: var(--muted); }
/* V17: статусы кабинета (.status.warn раньше подхватывал общий .warn с полоской сверху) */
.status.warn { background: #FFF4E5; color: #9A4A00; border-top: 0; padding: 3px 9px; }
.status.check { background: #E8F4FB; color: #1B6EA8; }
.my-reasons { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #9A4A00; }
.my-reasons li + li { margin-top: 2px; }
.my-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #E3F2EA; color: var(--accent); font-size: 14px; }
.my-note.bad { background: #FDECEC; color: #B42318; }
.favs-gone { margin: 14px 0 0; }
.my-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.my-actions .btn { min-height: 38px; font-size: 14px; padding: 8px 14px; }
.me-add { margin-top: 8px; }
.me-profile div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.me-profile dt { color: var(--muted); }
.me-profile dd { margin: 0; font-weight: 500; }
.me-danger { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.linkbtn.danger { color: #C13515; }

@media (max-width: 760px) {
  .menu-pill { padding: 0 4px 0 10px; height: 40px; gap: 6px; }
  .ldlg { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  .lbody { padding: 20px 16px; }
  .hstep h1 { font-size: 24px; }
  .host-body { padding-top: 22px; }
  .ccards, .ccards.c2 { grid-template-columns: minmax(0, 1fr); }
  .ccard-in { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
  .ccard-in svg { flex-shrink: 0; }
  .ccard-in b { margin: 0; }
  .ccard-in small { margin-left: auto; text-align: right; }
  .hgrid { grid-template-columns: minmax(0, 1fr); }
  .atiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review { grid-template-columns: minmax(0, 1fr); }
  .host-foot-row .btn { min-width: 0; }
  .host-saved { display: none; }
  .my-item { grid-template-columns: 88px 1fr; }
  .my-item .thumb-s { width: 88px; height: 70px; }
  .my-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- окно «Метро» (V9) ---------- */
.sbar-left { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sbar-row .btn-pill.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
[data-metro-lbl] { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-box { display: none; }
.mdlg { width: min(600px, calc(100vw - 32px)); height: min(760px, calc(100vh - 64px)); }
.mdlg[open] { display: flex; }
.mform { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.mtop { padding: 14px 20px 10px; border-bottom: 1px solid var(--line); }
.msearch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; height: 48px; color: var(--muted); }
.msearch:focus-within { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.msearch input { border: 0; outline: none; font: inherit; font-size: 16px; color: var(--ink); width: 100%; background: transparent; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 88px; overflow-y: auto; }
.mchip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 8px 5px 10px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.mchip:hover { background: var(--bg-soft); }
.mchip-x { font-size: 16px; line-height: 1; color: var(--muted); }
.mdots { display: inline-flex; gap: 2px; flex-shrink: 0; }
.mdots i { width: 10px; height: 10px; border-radius: 999px; display: block; }
.mbody { flex: 1 1 auto; min-height: 0; padding: 0 20px 12px; }
.mgroup-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.mline { border-bottom: 1px solid var(--line); }
.mline summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 15px; }
.mline summary::-webkit-details-marker { display: none; }
.mline summary b { font-weight: 600; flex: 1; min-width: 0; }
.mline-num { min-width: 26px; height: 26px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; flex-shrink: 0; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.mline-cnt:not(:empty) { background: var(--ink); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.mline-chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px 2px; transition: transform .15s; }
.mline[open] .mline-chev { transform: rotate(-135deg); margin-bottom: -2px; }
.mline-body { padding: 0 0 12px 38px; }
.mline-all { font-size: 14px; padding: 4px 0 8px; }
.msts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mst { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 15px; min-width: 0; }
.mst input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; margin: 0; }
.mst-name { min-width: 0; overflow-wrap: anywhere; }
.mst-dots { display: inline-flex; gap: 2px; }
.mst-dots i { width: 8px; height: 8px; border-radius: 999px; display: block; }
.mflat { padding-top: 8px; }
.mst-flat { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mst-txt { display: flex; flex-direction: column; min-width: 0; }
.mst-txt small { font-size: 13px; color: var(--muted); }
.mnone { margin: 20px 0; }
@media (max-width: 760px) {
  .mdlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .mtop { padding: 12px 16px 10px; }
  .mbody { padding: 0 16px 12px; }
  .mline-body { padding-left: 0; }
  .msts { grid-template-columns: 1fr; }
  .mst { padding: 11px 0; }
  .sbar-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; position: relative; }
  .sbar-row::-webkit-scrollbar { display: none; }
  .sbar-left, .sbar-right { flex-shrink: 0; }
  .sbar-row .btn-pill { padding: 9px 14px; }
  [data-metro-lbl] { max-width: 110px; }
}

/* V10: на телефоне в поиске убираем полосу быстрых фильтров — всё есть в «Фильтры», «Метро» и «Где» */
@media (max-width: 760px) {
  .page-search .cats-wrap { display: none; }
}

/* ---------- V11: автопроверка объявлений ---------- */
.host-email-block { display: none; }
body.authed.via-email .host-email-block { display: block; }
body.via-email .host-app { display: none !important; }
.hreject { text-align: center; padding: 48px 0 24px; }
.done-ico.warn { background: #FDECEC; color: #B42318; }
.reject-list { list-style: none; padding: 0; margin: 24px auto; max-width: 560px; text-align: left; display: grid; gap: 12px; }
.reject-list li { background: #FFF7F5; border: 1px solid #F5D0C8; border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.reject-list b { font-weight: 700; font-size: 15px; }
.reject-list span { font-size: 14px; color: var(--muted); }

/* ---------- V13: привязка Telegram ---------- */
.tg-link { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 18px; background: #F5F9FD; }
.tg-link.on { background: var(--accent-soft); border-color: #CFE3DC; }
.tg-ico { width: 40px; height: 40px; border-radius: 999px; background: #2AABEE; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tg-body { min-width: 0; flex: 1; }
.tg-body b { font-size: 16px; }
.tg-body p { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }
.tg-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tg-body .hhint { margin: 10px 0 0; }
.my-src { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #E8F4FB; color: #1B6EA8; margin-left: 6px; vertical-align: middle; }

/* ---------- V15: раздел «Услуги» (только сайт) ---------- */
.svc-hero { background: linear-gradient(180deg, #fff 0%, #F7F7F7 100%); border-bottom: 1px solid var(--line); padding: 28px 0 18px; }
.svc-hero h1 { margin: 0 0 6px; font-size: 30px; }
.svc-hero .sub { margin: 0 0 18px; max-width: 760px; }
.svc-cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.svc-cats::-webkit-scrollbar { display: none; }
.svc-cat { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 16px 10px 10px; border-radius: 16px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.svc-cat:hover { border-color: var(--ink); }
.svc-cat.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.svc-cat-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.svc-cat em { font-style: normal; font-size: 12px; color: var(--muted); background: #F2F2F2; border-radius: 999px; padding: 2px 8px; }
.svc-bar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 15; }
.svc-bar .wrap { padding-top: 12px; padding-bottom: 12px; display: grid; gap: 10px; }
.svc-subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.svc-subs::-webkit-scrollbar { display: none; }
.svc-sub, .svc-fchip { flex-shrink: 0; font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.svc-sub.on, .svc-fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc-filters { display: flex; gap: 10px; }
.svc-search { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 16px; height: 46px; color: var(--muted); min-width: 0; }
.svc-search:focus-within { border-color: var(--ink); }
.svc-search input { border: 0; outline: none; font: inherit; font-size: 15px; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.svc-city select { height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); padding: 0 14px; font: inherit; font-size: 14px; background: #fff; }
.svc-fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.svc-fchips::-webkit-scrollbar { display: none; }
.svc-results { padding-top: 18px; padding-bottom: 40px; }
.svc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.svc-head .count { margin: 0; }
.svc-photo { aspect-ratio: 4 / 3; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #57534E; }
.svc-tag { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-feats { display: flex; flex-wrap: wrap; gap: 4px; }
.svc-feat { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.svc-feats.big .svc-feat { font-size: 14px; padding: 5px 12px; }
.svc-note { margin-top: 28px; }
.svc-detail { padding-top: 18px; padding-bottom: 40px; }
.svc-detail h1 { margin: 10px 0 4px; font-size: 28px; }
.svc-gallery { display: grid; gap: 8px; border-radius: 16px; overflow: hidden; margin: 18px 0; height: 360px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.svc-gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.svc-gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.svc-gallery.none { display: flex; align-items: center; justify-content: center; height: 220px; color: #57534E; }
.svc-g { display: block; background: var(--photo); }
.svc-g.main { grid-row: span 2; }
.svc-gallery.n1 .svc-g.main, .svc-gallery.n2 .svc-g.main { grid-row: auto; }
.svc-g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.svc-main, .svc-side { min-width: 0; }
.svc-main h2 { font-size: 20px; margin: 22px 0 8px; }
.svc-kv { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.svc-kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.svc-kv dt { color: var(--muted); }
.svc-kv dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.svc-side .offer { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.svc-price small { display: block; color: var(--muted); font-size: 13px; }
.svc-price b { font-size: 22px; }
.svc-report { display: grid; gap: 10px; margin-top: 10px; }
.svc-report textarea { font: inherit; padding: 10px; border-radius: 12px; border: 1px solid var(--line-strong); }
.ok-note { background: var(--accent-soft); padding: 12px 14px; border-radius: 12px; }
.svc-new { padding-top: 24px; padding-bottom: 40px; }
.svc-form { display: grid; gap: 6px; }
.svc-sec { border-top: 1px solid var(--line); padding: 18px 0 8px; }
.svc-sec h3 { margin: 0 0 10px; font-size: 18px; }
.svc-sec h3 em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); }
.svc-form .chks { margin-top: 6px; }
@media (max-width: 900px) {
  .svc-cols { grid-template-columns: 1fr; gap: 20px; }
  .svc-side .offer { position: static; }
}
@media (max-width: 760px) {
  .svc-hero { padding: 18px 0 12px; }
  .svc-hero h1 { font-size: 24px; }
  .svc-filters { flex-direction: column; }
  .svc-city select { width: 100%; }
  .svc-gallery { height: 240px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .svc-gallery .svc-g:not(.main) { display: none; }
  .svc-detail h1 { font-size: 23px; }
  .svc-kv { grid-template-columns: 1fr; column-gap: 0; }
}

/* V16: блок услуг на главной */
.home-svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 36px 0 -6px; padding-top: 24px; border-top: 1px solid var(--line); }
.home-svc-title { margin: 0; font-size: 24px; }
.rail-svc .svc-photo { aspect-ratio: 1 / 0.95; }
.home-svc-head .linkbtn { white-space: nowrap; }
@media (max-width: 760px) { .home-svc-title { font-size: 20px; } .home-svc-head { margin-top: 24px; padding-top: 18px; } }

/* ================= V19: значки, поиск «Услуг», анимация ================= */
/* значки — маленькие, одного цвета (цвета сайта прежние) */
.ill { color: currentColor; flex-shrink: 0; }
.tab .ill { color: var(--soft); transition: color .2s, transform .25s cubic-bezier(.2,.8,.3,1.4); }
.tab:hover .ill { color: var(--ink); transform: translateY(-1px); }
.tab.on .ill { color: var(--accent); }
.opt-ico .ill, .ccard-in .ill { color: var(--accent); }
.gate-card .ill { color: var(--accent); }

/* поиск «Услуг» в шапке: что ищете · категория · где */
.svc-sbar { height: 66px; }
.svc-sbar .sf { display: flex; }
.svc-sbar .sf-btn { cursor: text; }
.svc-sbar select.sf-in { cursor: pointer; -webkit-appearance: none; appearance: none; color: var(--ink); }
.svc-sbar input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.svc-sbar .sf-where { flex: 1.6 1 0; }

/* вкладки: полоска под активной «вырастает» */
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--ink);
  transform: scaleX(0); transition: transform .25s cubic-bezier(.2,.8,.3,1), background .2s; }
.tab.on::after { transform: scaleX(1); }
.tab:not(.on):hover::after { transform: scaleX(.6); background: var(--line-strong); }

/* кнопки: мягкий подъём при наведении, «нажатие» при клике */
.btn, .search-go, .round-btn, .menu-pill, .btn-pill, .svc-cat, .svc-sub, .svc-fchip, .bchip, .chip, .me-tab, .card-fav, .icon-btn, .opt, .ph-nav {
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .2s, background-color .2s, border-color .2s, color .2s, opacity .2s; }
.btn-accent:hover, .btn-dark:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 90, 73, .22); }
.btn-dark:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.btn-line:hover, .btn-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.search-go:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(14, 90, 73, .3); }
.search-go svg { transition: transform .25s cubic-bezier(.2,.8,.3,1.4); }
.search-go:hover svg { transform: rotate(-12deg) scale(1.08); }
.menu-pill:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.btn:active, .search-go:active, .round-btn:active, .menu-pill:active, .btn-pill:active, .svc-cat:active, .svc-sub:active,
.svc-fchip:active, .bchip:active, .chip:active, .me-tab:active, .icon-btn:active, .opt:active { transform: scale(.96); box-shadow: none; }
.linkbtn { transition: color .2s, opacity .2s; }
.linkbtn:hover { opacity: .75; }

/* сердечко: «прыжок», когда добавили в избранное */
@keyframes mkgs-heart { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
[data-fav].pop { animation: mkgs-heart .42s cubic-bezier(.2,.8,.3,1.3); }

/* карточки: плавно поднимаются при наведении */
.card { transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.card:hover { transform: translateY(-3px); }
.card-photo img { transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.card:hover .card-photo img { transform: scale(1.05); }
.my-item, .svc-card, .ccard-in { transition: box-shadow .2s, transform .2s, border-color .2s; }
.my-item:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .07); }

/* появление при прокрутке (включает site.js; без скрипта всё видно сразу) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2,.8,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* меню, окна, подсказки — открываются плавно */
@keyframes mkgs-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mkgs-dlg { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mkgs-fade { from { opacity: 0; } to { opacity: 1; } }
.menu-pop:not([hidden]) { animation: mkgs-pop .18s ease-out; transform-origin: top right; }
dialog[open] { animation: mkgs-dlg .24s cubic-bezier(.2,.8,.3,1); }
dialog[open]::backdrop { animation: mkgs-fade .24s ease-out; }
.my-note:not([hidden]), .tg-link, .empty:not([hidden]) { animation: mkgs-fade .3s ease-out; }
.hero .search { animation: mkgs-fade .4s ease-out; }  /* только прозрачность и без «both» — иначе выпадающие списки уходят под карточки */

@media (max-width: 760px) {
  .tab .ill { width: 22px; height: 22px; }
  .tab::after, .tab.on::after, .tab:not(.on):hover::after { left: 10px; right: 10px; }
  /* у «Услуг» нет свёрнутой строки — поля видны сразу */
  .svc-sbar { height: auto; padding: 6px 12px 12px; border-radius: 24px; }
  .svc-sbar.search:not(.open) .sf, .svc-sbar.search:not(.open) .search-go { display: flex; }
  .svc-sbar .sf:first-child { border-top: 0; }
  .card:hover { transform: none; }
}

/* кто просил «меньше движения» в настройках телефона — без анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ===== NomadDom: логотип — «N» в зелёном квадрате, в названии «Nomad» тёмным, «Dom» зелёным ===== */
.brand-mark { font-size: 20px; letter-spacing: 0; }
.brand-name { color: var(--ink); }
.brand-dom { color: var(--accent); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark { transition: transform .25s cubic-bezier(.2,.8,.3,1.4); }
