/*
Theme Name: Miracle
Theme URI: https://baggyweb.ru/
Author: Evgeniy_Bezhencev
Author URI: https://baggyweb.ru/
Description: Тема для общения
Version: 1.1.0
License: Evgeniy_Lock
*/
/**
 * Назначение файла: Базовое оформление темы. Имена классов и правила каскада сохранены для совместимости шаблонов.
 * Пояснения к изменениям производительности размещены возле соответствующих блоков.
 */


/* ============================================================
   MIRACLE — ОБЩАЯ ТЁМНАЯ ТЕМА
   Важно: transform не используется, чтобы интерфейс не дёргался
============================================================ */

:root {
    --bg-body: #1a1a1a;
    --bg-panel: #232220;
    --bg-panel-2: #2a2825;
    --bg-panel-3: #181716;
    --bg-soft: rgba(255, 255, 255, 0.045);
    --bg-soft-2: rgba(255, 255, 255, 0.07);
    --bg-dark-soft: rgba(0, 0, 0, 0.18);

    --accent: #c4455c;
    --accent-hover: #d75970;
    --accent-soft: rgba(196, 69, 92, 0.14);
    --accent-border: rgba(196, 69, 92, 0.36);

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-soft: rgba(255, 255, 255, 0.52);
    --text-dark: #171615;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --green: #5bbf3a;
    --blue: #2aa6ff;
    --yellow: #f6b23c;
    --red: #fb7185;

    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 7px;

    --site-max: 1350px;
    --content-max: 1400px;
}

/* ============================================================
   СБРОС / БАЗА
============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(196, 69, 92, 0.05), transparent 360px),
        var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    display: block;
    min-height: calc(100vh - 72px);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

a:hover {
    color: var(--accent-hover);
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
}

input,
textarea,
select {
    color: var(--text-main);
}

body.wm-filter-lock {
    overflow: hidden;
    touch-action: none;
}

/* ============================================================
   ВОДЯНОЙ ЗНАК — СТРОГО ПО ЦЕНТРУ ФОТО
============================================================ */

.media {
    position: relative;
}

.media::after {
    content: "Miracle-ladies";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.43);
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px;
}

.anketa-card::after {
    display: none !important;
}

.anketa-gallery-item {
    position: relative;
}

.anketa-gallery-item::after {
    content: "Miracle-ladies";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.13);
    font-size: clamp(18px, 2.3vw, 38px);
    line-height: 1;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px;
}

.fancybox__content {
    position: relative;
}

.fancybox__content::after {
    content: "Miracle-ladies";
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.13);
    font-size: clamp(22px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px;
}

/* ============================================================
   ШАПКА САЙТА
============================================================ */

header {
    position: relative;
    z-index: 1001;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
        var(--bg-panel);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-logo a {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.header-logo a:hover {
    color: var(--accent-hover);
}

.header-logo-image {
    display: block;
    height: 68px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.current-page {
    color: #ffffff;
}

.header-nav a:hover::after,
.header-nav a.current-page::after {
    right: 0;
}

/* Кнопка Shorts */

.header-shorts-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px !important;
    background: rgba(196, 69, 92, 0.1);
    color: var(--accent);
    border: 1px solid rgba(196, 69, 92, 0.34);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.header-shorts-button:hover {
    background: rgba(196, 69, 92, 0.2);
    border-color: rgba(196, 69, 92, 0.58);
    color: #ffffff;
}

.header-shorts-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
    flex-shrink: 0;
}

/* Избранное в шапке */

.header-favorites-link {
    display: inline-flex;
    margin-left: 4px;
}

.header-favorites {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 69, 92, 0.1);
    border: 1px solid rgba(196, 69, 92, 0.34);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.header-favorites:hover {
    background: rgba(196, 69, 92, 0.2);
    border-color: rgba(196, 69, 92, 0.58);
}

.header-favorites-icon {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
}

.header-favorites:hover .header-favorites-icon {
    stroke: #ffffff;
    fill: var(--accent);
}

.header-favorites-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: var(--accent);
    color: #ffffff;
    border: 2px solid var(--bg-panel);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-favorites-count.pulse {
    animation: favoritesPulse 0.6s ease;
}

@keyframes favoritesPulse {
    0% { opacity: 1; }
    50% { opacity: .55; }
    100% { opacity: 1; }
}

/* Аккаунт */

.header-account {
    position: relative;
}

.header-account-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid transparent;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.header-account-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-subtle);
}

.header-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--bg-panel-3);
}

.header-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.86);
}

.header-account-label {
    font-size: 10px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-account-name {
    max-width: 150px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 9px;
    min-width: 230px;
    background: #262421;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
    overflow: hidden;
}

.header-account:hover .header-account-menu {
    opacity: 1;
    visibility: visible;
}

.header-account-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.18s ease, color 0.18s ease;
}

.header-account-menu-item:last-child {
    border-bottom: none;
}

.header-account-menu-item:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
}

.header-account-menu-title {
    font-weight: 600;
    font-size: 13px;
}

.header-account-menu-amount {
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
}

.header-account-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 4px 0;
}

.header-account-menu-item--logout:hover {
    background: rgba(196, 69, 92, 0.12);
    color: var(--accent-hover);
}

/* Гость */

.header-auth-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-auth-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.header-auth-links a:hover,
.header-auth-register {
    color: var(--accent-hover);
}

.header-auth-sep {
    color: rgba(255, 255, 255, 0.24);
}

/* Мобильное меню */

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 32px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle-line {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.mobile-menu-toggle.active .mobile-menu-toggle-line:nth-child(2) {
    opacity: 0.35;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(88vw, 340px);
    height: 100%;
    background: var(--bg-panel);
    z-index: 1000;
    transition: left 0.25s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 18px 16px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
}

.mobile-menu-close:hover {
    color: var(--accent-hover);
    background: rgba(196, 69, 92, 0.12);
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 0;
}

.mobile-menu-link,
.mobile-shorts-button,
.mobile-favorites {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mobile-menu-link:hover,
.mobile-shorts-button:hover,
.mobile-favorites:hover {
    background: rgba(196, 69, 92, 0.1);
    color: #ffffff;
    border-left-color: var(--accent);
}

.mobile-menu-link--register,
.mobile-menu-link--logout {
    color: var(--accent-hover);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 15px 20px;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    margin-bottom: 8px;
}

.mobile-menu-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.mobile-menu-user-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
}

.mobile-menu-user-balance {
    color: var(--text-soft);
    font-size: 14px;
}

.mobile-shorts-icon,
.mobile-favorites svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    stroke: var(--accent);
    fill: none;
}

.mobile-favorites-count {
    margin-left: auto;
    background: var(--accent);
    color: #ffffff;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    padding: 0 5px;
}

/* ============================================================
   ПОДВАЛ САЙТА
============================================================ */

.footer {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
        #242220;
    padding: 50px 20px 30px;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__inner {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) repeat(2, minmax(180px, 1fr));
    gap: 44px;
    align-items: flex-start;
}

.footer__left-logo {
    margin-bottom: 22px;
}

.footer__left-logo a {
    display: inline-block;
    text-decoration: none;
}

.footer__left-logo img {
    display: block;
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer__left-text {
    max-width: 330px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.65;
}

.footer__column {
    min-width: 0;
}

.footer__column-title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.footer__column-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.footer__menu,
.footer__info {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer__menu a,
.footer__info a {
    position: relative;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    padding: 3px 0;
}

.footer__menu a:hover,
.footer__info a:hover {
    color: #ffffff;
}

.footer__bottom {
    max-width: 1350px;
    margin: 44px auto 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.46);
    font-size: 13px;
    gap: 20px;
}

.footer__bottom-copy {
    color: rgba(255, 255, 255, 0.46);
}

.footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer__bottom-links a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 13px;
}

.footer__bottom-links a:hover {
    color: #ffffff;
}

.footer__bottom-links span {
    color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   СТРАНИЦА АНКЕТ / ОБЩИЕ ОБЁРТКИ
============================================================ */

.ankety-wrapper,
.ankety-wrapper_top {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 30px 0;
    min-height: calc(100vh - 80px);
}

.ankety-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 16px;
}

.ankety-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.ankety-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(196, 69, 92, 0.1);
    border: 1px solid rgba(196, 69, 92, 0.32);
    border-radius: 999px;
}

.counter-number {
    color: var(--accent-hover);
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.counter-text {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================================
   ФИЛЬТР
============================================================ */

.wm-filter-panel {
    background:
        radial-gradient(circle at top left, rgba(196, 69, 92, 0.08), transparent 260px),
        var(--bg-panel-2);
    padding: 20px;
    margin-bottom: 28px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.wm-filter-row {
    display: grid;
    gap: 22px;
}

.wm-filter-row--sliders {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    margin-bottom: 18px;
}

.wm-filter-row--inputs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    margin-bottom: 16px;
}

.wm-filter-row--services,
.wm-filter-row--districts,
.wm-filter-row--taxonomies {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
}

.wm-filter-row--bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.wm-filter-block,
.wm-filter-block--services,
.wm-filter-block--taxonomies {
    min-width: 0;
}

.wm-filter-label {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.wm-input {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
    font-size: 13px;
}

.wm-input:focus {
    outline: none;
    border-color: rgba(196, 69, 92, 0.75);
    background: rgba(0, 0, 0, 0.26);
}

.wm-input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.wm-input-search {
    width: 100%;
}

.wm-input-select {
    min-height: 120px;
    height: auto;
    padding: 8px 10px;
}

/* Range */

.wm-range {
    user-select: none;
}

.wm-range-current {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 700;
}

.wm-range-wrap {
    position: relative;
    height: 24px;
}

.wm-range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 11px;
    height: 4px;
    background: rgba(196, 69, 92, 0.32);
    border-radius: 999px;
}

.wm-range-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    background: var(--accent);
    border-radius: 999px;
}

.wm-range-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.wm-range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

.wm-range-input::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.wm-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(196, 69, 92, 0.86);
    pointer-events: auto;
    cursor: pointer;
    margin-top: -7px;
}

.wm-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(196, 69, 92, 0.86);
    pointer-events: auto;
    cursor: pointer;
}

.wm-range-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.wm-two-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Услуги / районы */

.wm-services-desktop,
.wm-districts-desktop {
    display: block;
}

.wm-services-mobile,
.wm-districts-mobile {
    display: none;
}

.wm-services-grid,
.wm-districts-grid {
    margin: 0 auto;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .13);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    max-height: 150px;
    overflow: auto;
}

.wm-services-grid::-webkit-scrollbar,
.wm-districts-grid::-webkit-scrollbar,
.wm-filter-panel::-webkit-scrollbar {
    width: 6px;
}

.wm-services-grid::-webkit-scrollbar-track,
.wm-districts-grid::-webkit-scrollbar-track,
.wm-filter-panel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}

.wm-services-grid::-webkit-scrollbar-thumb,
.wm-districts-grid::-webkit-scrollbar-thumb,
.wm-filter-panel::-webkit-scrollbar-thumb {
    background: rgba(196, 69, 92, 0.75);
    border-radius: 999px;
}

.wm-service-item,
.wm-district-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .10);
    cursor: pointer;
    user-select: none;
    transition: border-color .18s ease, background .18s ease;
}

.wm-service-item:hover,
.wm-district-item:hover {
    border-color: rgba(196, 69, 92, .55);
    background: rgba(196, 69, 92, .10);
}

.wm-service-check,
.wm-district-check {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex: 0 0 auto;
}

.wm-service-text,
.wm-district-text {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.25;
}

.wm-districts-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wm-district-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.wm-district-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.wm-districts-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-xs);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    padding: 0 10px;
    margin-left: auto;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.wm-districts-toggle:hover {
    background: rgba(196, 69, 92, 0.2);
    border-color: rgba(196, 69, 92, 0.5);
}

/* Сворачиваемые таксономии */

.wm-filter-block--taxonomies {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wm-tax-item {
    background: rgba(0, 0, 0, 0.16);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 11px 12px;
}

.wm-tax-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.wm-tax-label {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

.wm-collapse-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.wm-collapse-btn:hover {
    background: rgba(196, 69, 92, 0.16);
    border-color: rgba(196, 69, 92, 0.3);
}

.wm-collapse-content {
    max-height: 700px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}

.wm-collapse-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0;
}

.wm-tax-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 9px;
}

.wm-tax-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.wm-tax-link:hover {
    color: var(--accent-hover);
}

/* Чекбоксы и кнопки фильтра */

.wm-checks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.wm-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.wm-check-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wm-check-ico {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
    opacity: .95;
}

.wm-actions {
    display: flex;
    gap: 14px;
}

.wm-btn {
    min-width: 170px;
    height: 44px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.2px;
    border-radius: 999px;
    color: #ffffff;
    transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.wm-btn-apply {
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wm-btn-apply:hover {
    background: var(--accent-hover);
}

.wm-btn-reset {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.wm-btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wm-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.wm-apply-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 13px;
    font-weight: 900;
}

/* ============================================================
   РЕЗУЛЬТАТЫ / КАРТОЧКИ АНКЕТ
============================================================ */

.wm-results {
    position: relative;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
        var(--bg-panel);
    border-radius: var(--radius-xl);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
    border-color: rgba(196, 69, 92, 0.55);
    background:
        radial-gradient(circle at top left, rgba(196, 69, 92, 0.08), transparent 260px),
        var(--bg-panel);
}

.head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.name {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.fav {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
}

.fav svg {
    width: 18px;
    height: 18px;
    transition: fill 0.18s ease, stroke 0.18s ease;
}

.fav.active svg {
    fill: var(--accent);
    stroke: var(--accent);
}

.top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.media {
    position: relative;
    width: 500px;
    height: 550px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000000;
    display: block;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.stats {
    width: 78px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    text-align: center;
    line-height: 1.05;
}

.stat .k {
    display: block;
    margin-bottom: 9px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
}

.stat .v {
    color: var(--accent-hover);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .2px;
}

.anketa-icons {
    position: absolute;
    top: 50px;
    right: 88px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    z-index: 3;
    padding: 0;
}

.anketa-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    padding: 5px;
    transition: background 0.18s ease;
}

.anketa-icon:hover {
    background: rgba(255,255,255,0.12);
}

.anketa-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.anketa-icon.map-stat {
    background: transparent !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anketa-icon.map-stat .v.map-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(196, 69, 92, 0.45);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.anketa-icon.map-stat .v.map-trigger:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.anketa-icon.map-stat .v.map-trigger svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

.actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-main {
    flex: 1;
    min-height: 44px;
    border-radius: 999px;
    background: var(--accent);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-main:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
}

.btn-main svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.1);
    display: grid;
    place-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.1);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.btn-icon.wa {
    background: rgba(91, 191, 58, 0.12);
    border-color: rgba(91, 191, 58, 0.55);
}

.btn-icon.wa svg,
.btn-icon.wa svg path,
.btn-icon.wa svg circle {
    stroke: #5bbf3a !important;
    fill: none;
}

.btn-icon.wa:hover {
    background: rgba(91, 191, 58, 0.22);
    border-color: rgba(91, 191, 58, 0.85);
}

.btn-icon.tg {
    background: rgba(42, 166, 255, 0.12);
    border-color: rgba(42, 166, 255, 0.55);
}

.btn-icon.tg svg,
.btn-icon.tg svg path,
.btn-icon.tg svg circle {
    stroke: #2aa6ff !important;
    fill: none;
}

.btn-icon.tg:hover {
    background: rgba(42, 166, 255, 0.22);
    border-color: rgba(42, 166, 255, 0.85);
}

.prices {
    margin-top: 12px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 22px;
}

.price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.52);
    white-space: nowrap;
}

.meta svg {
    width: 16px;
    height: 16px;
    opacity: .85;
    stroke: rgba(255,255,255,0.52);
}

.amount {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}

.amount.hot {
    color: var(--accent-hover);
}

.amount.no {
    color: var(--text-soft);
}

/* Плашки */

.top-card::before {
    content: "ТОП";
    position: absolute;
    top: 50px;
    left: 15px;
    background: var(--accent);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    z-index: 10;
    letter-spacing: 0.5px;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: var(--accent);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    animation: wmNewPulse 2s infinite;
}

@keyframes wmNewPulse {
    0% { opacity: 1; }
    50% { opacity: .72; }
    100% { opacity: 1; }
}

.new-icon {
    display: inline-block;
}

/* Загрузка */

.wm-loading {
    position: absolute;
    inset: 0;
    background: rgba(20, 19, 18, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: var(--radius-lg);
}

.wm-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: wmSpin 0.8s linear infinite;
}

@keyframes wmSpin {
    to {
        rotate: 360deg;
    }
}

/* ============================================================
   ТОП-СЛАЙДЕР
============================================================ */

.wm-top-wrap {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    margin: 10px 0 22px;
}

.wm-top-wrap::before {
    content: "ТОП АНКЕТЫ";
    position: absolute;
    left: 0;
    right: 0;
    top: 35%;
    z-index: 0;
    color: rgba(255, 59, 114, 0.07);
    font-size: clamp(54px, 8vw, 120px);
    line-height: 1;
    font-weight: 950;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 5px;
}

.wm-top-wrap > * {
    position: relative;
    z-index: 1;
}

.wm-top-head {
    display: flex;
    justify-content: center;
    margin: 0 0 14px;
}

.wm-top-title {
    position: relative;
    margin: 0;
    padding-bottom: 18px;
    color: #ffffff;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
}

.wm-top-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -30px;
    width: 60px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.wm-top-slider {
    position: relative;
    width: 100%;
    padding: 10px 0 54px;
    margin: 0 0 20px;
}

.wm-top-slider .swiper-slide {
    height: auto;
}

.wm-top-slider .swiper-wrapper {
    align-items: stretch;
}

.wm-top-slider .card {
    height: 100%;
}

/* Кнопки и точки Swiper под стиль сайта */

.ankety-wrapper_top .wm-top-slider .swiper-button-next,
.ankety-wrapper_top .wm-top-slider .swiper-button-prev {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(35, 34, 32, 0.92);
    border: 1px solid rgba(196, 69, 92, 0.45);
    color: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ankety-wrapper_top .wm-top-slider .swiper-button-next::after,
.ankety-wrapper_top .wm-top-slider .swiper-button-prev::after {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.ankety-wrapper_top .wm-top-slider .swiper-button-next:hover,
.ankety-wrapper_top .wm-top-slider .swiper-button-prev:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.ankety-wrapper_top .wm-top-slider .swiper-button-prev {
    left: 8px;
}

.ankety-wrapper_top .wm-top-slider .swiper-button-next {
    right: 8px;
}

.ankety-wrapper_top .wm-top-slider .swiper-button-disabled {
    opacity: 0.35;
}

.ankety-wrapper_top .wm-top-slider .swiper-pagination {
    bottom: 0px !important;
}

.ankety-wrapper_top .wm-top-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.32);
    opacity: 1;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.ankety-wrapper_top .wm-top-slider .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--accent);
}

.ankety-wrapper_top .wm-top-slider .swiper-button-next:focus,
.ankety-wrapper_top .wm-top-slider .swiper-button-prev:focus,
.ankety-wrapper_top .wm-top-slider .swiper-pagination-bullet:focus {
    outline: none;
}

.wm-top-description {
    margin: 24px auto 0;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wm-top-description p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

/* ============================================================
   ПАГИНАЦИЯ
============================================================ */

.ankety-pagination ul {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 24px 0 0;
}

.ankety-pagination li {
    margin: 0;
}

.ankety-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    text-decoration: none;
    background: rgba(255,255,255,0.055);
}

.ankety-pagination .page-numbers:hover,
.ankety-pagination .page-numbers.current {
    border-color: rgba(196, 69, 92, 0.7);
    background: rgba(196, 69, 92, 0.16);
}

/* ============================================================
   ПОПАП КАРТЫ — MIRACLE
   Работает с твоим JS без блока wm-map-anketa-info
============================================================ */

.wm-map-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at center, rgba(196, 69, 92, 0.16), transparent 460px),
        rgba(0, 0, 0, 0.84);
}

.wm-map-popup-content {
    position: relative;
    width: min(94vw, 920px);
    max-width: 920px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(196, 69, 92, 0.14), transparent 280px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
        var(--bg-panel);
    border: 1px solid rgba(196, 69, 92, 0.34);
    color: var(--text-main);
    overflow: hidden;
}

.wm-map-popup-content::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.9;
}

.wm-map-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    background: rgba(35, 34, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wm-map-popup-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

#wm-map-container {
    width: 100% !important;
    height: 500px !important;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) - 6px);
    background: var(--bg-panel-3);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.wm-map-popup #wm-map-container[style] {
    height: 500px !important;
}

.wm-map-anketa-info,
#wm-map-anketa-info {
    display: none !important;
}

.map-stat .v {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--accent);
}

.map-stat .v svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   СТАТЬЯ / SEO-БЛОК
============================================================ */

.ml-section {
    --ml-card: #2b262b;
    --ml-stroke: rgba(255, 255, 255, .09);
    --ml-pink: #c04c74;
    --ml-text: #ece7ef;
    --ml-muted: rgba(236, 231, 239, .76);

    padding: 28px 18px;
    background:
        radial-gradient(800px 320px at 50% 0%, rgba(255, 255, 255, .045), transparent 60%),
        #1a1a1a;
    border-radius: var(--radius-lg);
    color: var(--ml-text);
}

.ml-wrap {
    max-width: 1350px;
    margin: 0 auto;
}

.ml-title {
    margin: 8px 0 10px;
    text-align: center;
    font-weight: 850;
    letter-spacing: -0.02em;
    font-size: clamp(22px, 2.4vw, 28px);
}

.ml-star {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}

.ml-star svg {
    fill: none;
    stroke: var(--ml-pink);
    stroke-width: 2;
}

.ml-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 10px;
}

.ml-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    border: 1px solid var(--ml-stroke);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.ml-card__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.ml-ico {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    background: rgba(192, 76, 116, .10);
    border: 1px solid rgba(192, 76, 116, .22);
}

.ml-ico img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ml-card__title {
    color: var(--ml-pink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 850;
}

.ml-card__text {
    color: var(--ml-muted);
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 56ch;
}

.ml-note {
    margin-top: 22px;
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    border: 1px solid var(--ml-stroke);
}

.ml-note p {
    margin: 0;
    color: rgba(236, 231, 239, .80);
    font-size: 15px;
    line-height: 1.75;
}

.ml-alert {
    margin-top: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .95);
    color: #2a222a;
    border: 2px solid #e23a3a;
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ml-alert__x {
    width: 40px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-alert__x svg {
    fill: #e23a3a;
}

.ml-alert__text {
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}

/* ============================================================
   FAQ
============================================================ */

.faq-wrap {
    min-height: calc(100vh - 80px);
    padding: 30px 20px;
}

.faq-container {
    max-width: 1350px;
    margin: 0 auto;
}

.faq-main-title {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 18px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 850;
    text-align: center;
}

.faq-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -30px;
    width: 60px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.faq-content {
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 34px;
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.09);
    padding: 22px;
}

.faq-question-item {
    margin-bottom: 14px;
    background: rgba(255,255,255,0.045);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.09);
    overflow: hidden;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.faq-question-item:last-child {
    margin-bottom: 0;
}

.faq-question-item.active {
    border-color: rgba(196, 69, 92, 0.6);
    background: rgba(196, 69, 92, 0.08);
}

.faq-question-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    cursor: pointer;
}

.faq-question-header:hover {
    background: rgba(255, 255, 255, 0.025);
}

.marker-number {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.65);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 850;
}

.faq-question-item.active .marker-number {
    background: var(--accent);
    color: #ffffff;
}

.faq-question-title {
    flex: 1;
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.faq-toggle-btn {
    background: rgba(255,255,255,0.045);
    border: 1px solid transparent;
    color: rgba(255,255,255,0.65);
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    border-radius: var(--radius-xs);
}

.faq-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-question-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 20px 20px 64px;
    color: rgba(255,255,255,0.68);
    font-size: 14px;
    line-height: 1.65;
}

.faq-answer-content p {
    margin: 0 0 15px;
}

.faq-help {
    margin-top: 44px;
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.09);
    padding: 30px;
    text-align: center;
}

.faq-help-content {
    max-width: 520px;
    margin: 0 auto;
}

.faq-help-title {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 850;
}

.faq-help-text {
    margin-bottom: 24px;
    color: rgba(255,255,255,0.66);
    font-size: 15px;
    line-height: 1.6;
}

.faq-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 30px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    border: 1px solid var(--accent);
}

.faq-help-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
}

/* ============================================================
   DESKTOP: ФИЛЬТР СЛЕВА, АНКЕТЫ СПРАВА
============================================================ */

@media (min-width: 769px) {
    .ankety-wrapper {
        display: grid;
        grid-template-columns: 310px minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    .ankety-header,
    .wm-mobile-toolbar {
        grid-column: 1 / -1;
    }

    .wm-filter-panel {
        grid-column: 1;
        margin-bottom: 0;
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow: auto;
    }

    .wm-filter-row {
        gap: 18px;
    }

    .wm-filter-row--sliders,
    .wm-filter-row--inputs,
    .wm-filter-row--services,
    .wm-filter-row--districts,
    .wm-filter-row--taxonomies {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 16px;
    }

    .wm-services-grid,
    .wm-districts-grid {
        grid-template-columns: 1fr;
        max-height: 260px;
    }

    .wm-filter-row--bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .wm-checks {
        gap: 12px;
    }

    .wm-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .wm-btn {
        width: 100%;
        min-width: 0;
    }

    .wm-top-wrap,
    .wm-results,
    .ankety-pagination {
        grid-column: 2;
        min-width: 0;
    }

    .wm-top-wrap {
        margin: 0 0 22px;
    }

    .grid {
        max-width: none;
        margin: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* ============================================================
   АДАПТИВ — ПЛАНШЕТ
============================================================ */

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .top {
        flex-direction: column;
    }

    .media {
        width: 100%;
        height: 360px;
    }

    .stats {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .stat {
        flex: 1;
    }

    .anketa-icons {
        top: 12px;
        right: 12px;
    }

    .anketa-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 992px) {
    .ankety-counter {
        display: none;
    }

    .wm-filter-row--sliders,
    .wm-filter-row--inputs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-filter-row--services,
    .wm-filter-row--districts,
    .wm-filter-row--taxonomies {
        grid-template-columns: 1fr;
    }

    .wm-filter-row--bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .wm-actions {
        justify-content: flex-end;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }
}

/* ============================================================
   MOBILE FILTER UI
============================================================ */

.wm-mobile-toolbar {
    display: none;
}

.wm-filter-overlay {
    display: none;
}

.wm-filter-mobile-head {
    display: none;
}

/* ============================================================
   АДАПТИВ — МОБИЛЬНЫЙ
============================================================ */

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .header-logo-image {
        height: 50px;
        max-width: 150px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-right {
        display: none;
    }

    .ankety-wrapper,
    .ankety-wrapper_top {
        padding: 22px 14px;
    }

    .ankety-title {
        font-size: 30px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        border-radius: var(--radius-lg);
        padding: 14px;
    }

    .media {
        height: 500px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat {
        flex: 0 0 calc(25% - 6px);
        padding: 9px 6px;
        border-radius: var(--radius-sm);
    }

    .stat .k {
        font-size: 11px;
    }

    .stat .v {
        font-size: 13px;
    }

    .prices {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .anketa-icons {
        top: 48px;
        right: 8px;
        gap: 6px;
    }

    .anketa-icon {
        width: 48px;
        height: 48px;
        padding: 4px;
    }

    .wm-services-desktop,
    .wm-districts-desktop {
        display: none !important;
    }

    .wm-services-mobile,
    .wm-districts-mobile {
        display: block;
    }

    .wm-districts-toggle {
        display: none;
    }

    .wm-mobile-toolbar {
        display: flex;
        justify-content: space-between;
        margin: -8px 0 14px;
    }

    .wm-mobile-filter-toggle {
        min-height: 44px;
        padding: 0 16px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255,255,255,0.12);
        background: var(--bg-panel);
        color: #ffffff;
        font-weight: 800;
        letter-spacing: .2px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .wm-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .58);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
        z-index: 9998;
    }

    .wm-filter-overlay.wm-show {
        opacity: 1;
        pointer-events: auto;
    }

    .wm-filter-panel {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100dvh;
        width: min(92vw, 380px);
        max-width: 380px;
        margin: 0;
        border-radius: 0;
        border-bottom: none;
        transition: right .28s ease;
        z-index: 9999;
        overflow: auto;
        padding: 16px 16px 18px;
        -webkit-overflow-scrolling: touch;
    }

    .wm-filter-panel.wm-open {
        right: 0;
    }

    .wm-filter-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        background: var(--bg-panel-2);
        padding: 4px 0 12px;
        margin: 0 0 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        z-index: 2;
    }

    .wm-filter-mobile-title {
        color: #ffffff;
        font-size: 16px;
        font-weight: 850;
        letter-spacing: .2px;
    }

    .wm-filter-mobile-close {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, .12);
        background: rgba(0, 0, 0, .15);
        color: #ffffff;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .wm-filter-row--sliders,
    .wm-filter-row--inputs,
    .wm-filter-row--services,
    .wm-filter-row--districts,
    .wm-filter-row--taxonomies {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 16px;
    }

    .wm-filter-row--bottom {
        position: sticky;
        bottom: 0;
        background: var(--bg-panel-2);
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        z-index: 2;
    }

    .wm-checks {
        gap: 12px;
    }

    .wm-actions {
        width: 100%;
        gap: 10px;
    }

    .wm-btn {
        width: 100%;
        min-width: unset;
        border-radius: var(--radius-md);
    }

    .wm-top-title {
        font-size: 25px;
    }

    .wm-top-slider {
        padding-bottom: 46px;
    }

    .ankety-wrapper_top .wm-top-slider .swiper-button-next,
    .ankety-wrapper_top .wm-top-slider .swiper-button-prev {
      
    }

    .ankety-wrapper_top .wm-top-slider .swiper-pagination {
        bottom: 0px !important;
    }

    .ankety-wrapper_top .wm-top-slider .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
    }

    .ankety-wrapper_top .wm-top-slider .swiper-pagination-bullet-active {
        width: 22px;
    }

    .wm-top-description {
        padding: 16px;
    }

    .wm-top-description p {
        font-size: 13px;
        text-align: left;
    }

    .wm-map-popup {
        padding: 14px;
        align-items: center;
    }

    .wm-map-popup-content {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        border-radius: var(--radius-lg);
    }

    .wm-map-popup-content::before {
        left: 12px;
        right: 12px;
    }

    .wm-map-popup-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 28px;
        background: rgba(35, 34, 32, 0.96);
    }

    #wm-map-container,
    .wm-map-popup #wm-map-container[style] {
        height: 72vh !important;
        min-height: 360px;
        max-height: 560px;
        border-radius: var(--radius-md);
    }

    .footer {
        padding: 40px 20px 30px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 38px;
        padding-top: 24px;
    }

    .footer__bottom-links {
        flex-wrap: wrap;
    }

    .ml-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ml-card__text {
        max-width: none;
    }

    .faq-answer-content {
        padding-left: 18px;
    }
}

@media (max-width: 576px) {
    .wm-filter-row--sliders,
    .wm-filter-row--inputs,
    .wm-filter-row--services,
    .wm-filter-row--districts,
    .wm-filter-row--taxonomies {
        grid-template-columns: 1fr;
    }

    .wm-actions {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .media {
        height: 470px;
    }

    .name {
        font-size: 20px;
    }

    .actions {
        gap: 8px;
    }

    .btn-main {
        font-size: 14px;
    }

    .price {
        font-size: 12px;
    }

    .media::after,
    .anketa-gallery-item::after {
        font-size: clamp(18px, 6vw, 28px);
        letter-spacing: 1px;
        padding: 12px;
    }

    .fancybox__content::after {
        font-size: clamp(20px, 7vw, 34px);
        letter-spacing: 1px;
    }

    .ml-section {
        padding: 18px 12px;
        border-radius: var(--radius-md);
    }

    .ml-card {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }

    .ml-ico {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-md);
    }

    .ml-card__title {
        font-size: 17px;
    }

    .ml-card__text,
    .ml-note p {
        font-size: 14px;
    }

    .ml-note {
        padding: 18px;
    }

    .ml-alert {
        padding: 12px 12px 14px;
    }
}

@media (max-width: 480px) {
    .header-logo a {
        font-size: 18px;
    }

    .mobile-menu {
        width: 100%;
        left: -100%;
    }

    .mobile-menu.active {
        left: 0;
    }

    .footer__left-logo img {
        height: 50px;
    }

    .footer__column-title {
        font-size: 15px;
    }

    .footer__menu a,
    .footer__info a {
        font-size: 13px;
    }

    .footer__bottom-copy {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .wm-map-popup {
        padding: 10px;
    }

    .wm-map-popup-content {
        padding: 10px;
        border-radius: var(--radius-md);
    }

    .wm-map-popup-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 26px;
    }

    #wm-map-container,
    .wm-map-popup #wm-map-container[style] {
        height: 70vh !important;
        min-height: 330px;
    }

    .media {
        height: 420px;
    }

    .stat {
        flex: 0 0 calc(24% - 4px);
    }

    .anketa-icons {
        top: 44px;
    }

    .anketa-icon {
        width: 44px;
        height: 44px;
    }

    .wm-top-wrap::before {
        font-size: 46px;
        white-space: normal;
    }
}