/* Единая таблица стилей обоих сайтов: квиз обязан выглядеть продолжением
   каталога, поэтому токены, кнопки, чипы и карточки у них общие.

   Тема по умолчанию — СВЕТЛАЯ, независимо от системной настройки. Тёмная
   включается только вручную (кнопка в шапке ставит data-theme="dark" на <html>
   и запоминает выбор). Автопереключения по prefers-color-scheme нет намеренно:
   витрина должна выглядеть одинаково у всех, кому дали ссылку.

   Нативных контролов на страницах нет: чекбоксы, выпадающие списки, поиск,
   аккордеоны и полосы прокрутки нарисованы свои. Разметка при этом остаётся
   обычной формой — без JS всё работает, просто без подсказок и анимации.

   Порядок: токены → база → анимации → элементы → контролы → шапка →
   каталог → анкета → квиз → служебное → адаптив. */

/* ── Токены ───────────────────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --line: #e7eaf3;
  --line-strong: #d6dae8;
  --text: #12131a;
  --muted: #626b82;
  --accent: #7b5cff;
  --accent-2: #ff5c9d;
  --accent-soft: #f1edff;
  --accent-ink: #ffffff;
  --free: #12945f;
  --shadow-s: 0 1px 2px rgba(18, 19, 26, .05), 0 2px 8px rgba(18, 19, 26, .04);
  --shadow-m: 0 10px 30px rgba(18, 19, 26, .10);
  --shadow-l: 0 20px 60px rgba(18, 19, 26, .16);
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-full: 999px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1340px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0e16;
  --bg-soft: #12131f;
  --surface: #171a28;
  --surface-2: #1f2233;
  --line: #292d42;
  --line-strong: #3a3f5a;
  --text: #f2f3f8;
  --muted: #9aa1bd;
  --accent: #8f74ff;
  --accent-2: #ff6ea8;
  --accent-soft: rgba(143, 116, 255, .16);
  --free: #3ddc9a;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-m: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-l: 0 24px 70px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ── База ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
main { display: block; min-height: 60vh; }

/* Свои фокус-кольца вместо системных, но НЕ отключаем видимость фокуса. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

/* Нативные украшения контролов убираем — вместо них рисуем свои. */
input, button, select, textarea { font: inherit; color: inherit; }
input[type="search"] { appearance: none; -webkit-appearance: none; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button { -webkit-appearance: none; display: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

/* Полосы прокрутки: тонкие, в цвет темы. */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong); border-radius: var(--r-full);
  border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface); padding: 10px 16px; border-radius: var(--r-s); box-shadow: var(--shadow-m);
}
.skip:focus { left: 8px; }

/* ── Анимации ─────────────────────────────────────────────────────────────── */
@keyframes fade-up  { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-in  { from { opacity: 0; } }
@keyframes pop-in   { from { opacity: 0; transform: scale(.96); } }
@keyframes menu-in  { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes shimmer  { to { background-position: -200% 0; } }
@keyframes bar-grow { from { transform: scaleX(0); } }

/* Карточки въезжают лесенкой. Задержки — через :nth-child, а не инлайновым
   style: инлайновые стили режет CSP. */
.grid > .card, .qopts > .qopt { animation: fade-up .42s var(--ease) both; }
.grid > .card:nth-child(1), .qopts > .qopt:nth-child(1) { animation-delay: .01s; }
.grid > .card:nth-child(2), .qopts > .qopt:nth-child(2) { animation-delay: .05s; }
.grid > .card:nth-child(3), .qopts > .qopt:nth-child(3) { animation-delay: .09s; }
.grid > .card:nth-child(4), .qopts > .qopt:nth-child(4) { animation-delay: .13s; }
.grid > .card:nth-child(5), .qopts > .qopt:nth-child(5) { animation-delay: .17s; }
.grid > .card:nth-child(6)    { animation-delay: .20s; }
.grid > .card:nth-child(7)    { animation-delay: .23s; }
.grid > .card:nth-child(8)    { animation-delay: .26s; }
.grid > .card:nth-child(9)    { animation-delay: .28s; }
.grid > .card:nth-child(10)   { animation-delay: .30s; }
.grid > .card:nth-child(n+11) { animation-delay: .32s; }

.hero__in > * { animation: fade-up .5s var(--ease) both; }
.hero__in > *:nth-child(2) { animation-delay: .06s; }
.hero__in > *:nth-child(3) { animation-delay: .12s; }
.hero__in > *:nth-child(4) { animation-delay: .18s; }
.hero__in > *:nth-child(5) { animation-delay: .24s; }

/* Блоки, которые проявляются при прокрутке (класс is-in ставит motion.js). */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Аварийный показ: без перехода вообще — на случай, когда анимации в браузере
   не идут (фоновая вкладка, webview). Видимость контента не должна зависеть
   от того, доиграл ли переход. */
.reveal.is-shown { opacity: 1; transform: none; transition: none; }

/* ── Кнопки, чипы, ссылки ─────────────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 1px solid transparent; border-radius: var(--r-full);
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: var(--shadow-s); }
.btn--primary:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
/* Блик пробегает по главной кнопке при наведении. */
.btn--primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); transition: left .55s var(--ease);
}
.btn--primary:hover::after { left: 115%; }
.btn--accent { background: var(--text); color: var(--bg); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--lg { padding: 13px 26px; font-size: 16px; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
.link--muted { color: var(--muted); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text);
  animation: pop-in .22s var(--ease) both;
  transition: border-color .14s var(--ease), color .14s var(--ease), background .14s var(--ease), transform .14s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip--active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }
.chip--clear { color: var(--muted); border-style: dashed; }
.chip__x { font-size: 15px; line-height: 1; opacity: .7; transition: transform .14s var(--ease); }
.chip:hover .chip__x { transform: rotate(90deg); }

.price { font-weight: 700; font-size: 15px; }
.price--free { color: var(--free); }

.ico-verified { width: 15px; height: 15px; flex: none; fill: var(--accent); vertical-align: -2px; }
/* Подсказка привязана к строке с именем, а не к значку: в узкой карточке с
   overflow:hidden от значка она вылезала бы за край и обрезалась. */
.verified { display: inline-flex; cursor: help; outline-offset: 2px; }
.verified::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 5;
  max-width: 100%; width: max-content; padding: 5px 9px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; text-align: left;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-m);
  opacity: 0; transform: translateY(3px); pointer-events: none;
  transition: opacity .14s var(--ease), transform .14s var(--ease);
}
.verified:hover::after, .verified:focus::after { opacity: 1; transform: none; }
.profile__name, .spot__name { position: relative; }
/* В Pick of the Hour подсказка открывается вниз: лента на телефоне обрезает всё, что выше неё. */
.spot__name .verified::after { bottom: auto; top: calc(100% + 4px); }
.profile__name .verified { margin-left: 8px; vertical-align: 3px; }
.profile__name .ico-verified { width: 22px; height: 22px; }
.ico-verified__tick { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Свой выпадающий список (вместо <select>) ─────────────────────────────── */
.sel { position: relative; display: inline-flex; }
/* Нативный список остаётся в форме (его читает сервер), но прячется, как только
   JS построил свой. Без JS — виден и полностью рабочий. */
.sel.is-upgraded .sel__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sel__native {
  appearance: none; -webkit-appearance: none;
  padding: 9px 34px 9px 14px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer;
}
.sel__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
  transition: border-color .14s var(--ease), background .14s var(--ease), box-shadow .14s var(--ease);
}
.sel__btn:hover { border-color: var(--line-strong); }
.sel.is-open .sel__btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel__chev {
  width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s var(--ease);
}
.sel.is-open .sel__chev { transform: rotate(180deg); }
.sel__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: max(100%, 210px); padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-l); animation: menu-in .16s var(--ease);
  max-height: 60vh; overflow: auto;
}
.sel__menu[hidden] { display: none; }
.sel__opt {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border-radius: var(--r-s); font-size: 14px; text-align: left; cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.sel__opt:hover, .sel__opt.is-active { background: var(--surface-2); }
.sel__opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.sel__opt[aria-selected="true"]::after {
  content: ''; margin-left: auto; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px);
}

/* ── Поиск с подсказками ──────────────────────────────────────────────────── */
.search { flex: 1 1 auto; position: relative; max-width: 520px; }
.search__field { position: relative; display: flex; align-items: center; }
.search__icon {
  position: absolute; left: 13px; width: 17px; height: 17px; pointer-events: none;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
  transition: stroke .14s var(--ease);
}
.search__input {
  width: 100%; padding: 10px 38px 10px 38px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--bg-soft); color: var(--text);
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease), background .14s var(--ease);
}
.search__input::placeholder { color: var(--muted); }
.search__input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search:focus-within .search__icon { stroke: var(--accent); }
.search__clear {
  position: absolute; right: 10px; width: 22px; height: 22px; border-radius: var(--r-full);
  display: none; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--muted); font-size: 14px; line-height: 1;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.search__clear:hover { background: var(--accent-soft); color: var(--accent); }
.search.has-value .search__clear { display: inline-flex; }
.search__go { display: none; }

.sug {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--shadow-l);
  animation: menu-in .16s var(--ease); max-height: min(66vh, 420px); overflow: auto;
}
.sug[hidden] { display: none; }
.sug__group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sug__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px;
  border-radius: var(--r-s); text-align: left; cursor: pointer;
  transition: background .12s var(--ease);
}
.sug__item:hover, .sug__item.is-active { background: var(--surface-2); }
.sug__ava {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-s); overflow: hidden;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(150deg, hsl(var(--h, 262) 70% 58%), hsl(calc(var(--h, 262) + 42) 72% 46%));
}
.sug__ava img { width: 100%; height: 100%; object-fit: cover; }
.sug__text { min-width: 0; }
.sug__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug__meta { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sug__meta--free { color: var(--free); }
.sug__empty { padding: 14px 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* ── Шапка ────────────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(18, 19, 26, .05); }
.hdr__in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__sub { font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.brand__mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .25s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.hdr--quiz { justify-content: center; padding: 14px var(--gutter); display: flex; }
.hdr__nav { display: flex; gap: 18px; font-weight: 600; font-size: 14px; color: var(--muted); }
.hdr__nav a { position: relative; padding: 2px 0; transition: color .14s var(--ease); }
.hdr__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px; transform: scaleX(0); transition: transform .2s var(--ease);
}
.hdr__nav a:hover { color: var(--text); }
.hdr__nav a:hover::after { transform: scaleX(1); }
.hdr__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.iconbtn {
  width: 36px; height: 36px; border-radius: var(--r-full); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; background: var(--surface);
  transition: border-color .14s var(--ease), background .14s var(--ease), transform .14s var(--ease);
}
.iconbtn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: none; }
:root[data-theme="dark"] .theme__moon { display: block; }
.hdr__searchbtn { display: none; }
.hdr__burger { display: none; flex-direction: column; }
.hdr__burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.hdr__burger span + span { margin-top: 4px; }
body.menu-open .hdr__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hdr__burger span:nth-child(2) { opacity: 0; }
body.menu-open .hdr__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Секции ───────────────────────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { font-size: clamp(19px, 2.4vw, 24px); }

/* ── Главная ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 7vw, 82px) var(--gutter) clamp(28px, 4vw, 48px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; left: 50%; top: -220px; width: 900px; height: 520px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
}
.hero__in { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.hero__title { font-size: clamp(30px, 5.5vw, 52px); letter-spacing: -.03em; }
.hero__sub { margin-top: 14px; font-size: clamp(15px, 2vw, 18px); color: var(--muted); }
.hero__search { display: flex; gap: 10px; margin: 26px auto 0; max-width: 580px; }
/* Поиск на главной: то же поле, что в шапке, но с видимой кнопкой отправки. */
.search--hero { display: flex; gap: 10px; max-width: none; width: 100%; }
.search--hero .search__field { flex: 1; }
.search--hero .search__input { padding: 13px 38px 13px 42px; font-size: 16px; box-shadow: var(--shadow-s); }
.search--hero .search__icon { left: 15px; }
.search--hero .search__clear { right: 12px; }
.search--hero .search__go {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px;
  border-radius: var(--r-full); background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-weight: 600; box-shadow: var(--shadow-s);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.search--hero .search__go:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.quick__row + .quick__row { margin-top: 22px; }
.quick__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }

/* ── Выдача ───────────────────────────────────────────────────────────────── */
.layout {
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 56px;
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start;
}
.layout--wide { grid-template-columns: minmax(0, 1fr); }
.layout__side { position: sticky; top: 76px; }
.layout__main { transition: opacity .18s var(--ease); }
.layout__main[aria-busy="true"] { opacity: .6; }
.results__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.results__title { font-size: clamp(20px, 3vw, 27px); }
.results__count { color: var(--muted); font-size: 14px; margin-top: 4px; }
.results__tools { display: flex; align-items: center; gap: 10px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.filters__open { display: none; }
.chips + .grid { margin-top: 16px; }

/* ── Панель фильтров ──────────────────────────────────────────────────────── */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 16px; box-shadow: var(--shadow-s);
}
.filters__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.filters__head h2 { font-size: 15px; margin-right: auto; }
.filters__close { display: none; width: 32px; height: 32px; }
.filters__close svg { width: 15px; height: 15px; stroke-width: 2.2; }
.filters__foot { display: none; }
.filters__reset { font-size: 13px; color: var(--muted); transition: color .14s var(--ease); }
.filters__reset:hover { color: var(--accent); }
.fgroup { border-top: 1px solid var(--line); padding: 10px 0; }
.fgroup__head { cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; list-style: none; }
.fgroup__head::-webkit-details-marker { display: none; }
.fgroup__head::after {
  content: ''; margin-left: auto; width: 7px; height: 7px;
  border: solid var(--muted); border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease);
}
.fgroup[open] > .fgroup__head::after { transform: rotate(-135deg) translate(-3px, -3px); }
.fgroup[open] > .fgroup__list { animation: fade-up .22s var(--ease) both; }
.fgroup__n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  animation: pop-in .2s var(--ease) both;
}
.fgroup__list { margin-top: 8px; display: grid; gap: 2px; }

/* Свой чекбокс: нативный убран с глаз, но остаётся в форме и ловит фокус. */
.opt__input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--r-s);
  font-size: 14px; cursor: pointer; transition: background .12s var(--ease), color .12s var(--ease);
}
.opt:hover { background: var(--surface-2); }
.opt__box {
  width: 18px; height: 18px; flex: none; border: 1.6px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); position: relative;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.opt:active .opt__box { transform: scale(.9); }
.opt__input:checked + .opt .opt__box { background: var(--accent); border-color: var(--accent); }
.opt__input:checked + .opt .opt__box::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg);
  animation: pop-in .18s var(--ease) both;
}
.opt__input:checked + .opt { color: var(--accent); font-weight: 600; }
.opt__input:focus-visible + .opt { outline: 2px solid var(--accent); outline-offset: 1px; }
.opt__input:disabled + .opt { opacity: .38; cursor: not-allowed; }
.opt__count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters__apply { width: 100%; }

/* ── Карточки ─────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-s);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card__media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__img { transform: scale(1.05); }
.card__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -.02em;
  background: linear-gradient(150deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 42) 72% 46%));
}
/* Палитра плейсхолдеров: класс вместо инлайнового style — иначе его режет CSP.
   Оттенок выбирается по слагу анкеты, поэтому у карточки он всегда один и тот же. */
.ph-0  { --h: 262; } .ph-1  { --h: 292; } .ph-2  { --h: 322; } .ph-3  { --h: 352; }
.ph-4  { --h: 18;  } .ph-5  { --h: 38;  } .ph-6  { --h: 96;  } .ph-7  { --h: 152; }
.ph-8  { --h: 178; } .ph-9  { --h: 202; } .ph-10 { --h: 224; } .ph-11 { --h: 244; }
.card__badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(10, 12, 20, .62); color: #fff; backdrop-filter: blur(6px);
}
.card__badge--free { background: var(--free); }
.card__badge--top { left: auto; right: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
/* Hot: большая плашка на фото и цветная рамка всей карточки. Плашка с белой обводкой,
   чтобы читалась на любом фото; рамка — через border-box, у CSS-border нет градиента. */
.card__badge--hot {
  left: auto; right: 10px; padding: 6px 13px; font-size: 14px; letter-spacing: .05em;
  background: linear-gradient(135deg, #ff8a00, #ff2e63); border: 2px solid #fff; backdrop-filter: none;
  box-shadow: 0 4px 16px rgba(255, 46, 99, .55);
}
.card--hot {
  border: 3px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #ff8a00, #ff2e63) border-box;
  box-shadow: 0 6px 22px rgba(255, 46, 99, .28);
}
.card--hot:hover { border-color: transparent; box-shadow: 0 12px 32px rgba(255, 46, 99, .38); }
.card__hotnote { margin-top: 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: #e8214f; }
/* Карточка-загадка в конце списка: тот же приём рамки, что у Hot, но фиолетовый. */
.card--mystery {
  border: 3px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #b46bff, #5b21d6) border-box;
  box-shadow: 0 6px 22px rgba(123, 60, 255, .3);
}
.card--mystery:hover { border-color: transparent; box-shadow: 0 12px 32px rgba(123, 60, 255, .42); }
.card__mystery-art { display: block; width: 100%; height: 100%; }
.card__badge--mystery { background: linear-gradient(135deg, #b46bff, #5b21d6); border: 2px solid #fff; backdrop-filter: none; }
.card--mystery .card__name { font-size: 18px; font-weight: 800; color: #6d28d9; }
:root[data-theme="dark"] .card--mystery .card__name { color: #c4a1ff; }
.card__mystery-note { margin-top: 4px; font-size: 13px; color: var(--muted); }
:root[data-theme="dark"] .card__hotnote { color: #ff6b8e; }
.card__body { padding: 12px 14px 8px; flex: 1; }
.card__name { position: relative; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.card__name a { transition: color .14s var(--ease); }
.card__name a:hover { color: var(--accent); }
.card__handle { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card__tagline {
  margin-top: 7px; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.card__tags li { font-size: 11px; padding: 3px 8px; border-radius: var(--r-full); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 14px; }

/* Скелетоны на время подгрузки новой выборки. */
.skel {
  border-radius: var(--r-l); border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface-2) 20%, var(--surface) 40%, var(--surface-2) 60%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.skel-card { aspect-ratio: 3 / 4.55; }

/* ── Пустая выдача, пагинация ─────────────────────────────────────────────── */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-l);
  animation: fade-in .3s var(--ease) both;
}
.empty--page { max-width: 560px; margin: 60px auto; }
.empty__title { font-size: 18px; font-weight: 700; }
.empty__hint { color: var(--muted); margin: 8px 0 18px; }
.pg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pg__item {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
  transition: border-color .14s var(--ease), color .14s var(--ease), transform .14s var(--ease);
}
.pg__item:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pg__item--current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pg__gap { align-self: center; color: var(--muted); padding: 0 4px; }

/* ── Анкета ───────────────────────────────────────────────────────────────── */
.profile { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.profile__cover {
  position: relative; overflow: hidden;
  height: clamp(120px, 22vw, 210px); border-radius: 0 0 var(--r-l) var(--r-l);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  animation: fade-in .5s var(--ease) both;
}
.profile__cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Аватар «выныривает» на обложку, а текст и кнопка остаются НИЖЕ её края:
   раньше имя лежало прямо на картинке и читалось плохо. */
.profile__top { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: end; margin-top: -46px; }
.profile__id, .profile__cta { padding-top: 50px; }
.profile__ava {
  width: 132px; height: 132px; border-radius: 26px; overflow: hidden; position: relative;
  border: 4px solid var(--bg); background: var(--surface-2); box-shadow: var(--shadow-m);
  animation: pop-in .4s var(--ease) both;
}
.profile__ava img { width: 100%; height: 100%; object-fit: cover; }
.profile__ava .card__ph { font-size: 42px; }
.profile__id { padding-bottom: 2px; animation: fade-up .45s var(--ease) .06s both; }
.profile__name { font-size: clamp(24px, 4vw, 34px); }
.profile__handle { color: var(--muted); font-size: 15px; margin-top: 2px; }
.profile__tagline { margin-top: 8px; font-size: 15px; }
.profile__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-bottom: 2px; animation: fade-up .45s var(--ease) .12s both; }
.profile__chips { margin-top: 22px; }
.profile__bio { margin-top: 26px; }
.profile__bio h2 { font-size: 17px; margin-bottom: 8px; }
.profile__bio p { color: var(--muted); }
.facts {
  margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface);
}
/* Разделители — настоящие границы ячеек. Через «зазор сетки в цвет линии»
   пустая ячейка последнего ряда превращалась в серую дыру. */
.facts__row { padding: 12px 14px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts__row:first-child { border-left: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.gallery { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery__item { aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.profile__foot { margin-top: 30px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.profile__note { font-size: 12.5px; color: var(--muted); }

.sticky-cta {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 30;
  display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full);
  box-shadow: var(--shadow-l); max-width: calc(100% - 24px);
}
.sticky-cta__who { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { padding: 9px 18px; font-size: 14px; }
body.show-sticky .sticky-cta { display: flex; animation: slide-up .28s var(--ease) both; }

/* ── Квиз ─────────────────────────────────────────────────────────────────── */
.page-quiz {
  background:
    radial-gradient(900px 480px at 50% -12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
}
.page-quiz main { display: flex; align-items: center; min-height: calc(100vh - 210px); }
.quiz { padding: clamp(20px, 5vw, 48px) var(--gutter) 60px; width: 100%; }
.quiz__in { max-width: 760px; margin: 0 auto; text-align: center; }
.quiz__title { font-size: clamp(24px, 4.6vw, 38px); letter-spacing: -.03em; animation: fade-up .45s var(--ease) both; }
.quiz__sub { margin-top: 10px; color: var(--muted); font-size: clamp(14px, 2vw, 17px); animation: fade-up .45s var(--ease) .06s both; }
.qprog { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.qprog__dots { display: flex; gap: 6px; }
.qprog__dot { width: 36px; height: 5px; border-radius: var(--r-full); background: var(--line); }
.qprog__dot.is-done {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left; animation: bar-grow .45s var(--ease) both;
}
.qprog__text { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.qopts { display: grid; gap: 14px; margin-top: 28px; }
.qopts--few { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.qopts--many { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.qopt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 14px 18px; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-l); box-shadow: var(--shadow-s);
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.qopt:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-m); }
.qopt.is-picked { transform: translateY(-2px) scale(.985); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-m); }
/* height: auto обязателен: атрибут height="480" у <img> иначе становится
   CSS-высотой, и aspect-ratio не срабатывает — карточка тянется в полосу. */
.qopt__img, .qopt__ph { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: var(--r-m); object-fit: cover; }
.qopt__ph { background: linear-gradient(150deg, hsl(var(--h) 72% 60%), hsl(calc(var(--h) + 40) 74% 46%)); }
.qopt__label { font-weight: 700; font-size: 15px; }
.qopt__hint { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.quiz__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; font-size: 14px; }

/* ── Юрстраницы ───────────────────────────────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.prose h1 { font-size: clamp(26px, 4vw, 34px); }
.prose h2 { font-size: 17px; margin-top: 26px; }
.prose p { margin-top: 8px; color: var(--muted); }
.prose__meta { font-size: 13px; color: var(--muted); margin-top: 8px; }


/* ── Главная без пропуска: квиз, ниже текст ───────────────────────────────── */
.page-quiz--seo main { display: block; min-height: 0; }
.page-quiz--seo .quiz { padding-bottom: 28px; }
.quiz__seoh1 { font-size: clamp(14px, 1.8vw, 16px); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 8px; }
.seohead__cta { margin-top: 16px; }

/* ── Pick of the Hour ─────────────────────────────────────────────────────── */
.spot { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter) 0; }
.page-model .spot { padding-bottom: 16px; }
.spot__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.spot__title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.spot__timer { font-size: 13px; color: var(--muted); white-space: nowrap; }
.spot__timer b { color: var(--text); font-variant-numeric: tabular-nums; }
.spot__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.spot__item {
  display: flex; gap: 18px; padding: 12px; border-radius: var(--r-l);
  border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface); box-shadow: var(--shadow-s);
}
.spot__media { position: relative; flex: 0 0 52%; aspect-ratio: 4 / 5; max-height: 340px; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.spot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.spot__img.is-on { opacity: 1; }
.spot__badge {
  position: absolute; left: 10px; top: 10px; padding: 4px 11px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.spot__body { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.spot__name { display: flex; align-items: center; gap: 6px; width: 100%; font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.spot__name > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot__name > a:hover { color: var(--accent); }
.spot__handle { font-size: 14px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.spot__profile { font-size: 14px; }

/* ── Листание фото на карточке ────────────────────────────────────────────── */
.card__mediawrap { position: relative; touch-action: pan-y; }
.card__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border: 0; padding: 0 0 3px;
  border-radius: 50%; font-size: 24px; line-height: 1; color: #fff; background: rgba(10, 12, 20, .55); backdrop-filter: blur(4px);
  cursor: pointer; opacity: 0; transition: opacity .15s var(--ease), background .15s var(--ease);
}
.card__nav--prev { left: 8px; }
.card__nav--next { right: 8px; }
.card__nav:hover { background: rgba(10, 12, 20, .8); }
.card__nav:focus-visible, .card:hover .card__nav { opacity: 1; }
.card__dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.card__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .5); }
.card__dots i.is-on { background: #fff; }
/* На экранах без наведения стрелки видны всегда: иначе о них не узнать. */
@media (hover: none) { .card__nav { opacity: 1; width: 30px; height: 30px; font-size: 21px; } }

/* ── Акция с обратным отсчётом ────────────────────────────────────────────── */
.promo { margin-top: 9px; padding: 6px 9px; border-radius: var(--r-s); font-size: 12px; color: var(--text); background: var(--accent-soft); }
.promo b { font-variant-numeric: tabular-nums; }

/* ── Тексты и категории для поисковиков ───────────────────────────────────── */
.section--tight { padding-top: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--accent); }
.seohead { padding-bottom: 20px; }
.seohead__title { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; }
.seohead__lead { margin-top: 10px; max-width: 760px; color: var(--muted); }
.seotext { max-width: 860px; }
.seotext h2 { font-size: clamp(18px, 2.2vw, 22px); margin-top: 24px; }
.seotext h2:first-child { margin-top: 0; }
.seotext p { margin-top: 8px; color: var(--muted); }
.cats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); font-weight: 600; font-size: 14px; transition: border-color .14s var(--ease), color .14s var(--ease); }
.cat:hover { border-color: var(--accent); color: var(--accent); }
.faq { max-width: 860px; }
.faq__item { border-top: 1px solid var(--line); padding: 13px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; font-weight: 600; }
.faq__item p { margin-top: 8px; color: var(--muted); }

/* ── Подвал ───────────────────────────────────────────────────────────────── */
.ftr { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; }
.ftr__in { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter); display: grid; gap: 12px; }
.ftr__legal { font-size: 12.5px; color: var(--muted); max-width: 760px; }
.ftr__legal strong { color: var(--text); }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; font-weight: 600; }
.ftr__nav a { transition: color .14s var(--ease); }
.ftr__nav a:hover { color: var(--accent); }
.ftr__copy { font-size: 12.5px; color: var(--muted); }

/* ── Модалка 18+ ──────────────────────────────────────────────────────────── */
.agegate {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 9, 16, .72); backdrop-filter: blur(7px);
  animation: fade-in .25s var(--ease) both;
}
.agegate[hidden] { display: none; }
.agegate__box {
  max-width: 460px; background: var(--surface); border-radius: var(--r-l); padding: 28px;
  text-align: center; box-shadow: var(--shadow-l); animation: pop-in .3s var(--ease) both;
}
.agegate__badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 13px;
}
.agegate__box h2 { margin: 14px 0 10px; font-size: 22px; }
.agegate__box p { color: var(--muted); font-size: 14px; }
.agegate__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
body.is-gated { overflow: hidden; }

/* ── Согласие на cookie (Consent Mode) ───────────────────────────────────── */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; max-width: 760px; margin: 0 auto;
  padding: 14px 18px; border-radius: var(--r-l);
  /* Полупрозрачная плашка: контент под ней остаётся виден, размытие — чтобы
     текст читался на любой подложке. */
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-m); animation: pop-in .3s var(--ease) both;
}
.consent[hidden] { display: none; }
body.consent-open { padding-bottom: 104px; }
.consent__text { margin: 0; flex: 1 1 300px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.consent__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent__row { display: flex; gap: 8px; margin-left: auto; }

/* ── Адаптив ──────────────────────────────────────────────────────────────── */

/* Планшет и уже: панель фильтров уезжает в выдвижной ящик. */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .layout__side {
    position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(360px, 92vw);
    background: var(--surface);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    overflow: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column;
    transform: translateX(101%); transition: transform .26s var(--ease);
    box-shadow: var(--shadow-l);
  }
  body.filters-open .layout__side { transform: none; }
  /* Фон под ящиком не должен прокручиваться вместе с ним. */
  body.filters-open { overflow: hidden; }
  body.filters-open::after {
    content: ''; position: fixed; inset: 0; z-index: 70; background: rgba(8, 9, 16, .45);
    animation: fade-in .2s var(--ease) both;
  }
  .filters { border: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; flex: 1; }
  .filters__head {
    position: sticky; top: 0; z-index: 2; margin: 0 0 4px;
    padding: 2px 0 10px; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .filters__close { display: inline-flex; }
  /* «Показать N» приклеена ко дну ящика: докручивать до неё не нужно. */
  .filters__foot {
    display: block; position: sticky; bottom: 0; margin-top: auto;
    padding: 12px 0 2px; background: linear-gradient(to top, var(--surface) 72%, transparent);
  }
  .filters__open { display: inline-flex; }
}

/* Телефон. */
@media (max-width: 720px) {
  /* Шапка: логотип и иконки в одну строку, поле поиска раскрывается второй
     строкой — в 390 px оно иначе обрезается до нечитаемого огрызка. */
  .hdr__in { flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 15px; margin-right: auto; }
  .brand__sub { font-size: 10px; }
  /* На телефоне две карточки идут лентой вбок: столбиком они съели бы весь первый экран. */
  .spot__list { grid-template-columns: repeat(2, minmax(300px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .spot__item { scroll-snap-align: start; scroll-margin-left: var(--gutter); gap: 12px; padding: 10px; }
  .spot__media { flex-basis: 50%; }
  /* Топ на телефоне — лента вбок: три строки столбиком съели бы первый экран. */
  .brand__mark { width: 18px; height: 18px; border-radius: 6px; }
  .hdr__tools { margin-left: 0; gap: 6px; }
  .hdr__searchbtn { display: inline-flex; }
  .hdr .search { order: 10; flex: 1 0 100%; max-width: none; display: none; }
  body.search-open .hdr .search { display: block; animation: fade-up .2s var(--ease) both; }
  .hdr__burger { display: inline-flex; }

  .hdr__nav {
    order: 11; position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 14px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
  }
  .hdr__nav.is-open { display: flex; animation: fade-up .2s var(--ease) both; }
  .hdr__nav a { padding: 11px 0; font-size: 15px; color: var(--text); }
  .hdr__nav a::after { display: none; }

  /* Главная: поле и кнопка в столбик, действия во всю ширину. */
  .hero { padding-bottom: 16px; }
  .hero__search { max-width: none; }
  .search--hero { flex-direction: column; }
  .search--hero .search__go { width: 100%; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .section { padding: 24px var(--gutter); }
  .section__head { margin-bottom: 12px; }

  /* Выдача. */
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .results__head { flex-direction: column; align-items: stretch; gap: 10px; }
  .results__tools { justify-content: space-between; gap: 8px; }
  .sort__label { display: none; }
  .sort, .sel { flex: 1; }
  .sel__btn { width: 100%; justify-content: space-between; }
  .filters__open { flex: 0 0 auto; }

  /* Карточка: подпись в одну строку. Город с хэндлом и возрастом в 150 px не
     помещается и переносится — на витрине это выглядело как брак вёрстки. */
  .card__body { padding: 10px 11px 6px; }
  .card__foot { padding: 8px 11px 12px; }
  .card__handle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card__loc { display: none; }
  .card__tags { flex-wrap: nowrap; overflow: hidden; }
  .card__tags li:nth-child(n+3) { display: none; }
  .card__ph { font-size: 34px; }

  /* Анкета: аватар по центру, всё остальное — столбиком. */
  .profile__top { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; margin-top: -52px; }
  .profile__id, .profile__cta { padding-top: 0; }
  .profile__cta { align-items: stretch; width: 100%; }
  .profile__cta .btn { width: 100%; }
  .profile__chips { justify-content: center; }
  .profile__ava { width: 104px; height: 104px; border-radius: 22px; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(46%, 1fr)); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

  /* Липкая кнопка не должна закрывать конец страницы. */
  .sticky-cta { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  body.show-sticky { padding-bottom: 72px; }

  /* Квиз. */
  .quiz__foot { justify-content: center; gap: 20px; }
  .quiz__foot > span:empty { display: none; }
  .page-quiz main { min-height: calc(100vh - 260px); }

  .agegate__box { padding: 22px 18px; }
  .agegate__row { flex-direction: column; }
  .agegate__row .btn { width: 100%; }

  .consent { left: 10px; right: 10px; flex-direction: column; align-items: stretch; padding: 14px; }
  .consent__text { flex: 0 0 auto; }
  body.consent-open { padding-bottom: 180px; }
  .consent__row { margin-left: 0; }
  .consent__row .btn { flex: 1; }

  .ftr__in { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
}

/* Совсем узкие экраны (от 320 px). */
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__tagline { -webkit-line-clamp: 2; font-size: 12.5px; }
  .card__name { font-size: 14px; }
  .btn--sm { padding: 6px 12px; font-size: 12.5px; }
  .card__badge { padding: 3px 8px; font-size: 10px; }
  .qopts--few, .qopts--many { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qopt { padding: 12px 10px 14px; }
  .qopt__label { font-size: 14px; }
  .facts { grid-template-columns: 1fr; }
  .facts__row { border-left: 0; }
  .facts__row:first-child { border-top: 0; }
}

/* Уважаем системную настройку «меньше движения». */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
