/* host.moscow — новый дизайн (прототип). Без библиотек. */

@font-face { font-family: "Ubuntu"; src: url("../theme/fonts/ubuntu-l-webfont.woff2") format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("../theme/fonts/ubuntu-m-webfont.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --brand: #3d2f2a;        /* логотип */
  --brand-soft: #5a463f;
  --bg: #ffffff;           /* фон страницы — белый */
  --header: #efe5da;       /* шапка — бежевая */
  --card: #faf6f1;         /* подложка карточки — светлее шапки */
  --surface: #ffffff;
  --text: #241b18;
  --muted: #74665f;
  --line: #e7ded7;
  --chip: #efe7e1;
  --free: #2e7a4d;
  --free-bg: #e5f3ea;
  --video: #b4532a;        /* «без воды» */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 27, 24, .06), 0 6px 20px rgba(36, 27, 24, .06);
  --wrap: 980px;           /* как на текущем сайте: 940 + поля по 20 */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* Размеры шрифтов — как на текущем сайте: текст 14, h1 30, h2 22 */
h1, h2, h3 { font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 620px) { .wrap { padding: 0 16px; } h1 { font-size: 24px; } }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Кнопки, плашки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; cursor: pointer; font-weight: 500; }
.btn:hover { border-color: var(--brand-soft); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-soft); }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--chip); font-size: 13px; white-space: nowrap; }
.chip-free { background: var(--free-bg); color: var(--free); font-weight: 500; }
.chip-video { background: var(--video); color: #fff; font-weight: 500; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid #e2d5c7; }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { text-decoration: none; line-height: 1; color: var(--brand); }
.logo b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.logo b span { font-weight: 400; }
.logo small { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--brand-soft); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.phone { text-decoration: none; font-weight: 500; white-space: nowrap; }
.icon-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 900px) {
  .nav, .phone, .header-login { display: none; }
  .icon-btn { display: inline-flex; }
  .header .wrap { height: 56px; }
}
.mobile-nav { display: grid; gap: 4px; padding: 8px 0 16px; }
.mobile-nav a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }

/* Каталог */
.page-head { padding: 24px 0 0; }
.page-head h1 { margin-bottom: 15px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.lead { margin: 0; }
.honest { display: flex; gap: 10px; align-items: flex-start; max-width: 760px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding: 20px 0 40px; align-items: start; }
.toolbar { display: none; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.filter-open { display: none; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .filter-aside { display: none; }
  .toolbar, .filter-open { display: flex; }
}

/* Фильтр — как на текущем сайте: серая подложка, белые группы, подписи 12 px */
.filter { background: #f7f7f8; padding: 10px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.filter-found { display: block; width: 100%; height: 30px; margin: 0 0 10px; border: 1px solid var(--brand); border-radius: 30px; padding: 0 12px;
  background: var(--brand); color: #fff; font: inherit; cursor: pointer; }
.filter-found:last-child { margin: 10px 0 0; }
.filter-found:hover:not(:disabled) { background: #fff; color: var(--brand); }
.filter-found:disabled { background: #fff; color: var(--brand); cursor: default; }
.fgroup { background: #fff; padding: 5px 10px; margin-top: 5px; }
.fgroup summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; color: #443431; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px 3px 1px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; }
.fgroup[open] summary::before { transform: rotate(45deg); margin-bottom: 5px; }
.fgroup-title { border-bottom: 1px dotted #443431; }
.fgroup summary:hover .fgroup-title { border-bottom-color: transparent; }
.fgroup-reset { margin-left: auto; color: #7f7f7f; font-size: 11px; white-space: nowrap; }
.fgroup-reset:hover { color: var(--text); }
.fgroup-reset b { color: var(--text); font-size: 13px; }
.fgroup-reset[hidden] { display: none; }
.fgroup > :last-child { margin-bottom: 5px; }
.opt { display: flex; align-items: flex-start; gap: 7px; margin-top: 6px; font-size: 12px; line-height: 1.2; cursor: pointer; }
.opt input { flex: none; width: 16px; height: 16px; margin: -1px 0 0; accent-color: var(--brand); }
.fgroup-note { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.filter input[type=date] { width: 100%; height: 32px; margin-top: 6px; border-radius: 5px; border: 1px solid #aaa; padding: 0 8px; font: inherit; }
dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; border: 0; border-radius: 20px 20px 0 0; padding: 0; }
dialog.sheet::backdrop { background: rgba(20, 14, 12, .45); }
dialog.sheet .filter { position: static; max-height: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0; }

/* Карточка-строка (как на текущем сайте; образец — msk.gorko.ru) */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 14px; }
.hcard { position: relative; background: var(--card); border: 1px solid #ece2d8; border-radius: var(--radius); }
.hcard-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 92px; min-height: 52px; }
.hcard-avatar { position: absolute; left: 10px; top: -14px; width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: var(--chip);
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(36, 27, 24, .18); display: grid; place-items: center; text-decoration: none; font-weight: 500; color: var(--muted); }
.hcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hcard-title { flex: 1; min-width: 0; }
.hcard-title .card-name a { text-decoration: none; }
.hcard-title .card-name a:hover { text-decoration: underline; }
.hcard-title .card-meta { margin: 2px 0 0; }
.hcard .fav { position: static; flex: none; background: none; width: 36px; height: 36px; color: var(--muted); }
.hcard .fav:hover { color: var(--brand); }
.hcard .fav[aria-pressed=true] svg { fill: #e0a526; stroke: #e0a526; }
.strip-wrap { position: relative; }
.strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip-item { flex: none; height: 160px; position: relative; scroll-snap-align: start; background: var(--chip); padding: 0; border: 0; display: block; }
.strip-item img { height: 160px; width: auto; max-width: none; object-fit: cover; }
.strip-item.slide-video { cursor: pointer; background: #000; }
.strip-item.slide-video img { width: 284px; height: 160px; object-fit: cover; opacity: .88; }
.strip-item .chip-video { position: absolute; left: 8px; top: 8px; }
.strip-item iframe { width: 284px; height: 160px; border: 0; display: block; }
.strip-wrap .nav-btn { box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.strip-wrap:hover .nav-btn { opacity: 1; }
.strip-wrap .nav-btn[hidden] { display: none; }
.hcard-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 8px 10px 10px; }
.price-cell span { display: block; font-size: 12px; color: #7f7f7f; }
.price-cell b { font-weight: 700; font-size: 17px; white-space: nowrap; }
.hcard-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hcard-actions .btn { min-height: 32px; font-weight: 400; }
@media (max-width: 620px) {
  .hcard-head { padding-left: 84px; }
  .hcard-avatar { width: 62px; height: 62px; }
  .hcard-actions { margin-left: 0; width: 100%; }
  .hcard-actions .btn { flex: 1; }
}

/* Сетка карточек (старый вариант B — не используется) */

.card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--chip); }
.carousel { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-video { border: 0; padding: 0; cursor: pointer; background: #000; width: 100%; }
.slide-video img { opacity: .88; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.play::before { content: ""; margin-left: 5px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.slide iframe { width: 100%; height: 100%; border: 0; }
.media-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; pointer-events: none; }
.counter { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; pointer-events: none; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; opacity: 0; transition: opacity .15s; display: grid; place-items: center; }
.nav-btn.prev { left: 10px; } .nav-btn.next { right: 10px; }
.card-media:hover .nav-btn, .gallery:hover .nav-btn { opacity: 1; }
@media (hover: none) { .nav-btn { display: none; } }
.fav { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; display: grid; place-items: center; }
.fav[aria-pressed=true] svg { fill: #c0392b; stroke: #c0392b; }

.card-body { display: block; padding: 14px 16px 16px; text-decoration: none; flex: 1; }
.card-name { font-size: 18px; font-weight: 700; margin: 0; }
.card-meta { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.prices { display: grid; gap: 2px; margin-bottom: 10px; }
.price-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.price-row b { font-weight: 500; font-size: 15px; white-space: nowrap; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.more { display: flex; justify-content: center; margin-top: 28px; }
.seo-text { max-width: 820px; padding: 8px 0 48px; }
.seo-text h2 { margin-top: 1.2em; }

/* Анкета: слева узкая колонка (контакты, календарь) стоит на месте, справа фото и сведения */
.host-top { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding: 10px 0 40px; align-items: start; }
.host-top > .side { grid-column: 1; grid-row: 1; }
.host-top > .host-main { grid-column: 2; grid-row: 1; }
@media (max-width: 960px) {
  /* На телефоне: имя и цены сверху, затем фото и сведения, календарь — в конце */
  .host-top { grid-template-columns: 1fr; }
  .host-top > .host-main { grid-column: auto; grid-row: auto; }
  .host-top > .side { display: contents; }
  .side > :first-child { order: -1; }
  .side > :last-child { order: 1; }
}
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 16 / 9; overflow: hidden; }
.gallery > :first-child { grid-row: span 2; }
.gallery a, .gallery button { display: block; height: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative; background: var(--chip); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-all { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 620px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4 / 3; border-radius: 0; margin: 0 -16px; gap: 0; }
  .gallery > * { flex: 0 0 100%; scroll-snap-align: start; }
}
.panel { background: var(--card); border: 1px solid #ece2d8; border-radius: var(--radius); padding: 14px; }
.side { position: sticky; top: 84px; display: grid; gap: 10px; }
.host-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--chip); }
.host-title h1 { font-size: 20px; font-weight: 700; margin: 0; }
.contacts { display: none; gap: 4px; margin-top: 10px; }
.contacts.open { display: grid; }
.cta-bar { display: none; }
@media (max-width: 960px) {
  .side { position: static; }
  .cta-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
  .cta-bar .btn { flex: 1; }
  body.has-cta { padding-bottom: 76px; }
}
.section { padding: 10px 0 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.fact small { display: block; color: var(--muted); font-size: 13px; }
.videos { display: flex; flex-wrap: wrap; gap: 6px; }
.video { position: relative; flex: 0 0 auto; width: 284px; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video .chip-video { position: absolute; left: 8px; top: 8px; }
.videos-clean { margin-top: 6px; }   /* между фото и видео — как между самими фото */
.video .slide-video, .video iframe { width: 100%; height: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; }
details.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 8px; }
details.qa summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; }
details.qa summary::after { content: "+"; float: right; color: var(--muted); }
details.qa[open] summary::after { content: "–"; }
details.qa > div { padding: 0 0 14px; color: var(--brand-soft); }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.month h3 { font-size: 13px; text-transform: capitalize; margin-bottom: 6px; }
.month table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.month th { color: var(--muted); font-weight: 400; padding: 2px 0; }
.month td { padding: 4px 0; }
.month td span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.month .busy span { background: var(--brand); color: #fff; }
.month .past span { color: #c4b8b1; }
.month .today span { outline: 1px solid var(--brand); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-right: 4px; }

/* Лайтбокс */
dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d0a09; color: #fff; }
dialog.lightbox::backdrop { background: #0d0a09; }
.lb-track { display: flex; height: calc(100% - 56px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.lb-bar button { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* Мозаика */
.mosaic { columns: 4 240px; column-gap: 12px; }
.tile { display: block; break-inside: avoid; margin-bottom: 12px; border-radius: 12px; overflow: hidden; position: relative; background: var(--chip); }
.tile img { width: 100%; height: auto; }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .15s; }
.tile:hover span { opacity: 1; }
@media (hover: none) { .tile span { opacity: 1; } }

/* Подвал */
.footer { background: var(--brand); color: #e9e0db; padding: 36px 0; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer a { color: #fff; text-decoration: none; display: block; padding: 3px 0; }
.footer h3 { font-size: 15px; color: #fff; }

/* Сетки не должны растягиваться содержимым (лента фото, таблицы календаря) */
.host-top > *, .layout > * { min-width: 0; }

/* Сведения о ведущем — списком, без рамок, как на текущем сайте */
.host-info { padding: 16px 0 10px; }
.host-info p { margin: 0 0 6px; }
.host-info h3 { margin: 16px 0 6px; }
.review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review small { color: var(--muted); }
.review p { margin: 4px 0 0; }
@media (max-width: 620px) { .months { grid-template-columns: 1fr; } }

/* Календарь в боковой панели: месяцы листаются по одному (иначе не помещаются в 360 px) */
.side { min-width: 0; }
.side .months { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.side .month { scroll-snap-align: start; }
.side > * { min-width: 0; }
.side .month td span { width: 24px; height: 24px; }
.gallery .gallery-all { position: absolute; right: 12px; bottom: 12px; height: auto; min-height: 40px; width: auto; display: inline-flex; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .95); cursor: pointer; }
@media (max-width: 620px) { .gallery .gallery-all { flex: none; right: 28px; } }

/* Видео в ленте — ровно 16:9 (общее правило .slide-video растягивало его на всю ленту) */
.strip-item.slide-video { width: 284px; }
.watermark { position: absolute; left: 10px; bottom: 6px;   /* слева: по центру внизу у роликов уже вшит логотип */ color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7); opacity: .9; pointer-events: none; }
/* Аватарка с обводкой — поверх ленты фото */
.hcard-avatar { z-index: 3; }

/* Анкета: лента фото-видео во всю ширину, кнопка «Все медиа» справа внизу */
.host-strip { margin-top: 6px; }
.host-strip .strip-item, .host-strip .strip-item img { height: 240px; }
.host-strip .strip-item.slide-video, .host-strip .strip-item.slide-video img, .host-strip .strip-item iframe { width: 427px; height: 240px; }
.host-strip .strip-item { cursor: zoom-in; }
.media-all { position: absolute; right: 10px; bottom: 10px; min-height: 32px; padding: 0 14px; background: rgba(255, 255, 255, .95); font-weight: 400; z-index: 2; }
@media (max-width: 620px) {
  .host-strip { margin: 6px -16px 0; }
  .host-strip .strip-item, .host-strip .strip-item img { height: 200px; }
  .host-strip .strip-item.slide-video, .host-strip .strip-item.slide-video img, .host-strip .strip-item iframe { width: 356px; max-width: 90vw; height: 200px; }
}

/* Карточка ведущего в анкете: большая аватарка чуть выходит за верхний край, имя под ней */
.host-top { padding-top: 40px; }
.side .panel:first-child { padding-top: 0; }
.side .host-title { display: block; margin-bottom: 0; }
.side .avatar { display: grid; place-items: center; width: 104px; height: 104px; margin-top: -26px; overflow: hidden; border-radius: 50%;
  background: var(--chip); box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(36, 27, 24, .18); color: var(--muted); font-size: 28px; }
.side .avatar img { width: 100%; height: 100%; object-fit: cover; }
.side .host-title h1 { margin-top: 10px; }
.side { top: 110px; }

/* Контакты */
.page-text { max-width: 760px; }
.feedback { display: grid; gap: 10px; max-width: 520px; padding: 10px 0 48px; }
.feedback h2 { margin: 10px 0 0; }
.feedback input:not([type=file]):not([type=hidden]), .feedback textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #aaa; border-radius: 5px; font: inherit; }
.feedback textarea { height: auto; padding: 10px 12px; resize: vertical; }
.feedback .trap { position: absolute; left: -9999px; width: 10%; }
.feedback .file { font-size: 13px; color: var(--muted); }
.feedback .btn { justify-self: start; }

/* Фильтр — в стиле карточки ведущего: тот же фон и скругления, без пунктира */
.filter { background: var(--card); border: 1px solid #ece2d8; border-radius: var(--radius); }
.fgroup { border-radius: 8px; }
.fgroup-title, .fgroup summary:hover .fgroup-title { border-bottom: 0; }
.fgroup summary:hover .fgroup-title { color: var(--text); }

/* Контакты в карточке каталога — строкой под ценами */
.hcard-contacts { padding: 0 10px 12px; }
.hcard-contacts.open { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* Лента: правый край размыт — видно, что дальше есть ещё фото */
.strip-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 70px; pointer-events: none; z-index: 1;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); mask-image: linear-gradient(to right, transparent, #000 70%); transition: opacity .2s; }
.strip-wrap.at-end::after { opacity: 0; }
.strip-wrap .nav-btn { z-index: 2; }

/* Анкета: над «Календарём занятости» отступ меньше, под заголовком — больше */
.side { gap: 6px; }
.side .panel:last-child { padding-top: 10px; }
.side .panel:last-child > b { display: block; margin-bottom: 8px; }

/* Видео */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 12px; padding: 10px 0 20px; }
.video-card { margin: 0; }
.video-card .video { width: 100%; }
.video-card .video .slide-video, .video-card .video iframe { width: 100%; height: 100%; }
.video-card figcaption { margin-top: 6px; }
.video-card figcaption a { text-decoration: none; font-weight: 500; }
.video-card figcaption a:hover { text-decoration: underline; }

/* Анкета: цены — сумма под подписью; у блока с ценами нет обводки (у календаря пока есть) */
.side .price-row { display: block; }
.side .price-row + .price-row { margin-top: 6px; }
.side .price-row span { display: block; font-size: 12px; color: #7f7f7f; }
.side .price-row b { font-size: 17px; font-weight: 700; }
.side .panel:first-child { border: 0; }

/* Лента: без размытия — правый край плавно уходит в прозрачность на 10 px */
.strip-wrap::after { display: none; }
.strip { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 10px), transparent); }
.strip-wrap.at-end .strip { -webkit-mask-image: none; mask-image: none; }

/* Вопрос — ответ: стрелка-галочка перед вопросом, без рамок */
details.qa { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
details.qa summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: none; }
details.qa summary::before { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(-45deg); transition: transform .15s; }
details.qa[open] summary::before { transform: translateY(-4px) rotate(45deg); }
details.qa > div { padding: 0 0 10px 17px; }

/* Фильтр без обводки */
.filter { border: 0; }

/* Видео не с YouTube: подпись сервиса; без обложки (VK, Kinescope, Яндекс Диск) — тёмная плитка */
a.slide-video { display: block; position: relative; }
.slide-video { background: #2a211e; }
.video-service { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; pointer-events: none; }
iframe.strip-item { width: 284px; height: 160px; border: 0; flex: none; }
.host-strip iframe.strip-item { width: 427px; height: 240px; }
@media (max-width: 620px) { .host-strip iframe.strip-item { width: 356px; max-width: 90vw; height: 200px; } }

/* Значки перед контактами ведущего */
.contact { display: inline-flex; align-items: center; gap: 8px; }
.contact svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact svg text { fill: var(--muted); stroke: none; font: 700 9px/1 Arial, sans-serif; }

/* Поиск в шапке, на странице поиска и 404 */
.header-search { display: flex; align-items: center; height: 36px; border: 1px solid #d9c9b9; border-radius: 999px; background: #fff; overflow: hidden; }
.header-search input { width: 150px; height: 100%; border: 0; padding: 0 4px 0 14px; font: inherit; background: none; outline: none; }
.header-search button { height: 100%; padding: 0 12px 0 6px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.header-search:focus-within { border-color: var(--brand-soft); }
.mobile-search { margin: 12px 0 4px; }
.mobile-search input, .page-search input { width: 100%; flex: 1; }
.page-search { max-width: 420px; margin: 4px 0 14px; height: 40px; }
@media (max-width: 899px) { .header-right > .header-search { display: none; } }
.footer p a { display: inline; }

/* Окна входа, регистрации, восстановления пароля */
dialog.modal { margin: 10vh auto auto; width: min(400px, calc(100vw - 32px)); border: 0; border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(20, 14, 12, .45); }
.auth { position: relative; display: grid; gap: 10px; padding: 24px 24px 20px; }
.auth h2 { margin: 0 0 6px; }
.auth input:not([type=hidden]):not([type=radio]):not([type=checkbox]) { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #aaa; border-radius: 5px; font: inherit; }
.auth .btn-primary { height: 40px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-x:hover { background: var(--chip); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; font-size: 13px; }
.form-error { color: #b3261e; margin: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.segmented label { text-align: center; padding: 6px 0; border-radius: 999px; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--brand); color: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; }

/* Блог, статьи, текстовые страницы */
.posts { display: grid; gap: 20px; padding: 6px 0 48px; }
.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 20px; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.post-image { background: var(--chip); }
.post-image img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }
.post-body { padding: 16px 20px 16px 0; }
.post-body h2 { font-size: 20px; margin-bottom: 4px; }
.post-body h2 a { text-decoration: none; }
.post-body p { margin: 8px 0 0; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } .post-body { padding: 0 16px 16px; } }
.prose { max-width: 760px; padding: 10px 0 48px; font-size: 15px; line-height: 1.65; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose h2 { margin-top: 1.4em; }
.prose iframe { max-width: 100%; }

/* 404 */
.notfound { padding: 48px 16px 64px; }
.notfound-code { font-size: 72px; line-height: 1; margin: 0 0 8px; color: var(--chip); font-weight: 700; }

/* Ответ ведущего на отзыв */
.review-answer { margin: 6px 0 4px 16px; padding: 8px 12px; border-left: 3px solid var(--chip); background: var(--card); border-radius: 0 8px 8px 0; }
.review-answer p { margin: 2px 0 0; }
.review .btn { margin-top: 4px; min-height: 30px; padding: 0 14px; font-size: 13px; }
.auth textarea, .cabinet-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #aaa; border-radius: 5px; font: inherit; resize: vertical; }

/* Личные кабинеты */
.cab-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cab-head h1 { margin: 0; }
.cab-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cab-draft { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #fff7e0; border: 1px solid #f0dca0; }
.tabs { display: flex; gap: 4px; margin: 20px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs [role=tab] { flex: none; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tabs [role=tab][aria-selected=true] { color: var(--text); border-bottom-color: var(--brand); }
.tabs small { color: var(--muted); }
.tab-panel { padding-bottom: 24px; }
.cab-box { border: 0; margin: 0 0 16px; padding: 16px 18px; background: var(--card); border-radius: var(--radius); min-width: 0; }
.cab-box legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: 18px; }
.cab-box legend + * { clear: both; }
.cab-box > .muted:first-of-type { margin-top: 0; }
.cab-grid { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.cab-avatar { display: grid; justify-items: center; gap: 10px; padding-top: 6px; }
.cab-avatar .avatar { display: grid; place-items: center; overflow: hidden; font-size: 32px; color: var(--muted); }
.cab-avatar .avatar img { width: 100%; height: 100%; object-fit: cover; }
.cab-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.cab-fields label, .cab-plain label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.cab-fields .wide { grid-column: 1 / -1; }
.cabinet-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]) { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #c9bcb2; border-radius: 6px; font: inherit; color: var(--text); background: #fff; }
.cabinet-form input[readonly] { background: var(--chip); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field > span { color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text); font-size: 14px; }
.choices.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.choices .check, .cab-fields .choices .check { display: flex; gap: 6px; color: var(--text); font-size: 14px; align-items: center; }
.choices .check input { margin: 0; }
.price-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-rows b { font-weight: 500; display: block; margin-bottom: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.geo-add { display: flex; gap: 8px; max-width: 560px; }
.places { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.places li { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.places button, .rep-del { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.places button:hover, .rep-del:hover { background: var(--chip); color: #b3261e; }
.rows { display: grid; gap: 10px; margin-bottom: 10px; }
.rep-row { position: relative; display: grid; gap: 6px; padding-right: 34px; }
.rep-row .rep-del { position: absolute; right: 0; top: 6px; }
.cab-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.cab-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--chip); cursor: grab; }
.cab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cab-photo.dragging { opacity: .4; }
.cab-photo button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 18px; line-height: 1; cursor: pointer; }
.cab-photo.add { display: grid; place-items: center; text-align: center; padding: 10px; border: 2px dashed #d3c4b6; background: #fff; color: var(--muted); cursor: pointer; }
.cab-photo.add:hover { border-color: var(--brand-soft); color: var(--text); }
.cab-months { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.cab-months button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; font: inherit; cursor: pointer; }
.cab-months button:hover:not(:disabled) { background: var(--chip); }
.cab-months button:disabled { color: #c4b8b1; cursor: default; }
.cab-months .busy button { background: var(--brand); color: #fff; }
.cab-months .today button { outline: 1px solid var(--brand); }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 12px 0; background: linear-gradient(transparent, #fff 30%); }
.cab-plain { padding: 0; max-width: 420px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.toast.error { background: #b3261e; }
@media (max-width: 640px) {
  .cab-grid, .price-rows { grid-template-columns: 1fr; }
  .cab-box { padding: 14px; }
}

/* Отступ между последней карточкой и подвалом (поиск) */
.page-end { height: 40px; }

/* Избранное в шапке: незакрашенная звезда; на телефоне — только звезда рядом с меню */
.header-fav { padding: 0 14px; font-weight: 400; color: var(--brand-soft); }
.header-fav svg { flex: none; }
@media (max-width: 900px) {
  .header-fav { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .header-fav span { display: none; }
}
.note-save { max-width: 760px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid #ece2d8; }

/* Аватарка в превью анкеты — по центру строки с именем: одинаково выходит над карточкой и заходит на ленту фото */
.hcard-head { position: relative; }
.hcard-avatar { top: 50%; transform: translateY(-50%); }

/* Кнопка «Фильтр» на телефоне: коричневый кружок — сколько отмечено */
.filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 500; }

/* Нижние кнопки анкеты (телефон) — выезжают, когда основная «Показать контакты» уходит вверх */
@media (max-width: 960px) {
  .cta-bar { transition: transform .2s; }
  .cta-bar:not(.shown) { transform: translateY(110%); }
}

/* «Все подборки» */
dialog.modal-wide { width: min(860px, calc(100vw - 32px)); }
.collections { position: relative; padding: 24px; }
.collections h2 { margin: 0 0 12px; }
.collections-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; }
.collections h3 { font-size: 15px; margin: 8px 0 4px; }
.collections a { display: block; padding: 4px 0; text-decoration: none; }
.collections a:hover { text-decoration: underline; }
@media (max-width: 620px) {
  dialog.modal-wide { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
}

/* Реклама между анкетами: ширина — как у анкеты, высота — по пропорциям картинки (4 : 1, на телефоне 2 : 1) */
.ad { position: relative; margin: 0; }
.ad a, .ad picture { display: block; }
.ad img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.ad small { position: absolute; right: 8px; top: 8px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .85); color: var(--muted); font-size: 11px; }

/* Поле соцсети в кабинете: начало ссылки — неизменяемой подписью перед ником */
.prefixed { display: flex; align-items: stretch; }
.prefixed > span { display: flex; align-items: center; padding: 0 8px; border: 1px solid #c9bcb2; border-right: 0; border-radius: 6px 0 0 6px; background: #f4efea; color: var(--muted); font-size: 13px; white-space: nowrap; }
.prefixed input { flex: 1; min-width: 0; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

/* Счётчик избранного в шапке — тем же золотым, что и отмеченная звезда */
.header-fav .fav-count { min-width: 18px; font-weight: 600; color: #e0a526; text-align: center; }
.header-fav [hidden] { display: none; }

/* Фильтр — с тенью, как карточки на «Горько» */
.filter { box-shadow: 0 3px 14px rgba(0, 0, 0, .14), 0 1px 4px rgba(0, 0, 0, .1); }
