/* Неон */
:root {
    color-scheme: dark;
    --void: #080a12; --panel: #0f1220; --panel-up: #161a2c; --wire: #232842; --glow-text: #e6ecff; --dim-text: #8a93b5;
    --neon: #2ef2c8; --neon-hot: #6bffe0; --neon-ink: #031a15; --neon-2: #ff4fd8;
    --neon-glow: 0 0 18px rgba(46, 242, 200, .45);
    --sig-vip: #b8860b; --sig-ok: #1f9d63; --sig-massage: #c2338f; --sig-model: #3a62d6; --sig-off: #4a5170;
    --mono-body: 'IBM Plex Sans', system-ui, sans-serif; --mono-head: 'Unbounded', 'IBM Plex Sans', sans-serif;
    --code: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --cut-s: 3px; --cut: 6px; --cut-l: 10px; --frame: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--void); background-image: radial-gradient(circle at 20% -10%, color-mix(in srgb, var(--neon) 9%, transparent), transparent 40%), radial-gradient(circle at 100% 0, color-mix(in srgb, var(--neon-2) 7%, transparent), transparent 35%); background-attachment: fixed; color: var(--glow-text); font: 400 15px/1.55 var(--mono-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--neon); text-decoration: none; }
a:hover { color: var(--neon-hot); text-shadow: var(--neon-glow); }
h1, h2, h3, p, pre, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.phone-js { font: inherit; }
.sym { width: 1em; height: 1em; vertical-align: -.13em; flex-shrink: 0; }
.frame { max-width: var(--frame); margin: 0 auto; padding: 0 20px; }
.lit { color: var(--neon) !important; }

.neon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--neon); border-radius: var(--cut); background: transparent; color: var(--neon); font-family: var(--code); font-size: .9em; text-transform: lowercase; transition: box-shadow .2s, background .2s; }
.neon-btn:hover { box-shadow: var(--neon-glow); color: var(--neon-hot); text-shadow: none; }
.neon-btn--solid { background: var(--neon); color: var(--neon-ink); }
.neon-btn--solid:hover { background: var(--neon-hot); color: var(--neon-ink); }
.neon-btn--xl { width: 100%; padding: 14px; font-size: 1.05em; }

/* Шапка */
.deck { background: color-mix(in srgb, var(--void) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--wire); box-shadow: 0 1px 0 color-mix(in srgb, var(--neon) 30%, transparent); }
.deck__bar { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.deck__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--glow-text); font: 700 1.05em var(--mono-head); letter-spacing: .02em; white-space: nowrap; }
.deck__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--neon); box-shadow: var(--neon-glow); }
.deck__links { display: flex; flex-wrap: wrap; gap: 2px 16px; flex: 1; }
.deck__link { color: var(--dim-text); font-family: var(--code); font-size: .86em; padding: 4px 0; }
.deck__link.lit { text-shadow: var(--neon-glow); }
.deck__link--add { display: none; }
.deck__ctrl { display: flex; align-items: center; gap: 8px; }
.deck__menu { display: none; width: 40px; height: 40px; border: 1px solid var(--wire); border-radius: var(--cut); background: var(--panel); font-size: 1.4em; line-height: 1; }
.sel { position: relative; }
.sel__btn { display: flex; align-items: center; gap: 6px; max-width: 200px; padding: 8px 12px; border: 1px solid var(--wire); border-radius: var(--cut); background: var(--panel); font-size: .9em; cursor: pointer; list-style: none; }
.sel__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel__btn::-webkit-details-marker { display: none; }
.sel[open] .sel__btn { border-color: var(--neon); box-shadow: var(--neon-glow); }
.sel__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 320px; max-height: 70vh; overflow: auto; padding: 14px; background: var(--panel); border: 1px solid var(--neon); border-radius: var(--cut-l); box-shadow: var(--neon-glow), 0 20px 50px rgba(0, 0, 0, .6); }
.sel__menu--xl { width: min(760px, 94vw); }
.sel__label { font-family: var(--code); color: var(--neon-2); font-size: .82em; margin-bottom: 8px; }
.sel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.sel__grid--4 { grid-template-columns: repeat(4, 1fr); }
.sel__opt { display: block; padding: 3px 6px; border-radius: var(--cut-s); color: var(--glow-text); font-size: .9em; }
.sel__opt:hover { background: var(--panel-up); }
.sel__more { display: block; margin-top: 10px; font-family: var(--code); font-size: .88em; }

/* Сетка */
.zone { display: grid; gap: 28px; padding-top: 26px; padding-bottom: 50px; }
.zone__main { min-width: 0; }
.route { margin-bottom: 14px; font-family: var(--code); font-size: .84em; color: var(--dim-text); }
.route__prompt { color: var(--neon-2); }
.route a { color: var(--dim-text); }
.route__slash { margin: 0 4px; color: var(--wire); }
.route__now { color: var(--glow-text); }
.hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.hero__h { font: 700 clamp(1.4em, 2.8vw, 2.1em)/1.15 var(--mono-head); letter-spacing: -.01em; }
.hero__h--xl { font-size: clamp(1.8em, 4vw, 3em); }
.hero__count { font-family: var(--code); color: var(--neon); text-shadow: var(--neon-glow); }
.switch { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 22px; border: 1px solid var(--wire); border-radius: var(--cut); width: fit-content; max-width: 100%; overflow: hidden; }
.switch__opt { padding: 7px 14px; color: var(--dim-text); font-family: var(--code); font-size: .86em; border-right: 1px solid var(--wire); }
.switch__opt:last-child { border-right: 0; }
.switch__opt.lit { background: color-mix(in srgb, var(--neon) 14%, transparent); }
.readme { padding: 16px 18px; margin-bottom: 22px; border-left: 2px solid var(--neon-2); background: var(--panel); color: var(--dim-text); display: grid; gap: 10px; }
.readme--seo { margin: 36px 0 0; font-size: .88em; }

/* Карточки */
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cell { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--wire); border-radius: var(--cut-l); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.cell:hover { border-color: var(--neon); box-shadow: var(--neon-glow); }
.cell--vip { border-color: var(--sig-vip); }
.cell__shot { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.cell__shot img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(1.1); }
.cell__shot::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); pointer-events: none; }
.cell__flags { position: absolute; left: 8px; top: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.cell__flags--static { position: static; margin-bottom: 8px; }
.flag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: var(--cut-s); font: 600 .72em var(--code); color: #fff; text-transform: lowercase; }
.flag--massage { background: var(--sig-massage); }
.flag--model { background: var(--sig-model); }
.flag--vip { background: var(--sig-vip); }
.flag--ok { background: var(--sig-ok); }
.cell__data { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.cell__title { font: 700 1.05em var(--mono-head); color: var(--glow-text); }
.cell__geo { font-size: .85em; color: var(--dim-text); }
.cell__bio { font-size: .85em; color: var(--dim-text); }
.cell__term { padding: 8px 10px; background: var(--void); border: 1px solid var(--wire); border-radius: var(--cut-s); font: .8em/1.6 var(--code); color: var(--glow-text); white-space: pre-wrap; }
.cell__term:empty { display: none; }
.cell__term span { color: var(--neon); }
.cell__cost { display: grid; grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 6px; }
.cell__cost div { display: grid; padding: 4px 6px; border: 1px dashed var(--wire); border-radius: var(--cut-s); }
.cell__cost small { font: .7em var(--code); color: var(--dim-text); }
.cell__cost b { font-size: .95em; white-space: nowrap; }
.cell__call { margin-top: auto; width: 100%; }
.cell__svc { display: flex; flex-wrap: wrap; gap: 2px 8px; font: .74em var(--code); color: var(--neon-2); }
.pager { margin-top: 26px; text-align: center; }
.pager__btn { min-width: 240px; }
.pager__btn--wait { opacity: .6; }
.null { font-family: var(--code); color: var(--dim-text); padding: 30px 0; }

/* Сайдбар */
.rail-box { display: grid; gap: 14px; align-content: start; }
.module { padding: 16px; background: var(--panel); border: 1px solid var(--wire); border-radius: var(--cut-l); }
.module__h { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font: 600 .82em var(--code); color: var(--neon-2); text-transform: uppercase; letter-spacing: .12em; }
.module__list a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: var(--glow-text); font-size: .92em; }
.module__list code { font-family: var(--code); color: var(--dim-text); font-size: .85em; }
.module__list--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.module__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.module__tags a { padding: 2px 8px; border: 1px solid var(--wire); border-radius: var(--cut-s); color: var(--glow-text); font-size: .83em; }
.module__tags a:hover { border-color: var(--neon); }
.module__more { display: inline-block; margin-top: 10px; font: .84em var(--code); }

/* Анкета */
.unit__head { margin-bottom: 14px; }
.unit__id { font: .82em var(--code); color: var(--dim-text); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--wire); border-radius: var(--cut-l); overflow: hidden; margin-bottom: 18px; background: var(--panel); }
.stats div { display: grid; justify-items: center; padding: 12px 4px; border-right: 1px solid var(--wire); }
.stats div:last-child { border-right: 0; }
.stats b { font: 700 1.2em var(--mono-head); color: var(--neon); text-shadow: var(--neon-glow); }
.stats span { font: .72em var(--code); color: var(--dim-text); }
.unit__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.viewer { display: grid; gap: 8px; }
.viewer__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--cut-l); border: 1px solid var(--wire); }
.viewer__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.viewer__btn { padding: 0; border: 1px solid var(--wire); border-radius: var(--cut); overflow: hidden; background: none; opacity: .55; }
.viewer__btn.lit { opacity: 1; border-color: var(--neon); box-shadow: var(--neon-glow); }
.console { display: flex; flex-direction: column; gap: 14px; }
.console__note { font: .8em var(--code); color: var(--dim-text); }
.console__block { padding: 14px; background: var(--panel); border: 1px solid var(--wire); border-radius: var(--cut-l); display: grid; gap: 6px; }
.grid-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.grid-table th, .grid-table td { padding: 6px; border: 1px solid var(--wire); text-align: center; }
.grid-table th { font: 500 .8em var(--code); color: var(--dim-text); }
.grid-table td { font-weight: 600; }
.panel-box { margin-top: 18px; padding: 18px; background: var(--panel); border: 1px solid var(--wire); border-radius: var(--cut-l); }
.panel-box--plain { background: none; border: 0; padding: 18px 0 0; }
.panel-box--plain .hero__h { margin-bottom: 14px; }
.panel-box__text { color: var(--dim-text); max-width: 760px; }
.svc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.svc-cols h3 { font-size: .9em; margin-bottom: 6px; }
.svc-cols li { font: .86em/1.8 var(--code); }
.svc-cols .on { color: var(--neon); }
.svc-cols .off { color: var(--sig-off); }
.err { display: grid; justify-items: start; gap: 12px; }
.err__code { font: 700 3em var(--mono-head); color: var(--neon-2); text-shadow: 0 0 20px var(--neon-2); }

/* Каталоги */
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dir__grp { padding: 12px 14px; background: var(--panel); border: 1px solid var(--wire); border-radius: var(--cut); }
.dir__key { font: 700 1.2em var(--mono-head); color: var(--neon); margin-bottom: 6px; }
.dir a { display: block; padding: 1px 0; color: var(--glow-text); font-size: .9em; }

/* Подвал */
.base { border-top: 1px solid var(--wire); padding: 34px 0 20px; background: var(--panel); font-size: .9em; }
.base__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.base__small { margin-top: 10px; font: .82em var(--code); color: var(--dim-text); }
.base__col a { display: block; padding: 2px 0; color: var(--dim-text); }
.base__links { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-top: 1px dashed var(--wire); border-bottom: 1px dashed var(--wire); font-size: .86em; }
.base__links a { color: var(--dim-text); }
.base__copy { margin-top: 14px; font: .8em var(--code); color: var(--sig-off); }

@media (min-width: 1025px) {
    .zone { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1180px) {
    .deck__bar { flex-wrap: wrap; position: relative; }
    .deck__menu { display: block; }
    .deck__ctrl { margin-left: auto; }
    .deck__links { display: none; order: 3; flex-basis: 100%; flex-direction: column; padding-bottom: 12px; }
    .deck__links--on { display: flex; }
    .deck__link--add { display: block; }
}
@media (max-width: 1024px) {
    .rail-box { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .unit__body { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stats div { border-bottom: 1px solid var(--wire); }
}
@media (max-width: 640px) {
    .deck__add { display: none; }
    .sel__btn { max-width: 130px; }
    .cells { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .base__grid { grid-template-columns: 1fr 1fr; }
    .base__grid > div:first-child { grid-column: 1 / -1; }
    .sel__grid--4 { grid-template-columns: 1fr 1fr; }
    .sel__menu { right: auto; left: -60px; }
}
.viewer__btn img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ===== Оформление сайта (styles.py) ===== */
:root {
    --void: #16181c;
    --panel: #1f2227;
    --panel-up: #282c32;
    --wire: #393e45;
    --glow-text: #e7eaee;
    --dim-text: #9ca2ab;
    --neon: #867cde;
    --neon-hot: #958de2;
    --neon-ink: #100e20;
    --neon-2: #d5ef6c;
    --sig-vip: #218356;
    --sig-ok: #257e44;
    --sig-massage: #ae3272;
    --sig-model: #257b93;
    --sig-off: #60656c;
    --neon-glow: 0 0 18px color-mix(in srgb, var(--neon) 45%, transparent);
    --mono-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono-head: 'Cormorant Garamond', Georgia, serif;
    --cut-s: 4px;
    --cut: 8px;
    --cut-l: 12px;
    --frame: 1220px;
}
body { font-size: 16px; }
:root { color-scheme: dark; }
.cell__shot { aspect-ratio: 4 / 5; }
.cell, .cell:hover { box-shadow: none; transform: none; }
.deck { position: relative; }
@media (min-width: 1025px) {
    .cells { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
    .zone { grid-template-columns: minmax(0, 1fr) 310px; }
    .zone__rail { order: 1; }
}
