/* EroticMassageClub — тёмный «будуар», мобайл-фёрст (редизайн 2026-07-16) */

:root {
    --bg: #141110;
    --bg-deep: #0D0B0A;
    --surface: #1B1714;
    --surface-2: #181411;
    --line: #2B2520;
    --line-soft: #3A332C;
    --text: #EFE8DF;
    --text-soft: #B7ACA0;
    --muted: #9C9083;
    --dim: #8B7F72;
    --faint: #807568;
    --gold: #C6A469;
    --gold-hover: #D6B87E;
    --ink: #171310;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Golos Text', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: var(--gold); }
img { max-width: 100%; display: block; }

.serif { font-family: 'Prata', Georgia, serif; font-weight: 400; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* --- Шапка --- */
.hdr { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; background: rgba(20, 17, 16, .92); backdrop-filter: blur(10px); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.monogram {
    width: 32px; height: 32px; border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Prata', serif; color: var(--gold); font-size: 15px;
    flex-shrink: 0;
}
.logo-name { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.nav { display: flex; gap: 24px; }
.nav a {
    color: var(--muted); text-decoration: none; font-size: 11.5px;
    letter-spacing: .14em; text-transform: uppercase; transition: color .2s;
}
.nav a:hover { color: var(--gold); }

/* --- Главная: hero --- */
.hero { padding: 44px 0 32px; text-align: center; }
.overline { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: 28px; line-height: 1.2; margin: 16px auto 0; max-width: 820px; text-wrap: balance; }
.hero p { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.rule { width: 56px; height: 1px; background: var(--gold); margin: 26px auto 0; }

/* --- Секции --- */
.sec { padding: 30px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; margin: 0; }

/* --- Города --- */
.cities {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.city {
    background: var(--bg); padding: 18px 16px; text-decoration: none;
    display: flex; flex-direction: column; gap: 5px; transition: background .25s;
}
.city:hover, .city:active { background: #1C1815; }
.city .n { font-family: 'Prata', serif; color: var(--text); font-size: 17px; line-height: 1.2; }
.city .c { color: var(--dim); font-size: 12.5px; }

/* --- Карточки анкет (журнальная лента с оверлеем) --- */
.cards { display: grid; gap: 12px; }
.cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
.card { text-decoration: none; display: block; min-width: 0; }
.ph {
    aspect-ratio: 3 / 4; position: relative; overflow: hidden;
    background: linear-gradient(165deg, #372C24, #1D1815);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.no-photo { display: flex; align-items: center; justify-content: center; }
.card:hover .ph img, .card:active .ph img { transform: scale(1.04); }
.ph img { transition: transform .4s ease; }
.card:hover .ph { outline: 1px solid var(--gold); outline-offset: -1px; }

/* Оверлей поверх фото: имя + возраст + цена */
.ovl {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 34px 12px 12px;
    background: linear-gradient(180deg, rgba(13,11,10,0) 0%, rgba(13,11,10,.5) 42%, rgba(13,11,10,.92) 100%);
}
.ovl h3 { font-family: 'Prata', serif; color: var(--text); font-size: 17px; margin: 0; font-weight: 400; line-height: 1.2; }
.ovl .meta { display: flex; gap: 8px; align-items: baseline; color: var(--text-soft); font-size: 12.5px; margin-top: 4px; flex-wrap: wrap; }
.ovl .meta .price { color: var(--gold); }
.card.no-contact { opacity: .82; }

.ph-count {
    position: absolute; right: 8px; top: 8px;
    background: rgba(13, 11, 10, .66); color: var(--text-soft);
    font-size: 11px; padding: 2px 8px; letter-spacing: .04em;
    border: 1px solid var(--line-soft);
}

/* --- Заголовок раздела города --- */
.head { padding: 24px 0 8px; }
.head h1 { font-size: 24px; line-height: 1.24; margin: 10px 0 0; max-width: 840px; }
.overline + h1, .head .overline + h1 { margin-top: 8px; }
.lead { color: var(--text-soft); font-size: 14.5px; line-height: 1.65; max-width: 680px; margin: 12px 0 0; }

/* SEO-текст: сворачиваем на мобильном (текст остаётся в DOM) */
.seo-toggle { position: absolute; opacity: 0; pointer-events: none; }
.seo-more {
    display: none; margin-top: 6px; color: var(--gold);
    font-size: 13px; letter-spacing: .03em; cursor: pointer;
}
.seo-more::after { content: 'Читать далее ↓'; }
.seo-toggle:checked ~ .seo-more::after { content: 'Свернуть ↑'; }

/* --- Чипсы программ / гео (горизонтальный скролл) --- */
.service-chips, .neighbor-links {
    display: flex; gap: 8px; margin-top: 16px;
    overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.service-chips::-webkit-scrollbar, .neighbor-links::-webkit-scrollbar { display: none; }
.service-chips a, .neighbor-links a {
    flex-shrink: 0; border: 1px solid var(--line-soft); color: var(--text-soft);
    text-decoration: none; padding: 9px 14px; font-size: 13px; white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.service-chips a:hover, .neighbor-links a:hover { border-color: var(--gold); color: var(--gold); }

/* --- Фильтры (горизонтальный скролл компактных селектов) --- */
.bar {
    display: flex; align-items: center; gap: 14px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 12px 0; margin: 18px 0 18px;
}
.filters {
    display: flex; gap: 12px; flex: 1; min-width: 0;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.f { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.f label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.f select {
    background: transparent; border: none; border-bottom: 1px solid var(--line-soft);
    color: var(--text); font-family: inherit; font-size: 14px;
    padding: 3px 22px 6px 0; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C6A469' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 4px center;
    white-space: nowrap;
}
.f select option { background: var(--surface); color: var(--text); }
.f input[type="search"] {
    background: var(--surface); border: 1px solid var(--line-soft);
    color: var(--text); padding: 7px 12px; font-size: 14px;
    font-family: inherit; min-width: 130px;
}
.f input[type="search"]::placeholder { color: var(--dim); }
.count { color: var(--dim); font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }

/* --- Показать ещё --- */
.more-wrap, .pagination { display: flex; justify-content: center; padding: 26px 0 12px; }
.more, .page-link {
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    font-family: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    padding: 0 40px; height: 52px; width: 100%; max-width: 420px; cursor: pointer;
    transition: all .2s; text-decoration: none;
}
.more:hover, .page-link:hover { background: var(--gold); color: var(--ink); }

/* --- Страница анкеты --- */
.crumbs { padding: 14px 0 0; color: var(--dim); font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.profile-detail .head { padding: 10px 0 0; }
.profile-detail .head h1 { font-size: 25px; line-height: 1.24; margin: 0; }
.tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag { border: 1px solid var(--line-soft); color: var(--text-soft); font-size: 12.5px; padding: 6px 12px; letter-spacing: .02em; }
.tag.gold { border-color: var(--gold); color: var(--gold); }

.layout { display: block; padding-bottom: 24px; }

/* Галерея — горизонтальный свайп со снапом */
.gallery {
    display: flex; gap: 10px; margin: 18px -16px 0; padding: 0 16px 4px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .g-main, .gallery .g-thumb {
    flex-shrink: 0; scroll-snap-align: center; cursor: zoom-in;
    overflow: hidden; background: linear-gradient(160deg, #372C24, #1D1815);
}
.gallery .g-main { width: 82vw; max-width: 320px; aspect-ratio: 3 / 4; }
.gallery .g-thumb { width: 82vw; max-width: 320px; aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.desc { margin-top: 26px; }
.desc h2 { font-size: 20px; margin: 0 0 12px; }
.desc p { color: var(--text-soft); font-size: 15px; line-height: 1.75; margin: 0 0 14px; max-width: 65ch; }

.aside { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.a-block { background: var(--surface); padding: 20px 18px; }
.a-price { font-family: 'Prata', serif; font-size: 26px; color: var(--text); }
.a-price small {
    font-size: 12px; color: var(--dim); font-family: 'Golos Text', sans-serif;
    display: block; margin-bottom: 5px; letter-spacing: .16em; text-transform: uppercase;
}
.call {
    display: block; background: var(--gold); color: var(--ink); text-align: center;
    text-decoration: none; font-size: 15px; letter-spacing: .06em; font-weight: 600;
    padding: 16px; margin-top: 16px; transition: background .2s;
}
.call:hover { background: var(--gold-hover); }
.a-label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.a-val { color: var(--text); font-size: 14.5px; margin: 0; }
.srv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.srv li { color: var(--text-soft); font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.srv li:last-child { border-bottom: none; }

.back { padding: 22px 0 96px; }
.back a { color: var(--gold); text-decoration: none; font-size: 14px; letter-spacing: .04em; }

/* --- Похожие анкеты --- */
.related { margin-top: 36px; }
.related h2 { font-size: 21px; margin: 0 0 14px; }

/* --- FAQ --- */
.faq { margin: 40px 0 0; max-width: 780px; }
.faq h2 { font-size: 22px; margin: 0 0 12px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 2px 0; }
.faq-item summary {
    cursor: pointer; padding: 14px 32px 14px 0; font-size: 15.5px; color: var(--text);
    list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 4px; top: 12px;
    color: var(--gold); font-size: 20px; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-soft); line-height: 1.65; margin: 0 0 14px; }

/* --- Соседние города --- */
.neighbors { margin: 36px 0 8px; }
.neighbors h2 { font-size: 20px; margin: 0 0 14px; }
.neighbors .neighbor-links { flex-wrap: nowrap; }

/* --- Подвал --- */
.ftr { border-top: 1px solid var(--line); margin-top: 32px; }
.ftr-in {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px 16px; padding: 22px 0; color: var(--faint); font-size: 12px;
}
.badge18 { border: 1px solid var(--faint); padding: 3px 8px; font-size: 11px; letter-spacing: .08em; }

/* --- 18+ оверлей --- */
#age-overlay {
    position: fixed; inset: 0; background: rgba(13, 11, 10, .96);
    display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
html.age-ok #age-overlay { display: none; }
.age-modal {
    max-width: 440px; width: 100%; background: var(--surface-2);
    border: 1px solid var(--line); padding: 40px 28px; text-align: center;
}
.age-monogram {
    width: 44px; height: 44px; border: 1px solid var(--gold);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Prata', serif; color: var(--gold); font-size: 20px; margin-bottom: 22px;
}
.age-modal h2 { font-family: 'Prata', serif; font-weight: 400; color: var(--text); font-size: 24px; margin: 0 0 16px; }
.age-modal p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 8px; }
.age-modal .age-q { color: var(--text); font-size: 15.5px; margin: 20px 0 0; }
.age-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.age-buttons button {
    background: var(--gold); color: var(--ink); border: none; padding: 15px;
    font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: background .2s;
}
.age-buttons button:hover { background: var(--gold-hover); }
.age-buttons .btn-no {
    color: var(--dim); border: 1px solid var(--line-soft); padding: 14px;
    font-size: 13px; letter-spacing: .06em; text-decoration: none; transition: color .2s;
}
.age-buttons .btn-no:hover { color: var(--muted); }
.age-fine { margin-top: 24px; color: #5C5348; font-size: 12px; line-height: 1.5; }

/* --- Лайтбокс галереи --- */
#lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(13, 11, 10, .94);
    display: flex; align-items: center; justify-content: center;
}
#lightbox[hidden] { display: none; }
#lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
#lightbox button {
    position: absolute; background: none; border: none; cursor: pointer;
    color: var(--text-soft); font-size: 40px; line-height: 1; padding: 14px;
}
#lightbox button:hover { color: var(--gold); }
.lb-close { top: 8px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* --- Sticky «Позвонить» на мобиле --- */
.sticky-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; }
.sticky-call {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(13,11,10,0), var(--bg-deep) 34%);
}
.sticky-call .call {
    display: block; text-align: center; background: var(--gold);
    color: var(--ink); text-decoration: none; padding: 15px; margin: 0;
    font-weight: 600; letter-spacing: .02em;
}
body:has(.sticky-call) { padding-bottom: 78px; }

/* --- Производительность больших списков --- */
.profile-card { content-visibility: auto; contain-intrinsic-size: auto 360px; }

/* --- 404 --- */
.err-page {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 24px; background: var(--bg); color: var(--text);
}
.err-code { font-size: 84px; color: var(--gold); line-height: 1; }
.err-page h1 { font-size: 26px; margin: 16px 0 8px; }
.err-page p { color: var(--muted); margin: 0 0 24px; }
.err-btn {
    border: 1px solid var(--gold); color: var(--gold); text-decoration: none;
    padding: 12px 26px; letter-spacing: .08em; text-transform: uppercase;
    font-size: 13px; transition: background .2s, color .2s;
}
.err-btn:hover { background: var(--gold); color: var(--ink); }

/* ============ Планшет ============ */
@media (min-width: 600px) {
    .wrap { padding: 0 24px; }
    .cities { grid-template-columns: repeat(3, 1fr); }
    .cards-3, .cards-4 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .hero h1 { font-size: 38px; }
    .head h1 { font-size: 30px; }
    .profile-detail .head h1 { font-size: 30px; }
    .gallery .g-main, .gallery .g-thumb { width: 300px; }
}

/* ============ Десктоп ============ */
@media (min-width: 900px) {
    .wrap { padding: 0 32px; }
    .hdr-in { height: 78px; }
    .monogram { width: 40px; height: 40px; font-size: 18px; }
    .logo-name { font-size: 14px; letter-spacing: .24em; }
    .nav { gap: 32px; }
    .nav a { font-size: 13px; }
    .hero { padding: 88px 0 72px; }
    .hero h1 { font-size: 50px; }
    .hero p { font-size: 17px; }
    .sec { padding: 52px 0; }
    .sec-head h2 { font-size: 28px; }
    .cities { grid-template-columns: repeat(4, 1fr); }
    .city { padding: 26px 24px; }
    .city .n { font-size: 19px; }
    .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
    .cards-4 { grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
    .ovl h3 { font-size: 20px; }
    .ovl .meta { font-size: 13.5px; }
    .head { padding: 56px 0 8px; }
    .head h1 { font-size: 42px; }
    .lead { font-size: 15.5px; }
    .seo-more { display: none !important; }
    .seo-text { display: block !important; -webkit-line-clamp: unset !important; }
    .profile-detail .head { padding: 16px 0 0; }
    .profile-detail .head h1 { font-size: 38px; }
    .tag { font-size: 13px; padding: 7px 14px; }

    /* Двухколоночный layout анкеты на десктопе */
    .layout {
        display: grid; grid-template-columns: minmax(0, 1fr) 340px;
        gap: 44px; align-items: start; padding-bottom: 64px;
    }
    .gallery {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
        margin: 0; padding: 0; overflow: visible;
    }
    .gallery .g-main, .gallery .g-thumb { width: auto; max-width: none; }
    .gallery .g-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
    .gallery .g-thumb { aspect-ratio: 1 / 1; }
    .desc { margin-top: 40px; }
    .desc h2 { font-size: 24px; }
    .aside { position: sticky; top: 96px; margin-top: 0; }
    .a-block { padding: 26px 28px; }
    .a-price { font-size: 30px; }
    .related h2 { font-size: 26px; }
    .faq h2 { font-size: 26px; }

    /* На десктопе фильтры разворачиваются, sticky-call скрыт */
    .bar { flex-wrap: wrap; padding: 20px 0; }
    .filters { flex-wrap: wrap; gap: 32px; overflow: visible; }
    .sticky-call { display: none; }
    body:has(.sticky-call) { padding-bottom: 0; }
    .back { padding: 0 0 64px; }
}

/* Сворачивание SEO-текста только на мобильном/планшете */
@media (max-width: 899px) {
    .seo-text {
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .seo-toggle:checked ~ .seo-text { -webkit-line-clamp: unset; overflow: visible; }
    .seo-more { display: inline-block; }
}
