:root {
    /* ============================================================
       ПАЛИТРА «ВИТРИНА»
       Тёплый уголь вместо чёрного: на нём кожа на фотографиях
       выглядит живой, а не синюшной. Один акцент — жжёный коралл.
       Латунь зарезервирована под VIP и премиум-сегмент.
       ============================================================ */
    --bg:            #14110F;
    --bg-2:          #1D1917;
    --bg-3:          #262019;
    --bg-sunken:     #0F0C0B;

    --text:          #F2EDE6;
    --text-dim:      #C4B9AE;
    --muted:         #9A8F85;
    --muted-2:       #766C64;

    --accent:        #E0705A;   /* текст, ссылки, иконки — контраст 5.9 */
    --accent-strong: #C8553D;   /* заливки кнопок */
    --accent-soft:   #F0A392;
    --accent-rgb:    200, 85, 61;

    --brass:         #B08D57;   /* только VIP и премиум */
    --brass-rgb:     176, 141, 87;

    --ok:            #7FA96B;   /* проверена — приглушённый, не ядовитый */
    --warn:          #D9A441;
    --danger:        #C0453A;
    --danger-hi:     #DD5A4C;

    --line:          rgba(242, 237, 230, 0.10);
    --line-strong:   rgba(242, 237, 230, 0.18);

    --on-accent:     #17110E;

    /* Шкала отступов */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

    /* Радиусы */
    --r-sm: 6px;
    --r:    12px;
    --r-lg: 20px;
    --r-pill: 999px;

    /* Тени: три уровня, больше не изобретаем */
    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 6px 20px rgba(0,0,0,.45);
    --sh-3: 0 18px 50px rgba(0,0,0,.55);

    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body:    "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --fx: 1;
    --z-chrome: 10020;
    --z-nav: 10050;
    --z-compare: 10055;
    --z-toast: 10060;
    --z-modal: 10080;
    --z-age: 100000;

    /* ---- Совместимость со старым кодом: не удалять ----
       В шаблонах и старых правилах остались обращения к прежним именам.
       Раньше --gold содержал розовый — имя врало. Теперь имена честные,
       а старые оставлены псевдонимами. */
    --bg-dark:      var(--bg);
    --bg-card:      var(--bg-2);
    --bg-card-deep: var(--bg-sunken);
    --text-main:    var(--text);
    --text-muted:   var(--muted);
    --accent-hot:   var(--accent);
    --accent-deep:  var(--accent-strong);
    --accent-lip:   var(--accent-soft);
    --milk:         rgba(242, 237, 230, 0.62);
    --milk-dim:     rgba(242, 237, 230, 0.45);
    --gold:         var(--accent);
    --gold-hover:   var(--accent-soft);
    --gold-faded:   var(--line-strong);
    --red:          var(--danger);
    --red-hover:    var(--danger-hi);
    --input-bg:     var(--bg-3);
    --border-color: var(--line-strong);
    --radius:       var(--r);
}

html {
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, .logo, .hero h1, .card-overlay__name {
    font-family: var(--font-display);
}

body::before {
    /* Было пять слоёв (шум + 4 радиальных градиента) на фиксированном
       вьюпорте — они перерисовывались при каждом скролле и почти не читались.
       Осталось зерно и одна тёплая виньетка сверху. */
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 120% 55% at 50% -12%, rgba(var(--accent-rgb), 0.10), transparent 60%);
    background-size: 160px 160px, 100% 100%;
    background-repeat: repeat, no-repeat;
    opacity: 0.30;
}

body.has-mobile-bottom-nav {
    padding-bottom: 0;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    --container-pad: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Header */
.site-top {
    position: sticky;
    top: 0;
    z-index: var(--z-chrome);
    transform: translateZ(0);
}

header {
    background: rgba(18, 0, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    padding: 12px 0;
}

.logo {
    position: relative;
}

.logo a {
    position: relative;
    display: inline-block;
}

.logo a::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -8px;
    width: 8px;
    height: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, var(--accent-lip) 55%, var(--accent-deep) 100%);
    clip-path: polygon(40% 0, 70% 0, 100% 100%, 0 100%);
    opacity: calc(var(--fx) * 0.9);
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(var(--accent-rgb), 0.45));
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    text-transform: none;
    letter-spacing: 0.04em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* User Actions */
.btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-full {
    width: 100%;
    margin-top: auto;
}

.btn-gold {
    background: linear-gradient(180deg, var(--accent-deep) 0%, #b0105e 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-gold:hover {
    background: linear-gradient(180deg, var(--accent-hot) 0%, var(--accent-deep) 100%);
    color: var(--bg);
    text-shadow: none;
}

.btn-outline {
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--accent-deep);
    color: #fff;
}

/* Ticker */
.ticker-wrap {
    background: var(--bg-sunken);
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.25);
    padding: 12px 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    /* Ensure container fits */
}

.ticker-wrap:hover .ticker-scroll {
    animation-play-state: paused;
}

.ticker {
    display: flex;
    width: max-content;
}

.ticker-scroll {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: ticker-loop 50s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 4rem;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-right: 1px solid var(--line-strong);
}

.ticker-label {
    background: var(--accent-deep);
    color: #fff;
    padding: 4px 12px;
    font-weight: 800;
    font-size: 13px;
    margin-right: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ticker-label--leaders {
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
    color: #fff;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
}

.leader-item .ticker-count {
    color: var(--gold);
    font-size: 14px;
    margin-left: 5px;
}

.leader-ticker .ticker-item {
    border-right: 1px solid rgba(90, 30, 60, 0.55);
}

.ticker-item:hover {
    color: var(--gold);
    transform: translateY(-1px);
}

.ticker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4);
}

.ticker-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    font-size: 24px;
}

.ticker-city {
    color: var(--gold);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.ticker-name {
    font-weight: 700;
}

.ticker-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ticker-top {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.ticker-price {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    opacity: 0.9;
}

.card-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 8px 0;
}

@keyframes ticker-loop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-scroll {
        animation: none !important;
    }
    .profile-card,
    .card-img {
        transition: none !important;
    }
    .profile-card:hover {
        transform: none !important;
        animation: none !important;
    }
    .profile-card:hover .card-img-wrap::after {
        opacity: 0.35;
    }
}

@media (max-width: 768px) {
    .container {
        --container-pad: 12px;
    }

    .ticker-wrap {
        padding: 10px 0;
    }

    .leader-ticker {
        padding: 8px 0;
    }

    .ticker-item {
        padding: 0 1.25rem;
        font-size: 14px;
        gap: 10px;
    }

    .ticker-avatar,
    .ticker-avatar-placeholder {
        width: 38px;
        height: 38px;
    }

}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 10060;
    white-space: nowrap;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .toast {
        bottom: calc(var(--mobile-nav-h) + 14px + env(safe-area-inset-bottom, 0px));
    }
}

.toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --mobile-nav-h: 64px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: var(--mobile-nav-h);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(10, 0, 10, 0.94);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 10050;
    }

    .mobile-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--muted);
        font-size: 11px;
        padding: 8px 6px;
        text-decoration: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: color .2s;
    }

    .mobile-bottom-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        color: var(--gold);
        opacity: 0.5;
    }
    .mobile-bottom-nav__icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav__label {
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    .mobile-bottom-nav__item:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-bottom-nav__item--active .mobile-bottom-nav__icon {
        opacity: 1;
    }
    .mobile-bottom-nav__item--active .mobile-bottom-nav__label {
        color: var(--gold);
    }
}

/* Hero / City Selection */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, #2a1524 0%, var(--bg) 100%);
}

.hero h1 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.home-bot-promo {
    margin: 16px auto 0;
    max-width: 560px;
    padding: 14px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(28, 8, 22, 0.96) 0%, rgba(10, 0, 10, 0.98) 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 0 18px rgba(var(--accent-rgb), 0.05);
}

.home-bot-promo__title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.home-bot-promo__text {
    color: var(--text-dim);
    font-size: .98rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.home-bot-promo__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(420px, 100%);
    max-width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #2ecc71;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(46, 204, 113, 0.85);
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.2), 0 10px 22px rgba(46, 204, 113, 0.26);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.home-bot-promo__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.35), 0 12px 26px rgba(46, 204, 113, 0.34);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.city-card {
    background: var(--bg-card);
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: center;
}

.city-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    background: rgba(var(--accent-rgb), 0.06);
}

.city-count {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* ── Popular cities title ── */
.popular-cities__title {
    color: var(--gold);
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.popular-cities__title svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    stroke: var(--gold);
    flex-shrink: 0;
}

/* ── Popular cities grid — desktop 4 columns ── */
.popular-cities__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ── Popular city card ── */
.city-card.popular {
    background: linear-gradient(135deg, #140812 0%, #1a0a12 100%);
    border-color: rgba(var(--accent-rgb), 0.2);
    position: relative;
    overflow: hidden;
    padding: 20px;
    text-align: left;
}
.city-card.popular::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.city-card.popular:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.1);
}
.city-card.popular:not(.city-card--photo):hover {
    background: linear-gradient(135deg, #1f0c16 0%, var(--bg-2) 100%);
}

/* ── City card inner elements ── */
.city-card__name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    position: relative;
}
.city-card__badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    position: relative;
}

/* ── Hot cities (top-3) ── */
.city-card--hot {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.06);
}
.city-card--hot:not(.city-card--photo) {
    background: linear-gradient(135deg, #240818 0%, #0f000c 60%, #180510 100%);
}
.city-card--hot .city-card__name {
    font-size: 19px;
}
.city-card--hot .city-card__badge {
    background: rgba(var(--accent-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.3);
}
.city-card--hot:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 25px rgba(var(--accent-rgb), 0.15);
}

/* ── Pulse indicator (hot cities) ── */
.city-card__pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.6);
    animation: city-pulse 2s ease-in-out infinite;
}
@keyframes city-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

.demand-strip {
    margin: 12px 0 16px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.07);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    color: #f0e5b8;
}
.demand-strip__score {
    color: var(--gold);
    font-weight: 700;
}
.demand-strip__label {
    color: #fff;
    font-size: 13px;
}

.intent-hero {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    background: var(--bg-2);
}

.entity-city-card {
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: linear-gradient(180deg, #181818 0%, #141414 100%);
}
.entity-city-card h2 {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 1.1rem;
}
.entity-city-card p {
    margin: 0 0 10px;
    color: #d6d6d6;
}
.entity-city-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
.entity-city-card__list span {
    width: 100%;
    color: #9b9b9b;
    font-size: 13px;
}
.entity-city-card__list a {
    border: 1px solid #383838;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #eee;
    text-decoration: none;
}
.intent-link-chip--hidden {
    display: none !important;
}
.intent-links-toggle-btn {
    border: 1px dashed var(--muted-2);
    background: transparent;
    color: var(--gold);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}
.intent-links-toggle-btn:hover {
    border-color: var(--gold);
    background: rgba(var(--accent-rgb), 0.08);
}
.entity-city-card__tips {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #bdbdbd;
}

.intent-faq {
    margin-top: 28px;
    padding: 14px;
    border: 1px solid var(--bg-3);
    border-radius: 12px;
    background: #171717;
}
.intent-faq h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 1.05rem;
}
.intent-faq details {
    border-top: 1px solid #2c2c2c;
    padding: 10px 0;
}
.intent-faq details:first-of-type {
    border-top: 0;
}
.intent-faq summary {
    cursor: pointer;
    color: #f2f2f2;
    font-weight: 600;
}
.intent-faq p {
    margin: 8px 0 0;
    color: #bfbfbf;
}

.catalog-bot-cta {
    margin: 10px 0 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    border-radius: 4px;
    background: linear-gradient(180deg, var(--bg-2) 0%, #0c0009 100%);
    padding: 12px 14px;
    box-shadow: inset 0 0 20px rgba(var(--accent-rgb), 0.06);
}
.catalog-bot-cta__title {
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 4px;
}
.catalog-bot-cta__text {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.4;
}
.catalog-bot-cta__actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.catalog-bot-cta__btn {
    display: inline-block;
    text-decoration: none;
    background: var(--accent-deep);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.12);
}
.catalog-bot-cta__link {
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
}

/* Forms */
.auth-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Premium Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold);
    background: var(--bg-3);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Custom Checkboxes & Radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dashboard Grids */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.premium-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.premium-card h3 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 15px;
}

/* Service Items */
.service-item {
    background: var(--bg-3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    transition: border-color 0.3s;
}

.service-item:hover {
    border-color: var(--muted-2);
}

.service-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.service-item span {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

.service-item input[type="number"] {
    background: var(--bg-2) !important;
    border: 1px solid var(--line-strong);
    color: #fff !important;
    font-size: 14px;
    padding: 8px;
    margin-top: 5px;
}

.service-item input[type="number"]:focus {
    border-color: var(--gold);
}

.dashboard-services-wrap {
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.dashboard-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

/* Profile Cards Positioning & Layout */
@keyframes card-wet-shake {
    0%, 100% { transform: translateY(4px) rotate(0deg); }
    20% { transform: translateY(3px) rotate(-0.45deg); }
    40% { transform: translateY(5px) rotate(0.38deg); }
    60% { transform: translateY(4px) rotate(-0.28deg); }
    80% { transform: translateY(4px) rotate(0.22deg); }
}

.profile-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(var(--accent-rgb), 0.42);
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow:
        8px 10px 0 rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(var(--accent-rgb), 0.38),
        inset 0 0 22px rgba(242, 237, 230, 0.06);
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        10px 14px 0 rgba(0, 0, 0, 0.42),
        0 0 30px rgba(var(--accent-rgb), 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        inset 0 0 34px rgba(255, 255, 255, 0.08);
}

.profile-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 18%;
    width: 7px;
    height: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), var(--accent-deep));
    opacity: 0;
    pointer-events: none;
    z-index: 12;
    border-radius: 0 0 4px 4px;
}

.profile-card:hover::after {
    height: 28px;
    opacity: calc(var(--fx) * 0.85);
    transition: height 0.45s ease, opacity 0.2s ease;
}

.profile-card--recommended {
    border-color: rgba(var(--accent-rgb), 0.38);
}

.profile-card--similar {
    border-color: rgba(var(--accent-rgb), 0.24);
    background: rgba(18, 0, 14, 0.72);
}

/* Колонка меток на фото: основные сверху, «вкусовая» всегда снизу стека, всё слева */
.card-badges-stack {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: calc(100% - 58px);
    pointer-events: none;
}

.card-flavor-badge {
    flex-shrink: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent-lip);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.3;
    text-align: left;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-img-wrap {
    flex: 1 1 auto;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 240px;
    max-height: 420px;
    height: auto;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: block;
    overflow: hidden;
}

.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.5) 0%, transparent 3px),
        radial-gradient(circle at 74% 36%, rgba(255, 255, 255, 0.38) 0%, transparent 2px),
        radial-gradient(circle at 46% 58%, rgba(255, 255, 255, 0.3) 0%, transparent 2.5px),
        radial-gradient(circle at 86% 68%, rgba(242, 237, 230, 0.45) 0%, transparent 2px),
        radial-gradient(ellipse 130% 28% at 50% 2%, rgba(255, 255, 255, 0.12), transparent 58%);
    mix-blend-mode: screen;
}

.profile-card:hover .card-img-wrap::after {
    opacity: 1;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease, filter 0.35s ease;
}

.profile-card:hover .card-img {
    transform: scale(1.04);
    filter: brightness(1.07) contrast(1.04) saturate(1.12);
}

.card-verified {
    position: relative;
    flex-shrink: 0;
    background: rgba(46, 204, 113, 0.30);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-featured {
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(255,106,0,0.30), rgba(255,179,0,0.30));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #1a0000;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(255, 200, 0, 0.4);
    animation: featured-pulse 2.4s ease-in-out infinite;
}

@keyframes featured-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 140, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.2); }
    50%       { box-shadow: 0 0 18px rgba(255, 180, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 0 10px rgba(255, 255, 255, 0.25); }
}

.card-vip {
    position: relative;
    flex-shrink: 0;
    background: rgba(var(--accent-rgb), 0.30);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--bg);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.25);
}

.card-customer-pick {
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(173,32,128,0.30), rgba(var(--accent-rgb), 0.30));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 0 8px rgba(255, 255, 255, 0.12);
    letter-spacing: 0.2px;
}

.card-hot {
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(229,57,53,0.30), rgba(255,111,0,0.30));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.2px;
}

.card-newcomer {
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(21,101,192,0.30), rgba(66,165,245,0.30));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(66, 165, 245, 0.4), 0 2px 6px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.2px;
}

.profile-card--featured .card-img {
    transition: opacity 0.5s ease;
}

.profile-card-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, var(--bg-2) 0%, #0a0008 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-name {
    margin: 0;
    font-size: 17px;
    color: var(--gold);
    font-weight: 700;
    line-height: 1.2;
}

.card-name a {
    color: var(--gold);
    text-decoration: none;
}

.card-age {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -2px;
}

.card-meta i,
.card-meta span.icon {
    color: var(--gold);
    font-size: 14px;
}

.card-price {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.card-price::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gold);
    margin-top: 6px;
    border-radius: 1px;
}

/* Card Photo Overlay */
.card-img-wrap-outer { position: relative; }
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 12px 10px;
    background: linear-gradient(0deg, rgba(10,0,10,0.92) 0%, rgba(var(--accent-rgb), 0.12) 45%, transparent 100%);
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.card-overlay__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.card-overlay__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}
.card-overlay__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-overlay__views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    justify-self: end;
    flex-shrink: 0;
}
.card-overlay__views svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.profile-card-content--compact {
    padding: 10px 14px !important;
    gap: 6px !important;
}

/* Skeleton Loader */
.skeleton-img {
    background: linear-gradient(90deg, var(--bg-2) 25%, #2a1520 50%, var(--bg-2) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-deep);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.back-to-top--show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent-hot);
    color: var(--bg);
}
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
    .back-to-top {
        bottom: calc(var(--mobile-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        width: 40px;
        height: 40px;
    }
}

/* Sticky Contacts — Profile Mobile */
.profile-sticky-contacts {
    display: none;
}
@media (max-width: 768px) {
    .profile-sticky-contacts {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
        z-index: 10049;
        background: rgba(18,18,18,0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(var(--accent-rgb), 0.15);
        padding: 8px 12px;
        gap: 8px;
    }
    .profile-sticky-contacts .btn {
        flex: 1;
        text-align: center;
        padding: 10px 6px;
        font-size: 13px;
        border-radius: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .profile-sticky-contacts .btn svg {
        vertical-align: -2px;
        margin-right: 4px;
    }
    body:has(.profile-sticky-contacts) {
        padding-bottom: calc(var(--mobile-nav-h) + 54px + env(safe-area-inset-bottom, 0px));
    }
    body:has(.profile-sticky-contacts) .back-to-top {
        bottom: calc(var(--mobile-nav-h) + 54px + 12px + env(safe-area-inset-bottom, 0px));
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.photo-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    transition: all 0.3s ease;
}

.photo-item:hover {
    border-color: var(--gold);
}

.photo-item.photo-item-uploading {
    border: 2px dashed var(--gold);
    opacity: 0.8;
}

.photo-upload-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid rgba(var(--accent-rgb), 0.3);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(192, 57, 43, 0.9);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    border: none;
    z-index: 5;
    transition: all 0.2s;
}

.photo-delete:hover {
    background: var(--danger-hi);
    transform: scale(1.1);
}

.photo-add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    color: var(--text-dim);
    border: 2px dashed var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.photo-add-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--bg-3);
}

/* Upload Overlay */
.upload-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.upload-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(var(--accent-rgb), 0.1);
    border-left-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Favorites System */
.btn-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-fav:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--gold);
}

.card-views {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.card-views .icon {
    font-size: 14px;
}

.btn-fav.active {
    background: var(--accent-deep);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-fav.active i,
.btn-fav.active span {
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.fav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fav-count {
    background: var(--danger-hi);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: absolute;
    top: -5px;
    right: -10px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.fav-count.active {
    opacity: 1;
    transform: scale(1);
}

.profile-contact-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-large {
    font-size: 1.1rem;
    padding: 12px 25px;
}

.profile-fav-wrap {
    margin-top: 15px;
}

.btn-fav-large {
    position: relative;
    bottom: auto;
    right: auto;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #222;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-fav-large:hover {
    border-color: var(--gold);
}

.btn-fav-large.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* Profile Page */
.profile-page {
    margin-top: 30px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: var(--muted-2);
    font-size: 14px;
}

/* Catalog: кнопка "Фильтры" и чипы (на мобильных кнопка видна) */
.catalog-filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 12px;
}
.catalog-filters-count {
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 13px;
}
.catalog-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.catalog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
}
.catalog-filter-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.catalog-filters-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}
.catalog-filters-close:hover {
    background: var(--gold);
    color: #000;
}

.profile-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-interactions-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.premium-form {
    background: var(--bg-2);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .profile-layout {
        flex-direction: column;
        gap: 30px;
    }

    .profile-interactions-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .container {
        --container-pad: 10px;
    }

    /* Header Mobile: compact, no duplicate nav */
    header {
        padding: 8px 0;
    }

    .main-nav {
        display: none !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .nav-flex {
        flex-direction: row;
        gap: 8px;
        text-align: left;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        font-size: 16px;
        letter-spacing: 0.04em;
        flex-shrink: 0;
    }

    .leader-ticker {
        display: none;
    }

    .user-actions {
        display: flex;
        gap: 6px;
        width: 100%;
        align-items: center;
    }

    .country-selector {
        flex: 1;
        min-width: 0;
    }

    .country-selector select {
        width: 100%;
        padding: 8px 6px;
        font-size: 12px;
    }

    .user-actions .btn {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Catalog Mobile Layout */
    .catalog-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .catalog-filters-toggle {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    .catalog-container aside,
    .catalog-filters {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        max-height: min(82vh, 640px);
        overflow: auto;
        z-index: var(--z-modal);
        border-radius: 16px 16px 0 0;
        transform: translateY(110%);
        transition: transform 0.28s ease;
        box-sizing: border-box;
        padding-bottom: calc(var(--mobile-nav-h) + 20px) !important;
    }

    .catalog-filters.is-open,
    .catalog-container aside.is-open {
        transform: translateY(0);
    }

    .catalog-filters-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .catalog-filters-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.62);
        z-index: calc(var(--z-modal) - 1);
    }

    .catalog-filters-backdrop.is-open {
        display: block;
    }

    /* Grid Adjustments */
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 15px !important;
    }

    .card-img-wrap {
        min-height: 200px !important;
        max-height: 360px;
        aspect-ratio: 3 / 4;
        height: auto !important;
    }

    /* Dashboard grids */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-services-wrap {
        max-height: 480px;
    }

    .dashboard-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .service-item {
        padding: 10px;
    }

    .service-item span {
        font-size: 13px;
    }

    .service-item label {
        margin-bottom: 8px;
        gap: 8px;
    }

    .service-item input[type="number"] {
        font-size: 12px;
        padding: 6px;
    }

    .premium-card {
        padding: 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .home-bot-promo {
        max-width: 100%;
        margin-top: 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .home-bot-promo__title {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .home-bot-promo__text {
        font-size: .92rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .home-bot-promo__btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 42px;
        font-size: .95rem;
        border-radius: 10px;
    }

    .catalog-bot-cta {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .catalog-bot-cta__title {
        font-size: 15px;
    }

    .catalog-bot-cta__text {
        font-size: 13px;
    }

    .catalog-bot-cta__btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .city-grid {
        gap: 8px;
    }

    /* Base city-card mobile fallback */
    .city-card {
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
        box-sizing: border-box;
    }

    .city-card:hover {
        transform: none;
    }

    /* Popular cities: 2-column grid (all visible) */
    .popular-cities__grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }

    .city-card.popular {
        padding: 12px;
        text-align: left;
    }
    .city-card__name {
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .city-card--hot .city-card__name {
        font-size: 14px;
    }
    .city-card__badge {
        margin-top: 5px;
        padding: 2px 7px;
        font-size: 10px;
    }
    .city-card__pulse {
        width: 6px;
        height: 6px;
        top: 8px;
        right: 8px;
    }

    .demand-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .entity-city-card {
        padding: 12px;
    }
    .intent-faq {
        padding: 12px;
    }

    /* Accordion cities: 2-column grid */
    .all-countries-accordion .city-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .all-countries-accordion .city-card {
        padding: 10px 12px;
        font-size: 14px;
        text-align: center;
        width: auto;
    }

    /* Profile Mobile Fixes */
    .profile-contact-actions {
        flex-direction: column;
        gap: 10px;
    }

    .profile-contact-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-fav-wrap {
        margin-top: 10px;
    }

    .btn-fav-large {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    user-select: none;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    transition: opacity 0.2s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10003;
    transition: all 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 35px;
    }
}

@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
        /* Swipe only on small mobile */
    }

    .lightbox-counter {
        bottom: 20px;
    }
}

.photo-main-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(var(--accent-rgb), 0.9);
    color: #000;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 3px;
    pointer-events: none;
    z-index: 5;
}

.photo-set-main {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    padding: 0;
    z-index: 6;
}

.photo-set-main:hover {
    background: var(--gold);
    color: #000;
    transform: scale(1.1);
}

/* ===== Vitrine layer ===== */
.tickers-stack {
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
}
.tickers-stack.is-hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

body.is-scrolling .profile-card:hover {
    transform: none;
    animation: none;
}
body.is-scrolling .city-card:hover,
body.is-scrolling .city-card.popular:hover,
body.is-scrolling .city-card--hot:hover {
    transform: none;
    box-shadow: none;
}
body.is-scrolling .profile-card:hover::after {
    height: 0;
    opacity: 0;
}
body.is-scrolling .profile-card:hover .card-img {
    transform: none;
    filter: none;
}
body.is-scrolling .profile-card:hover .card-img-wrap::after {
    opacity: 0;
}

@media (hover: none), (pointer: coarse) {
    .profile-card:hover,
    .city-card:hover,
    .city-card.popular:hover,
    .city-card--hot:hover,
    .ticker-item:hover {
        transform: none !important;
        animation: none !important;
    }
    .profile-card:hover::after {
        height: 0 !important;
        opacity: 0 !important;
    }
    .profile-card:hover .card-img {
        transform: none !important;
        filter: none !important;
    }
    .profile-card:hover .card-img-wrap::after {
        opacity: 0 !important;
    }
}

@media (min-width: 769px) {
    .catalog-container aside {
        position: sticky;
        top: 88px;
    }
}

.catalog-filters-backdrop {
    display: none;
}

.catalog-filter-chip.is-active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(var(--accent-rgb), 0.12);
}





.btn-quicklook,
.btn-compare {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(0,0,0,0.55);
    color: #fff;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.btn-quicklook { top: 52px; }
.btn-compare { top: 90px; font-size: 18px; line-height: 1; padding: 0; }
.btn-quicklook:hover,
.btn-compare:hover,
.btn-compare.is-on {
    border-color: var(--gold);
    color: var(--gold);
}

.card-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.card-chip {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent-lip);
}
.card-chip.chip-hungry { color: #ffb4b4; border-color: rgba(239,68,68,0.4); }
.card-chip.chip-tour { color: #9ee7dc; border-color: rgba(20,184,166,0.4); }

.hero {
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: calc(var(--fx) * 0.55);
    background:
        radial-gradient(ellipse 80% 40% at 50% -10%, rgba(255,255,255,0.08), transparent 50%),
        linear-gradient(180deg, rgba(242, 237, 230, 0.06), transparent 28%);
}
.hero-vitrine {
    padding: 28px 20px 40px;
    text-align: left;
}
.hero-vitrine__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: center;
}
.hero-copy h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    margin: 0 0 10px;
    line-height: 1.15;
}
.hero-kicker {
    color: var(--accent-lip);
    font-size: 1.05rem;
    margin: 0 0 18px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 72px);
    gap: 6px;
    transform: rotate(-1.5deg);
}
.hero-mosaic a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    min-height: 0;
}
.hero-mosaic a:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.hero-mosaic a:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
.hero-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08);
}
.city-search {
    position: relative;
    max-width: 420px;
}
.city-search input {
    width: 100%;
}
.city-search__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 240px;
    overflow: auto;
}
.city-search__list.is-open { display: block; }
.city-search__list a {
    display: block;
    padding: 8px 12px;
    color: #fff;
}
.city-search__list a:hover { background: rgba(var(--accent-rgb), 0.15); }

.city-card.popular {
    min-height: 118px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}
.city-card--photo {
    background-color: var(--bg-2);
}
.city-card.popular::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,0,10,0.15), rgba(10,0,10,0.72));
    z-index: 0;
    pointer-events: none;
}
.city-card.popular .city-card__name,
.city-card.popular .city-card__badge,
.city-card.popular .city-card__pulse {
    position: relative;
    z-index: 1;
}

.section-title {
    color: var(--gold);
    text-align: center;
    margin: 0 0 22px;
    font-size: 1.35rem;
}

.seo-quiet {
    background: rgba(18,0,15,0.65);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #1a1016;
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.7;
}
.seo-quiet h2 { color: #7a4a5c; font-size: 1rem; margin-top: 0; }

.hour-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 12px;
}

.roulette {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    margin: 28px 0;
}
.roulette img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
}
.recent-strip {
    margin: 28px 0 8px;
}
.recent-strip__row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.recent-strip__item {
    flex: 0 0 92px;
    text-decoration: none;
}
.recent-strip__item img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: block;
}
.recent-strip__item span {
    display: block;
    font-size: 12px;
    color: #ddd;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-gallery__main {
    position: relative;
    margin-bottom: 12px;
}
.profile-gallery__main img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    display: block;
}
.profile-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
}
.profile-gallery__prev { left: 8px; }
.profile-gallery__next { right: 8px; }
.profile-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.profile-gallery__thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid var(--line-strong);
}
.profile-gallery__thumbs img.is-active {
    border-color: var(--gold);
}
.profile-price-hero {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    margin: 12px 0 4px;
}
.star-picker {
    display: flex;
    gap: 4px;
    margin: 8px 0 14px;
}
.star-picker button {
    background: none;
    border: none;
    color: var(--muted-2);
    font-size: 28px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.star-picker button.is-on { color: var(--gold); }

.quicklook {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0,0,0,0.72);
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}
.quicklook.is-open { display: flex !important; }
.quicklook__box {
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    border-radius: 16px 16px 8px 8px;
    width: min(520px, 100%);
    padding: 16px;
    max-height: 88vh;
    overflow: auto;
}
.quicklook__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.quicklook__photos img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
}
.quicklook__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.compare-shelf {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-compare);
    background: rgba(12,0,10,0.96);
    border-top: 1px solid var(--border-color);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.compare-shelf.is-open { display: block !important; }
.compare-shelf__row {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
}
.compare-shelf__item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-3);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 160px;
    text-decoration: none;
    color: #fff;
}
.compare-shelf__item img {
    width: 36px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}
.compare-shelf__x {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 18px;
}

.exit-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    background: var(--bg-2);
    border-top: 1px solid var(--gold);
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
}
.exit-sheet.is-open { display: block !important; }
.exit-sheet__row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 10px;
}

.age-gate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-age);
    background: var(--bg-sunken);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.age-gate.is-open { display: flex !important; }
.age-gate__crack {
    width: min(420px, 100%);
}
.age-gate h2 {
    color: var(--gold);
    font-size: 1.8rem;
    margin: 0 0 10px;
}
.age-gate p { color: var(--text-dim); }
.age-gate__crack::before {
    content: '';
    display: block;
    height: 4px;
    width: 70%;
    margin: 0 auto 18px;
    background: linear-gradient(90deg, transparent, var(--accent-lip), var(--accent-deep), transparent);
    box-shadow: 0 0 18px var(--accent-deep);
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    max-width: 980px;
    margin: 30px auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.auth-split__visual {
    background:
        linear-gradient(180deg, rgba(10,0,10,0.2), rgba(10,0,10,0.72)),
        radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.35), transparent 45%),
        var(--bg-2);
    min-height: 220px;
}
.auth-split .auth-box {
    margin: 0;
    max-width: none;
    border: 0;
    border-radius: 0;
}
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 88px; }
.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.page-home { cursor: auto; }
.page-home.fx-cursor { cursor: none; }
.drop-cursor {
    display: none;
    position: fixed;
    width: 10px;
    height: 16px;
    border-radius: 0 10px 10px 10px;
    background: linear-gradient(180deg, #fff, var(--accent-deep));
    pointer-events: none;
    z-index: 10090;
    transform: translate(-40%, -20%);
    opacity: calc(var(--fx) * 0.85);
}
.page-home.fx-cursor .drop-cursor { display: block; }

.notfound-hero h1 {
    font-size: clamp(3rem, 10vw, 80px);
    color: var(--gold);
    margin: 0;
    line-height: 1;
}
.load-more-wrap { text-align: center; margin: 18px 0 8px; }

@media (max-width: 992px) {
    .hero-vitrine__grid { grid-template-columns: 1fr; }
    .hero-mosaic { grid-template-rows: repeat(3, 64px); transform: none; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-split__visual { display: none; }
    .roulette { grid-template-columns: 110px 1fr; }
}

@media (max-width: 768px) {
    .compare-shelf {
        bottom: var(--mobile-nav-h);
    }
    body.has-compare-shelf {
        padding-bottom: calc(var(--mobile-nav-h) + 76px + env(safe-area-inset-bottom, 0px));
    }
    body.has-compare-shelf .profile-sticky-contacts {
        bottom: calc(var(--mobile-nav-h) + 72px + env(safe-area-inset-bottom, 0px));
    }
    .btn-compare { display: none; }
    .page-home.fx-cursor { cursor: auto; }
    .page-home.fx-cursor .drop-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    :root { --fx: 0; }
    .profile-card:hover::after,
    .logo a::after { display: none; }
    .city-card__pulse,
    .card-featured { animation: none !important; }
}
/* ============================================================================
   ДИЗАЙН-СИСТЕМА «ВИТРИНА» — слой компонентов.
   Всё новое живёт здесь. Правила выше — легаси, они постепенно вытесняются.
   ============================================================================ */

/* ---------- Типографика ---------- */

.t-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

h1, .h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; }
h2, .h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25; }
h3, .h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }

.t-muted { color: var(--muted); }
.t-dim   { color: var(--text-dim); }
.t-small { font-size: 0.85rem; }

/* Заголовок секции с линией — вместо бессмысленных «Наши …» */
.sec-head {
    display: flex; align-items: baseline; gap: var(--s-3);
    margin: var(--s-6) 0 var(--s-4);
}
.sec-head h2, .sec-head .h2 { margin: 0; }
.sec-head__count { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.sec-head__rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- Кнопки ---------- */

.btn, .btn-gold, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
    padding: 12px 22px; border-radius: var(--r-sm);
    border: 1px solid transparent; cursor: pointer;
    text-decoration: none; text-transform: none; letter-spacing: 0;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active, .btn-gold:active, .btn-outline:active { transform: translateY(1px); }

.btn-gold {
    background: var(--accent-strong); color: var(--on-accent);
    border-color: var(--accent-strong);
}
.btn-gold:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.btn-outline {
    background: transparent; color: var(--text);
    border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .07); }

.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(242,237,230,.05); }

.btn-lg, .btn-large { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Статусы: единая система вместо пяти случайных цветов ---------- */

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; line-height: 1;
    padding: 5px 9px; border-radius: var(--r-pill);
    letter-spacing: .02em; white-space: nowrap;
}
.badge--verified { background: rgba(127,169,107,.16); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(127,169,107,.35); }
.badge--vip { background: rgba(var(--brass-rgb),.16); color: var(--brass); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb),.4); }
.badge--top { background: rgba(var(--accent-rgb),.16); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.4); }
.badge--new { background: rgba(242,237,230,.10); color: var(--text-dim); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--live { background: rgba(127,169,107,.14); color: var(--ok); }
.badge--solid { background: var(--accent-strong); color: var(--on-accent); }

/* Пульсирующая точка «была недавно» */
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ok); flex: 0 0 auto;
    box-shadow: 0 0 0 0 rgba(127,169,107,.7);
    animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(127,169,107,.6); }
    70%  { box-shadow: 0 0 0 7px rgba(127,169,107,0); }
    100% { box-shadow: 0 0 0 0 rgba(127,169,107,0); }
}
.live-dot--cold { background: var(--muted-2); animation: none; box-shadow: none; }
.live-dot--warm { background: var(--warn); animation: none; box-shadow: none; }

/* ---------- Карточка анкеты v2 ---------- */

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--s-4);
}
/* На мобиле — ДВЕ колонки. Одна вдвое сокращает число вариантов на экран. */
@media (max-width: 640px) {
    .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.profile-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-1);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
    .profile-card:hover {
        border-color: rgba(var(--accent-rgb), .5);
        transform: translateY(-3px);
        box-shadow: var(--sh-2);
    }
}
.profile-card--featured { border-color: rgba(var(--accent-rgb), .45); }
.profile-card--vip { border-color: rgba(var(--brass-rgb), .45); }

.profile-card .card-img-wrap { aspect-ratio: 3 / 4; min-height: 0; max-height: none; }
.profile-card .card-img { transition: transform .5s ease; }
@media (hover: hover) { .profile-card:hover .card-img { transform: scale(1.04); } }

.card-badges-stack {
    position: absolute; top: 8px; left: 8px; z-index: 4;
    display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}

.card-overlay {
    position: absolute; inset: auto 0 0 0;
    padding: 40px 10px 9px;
    background: linear-gradient(0deg, rgba(20,17,15,.94) 12%, rgba(20,17,15,.55) 55%, transparent 100%);
    z-index: 3; pointer-events: none;
    display: flex; flex-direction: column; gap: 2px;
}
.card-overlay__name {
    font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
    margin: 0; color: #fff; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-overlay__price {
    font-weight: 700; font-size: 0.95rem; color: var(--accent-soft);
    font-variant-numeric: tabular-nums;
}
.card-overlay__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

/* Метаданные под фото — то, по чему принимают решение */
.card-meta-2 {
    padding: 8px 10px 10px;
    display: flex; flex-direction: column; gap: 5px;
    font-size: 0.78rem; color: var(--muted);
}
.card-meta-2__row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.card-meta-2__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta-2__live { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.card-meta-2__live.is-live { color: var(--ok); }
.card-meta-2__params { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.card-format { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.card-format i {
    font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .03em;
    padding: 3px 7px; border-radius: var(--r-pill);
    background: rgba(242,237,230,.07); color: var(--text-dim);
}

.btn-fav {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20,17,15,.6); backdrop-filter: blur(6px);
    color: rgba(255,255,255,.75); cursor: pointer; font-size: 15px;
    border: 1px solid rgba(242,237,230,.14);
    transition: color .18s, background-color .18s, transform .12s;
}
.btn-fav:hover { color: var(--accent-soft); background: rgba(20,17,15,.85); }
.btn-fav.is-on { color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.btn-fav:active { transform: scale(.9); }

/* ---------- Фильтры-чипсы ---------- */

.filter-bar { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: var(--s-4) 0 var(--s-5); }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 15px; border-radius: var(--r-pill);
    background: var(--bg-2); border: 1px solid var(--line);
    color: var(--text-dim); font-size: 0.86rem; font-weight: 600;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: border-color .18s, color .18s, background-color .18s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active {
    background: rgba(var(--accent-rgb), .14);
    border-color: rgba(var(--accent-rgb), .55);
    color: var(--accent);
}
.chip--live.is-active { background: rgba(127,169,107,.14); border-color: rgba(127,169,107,.5); color: var(--ok); }
.chip__x { opacity: .6; font-size: 1.1em; line-height: 1; }

.filter-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin: 0 0 var(--s-4);
}
@media (max-width: 640px) {
    /* На узких экранах чипсы компактнее, чтобы уложиться в две строки */
    .filter-scroll { gap: 6px; }
    .chip { padding: 8px 12px; font-size: 0.82rem; }
}

/* ---------- Пустое состояние без тупика ---------- */

.deadend {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: var(--s-5);
    margin-bottom: var(--s-5);
}
.deadend h3 { margin: 0 0 var(--s-2); color: var(--text); }
.deadend p { margin: 0 0 var(--s-4); color: var(--muted); }

/* ---------- Страница анкеты ---------- */

.p-hero { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: flex-start; }
.p-hero__media { flex: 1 1 380px; max-width: 520px; min-width: 280px; }
.p-hero__info { flex: 1 1 380px; min-width: 280px; }

.p-title { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin: 0 0 var(--s-2); }
.p-title h1 { margin: 0; color: var(--text); }

.p-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: var(--s-3); }
.p-live.is-live { color: var(--ok); }

.p-price { display: flex; align-items: baseline; gap: var(--s-2); margin: var(--s-3) 0 var(--s-4); }
.p-price__num { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700; color: var(--accent-soft); line-height: 1; font-variant-numeric: tabular-nums; }
.p-price__per { color: var(--muted); font-size: 0.95rem; }

.p-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.p-actions .btn, .p-actions .btn-gold, .p-actions .btn-outline { flex: 1 1 150px; }

/* Что входит в час — снимает главное недопонимание перед звонком */
.p-included {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: var(--s-4); margin: var(--s-5) 0;
}
.p-included__t { font-weight: 700; margin-bottom: var(--s-3); color: var(--text); }
.p-included ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.p-included li {
    font-size: 0.85rem; padding: 6px 12px; border-radius: var(--r-pill);
    background: rgba(127,169,107,.10); color: var(--text-dim);
    box-shadow: inset 0 0 0 1px rgba(127,169,107,.22);
}
.p-included li.is-extra { background: rgba(242,237,230,.05); box-shadow: inset 0 0 0 1px var(--line); }

/* Параметры: плитки, а не плоская таблица */
.p-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s-2); margin: var(--s-5) 0; }
.p-param {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: var(--s-3); text-align: center;
}
.p-param__v { font-size: 1.15rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.p-param__k { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

/* Прайс: час — главная строка, остальное тише */
.p-rates { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.p-rate { display: flex; justify-content: space-between; align-items: center; padding: 13px var(--s-4); border-bottom: 1px solid var(--line); }
.p-rate:last-child { border-bottom: 0; }
.p-rate__k { color: var(--muted); }
.p-rate__v { font-weight: 700; font-variant-numeric: tabular-nums; }
.p-rate--main { background: rgba(var(--accent-rgb), .08); }
.p-rate--main .p-rate__k { color: var(--text); font-weight: 700; }
.p-rate--main .p-rate__v { color: var(--accent-soft); font-size: 1.2rem; }

/* Галерея */
.p-gal { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-sunken); }
.p-gal img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.p-gal__count {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    background: rgba(20,17,15,.72); backdrop-filter: blur(6px);
    color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill);
    font-variant-numeric: tabular-nums;
}
.p-gal__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(20,17,15,.55); backdrop-filter: blur(6px); color: #fff; font-size: 22px; line-height: 1;
}
.p-gal__nav--prev { left: 8px; }
.p-gal__nav--next { right: 8px; }
.p-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.p-thumbs::-webkit-scrollbar { display: none; }
.p-thumbs img { width: 62px; height: 82px; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; opacity: .55; transition: opacity .18s, outline-color .18s; outline: 2px solid transparent; }
.p-thumbs img.is-active { opacity: 1; outline-color: var(--accent); }

/* Приватная заметка */
.p-note { margin: var(--s-5) 0; }
.p-note__ta {
    width: 100%; min-height: 74px; resize: vertical;
    background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm);
    color: var(--text); padding: var(--s-3); font: inherit; font-size: 0.9rem;
}
.p-note__ta:focus { outline: none; border-color: rgba(var(--accent-rgb),.5); }
.p-note__hint { font-size: 0.75rem; color: var(--muted-2); margin-top: 5px; }

/* ---------- Лента (полноэкранный режим просмотра) ---------- */

.feed-open-wrap { display: flex; justify-content: center; margin: var(--s-4) 0; }

.feed { position: fixed; inset: 0; z-index: var(--z-modal); background: #000; display: none; }
.feed.is-open { display: block; }
.feed__track {
    height: 100%; overflow-y: auto; scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.feed__track::-webkit-scrollbar { display: none; }
.feed__item {
    position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.feed__item img { width: 100%; height: 100%; object-fit: cover; }
.feed__grad {
    position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none;
    background: linear-gradient(0deg, rgba(0,0,0,.92) 8%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.feed__body { position: absolute; inset: auto 0 0 0; padding: 0 18px calc(22px + env(safe-area-inset-bottom)); color: #fff; }
.feed__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.feed__meta { color: rgba(255,255,255,.72); font-size: .9rem; margin-bottom: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.feed__price { color: var(--accent-soft); font-weight: 700; font-size: 1.15rem; }
.feed__actions { display: flex; gap: 10px; }
.feed__close {
    position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 5;
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(0,0,0,.5); backdrop-filter: blur(6px); color: #fff; font-size: 20px;
}
.feed__hint {
    position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; z-index: 5;
    color: rgba(255,255,255,.6); font-size: 12px;
}
.feed__fav {
    position: absolute; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff; font-size: 20px; cursor: pointer;
}
.feed__fav.is-on { color: var(--accent); border-color: rgba(var(--accent-rgb),.6); }

/* ---------- Режим инкогнито ---------- */

body.is-incognito .card-img,
body.is-incognito .p-gal img,
body.is-incognito .p-thumbs img,
body.is-incognito .hero-mosaic img,
body.is-incognito .feed__item img { filter: blur(18px) saturate(.5); }
body.is-incognito .card-img-wrap:hover .card-img { filter: none; }
body.is-incognito .city-card--photo { filter: blur(10px); }

.incognito-toggle {
    display: inline-flex; align-items: center; gap: 7px;
    background: none; border: 0; cursor: pointer;
    color: var(--muted); font: inherit; font-size: 0.82rem; padding: 6px 8px; border-radius: var(--r-sm);
}
.incognito-toggle:hover { color: var(--text); background: rgba(242,237,230,.05); }
.incognito-toggle.is-on { color: var(--accent); }

/* ---------- Возрастной гейт как бренд-экран ---------- */

.age-gate {
    position: fixed; inset: 0; z-index: var(--z-age);
    display: none; align-items: center; justify-content: center;
    background: var(--bg); padding: var(--s-5);
}
.age-gate.is-open { display: flex; }
.age-gate::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(var(--accent-rgb), .16), transparent 65%);
}
.age-gate__crack { position: relative; max-width: 460px; width: 100%; text-align: center; }
.age-gate__logo {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    color: var(--accent); letter-spacing: .01em; margin-bottom: var(--s-6);
}
.age-gate__num {
    font-family: var(--font-display); font-size: clamp(4rem, 18vw, 7rem); font-weight: 700;
    line-height: .9; color: var(--text); margin: 0 0 var(--s-4); letter-spacing: -.03em;
}
.age-gate__lead { font-size: 1.05rem; color: var(--text-dim); line-height: 1.6; margin: 0 0 var(--s-6); }
.age-gate__note { font-size: .78rem; color: var(--muted-2); margin-top: var(--s-4); line-height: 1.6; }
.age-gate__leave { color: var(--muted); font-size: .85rem; margin-top: var(--s-3); display: inline-block; }

/* ---------- Пульс города ---------- */

.pulse-bar {
    display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: center;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
    padding: var(--s-4) var(--s-5); margin: var(--s-5) 0;
}
.pulse-bar__item { display: flex; align-items: baseline; gap: 7px; }
.pulse-bar__n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pulse-bar__k { color: var(--muted); font-size: .85rem; }

/* ---------- «Новое с прошлого захода» ---------- */

.since-last {
    display: none; align-items: center; gap: var(--s-3); flex-wrap: wrap;
    background: rgba(var(--accent-rgb), .10);
    border: 1px solid rgba(var(--accent-rgb), .3);
    border-radius: var(--r); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4);
    font-size: .9rem;
}
.since-last.is-shown { display: flex; }

/* ---------- Прочее ---------- */

.seo-quiet { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.seo-quiet h2 { color: var(--text-dim); font-size: 1.05rem; }
.seo-section h2 { color: var(--text-dim); }

.intent-link-chip {
    display: inline-flex; align-items: center; padding: 8px 14px; margin: 0 6px 6px 0;
    border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line);
    color: var(--text-dim); font-size: .85rem; text-decoration: none;
    transition: border-color .18s, color .18s;
}
.intent-link-chip:hover { border-color: rgba(var(--accent-rgb),.45); color: var(--accent); }

.intent-faq details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.intent-faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.intent-faq summary::-webkit-details-marker { display: none; }
.intent-faq summary::before { content: '+ '; color: var(--accent); font-weight: 700; }
.intent-faq details[open] summary::before { content: '- '; }
.intent-faq p { color: var(--muted); margin: var(--s-2) 0 0; }

@media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; }
    .profile-card, .card-img, .btn, .btn-gold, .btn-outline { transition: none; }
}

/* ---------- Листание фото на карточке ----------
   Клик по самому фото ВСЕГДА открывает анкету. Листание — только точками,
   стрелками и свайпом. Раньше зоны клика перехватывали 90% площади фото,
   и попасть в анкету было почти невозможно. */

.card-photo-dots {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    gap: 2px;
    pointer-events: auto;
    max-width: 70%;
    overflow: hidden;
}
.card-photo-dot {
    /* Видимая точка маленькая, а цель для пальца — 22×18. */
    width: 14px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
}
.card-photo-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
    transition: background-color .18s, width .18s;
}
.card-photo-dot.is-active::after {
    background: #fff;
    width: 14px;
    border-radius: var(--r-pill);
}

.card-photo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    width: 30px;
    height: 46px;
    padding: 0;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    background: rgba(20, 17, 15, .42);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .18s ease, background-color .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.card-photo-arrow--prev { left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.card-photo-arrow--next { right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.card-photo-arrow:hover { background: rgba(20, 17, 15, .72); }

/* На десктопе стрелки появляются при наведении на карточку. */
@media (hover: hover) {
    .profile-card:hover .card-photo-arrow { opacity: 1; }
}

/* На тач-устройствах стрелки не нужны: там работает свайп,
   а лишние кнопки поверх фото только мешают попасть в анкету. */
@media (hover: none), (pointer: coarse) {
    .card-photo-arrow { display: none; }
    .card-photo-dot { width: 18px; height: 22px; }
}

/* ---------- Раскладка каталога ----------
   Стили панели фильтров вынесены из инлайна в CSS: инлайновые правила
   перебивали мобильный медиазапрос, и панель оставалась в потоке,
   оставляя после фильтров пустое место во весь свой рост. */

.catalog-main { min-width: 0; }

@media (min-width: 769px) {
    .catalog-container {
        display: flex;
        gap: var(--s-6);
        align-items: flex-start;
    }
    .catalog-main { flex-grow: 1; }
    .catalog-filters {
        width: 250px;
        flex-shrink: 0;
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: var(--r);
        padding: var(--s-5);
    }
}

@media (max-width: 768px) {
    /* Нижний лист. position: fixed задан выше — панель вне потока,
       пока закрыта, места не занимает. */
    .catalog-filters {
        background: var(--bg-2);
        border-top: 1px solid var(--line-strong);
        padding: var(--s-5);
        box-shadow: var(--sh-3);
    }
    .catalog-filters .form-group { margin-bottom: var(--s-4); }
}

/* Горизонтальной прокрутки на сайте быть не должно ни при каких условиях.
   Один вылезший блок ломает ощущение всего мобильного интерфейса. */
html, body { max-width: 100%; overflow-x: hidden; }
