/* ==========================================================================
   Стили сайта по дизайн-системе: светлая тема, тёплый нейтральный фон, белые блоки,
   бордовый основной цвет, приглушённый розовый акцент и золотое выделение платных услуг.
   Шрифт Manrope подключается в base.html (если файл шрифта есть в static).
   ========================================================================== */

:root {
  /* Шкалы */
  --burgundy-50: #F8F0F2;
  --burgundy-100: #F0E1E6;
  --burgundy-200: #E2C4CE;
  --burgundy-300: #CBA0AE;
  --burgundy-400: #A9687E;
  --burgundy-500: #7B3045;
  --burgundy-600: #67263A;
  --burgundy-700: #51202F;
  --burgundy-800: #421A27;
  --burgundy-900: #31131D;
  --rose-50: #FAF3F2;
  --rose-100: #F3E5E2;
  --rose-200: #E6C8C4;
  --rose-300: #D7AAA4;
  --rose-400: #C48D87;
  --rose-500: #9D625B;
  --rose-600: #8E514B;
  --rose-700: #77433C;
  --rose-800: #69372F;
  --rose-900: #512922;
  --neutral-0: #FFFFFF;
  --neutral-25: #FCFAF8;
  --neutral-50: #F7F4F1;
  --neutral-100: #F0EAE5;
  --neutral-200: #E3DAD4;
  --neutral-300: #CFC1B9;
  --neutral-400: #AB9990;
  --neutral-500: #88756D;
  --neutral-600: #6F5E57;
  --neutral-700: #53443F;
  --neutral-800: #3D302C;
  --neutral-900: #2B211F;
  --gold-100: #F6EDD9;
  --gold-300: #DDC596;
  --gold-500: #C19B55;
  --gold-800: #5C411D;

  /* Цвета по назначению */
  --bg-page: var(--neutral-50);
  --bg-surface: var(--neutral-0);
  --bg-subtle: var(--neutral-50);
  --bg-hover: var(--burgundy-50);
  --bg-selected: var(--burgundy-100);
  --bg-footer: var(--neutral-100);
  --bg-message-in: var(--neutral-100);
  --bg-message-out: var(--burgundy-100);
  --border: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --focus: var(--burgundy-500);
  --text-heading: var(--neutral-900);
  --text-body: var(--neutral-800);
  --text-secondary: var(--neutral-600);
  --text-disabled: var(--neutral-400);
  --text-link: var(--burgundy-600);
  --text-link-hover: var(--burgundy-700);
  --primary: var(--burgundy-500);
  --primary-hover: var(--burgundy-600);
  --primary-active: var(--burgundy-700);
  --primary-soft: var(--burgundy-100);
  --primary-soft-hover: var(--burgundy-200);
  --on-primary: var(--neutral-0);
  --on-primary-soft: var(--burgundy-700);
  --accent: var(--rose-500);
  --accent-hover: var(--rose-600);
  --on-accent: var(--neutral-0);
  --accent-strong: var(--rose-700);
  --accent-soft: var(--rose-100);
  --brand-ruby: #B61340;
  --premium: var(--gold-500);
  --premium-light: var(--gold-300);
  --premium-soft: var(--gold-100);
  --on-premium: var(--gold-800);
  --success: #36705B;
  --success-text: #2B634E;
  --success-bg: #EAF2EC;
  --warning: #A36C2C;
  --warning-text: #88551F;
  --warning-bg: #FBF1E3;
  --danger: #B44340;
  --danger-strong: #A33432;
  --danger-strong-hover: #872A29;
  --danger-bg: #FBECE9;

  /* Отступы */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Скругления */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Тени */
  --shadow-card: 0 4px 20px rgba(81, 32, 47, 0.08);
  --shadow-popup: 0 16px 40px rgba(43, 33, 31, 0.14);
  --shadow-focus: 0 0 0 3px rgba(123, 48, 69, 0.25);

  /* Градиенты */
  --gradient-brand: linear-gradient(135deg, #7B3045 0%, #9D625B 100%);
  --gradient-soft: linear-gradient(135deg, #FAF6F3 0%, #F0E7E2 100%);
  --gradient-hero: linear-gradient(135deg, #F8F0F2 0%, #FAF3F2 100%);
  --gradient-premium: linear-gradient(135deg, #DDC596 0%, #C19B55 100%);

  /* Шрифт */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --header-height: 72px;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
::selection { background: var(--burgundy-200); color: var(--text-heading); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
  background: var(--bg-page);
  accent-color: var(--primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--text-heading); margin: 0 0 var(--space-4); }
h1 { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
h4 { font-size: 16px; line-height: 24px; font-weight: 700; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
small, .small { font-size: 14px; line-height: 20px; }
.caption { font-size: 13px; line-height: 16px; font-weight: 600; }
.text-secondary { color: var(--text-secondary); }
.text-disabled { color: var(--text-disabled); }
.text-center { text-align: center; }
.text-danger { color: var(--danger-strong); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--burgundy-200); color: var(--neutral-900); }

/* ---------- Полосы прокрутки ---------- */
:where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal) {
  --scroll-track: var(--neutral-50);
  --scroll-thumb: var(--neutral-500);
  --scroll-thumb-hover: var(--burgundy-600);
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
:where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal):is(:hover, :focus-within) {
  --scroll-thumb: var(--burgundy-500);
}
:where(textarea, .chat-body, .chat-list, .notif-list, .select-list) { scrollbar-gutter: stable; }
/* Blink и WebKit используют свойство auto, чтобы применить форму и ширину из псевдоэлементов. */
@supports selector(::-webkit-scrollbar) {
  :where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal) {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }
}
:where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal)::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
:where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal)::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: var(--radius-full);
}
:where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal)::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 3px solid var(--scroll-track);
  border-radius: var(--radius-full);
  min-height: 32px;
}
:where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal)::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}
:where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal)::-webkit-scrollbar-corner {
  background: var(--scroll-track);
}
@media (forced-colors: active) {
  :where(textarea, select, .chat-body, .chat-list, .notif-list, .dropdown-menu, .select-list, .filters, .mobile-menu, .modal) {
    --scroll-track: Canvas;
    --scroll-thumb: ButtonText;
    --scroll-thumb-hover: Highlight;
    scrollbar-color: auto;
    scrollbar-width: auto;
  }
}

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 1000;
  background: var(--primary); color: var(--on-primary); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); color: var(--on-primary); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--space-6); }
.page { padding-top: var(--space-8); padding-bottom: var(--space-16); }
.page:has(> .chat) { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.section { margin-top: var(--space-16); }
.section:first-child { margin-top: 0; }

/* ---------- Иконки ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-fill { fill: currentColor; }
.gift-icon { width: 56px; height: 56px; flex: none; }

/* ---------- Логотип ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-heading); font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--text-heading); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-accent, .brand-tld { color: var(--brand-ruby); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-md);
  font: inherit; font-size: 16px; line-height: 24px; font-weight: 600; text-align: center;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease, box-shadow .15s ease;
  text-decoration: none !important;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { background: var(--bg-surface); color: var(--text-body); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-hover); border-color: var(--burgundy-300); color: var(--burgundy-700); }
.btn-soft { background: var(--primary-soft); color: var(--on-primary-soft); }
.btn-soft:hover { background: var(--primary-soft-hover); color: var(--on-primary-soft); }
.btn-vip { background: var(--gradient-premium); color: var(--on-premium); }
.btn-vip:hover { filter: brightness(.96); color: var(--on-premium); }
.btn-danger { background: var(--danger-strong); color: #fff; }
.btn-danger:hover { background: var(--danger-strong-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--burgundy-700); }
.btn:disabled, .btn.is-disabled { background: var(--neutral-100); color: var(--text-disabled); border-color: transparent; cursor: not-allowed; filter: none; }
.btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: 14px; line-height: 20px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 var(--space-8); font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: 48px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn-favorite.is-active .icon, .icon.is-filled { fill: currentColor; }
.btn-favorite.is-active { color: var(--burgundy-700); border-color: var(--burgundy-300); background: var(--burgundy-50); }
.btn-favorite.is-active .icon { fill: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--text-link); cursor: pointer; }
.link-button:hover { color: var(--text-link-hover); text-decoration: underline; }

/* ---------- Метки и счётчики ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px;
  border-radius: var(--radius-full); font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.badge-verified { background: var(--burgundy-100); color: var(--burgundy-700); }
.badge-new { background: var(--neutral-0); color: var(--neutral-800); box-shadow: inset 0 0 0 1px var(--neutral-200); }
.badge-vip { background: var(--gradient-premium); color: var(--gold-800); }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-700); }
.badge-demo { background: var(--neutral-800); color: #fff; }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-strong); }
.online { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.count-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: var(--radius-full); background: var(--rose-700); color: #fff;
  font-size: 12px; line-height: 20px; font-weight: 700;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-700); display: inline-block; }

/* ---------- Сообщения о результате ---------- */
.messages { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.messages:has(> .alert) { padding-block: var(--space-3); }
.alert {
  display: flex; align-items: flex-start; gap: var(--space-3); padding: 10px var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; line-height: 24px; font-weight: 600;
}
.alert > .icon { margin-top: 2px; }
.alert-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.alert-body p:last-child { margin-bottom: 0; }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-success > .icon { color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); }
.alert-warning > .icon { color: var(--warning); }
.alert-error { background: var(--danger-bg); color: var(--danger-strong); }
.alert-error > .icon { color: var(--danger); }
.alert-info { background: var(--burgundy-50); color: var(--burgundy-700); border-color: var(--burgundy-200); }
.alert-close {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin: -2px -4px -2px 0;
  background: transparent; border: 0; border-radius: var(--radius-sm); padding: 0;
  color: inherit; font: inherit; cursor: pointer;
}
.alert-close:hover { background: rgba(43, 33, 31, 0.08); }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- Карточки и блоки ---------- */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.card-body { padding: var(--space-6); }
.card-title { font-size: 20px; line-height: 28px; font-weight: 700; margin: 0 0 var(--space-3); color: var(--text-heading); }
.subtle { background: var(--bg-subtle); border-radius: var(--radius-md); padding: var(--space-4); }
.soft-panel { background: var(--gradient-soft); border-radius: var(--radius-xl); padding: var(--space-8); }

.page-head { margin-bottom: var(--space-8); }
.page-head h1 { margin-bottom: var(--space-2); }
.page-head .lead, .lead { font-size: 17px; line-height: 26px; color: var(--text-secondary); max-width: none; margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--space-2) 0 0; color: var(--text-secondary); max-width: 720px; }
.section-head .more { white-space: nowrap; font-weight: 600; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-height); }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-md);
  color: var(--text-body); font-weight: 600; font-size: 15px; white-space: nowrap; position: relative;
}
.nav-link:hover { background: var(--bg-hover); color: var(--burgundy-700); text-decoration: none; }
.nav-link.active { background: var(--bg-selected); color: var(--burgundy-700); }
.nav-link .count-badge { margin-left: 2px; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.header-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-md); color: var(--text-body); background: none; border: 0; cursor: pointer;
}
.header-icon-btn:hover { background: var(--bg-hover); color: var(--burgundy-700); text-decoration: none; }
.header-icon-btn .count-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; padding: 0 5px; border: 2px solid #fff; box-sizing: content-box; }
.nav-toggle { display: none; }

.dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-2) 0 4px;
  border-radius: var(--radius-full); background: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; color: var(--text-body);
}
.dropdown-toggle:hover { background: var(--bg-hover); }
.dropdown-toggle .chevron { transition: transform .15s ease; color: var(--text-secondary); }
.dropdown.open .chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-popup); padding: var(--space-2);
  display: none; z-index: 60;
}
.dropdown-menu:not(.notif-panel) { max-height: min(70vh, calc(100dvh - var(--header-height) - 32px)); overflow-y: auto; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 10px var(--space-3); border-radius: var(--radius-md);
  color: var(--text-body); font: inherit; font-size: 15px; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-hover); color: var(--burgundy-700); text-decoration: none; }
.dropdown-menu .icon { color: var(--text-secondary); }
.dropdown-head { padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--border); margin-bottom: var(--space-2); }
.dropdown-head strong { display: block; color: var(--text-heading); }
.dropdown-sep { height: 1px; background: var(--border); margin: var(--space-2) 0; }
.dropdown-menu .paid-service-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

/* Уведомления в шапке */
.notif-panel { width: 380px; padding: 0; }
.notif-panel-head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.notif-panel-head strong { color: var(--text-heading); }
.notif-list { max-height: 420px; overflow-y: auto; padding: var(--space-2); }
.notif-item { display: flex; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); align-items: flex-start; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item form { margin: 0; flex: 1; }
.notif-item .notif-text { all: unset; cursor: pointer; display: block; font-size: 14px; line-height: 20px; color: var(--text-body); }
.notif-item .notif-time { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--burgundy-100); color: var(--burgundy-700); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.notif-empty { padding: var(--space-6) var(--space-4); text-align: center; color: var(--text-secondary); font-size: 14px; }
.notif-panel-foot { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); text-align: center; font-size: 14px; font-weight: 600; }
.notif-panel-head button:hover, .notif-panel-foot a:hover { background: none; }

/* Мобильное меню */
.mobile-menu { display: none; }

/* ---------- Подвал ---------- */
.popular-profiles { padding-block: var(--space-8) var(--space-12); text-align: center; padding-top: 0; }
.popular-profiles h2 { margin: 0 0 var(--space-6); color: var(--primary); }
.popular-profiles-list {
  --popular-columns: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.popular-profiles-list li {
  width: min(144px, calc((100% - (var(--popular-columns) - 1) * var(--space-3)) / var(--popular-columns)));
}
.popular-profiles-list a { display: block; border: 1px solid var(--burgundy-200); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.popular-profiles-list a:hover { box-shadow: var(--shadow-popup); }
.popular-profiles-list img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: inherit; }

.site-footer { background: var(--bg-footer); margin-top: auto; padding: var(--space-12) 0 var(--space-6); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer-brand p { color: var(--text-secondary); margin-top: var(--space-4); max-width: 380px; }
.footer-col h3 { font-size: 15px; line-height: 22px; margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--text-body); }
.footer-col a:hover { color: var(--burgundy-700); }
.footer-contact { display: flex; align-items: center; gap: var(--space-2); }
.footer-contact .icon { color: var(--text-secondary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--border-strong); margin-top: var(--space-8); padding-top: var(--space-6); color: var(--text-secondary); font-size: 14px; }
.footer-legal { width: 100%; margin: 0; }
.age-note { display: inline-flex; align-items: center; gap: var(--space-2); }
.age-mark { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; border: 1.5px solid var(--neutral-500); border-radius: var(--radius-sm); font-size: 12px; font-weight: 800; color: var(--neutral-700); }

/* ---------- Хлебные крошки и пагинация ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 var(--space-4); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--neutral-400); border-top: 1.5px solid var(--neutral-400); transform: rotate(45deg); margin-right: 4px; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--burgundy-700); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--space-8); }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); font-weight: 600; color: var(--text-body); background: var(--bg-surface); border: 1px solid var(--border); }
.pagination a:hover { background: var(--bg-hover); color: var(--burgundy-700); border-color: var(--burgundy-300); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .gap { background: none; border: 0; color: var(--text-secondary); }

/* ---------- Формы ---------- */
.form-grid { display: grid; gap: var(--space-4); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field-label { font-weight: 600; font-size: 15px; line-height: 22px; color: var(--text-heading); }
.field .required-mark { color: var(--rose-700); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field input[type=url], .field input[type=tel], .field input[type=search], .field select, .field textarea, .select {
  width: 100%; min-height: 48px; padding: 11px var(--space-4); font: inherit; font-size: 16px; line-height: 24px; color: var(--text-heading);
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select, .select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236F5E57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--text-secondary); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: var(--focus); box-shadow: var(--shadow-focus); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.help-text { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.field-error { font-size: 14px; line-height: 20px; color: var(--danger-strong); font-weight: 600; }
.form-errors { margin-bottom: var(--space-4); }
.date-select { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: var(--space-2); }
.counter { font-size: 13px; color: var(--text-secondary); text-align: right; }
.form-note { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-6); }

/* Выпадающие поля с собственной прокруткой; без JavaScript доступны обычные select. */
.custom-select { position: relative; min-width: 0; width: 100%; }
.custom-select-native {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; margin: -1px; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.custom-select-button { display: block; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-button:hover { border-color: var(--burgundy-400); }
.custom-select-button[aria-expanded=true] { border-color: var(--focus); box-shadow: var(--shadow-focus); }
.custom-select-button:disabled { background-color: var(--neutral-50); color: var(--text-disabled); cursor: not-allowed; }
.custom-select-button[aria-invalid=true], .field.has-error .custom-select-button { border-color: var(--danger); }
.select-list {
  position: fixed; z-index: 120; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-popup);
}
.select-list[hidden], .select-option[hidden] { display: none; }
.select-option { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-heading); font-size: 15px; line-height: 22px; cursor: pointer; }
.select-option[aria-selected=true] { background: var(--bg-selected); color: var(--burgundy-700); font-weight: 700; }
.select-option:hover, .select-option.is-active { background: var(--bg-hover); outline: 1px solid var(--burgundy-300); outline-offset: -1px; }
.select-option[aria-disabled=true] { color: var(--text-disabled); background: transparent; outline: 0; cursor: not-allowed; }
.select-group { padding: 8px 12px 4px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.custom-select > .field-error { display: block; margin-top: 6px; }
.custom-select > .field-error[hidden] { display: none; }

/* Флажки и переключатели */
.check { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; font-size: 15px; line-height: 22px; }
.check input[type=checkbox], .check input[type=radio] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.check a { font-weight: 600; }
.checks { display: grid; gap: var(--space-3); }
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 44px; height: 26px; border-radius: var(--radius-full); background: var(--neutral-300); position: relative; transition: background-color .15s ease; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(43,33,31,.2); transition: transform .15s ease; }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Выбор "чипсами" */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label, .chip-static {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; border-radius: var(--radius-sm); line-height: 20px;
  background: var(--bg-surface); border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600; color: var(--text-body); cursor: pointer; user-select: none;
}
.chip label:hover { background: var(--bg-hover); border-color: var(--burgundy-300); }
.chip input:checked + label { background: var(--bg-selected); border-color: var(--burgundy-300); color: var(--burgundy-700); }
.chip input:checked + label::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.chip input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip-static { cursor: default; background: var(--bg-subtle); border-color: transparent; }

/* Список флажков (фильтры поиска) */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.check-list .check { align-items: flex-start; gap: var(--space-3); padding: 7px 10px; margin: 0 -10px; border-radius: var(--radius-sm); font-size: 15px; line-height: 20px; color: var(--text-body); transition: background-color .15s; }
.check-list .check:hover { background: var(--bg-hover); }
.check-list .check input[type=checkbox] { margin: 0; }
.check-list .check input:checked + span { color: var(--text-heading); font-weight: 600; }
.check-list.is-collapsed .check-extra { display: none; }
.check-more { justify-self: start; margin-top: 4px; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--text-link); cursor: pointer; }
.check-more:hover { color: var(--text-link-hover); text-decoration: underline; }

/* Ссылки на страницы городов */
.city-name { display: block; color: var(--text-heading); }
.city-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 6px 6px 12px; border-radius: var(--radius-md);
  background: var(--burgundy-50); color: var(--burgundy-700); font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.city-link .icon { width: 18px; height: 18px; color: var(--burgundy-500); flex: none; }
.city-link:hover { background: var(--burgundy-100); color: var(--burgundy-800); text-decoration: none; box-shadow: inset 0 0 0 1px var(--burgundy-200); }
.city-link-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--burgundy-700); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.city-link.is-empty { background: var(--bg-subtle); color: var(--text-secondary); }
.city-link.is-empty .icon, .city-link.is-empty .city-link-count { color: var(--text-secondary); }
.city-link.is-empty:hover { background: var(--neutral-100); box-shadow: inset 0 0 0 1px var(--border); color: var(--text-body); }

/* Выбор пола при регистрации */
.gender-choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.gender-choice label { cursor: pointer; }
.gender-choice input { position: absolute; opacity: 0; }
.gender-option {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg); background: var(--bg-surface); font-weight: 700; color: var(--text-heading); transition: border-color .15s, background-color .15s;
}
.gender-option .icon { width: 28px; height: 28px; color: var(--burgundy-500); }
.gender-option small { display: block; font-weight: 500; color: var(--text-secondary); }
.gender-choice input:checked + .gender-option { border-color: var(--primary); background: var(--burgundy-50); box-shadow: var(--shadow-focus); }
.gender-choice input:focus-visible + .gender-option { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Аватары ---------- */
.avatar {
  --size: 48px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; position: relative;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--gradient-soft); color: var(--burgundy-700); font-weight: 800; font-size: calc(var(--size) * .42);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { --size: 32px; }
.avatar-sm { --size: 40px; }
.avatar-md { --size: 56px; }
.avatar-lg { --size: 72px; }
.avatar-xl { --size: 120px; }
/* Золотое кольцо - только у мужчин с VIP */
.avatar-vip { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-500); }
.avatar-online::after { content: ""; position: absolute; right: 2%; bottom: 2%; width: 22%; height: 22%; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--success); border: 2px solid #fff; }
.avatar.is-blurred img { filter: blur(10px); transform: scale(1.15); }

/* ---------- Карточки анкет ---------- */
.profiles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.profiles-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-card { position: relative; display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.profile-card:hover { box-shadow: var(--shadow-popup); transform: translateY(-2px); }
.profile-card-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--gradient-soft); overflow: hidden; }
.profile-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.profile-card:hover .profile-card-photo img { transform: scale(1.03); }
.profile-card-photo .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 800; color: var(--burgundy-700); }
.profile-card.is-vip .profile-card-photo { box-shadow: inset 0 0 0 3px var(--gold-500); }
.profile-card-badges { position: absolute; left: var(--space-3); top: var(--space-3); right: var(--space-3); display: flex; flex-wrap: wrap; gap: 6px; }
.profile-card-badges .badge { box-shadow: 0 2px 8px rgba(43,33,31,.12); }
.profile-card-photos-count { position: absolute; right: var(--space-3); bottom: var(--space-3); display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: var(--radius-full); background: rgba(43,33,31,.55); color: #fff; font-size: 13px; font-weight: 700; }
.profile-card-photos-count .icon { width: 14px; height: 14px; }
.profile-card-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); flex: 1; }
.profile-card-name { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--text-heading); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card-name a { display: flex; align-items: baseline; gap: 5px; color: inherit; }
.profile-card-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.profile-age { white-space: nowrap; }
.profile-card-name .profile-age { flex: none; }
.profile-head h1 { overflow-wrap: anywhere; }
.profile-card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.profile-card-name a:hover { text-decoration: none; }
.profile-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.profile-card-text { font-size: 15px; line-height: 22px; color: var(--text-body); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-card-actions { position: relative; z-index: 2; display: flex; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.profile-card-actions .btn { flex: 1; }
.profile-card-actions .btn-icon { flex: none; }

/* Компактная карточка: избранное, гости, симпатии */
.person-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.person { position: relative; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.person-main { flex: 1; min-width: 0; }
.person-name { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--text-heading); }
.person-name a { color: inherit; }
.person-name a::after { content: ""; position: absolute; inset: 0; }
.person-meta { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.person-side { position: relative; z-index: 1; display: flex; gap: var(--space-2); align-items: center; }
.person.is-locked .person-name { filter: blur(5px); user-select: none; }

/* ---------- Первый экран ---------- */
.hero {
  --hero-ground: #F7F1ED;
  position: relative; z-index: 3; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 0 0, #F3E3E8 0, transparent 55%), var(--hero-ground);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--space-8); padding-block: 56px 40px; }
.hero-copy { width: 52%; max-width: 630px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 3.6vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; text-wrap: balance; }
.hero-lead { font-size: 18px; line-height: 28px; color: var(--text-body); max-width: 540px; margin-bottom: var(--space-6); }
.hero-note { margin-top: var(--space-4); font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: var(--space-2); }
.hero-note .age-mark { flex-shrink: 0; }
.hero-art {
  position: absolute; inset-block: 0; right: max(0px, calc((100% - 1920px) / 2)); width: min(64%, 1100px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 27%);
  mask-image: linear-gradient(90deg, transparent, #000 27%);
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--hero-ground), rgba(247, 241, 237, .65) 13%, transparent 38%);
}
.hero-search {
  position: relative; max-width: 1120px; min-width: 0; margin-top: 0; padding: 20px 24px;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(123, 48, 69, .12); border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(81, 32, 47, .09);
}
.hero-search-title { font-weight: 700; color: var(--text-heading); margin-bottom: var(--space-3); }
.hero-search form { display: grid; grid-template-columns: minmax(260px, 360px) minmax(180px, 1fr) auto; gap: var(--space-3); }
.hero-search form > * { min-width: 0; }
.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-subtle); border-radius: var(--radius-md); padding: 4px; gap: 4px; }
.segmented input { position: absolute; opacity: 0; }
.segmented label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 var(--space-4); border-radius: 10px; font-weight: 600; color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.segmented input:checked + label { background: var(--bg-surface); color: var(--burgundy-700); box-shadow: 0 2px 8px rgba(81, 32, 47, .12); }
.segmented input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Блоки главной ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding: var(--space-8) var(--space-6) var(--space-6); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.step-num { position: absolute; top: var(--space-6); right: var(--space-6); font-size: 40px; line-height: 40px; font-weight: 800; color: var(--burgundy-100); }
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--burgundy-100); color: var(--burgundy-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.feature-icon .icon { width: 28px; height: 28px; }
.feature-icon.is-gold { background: var(--gold-100); color: var(--gold-800); }
.feature-icon.is-gold { background: var(--gold-100); color: var(--gold-800); }
.step h3, .feature h3 { font-size: 18px; line-height: 26px; margin-bottom: var(--space-2); }
.step p, .feature p { color: var(--text-secondary); margin: 0; font-size: 15px; line-height: 22px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.feature { padding: var(--space-6); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.city-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.city-chip { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-full); background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-body); font-weight: 600; font-size: 15px; }
.city-chip:hover { background: var(--bg-hover); border-color: var(--burgundy-300); color: var(--burgundy-700); text-decoration: none; }
.city-chip .count { color: var(--text-secondary); font-weight: 500; font-size: 13px; }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; padding: var(--space-12); border-radius: var(--radius-xl); background: var(--gradient-soft); border: 1px solid var(--border); }
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { margin: 0; color: var(--text-secondary); max-width: 640px; }
.vip-band { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6); align-items: center; padding: var(--space-8); border-radius: var(--radius-xl); background: linear-gradient(135deg, #FBF7ED 0%, #F6EDD9 100%); border: 1px solid var(--gold-300); }
.vip-band h2 { margin-bottom: var(--space-2); }
.vip-band p { margin: 0; color: var(--neutral-700); }
.vip-gem { width: 72px; height: 72px; border-radius: 22px; background: var(--gradient-premium); display: flex; align-items: center; justify-content: center; color: var(--gold-800); }
.vip-gem .icon { width: 36px; height: 36px; }

/* ---------- Статьи ---------- */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.article-card { position: relative; display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.article-cover { aspect-ratio: 1200 / 630; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; color: var(--burgundy-400); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover .icon { width: 48px; height: 48px; }
.article-card-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.article-card h3 { margin: 0; font-size: 19px; line-height: 27px; }
.article-card h3 a { color: var(--text-heading); }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 22px; }
.article-date { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.prose { font-size: 17px; line-height: 28px; color: var(--text-body); max-width: none; }
.prose h2 { margin-top: var(--space-8); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose li + li { margin-top: 6px; }
.prose img { border-radius: var(--radius-lg); margin: var(--space-6) 0; }
.prose blockquote { margin: var(--space-6) 0; padding: var(--space-4) var(--space-6); background: var(--burgundy-50); border-left: 4px solid var(--burgundy-300); border-radius: var(--radius-md); }

/* ---------- Поиск анкет ---------- */
.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.filters { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-6); display: grid; gap: var(--space-6); }
.filters-title { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--text-heading); }
.filter-group { display: grid; gap: var(--space-3); }
.filter-group-title { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--text-secondary); text-transform: none; }
.filter-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-2); }
.filter-range input { min-height: 44px; }
.filters details summary { cursor: pointer; font-weight: 700; color: var(--burgundy-700); list-style: none; display: flex; align-items: center; gap: var(--space-2); }
.filters details summary::-webkit-details-marker { display: none; }
.filters details[open] summary .chevron { transform: rotate(180deg); }
.filters details > div { display: grid; gap: var(--space-6); margin-top: var(--space-6); }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); }
.catalog-count { color: var(--text-secondary); font-weight: 600; }
.sort-select { min-height: 44px; width: auto; }
.filters-toggle { display: none; }
.filters-close { display: none !important; }
.empty { text-align: center; padding: var(--space-12) var(--space-6); background: var(--bg-surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-icon { width: 72px; height: 72px; margin: 0 auto var(--space-4); border-radius: 50%; background: var(--gradient-soft); color: var(--burgundy-500); display: flex; align-items: center; justify-content: center; }
.empty-icon .icon { width: 32px; height: 32px; }
.empty h3 { margin-bottom: var(--space-2); }
.empty p { color: var(--text-secondary); max-width: 520px; margin: 0 auto var(--space-4); }

/* ---------- Страница анкеты ---------- */
.profile-page { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-height) + 16px); }
.gallery-main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--gradient-soft); box-shadow: var(--shadow-card); }
button.gallery-main { cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 140px; font-weight: 800; color: var(--burgundy-700); cursor: default; }
.gallery.is-vip .gallery-main { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold-500), var(--shadow-card); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.gallery-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-subtle); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb .pending-mark { position: absolute; inset: auto 4px 4px 4px; font-size: 10px; line-height: 14px; background: rgba(43,33,31,.7); color: #fff; border-radius: 6px; padding: 1px 4px; text-align: center; }
.profile-head { display: grid; gap: var(--space-3); }
.profile-head h1 { margin: 0; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); color: var(--text-secondary); }
.profile-meta .item { display: inline-flex; align-items: center; gap: 6px; }
.profile-headline { font-size: 18px; line-height: 28px; color: var(--text-heading); font-weight: 600; margin: 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.profile-block { margin-top: var(--space-6); }
.profile-block h2 { font-size: 20px; line-height: 28px; margin-bottom: var(--space-3); }
.profile-text { white-space: pre-line; margin: 0; }
.details-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); margin: 0; }
.details-table div { display: grid; gap: 2px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.details-table dt { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--text-secondary); }
.details-table dd { margin: 0; color: var(--text-heading); font-weight: 600; }
.owner-banner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); border-radius: var(--radius-lg); background: var(--burgundy-50); border: 1px solid var(--burgundy-200); margin-bottom: var(--space-6); }
.profile-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.note-box textarea { min-height: 80px; }

/* ---------- Диалоги (окна) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-xl); box-shadow: var(--shadow-popup); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--text-body); background: var(--bg-surface); }
dialog.modal::backdrop { background: rgba(43, 33, 31, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-6) 0; }
.modal-head h2 { margin: 0; font-size: 22px; line-height: 30px; }
.modal-body { padding: var(--space-6); }
.modal-close { background: none; border: 0; width: 40px; height: 40px; border-radius: var(--radius-md); cursor: pointer; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg-hover); color: var(--burgundy-700); }
dialog.lightbox { width: min(960px, calc(100vw - 32px)); background: transparent; box-shadow: none; }
dialog.lightbox img { max-height: calc(100vh - 80px); width: auto; margin: 0 auto; border-radius: var(--radius-lg); }
dialog.lightbox .modal-close { position: fixed; top: 16px; right: 16px; background: rgba(255,255,255,.9); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Подарки */
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.gift-option { position: relative; }
.gift-option input { position: absolute; opacity: 0; }
.gift-option label { display: grid; align-content: start; justify-items: center; height: 100%; gap: 6px; padding: var(--space-3) var(--space-2); border-radius: var(--radius-lg); border: 1.5px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 600; text-align: center; color: var(--text-body); }
.gift-option label:hover { background: var(--bg-hover); }
.gift-option input:checked + label { border-color: var(--primary); background: var(--burgundy-50); box-shadow: var(--shadow-focus); }
.gift-option input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.gift-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.gift-item { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ---------- Кабинет ---------- */
.cabinet { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.cabinet-nav { position: sticky; top: calc(var(--header-height) + 16px); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-3); }
.cabinet-user { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); margin-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.cabinet-user strong { display: block; color: var(--text-heading); line-height: 22px; }
.cabinet-user span { font-size: 13px; color: var(--text-secondary); }
.cabinet-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cabinet-nav a { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border-radius: var(--radius-md); color: var(--text-body); font-weight: 600; font-size: 15px; }
.cabinet-nav a:hover { background: var(--bg-hover); color: var(--burgundy-700); text-decoration: none; }
.cabinet-nav a.active { background: var(--bg-selected); color: var(--burgundy-700); }
.cabinet-nav a .icon { color: var(--text-secondary); }
.cabinet-nav a.active .icon, .cabinet-nav a:hover .icon { color: var(--burgundy-600); }
.cabinet-nav a .count-badge { margin-left: auto; }
.cabinet-nav-sep { height: 1px; background: var(--border); margin: var(--space-2) var(--space-3); }
.cabinet-nav .paid-service-links {
  border-bottom: 1px solid var(--border); margin-bottom: var(--space-2); padding-bottom: var(--space-2);
}
:is(.cabinet-nav, .dropdown-menu) .paid-service-links a { background: var(--premium-soft); color: var(--on-premium); }
:is(.cabinet-nav, .dropdown-menu) .paid-service-links a .icon { color: var(--on-premium); }
:is(.cabinet-nav, .dropdown-menu) .paid-service-links a:is(:hover, .active) { background: var(--premium-light); }
.paid-service-links a.active { box-shadow: inset 0 0 0 1px var(--premium); }
.cabinet-content { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.cabinet-content > .page-head { margin-bottom: 0; }

.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.stat-tile { display: grid; gap: 4px; padding: var(--space-4) var(--space-6); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: inherit; }
.stat-tile:hover { text-decoration: none; border-color: var(--burgundy-300); }
.stat-tile .value { font-size: 28px; line-height: 36px; font-weight: 800; color: var(--text-heading); }
.stat-tile .label { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.status-card { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; }
.status-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: inline-flex; align-items: center; justify-content: center; }
.status-icon.is-public { background: var(--success-bg); color: var(--success); }
.status-icon.is-pending { background: var(--warning-bg); color: var(--warning); }
.status-icon.is-problem { background: var(--danger-bg); color: var(--danger); }
.status-icon.is-muted { background: var(--neutral-100); color: var(--neutral-600); }
.status-title { font-weight: 700; color: var(--text-heading); font-size: 17px; }
.status-text { color: var(--text-secondary); font-size: 15px; line-height: 22px; margin: 2px 0 0; }
.progress { height: 8px; border-radius: var(--radius-full); background: var(--neutral-100); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gradient-brand); }
.tips { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.tips li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 15px; }
.tips .icon { color: var(--burgundy-500); margin-top: 2px; }
.form-section { padding: var(--space-6); }
.form-section + .form-section { border-top: 1px solid var(--border); }
.form-section h2 { font-size: 20px; line-height: 28px; margin-bottom: var(--space-4); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--border); padding: var(--space-4) var(--space-6); border-radius: 0 0 var(--radius-lg) var(--radius-lg); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Фото в кабинете */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-4); }
.photo-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.photo-tile-img { aspect-ratio: 4 / 5; background: var(--bg-subtle); }
.photo-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile-badges { position: absolute; top: var(--space-2); left: var(--space-2); right: var(--space-2); display: flex; flex-wrap: wrap; gap: 4px; }
.photo-tile-actions { display: flex; justify-content: space-between; gap: 4px; padding: var(--space-2); }
.photo-tile-actions form { margin: 0; }
.photo-tile-reason { padding: 0 var(--space-3) var(--space-3); font-size: 13px; line-height: 18px; color: var(--danger-strong); }
.upload-box { display: grid; place-items: center; gap: var(--space-2); min-height: 180px; padding: var(--space-6); border: 2px dashed var(--burgundy-300); border-radius: var(--radius-lg); background: var(--burgundy-50); text-align: center; cursor: pointer; color: var(--burgundy-700); }
.upload-box:hover, .upload-box.is-drag { background: var(--burgundy-100); }
.upload-box input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-preview { width: 140px; height: 175px; border-radius: var(--radius-md); object-fit: cover; }
.code-word { display: inline-block; font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: .12em; padding: var(--space-3) var(--space-6); border-radius: var(--radius-lg); background: var(--gradient-soft); color: var(--burgundy-700); border: 1px dashed var(--burgundy-300); }

/* ---------- Переписка ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--header-height) - 80px); min-height: 520px; max-height: 900px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.chat-side { display: flex; flex-direction: column; border-right: 1px solid var(--border); min-height: 0; }
.chat-side-head { padding: var(--space-4); border-bottom: 1px solid var(--border); display: grid; gap: var(--space-3); }
.chat-side-head h1 { font-size: 22px; line-height: 30px; margin: 0; }
.chat-folders { display: flex; gap: 4px; flex-wrap: wrap; }
.chat-folders a { padding: 6px 12px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.chat-folders a:hover { background: var(--bg-hover); color: var(--burgundy-700); text-decoration: none; }
.chat-folders a.active { background: var(--bg-selected); color: var(--burgundy-700); }
.chat-list { list-style: none; margin: 0; padding: var(--space-2); overflow-y: auto; flex: 1; }
.chat-item a { display: flex; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); color: inherit; align-items: center; }
.chat-item a:hover { background: var(--bg-hover); text-decoration: none; }
.chat-item.active a { background: var(--bg-selected); }
.chat-item-main { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; gap: var(--space-2); align-items: baseline; }
.chat-item-name { font-weight: 700; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-time { font-size: 12px; color: var(--text-secondary); flex: none; }
.chat-item-text { display: flex; gap: var(--space-2); justify-content: space-between; align-items: center; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.chat-item-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item.unread .chat-item-text span { color: var(--text-heading); font-weight: 600; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.chat-head-main { flex: 1; min-width: 0; }
.chat-head-name { font-weight: 700; color: var(--text-heading); font-size: 17px; }
.chat-head-name a { color: inherit; }
.chat-head-meta { font-size: 13px; color: var(--text-secondary); }
.chat-back { display: none; }
.chat-body { flex: 1; overflow-y: auto; padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); background: var(--neutral-25); }
.chat-empty { margin: auto; text-align: center; color: var(--text-secondary); max-width: 420px; }
.msg { display: flex; flex-direction: column; max-width: 72%; position: relative; }
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.msg-content { position: relative; min-width: 0; }
.msg-delete { position: absolute; top: 3px; right: calc(100% + 4px); }
.msg-bubble { padding: 10px 14px; border-radius: var(--radius-lg); font-size: 15px; line-height: 22px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-in .msg-bubble { background: var(--bg-message-in); color: var(--text-body); border-bottom-left-radius: 6px; }
.msg-out .msg-bubble { background: var(--bg-message-out); color: var(--text-heading); border-bottom-right-radius: 6px; }
.msg-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 16px; color: var(--text-secondary); margin-top: 4px; padding: 0 4px; }
.msg-meta .icon { width: 14px; height: 14px; }
.msg-meta .read { color: var(--burgundy-600); }
.msg-gift { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--gradient-soft); border: 1px solid var(--burgundy-200); }
.msg-gift strong { display: block; color: var(--text-heading); }
.msg-masked { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--gold-800); }
.msg-masked a { color: var(--gold-800); font-weight: 700; }
.msg-report { position: absolute; top: 4px; right: -36px; opacity: 0; transition: opacity .15s; }
.msg-in:hover .msg-report, .msg-report:focus-within { opacity: 1; }
.msg-date { align-self: center; font-size: 12px; font-weight: 700; color: var(--text-secondary); padding: 4px 12px; background: var(--neutral-100); border-radius: var(--radius-full); margin: var(--space-2) 0; }
.chat-more { align-self: center; }
.composer { border-top: 1px solid var(--border); padding: var(--space-3) var(--space-4); background: var(--bg-surface); }
.composer form { display: flex; gap: var(--space-2); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 48px; max-height: 180px; resize: none; padding: 12px var(--space-4); font: inherit; font-size: 15px; line-height: 22px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.composer textarea:focus { outline: none; border-color: var(--focus); box-shadow: var(--shadow-focus); }
.composer-note { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.composer-error { font-size: 13px; color: var(--danger-strong); font-weight: 600; margin-top: 6px; }
.chat-notice { margin: var(--space-4); }

/* ---------- VIP ---------- */
.vip-hero { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; padding: var(--space-12); border-radius: var(--radius-xl); background: linear-gradient(135deg, #FCF9F0 0%, #F6EDD9 100%); border: 1px solid var(--gold-300); }
.vip-hero h1 { margin-bottom: var(--space-3); }
.vip-hero p { color: var(--neutral-700); max-width: 780px; margin: 0; }
.vip-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.tariff { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.tariff.is-featured { border-color: var(--gold-500); box-shadow: 0 8px 28px rgba(193, 155, 85, .25); }
.tariff-flag { position: absolute; top: -12px; left: var(--space-6); }
.tariff-title { font-size: 18px; font-weight: 700; color: var(--text-heading); }
.tariff-price { font-size: 36px; line-height: 44px; font-weight: 800; color: var(--text-heading); }
.tariff-price small { font-size: 18px; font-weight: 700; }
.tariff-day { font-size: 14px; color: var(--text-secondary); }
.tariff .btn { margin-top: auto; }
.vip-status { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; padding: var(--space-6); border-radius: var(--radius-lg); background: linear-gradient(135deg, #FCF9F0 0%, #F6EDD9 100%); border: 1px solid var(--gold-300); }
.vip-status strong { color: var(--gold-800); font-size: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.table-middle td { vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--border); padding: var(--space-4) 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text-heading); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .15s ease; color: var(--text-secondary); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { margin-top: var(--space-3); color: var(--text-body); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Объявления ---------- */
.announcements { display: grid; gap: var(--space-4); }
.announcement { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-6); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.announcement-head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin-bottom: var(--space-2); }
.announcement-head strong { color: var(--text-heading); font-size: 17px; }
.announcement-text { white-space: pre-line; margin: 0 0 var(--space-3); }
.announcement-foot { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-secondary); }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-8); align-items: start; }

/* ---------- Авторизация ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-height)); }
.auth-side { background: var(--gradient-soft); display: flex; flex-direction: column; justify-content: center; padding: var(--space-16); border-right: 1px solid var(--border); }
.auth-side h2 { font-size: 32px; line-height: 40px; font-weight: 800; }
.auth-side ul { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-4); }
.auth-side li { display: flex; gap: var(--space-3); align-items: flex-start; }
.auth-side li .feature-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.auth-side li .feature-icon .icon { width: 22px; height: 22px; }
.auth-side li strong { display: block; color: var(--text-heading); }
.auth-side li span { color: var(--text-secondary); font-size: 15px; }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: var(--space-12) var(--space-6); }
.auth-card { width: 100%; max-width: 520px; }
.auth-card h1 { margin-bottom: var(--space-2); }
.auth-card .lead { margin-bottom: var(--space-6); }
.auth-alt { margin-top: var(--space-6); text-align: center; color: var(--text-secondary); }
.narrow { max-width: 640px; margin: 0 auto; }

/* ---------- Отступы ---------- */
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); }
.gap-2 { gap: var(--space-2); } .flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-wrap { flex-wrap: wrap; } .grow { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (min-width: 1921px) {
  .hero-art {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 27%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 27%, #000 85%, transparent);
  }
}

@media (max-width: 1240px) {
  .profiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav .nav-link { padding: 0 10px; }
}

@media (max-width: 1080px) {
  .main-nav, .header-actions .hide-tablet { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: var(--header-height) 0 0 0; z-index: 49; background: var(--bg-surface); padding: var(--space-4) var(--space-6) var(--space-8); overflow-y: auto; transform: translateX(100%); transition: transform .2s ease; visibility: hidden; }
  .mobile-menu.open { transform: none; visibility: visible; }
  .mobile-menu nav { display: grid; gap: 4px; }
  .mobile-menu .nav-link { height: 48px; font-size: 17px; }
  .mobile-menu .btn { width: 100%; margin-top: var(--space-2); }
  .mobile-menu .dropdown-menu { max-height: none; }
  body.menu-open { overflow: hidden; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(380px, 100vw); overflow-y: auto; overscroll-behavior: contain; align-content: start; z-index: 70; border-radius: 0; transform: translateX(100%); transition: transform .2s ease; visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters-toggle { display: inline-flex; }
  .catalog-toolbar .filters-toggle, .catalog-toolbar .sort-select, .catalog-toolbar .custom-select-button {
    min-height: 48px; padding-block: 11px; line-height: 24px;
  }
  .filters-close { display: inline-flex !important; }
  .cabinet { grid-template-columns: 1fr; }
  .cabinet-nav { position: static; min-width: 0; padding: var(--space-2); }
  .cabinet-user { display: none; }
  .cabinet-nav ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .cabinet-nav-sep { display: none; }
  .cabinet-nav .paid-service-links { display: flex; flex-wrap: wrap; overflow: visible; }
  .profile-page { grid-template-columns: 1fr; }
  .gallery { position: static; max-width: 560px; }
  .board { grid-template-columns: 1fr; }
  .vip-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .popular-profiles-list { --popular-columns: 4; }
  .hero-search form { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-search .segmented { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .hero { --hero-mobile-image-height: clamp(360px, 44vw, 420px); }
  .hero-art {
    inset: 0 0 auto; width: 100%; height: var(--hero-mobile-image-height);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
  }
  .hero-art img { object-position: 50% 0; }
  .hero-art::after { display: none; }
  .hero-inner { padding-block: calc(var(--hero-mobile-image-height) - 24px) var(--space-8); gap: var(--space-6); }
  .hero-copy { width: 100%; max-width: 720px; }
  .hero h1 { max-width: 720px; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -0.025em; }
  .hero-lead { max-width: 580px; }
}

@media (max-width: 760px) {
  .hero { --hero-mobile-image-height: clamp(240px, 48vw, 360px); }
  .hero-copy { max-width: none; }
  .hero h1 { max-width: 640px; font-size: clamp(32px, 5vw, 46px); }
}

@media (max-width: 860px) {
  .profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .steps, .articles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person-list { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - var(--header-height) - 32px); }
  .chat.has-thread .chat-side { display: none; }
  .chat:not(.has-thread) .chat-main { display: none; }
  .chat-back { display: inline-flex; }
  .msg { max-width: 86%; }
  .msg-report { right: auto; left: calc(100% + 4px); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .cta-band, .vip-band, .vip-hero { grid-template-columns: 1fr; padding: var(--space-8); }
  .details-table { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding-inline: var(--space-4); }
  .hero-search { padding: var(--space-4); border-radius: var(--radius-lg); }
  .hero-search form { grid-template-columns: minmax(0, 1fr); }
  .hero-search .segmented { grid-column: auto; }
  .hero-copy > .btn-row { gap: var(--space-3); }
  .hero-copy > .btn-row .btn { flex-grow: 1; }
  .table-cities, .table-cities tbody { display: block; width: 100%; }
  .table-cities thead { display: none; }
  .table-cities tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
  .table-cities td { padding: 0; border: 0; }
  .table-cities td:first-child { grid-column: 1 / -1; }
  .table-cities .city-link { display: flex; width: 100%; white-space: normal; font-size: 14px; }
  .table-cities .city-link span:not(.city-link-count) { flex: 1; }
  .page { padding-top: var(--space-6); padding-bottom: var(--space-12); }
  .section { margin-top: var(--space-12); }
  h1 { font-size: 26px; line-height: 34px; }
  .hero-lead { font-size: 16px; line-height: 24px; }
  .features, .vip-perks, .form-grid-2, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .profiles-grid, .profiles-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .profile-card-body { padding: var(--space-3); gap: 4px; }
  .profile-card-name { font-size: 16px; line-height: 22px; }
  .profile-card-text, .profile-card-actions { display: none; }
  .profile-card-badges { inset: 8px 8px auto; gap: 4px; }
  .profile-card-badges .badge { padding-inline: 5px; font-size: 12px; }
  .profile-card-badges .badge-new { display: none; }
  .person-list { grid-template-columns: minmax(0, 1fr); }
  .person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); }
  .person .avatar { --size: 56px; }
  .person-main { overflow-wrap: anywhere; }
  .person-side { grid-column: 2; flex-wrap: wrap; }
  .person-side:not(:has(> *)) { display: none; }
  .card-body, .form-section, .sticky-actions { padding: var(--space-4); }
  .gift-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-tile { padding: var(--space-3) var(--space-4); }
  .stat-tile .value { font-size: 22px; line-height: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .header-inner { gap: var(--space-2); }
  .header-actions { gap: 0; }
  .header-icon-btn { width: 40px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .dropdown-toggle { padding: 0 4px; }
  .dropdown-toggle .user-name, .dropdown-toggle .chevron { display: none; }
  .hide-mobile { display: none !important; }
  .auth-main { padding: var(--space-8) var(--space-4); }
  .gender-option { padding: var(--space-3); gap: var(--space-2); }
  .gender-option .icon { width: 22px; height: 22px; }
  .date-select select, .date-select .custom-select-button { padding-left: 6px; padding-right: 20px; background-position: right 3px center; }
  .chat-head { gap: 6px; padding: var(--space-2) var(--space-3); }
  .chat-head .btn-icon { width: 36px; height: 36px; }
  .chat-head .avatar { --size: 40px; }
  .chat-head-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .chat-head-name .badge-verified { display: none; }
  .chat-head-meta { line-height: 18px; }
  .notif-panel { position: fixed; left: var(--space-3); right: var(--space-3); width: auto; top: calc(var(--header-height) + 4px); }
  .announcement { grid-template-columns: 1fr; }
  .status-card { grid-template-columns: auto 1fr; }
  .status-card > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .container { padding-inline: 12px; }
  .brand { font-size: 16px; gap: 6px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-icon-btn { width: 36px; }
}

@media (max-width: 340px) {
  .header-actions .btn { display: none; }
  .header-icon-btn { width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .popular-profiles { display: none; }
}
