/* Досуг39 — прототип дизайна v1 (NEO/Opus, 18.11.2026)
   Бренд сохранён: губы + «ДОСУГ & WOMAN 18+», розовый #EB2E81, кремовый #FFFBF4. */

/* Onest — свой woff2 (кириллица + латиница), без Google Fonts */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/onest-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; }
/* Переходы между страницами как в приложении (cross-document View Transitions) */
@view-transition { navigation: auto; }

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --pink: #EB2E81;
  --pink-600: #D01A6B;
  --pink-50: #FDE8F1;
  --coral: #FF7A59;
  --gold: #F4B740;
  --green: #18C07A;
  --blue: #2AABEE;
  --grad: linear-gradient(135deg, #EB2E81 0%, #FF4F7B 48%, #FF8A4C 100%);
  --grad-soft: linear-gradient(135deg, #FDE3EE 0%, #FFE9DF 100%);

  --bg: #FFFBF4;
  --surface: #FFFFFF;
  --surface-2: #F6EFE7;
  --surface-3: #EFE6DC;
  --ink: #17141C;
  --ink-2: #3A3540;
  --muted: #7A7380;
  --line: rgba(23, 20, 28, .08);
  --line-2: rgba(23, 20, 28, .14);
  --glass: rgba(255, 251, 244, .72);

  --shadow-sm: 0 1px 2px rgba(23,20,28,.04), 0 2px 8px rgba(23,20,28,.04);
  --shadow: 0 6px 24px -8px rgba(23,20,28,.14), 0 2px 6px rgba(23,20,28,.04);
  --shadow-lg: 0 24px 60px -18px rgba(60,10,35,.28), 0 6px 16px -6px rgba(23,20,28,.10);
  --shadow-pink: 0 12px 30px -10px rgba(235,46,129,.55);

  --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --spring: cubic-bezier(.2, .9, .25, 1.15);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D0B10;
  --surface: #17141C;
  --surface-2: #211D27;
  --surface-3: #2A2531;
  --ink: #F7F2F8;
  --ink-2: #DCD4DF;
  --muted: #A49BAA;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --glass: rgba(13,11,16,.7);
  --pink-50: rgba(235,46,129,.16);
  --grad-soft: linear-gradient(135deg, rgba(235,46,129,.18) 0%, rgba(255,138,76,.14) 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 8px 28px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 28px 70px -20px rgba(0,0,0,.75);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 18px; height: 18px; }
svg.i.xs { width: 15px; height: 15px; }
svg.i.f { fill: currentColor; stroke: none; }
::selection { background: var(--pink); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Каркас ---------- */
.app { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
@media (min-width: 1024px) { .app { grid-template-columns: 256px minmax(0, 1fr); } }
.main { min-width: 0; }

.rail { display: none; }
@media (min-width: 1024px) {
  .rail {
    display: flex; flex-direction: column; gap: 2px;
    position: sticky; top: 0; height: 100dvh; padding: 22px 14px 18px;
    border-right: 1px solid var(--line); view-transition-name: rail;
  }
}
.rail .logo { padding: 4px 10px 22px; }
.nav-a {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px;
  font-weight: 500; color: var(--ink-2); position: relative;
  transition: background-color .2s, color .2s, transform .25s var(--spring);
}
.nav-a:hover { background: var(--surface-2); color: var(--ink); }
.nav-a:active { transform: scale(.97); }
.nav-a.on { background: var(--pink-50); color: var(--pink); font-weight: 650; }
.nav-a .cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.rail .cta { margin-top: 14px; }
.rail .foot { margin-top: auto; padding: 14px 6px 0; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }

.logo { display: flex; align-items: center; gap: 8px; }
.logo .mark { height: 34px; width: auto; transition: transform .5s var(--spring); }
.logo:hover .mark { transform: rotate(-10deg) scale(1.08); }
.logo .word { height: 15px; width: auto; }
:root[data-theme="dark"] .logo .word { filter: invert(1); }

.topbar {
  position: sticky; top: 0; z-index: 40; view-transition-name: topbar;
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--glass); backdrop-filter: saturate(1.7) blur(18px); -webkit-backdrop-filter: saturate(1.7) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo .mark { height: 30px; }
.topbar .logo .word { height: 13px; }
@media (min-width: 1024px) { .topbar .logo { display: none; } .topbar { padding: 12px 32px; } }
.topbar .search {
  flex: 1; display: none; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); max-width: 520px;
}
@media (min-width: 1024px) { .topbar .search { display: flex; } }
.topbar .sp { flex: 1; }
@media (min-width: 1024px) { .topbar .sp { display: none; } }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative;
  transition: background-color .2s, transform .25s var(--spring);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.9); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid var(--bg); }
.city { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 10px; }
@media (min-width: 1024px) { .city { display: flex; } }

.page { max-width: 1240px; margin: 0 auto; padding: 14px 14px 120px; }
@media (min-width: 1024px) { .page { padding: 24px 32px 64px; } }
.cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.cols > * { min-width: 0; }
@media (min-width: 1240px) { .cols { grid-template-columns: minmax(0, 1fr) 330px; } }
.side { display: none; }
@media (min-width: 1240px) { .side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; align-self: start; } }

/* ---------- Нижнее меню (телефон) ---------- */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 66px; padding: 0 6px;
  border-radius: 26px; view-transition-name: tabbar;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) { .tabbar { display: none; } }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 8px 0; position: relative; transition: color .2s, transform .25s var(--spring); }
.tab:active { transform: scale(.88); }
.tab.on { color: var(--pink); }
.tab .badge { position: absolute; top: 3px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10.5px; display: grid; place-items: center; border: 2px solid var(--surface); }
.tab.mid .bub { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-pink); margin-top: -4px; transition: transform .35s var(--spring); }
.tab.mid:hover .bub { transform: rotate(-8deg) scale(1.05); }
.tab.mid span { display: none; }

/* ---------- Типографика и общие элементы ---------- */
h1, .h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
h2, .h2 { font-size: 21px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h a { font-size: 14px; font-weight: 600; color: var(--pink); display: inline-flex; align-items: center; gap: 4px; }
.sec-h a:hover svg { transform: translateX(3px); }
.sec-h a svg { transition: transform .25s var(--spring); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 16px; font-weight: 650; font-size: 15px; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .25s var(--spring), box-shadow .25s, background-color .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn-p { background: var(--grad); color: #fff; box-shadow: var(--shadow-pink); }
.btn-p:hover { box-shadow: 0 16px 36px -10px rgba(235,46,129,.7); transform: translateY(-1px); }
.btn-p::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); }
.btn-p:hover::after { transform: translateX(100%); transition: transform .8s var(--ease); }
.btn-s { background: var(--surface); border: 1px solid var(--line-2); }
.btn-s:hover { background: var(--surface-2); }
.btn-d { background: var(--ink); color: var(--bg); }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn-w { width: 100%; }
.btn-ico { width: 48px; padding: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 550; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--spring);
}
.chip:hover { border-color: var(--line-2); }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 12px; opacity: .6; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 14px; margin: 0 -14px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .chips { padding: 2px 0; margin: 0; flex-wrap: wrap; } }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 650; }
.tag-vip { background: linear-gradient(135deg, #F7D36B, #F4A93B); color: #3B2600; }
.tag-ok { background: rgba(24,192,122,.14); color: #0E9A60; }
:root[data-theme="dark"] .tag-ok { color: #4BE3A2; }
.tag-on { background: rgba(255,255,255,.92); color: #0E9A60; }
.tag-ad { background: var(--surface-2); color: var(--muted); }
.tag-pink { background: var(--pink-50); color: var(--pink); }
.tag-top { background: linear-gradient(135deg, #EB2E81, #FF4F7B); color: #fff; letter-spacing: .04em; }   /* карточка: платная ставка аукциона */
.tag-new { background: rgba(255,255,255,.94); color: #0E9A60; }   /* карточка: опубликована ≤ 7 дней */
.tag-rate { background: rgba(255,255,255,.94); color: #17141C; white-space: nowrap; }   /* карточка: рейтинг и число отзывов (Босс 29.11) */
.tag-rate svg { color: var(--gold); }

.online { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; display: inline-block; flex: none; }
.online::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: .35; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.pad { padding: 18px; }

.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 16px; overflow: hidden; }
.av.sm { width: 34px; height: 34px; font-size: 13px; }
.av.lg { width: 84px; height: 84px; font-size: 30px; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.stack { display: flex; }
.stack .av { border: 2.5px solid var(--surface); margin-left: -10px; }
.stack .av:first-child { margin-left: 0; }

/* ---------- Появление при прокрутке ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.stagger > * { animation: rise .6s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Переходы между экранами (View Transitions) ---------- */
::view-transition-old(root) { animation: vt-out .2s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(hero) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-image-pair(hero) { isolation: auto; }
::view-transition-old(hero), ::view-transition-new(hero) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }

/* ---------- Главная: приветствие ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.hello .live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hello h1 { font-size: clamp(24px, 4vw, 34px); }

/* ---------- Сторис ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 14px 6px; margin: 0 -14px; scroll-snap-type: x mandatory; }
.stories::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .stories { margin: 0; padding: 4px 0 6px; } }
.story { flex: none; width: 76px; text-align: center; scroll-snap-align: start; font-size: 12px; font-weight: 550; }
.story .ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; position: relative; transition: transform .3s var(--spring);
  background: conic-gradient(from var(--a), #EB2E81, #FF8A4C, #F4B740, #EB2E81); animation: spin 3.5s linear infinite; }
.story:hover .ring { transform: scale(1.06); }
.story.seen .ring { background: var(--line-2); animation: none; }
.story .ring img, .story .ring .add { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--surface-2); }
.story .ring .add { display: grid; place-items: center; color: var(--pink); }
.story.me .ring { background: var(--surface-2); animation: none; }
.story .plus { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; border: 3px solid var(--bg); }
.story span { display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes spin { to { --a: 360deg; } }

/* ---------- Блок «Сейчас онлайн» / цифры ---------- */
.pulse-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pulse-card .k { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pulse-card b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pulse-card small { font-size: 12px; color: var(--muted); }

/* ---------- Карусель ТОП ---------- */
.rowscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 14px 14px; margin: 0 -14px; scroll-snap-type: x mandatory; }
.rowscroll::-webkit-scrollbar { display: none; }
.rowscroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rowscroll { grid-auto-columns: 42%; } }
@media (min-width: 1024px) { .rowscroll { grid-auto-columns: calc((100% - 36px) / 4); margin: 0; padding: 4px 0 14px; } }

/* ---------- Карточка анкеты ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1400px) { .grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acard {
  position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--spring), box-shadow .4s var(--ease); isolation: isolate;
}
.acard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.acard.vip { border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--a), #EB2E81, #FFB36B, #F7D36B, #FF4F7B, #EB2E81) border-box;
  animation: spin 5s linear infinite; }
.acard .ph { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px) 0 0; background: var(--surface-2); touch-action: pan-y; }
.acard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .35s var(--ease), transform .8s var(--ease); }
.acard .ph img.on { opacity: 1; transform: scale(1); }
.acard:hover .ph img.on { transform: scale(1.035); }
.acard .bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.acard .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.38); transition: background-color .2s; }
.acard .bars i.on { background: #fff; }
.acard .shade { position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(to top, rgba(12,6,14,.86), rgba(12,6,14,.35) 45%, transparent); z-index: 1; pointer-events: none; }
.acard .tl { position: absolute; top: 18px; left: 10px; z-index: 3; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.acard .fav { position: absolute; top: 14px; right: 8px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.22); backdrop-filter: blur(8px); transition: transform .3s var(--spring), background-color .2s; }
.acard .fav:active { transform: scale(.8); }
.acard .fav.on { color: #fff; background: var(--pink); }
.acard .fav.on svg { fill: #fff; }
.acard .over { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #fff; }
.acard .nm { font-size: 18px; font-weight: 750; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.acard .nm .ok { color: #4BE3A2; }
.acard .meta { font-size: 12.5px; opacity: .88; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.acard .body { padding: 10px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acard .price { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.acard .price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.acard .qa { display: flex; gap: 6px; }
.qbtn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); transition: transform .25s var(--spring), background-color .2s, color .2s; }
.qbtn:hover { background: var(--pink); color: #fff; }
.qbtn:active { transform: scale(.88); }
.qbtn.tg:hover { background: var(--blue); }
.acard .rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.acard .rate svg { color: var(--gold); }
@media (max-width: 420px) { .acard .qa .qbtn:not(.call) { display: none; } .acard .nm { font-size: 16px; } }

/* ---------- Лента ---------- */
.post { padding: 16px; }
.post + .post { margin-top: 14px; }
.post .hd { display: flex; align-items: center; gap: 12px; }
.post .hd .who { flex: 1; min-width: 0; }
.post .hd b { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.post .hd small { color: var(--muted); font-size: 13px; }
.post .txt { margin: 12px 0; color: var(--ink-2); }
.post .gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; }
.post .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post .gallery a:first-child { grid-row: span 2; }
.post .gallery a { overflow: hidden; }
.post .gallery a:hover img { transform: scale(1.05); }
.post .ft { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s; }
.act:hover { background: var(--surface-2); color: var(--ink); }
.act.like.on { color: var(--pink); }
.act.like.on svg { fill: var(--pink); stroke: var(--pink); animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.post .ft .sp { flex: 1; }
.burst { position: fixed; pointer-events: none; z-index: 200; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: fly .7s var(--ease) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

.topic { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface-2); margin-top: 12px; transition: transform .25s var(--spring); }
.topic:hover { transform: translateX(4px); }
.topic .em { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface); flex: none; }
.topic b { display: block; line-height: 1.3; }
.topic small { color: var(--muted); }

.ad { position: relative; overflow: hidden; }
.ad .cover { height: 150px; border-radius: var(--r); background: radial-gradient(120% 120% at 10% 10%, #2a8cff 0%, #0b2f6b 55%, #081428 100%); position: relative; overflow: hidden; display: flex; align-items: end; padding: 16px; color: #fff; }
.ad .cover::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -60px; top: -80px; background: radial-gradient(circle, rgba(120,220,255,.55), transparent 70%); animation: float 6s ease-in-out infinite; }
.ad .cover b { font-size: 22px; font-weight: 800; position: relative; }
@keyframes float { 50% { transform: translate(-20px, 20px); } }

.dating-teaser { background: var(--grad); color: #fff; border: 0; overflow: hidden; position: relative; }
.dating-teaser::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dating-teaser .btn { background: #fff; color: var(--pink); box-shadow: none; }
.dating-teaser .stack .av { border-color: #FF5D7A; }

/* ---------- Каталог ---------- */
.cat-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.filterbar { position: sticky; top: 63px; z-index: 30; padding: 10px 14px; margin: 0 -14px 14px; background: var(--glass); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid transparent; transition: border-color .3s; }
@media (min-width: 1024px) { .filterbar { top: 69px; margin: 0 0 16px; padding: 10px 0; } }
.filterbar .row { display: flex; gap: 8px; align-items: center; }
.filterbar .chips { flex: 1; min-width: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); gap: 2px; position: relative; }
.seg button { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; z-index: 1; transition: color .2s; }
.seg button.on { color: var(--ink); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); transition: left .35s var(--spring), width .35s var(--spring); }
.seo-text { margin-top: 30px; color: var(--ink-2); }
.seo-text .more { max-height: 96px; overflow: hidden; position: relative; transition: max-height .6s var(--ease); }
.seo-text .more::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, var(--bg)); transition: opacity .3s; }
.seo-text.open .more { max-height: 900px; }
.seo-text.open .more::after { opacity: 0; }
.seo-text p + p { margin-top: 10px; }
.seo-text a { color: var(--pink); font-weight: 600; }

/* ---------- Нижний лист (фильтры, оплата) ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(10,6,12,.45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto;
  background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .5s var(--spring); box-shadow: var(--shadow-lg);
}
@media (min-width: 720px) { .sheet { left: 50%; right: auto; bottom: 50%; width: 520px; border-radius: 28px; transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .45s var(--spring), opacity .25s; } }
.sheet.on { transform: translateY(0); }
@media (min-width: 720px) { .sheet.on { transform: translate(-50%, 50%) scale(1); opacity: 1; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h3 { font-size: 20px; margin-bottom: 14px; }
.sheet .grp { margin-top: 18px; }
.sheet .grp > b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--pink) var(--p, 50%), var(--surface-3) var(--p, 50%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--pink); box-shadow: var(--shadow); cursor: grab; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--pink); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 550; }
.sw { width: 50px; height: 30px; border-radius: 15px; background: var(--surface-3); position: relative; transition: background-color .25s; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.sw.on { background: var(--pink); }
.sw.on::after { transform: translateX(20px); }

/* ---------- Страница анкеты ---------- */
.profile { display: grid; gap: 22px; }
@media (min-width: 1024px) { .profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: start; } }
.gal { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); margin: 0 -14px; border-radius: 0; }
@media (min-width: 720px) { .gal { margin: 0; border-radius: var(--r-xl); } }
@media (min-width: 1024px) { .gal-wrap { position: sticky; top: 92px; } }
.gal .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; }
.gal .track::-webkit-scrollbar { display: none; }
.gal .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gal .cnt { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 14px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 650; }
.gal .bars { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 5px; }
.gal .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); overflow: hidden; }
.gal .bars i.on { background: #fff; }
.gal .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center; background: rgba(255,255,255,.85); color: #17141C; box-shadow: var(--shadow); transition: transform .25s var(--spring); }
.gal .nav:hover { transform: translateY(-50%) scale(1.08); }
@media (min-width: 1024px) { .gal .nav { display: grid; } }
.gal .nav.l { left: 14px; } .gal .nav.r { right: 14px; }
.back { position: absolute; top: 12px; left: 12px; z-index: 3; }
.thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 0; }   /* много фото: лента миниатюр прокручивается, не вылезает на правую колонку (29.11) */
.thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .thumbs { display: flex; } }
.thumbs img { flex: 0 0 auto; width: 64px; height: 80px; object-fit: cover; border-radius: 12px; opacity: .55; cursor: pointer; transition: opacity .2s, transform .25s var(--spring); }
.thumbs img.on, .thumbs img:hover { opacity: 1; transform: translateY(-2px); }

.p-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-head .sub { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 500; align-items: center; }
.p-head .sub span { display: inline-flex; align-items: center; gap: 6px; }
.params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.params div { padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.params small { display: block; font-size: 12px; color: var(--muted); }
.params b { font-size: 16px; font-weight: 750; }
.prices { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.prices th, .prices td { padding: 12px 14px; text-align: left; font-size: 14.5px; }
.prices th { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.prices td + td, .prices th + th { text-align: right; }
.prices tr + tr td { border-top: 1px solid var(--line); }
.prices td b { font-weight: 800; }
.svc { display: flex; flex-wrap: wrap; gap: 8px; }
.svc span { padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 550; }
.svc span.plus { border-color: transparent; background: var(--pink-50); color: var(--pink); }
.review { padding: 14px; }
.review + .review { margin-top: 10px; }
.review .hd { display: flex; gap: 10px; align-items: center; }
.review .stars { color: var(--gold); display: flex; gap: 1px; margin-left: auto; }
.review p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.review .reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.review .reply b { color: var(--pink); }

.contact-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; gap: 8px; padding: 8px; border-radius: 22px; view-transition-name: contactbar;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: slideup .5s var(--spring) both .15s;
}
@keyframes slideup { from { transform: translateY(140%); } }
.contact-bar .btn { height: 50px; }
.contact-bar .btn-p { flex: 1; }
.contact-bar .btn-ico { width: 50px; border-radius: 16px; }
.btn-tg { background: var(--blue); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn-max { background: linear-gradient(135deg, #3D7BFF, #8A4BFF); color: #fff; font-weight: 800; }
@media (min-width: 1024px) {
  .contact-bar { position: static; animation: none; box-shadow: none; padding: 0; border: 0; background: none; backdrop-filter: none; margin-top: 18px; }
}
.owner { border: 1.5px dashed var(--pink); background: var(--grad-soft); }
.owner .pos { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.owner .pos b { font-size: 34px; font-weight: 850; letter-spacing: -.03em; }
.owner .arrow { color: var(--pink); }

/* ---------- Знакомства ---------- */
.dating { max-width: 460px; margin: 0 auto; }
.deck { position: relative; aspect-ratio: 3 / 4.15; margin-top: 14px; }
.dcard {
  position: absolute; inset: 0; border-radius: var(--r-xl); overflow: hidden; color: #fff; box-shadow: var(--shadow-lg);
  touch-action: none; user-select: none; will-change: transform; cursor: grab; transition: transform .5s var(--spring);
}
.dcard:active { cursor: grabbing; }
.dcard.drag { transition: none; }
.dcard .aura { position: absolute; inset: 0; }
.dcard .aura::before, .dcard .aura::after { content: ''; position: absolute; border-radius: 50%; filter: blur(30px); opacity: .9; animation: drift 9s ease-in-out infinite alternate; }
.dcard .aura::before { width: 70%; height: 55%; left: -10%; top: 6%; background: var(--c1); }
.dcard .aura::after { width: 75%; height: 60%; right: -15%; bottom: 10%; background: var(--c2); animation-delay: -4s; }
@keyframes drift { to { transform: translate(14%, -8%) scale(1.12); } }
.dcard .ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 140px; font-weight: 850; letter-spacing: -.05em; color: rgba(255,255,255,.22); }
.dcard .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 20px 20px; background: linear-gradient(to top, rgba(10,6,12,.85), transparent); }
.dcard .info h2 { font-size: 28px; color: #fff; display: flex; align-items: center; gap: 8px; }
.dcard .info p { opacity: .9; margin-top: 4px; font-size: 14.5px; }
.dcard .ints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dcard .ints span { padding: 6px 11px; border-radius: 12px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; }
.dcard .stamp { position: absolute; top: 34px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-size: 30px; font-weight: 900; letter-spacing: .04em; opacity: 0; }
.dcard .stamp.yes { left: 24px; color: #4BE3A2; transform: rotate(-14deg); }
.dcard .stamp.no { right: 24px; color: #FF5D7A; transform: rotate(14deg); }
.dactions { display: flex; justify-content: center; gap: 18px; margin-top: 20px; }
.dbtn { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s var(--spring); }
.dbtn:hover { transform: scale(1.1); }
.dbtn:active { transform: scale(.88); }
.dbtn.no { color: #FF5D7A; }
.dbtn.star { width: 52px; height: 52px; color: var(--gold); align-self: center; }
.dbtn.yes { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-pink); }
.dbtn svg { width: 28px; height: 28px; }
.limit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: var(--grad-soft); font-size: 14px; }
.limit b { color: var(--pink); }
.match { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 40%, rgba(235,46,129,.92), rgba(30,6,20,.96)); color: #fff; text-align: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.match.on { opacity: 1; pointer-events: auto; }
.match h2 { font-size: 40px; font-weight: 900; letter-spacing: -.03em; color: #fff; transform: scale(.6); transition: transform .6s var(--spring) .1s; }
.match.on h2 { transform: scale(1); }
.match .pair { display: flex; justify-content: center; margin: 26px 0; }
.match .pair .av { width: 110px; height: 110px; font-size: 40px; border: 4px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .7s var(--spring) .15s; }
.match .pair .av:first-child { transform: translateX(-40px) rotate(-12deg); }
.match .pair .av:last-child { transform: translateX(40px) rotate(12deg); margin-left: -18px; }
.match.on .pair .av:first-child { transform: rotate(-8deg); }
.match.on .pair .av:last-child { transform: rotate(8deg); }
.match .btn { margin-top: 10px; }
.hearts i { position: absolute; bottom: -40px; font-style: normal; font-size: 22px; animation: up 3s linear forwards; }
@keyframes up { to { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }

/* ---------- Чаты ---------- */
.chats { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.convo { min-width: 0; }
@media (min-width: 1024px) { .chats.split { grid-template-columns: 360px minmax(0, 1fr); height: calc(100dvh - 120px); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); } }
.clist { overflow: auto; }
.citem { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 16px; transition: background-color .2s; position: relative; }
.citem:hover, .citem.on { background: var(--surface-2); }
.citem .who { flex: 1; min-width: 0; }
.citem b { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.citem p { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.citem .un { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.citem .av-wrap { position: relative; }
.citem .av-wrap .online { position: absolute; right: 1px; bottom: 1px; border: 2px solid var(--surface); width: 12px; height: 12px; }
.typing { display: inline-flex; gap: 3px; align-items: center; color: var(--pink) !important; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.convo { display: flex; flex-direction: column; min-height: calc(100dvh - 200px); }
@media (min-width: 1024px) { .convo { min-height: 0; height: 100%; border-left: 1px solid var(--line); } }
.convo .hd { display: flex; align-items: center; gap: 12px; padding: 10px 6px 12px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .convo .hd { padding: 14px 18px; } }
.msgs { flex: 1; overflow: auto; padding: 18px 4px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 1024px) { .msgs { padding: 20px 22px; } }
.day { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 10px; margin: 8px 0; }
.bub { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.4; position: relative; animation: bubin .4s var(--spring) both; }
@keyframes bubin { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.bub small { display: block; text-align: right; font-size: 11px; opacity: .6; margin-top: 2px; }
.bub.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.bub.out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 4px; }
.quick::-webkit-scrollbar { display: none; }
.composer { display: flex; gap: 8px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .composer { padding: 12px 18px; } .quick { padding: 8px 18px; } }
.composer input { flex: 1; height: 48px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 18px; font: inherit; color: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.composer input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-50); }
.send { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-pink); transition: transform .3s var(--spring); }
.send:active { transform: scale(.85) rotate(-20deg); }
.pin-card { display: flex; gap: 10px; align-items: center; padding: 8px; margin: 0 auto 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); max-width: 320px; align-self: center; }
.pin-card img { width: 46px; height: 58px; object-fit: cover; border-radius: 10px; }

/* ---------- Клубы ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.club { overflow: hidden; transition: transform .35s var(--spring), box-shadow .35s; }
.club:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.club .cv { height: 104px; position: relative; display: grid; place-items: center; font-size: 46px; overflow: hidden; }
.club .cv::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.35), transparent 55%); }
.club .cv span { transition: transform .5s var(--spring); }
.club:hover .cv span { transform: scale(1.18) rotate(-8deg); }
.club .bd { padding: 14px 16px 16px; }
.club .bd p { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.club .ln { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.join.on { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.club-hero { border-radius: var(--r-xl); padding: 26px 22px; color: #fff; position: relative; overflow: hidden; }
.club-hero .em { font-size: 54px; line-height: 1; }
.club-hero h1 { color: #fff; margin-top: 10px; }
.club-hero p { opacity: .9; margin-top: 6px; max-width: 560px; }
.club-hero .row { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.club-hero .btn-s { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.tline { display: flex; gap: 12px; padding: 14px 16px; align-items: center; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.tline:hover { background: var(--surface-2); }
.tline:last-child { border-bottom: 0; }
.tline .t { flex: 1; min-width: 0; }
.tline b { display: block; line-height: 1.3; }
.tline small { color: var(--muted); }
.tline .rc { text-align: center; font-size: 12px; color: var(--muted); min-width: 52px; }
.tline .rc b { font-size: 16px; color: var(--ink); }
.tline .hot { color: var(--coral); }

/* ---------- Журнал ---------- */
.mag { display: grid; gap: 16px; }
@media (min-width: 720px) { .mag { grid-template-columns: repeat(2, 1fr); } .mag .lead { grid-column: span 2; } }
.article { overflow: hidden; display: block; transition: transform .35s var(--spring), box-shadow .35s; }
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article .cv { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.article.lead .cv { aspect-ratio: 21 / 9; }
.article .cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article:hover .cv img { transform: scale(1.05); }
.article .cv .pat { position: absolute; inset: 0; }
.article .bd { padding: 16px 18px 18px; }
.article .bd small { color: var(--pink); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.article .bd h3 { font-size: 19px; line-height: 1.25; margin: 6px 0; }
.article .bd p { color: var(--muted); font-size: 14.5px; }

/* ---------- Кабинет ---------- */
.me-head { display: flex; gap: 16px; align-items: center; }
.me-head .av { background: var(--grad); }
.role-switch { margin-top: 18px; }
.wallet { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px; color: #fff; background: #1A1020; }
.wallet::before { content: ''; position: absolute; inset: 0; background: conic-gradient(from var(--a) at 70% 30%, #EB2E81, #FF8A4C, #7A2BFF, #EB2E81); opacity: .85; filter: blur(40px); animation: spin 12s linear infinite; }
.wallet > * { position: relative; }
.wallet small { opacity: .8; font-weight: 600; }
.wallet .sum { font-size: 42px; font-weight: 850; letter-spacing: -.03em; margin: 4px 0 14px; }
.wallet .row { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet .btn { background: rgba(255,255,255,.95); color: #17141C; box-shadow: none; }
.wallet .btn.ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px; }
.kpi small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi b { display: block; font-size: 26px; font-weight: 850; letter-spacing: -.02em; margin-top: 4px; }
.kpi .up { color: var(--green); font-size: 12.5px; font-weight: 700; }
.spark { display: flex; align-items: end; gap: 3px; height: 34px; margin-top: 8px; }
.spark i { flex: 1; border-radius: 3px; background: var(--pink-50); transform-origin: bottom; animation: grow .8s var(--spring) both; }
.spark i:last-child { background: var(--pink); }
@keyframes grow { from { transform: scaleY(0); } }
.plans { display: grid; gap: 14px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .35s var(--spring), box-shadow .35s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.hl { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.plan .ribbon { position: absolute; top: -12px; left: 20px; }
.plan h3 { font-size: 18px; }
.plan .pr { font-size: 30px; font-weight: 850; letter-spacing: -.03em; }
.plan .pr small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--pink); margin-top: 2px; }
.boost { display: flex; gap: 10px; flex-wrap: wrap; }
.boost button { flex: 1; min-width: 120px; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface); text-align: left; transition: border-color .2s, transform .25s var(--spring), background-color .2s; }
.boost button b { display: block; font-size: 18px; font-weight: 800; }
.boost button small { color: var(--muted); }
.boost button.on { border-color: var(--pink); background: var(--pink-50); }
.boost button:active { transform: scale(.96); }

/* ---------- Правый столбец ---------- */
.side .card h3 { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.olist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.olist a { position: relative; }
.olist img { width: 100%; aspect-ratio: 1; border-radius: 18px; object-fit: cover; transition: transform .3s var(--spring); }
.olist a:hover img { transform: scale(1.06); }
.olist .online { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border: 2px solid var(--surface); }
.mini-club { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.mini-club .em { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.mini-club div { flex: 1; min-width: 0; }
.mini-club small { color: var(--muted); font-size: 12.5px; display: block; }
.plus-card { background: #17141C; color: #fff; border: 0; position: relative; overflow: hidden; }
.plus-card::before { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: var(--grad); filter: blur(30px); opacity: .7; }
.plus-card > * { position: relative; }
.plus-card p { opacity: .8; font-size: 14px; margin: 6px 0 14px; }
.foot-links { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0 6px; }

/* ---------- 18+ ---------- */
.gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(13,11,16,.6); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); animation: fadein .4s both; }
.gate .box { width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--r-xl); padding: 28px 24px 22px; text-align: center; box-shadow: var(--shadow-lg); animation: popin .6s var(--spring) both .1s; }
.gate .box .mark { height: 64px; margin: 0 auto 12px; }
.gate .box h2 { font-size: 24px; }
.gate .box p { color: var(--muted); margin: 8px 0 20px; font-size: 14.5px; }
.gate .box .btn { width: 100%; }
.gate .box .btn + .btn { margin-top: 8px; }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { opacity: 0; transform: translateY(30px) scale(.92); } }
.gate.out { animation: fadeout .35s both; }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 250; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .45s var(--spring), opacity .3s; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

.proto-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* правки после проверки (18.11) */
.acard .price { white-space: nowrap; }
@media (max-width: 420px) { .acard .price { font-size: 15px; } .acard .price small { display: none; } .acard .body { padding: 9px 10px 10px; } }
@media (max-width: 1023px) { body.on-anketa .page { padding-bottom: 200px; } }
.citem b { flex-wrap: wrap; }



/* ===== Серверная версия (этап 2a): дополнения к прототипу ===== */
.seg a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; z-index: 1; }
.seg a.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.seg .thumb { display: none; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 6px; }
.desc { white-space: normal; color: var(--ink-2); line-height: 1.65; }
.olist a { position: relative; display: block; }
.gate { display: none; }
html:not(.age-ok) .gate { display: grid; }
body.on-anketa .contact-bar a[data-soon] { opacity: .7; }
.acard .ph img { height: 100%; }
.gal .track img { height: 100%; width: 100%; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }
::view-transition-old(root) { animation: vt-out .2s var(--ease) both; height: auto; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; height: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
#theme .sun { display: none; } :root[data-theme="dark"] #theme .sun { display: block; } :root[data-theme="dark"] #theme .moon { display: none; }

/* ---------- Этап 2b: журнал, статьи, страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--pink); }
.crumbs .sep { opacity: .5; } .crumbs .cur { color: var(--ink-2); }
.article .bd .meta { display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.article .cv img { aspect-ratio: 16 / 9; }
.article.lead .cv img { aspect-ratio: 21 / 9; }
.art { min-width: 0; max-width: 760px; }
.art-h { margin-bottom: 16px; }
.art-h h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; margin-top: 10px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.art-meta a:not(.tag) { color: var(--ink-2); font-weight: 600; }
.art-cover { margin: 0 0 20px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.art-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; line-height: 1.25; color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-size: 20px; line-height: 1.3; color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--pink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; } .prose li > ul, .prose li > ol { margin-top: .35em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); display: block; }
.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 320px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 1.2em 0; }
.prose .wp-block-gallery figure { margin: 0; } .prose .wp-block-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 1.4em 0; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-pink); }
.tagcloud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.cmt { margin-top: 10px; } .cmt p { margin-top: 6px; }
.sm-list { display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sm-list a { color: var(--ink-2); } .sm-list a:hover { color: var(--pink); }
.seo-text .more-btn { margin-top: 10px; }
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 0; padding: 0; cursor: pointer; }
.vid img, .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; filter: brightness(.8); }
.vid iframe { filter: none; }
.vid .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-pink); }

/* ---------- Досуг ID: вход / меню профиля в шапке (2c) ---------- */
.top-login { flex: none; }
.me-menu { position: relative; flex: none; }
.me-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.me-btn .av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); }
.me-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 60; display: flex; flex-direction: column; }
.me-pop[hidden] { display: none; }
.me-pop-h { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.me-pop-h small { color: var(--muted); }
.me-pop a, .me-pop button { display: block; width: 100%; text-align: left; padding: 10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.me-pop a:hover, .me-pop button:hover { background: var(--surface-2); }

/* Счётчики в шапке (колокольчик, чаты) и в нижнем меню — на всех страницах (этап 3c: вынесено из feed.css) */
.bell, .chat-btn { position: relative; }
.bell .cnt, .chat-btn .cnt { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); box-sizing: content-box; }
.chat-btn .cnt[hidden] { display: none; }
.tab .badge[hidden] { display: none; }
.nav-a .cnt[hidden] { display: none; }

/* ===== Заглушка «нет фото» (partials/nophoto.blade.php): бренд #FFFBF4 + розовый #EB2E81, без внешних запросов ===== */
.nophoto { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; text-align: center; color: #B5155F;
  background: radial-gradient(90% 60% at 50% 42%, rgba(235,46,129,.17) 0%, rgba(235,46,129,0) 70%), linear-gradient(160deg, #FFFBF4 0%, #FFF0E6 56%, #FDE3EE 100%); }
.nophoto::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 44%; width: 64%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(235,46,129,.07); box-shadow: 0 0 0 14px rgba(235,46,129,.04); }
span.nophoto > img.nph-i { position: static; display: block; flex: none; width: clamp(44px, 36%, 120px); height: auto; aspect-ratio: 170 / 186; object-fit: contain; opacity: 1; transform: none; border: 0; border-radius: 0; background: none; filter: drop-shadow(0 6px 12px rgba(235,46,129,.25)); }
.nophoto .nph-t { font-size: 13px; font-weight: 650; letter-spacing: .01em; line-height: 1.25; padding: 0 12px; }
:root[data-theme="dark"] .nophoto, .nophoto.dk { color: #FF8DB9;
  background: radial-gradient(90% 60% at 50% 42%, rgba(235,46,129,.26) 0%, rgba(235,46,129,0) 70%), linear-gradient(160deg, #1B1620 0%, #211D27 56%, #2D1626 100%); }
:root[data-theme="dark"] .nophoto::before, .nophoto.dk::before { background: rgba(235,46,129,.10); box-shadow: 0 0 0 14px rgba(235,46,129,.05); }
.nophoto.sm { aspect-ratio: auto; gap: 0; }
.nophoto.sm::before { display: none; }
span.nophoto.sm > img.nph-i { width: 56%; filter: none; }
/* карточка каталога: заполняет .ph (3:4), подпись выше плашки с именем */
.acard .ph .nophoto { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; padding-bottom: 22%; }
.acard .ph.nop .shade { background: linear-gradient(to top, rgba(92,10,56,.86), rgba(92,10,56,.34) 45%, transparent); }
/* галерея анкеты */
.gal .track .nophoto { flex: 0 0 100%; height: 100%; aspect-ratio: auto; scroll-snap-align: center; }
.gal .nophoto .nph-t { font-size: 15px; }
span.nophoto > img.nph-i { transition: none; }
.gal span.nophoto > img.nph-i { width: clamp(84px, 26%, 150px); }
/* миниатюры и кружки */
.olist .nophoto { aspect-ratio: 1; border-radius: 18px; }
.story .ring .nophoto { height: 100%; border-radius: 50%; border: 3px solid var(--bg); }
.av.nophoto { width: 44px; height: 44px; border-radius: 50%; }
.post .nophoto.wide { aspect-ratio: 16 / 11; border-radius: var(--r); }
.post .nophoto.wide .nph-t { font-size: 14px; }
.myl .nophoto { width: 64px; height: 80px; flex: none; border-radius: 14px; }

/* ===== Заход А (29.11.2026): поиск ===== */
.topbar .search { position: relative; }
.topbar .search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.topbar .search input::placeholder { color: var(--muted); }
.topbar .search input::-webkit-search-cancel-button { display: none; }
.topbar .search .s-x { display: none; font-size: 26px; line-height: 1; color: var(--muted); padding: 0 4px; }
.topbar .s-open { display: grid; }
@media (min-width: 1024px) { .topbar .s-open { display: none; } }
@media (max-width: 1023px) {
  .topbar.sopen .search { display: flex; position: absolute; left: 8px; right: 8px; top: 7px; bottom: 7px; max-width: none; height: auto; z-index: 3; background: var(--surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
  .topbar.sopen .search .s-x { display: block; }
}
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 48px rgba(0, 0, 0, .18); overflow: hidden auto; max-height: min(70vh, 520px); padding: 6px; color: var(--ink); }
.sugg[hidden] { display: none; }
.sugg a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.sugg a:hover, .sugg a.on { background: var(--surface-2); }
.sugg .sg-img { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--pink-50, #FDE8F1); overflow: hidden; }
.sugg .sg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sugg .sg-tx { flex: 1; min-width: 0; display: block; }
.sugg .sg-tx b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg .sg-tx small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg .sg-t { flex: none; font-style: normal; font-size: 11px; font-weight: 650; color: var(--pink); }
.sugg .sg-all { justify-content: center; color: var(--pink); font-weight: 650; font-size: 14px; }
.s-h1 { font-size: clamp(24px, 4vw, 32px); margin: 6px 0 12px; }
.sform { display: flex; gap: 8px; margin: 0 0 18px; max-width: 560px; }
.sform input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 23px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; outline: 0; }
.sform input:focus { border-color: var(--pink); }
.slist { display: grid; gap: 4px; }
.slist a { display: block; padding: 10px 6px; border-radius: 12px; }
.slist a:hover { background: var(--surface-2); }
.slist b { display: block; font-weight: 650; }
.slist small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ===== Заход А: подвал (на узких экранах правой колонки нет) ===== */
.site-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.site-foot a:hover { color: var(--pink); }
@media (min-width: 1240px) { .site-foot { display: none; } }

/* ===== Заход А: PWA ===== */
[data-install][hidden], [data-install-box][hidden] { display: none !important; }
.install-btn { font: inherit; color: var(--pink); font-weight: 650; text-align: left; }
.rail .install-btn { width: 100%; }
.pwa-hint { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 400; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, .25); }
.pwa-hint p { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; }
@media (min-width: 1024px) { .pwa-hint { left: auto; right: 24px; bottom: 24px; max-width: 360px; } }

/* ===== Заход А: шапка на телефоне — «18+» логотипа не уходит под иконки (390 и 360 px) ===== */
.topbar .logo { flex: none; }
.topbar .logo .word { max-width: none; }
@media (max-width: 520px) {
  .topbar { gap: 0; padding: 8px 6px 8px 12px; }
  .topbar .logo { gap: 6px; margin-right: 4px; }
  .topbar .logo .mark { height: 26px; }
  .topbar .logo .word { height: 12px; }
  .topbar .icon-btn { width: 38px; height: 38px; }
  .topbar .top-login { height: 34px; padding: 0 12px; font-size: 14px; margin-left: 4px; }
  .topbar .me-btn { margin-left: 2px; }
  .topbar .chat-btn[href*="login"], .topbar .bell[href*="login"] { display: none; }   /* гостю чат и колокольчик ведут на вход — они есть в нижнем меню */
}
@media (max-width: 380px) { .topbar .logo .word { height: 11px; } .topbar .icon-btn { width: 36px; height: 36px; } }

/* ===== Заход А: панель контактов анкеты — по ширине содержимого, непрозрачная, без пустой полосы ===== */
.contact-bar { left: 10px; right: 10px; width: fit-content; max-width: calc(100vw - 20px); margin-inline: auto; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: center; }
.contact-bar .btn-p { flex: 1 1 auto; min-width: 150px; padding-inline: 22px; justify-content: center; }
@media (min-width: 1024px) {
  .contact-bar { width: auto; max-width: none; margin-inline: 0; background: none; justify-content: flex-start; }
}

/* ===== Заход Б2: счётчики просмотров и кликов анкеты (кабинет и админка) ===== */
.lst-stats { margin-top: 12px; }
.lst-stats table { min-width: 0; }
.lst-stats th, .lst-stats td { text-align: right; white-space: nowrap; }
.lst-stats th:first-child, .lst-stats td:first-child { text-align: left; }
.lst-chart { display: flex; align-items: stretch; gap: 3px; height: 120px; margin: 12px 0 4px; padding-bottom: 16px; position: relative; }
.lst-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.lst-col .bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; border-bottom: 1px solid var(--line-2); }
.lst-col .bars i { display: block; width: 45%; max-width: 9px; border-radius: 3px 3px 0 0; }
.lst-col .bars i.v, .lst-leg i.v { background: var(--pink, #EB2E81); }
.lst-col .bars i.c, .lst-leg i.c { background: var(--ink, #222); opacity: .75; }
.lst-col span { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-size: 10px; color: var(--muted, #888); white-space: nowrap; }
.lst-leg { display: flex; gap: 14px; font-size: 12px; color: var(--muted, #888); margin-bottom: 6px; }
.lst-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.myl-stat { margin: -6px 0 14px; padding: 10px 14px; }
.myl-stat details > summary { cursor: pointer; font-size: 14px; }
.mny > *, .mylist > * { min-width: 0; }   /* таблица статистики шире экрана листается внутри карточки, а не растягивает сетку страницы */
.lst-stats { max-width: 100%; }

/* Заход В (29.11): атрибут hidden всегда скрывает элемент — класс с явным display (grid/flex) его больше не перебивает (так заглушка сторис закрывала фото) */
[hidden] { display: none !important; }
/* Заход В: колонка карточки анкеты не шире экрана (у анкеты с 11 фото страница прокручивалась вправо на 8 px: колонка сетки раздувалась до ширины ленты) */
.profile { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
/* Заход В: правки по визуальной вычитке (tools/visual_audit.mjs) */
.acard .body { flex-wrap: wrap; row-gap: 6px; }          /* цена + кнопки контактов не вылезают из карточки на узких колонках (1440 с правой колонкой) */
.acard .qa { margin-left: auto; }
.adm .pager a.chip.on, .pager a.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }   /* «.adm .pager a» перебивал фон активной метки: светлый текст на светлом */
.btn-tg { background: #1D8DC9; }                          /* белый текст на #2AABEE — контраст 2,6:1; на #1D8DC9 — 3,7:1 */
.danger[open] { flex-basis: 100%; }                       /* форма удаления аккаунта открывалась в колонке 132 px рядом с «Выйти» */
@media (max-width: 719px) {                               /* цели нажатия ≥ 40 px на телефоне (основные действия) */
  .icon-btn { min-width: 40px; min-height: 40px; }
  .btn-sm { min-height: 40px; }
  .qbtn { width: 40px; height: 40px; }
  .acard .qa { gap: 4px; }
  .act { min-height: 40px; }
  .chip { min-height: 40px; }
  .site-foot a { display: inline-block; padding: 11px 4px; }
  .pager .chip { min-width: 40px; justify-content: center; }
  .seg a, .seg button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .sv-x, .s-x { min-width: 40px; min-height: 40px; }
  .sg-all { min-height: 40px; }
  .auth-links a, .crumbs a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
  label.check, label.radio { padding-block: 10px; }
  .who, a.tag, .hd > a:not(.btn), .post-h > a { position: relative; }
  .who::after, a.tag::after, .hd > a:not(.btn)::after, .post-h > a::after { content: ''; position: absolute; inset: -9px -4px; }   /* область нажатия шире видимой ссылки */
  .stack > a { position: relative; } .stack > a::after { content: ''; position: absolute; inset: -4px 0; }
  .sec-h > a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  a.logo { min-height: 40px; display: inline-flex; align-items: center; }
}

/* Заход В: параметры анкеты не шире колонки; подписи графика статистики не вылезают за края */
.params { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.params div { min-width: 0; overflow-wrap: anywhere; }
.lst-col:first-child span { left: 0; transform: none; }
.lst-col:last-child span { left: auto; right: 0; transform: none; }
