/* Golos Text (OFL), переменный 400–800, свой хостинг: без чужих соединений */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/golos-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/golos-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/golos-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/golos-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #242424;
  --ink-2: #555;
  --muted: #8c8c8c;
  --line: #ececec;
  --soft: #f3f3f5;
  --sheet: #fff;
  --head: #242424;
  --head-2: #333;
  --head-3: #454545;
  /* Палитра сайта - бело-красная (решение пользователя 2026-10-20; у донора бело-розовая) */
  --red: #d9232d;
  --red-press: #b81c25;
  --red-soft: #fdecec;
  --day: #fff6e6;
  --night: #262c38;
  --chip: #eef0f5;
  --chip-ink: #3d4758;
  --chip-dark: #3d4758;
  --hover: #e9e9ec;
  --ph: #e9e9ee;
  --ghost-line: #dcdce2;
  --dt: #9a9a9a;
  --radius: 14px;
  --wrap: 1232px;
  --shadow: 0 6px 24px rgba(20, 20, 40, .08);
  color-scheme: light;
}
/* Тёмная тема - по выбору посетителя (луна/солнце в полосе над шапкой, «Тема» в меню; app.js, localStorage dz-theme).
   Красный акцент тот же, лист и шапка - графитовые */
html[data-theme="dark"] {
  --ink: #ececee;
  --ink-2: #b6b6bc;
  --muted: #8d8d94;
  --line: #2e2e33;
  --soft: #232327;
  --sheet: #17171a;
  --head: #0e0e10;
  --head-2: #222226;
  --head-3: #303035;
  --red-soft: rgba(217, 35, 45, .16);
  --day: #2b2618;
  --night: #1d2431;
  --chip: #2a2c33;
  --chip-ink: #c9cfdb;
  --chip-dark: #48526a;
  --hover: #2d2d32;
  --ph: #26262a;
  --ghost-line: #3a3a40;
  --dt: #8d8d94;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
.th-dark { display: none; }
html[data-theme="dark"] .th-light { display: none; }
html[data-theme="dark"] .th-dark { display: inline; }

* { box-sizing: border-box; }
/* hidden всегда скрывает, даже если у блока задан display (панель фильтра, бейджи и т.п.) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* Как у образца: тёмный фон шапки и подвала, содержимое - на белом листе со скруглёнными углами */
body { margin: 0; font: 15px/1.45 "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--head); }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
svg { flex: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-press); }
.btn-ghost { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ghost-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-dark { background: var(--head-2); color: #fff; }
.btn-dark:hover { background: var(--head-3); }
.btn-outline { background: transparent; color: #ff5a63; box-shadow: inset 0 0 0 1.5px #ff5a63; }
.btn-outline:hover { background: rgba(255, 90, 99, .1); }
.btn-wide { width: 100%; }
.btn-big { height: 48px; font-size: 16px; }

/* ---------- полоса над шапкой ---------- */
.strip { background: linear-gradient(90deg, #a5121b 0%, #d9232d 35%, #f0464f 65%, #c2185b 100%); color: #fff; font-size: 13px; }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 32px; }
.strip-city { display: inline-flex; align-items: center; gap: 4px; }
.strip-city svg { width: 15px; height: 15px; }
.strip-msg { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Справа в полосе - язык и переключатель темы (луна в светлой, солнце в тёмной), как у образца */
.strip-end { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.theme-btn { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
.menu-theme { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 20px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; font-weight: 700; cursor: pointer; }
.menu-theme span { font-weight: 400; color: var(--muted); }

/* ---------- шапка ---------- */
/* Тёмная, как у образца: логотип, город, поиск, «Интим-карта», вход; ниже - «Фильтр» и разделы кнопками */
.hd { background: var(--head); color: #fff; }
.hd-bar { background: var(--head); }
.hd-top { display: flex; align-items: center; gap: 14px; padding-top: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: #fff; }
.logo-mark { display: block; width: 40px; height: 40px; transition: transform .2s; }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-word { font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.hd-burger { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; cursor: pointer; color: #fff; }

.hd-city { position: relative; flex: none; }
.hd-city summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--head-2); cursor: pointer; font-size: 15px; font-weight: 500; user-select: none; transition: background .15s; }
.hd-city summary::-webkit-details-marker { display: none; }
.hd-city summary:hover, .hd-city[open] summary { background: var(--head-3); }
.hd-city summary svg:first-child { color: #ff5a63; }
.hd-city summary svg:last-child { color: #9a9a9a; transition: transform .2s; }
.hd-city[open] summary svg:last-child { transform: rotate(180deg); }
.hd-city-pop { position: absolute; top: calc(100% + 10px); left: 0; width: 480px; max-width: calc(100vw - 32px); background: var(--sheet); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(20, 20, 40, .16); padding: 14px; }
.hd-city-head { font-weight: 700; margin: 0 4px 8px; }
.hd-city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.hd-city-list a, .hd-menu-cities a { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.hd-city-list a:hover { background: var(--red-soft); color: var(--red); }
.hd-city-list a.on, .hd-menu-cities a.on { color: var(--red); font-weight: 600; }
.hd-city-list small, .hd-menu-cities small { color: var(--muted); font-weight: 400; }

.hd-search { position: relative; display: flex; align-items: center; width: 260px; }
.hd-search svg { position: absolute; left: 13px; color: #cfcfcf; pointer-events: none; }
.hd-search input { width: 100%; height: 44px; border: 1px solid transparent; border-radius: 10px; background: var(--head-2); color: #fff; padding: 0 12px 0 40px; font-size: 15px; outline: none; transition: background .15s, border-color .15s; }
.hd-search input::placeholder { color: #bdbdbd; }
.hd-search input:hover { background: var(--head-3); }
.hd-search input:focus { border-color: #ff5a63; }
.hd-sp { flex: 1; }
.hd-top .btn { height: 44px; font-size: 16px; }
.hd-map svg { width: 20px; height: 20px; }

/* Разделы - кнопки в белой рамке; переносятся на следующую строку, а не обрезаются */
.hd-tabs .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 14px; }
.hd-tabs a, .hd-tabs .tab-filter { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid #fff; border-radius: 6px; background: none; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s; }
.hd-tabs a:hover { background: var(--head-2); }
.hd-tabs a.on { background: #4a4a4a; border-color: #8a8a8a; }
.hd-tabs .tab-filter { background: var(--red); border-color: var(--red); padding: 0 13px; }
.hd-tabs .tab-filter:hover { background: var(--red-press); }
.hd-tabs .tab-filter svg { width: 18px; height: 18px; }

.hd-menu { position: fixed; inset: 0; z-index: 90; background: var(--sheet); overflow-y: auto; padding: 0 16px 32px; }
.hd-menu-head { display: flex; justify-content: space-between; align-items: center; height: 64px; margin: 0 -16px 14px; padding: 0 16px; background: var(--head); color: #fff; }
.hd-menu-head .logo-word { font-size: 26px; }
.hd-menu-head .logo-mark { width: 34px; height: 34px; }
.hd-menu-head button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.hd-search.hd-search-menu { width: 100%; margin-top: 14px; }
.hd-search-menu input { background: var(--soft); color: var(--ink); }
.hd-search-menu input::placeholder { color: var(--muted); }
.hd-search-menu svg { color: var(--muted); }
.hd-menu-title { font-weight: 700; margin: 20px 0 6px; }
.hd-menu-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; }
.hd-menu-links > a { display: flex; justify-content: space-between; gap: 6px; padding: 9px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.hd-menu-links > a.on { color: var(--red); font-weight: 600; }
.hd-menu-cities a { padding: 9px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.hd-menu-actions { display: grid; gap: 10px; }
.hd-menu-actions .btn { height: 46px; }

/* ---------- лист с содержимым ---------- */
main.sheet { background: var(--sheet); border-radius: 24px 24px 0 0; padding: 8px 0 40px; min-height: 60vh; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: 22px; line-height: 1.25; margin: 36px 0 14px; font-weight: 700; }
.lead { color: var(--ink-2); margin: 0 0 18px; font-size: 16px; }
.range { font-size: 14px; color: var(--muted); margin: -4px 0 14px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 14px; font-size: 12px; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs i { font-style: normal; font-size: 9px; }

.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.city { background: var(--soft); border-radius: 12px; padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.city:hover { border-color: var(--red); background: var(--sheet); }
.city b { font-size: 17px; }
.city span { font-size: 13px; color: var(--muted); }

.empty { background: var(--soft); border: 0; border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 0; }

/* ---------- карточка анкеты ---------- */
/* Как у образца: горизонтальная карточка, фото слева фиксированного размера задаёт высоту,
   текст справа подогнан под неё (строки с многоточием, метки ровно в два ряда) - все карточки одинаковые */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.card { position: relative; display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 14px; }
/* Карточки за пределами экрана не верстаются, пока до них не долистали (48 карточек - основная работа браузера на странице города);
   в HTML всё на месте, роботу содержимое видно. auto - браузер запоминает настоящую высоту */
.grid > .card:nth-child(n+4) { content-visibility: auto; contain-intrinsic-size: auto 262px; } /* карточка - ровно 262 px */

.card-shot { position: relative; align-self: start; aspect-ratio: 165 / 262; border-radius: 10px; overflow: hidden; background: var(--ph); }
.card-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.card-track::-webkit-scrollbar { display: none; }
.card-track.drag { scroll-snap-type: none; cursor: grabbing; }
.card-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; display: block; }
.card-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.card-more img { filter: blur(14px) brightness(.8); transform: scale(1.15); }
.card-more span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 12px; border-radius: 8px; background: rgba(36, 36, 36, .55); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }

.card-count { position: absolute; z-index: 2; left: 8px; bottom: 10px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 5px; background: rgba(36, 36, 36, .7); color: #fff; font-size: 11px; font-weight: 600; pointer-events: none; }
.card-count svg { width: 12px; height: 12px; }
.card-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; height: 3px; pointer-events: none; }
.card-dots i { flex: 1; background: rgba(255, 255, 255, .45); }
.card-dots i.on { background: var(--red); }

.card-fav { position: absolute; z-index: 3; left: 127px; top: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(36, 36, 36, .55); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.card-fav svg { width: 17px; height: 17px; }
.card-fav:hover { transform: scale(1.08); }
.card-fav.on { color: var(--red); }
.card-fav.on svg { fill: currentColor; }

.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-name { font-size: 16px; font-weight: 700; line-height: 20px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-name:hover { color: var(--red); }
.card-place { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 14px; line-height: 18px; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.card-place svg { flex: none; width: 14px; height: 14px; color: var(--red); }
.card-place a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.card-place a:hover { color: var(--red); }
.card-sub { min-height: 16px; margin-top: 1px; font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metro { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.metro svg { color: var(--line, var(--red)); flex: none; }
.card-video { position: absolute; z-index: 2; left: 8px; bottom: 34px; display: grid; place-items: center; width: 26px; height: 22px; border-radius: 5px; background: rgba(36, 36, 36, .7); color: #fff; pointer-events: none; }
.card-video svg { width: 15px; height: 15px; }
.card-params { margin-top: 4px; font-size: 14px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-params i { font-style: normal; color: var(--muted); margin: 0 4px; font-size: 10px; vertical-align: 2px; }
.card-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 8px; font-size: 14px; line-height: 18px; }
.card-prices span { display: flex; flex-direction: column; min-width: 0; }
.card-prices small { font-size: 11px; line-height: 14px; color: var(--muted); }
.card-prices b { color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Метки - ровно два полных ряда (2 × 20px + зазор 3px), лишние уходят целиком */
.card-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; max-height: 43px; overflow: hidden; margin: 8px 0 10px; }
.card-chips span { box-sizing: border-box; height: 20px; max-width: 100%; padding: 0 5px; border-radius: 4px; background: var(--chip); color: var(--chip-ink); font-size: 12px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-chips span.chip-dark { background: var(--chip-dark); color: #fff; }
.card-body > .btn { margin-top: auto; height: 40px; font-size: 14px; padding: 0 10px; }

/* ---------- найдено + фильтры (по образцу kizdarochka) ---------- */
.found { margin: 0 0 20px; color: var(--ink); }
.found b { color: var(--ink); }
.found-reset { margin-left: 10px; color: var(--red); font-size: 14px; }
.results { position: relative; transition: opacity .15s; }
.results.loading { opacity: .45; pointer-events: none; }

.flt { margin-bottom: 18px; }
.flt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Как у образца: «Фильтр» - красная рамка, окна - серые кнопки без рамки */
.flt-open, .flt-chip, .flt-pop > summary { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 16px; border-radius: 6px; border: 0; background: var(--soft); font-size: 16px; cursor: pointer; user-select: none; list-style: none; transition: background .15s; }
.flt-chip { padding: 0 16px; }
.flt-pop > summary::-webkit-details-marker { display: none; }
.flt-chip:hover, .flt-pop > summary:hover, .flt-pop[open] > summary { background: var(--hover); }
.flt-open { gap: 8px; padding: 0 12px; background: var(--sheet); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); font-size: 15px; }
.flt-open:hover { background: var(--red-soft); }
.flt-pop > summary svg { width: 16px; height: 16px; color: #9a9a9a; transition: transform .2s; }
.flt-pop[open] > summary svg { transform: rotate(180deg); }
.flt-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.flt-pop { position: relative; }
.flt-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 340px; max-height: 420px; overflow-y: auto; padding: 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(20, 20, 40, .16); }
.flt-panel-wide { width: 440px; }
.flt-actions { position: sticky; bottom: -14px; display: flex; gap: 8px; justify-content: flex-end; margin: 12px -14px -14px; padding: 10px 14px; background: var(--sheet); border-top: 1px solid var(--line); }
.flt-actions .btn { height: 36px; font-size: 14px; }
.flt-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--muted); }
.flt-sort select { height: 40px; border: 0; border-radius: 6px; background: var(--soft); padding: 0 10px; font-size: 15px; color: var(--ink); cursor: pointer; }

.flt-range { display: grid; grid-template-columns: 1fr 92px 92px; align-items: center; gap: 8px; padding: 5px 0; }
.flt-range-label { font-size: 15px; }
.flt-range-label small { color: var(--muted); font-size: 12px; }
.flt-range input, .flt-field input[type="search"], .flt-list-search { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 15px; background: var(--sheet); outline: none; }
.flt-range input:focus, .flt-field input:focus, .flt-list-search:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.flt-note { margin: 6px 0 4px; font-size: 12px; color: var(--muted); }
.flt-flags { display: grid; gap: 2px; margin-top: 6px; }

.flt-group { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.flt-group:first-child { margin-top: 0; }
.flt-list { display: grid; gap: 1px; max-height: 260px; overflow-y: auto; margin-top: 8px; }
.flt-list-streets { max-height: 340px; }
.flt-check { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.flt-check:hover { background: var(--soft); }
.flt-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); flex: none; }
.flt-check span { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.flt-check small { color: var(--muted); font-size: 12px; }
.flt-line { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.flt-check[hidden] { display: none; }
.flt-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.flt-links a { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.flt-links a:hover { background: var(--red-soft); color: var(--red); }
.flt-links a.on { color: var(--red); font-weight: 600; background: var(--red-soft); }

.flt-drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(400px, 100%); display: flex; flex-direction: column; background: var(--sheet); box-shadow: -12px 0 40px rgba(0, 0, 0, .18); animation: flt-in .2s ease-out; }
@keyframes flt-in { from { transform: translateX(30px); opacity: 0; } }
.flt-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(20, 20, 30, .45); }
.flt-dhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 18px; }
.flt-dhead button { background: none; border: 0; cursor: pointer; padding: 4px; }
.flt-dbody { flex: 1; overflow-y: auto; padding: 14px 16px; }
.flt-dfoot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.flt-dfoot .btn { height: 46px; }
.flt-field { display: grid; gap: 6px; margin-bottom: 14px; }
.flt-field > span { font-weight: 600; font-size: 14px; }
.flt-field select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: var(--sheet); }
.flt-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.flt-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; user-select: none; }
.flt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.flt-pill:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.flt-sec { border-top: 1px solid var(--line); }
.flt-sec > summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.flt-sec > summary::-webkit-details-marker { display: none; }
.flt-sec > summary svg { color: var(--muted); transition: transform .2s; }
.flt-sec[open] > summary svg { transform: rotate(180deg); }
.flt-sec-body { padding-bottom: 14px; }
body.drawer-open { overflow: hidden; }

/* ---------- интим-карта (по образцу russsiandolls) ---------- */
.imap { margin-top: 44px; scroll-margin-top: 16px; }
.imap h2 { margin-bottom: 6px; }
.imap-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ph); }
.imap-canvas { height: min(72vh, 560px); }
.imap-wait { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 15px; }
.imap-panel { position: absolute; z-index: 5; top: 12px; left: 12px; width: 300px; max-height: calc(100% - 24px); overflow-y: auto; background: var(--sheet); border-radius: 12px; box-shadow: 0 10px 34px rgba(20, 20, 40, .22); }
.imap-phead { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px; background: var(--sheet); border-bottom: 1px solid var(--line); }
.imap-phead em { display: block; font-style: normal; color: var(--red); font-weight: 700; font-size: 14px; }
.imap-phead button { border: 0; background: var(--soft); width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; flex: none; }
.imap-list { padding: 6px; }
.imap-row { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; text-decoration: none; }
.imap-row:hover { background: var(--soft); }
.imap-row img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--ph); flex: none; }
.imap-row span { display: grid; gap: 2px; }
.imap-row small { color: var(--red); font-weight: 700; font-size: 14px; }
.imap-empty { margin: 8px; color: var(--muted); }
.imap-all { display: block; margin: 0 12px 12px; padding: 10px; border-radius: 10px; background: var(--red); color: #fff; text-align: center; text-decoration: none; font-weight: 600; }
.imap-all:hover { background: var(--red-press); }
.imap-loading { padding: 18px 14px; color: var(--muted); }

/* ---------- пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 0; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 15px; text-decoration: none; }
.pager a { background: var(--soft); }
.pager a:hover { background: var(--hover); color: var(--red); }
.pager .on { background: var(--red); color: #fff; font-weight: 700; }
.pager .gap { color: var(--muted); min-width: 20px; padding: 0; }

/* ---------- страница анкеты ---------- */
.pf { display: grid; grid-template-columns: minmax(0, 1fr) 388px; gap: 24px; align-items: start; }
.pf-title { font-size: 26px; line-height: 1.3; margin: 0; }
.pf-title span { display: block; font-size: 17px; font-weight: 600; color: var(--ink-2); }
.pf-place { margin: 8px 0 14px; font-size: 15px; color: var(--muted); }
.pf-place a { color: var(--red); text-decoration: none; }
.pf-place a:hover { text-decoration: underline; }

.gal-stage { position: relative; aspect-ratio: 824 / 548; border-radius: 16px; overflow: hidden; background: #2b1d1f; }
.gal-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.drag { scroll-snap-type: none; cursor: grabbing; }
.gal-slide { position: relative; flex: none; width: 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.gal-slide .gal-blur { position: absolute; top: -20px; left: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.75); pointer-events: none; }
.gal-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gal-fav { top: 16px; right: 16px; width: 42px; height: 42px; background: rgba(20, 20, 20, .7); color: #fff; box-shadow: none; }
.gal-fav:hover { color: #fff; background: rgba(20, 20, 20, .85); }
.gal-fav.on { color: var(--red); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sheet); color: var(--red); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.gal-nav:hover { background: var(--red); color: #fff; }
.gal-prev { left: 16px; }
.gal-next { right: 16px; }
.gal-counter { position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 3px 8px; border-radius: 6px; background: rgba(20, 20, 20, .75); color: #fff; font-size: 13px; font-weight: 600; }
.gal-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--ph); }
.gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumbs button[aria-current] { border-color: var(--red); }

.panel { margin-top: 16px; padding: 14px 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.panel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary h2 { margin: 0; font-size: 20px; }
.panel summary svg { color: var(--muted); transition: transform .2s; }
.panel:not([open]) summary svg { transform: rotate(180deg); }
.params { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin: 8px 0 0; }
.params div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.params dt { color: var(--dt); }
.params dd { margin: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips-row a { padding: 4px 10px; border-radius: 6px; background: var(--chip); color: var(--chip-ink); font-size: 14px; text-decoration: none; }
.chips-row a:hover { background: var(--red); color: #fff; }

.pf-about { margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin-top: 12px; }
.svc-group p { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
/* Услуги анкеты - как у донора: список с галочками, цена справа, комментарий рекламодателя под услугой */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 5px 0 5px 22px; position: relative; font-size: 15px; }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 5px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.svc-list a { color: var(--ink); text-decoration: none; }
.svc-list a:hover { color: var(--red); }
.svc-price { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.svc-price.svc-extra { color: var(--ink); font-weight: 600; }
.svc-note { flex-basis: 100%; font-size: 13px; color: var(--red); }
.chips-row span { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); font-size: 14px; }
.pf-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.tariffs { padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; }
.tariffs h2 { margin: 0; font-size: 20px; }
.tariffs-h { margin: 16px 0 8px; font-weight: 700; font-size: 15px; }
.tariffs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: grid; gap: 8px; align-content: start; padding: 10px 10px 12px; border-radius: 8px; font-size: 14px; }
.tile-day { background: var(--day); }
.tile-night { background: var(--night); color: #fff; }
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tile-top b { font-size: 19px; }
.tile-row { display: flex; justify-content: space-between; gap: 6px; }
.tile-row span { color: var(--ink-2); }
.tile-night .tile-row span { color: #b9c0cc; }
.tariffs-info { margin: 16px 0 0; }
.tariffs-info div { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tariffs-info dt { color: var(--dt); }
.tariffs-info dd { margin: 0; font-weight: 600; }

.similar h2 { margin-top: 40px; }

/* ---------- служебные страницы ---------- */
.text { max-width: 820px; font-size: 16px; line-height: 1.6; }
.text p { margin: 0 0 14px; }
.text h2 { margin: 30px 0 10px; font-size: 20px; }
.text ul { margin: 0 0 14px; padding-left: 20px; }
.text li { margin-bottom: 6px; }
.text a, .lead a { color: var(--red); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: var(--soft); font-size: 15px; line-height: 1.5; }
.steps li > span { flex: none; color: var(--red); font-weight: 800; font-size: 20px; line-height: 1.1; }

/* ---------- текст посадочной (data/content) ---------- */
.seo { max-width: 900px; margin-top: 48px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.seo h2 { margin: 28px 0 10px; font-size: 20px; color: var(--ink); }
.seo p { margin: 0 0 12px; }
.seo a { color: var(--red); }

/* ---------- над подвалом: «Каталог … - это:» и метки ---------- */
.about { margin-top: 48px; color: var(--muted); font-size: 14px; }
.about-h { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.about ul { margin: 0 0 14px; padding-left: 16px; }
.about li { margin-bottom: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { padding: 2px 6px; border-radius: 4px; background: var(--chip-dark); color: #fff; font-size: 12px; line-height: 20px; text-decoration: none; transition: background .15s; }
.tags a:hover { background: var(--red); }

/* ---------- подвал (как у образца: бренд, «Компания», «Контакты») ---------- */
.foot { background: var(--head); color: #cfcfcf; }
.foot-in { display: grid; grid-template-columns: 1.1fr 1.4fr .8fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.foot-brand .logo-word { font-size: 28px; }
.foot-brand .logo-mark { width: 34px; height: 34px; }
/* Значок 18+ - справа от логотипа */
.foot-top { display: flex; align-items: center; gap: 18px; }
.foot-brand p { margin: 16px 0 0; max-width: 400px; font-size: 14px; color: #b5b5b5; }
.foot-age { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; color: #fff; font-weight: 600; font-size: 14px; }
.foot-h { margin: 0 0 18px; color: #fff; font-weight: 700; font-size: 14px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.foot-links a, .foot-contact { color: #fff; font-size: 16px; text-decoration: none; }
.foot-links a:hover, .foot-contact:hover { color: #ff5a63; }
.foot-contact { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

/* Кнопка «наверх»: появляется после прокрутки (app.js) */
.totop { position: fixed; right: 16px; bottom: 24px; z-index: 39; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s, background .15s; }
.totop:hover { background: var(--red-press); }
.totop[hidden] { display: grid !important; opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Нижняя панель - только на телефоне */
.tabbar { display: none; }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2b2b2e; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-search { width: 200px; }
}
/* Планшет: строка шапки шире экрана - поиск уходит в меню, «Добавить анкету» - значком */
@media (max-width: 1080px) {
  .hd-top > .hd-search { display: none; }
  .hd-add span { display: none; }
  .hd-add { padding: 0 12px; }
}
@media (max-width: 900px) {
  .pf { grid-template-columns: 1fr; }
  .pf-side { position: static; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; } /* iPhone не увеличивает страницу при фокусе на поле */
  .strip-city, .strip-end { display: none; }
  .strip-in { justify-content: center; height: 30px; }
  .strip-msg { font-size: 11px; }
  /* При прокрутке прилипает строка с логотипом: шапка «растворяется», чтобы строка липла ко всей странице */
  .hd { display: contents; }
  .hd-bar { position: sticky; top: 0; z-index: 50; }
  .hd-top { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .hd-tabs { background: var(--head); }
  .hd-tabs .wrap { gap: 6px; padding-top: 6px; padding-bottom: 14px; }
  .hd-tabs a, .hd-tabs .tab-filter { height: 34px; padding: 0 9px; font-size: 13px; }
  .hd-map, .hd-login { display: none; }
  .flt-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .flt-row::-webkit-scrollbar { display: none; }
  .flt-open span { display: none; }
  .flt-open, .flt-chip, .flt-pop > summary { flex: none; height: 38px; padding: 0 12px; font-size: 14px; }
  .flt-sort { margin-left: 0; flex: none; }
  .flt-sort span { display: none; }
  .flt-panel, .flt-panel-wide { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 75vh; border-radius: 18px 18px 0 0; }
  .flt-actions { bottom: -14px; }
  .imap-canvas { height: 60vh; }
  .imap-panel { position: static; width: auto; max-height: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .hd-burger { display: inline-flex; }
  .logo { gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-word { font-size: 24px; }
  .hd-top .btn { height: 38px; }
  .hd-city summary span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hd-city summary { height: 38px; padding: 0 10px; font-size: 14px; }
  .hd-city-pop { position: fixed; top: 60px; left: 16px; right: 16px; width: auto; }
  .hd-city-list { grid-template-columns: repeat(2, 1fr); }
  .hd-add { padding: 0 10px; }
  main.sheet { border-radius: 18px 18px 0 0; }
  .imap { scroll-margin-top: 66px; }
  .about { margin-top: 36px; }
  .foot { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .totop { bottom: calc(66px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--head); box-shadow: 0 -2px 12px rgba(0, 0, 0, .18); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; padding: 0; border: 0; background: none; color: #d9d9d9; font-size: 10px; line-height: 1.1; text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current] { color: #ff5a63; }
  .tabbar b { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
  .pf-title { font-size: 22px; }
  .gal-stage { aspect-ratio: 4 / 5; }
  .gal-nav { display: none; }
  .params { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .tile-top b { font-size: 17px; }
}
@media (max-width: 380px) {
  .logo-word { display: none; }
  .card { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .card-shot { aspect-ratio: auto; height: 100%; min-height: 230px; }
  .card-fav { left: auto; right: calc(60% + 8px); }
}

/* ================= аккаунт, кабинет, админка ================= */
/* окна: вход и регистрация, контакты */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.modal-shade { position: absolute; inset: 0; background: rgba(15, 15, 20, .6); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 18px 20px; border-radius: 16px; background: var(--sheet); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-title { margin: 0; font-size: 20px; font-weight: 700; }
.modal-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 12px; background: var(--soft); }
.seg button { height: 38px; border: 0; border-radius: 9px; background: none; font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--sheet); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-pick label { position: relative; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick span { display: grid; place-items: center; height: 44px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--ghost-line); font-size: 14px; font-weight: 600; cursor: pointer; }
.role-pick input:checked + span { background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--red); font-size: 14px; cursor: pointer; }
/* Telegram: кнопка входа, окно с кодом и QR (как у донора) */
.btn-tg { background: #2aabee; color: #fff; }
.btn-tg:hover { background: #229ad8; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-in { text-align: center; }
.tg-in .link-btn { font-size: inherit; }
.tg-lead { margin: 0; font-size: 16px; font-weight: 600; }
.tg-qr { justify-self: center; width: 188px; height: 188px; padding: 8px; border-radius: 12px; background: #fff; }
.tg-qr svg { display: block; width: 100%; height: 100%; }
.tg-code { display: inline-flex; justify-self: center; align-items: center; gap: 10px; padding: 10px 16px; border: 1px dashed var(--ghost-line); border-radius: 10px; background: var(--soft); color: var(--ink); cursor: pointer; }
.tg-code b { font-size: 20px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.tg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.contact-list { display: grid; gap: 8px; margin-bottom: 12px; }

/* формы */
.acc-form { display: grid; gap: 12px; align-content: start; }
.acc-form h2 { margin: 0 0 2px; font-size: 18px; }
.acc-narrow { max-width: 420px; }
.fld { display: grid; gap: 6px; }
.fld > span, .fld-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld-label { margin: 14px 0 8px; }
.fld small { font-weight: 400; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); font-size: 15px; outline: none; }
.fld textarea { resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.acc-note { margin: 0; font-size: 13px; color: var(--muted); }
.acc-note a { color: var(--red); }
.acc-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 14px; overflow-wrap: anywhere; }
.acc-msg.ok { background: rgba(34, 195, 94, .14); color: #1a9a4a; }
.acc-msg a { color: inherit; font-weight: 700; }
.acc-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.acc-cols .acc-form { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.acc-danger { border-color: var(--red-soft) !important; }
.acc-guest { max-width: 560px; }
.acc-guest-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }

/* кабинет */
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; margin: 6px 0 18px; border-radius: 14px; background: var(--soft); }
.acc-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.acc-nick { font-size: 20px; }
.acc-role { padding: 2px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; }
.acc-mail { font-size: 14px; color: var(--muted); }
.tiles-acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile-acc { display: grid; gap: 4px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s; }
.tile-acc svg { color: var(--red); margin-bottom: 6px; }
.tile-acc b { font-size: 16px; }
.tile-acc span { font-size: 13px; color: var(--muted); }
a.tile-acc:hover { border-color: var(--red); }
.tile-acc.soon { opacity: .55; }
.acc-sec { margin-top: 30px; }
.acc-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.acc-sec-head h2 { margin: 0; }
.acc-sec .acc-note { margin-top: 12px; }

/* списки анкет (кабинет и админка) */
.ls-list { display: grid; gap: 8px; }
.ls-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s; }
.ls-row:hover { border-color: var(--red); }
.ls-cover { width: 56px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--ph); display: grid; place-items: center; color: var(--muted); }
.ls-cover img { width: 100%; height: 100%; object-fit: cover; }
.ls-body { display: grid; gap: 2px; min-width: 0; }
.ls-body small { color: var(--muted); font-size: 13px; }
.ls-body .ls-reason { color: var(--red); }
.ls-side { display: grid; justify-items: end; gap: 4px; font-size: 13px; }
.ls-side a { color: var(--red); }
.st { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--ink-2); }
.st-pending { background: #fff4d9; color: #8a6200; }
.st-published { background: rgba(34, 195, 94, .14); color: #1a9a4a; }
.st-rejected, .st-hidden { background: var(--red-soft); color: var(--red); }
html[data-theme="dark"] .st-pending { background: #3a3018; color: #f0c860; }

/* редактор анкеты */
.ed-status { padding: 12px 14px; margin: 6px 0 16px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.ed-status a { color: var(--red); }
.ed fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ed-sec { padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; }
.ed-sec h2 { margin: 0 0 14px; font-size: 18px; }
.ed-sec h2 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ed-grid-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ed-sec > .acc-note { margin-top: 10px; }
.ed-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 14px; background: var(--sheet); border-top: 1px solid var(--line); }
.ed-bar .acc-msg { flex: 1; }
.ed-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ed-photos figure { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--ph); }
.ed-photos img { width: 100%; height: 100%; object-fit: cover; }
.ed-photos figure > div { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.ed-photos button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 20, 20, .7); color: #fff; cursor: pointer; font-size: 15px; }
.ed-photos button svg { width: 16px; height: 16px; }
.ed-main { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
.ed-upload { cursor: pointer; }
.ed-check-box { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.ed-check-box p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.ed-code { display: grid; gap: 2px; padding: 16px; border-radius: 12px; background: var(--head); color: #fff; text-align: center; }
.ed-code span { font-size: 12px; color: #b5b5b5; }
.ed-code b { margin-bottom: 8px; font-size: 20px; }
.ed-code b:first-of-type { font-size: 30px; letter-spacing: .08em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ed-check-ok { color: #1a9a4a; display: flex; align-items: center; gap: 6px; }
.ed-check-img { display: block; max-width: 220px; margin-bottom: 10px; border-radius: 10px; }
.ed-final { padding: 18px 0 8px; }
.ed-final-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* админка */
.adm-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.adm-nav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--soft); text-decoration: none; font-weight: 600; }
.adm-nav a.on { background: var(--red); color: #fff; }
.adm-nav small { padding: 0 6px; border-radius: 8px; background: rgba(0, 0, 0, .1); font-size: 12px; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.adm-filter a { padding: 5px 10px; border-radius: 8px; background: var(--soft); font-size: 14px; text-decoration: none; }
.adm-filter a.on { background: var(--ink); color: var(--sheet); }
.adm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.adm-top a { color: var(--red); }
.adm-changed { padding: 10px 12px; border-radius: 10px; background: #fff4d9; color: #6b4d00; font-size: 14px; }
html[data-theme="dark"] .adm-changed { background: #3a3018; color: #f0c860; }
.adm-check { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; margin: 14px 0; }
.adm-check img { max-width: 100%; max-height: 460px; border-radius: 12px; }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.adm-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.adm-fields { display: grid; margin: 0 0 16px; }
.adm-fields div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-fields dt { color: var(--dt); }
.adm-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.adm-reject { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 280px; }
.adm-reject input { flex: 1; min-width: 200px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); }
.adm-reject .btn { height: 48px; }
.adm-reject .acc-msg { flex-basis: 100%; }
.adm-search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.adm-search input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); }
.adm-table { overflow-x: auto; }
.adm-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.adm-table th { color: var(--muted); font-weight: 600; }
.adm-table small { color: var(--muted); }
.adm-table tr.blocked td { color: var(--muted); text-decoration: line-through; }
.adm-row-btns { display: flex; gap: 6px; }
.adm-row-btns .btn { height: 32px; padding: 0 10px; font-size: 13px; text-decoration: none; }

@media (max-width: 760px) {
  .ed-check-box, .adm-check { grid-template-columns: 1fr; }
  .adm-fields div { grid-template-columns: 1fr; gap: 2px; }
  .ls-row { grid-template-columns: 48px minmax(0, 1fr); }
  .ls-cover { width: 48px; height: 62px; }
  .ls-side { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .acc-head { flex-direction: column; align-items: flex-start; }
  .ed-bar { bottom: calc(54px + env(safe-area-inset-bottom)); }
}

/* ---------- этап 2: проверка, баланс, реклама, уведомления (как у донора) ---------- */
.st-verify { background: #fff4d9; color: #8a6200; }
.st-checking { background: #e6efff; color: #2f5fb3; }
.st-draft { background: var(--soft); color: var(--ink-2); }
.st-on { background: rgba(34, 195, 94, .14); color: #1a9a4a; }
.st-off { background: var(--red-soft); color: var(--red); }
.st-ad { background: #ffe9a8; color: #6b4b00; }
.ls-side { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

/* колокольчик уведомлений в шапке */
.hd-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; }
.hd-bell:hover { background: rgba(255, 255, 255, .08); }
.hd-bell b { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); font-size: 11px; line-height: 18px; text-align: center; }
.acc-nav .nav-dot { background: var(--red); color: #fff; }
.acc-nav a.on .nav-dot { background: #fff; color: var(--red); }

/* реклама в каталоге: рамка Топа/VIP, метка, «фото сверены» */
.card-top .card-shot, .card-vip .card-shot { box-shadow: 0 0 0 3px #f4b400; }
.card-vip .card-shot { box-shadow: 0 0 0 3px #b9a6ff; }
.card-adtag { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: #f4b400; color: #2b1f00; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.card-adtag-vip { background: #7c5cff; color: #fff; }
.card-ok { position: absolute; z-index: 2; right: 8px; bottom: 10px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 5px; background: #1a9a4a; color: #fff; font-size: 11px; font-weight: 700; }
.card-ok svg, .gal-ok svg { width: 12px; height: 12px; }
.gal-ok { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: #1a9a4a; color: #fff; font-size: 12px; font-weight: 700; }
.gal-video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* проверочное фото */
.vf-task { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 18px; align-items: start; }
.vf-steps { margin: 0; padding-left: 20px; line-height: 1.5; }
.vf-steps li { margin-bottom: 6px; }
.vf-warn { padding: 10px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-weight: 600; }
.vf-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.vf-cam { margin-top: 14px; }
.vf-cam video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.vf-cam-btns { display: flex; gap: 10px; margin-top: 10px; }
.vf-qr { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; margin-top: 12px; }
.vf-qr-img { width: 200px; aspect-ratio: 1; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.vf-qr-img:empty { background: var(--soft); }
.vf-qr-img svg, .pay-qr svg { width: 100%; height: auto; display: block; }
.vf-hist { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vf-hist img { width: 160px; border-radius: 8px; }
.vf-reasons { margin: 4px 0; padding-left: 18px; color: var(--red); font-size: 14px; }
.adm-info { font-size: 12px !important; font-weight: 400; letter-spacing: 0 !important; font-family: inherit !important; }

/* услуги в редакторе: отметка, цена, комментарий */
.svc-eds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 14px; }
.svc-ed { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.svc-ed-name { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.svc-ed-more { display: none; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.svc-ed:has(input[name="services"]:checked) { border-color: var(--red); }
.svc-ed:has(input[name="services"]:checked) .svc-ed-more { display: flex; }
.svc-ed-more select, .svc-ed-more input { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); font-size: 14px; }
.svc-ed-more input[data-spv] { width: 80px; }
.svc-ed-more input[data-sn] { flex: 1 1 160px; }
.ed-video { width: 100%; max-width: 420px; max-height: 420px; border-radius: 12px; background: #000; display: block; margin-bottom: 10px; }

/* размещение анкеты */
.ad-state { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.ad-on { background: rgba(34, 195, 94, .12); color: #1a9a4a; }
.ad-off { background: var(--red-soft); color: var(--red); }
.ad-dl { display: grid; gap: 0; margin: 12px 0; }
.ad-dl div { display: grid; grid-template-columns: 220px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ad-dl dt { color: var(--dt); }
.ad-dl dd { margin: 0; }
.ad-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 4px; }
.ad-tier { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.ad-tier input { position: absolute; opacity: 0; pointer-events: none; }
.ad-tier:has(input:checked) { border-color: var(--red); }
.ad-tier span { color: var(--ink-2); }
.ad-tier small { color: #1a9a4a; }
.ad-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.ad-bid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ad-bid .fld { margin: 0; max-width: 220px; }
.ad-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.ad-price { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.ad-price b { font-size: 16px; }
.ad-price span { font-size: 22px; font-weight: 700; color: var(--red); }
.ad-price small { color: var(--muted); font-size: 13px; }
.ad-price-auction { border-color: #f4b400; }
.adm-prices { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.adm-prices .fld { margin: 0; max-width: 180px; }

/* баланс */
.bal-top { display: flex; align-items: baseline; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--head); color: #fff; margin-bottom: 18px; }
.bal-top span { color: #b5b5b5; }
.bal-top b { font-size: 30px; }
.pay-coins { display: grid; gap: 14px; }
.pay-coin > .btn { min-width: 180px; }
.pay-addr { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.pay-qr { width: 180px; aspect-ratio: 1; background: #fff; border-radius: 10px; }
.pay-code { display: block; margin: 8px 0; padding: 10px; border-radius: 8px; background: var(--soft); font-size: 13px; word-break: break-all; }
.sum-plus { color: #1a9a4a; font-weight: 600; white-space: nowrap; }
.sum-minus { color: var(--ink-2); white-space: nowrap; }

/* уведомления */
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nt p { margin: 0 0 4px; }
.nt small { color: var(--muted); }
.nt-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.nt-good .nt-dot { background: #22c35e; }
.nt-bad .nt-dot { background: var(--red); }
.nt-new p { font-weight: 600; }

@media (max-width: 760px) {
  .vf-task, .vf-qr, .pay-addr, .vf-hist { grid-template-columns: 1fr; }
  .ad-tiers { grid-template-columns: 1fr; }
  .ad-dl div { grid-template-columns: 1fr; }
  .hd-bell { width: 36px; }
}

/* ---------- админка: анкеты сайта и пул контактов (как у донора) ---------- */
.adm-nav small[hidden] { display: none; }
.adm-filter-sub a { font-size: 13px; }
.adm-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-stats span { display: grid; padding: 8px 14px; border-radius: 10px; background: var(--soft); font-size: 13px; color: var(--muted); }
.adm-stats b { font-size: 18px; color: var(--ink); }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.adm-tools input:not([type]), .adm-tools select, .adm-replace input { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); }
.adm-tools input[name="q"] { width: 200px; }
.adm-tools .btn { height: 40px; }
.adm-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.adm-thumb { display: block; width: 40px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--ph); }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-table tr.off td { opacity: .55; }
.adm-table td a { color: var(--red); }
.adm-switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.adm-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.adm-switch i { position: absolute; inset: 0; border-radius: 11px; background: var(--line); transition: background .15s; }
.adm-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.adm-switch input:checked + i { background: #22c35e; }
.adm-switch input:checked + i::after { transform: translateX(18px); }
.adm-pages { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.adm-pages a, .adm-pages b, .adm-pages span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border-radius: 8px; background: var(--soft); text-decoration: none; font-size: 14px; }
.adm-pages b { background: var(--red); color: #fff; }
.adm-pages span { background: none; }
.adm-lead { max-width: 900px; margin: 0 0 14px; }
.adm-replace { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; margin-bottom: 16px; border-radius: 12px; background: var(--soft); }
.adm-replace input { flex: 1; min-width: 180px; }
.adm-replace .btn { height: 40px; }
.adm-pool { display: grid; gap: 8px; }
.bn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 1.2fr) auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.bn-head { padding: 0 10px; border: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.bn-f > span { display: none; font-size: 12px; color: var(--muted); }
.bn-in { position: relative; }
.bn-in input { width: 100%; height: 40px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); }
.bn-in button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.bn-in button:hover { color: var(--red); }
.bn em, .bn-err { display: block; font-style: normal; font-size: 12px; color: var(--red); }
.bn-err { grid-column: 1 / -1; }
.bn-err:empty, .bn-f em:empty { display: none; }
.bn-for { display: grid; gap: 4px; position: relative; }
.bn-cats summary { list-style: none; height: 40px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bn-cats summary::-webkit-details-marker { display: none; }
.bn-cats summary.set { border-color: var(--red); color: var(--red); }
.bn-pop { position: absolute; z-index: 20; top: 44px; left: 0; width: min(340px, 86vw); max-height: 360px; overflow: auto; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.bn-pop .acc-note { margin: 4px 0 0; }
.bn-n { font-size: 12px; color: var(--muted); }
.bn-del { height: 40px; }
.adm-add { justify-self: start; height: 40px; padding: 0 14px; border: 1px dashed var(--line); border-radius: 10px; background: none; color: var(--red); font-weight: 600; cursor: pointer; }
.adm-savebar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; padding: 12px 0; background: var(--sheet); border-top: 1px solid var(--line); }
.adm-savebar p { flex: 1; margin: 0; }
.adm-savebar p.err { color: var(--red); }
@media (max-width: 760px) {
  .bn { grid-template-columns: 1fr; }
  .bn-head { display: none; }
  .bn-f > span { display: block; margin-bottom: 4px; }
  .adm-tools input[name="q"] { width: 100%; }
  .adm-savebar { bottom: 64px; }
}
.vf-cam video.mirror { transform: scaleX(-1); }
.vf-cam img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; }
.vf-help { margin-top: 12px; font-size: 14px; }
.vf-help summary { cursor: pointer; color: var(--red); }
.vf-help ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); line-height: 1.5; }
.adm-table td.warn { color: var(--red); font-weight: 600; }
.chips-edit { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.adm-bank em[data-err] { display: block; font-style: normal; font-size: 12px; color: var(--red); }
.adm-bank em[data-err]:empty { display: none; }
.adm-onsite { margin-top: 12px; font-weight: 600; }
.adm-assigned p { margin: 0 0 6px; }
.adm-assigned span { display: inline-block; min-width: 90px; color: var(--muted); font-size: 13px; }
.adm-edit { height: 32px; padding: 0 10px; font-size: 13px; text-decoration: none; }

/* ---------- служебные страницы: «О нас», «Стоимость рекламы», «Кодекс», «Контакты» (оформление как у донора) ---------- */
:root { --tint: #fbeeee; --vip-bg: #f6f2ff; --top-bg: #fff8e6; }
html[data-theme="dark"] { --tint: #241a1c; --vip-bg: #211d2e; --top-bg: #2a2416; }
.pg { display: grid; gap: 32px; }
.pg em { font-style: normal; color: var(--red); }
.hero-pg { position: relative; overflow: hidden; padding: 64px 80px 56px; border-radius: 20px; background: var(--head); color: #fff; }
.hero-pg h1 { position: relative; z-index: 1; max-width: 820px; margin: 0; font-size: 44px; line-height: 1.15; font-weight: 800; }
.hero-pg em { color: #ff4a53; }
.hero-pg p { position: relative; z-index: 1; max-width: 760px; margin: 22px 0 0; font-size: 15px; line-height: 1.55; color: #e6e6e6; }
.hero-pg-arc { position: absolute; right: 40px; top: 0; width: 360px; height: 100%; fill: none; stroke: var(--red); stroke-width: 16; stroke-linecap: round; }
.pg-sec { padding: 0 80px; }
.pg-h { margin: 0; text-align: center; font-size: 24px; font-weight: 800; }
.pg-lead { max-width: 660px; margin: 10px auto 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.pg-lead a, .pg-duo a, .pg-rule a, .pg-box a { color: var(--red); }
.pg-tint { padding: 40px 80px 48px; border-radius: 20px; background: var(--tint); }
.pg-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pg-fact { grid-column: span 2; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); }
.pg-fact:nth-child(n+4) { grid-column: span 3; }
.pg-fact b { display: block; margin-bottom: 14px; color: var(--red); font-size: 22px; font-weight: 800; }
.pg-fact p { margin: 0; font-size: 15px; line-height: 1.45; }
.pg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pg-card { display: grid; align-content: start; gap: 12px; padding: 18px 18px 22px; border: 1px solid var(--line); border-radius: 10px; }
.pg-card svg { width: 30px; height: 30px; color: var(--muted); stroke-width: 1.5; }
.pg-cards-plain .pg-card svg { width: 28px; height: 28px; color: var(--red); }
.pg-card b { margin-top: 6px; font-size: 15px; }
.pg-card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pg-cards-plain .pg-card p { font-size: 15px; color: var(--ink); }
.pg-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.pg-checks div { display: flex; gap: 14px; align-items: flex-start; }
.pg-checks svg { flex: none; width: 28px; height: 28px; color: var(--red); }
.pg-checks p { margin: 0; font-size: 14px; line-height: 1.45; }
.pg-checks b { display: block; margin-bottom: 2px; font-size: 15px; }
.pg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pg-duo h2 { margin: 0 0 18px; font-size: 24px; font-weight: 800; }
.pg-duo p { margin: 0; font-size: 15px; line-height: 1.55; }
.pg-duo p + p { margin-top: 14px; }
.pg-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pg-plan { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 12px; }
.pg-plan > b { font-size: 18px; font-weight: 800; }
.pg-plan p { margin: 0; }
.pg-plan-vip { background: var(--vip-bg); border-color: #b9a6ff; box-shadow: inset 0 0 0 1px #b9a6ff; }
.pg-plan-top { background: var(--top-bg); border-color: #f4b400; box-shadow: inset 0 0 0 1px #f4b400; }
.pg-plan-auction { border: 2px solid transparent; background: linear-gradient(var(--top-bg), var(--top-bg)) padding-box, linear-gradient(135deg, #f4b400, var(--red) 55%, #b9a6ff) border-box; }
.pg-plan-price { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pg-plan-price small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.pg-plan-month { color: var(--ink-2); font-size: 14px; }
.pg-plan-d { flex: 1; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pg-plan-free { padding-top: 10px; border-top: 1px solid var(--line); color: var(--red); font-size: 13px; font-weight: 600; }
.pg-cta { text-align: center; }
.pg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.pg-btns .btn { text-decoration: none; }
.pg-toc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 80px; }
.pg-toc a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pg-toc a:hover { border-color: var(--red); }
.pg-toc b, .pg-rule h2 b { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; }
.pg-rule { max-width: 880px; padding: 0 80px; scroll-margin-top: 90px; }
.pg-rule h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 800; }
.pg-rule h2 b { width: 34px; height: 34px; font-size: 15px; }
.pg-rule ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.pg-rule p { margin: 14px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--soft); font-size: 15px; line-height: 1.5; }
/* Контакты */
.pg-contacts h1 { margin: 0 0 16px; }
.pg-contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.pg-contacts-main { display: grid; gap: 20px; }
.pg-box { padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; line-height: 1.45; }
.pg-box h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.pg-box ul { margin: 0 0 14px; padding-left: 24px; }
.pg-box p { margin: 0; }
.pg-box p + p, .pg-box p + .pg-howto, .pg-howto + p { margin-top: 14px; }
.pg-warn svg { width: 18px; height: 18px; color: #f2a100; vertical-align: -3px; }
.pg-howto { display: grid; place-items: center; }
.pg-howto-shot { position: relative; width: min(340px, 100%); aspect-ratio: 340 / 300; border-radius: 12px; background: linear-gradient(135deg, #c9a9ad, #6f4f58); overflow: hidden; }
.pg-howto-shot::after { content: ""; position: absolute; left: 50%; bottom: -40px; width: 180px; height: 220px; transform: translateX(-50%); border-radius: 90px 90px 0 0; background: rgba(255, 255, 255, .35); }
.pg-howto-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(20, 20, 20, .7); color: #fff; }
.pg-howto-btn svg { width: 18px; height: 18px; }
.pg-howto-shot > .pg-howto-btn { position: absolute; left: 14px; top: 14px; }
.pg-howto-acts { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; }
.pg-howto-warn { color: #ffb020; box-shadow: 0 0 0 3px var(--red); }
.pg-howto-hint { position: absolute; right: 8px; top: 62px; z-index: 1; padding: 3px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; }
.pg-feedback { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.pg-feedback h2 { margin: 0; }
.pg-field { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.pg-field[hidden] { display: none; }
.pg-field span { font-size: 11px; color: var(--ink-2); }
.pg-field input, .pg-field textarea { border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; min-width: 0; }
.pg-toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.pg-toggle input { width: 18px; height: 18px; accent-color: var(--red); }
.pg-count { align-self: flex-end; margin-top: -6px; font-size: 12px; color: var(--muted); }
.pg-count b { font-weight: 400; }
.pg-fb-err { margin: 0; color: var(--red); font-size: 14px; }
.pg-fb-err[hidden] { display: none; }
/* Кнопка жалобы над фото анкеты */
.gal-report { position: absolute; z-index: 3; top: 16px; right: 66px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 20, 20, .7); color: #ffb020; }
.gal-report:hover { background: var(--red); color: #fff; }
@media (max-width: 1100px) {
  .hero-pg { padding: 40px 28px; }
  .pg-sec, .pg-tint, .pg-toc, .pg-rule { padding-left: 24px; padding-right: 24px; }
  .pg-cards, .pg-checks, .pg-plans, .pg-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-contacts-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero-pg { padding: 32px 18px; }
  .hero-pg h1 { font-size: 28px; overflow-wrap: anywhere; }
  .hero-pg-arc { width: 200px; right: -50px; opacity: .45; }
  .pg { gap: 26px; }
  .pg-sec, .pg-toc, .pg-rule { padding-left: 0; padding-right: 0; }
  .pg-tint { padding: 28px 16px; }
  .pg-h, .pg-duo h2 { font-size: 21px; }
  .pg-facts { grid-template-columns: 1fr; }
  .pg-fact, .pg-fact:nth-child(n+4) { grid-column: auto; }
  .pg-cards { gap: 10px; }
  .pg-card { padding: 14px; }
  .pg-checks, .pg-duo, .pg-plans, .pg-toc { grid-template-columns: 1fr; gap: 18px; }
  .pg-toc { gap: 8px; }
}
.adm-users td:nth-child(2), .adm-users td:nth-child(3) { white-space: normal; overflow-wrap: anywhere; min-width: 150px; }
.adm-users td:last-child { white-space: normal; }
.adm-users .adm-row-btns { flex-wrap: wrap; min-width: 170px; }
.adm-users .adm-row-btns a { display: inline-grid; place-items: center; }
