/* ===========================================================================
   Mahabbat — «Неон» (ночь по умолчанию).
   Подключается ПОСЛЕДНИМ, после calm.css. Откат — убрать строку <link>
   в front/club/_layout.blade.php.
   Палитра из логотипа: розовый #e0509a → фиолетовый #9b59f5,
   холодный акцент — голубой #4fb8d8. Фон — тёмно-синий #0d0d1a.
   =========================================================================== */

html[data-theme="dark"] {
    color-scheme: dark;
    --b-bg:          #0d0d1a;
    --b-surface:     #181828;
    --b-surface-2:   #1e1e32;
    --b-ink:         #f0eeff;
    --b-ink-soft:    #c4c4dc;
    --b-muted:       #8e8eb0;
    --b-line:        rgba(255,255,255,.07);
    --b-line-strong: rgba(255,255,255,.14);

    --b-accent:        #e0509a;
    --b-accent-strong: #c43680;
    --b-accent-text:   #f07ab8;
    --b-accent-soft:   rgba(224,80,154,.15);
    --b-on-accent:     #ffffff;
    --b-link:          #f07ab8;

    --b-dark:        #0d0d1a;
    --b-dark-2:      #090912;
    --b-on-dark:     #f0eeff;
    --b-on-dark-dim: #8e8eb0;
    --b-dark-line:   rgba(255,255,255,.07);

    --b-teal:      #4fb8d8;
    --b-teal-soft: rgba(79,184,216,.12);

    --mh-grad:      linear-gradient(135deg, #e0509a, #9b59f5);
    --mh-glow:      rgba(224,80,154,.35);
    --mh-teal-glow: rgba(79,184,216,.3);

    --kz-accent-solid:       #e0509a;
    --kz-accent-solid-hover: #c43680;
}
html[data-theme="dark"] .kz,
html[data-theme="dark"] .kz-body {
    --kz-accent-solid:       #e0509a;
    --kz-accent-solid-hover: #c43680;
}

/* Фон страницы: тёмный + цветные пятна сверху */
html[data-theme="dark"] body {
    background-color: var(--b-bg);
    background-image:
        radial-gradient(ellipse 60% 40% at 75% 0%, rgba(155,89,245,.16), transparent 70%),
        radial-gradient(ellipse 45% 35% at 10% 10%, rgba(79,184,216,.10), transparent 70%),
        radial-gradient(ellipse 50% 30% at 95% 25%, rgba(224,80,154,.12), transparent 70%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Шапка: полупрозрачная тёмная */
html[data-theme="dark"] .site-head {
    background: rgba(13,13,26,.88) !important;
    border-bottom: 1px solid var(--b-line);
}
html[data-theme="dark"] .site-nav a[aria-current="page"] { color: var(--b-ink); }

/* Логотип */
.site-head .brand-logo-img { height: 52px !important; width: auto !important; max-width: none !important; display: block;
    filter: drop-shadow(0 0 10px rgba(224,80,154,.35)); }
.site-foot .brand-logo-img, footer .brand-logo-img { height: 30px; width: auto; }
@media (max-width: 600px) { .site-head .brand-logo-img { height: 36px !important; } }

/* Главные кнопки — градиент и свечение (calm.css их гасил) */
html[data-theme="dark"] .btn-brand,
html[data-theme="dark"] .kz-btn--primary,
html[data-theme="dark"] .kz-card__cta-btn {
    background: var(--mh-grad) !important;
    background-image: var(--mh-grad) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 0 20px var(--mh-glow) !important;
}
html[data-theme="dark"] .btn-brand:hover { opacity: .9; box-shadow: 0 0 30px var(--mh-glow) !important; }

/* Hero: градиентный фон с пятнами */
html[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(155,89,245,.18), transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(79,184,216,.12), transparent 70%),
        linear-gradient(135deg, #0d0d1a 0%, #130d24 50%, #0d1520 100%) !important;
    border: 1px solid var(--b-line);
}
html[data-theme="dark"] .hero h1 .accent,
html[data-theme="dark"] .mh-grad-text {
    background: var(--mh-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Карточки анкет */
html[data-theme="dark"] .kz-card {
    background: var(--b-surface);
    border: 1px solid var(--b-line);
}
html[data-theme="dark"] .kz-card:hover {
    border-color: rgba(224,80,154,.35) !important;
    box-shadow: 0 8px 32px rgba(224,80,154,.12) !important;
}
html[data-theme="dark"] .kz-card__badge--online {
    background: #4fb8d8 !important; color: #fff !important;
    box-shadow: 0 0 10px var(--mh-teal-glow);
}
html[data-theme="dark"] .kz-card__badge--new {
    background: #e0509a !important; color: #fff !important;
    box-shadow: 0 0 10px var(--mh-glow);
}
html[data-theme="dark"] .kz-card__badge--vip {
    background: linear-gradient(135deg,#f0b429,#e08020) !important; color: #fff !important;
}
html[data-theme="dark"] .kz-card__like {
    background: var(--mh-grad) !important; color: #fff !important;
    box-shadow: 0 0 14px var(--mh-glow);
}

/* Города — холодный голубой */
html[data-theme="dark"] .city-card:hover {
    border-color: rgba(79,184,216,.35) !important;
    background: var(--b-teal-soft) !important;
}

/* Счётчики непрочитанного */
html[data-theme="dark"] .club-unread,
html[data-theme="dark"] .head-icon .count {
    background: var(--mh-grad) !important; color: #fff !important;
}

/* Фокус */
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus { outline-color: #e0509a; }

/* ── Футер в неоне ── */
.site-foot .brand-logo-img { height: 64px !important; width: auto !important; max-width: none !important;
    filter: drop-shadow(0 0 14px rgba(224,80,154,.4)); }
html[data-theme="dark"] .site-foot {
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(79,184,216,.10), transparent 70%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(155,89,245,.24), transparent 70%),
        radial-gradient(ellipse 40% 50% at 60% 0%, rgba(79,184,216,.08), transparent 70%),
        #090912 !important;
    color: var(--b-ink-soft) !important;
    border-top: 1px solid transparent !important;
    border-image: linear-gradient(90deg, transparent, #e0509a, #9b59f5, transparent) 1 !important;
}
html[data-theme="dark"] .site-foot a:not(.btn-brand):not(.btn-ghost) { color: var(--b-muted) !important; }
html[data-theme="dark"] .site-foot a:not(.btn-brand):not(.btn-ghost):hover { color: #f07ab8 !important; }
html[data-theme="dark"] .site-foot h2, html[data-theme="dark"] .site-foot h3,
html[data-theme="dark"] .site-foot h4 { color: #4fb8d8 !important; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
html[data-theme="dark"] .site-foot__about { color: var(--b-ink-soft) !important; }
html[data-theme="dark"] .site-foot .btn-ghost {
    background: rgba(255,255,255,.04) !important; color: var(--b-ink) !important;
    border: 1px solid var(--b-line-strong) !important;
}
html[data-theme="dark"] .site-foot .btn-ghost:hover { border-color: #4fb8d8 !important; color: #4fb8d8 !important; }
html[data-theme="dark"] .site-foot__bottom { border-top: 1px solid var(--b-line) !important; color: var(--b-muted) !important; }
html[data-theme="dark"] .foot-age {
    background: var(--mh-grad) !important; color: #fff !important; border: 0 !important;
    box-shadow: 0 0 12px var(--mh-glow);
}

/* ── Усиление: перебиваем brand.css (селекторы с :not(#_)) ── */
html body .site-head .brand-logo-img:not(#_):not(#__):not(#___) { height: 60px !important; width: auto !important; max-width: none !important; }
html body .site-foot .brand-logo-img:not(#_):not(#__):not(#___) { height: 80px !important; width: auto !important; max-width: none !important; }
@media (max-width: 600px) {
  html body .site-head .brand-logo-img:not(#_):not(#__):not(#___) { height: 40px !important; }
  html body .site-foot .brand-logo-img:not(#_):not(#__):not(#___) { height: 56px !important; }
}
html[data-theme="dark"] body .site-foot:not(#_):not(#__):not(#___) a.btn-brand,
html[data-theme="dark"] body .site-foot:not(#_):not(#__):not(#___) .btn-brand {
  background: linear-gradient(135deg, #e0509a, #9b59f5) !important;
  border: 0 !important; color: #fff !important;
  box-shadow: 0 0 20px rgba(224,80,154,.35) !important;
}
html[data-theme="dark"] body .site-foot:not(#_):not(#__):not(#___) a.btn-brand:hover { opacity: .9; box-shadow: 0 0 30px rgba(224,80,154,.5) !important; }
html[data-theme="dark"] body .site-foot:not(#_):not(#__):not(#___) .btn-ghost {
  background: rgba(255,255,255,.04) !important; color: #f0eeff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
html[data-theme="dark"] body .site-foot:not(#_):not(#__):not(#___) .btn-ghost:hover { border-color: #4fb8d8 !important; color: #4fb8d8 !important; }

/* ── Hero: заголовок, бейдж, цифры ── */
.mh-eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:20px;
  color:#4fb8d8; font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  border:1px solid rgba(79,184,216,.3); background:rgba(79,184,216,.12); padding:5px 14px; border-radius:999px; }
.mh-eyebrow::before { content:''; width:6px; height:6px; border-radius:50%; background:#4fb8d8; box-shadow:0 0 8px #4fb8d8; }
html body .mh-hero__title:not(#_) { font-size: clamp(40px, 6vw, 68px) !important; line-height: 1.05; letter-spacing: -.04em; }
.mh-grad-text { background: linear-gradient(135deg,#e0509a,#9b59f5); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.mh-stats { display:flex; gap:36px; flex-wrap:wrap; margin-top:32px; }
.mh-stats b { display:block; font-size:32px; font-weight:800; letter-spacing:-.04em; line-height:1.1; font-variant-numeric:tabular-nums; }
.mh-stats span { font-size:13px; color:var(--b-muted); }

/* ── Футер: без розового, кнопка как в шапке ── */
html body .site-foot:not(#_):not(#__):not(#___) {
  background:
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(155,89,245,.18), transparent 70%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(79,184,216,.10), transparent 70%),
    #090912 !important;
  border-image: linear-gradient(90deg, transparent, rgba(155,89,245,.6), rgba(79,184,216,.5), transparent) 1 !important;
}
html body .site-foot:not(#_):not(#__):not(#___) a.btn-brand {
  background: linear-gradient(135deg, #e0509a, #9b59f5) !important;
  background-image: linear-gradient(135deg, #e0509a, #9b59f5) !important;
  border: 0 !important; color: #fff !important;
  box-shadow: 0 0 20px rgba(224,80,154,.35) !important;
}
html body .site-foot:not(#_):not(#__):not(#___) .brand-logo-img { filter: none !important; }
html body .site-foot:not(#_):not(#__):not(#___) a:not(.btn-brand):not(.btn-ghost):hover { color: #4fb8d8 !important; }

/* ── Главная: без фоновой картинки ── */
html body .club-bg:not(#_) { display: none !important; background: none !important; }
html[data-theme="dark"] body.club-home:not(#_) { background: #0d0d1a !important; background-image: none !important; }
html[data-theme="dark"] body.club-home .hero-split:not(#_) {
  background: #12121f !important; border: 1px solid rgba(255,255,255,.07);
}

/* ===================== Светлая тема: белый фон, те же неоновые кнопки ===================== */
html[data-theme="light"] {
  --b-bg: #ffffff; --b-surface: #ffffff; --b-surface-2: #f6f4fb;
  --b-ink: #14121f; --b-ink-soft: #3a3850; --b-muted: #6e6a85;
  --b-line: rgba(20,18,31,.08); --b-line-strong: rgba(20,18,31,.16);
  --b-accent: #e0509a; --b-accent-strong: #c43680; --b-accent-text: #c43680;
  --b-accent-soft: rgba(224,80,154,.10); --b-link: #c43680;
  --b-teal: #2a90b8; --b-teal-soft: rgba(79,184,216,.12);
  --mh-grad: linear-gradient(135deg, #e0509a, #9b59f5);
  --mh-glow: rgba(224,80,154,.30); --mh-teal-glow: rgba(79,184,216,.30);
  --kz-accent-solid: #e0509a; --kz-accent-solid-hover: #c43680;
}
html[data-theme="light"] .kz, html[data-theme="light"] .kz-body { --kz-accent-solid: #e0509a; --kz-accent-solid-hover: #c43680; }

html[data-theme="light"] body:not(#_) { background: #ffffff !important; background-image: none !important; }
html[data-theme="light"] .site-head:not(#_) { background: rgba(255,255,255,.92) !important; border-bottom: 1px solid var(--b-line); }
html[data-theme="light"] body.club-home .hero-split:not(#_) { background: #ffffff !important; border: 1px solid var(--b-line); box-shadow: none !important; }

html[data-theme="light"] body .btn-brand:not(#_),
html[data-theme="light"] body .kz-btn--primary:not(#_),
html[data-theme="light"] body .kz-card__cta-btn:not(#_),
html[data-theme="light"] body .kz-card__like:not(#_) {
  background: var(--mh-grad) !important; background-image: var(--mh-grad) !important;
  color: #fff !important; border: 0 !important; box-shadow: 0 6px 20px var(--mh-glow) !important;
}
html[data-theme="light"] body .btn-ghost:not(#_) {
  background: #fff !important; color: var(--b-ink) !important; border: 1px solid var(--b-line-strong) !important;
}
html[data-theme="light"] body .btn-ghost:not(#_):hover { border-color: #9b59f5 !important; color: #9b59f5 !important; }

html[data-theme="light"] .kz-card { background: #fff; border: 1px solid var(--b-line); }
html[data-theme="light"] .kz-card:hover { border-color: rgba(224,80,154,.35) !important; box-shadow: 0 8px 28px rgba(224,80,154,.12) !important; }
html[data-theme="light"] .kz-card__badge--online { background: #4fb8d8 !important; color: #fff !important; }
html[data-theme="light"] .kz-card__badge--new { background: #e0509a !important; color: #fff !important; }
html[data-theme="light"] .kz-card__badge--vip { background: linear-gradient(135deg,#f0b429,#e08020) !important; color: #fff !important; }
html[data-theme="light"] .club-unread, html[data-theme="light"] .head-icon .count { background: var(--mh-grad) !important; color: #fff !important; }
html[data-theme="light"] .city-card:hover { border-color: rgba(79,184,216,.4) !important; background: rgba(79,184,216,.08) !important; }
html[data-theme="light"] .site-nav a[aria-current="page"] { color: #c43680; background: rgba(224,80,154,.08); }
html[data-theme="light"] .site-head .brand-logo-img { filter: none; }

/* ===================== Светлая тема: те же кнопки и акценты, белый фон ===================== */
html[data-theme="light"] {
  --b-bg: #ffffff; --b-surface: #ffffff; --b-surface-2: #f6f5fb;
  --b-accent: #e0509a; --b-accent-strong: #c43680; --b-accent-text: #c43680;
  --b-accent-soft: rgba(224,80,154,.10); --b-link: #c43680;
  --b-teal: #2a90b8; --b-teal-soft: rgba(79,184,216,.12);
  --kz-accent-solid: #e0509a; --kz-accent-solid-hover: #c43680;
  --mh-grad: linear-gradient(135deg, #e0509a, #9b59f5);
  --mh-glow: rgba(224,80,154,.30); --mh-teal-glow: rgba(79,184,216,.3);
}
html[data-theme="light"] .kz, html[data-theme="light"] .kz-body { --kz-accent-solid: #e0509a; --kz-accent-solid-hover: #c43680; }
html[data-theme="light"] body, html[data-theme="light"] body.club-home:not(#_) { background: #fff !important; background-image: none !important; }
html[data-theme="light"] body.club-home .hero-split:not(#_) { background: #fff !important; border: 1px solid rgba(0,0,0,.07); }

html[data-theme="light"] .btn-brand,
html[data-theme="light"] .kz-btn--primary,
html[data-theme="light"] .kz-card__cta-btn,
html body .site-foot:not(#_):not(#__):not(#___) a.btn-brand {
  background: linear-gradient(135deg, #e0509a, #9b59f5) !important;
  background-image: linear-gradient(135deg, #e0509a, #9b59f5) !important;
  color: #fff !important; border: 0 !important;
  box-shadow: 0 0 20px rgba(224,80,154,.30) !important;
}
html[data-theme="light"] .btn-brand:hover { opacity: .9; }
html[data-theme="light"] .kz-card__like { background: linear-gradient(135deg,#e0509a,#9b59f5) !important; color:#fff !important; }
html[data-theme="light"] .kz-card__badge--online { background:#4fb8d8 !important; color:#fff !important; }
html[data-theme="light"] .kz-card__badge--new { background:#e0509a !important; color:#fff !important; }
html[data-theme="light"] .kz-card__badge--vip { background:linear-gradient(135deg,#f0b429,#e08020) !important; color:#fff !important; }
html[data-theme="light"] .club-unread, html[data-theme="light"] .head-icon .count { background: linear-gradient(135deg,#e0509a,#9b59f5) !important; color:#fff !important; }
html[data-theme="light"] .site-head { background: rgba(255,255,255,.92) !important; }

/* ── Форма поиска на главной ── */
.mh-search {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: end;
  margin-top: 28px; padding: 10px; border-radius: 14px;
  background: var(--b-surface-2); border: 1px solid var(--b-line-strong);
}
.mh-search__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh-search__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--b-muted); padding-left: 4px; }
.mh-search__ctl {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 36px 0 12px; border-radius: 10px;
  background: var(--b-surface); border: 1px solid var(--b-line);
  transition: border-color .12s;
}
.mh-search__ctl:focus-within { border-color: #e0509a; box-shadow: 0 0 0 3px rgba(224,80,154,.18); }
.mh-search__ctl::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--b-muted); border-bottom: 2px solid var(--b-muted); transform: rotate(45deg); pointer-events: none;
}
.mh-search__ctl .kz-ico { width: 18px; height: 18px; color: #4fb8d8; flex-shrink: 0; }
html body .mh-search__ctl select:not(#_) {
  appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; height: 100%;
  background: transparent !important; border: 0 !important; outline: 0 !important; box-shadow: none !important;
  color: var(--b-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; padding: 0;
}
.mh-search__ctl select option { background: var(--b-surface); color: var(--b-ink); }
html body .mh-search__btn:not(#_) { height: 46px; padding: 0 28px; border-radius: 10px !important; font-size: 15px; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) {
  .mh-search { grid-template-columns: 1fr 1fr; }
  .mh-search__btn { grid-column: 1 / -1; }
}

/* ── Форма поиска: сброс глобальных стилей select (двойная рамка и стрелка) ── */
html body .mh-search .mh-search__ctl select:not(#_):not(#__):not(#___) {
  appearance: none !important; -webkit-appearance: none !important;
  background: transparent !important; background-image: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important;
  height: 100% !important; min-height: 0 !important; width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important; flex: 1 1 auto;
  color: var(--b-ink) !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1 !important;
}
html body .mh-search .mh-search__ctl:not(#_) { width: 100%; }
html body .mh-search .mh-search__ctl:focus-within:not(#_) { border-color: #e0509a; box-shadow: 0 0 0 3px rgba(224,80,154,.18); }
html body .mh-search .mh-search__ctl select:focus:not(#_):not(#__):not(#___) { outline: 0 !important; box-shadow: none !important; }

/* ── Форма поиска v3: одна рамка и одна стрелка — у самого select ── */
html body .mh-search .mh-search__ctl:not(#_):not(#__) {
  height: auto; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
  display: block; position: relative;
}
html body .mh-search .mh-search__ctl:not(#_):not(#__)::after { display: none !important; content: none !important; }
html body .mh-search .mh-search__ctl .kz-ico:not(#_) {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none;
}
html body .mh-search .mh-search__ctl select:not(#_):not(#__):not(#___) {
  appearance: none !important; -webkit-appearance: none !important;
  width: 100% !important; height: 48px !important;
  padding: 0 40px 0 16px !important;
  border: 1px solid var(--b-line-strong) !important; border-radius: 10px !important;
  background-color: var(--b-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238e8eb0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 12px 8px !important;
  color: var(--b-ink) !important; font-size: 15px !important; font-weight: 500 !important;
  box-shadow: none !important; outline: 0 !important; cursor: pointer;
}
html body .mh-search .mh-search__ctl .kz-ico + select:not(#_):not(#__):not(#___) { padding-left: 42px !important; }
html body .mh-search .mh-search__ctl select:focus:not(#_):not(#__):not(#___) {
  border-color: #e0509a !important; box-shadow: 0 0 0 3px rgba(224,80,154,.18) !important;
}
html body .mh-search .mh-search__btn:not(#_):not(#__) { height: 48px !important; }

/* ── Форма поиска v4: воздух, выравнивание, иконка не налезает ── */
html body .mh-search:not(#_):not(#__) {
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) auto;
  gap: 14px; padding: 18px 18px 18px; margin-top: 32px;
  border-radius: 16px; align-items: end;
}
html body .mh-search .mh-search__field:not(#_) { gap: 8px; }
html body .mh-search .mh-search__label:not(#_) { padding-left: 2px; line-height: 1; }
html body .mh-search .mh-search__ctl select:not(#_):not(#__):not(#___):not(#____) {
  height: 52px !important; padding: 0 44px 0 18px !important;
}
html body .mh-search .mh-search__ctl .kz-ico + select:not(#_):not(#__):not(#___):not(#____) {
  padding-left: 48px !important;
}
html body .mh-search .mh-search__ctl .kz-ico:not(#_) { left: 18px; width: 18px; height: 18px; }
html body .mh-search .mh-search__btn:not(#_):not(#__):not(#___) {
  height: 52px !important; padding: 0 34px !important; margin: 0 !important; align-self: end;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1 !important;
}
@media (max-width: 640px) {
  html body .mh-search:not(#_):not(#__) { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
  html body .mh-search .mh-search__btn:not(#_):not(#__):not(#___) { width: 100%; }
}

/* ── Шапка: меню не наезжает на правый блок ── */
html body .site-head .site-head__inner:not(#_) { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
html body .site-head .site-head__logo:not(#_) { flex: 0 0 auto; }
html body .site-head .site-nav:not(#_) { flex: 1 1 auto; min-width: 0; overflow: hidden; }
html body .site-head .site-nav__inner:not(#_) { display: flex; gap: 2px; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
html body .site-head .site-nav__inner::-webkit-scrollbar { display: none; }
html body .site-head .site-nav__inner a:not(#_) { padding: 6px 10px; flex: 0 0 auto; }
html body .site-head .site-head__actions:not(#_) { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
/* На средних экранах логотип чуть меньше, чтобы меню влезало */
@media (max-width: 1440px) {
  html body .site-head .brand-logo-img:not(#_):not(#__):not(#___) { height: 48px !important; }
}

/* ===================================================================
   ПЕРЛАМУТР И БЛЕСК — «клубный» слой
   =================================================================== */
:root {
  --mh-pearl: linear-gradient(110deg, #ff7ac6 0%, #ffd1f0 14%, #c58bff 28%, #8fe3ff 42%, #ffffff 50%, #ff9ad5 58%, #b77bff 72%, #7fd8ff 86%, #ff7ac6 100%);
  --mh-holo:  conic-gradient(from var(--mh-a, 0deg), #ff4fa8, #ffb3e6, #b06bff, #6fd6ff, #ffffff, #ff4fa8);
}
@property --mh-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@keyframes mh-pearl-move { to { background-position: 200% 50%; } }
@keyframes mh-sheen      { 0% { transform: translateX(-120%) skewX(-20deg); } 60%,100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes mh-spin       { to { --mh-a: 360deg; } }
@keyframes mh-twinkle    { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes mh-glow-pulse { 0%,100% { box-shadow: 0 0 18px rgba(255,79,168,.35), 0 0 40px rgba(176,107,255,.15); }
                           50%     { box-shadow: 0 0 28px rgba(255,79,168,.6),  0 0 60px rgba(111,214,255,.25); } }

/* Переливающийся перламутровый текст */
html body .mh-grad-text:not(#_) {
  background: var(--mh-pearl); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: mh-pearl-move 6s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255,122,198,.35));
}

/* Кнопки: перламутровый градиент + бегущий блик + пульс свечения */
html body .btn-brand:not(#_):not(#__):not(#___),
html body .mh-search__btn:not(#_):not(#__):not(#___),
html body .site-foot:not(#_):not(#__):not(#___) a.btn-brand {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(110deg, #e0509a, #ff7ac6, #b06bff, #7fb8ff, #e0509a) !important;
  background-size: 250% 100% !important;
  animation: mh-pearl-move 5s linear infinite, mh-glow-pulse 2.8s ease-in-out infinite;
}
html body .btn-brand:not(#_)::after,
html body .mh-search__btn:not(#_)::after {
  content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: mh-sheen 3.2s ease-in-out infinite;
}

/* Логотип мерцает */
html body .site-head .brand-logo-img:not(#_) { animation: mh-logo-glow 3.5s ease-in-out infinite; }
@keyframes mh-logo-glow {
  0%,100% { filter: drop-shadow(0 0 8px rgba(255,79,168,.4)); }
  50%     { filter: drop-shadow(0 0 18px rgba(255,122,198,.8)) drop-shadow(0 0 30px rgba(176,107,255,.4)) brightness(1.08); }
}

/* Верхний блок: перламутровые пятна + искорки */
html[data-theme="dark"] body.club-home .hero-split:not(#_) {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 55% 60% at 85% 20%, rgba(176,107,255,.22), transparent 70%),
    radial-gradient(ellipse 45% 55% at 10% 90%, rgba(111,214,255,.14), transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,79,168,.10), transparent 70%),
    #12121f !important;
}
html body.club-home .hero-split:not(#_)::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0; pointer-events: none;
  background: var(--mh-holo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mh-spin 8s linear infinite; opacity: .7;
}
html body.club-home .hero-split:not(#_)::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 28% 72%, #ffd1f0, transparent 60%),
    radial-gradient(2px 2px at 46% 12%, #8fe3ff, transparent 60%),
    radial-gradient(1.5px 1.5px at 63% 88%, #fff, transparent 60%),
    radial-gradient(2.5px 2.5px at 78% 30%, #ffb3e6, transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 64%, #c58bff, transparent 60%),
    radial-gradient(2px 2px at 36% 42%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 7% 58%, #8fe3ff, transparent 60%);
  animation: mh-twinkle 3s ease-in-out infinite;
}
html body.club-home .hero-split > *:not(#_) { position: relative; z-index: 1; }

/* Карточки анкет: голографическая рамка и блик при наведении */
html body .kz-card:not(#_) { position: relative; isolation: isolate; }
html body .kz-card:not(#_)::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
  background: var(--mh-holo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s; animation: mh-spin 4s linear infinite;
}
html body .kz-card:hover:not(#_)::before { opacity: 1; }
html body .kz-card__media:not(#_) { position: relative; overflow: hidden; }
html body .kz-card__media:not(#_)::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-140%) skewX(-20deg);
}
html body .kz-card:hover .kz-card__media:not(#_)::after { animation: mh-sheen 1.1s ease-out 1; }

/* Цифры в герое и бейджи — тоже переливаются */
html body .kz-card__badge--vip:not(#_) {
  background: linear-gradient(110deg, #f0b429, #fff1b8, #e08020, #ffd36b, #f0b429) !important;
  background-size: 250% 100% !important; animation: mh-pearl-move 3s linear infinite; color: #3a2200 !important;
}
html body .mh-eyebrow:not(#_) { animation: mh-glow-pulse 3s ease-in-out infinite; }

/* Линия в подвале переливается */
html body .site-foot:not(#_):not(#__):not(#___) {
  border-image: linear-gradient(90deg, transparent, #ff7ac6, #c58bff, #8fe3ff, #ffffff, #ff9ad5, transparent) 1 !important;
}

/* Бережём тех, кому движение мешает */
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation: none !important; }
}
