/* Оформление — по странице города md.ashoo.lease (2026-11-05, «визуал и функционал под ноль, в том числе на
   мобилке»): размеры, отступы и шрифт Golos Text сняты с их страницы (вычисленные стили), код свой.
   Палитра своя (2026-11-05: «цветовую схему сайта нужно сделать другой»): тёмно-синяя рамка, янтарь, бирюза —
   не как у ashoo, Балашихи и Химок. Текст на янтаре — тёмный (--on-primary), янтарь текстом на листе — --primary-text.
   Компьютер — от 1024px, телефон — меньше. Две темы: дневная и ночная (как у ashoo); по умолчанию — как
   в системе, выбор посетителя — html[data-theme] из localStorage (не cookie). */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-cyrillic.2b8fbbb33a14.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-latin.bb256b7dfa29.woff2") format("woff2");
  /* Урезан до знаков сайта (аудит 2026-11-05: 38 → 25 КБ): ASCII, кавычки, тире, ©, °, ×, ·, …, ™, минус. */
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+2010-2027, U+202F, U+2030-203A, U+2122, U+2212;
}

/* Дневная тема */
:root {
  color-scheme: light;
  --primary: #ffb21e;
  --on-primary: #1b1304;
  --primary-text: #a65600;  /* 5,3:1 на белом, 4,8:1 на --gray */
  --accent: #0b7d7e;
  --on-accent: #fff;
  --frame: #0f1a2b;
  --frame-2: #1d2a40;
  --frame-chip: #2d3f5d;
  --sheet: #fff;
  --ink: #0d1420;
  --ink-2: #1f2937;
  --muted: #636d7f;  /* 5,2:1 на белом, 4,7:1 на --gray */
  --muted-2: #5b6577;
  --gray: #f2f4f7;
  --line: #e2e6ec;
  --tag: #e2f3f2;
  --tag-ink: #0c4f54;
  --tag-main: #17283f;
  --premium: #fff5df;
  --day-tile: #fff3d6;
  --night-tile: #17283f;
  --info: #e2f3f2;
  --warn: #fff5df;
  --foot: #0f1a2b;
  --tabbar: #0f1a2b;
  --pop: 0 4px 24px rgb(15 26 43 / 14%);
}
/* Ночная тема: по системе, если посетитель не выбрал дневную, или по выбору */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #ffbe3d;
    --on-primary: #1b1304;
    --primary-text: #ffbe3d;
    --accent: #33bdb9;
    --on-accent: #04201f;
    --frame: #0a111d;
    --frame-2: #16213a;
    --frame-chip: #26375a;
    --sheet: #0d1522;
    --ink: #eef2f7;
    --ink-2: #d6dde8;
    --muted: #8894a7;
    --muted-2: #a7b1c2;
    --gray: #172131;
    --line: #263247;
    --tag: #12292f;
    --tag-ink: #7fd0d2;
    --tag-main: #2a3f5e;
    --premium: #2a2110;
    --day-tile: #2a2110;
    --night-tile: #1e2d47;
    --info: #12292f;
    --warn: #2a2110;
    --foot: #0a111d;
    --tabbar: #0a111d;
    --pop: 0 4px 24px rgb(0 0 0 / 60%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #ffbe3d;
  --on-primary: #1b1304;
  --primary-text: #ffbe3d;
  --accent: #33bdb9;
  --on-accent: #04201f;
  --frame: #0a111d;
  --frame-2: #16213a;
  --frame-chip: #26375a;
  --sheet: #0d1522;
  --ink: #eef2f7;
  --ink-2: #d6dde8;
  --muted: #8894a7;
  --muted-2: #a7b1c2;
  --gray: #172131;
  --line: #263247;
  --tag: #12292f;
  --tag-ink: #7fd0d2;
  --tag-main: #2a3f5e;
  --premium: #2a2110;
  --day-tile: #2a2110;
  --night-tile: #1e2d47;
  --info: #12292f;
  --warn: #2a2110;
  --foot: #0a111d;
  --tabbar: #0a111d;
  --pop: 0 4px 24px rgb(0 0 0 / 60%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--frame); color: var(--ink);
  font: 16px/20px "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }
.sprite { display: none; }
.ico { width: 16px; height: 16px; flex: none; }
.main { width: 100%; max-width: 1024px; margin-left: auto; margin-right: auto; padding-left: 8px; padding-right: 8px; }
@media (max-width: 1023px) { .main { padding-left: 16px; padding-right: 16px; } body { padding-bottom: 50px; } }

/* Полоса над шапкой */
.strip { background: linear-gradient(90deg, #ffb21e, #ff9a3c 45%, #22b8b0); color: #101521; font-size: 12px; line-height: 16px; font-weight: 700; }
.strip-row { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.strip-side { flex: 1; display: flex; align-items: center; gap: 12px; }
.strip-side > span { display: inline-flex; align-items: center; gap: 4px; }
.strip-right { justify-content: flex-end; }
.strip-mid { text-transform: uppercase; white-space: nowrap; }
.strip-theme { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.strip-theme .ico { width: 20px; height: 20px; }
.strip-theme .i-sun { display: none; }
:root[data-theme="dark"] .strip-theme .i-sun { display: block; }
:root[data-theme="dark"] .strip-theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .strip-theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .strip-theme .i-moon { display: none; }
}
@media (max-width: 1023px) { .strip-side { display: none; } .strip-row { justify-content: center; } }

/* Шапка */
.hdr { position: relative; background: var(--frame); color: #fff; }
.hdr-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-weight: 800; font-size: 40px; line-height: 44px; letter-spacing: -0.045em; color: #fff; white-space: nowrap; }
.hdr-search { display: flex; align-items: center; gap: 8px; width: 243px; height: 44px; padding: 0 12px; border-radius: 8px; background: var(--frame-2); color: #a8a8a8; }
.hdr-search .ico { width: 20px; height: 20px; }
.hdr-search input, .msearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 16px; }
.hdr-search input::placeholder, .msearch input::placeholder { color: #a8a8a8; }
.btn-map { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 4px 16px; border: 2px solid var(--primary); border-radius: 8px; color: var(--primary); white-space: nowrap; }
.btn-map .ico, .btn-add .ico { width: 24px; height: 24px; }
.hdr-gap { flex: 1; }
.btn-login { display: inline-flex; align-items: center; height: 44px; padding: 4px 16px; margin-right: -8px; border-radius: 8px; background: var(--frame-2); color: #fff; }
.btn-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 4px 16px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-weight: 500; white-space: nowrap; }
.burger, .hdr-icon, .hdr-city, .msearch { display: none; }
@media (max-width: 1023px) {
  .hdr-row { height: 44px; gap: 0; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; padding: 0; border: 0; background: none; color: #fff; }
  .burger .ico, .hdr-icon .ico { width: 24px; height: 24px; }
  .logo { font-size: 27px; line-height: 30px; }
  .hdr-row > .hdr-search, .hdr-row > .btn-map, .hdr-row > .btn-login, .hdr-row > .btn-add, .hdr-row > .hdr-gap { display: none; }
  .hdr-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 0; background: none; color: #fff; }
  .hdr-city { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font-size: 12px; line-height: 16px; }
  .hdr-city .ico { width: 24px; height: 24px; }
  .hdr.is-search .msearch {
    position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 16px;
    background: var(--frame); color: #a8a8a8;
  }
  .msearch .ico { width: 20px; height: 20px; }
  .msearch-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #fff; }
}

/* Вкладки разделов: прилипают к верху */
.cats { position: sticky; top: 0; z-index: 1000; background: var(--frame); }
.cats-row { display: flex; align-items: center; gap: 8px; height: 64px; overflow-x: auto; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cat-filter { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 40px; padding: 8px 12px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-size: 14px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.cat { display: inline-flex; flex: none; align-items: center; height: 40px; padding: 10px 8px; border: 1px solid #fff; border-radius: 8px; color: #fff; font-size: 14px; line-height: 16px; white-space: nowrap; }
.cat:hover { background: var(--frame-2); }
.cat[aria-current] { background: var(--frame-chip); }
@media (max-width: 1023px) { .cats { padding: 8px 0; } .cats-row { height: 44px; gap: 4px; } .cat { padding: 8px; } }

/* Лист */
.sheet { background: var(--sheet); border-radius: 16px 16px 0 0; padding-bottom: 16px; min-height: 60vh; }
.crumbs { display: flex; align-items: center; gap: 8px; height: 32px; overflow-x: auto; scrollbar-width: none; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.crumbs::-webkit-scrollbar { display: none; }
.sheet > .main:first-child:not(.crumbs) { padding-top: 16px; }
.crumbs i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); flex: none; }
.crumbs a:hover { color: var(--ink); }
h1 { margin: 0 0 4px; font-size: 24px; line-height: 32px; font-weight: 700; }
h2 { margin: 24px 0 12px; font-size: 20px; line-height: 24px; font-weight: 700; }
.found { font-size: 16px; line-height: 20px; }
.empty { color: var(--muted); margin-top: 16px; }
.empty a { color: var(--accent); }
.page-body { padding-bottom: 8px; }
.intro { max-width: 760px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }

/* Строка подбора */
.fbar { margin-top: 16px; margin-bottom: 16px; }
.fbar-row { display: flex; align-items: center; gap: 5px; }
.fbtn-open { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 4px; height: 40px; padding: 8px; border: 1px solid var(--primary-text); border-radius: 8px; color: var(--primary-text); font-size: 14px; font-weight: 500; }
.fbtn-open .ico { width: 24px; height: 24px; }
.fbtn-open em { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-style: normal; line-height: 1; }
.dd { position: relative; flex: none; }
.ddbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 41px; padding: 4px 16px; border-radius: 8px; background: var(--gray); font-size: 16px; line-height: 20px; white-space: nowrap; cursor: pointer; list-style: none; user-select: none; -webkit-user-select: none; }
.ddbtn::-webkit-details-marker { display: none; }
.ddlbl { display: flex; align-items: center; gap: 4px; }
.ddlbl .ico, .ddbtn .chev { width: 18px; height: 18px; }
.ddbtn .chev { color: var(--muted); transition: transform .15s; }
.dd[open] .chev { transform: rotate(180deg); }
.ddbtn.is-set { color: var(--primary-text); }
.ddp { position: absolute; top: calc(100% + 8px); left: 0; z-index: 1100; min-width: 274px; padding: 16px; border-radius: 12px; background: var(--sheet); color: var(--ink); box-shadow: var(--pop); }
.ddp-head { display: none; }
.ddp-price { width: 534px; }
.ddp-look { width: 550px; }
.ddp-list { width: 320px; }
.ddp-body h3, .ff-body h3 { margin: 8px 0 4px; font-size: 16px; line-height: 20px; font-weight: 700; }
.rcols, .rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.rcols h3 { margin-top: 0; }
.rlabel { margin: 8px 0; font-size: 14px; line-height: 16px; }
.rng { display: grid; grid-template-columns: 1fr 12px 1fr; align-items: center; gap: 8px; }
.rng label { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; border-radius: 8px; background: var(--gray); }
.rng span { color: var(--muted); font-size: 14px; }
.rng input, .lsearch input, .ff-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; }
.rng input::placeholder { color: var(--muted-2); }
.rng > i { width: 12px; height: 1.5px; background: var(--ink); }
.ddp-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ddp-scroll { max-height: 420px; overflow: auto; margin: 0 -16px; padding: 0 16px; }
.lsearch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 8px; border-radius: 8px; background: var(--gray); color: var(--muted); }
.lsearch .ico { width: 20px; height: 20px; }
.radios { margin: 0; padding: 0; list-style: none; }
.radios a { display: flex; align-items: center; gap: 12px; height: 44px; font-size: 16px; white-space: nowrap; }
.radios i { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--muted-2); border-radius: 50%; }
.radios a[aria-current] i { border: 6px solid var(--primary); }
.check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line); border-radius: 4px; }
.check input:checked + i { background: var(--primary); border-color: var(--primary); }
.check input:checked + i::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--on-primary); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-gray, .btn-primary, .btn-outline {
  display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border: 0; border-radius: 8px;
  font: inherit; font-size: 16px; white-space: nowrap; cursor: pointer;
}
.btn-gray { background: var(--gray); color: var(--ink); }
.btn-primary { background: var(--primary); color: var(--on-primary); font-weight: 500; }
.btn-outline { border: 1px solid var(--primary-text); background: none; color: var(--primary-text); }
.btn-block { width: 100%; }
@media (max-width: 1023px) {
  .fbar { padding: 0; }
  .fbar-row { overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
  .fbar-row::-webkit-scrollbar { display: none; }
  .fbtn-open { width: 40px; }
  .fbtn-open .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dd { position: static; }
  /* На телефоне панель — снизу, с затемнением; нажатие на затемнение закрывает её (это <summary>). */
  .dd[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 3000; background: rgb(0 0 0 / 50%); cursor: default; }
  .ddp {
    position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 3001; width: auto !important; min-width: 0;
    max-height: calc(100% - 40px); overflow: auto; border-radius: 16px 16px 0 0; box-shadow: none;
  }
  .ddp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .ddp-head b { font-size: 20px; line-height: 24px; }
  .rcols, .rgrid { grid-template-columns: 1fr; }
  .rcols > div + div { margin-top: 16px; }
  .ddp-scroll { max-height: none; }
  .ddp-foot { position: sticky; bottom: -16px; margin: 16px -16px -16px; padding: 8px 16px 16px; background: var(--sheet); }
}

/* Сетка карточек: на компьютере две колонки по 490px, на телефоне — во всю ширину */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 490px)); justify-content: center; gap: 12px; max-width: 1024px; margin: 0 auto; padding: 0 16px; }
@media (max-width: 1023px) { .pgrid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; } }

/* Карточка */
.pcard { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0 8px; min-width: 0; padding: 8px; border-radius: 16px; }
/* Карточки ниже первых экранов не считаются и не рисуются, пока до них не докрутили: на странице 48 анкет
   (~4000 элементов), без этого раскладка первого экрана — около секунды на телефоне (Lighthouse 2026-11-05). */
.pgrid > .pcard:nth-child(n+7) { content-visibility: auto; contain-intrinsic-size: auto 278px; }
.pcard.is-premium { background: var(--premium); }
@media (max-width: 1023px) { .pcard { border-radius: 0; } }
.pmedia { position: relative; height: 262px; overflow: hidden; border-radius: 8px; background: var(--gray); }
.pmedia-link { display: block; height: 100%; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
/* Мышью ленту тянут, как пальцем (static/js/site.js): на время перетаскивания прилипание кадров выключено. */
.slides { -webkit-user-select: none; user-select: none; }
.slides img, .pmedia-link { -webkit-user-drag: none; }
.slides.is-drag { scroll-snap-type: none; cursor: grabbing; }
.slides.is-drag a, .slides.is-drag img { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .gal-slides, .lb-slides { cursor: grab; } }
.slide { position: relative; flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-more img { filter: blur(12px); transform: scale(1.15); }
.slide video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide-more::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 25%); }
.more-label { position: absolute; top: 50%; left: 50%; z-index: 1; width: 136px; padding: 4px 8px; border-radius: 8px; background: rgb(0 0 0 / 50%); color: #fff; font-size: 14px; line-height: 16px; text-align: center; transform: translate(-50%, -50%); }
.dots { position: absolute; right: 0; bottom: 0; left: 0; display: flex; gap: 1px; height: 2px; pointer-events: none; }
.dots i { flex: 1; background: rgb(255 255 255 / 55%); }
.dots i.on { background: var(--primary); }
.fav { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 50%); color: #fff; cursor: pointer; }
.fav .ico { width: 20px; height: 20px; }
.fav .on { display: none; color: var(--primary); }
.fav[aria-pressed="true"] .on { display: block; }
.fav[aria-pressed="true"] .off { display: none; }
.pbadges { position: absolute; right: 8px; bottom: 8px; z-index: 1; display: flex; gap: 4px; pointer-events: none; }
.pbadges span { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 4px; border-radius: 4px; background: rgb(36 36 36 / 75%); color: #fff; font-size: 12px; line-height: 16px; }
.pbadges .ico { width: 14px; height: 14px; }
.no-photo { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }

.pinfo { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 262px; }
.ptitle { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pname { overflow: hidden; font-size: 16px; line-height: 24px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.pname a { display: block; overflow: hidden; text-overflow: ellipsis; }
.paddr { overflow: hidden; color: var(--accent); font-size: 14px; line-height: 24px; white-space: nowrap; text-overflow: ellipsis; }
.paddr a { display: inline-block; vertical-align: top; }
.paddr a + a::before { content: ", "; }
.paddr a:hover { text-decoration: underline; }
.pprops { display: flex; align-items: center; gap: 4px; overflow: hidden; font-size: 14px; line-height: 16px; white-space: nowrap; }
.pprops i { width: 3px; height: 3px; flex: none; border-radius: 50%; background: var(--line); }
.pprices { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pprices > div { display: flex; align-items: center; gap: 4px; min-width: 0; height: 20px; }
.pprices .ico { width: 16px; height: 16px; color: var(--primary-text); }
.pprices b { color: var(--primary-text); font-size: 14px; line-height: 16px; font-weight: 700; }
.pprices span { color: var(--muted); font-size: 14px; line-height: 16px; }
.pprices .pnote { padding: 2px; color: var(--primary-text); font-size: 12px; line-height: 16px; }
.ptags { display: flex; flex-wrap: wrap; gap: 2px; max-height: 64px; overflow: hidden; }
.ptag { display: block; padding: 2px 4px; border-radius: 4px; background: var(--tag); color: var(--tag-ink); font-size: 12px; line-height: 16px; white-space: nowrap; }
.ptag.is-main { background: var(--tag-main); color: #fff; }
a.ptag:hover { filter: brightness(.94); }
.pcontacts { display: flex; flex: none; align-items: center; justify-content: center; height: 40px; margin-top: auto; padding: 12px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 14px; line-height: 16px; white-space: nowrap; }
.pcontacts:hover { filter: brightness(1.08); }
.pgrid-similar { margin-top: 8px; margin-bottom: 16px; }

/* «Показать еще» и номера страниц */
.pager-wrap { margin: 16px 0; }
.more { display: flex; justify-content: center; }
.more a { display: inline-flex; align-items: center; height: 41px; padding: 4px 16px; border: 1px solid var(--primary-text); border-radius: 8px; color: var(--primary-text); }
.more a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 32px; height: 32px; margin: 0 4px; padding: 0 4px; border-radius: 8px; background: var(--gray); color: var(--ink-2); }
.pager a:hover { background: var(--line); }
.pager span[aria-current] { background: var(--primary); color: var(--on-primary); }
.pager .gap { font-size: 10px; letter-spacing: 1px; }

/* Блок «Проститутки Королёва это:» и облако */
/* Текст посадочной под анкетами (catalog/texts.py). */
.seo-text { margin-top: 32px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.seo-text h2 { margin: 20px 0 8px; color: var(--ink); font-size: 20px; line-height: 26px; font-weight: 700; }
.seo-text p { max-width: 820px; margin: 0 0 10px; }
.seo-text a { color: var(--accent); }
.seo-text a:hover { text-decoration: underline; }
.about-site { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 16px; }
.about-site b { display: block; margin-bottom: 8px; font-size: 16px; line-height: 20px; }
.about-site ul { margin: 0; padding-left: 16px; }
.cloud { margin-top: 16px; }
.cloud ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cloud a { display: block; padding: 2px 4px; border-radius: 4px; background: var(--tag-main); color: #fff; font-size: 12px; line-height: 16px; }
.cloud a::before { content: "#"; }
.cloud a:hover { background: var(--accent); color: var(--on-accent); }

/* Подвал */
.foot { padding: 64px 0; background: var(--foot); color: #fff; }
.foot-grid { display: grid; grid-template-columns: 355px 466px minmax(0, 1fr); }
.foot .logo { font-size: 30px; line-height: 32px; }
/* 18+ — справа от текста, а не отдельной строкой под ним (пользователь 2026-11-05). */
.foot-brand { display: grid; grid-template-columns: 210px 44px; gap: 16px 24px; align-items: center; align-content: start; }
.foot-brand .logo { grid-column: 1 / -1; justify-self: start; }
.foot-brand p { margin: 0; color: #a8a8a8; font-size: 14px; line-height: 16px; }
.age-badge { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; font-size: 14px; font-weight: 700; }
.foot-links h2 { margin: 0 0 20px; font-size: 14px; line-height: 16px; font-weight: 700; }
.foot-links ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 16px 64px; margin: 0; padding: 0; list-style: none; }
.foot-cab ul { grid-template-columns: max-content; }
.foot-links a:hover { text-decoration: underline; }
@media (max-width: 1023px) {
  .foot { padding: 32px 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-brand { grid-template-columns: minmax(0, 1fr) 44px; }
  .foot-links ul { display: flex; flex-wrap: wrap; gap: 16px; }
}

/* Нижняя панель на телефоне */
.tabbar { display: none; }
@media (max-width: 1023px) {
  .tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 2000; display: flex; height: 50px; padding: 0 16px env(safe-area-inset-bottom); background: var(--tabbar); }
  .tabbar a { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; margin: 8px 0; color: #fff; font-size: 10px; line-height: 12px; white-space: nowrap; }
  .tabbar .ico { width: 20px; height: 20px; }
  .tabbar a[aria-current] { color: var(--primary); }
}

/* Кнопка «Наверх» */
.to-top { position: fixed; right: 8px; bottom: 16px; z-index: 1500; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); opacity: 0; pointer-events: none; transition: opacity .2s; cursor: pointer; }
.to-top .ico { width: 24px; height: 24px; }
.to-top.is-on { opacity: 1; pointer-events: auto; }
@media (max-width: 1023px) { .to-top { bottom: 62px; } }

/* Меню (бургер) */
.menu-drawer { position: fixed; inset: 0; z-index: 3000; background: rgb(0 0 0 / 50%); }
.menu-drawer[hidden] { display: none; }
.menu-panel { width: 300px; max-width: 85vw; height: 100%; overflow: auto; padding: 16px; background: var(--sheet); color: var(--ink); }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.menu-panel .logo { color: var(--ink); font-size: 30px; line-height: 32px; }
.menu-panel .btn-add, .menu-panel .btn-gray { margin-bottom: 8px; }
.menu-rows { margin: 16px 0 8px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 8px 0; border: 0; background: none; color: var(--ink); font-size: 16px; text-align: left; cursor: pointer; }
.menu-row small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 14px; line-height: 16px; }
.menu-row .ico { width: 20px; height: 20px; color: var(--muted); }
.menu-links { margin: 0 -16px; padding: 8px 16px; border-top: 1px solid var(--line); }
.menu-links h2 { margin: 12px 0; font-size: 16px; }
.menu-links ul { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.menu-links a { text-decoration: underline; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.icon-btn .ico { width: 24px; height: 24px; }

/* Окна: контакты и «Фильтр» */
dialog { color: var(--ink); }
.dlg { width: 500px; max-width: calc(100% - 32px); padding: 24px; border: 0; border-radius: 16px; background: var(--sheet); }
.dlg::backdrop, .drawer::backdrop { background: rgb(0 0 0 / 60%); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dlg-head b { font-size: 20px; line-height: 24px; }
.contacts-body { display: grid; gap: 8px; }
.cbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 8px; background: var(--info); color: var(--accent); }
.cbtn .ico { width: 24px; height: 24px; }
.cbtn .box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: var(--accent); color: var(--on-accent); }
.cbtn .box .ico { width: 16px; height: 16px; }
.contacts-note { margin: 0; color: var(--muted); }
@media (max-width: 1023px) {
  .contacts-dlg { width: 100%; max-width: 100%; margin: auto 0 0; padding: 16px; border-radius: 16px 16px 0 0; }
}
.drawer { width: 375px; max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--sheet); }
@media (max-width: 1023px) { .drawer { width: 100%; } }
.ff { display: flex; flex-direction: column; height: 100%; }
.ff-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.ff-head b { font-size: 24px; line-height: 32px; }
.ff-body { flex: 1; overflow: auto; padding: 8px 16px 16px; }
.ff-search { display: flex; align-items: center; gap: 12px; height: 56px; margin-bottom: 16px; padding: 0 12px; border-radius: 8px; background: var(--gray); color: var(--muted-2); }
.ff-search .ico { width: 24px; height: 24px; }
.ff-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.chipbox { position: relative; display: block; cursor: pointer; }
.chipbox input { position: absolute; opacity: 0; }
.chipbox span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 20px; background: var(--info); color: var(--accent); }
.chipbox input:checked + span { background: var(--accent); color: var(--on-accent); }
.chipbox input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chipbox.wide { grid-column: 1 / -1; }
.ff-sec { margin: 8px 0; }
.ff-sec > summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 20px; line-height: 24px; font-weight: 700; cursor: pointer; list-style: none; }
.ff-sec > summary::-webkit-details-marker, .fsel-list > summary::-webkit-details-marker { display: none; }
.ff-sec > summary .chev { width: 24px; height: 24px; color: var(--muted); transition: transform .15s; }
.ff-sec[open] > summary .chev { transform: rotate(180deg); }
.ff-sec .rng { margin-bottom: 4px; }
.fsel { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 56px; margin-bottom: 16px; padding: 8px 40px 8px 16px; border-radius: 8px; background: var(--gray); cursor: pointer; list-style: none; }
.fsel small { color: var(--muted); font-size: 14px; line-height: 16px; }
.fsel select { width: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; }
.fsel select option { background: var(--sheet); color: var(--ink); }
.fsel .chev { position: absolute; top: 50%; right: 16px; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.fsel-list[open] > .fsel .chev { transform: rotate(180deg); }
.fsel-body { margin: -8px 0 16px; padding: 0 8px; }
.ff-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; }
.search-page .ff { max-width: 420px; height: auto; }
.search-page .ff-head .icon-btn { display: none; }
.search-page .ff-head, .search-page .ff-body, .search-page .ff-foot { padding-left: 0; padding-right: 0; }

/* Интим-карта, как у ashoo: метки-фото, круги с числом, выбор категории, «где я» */
.imap { position: relative; margin-top: 16px; }
.map { height: 595px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--gray); }
@media (max-width: 1023px) { .imap { margin: 16px -16px 0; } .map { height: calc(100vh - 230px); min-height: 420px; border: 0; border-radius: 0; } }
.imap-cat { position: absolute; top: 12px; left: 12px; z-index: 500; display: flex; align-items: center; gap: 12px; height: 44px; padding-right: 12px; border-radius: 8px; background: var(--sheet); box-shadow: var(--pop); cursor: pointer; }
.imap-cat-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 2px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }
.imap-cat-ico .ico { width: 20px; height: 20px; }
.imap-cat select { padding: 0 28px 0 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.imap-cat select option { background: var(--sheet); color: var(--ink); }
.imap-cat .chev { width: 18px; height: 18px; margin-left: -36px; color: var(--muted); pointer-events: none; }
.imap-locate { position: absolute; right: 10px; bottom: 92px; z-index: 500; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid rgb(0 0 0 / 20%); border-radius: 4px; background: #fff; color: #333; cursor: pointer; }
.imap-locate .ico { width: 18px; height: 18px; }
.imap-marker { border: 0; background: none; }
.imap-pin { display: block; width: 44px; height: 44px; overflow: hidden; border: 3px solid var(--primary); border-radius: 50%; background: #e9edf2; box-shadow: 0 2px 6px rgb(0 0 0 / 30%); }
.imap-pin img { display: block; width: 100%; height: 100%; object-fit: cover; }
.imap-name { position: absolute; top: 46px; left: 50%; color: #0d1420; font-size: 12px; font-weight: 600; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; transform: translateX(-50%); }
.imap-cluster { background: none; }
.imap-cluster span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 700; box-shadow: 0 0 0 6px rgb(255 178 30 / 35%); }
.imap-pop { display: grid; grid-template-columns: 64px 1fr; gap: 2px 10px; color: #0d1420; font: 14px/18px "Golos Text", system-ui, sans-serif; text-decoration: none; }
.leaflet-popup-content a.imap-pop { color: #0d1420; }
.imap-pop img { grid-row: span 4; width: 64px; height: 86px; border-radius: 8px; object-fit: cover; }
.imap-pop b { font-size: 15px; }
.imap-pop span { color: #5b6577; font-size: 13px; }
.imap-pop em { color: #b25f00; font-style: normal; font-weight: 700; }
.imap-pop i { color: #0b7d7e; font-style: normal; font-weight: 600; }
.imap-fail { position: absolute; top: 50%; left: 50%; z-index: 1000; width: min(90%, 420px); margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--sheet); color: var(--ink); box-shadow: 0 2px 12px rgb(0 0 0 / 25%); font-size: 14px; line-height: 20px; text-align: center; transform: translate(-50%, -50%); }
.imap-note { margin: 12px 0; color: var(--muted); font-size: 14px; line-height: 18px; }
.map-list { columns: 3 200px; margin: 16px 0; padding: 0; list-style: none; }
.map-list li { margin-bottom: 8px; }
.map-list a { color: var(--accent); }
.map-list span { color: var(--muted); }

/* Страница анкеты — раскладка ashoo: слева заголовок, галерея и блоки, справа контакты и тарифы */
.prof { display: grid; grid-template-columns: minmax(0, 600px) 388px; grid-template-areas: "bar bar" "head side" "gal side" "boxes side"; justify-content: space-between; align-items: start; gap: 0 20px; padding-top: 4px; }
.swipe-bar { grid-area: bar; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.swipe-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gray); color: var(--ink); }
.swipe-btn .ico { width: 20px; height: 20px; }
.swipe-btn:hover { background: var(--line); }
.swipe-ctx { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--gray); font-size: 14px; white-space: nowrap; }
.swipe-ctx b { font-weight: 600; }
.swipe-ctx span { color: var(--muted); }
.prof-head { grid-area: head; margin-bottom: 16px; }
.prof-head h1 { margin: 0; }
.h1-sub { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.prof-head .paddr { margin-top: 8px; font-size: 16px; line-height: 20px; }
.prof-head .notice { margin-top: 12px; }
.gal { grid-area: gal; min-width: 0; }
.gal-stage { position: relative; height: 400px; overflow: hidden; border-radius: 16px; background: var(--gray); }
.gal-slides { height: 100%; }
.gal-slides .slide img, .lb-slides .slide img { object-fit: contain; }
.gal-stage .no-photo { height: 100%; }
.gal-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 45%); color: #fff; cursor: pointer; }
.gal-btn .ico { width: 22px; height: 22px; }
.gal-tools { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 8px; }
.gal-tools .fav { position: static; width: 40px; height: 40px; }
.gal-back { position: absolute; top: 16px; left: 16px; z-index: 2; display: none; }
.gal-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 85%); color: var(--frame); cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / 20%); }
.gal-arrow .ico { width: 22px; height: 22px; }
.gal-prev { left: 16px; }
.gal-next { right: 16px; }
.gal-count { position: absolute; bottom: 16px; left: 16px; z-index: 2; padding: 2px 6px; border-radius: 4px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 12px; line-height: 16px; }
.gal-full { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.thumbs { display: flex; gap: 2px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 52px; height: 52px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: var(--gray); cursor: pointer; }
.thumbs button[aria-current] { border-color: var(--primary); }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb-video { position: relative; }
.thumb-video .ico { position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; color: #fff; filter: drop-shadow(0 0 2px rgb(0 0 0 / 70%)); }
.prof-side { grid-area: side; position: sticky; top: 76px; display: grid; gap: 16px; }
.pcontacts-big { height: 40px; font-size: 16px; }
.pbox { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); }
.pbox h2 { margin: 0; font-size: 20px; line-height: 24px; }
.pbox > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.pbox > summary::-webkit-details-marker { display: none; }
.pbox > summary .chev { width: 24px; height: 24px; color: var(--muted); transform: rotate(180deg); transition: transform .15s; }
.pbox:not([open]) > summary .chev { transform: none; }
.pbox[open] > summary { margin-bottom: 12px; }
.prof-boxes { grid-area: boxes; display: grid; gap: 16px; min-width: 0; margin-top: 16px; }
.tariffs h3 { margin: 16px 0 8px; font-size: 16px; line-height: 20px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { padding: 8px; border-radius: 8px; background: var(--day-tile); color: var(--ink); }
.tile-night { background: var(--night-tile); color: #fff; }
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tile-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: rgb(255 255 255 / 70%); color: var(--primary-text); }
.tile-ico .ico { width: 26px; height: 26px; }
.tile-night .tile-ico { background: rgb(255 255 255 / 12%); color: var(--primary); }
.tile-top b { font-size: 20px; line-height: 24px; }
.tile dl { display: grid; gap: 8px; margin: 0; }
.tile dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 16px; }
.tile dd { margin: 0; font-weight: 700; white-space: nowrap; }
.trows { display: grid; gap: 12px; margin: 16px 0 0; }
.trows div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 18px; }
.trows dd { margin: 0; font-weight: 700; text-align: right; }
.trows a { color: var(--accent); }
.tnote { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; background: var(--gray); font-size: 14px; line-height: 18px; }
.tnote .ico { width: 24px; height: 24px; }
.report { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px; background: var(--gray); color: var(--primary-text); font-size: 14px; }
.ptable { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0 0 12px; }
.ptable div { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 20px; }
.ptable dt { color: var(--muted); }
.ptable dd { margin: 0; overflow-wrap: anywhere; }
.ptable a { color: var(--accent); }
.pbox .ptags { max-height: none; }
.svc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-cols h3 { margin: 0 0 8px; font-size: 16px; line-height: 20px; font-weight: 700; }
.svc { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.svc li { display: flex; align-items: flex-start; gap: 6px; font-size: 16px; line-height: 20px; }
.svc .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--primary-text); }
.svc a { text-decoration: underline; }
.svc a:hover { color: var(--accent); }
.pmap { height: 300px; overflow: hidden; border-radius: 12px; background: var(--gray); }
.pbox .imap-note a { color: var(--accent); }
.about { line-height: 1.55; }
.about p { margin: 0 0 10px; }
.slogan { margin: 0 0 10px; font-size: 16px; line-height: 22px; font-weight: 700; }
/* Свёрнутое описание: ~6 строк и плавное затухание; «Подробнее» раскрывает (static/js/site.js). */
.about-more { display: none; }
.js .about-more { display: inline; }
.js .about.is-long:not(.is-open) { position: relative; max-height: 9.3em; overflow: hidden; }
.js .about.is-long:not(.is-open)::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3em; background: linear-gradient(rgb(255 255 255 / 0%), var(--sheet)); }
.js .about-more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.about-more:hover { text-decoration: underline; }
.notice { padding: 10px 12px; border-radius: 8px; background: var(--warn); font-size: 14px; }
.section-more { margin-top: 12px; }
.section-more a { color: var(--accent); }
.near { margin-top: 24px; }
.near-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.near-head h2 { margin: 0; }
.near-head span { display: flex; gap: 8px; }
.near-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--sheet); color: var(--ink); cursor: pointer; }
.near-btn .ico { width: 20px; height: 20px; }
.prow { display: flex; gap: 20px; max-width: 1024px; margin: 0 auto; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.prow::-webkit-scrollbar { display: none; }
.prow .pcard { flex: 0 0 224px; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0; scroll-snap-align: start; }
.prow .pmedia { height: 330px; }
.prow .pinfo { min-height: 0; }
.pbar { display: none; }
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #000; }
.lightbox::backdrop { background: #000; }
.lb-slides { height: 100%; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 15%); color: #fff; cursor: pointer; }
.lb-close .ico { width: 24px; height: 24px; }
/* Сдвиг страницы под пальцем при свайпе к соседней анкете */
.prof.is-leaving { opacity: .3; transition: transform .18s ease-in, opacity .18s ease-in; }
@media (max-width: 1023px) {
  .prof { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "gal" "head" "side" "boxes"; padding-top: 0; }
  .swipe-bar { justify-content: space-between; margin-bottom: 8px; }
  .gal { margin: 0 -16px; }
  .gal-stage { height: auto; aspect-ratio: 4 / 5; border-radius: 0; }
  .gal-slides .slide img { object-fit: cover; }
  .gal-back { display: grid; }
  .gal-arrow { display: none; }
  .thumbs { padding: 0 2px; }
  .prof-head { margin: 16px 0 0; }
  .prof-side { position: static; gap: 0; margin-top: 16px; }
  .prof-side > .pcontacts-big { display: none; }
  .pbox { margin: 0 -16px; padding: 16px; border: 0; border-top: 8px solid var(--gray); border-radius: 0; }
  .report { margin: 0 0 16px; }
  .prof-boxes { gap: 0; margin-top: 0; }
  .ptable { grid-template-columns: minmax(0, 1fr); }
  .svc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbar { position: sticky; bottom: 50px; z-index: 900; display: block; padding: 8px; }
  .pbar .pcontacts { height: 40px; font-size: 16px; }
}

/* Служебные страницы и формы */
.prose { max-width: 760px; line-height: 1.6; }
.prose h2 { margin: 24px 0 8px; font-size: 18px; }
.prose a { color: var(--accent); }
.form { max-width: 360px; }
.form div { margin-bottom: 12px; }
.form label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.form input { display: block; width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); color: var(--ink); font: inherit; }
.form button { height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--primary); color: var(--on-primary); cursor: pointer; }

/* Окно 18+: только при включённом скрипте, иначе кнопку не нажать и сайт бы закрылся */
.adult-gate { position: fixed; inset: 0; z-index: 5000; display: none; place-items: center; padding: 16px; background: rgb(0 0 0 / 70%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html.js:not([data-adult="ok"]) .adult-gate { display: grid; }
html.js:not([data-adult="ok"]) body { overflow: hidden; }
.adult-card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 350px; padding: 24px 16px 16px; border-radius: 16px; background: var(--sheet); color: var(--ink); text-align: center; }
.adult-badge { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--primary-text); border-radius: 50%; color: var(--primary-text); font-size: 14px; font-weight: 700; }
.adult-title { margin: 8px 0 0; font-size: 20px; line-height: 24px; font-weight: 700; }
.adult-text { margin: 0 0 16px; font-size: 16px; line-height: 20px; }
.adult-card .btn-primary { width: 100%; }
.leaflet-tooltip.pmap-label { border: 0; background: rgb(15 26 43 / 85%); color: #fff; font: 600 13px/16px "Golos Text", system-ui, sans-serif; box-shadow: none; }
.leaflet-tooltip.pmap-label::before { display: none; }
/* Ночью подложка значка в дневной плитке — полупрозрачная, а не светлая */
:root[data-theme="dark"] .tile-ico { background: rgb(255 255 255 / 10%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-ico { background: rgb(255 255 255 / 10%); } }

/* Ссылка внутри строки текста — с подчёркиванием (не только цветом): link-in-text-block. */
.imap-note a { text-decoration: underline; text-underline-offset: 2px; }
/* «Анкеты рядом» внизу анкеты не рисуются и не тянут фото, пока до них не докрутили. */
.near { content-visibility: auto; contain-intrinsic-size: auto 420px; }

/* Страницы 404 и 410 (templates/errors/missing.html). */
.err { padding-top: 32px; padding-bottom: 24px; }
.err-code { margin: 0; color: var(--primary-text); font-size: 56px; font-weight: 800; line-height: 1; }
.err h1 { margin: 12px 0 8px; }
.err-text { max-width: 560px; margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.err-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.err-h2 { margin: 8px 0 12px; font-size: 20px; }

/* /poisk/ — фильтр без скрипта: заголовок страницы (аудит: на странице не было H1). */
.search-title { margin: 16px 0 12px; font-size: 20px; }
