/* Точечные кастомизации поверх Tailwind. */

/*
 * Знак белорусского рубля: официальный иконочный шрифт НБРБ
 * (nbrb.by/coinsbanknotes/byn-ico). Знака нет в Юникоде, поэтому он собирается
 * лигатурой из букв «BYN»: без шрифта на его месте остаётся читаемый код валюты.
 * unicode-range отдаёт шрифту только эти три буквы и код знака, так что цифры и
 * символы других валют (₽, $, €) продолжают рисоваться основным шрифтом.
 *
 * В файлах шрифта пересчитан em-квадрат (2048 → 1608) и вертикальные метрики:
 * у оригинала знак был высотой 0.571em против 0.727em у цифр Inter, а строка
 * заявлялась в 1.36em вместо 1.21em — из-за этого знак выглядел мелким, а спан
 * с ним оказывался выше соседнего текста и съезжал по базовой линии там, где
 * выравнивание идёт по центру (ценовые пины карты). Правка сделана в самом
 * шрифте, а не через size-adjust/ascent-override: WebKit эти дескрипторы
 * игнорирует, и в Safari знак снова уезжал вниз.
 */
@font-face {
  font-family: "nbrb";
  src: url("fonts/nbrb.woff2") format("woff2"),
       url("fonts/nbrb.woff") format("woff"),
       url("fonts/nbrb.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+E901, U+42, U+59, U+4E;
}

/*
 * .fp-currency-sign оборачивает сам символ валюты (PHP-хелпер currency_sign()),
 * .fp-money — строку «сумма + символ», которую ещё собирает JS целиком.
 * Глифы B, Y и N в шрифте пустые, поэтому классы вешаются только на такое
 * содержимое: попади под них посторонний латинский текст — его буквы исчезнут.
 * letter-spacing обязателен: при разрядке Chrome отключает лигатуры.
 */
.fp-currency-sign,
.fp-money {
  font-family: "nbrb", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "liga" 1;
  letter-spacing: normal;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* iOS Safari: поля <16px вызывают автозум при фокусе — единственный надёжный способ без maximum-scale=1 */
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px;
  }
}

:root {
  --accent: #6B4423;
  --accent-dark: #4A3728;
  --accent-rgb: 107, 68, 35;
  --brand-logo: #6B4423;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --ink: #222222;
  --muted: #717171;
  --line: #EBEBEB;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 6px 20px rgba(0,0,0,.10);
  --space-section: 5rem;
  --space-section-lg: 6.5rem;
  --radius-card: 1rem;
  --radius-hero: 1.5rem;
  /* Шкала заголовков: H1 страницы, подзаголовок раздела, секция главной. */
  --text-h1: 1.625rem;
  --text-h2: 1.375rem;
  --text-section: 1.25rem;
  --leading-hero: 1.08;
  /* Отрицательный трекинг — только для дисплейного кегля от 28px. В обычных
     заголовках он вреден: вариативный Inter сам подбирает просветы по кеглю. */
  --tracking-display: -0.01em;
  /* Уведомления */
  --notice-info-bg: rgba(var(--accent-rgb), 0.07);
  --notice-info-border: rgba(var(--accent-rgb), 0.18);
  --notice-info-ink: var(--accent-dark);
  --notice-info-icon: var(--accent);
  --notice-success-bg: rgba(74, 102, 54, 0.09);
  --notice-success-border: rgba(74, 102, 54, 0.22);
  --notice-success-ink: #3f5a32;
  --notice-success-icon: #4a6741;
  --notice-warning-bg: rgba(180, 120, 40, 0.1);
  --notice-warning-border: rgba(180, 120, 40, 0.28);
  --notice-warning-ink: #7a4e12;
  --notice-warning-icon: #a66f1f;
  --notice-error-bg: rgba(168, 58, 48, 0.08);
  --notice-error-border: rgba(168, 58, 48, 0.22);
  --notice-error-ink: #8f2f24;
  --notice-error-icon: #b0473a;
  --notice-neutral-bg: var(--bg-soft);
  --notice-neutral-border: var(--line);
  --notice-neutral-ink: var(--ink);
  --notice-neutral-icon: var(--muted);
  /* Выбранные дата и час в расписаниях: светлый акцент вместо плотной заливки */
  --pick-bg: rgba(var(--accent-rgb), 0.14);
  --pick-bg-hover: rgba(var(--accent-rgb), 0.2);
  --pick-ink: var(--accent-dark);
  /* Избранное (rose, как в фильтре каталога) */
  --fav: #e11d48;
  --fav-rgb: 225, 29, 72;
  --fav-soft: #fff1f2;
  --fav-soft-icon: #ffe4e6;
  /* Звёзды рейтинга */
  --star: #f59e0b;
}

/* На телефоне заголовки на ступень мельче — иначе занимают пол-экрана. */
@media (max-width: 639px) {
  :root {
    --text-h1: 1.375rem;
    --text-h2: 1.25rem;
  }
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

.accent-accent {
  accent-color: var(--accent);
}

/* Тёмная тема */
[data-theme="dark"] {
  /* Фирменный коричневый на тёмном фоне не читается — логотип осветляем. */
  --brand-logo: #C9956A;
  --bg: #15161A;
  --bg-soft: #1E1F24;
  --ink: #F5F5F7;
  --muted: #9CA0A8;
  --line: #2A2C32;
  --card: #1E1F24;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.25);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --notice-info-bg: rgba(var(--accent-rgb), 0.14);
  --notice-info-border: rgba(var(--accent-rgb), 0.32);
  --notice-info-ink: #e8c4a8;
  --notice-info-icon: #c9956a;
  --notice-success-bg: rgba(94, 140, 72, 0.14);
  --notice-success-border: rgba(94, 140, 72, 0.32);
  --notice-success-ink: #b8d4a8;
  --notice-success-icon: #8fbf78;
  --notice-warning-bg: rgba(200, 140, 50, 0.14);
  --notice-warning-border: rgba(200, 140, 50, 0.32);
  --notice-warning-ink: #f0d49a;
  --notice-warning-icon: #d4a84a;
  --notice-error-bg: rgba(200, 80, 68, 0.14);
  --notice-error-border: rgba(200, 80, 68, 0.32);
  --notice-error-ink: #f5b8ae;
  --notice-error-icon: #e07a6a;
  --notice-neutral-bg: var(--bg-soft);
  --notice-neutral-border: var(--line);
  --notice-neutral-ink: var(--ink);
  --notice-neutral-icon: var(--muted);
  /* На тёмном подложка плотнее, а текст светлее — иначе выбор не читается */
  --pick-bg: rgba(var(--accent-rgb), 0.28);
  --pick-bg-hover: rgba(var(--accent-rgb), 0.36);
  --pick-ink: #e8c4a8;
  --fav: #fb7185;
  --fav-soft: rgba(225, 29, 72, .12);
  --fav-soft-icon: rgba(225, 29, 72, .22);
  /* amber-400: на тёмном фоне читается лучше, чем amber-500 */
  --star: #fbbf24;
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .search-bar { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .btn-ghost { color: var(--ink); border-color: var(--ink); }
[data-theme="dark"] .btn-ghost:hover { background: var(--bg-soft); }
[data-theme="dark"] header.bg-white,
[data-theme="dark"] .bg-white { background: var(--card) !important; }
[data-theme="dark"] .border-line { border-color: var(--line) !important; }
[data-theme="dark"] .text-ink { color: var(--ink) !important; }
[data-theme="dark"] .text-muted { color: var(--muted) !important; }
[data-theme="dark"] .bg-gray-100 { background: var(--bg-soft) !important; }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--bg-soft) !important; color: var(--ink) !important;
  border-color: var(--line) !important;
}
[data-theme="dark"] .price-pin { background: var(--card); color: var(--ink); border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .leaflet-popup-content-wrapper { background: var(--card); color: var(--ink); }
[data-theme="dark"] .leaflet-popup-close-button { background: var(--bg-soft) !important; color: var(--ink) !important; }
[data-theme="dark"] .list-card-compact { background: var(--card); }
[data-theme="dark"] .list-card-compact .lcc-open { background: var(--accent); color: var(--ink); }
[data-theme="dark"] .leaflet-tile { filter: brightness(0.78) contrast(1.1) hue-rotate(180deg) invert(0.92); }

html { scroll-behavior: smooth; }
/*
 * Сглаживание — не косметика: без него WebKit рисует Inter субпиксельно, и текст
 * выглядит плотнее и грязнее, чем должен. Airbnb ставит те же два свойства.
 * font-optical-sizing работает вместе с вариативным Inter из head.blade.php.
 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .2s ease, color .2s ease;
}

/* Фирменный фокус для полей на утилити-классах (border-line) — убирает
   стандартную синюю обводку браузера. Компоненты со своим :focus
   (.auth-input, .owner-field, .search-bar…) не затрагиваются. */
input.border-line,
select.border-line,
textarea.border-line {
  transition: border-color .15s ease, box-shadow .15s ease;
}
input.border-line:focus,
select.border-line:focus,
textarea.border-line:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}
input.border-line.is-field-error:focus,
select.border-line.is-field-error:focus,
textarea.border-line.is-field-error:focus {
  border-color: var(--notice-error-border);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--notice-error-border) 35%, transparent);
}

.req { color: var(--accent); }

/* Скрытие скроллбара у горизонтальных лент */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Кастомный скролл для карточек */
.scroll-x { scroll-snap-type: x mandatory; }
.scroll-x > * { scroll-snap-align: start; }

/* Горизонтальные ленты залов на главной */
.home-scroll-section {
  overflow-x: clip;
  min-width: 0;
  max-width: 100%;
}
.home-hall-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(280px, calc(100vw - 3rem));
  gap: 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
@media (min-width: 640px) {
  .home-hall-row {
    grid-auto-columns: min(280px, 38vw);
  }
}
@media (min-width: 1024px) {
  .home-hall-row {
    grid-auto-columns: min(280px, calc((100vw - 5rem - 60px) / 4));
  }
}
@media (min-width: 1440px) {
  .home-hall-row {
    grid-auto-columns: min(280px, calc((min(100vw, 1440px) - 5rem - 60px) / 4));
  }
}
.home-hall-row::-webkit-scrollbar { height: 4px; }
.home-hall-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.home-hall-row__item {
  scroll-snap-align: start;
  min-width: 0;
  overflow: hidden;
}
.home-hall-row__item .hall-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Обёртка горизонтальной ленты со стрелками (главная) */
.scroll-row {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.scroll-row::before,
.scroll-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 48px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .2s ease;
}
.scroll-row::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.scroll-row::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.scroll-row.is-at-start::before { opacity: 0; }
.scroll-row.is-at-end::after { opacity: 0; }
@media (max-width: 767px) {
  /* На телефоне листают свайпом — градиенты только перекрывают текст карточек */
  .scroll-row::before,
  .scroll-row::after {
    display: none;
  }
}
.scroll-row__btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: opacity .2s ease, box-shadow .12s ease, border-color .12s ease;
}
.scroll-row__btn:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.scroll-row__btn--prev { left: 8px; }
.scroll-row__btn--next { right: 8px; }
.scroll-row__btn.is-disabled {
  opacity: 0 !important;
  pointer-events: none;
}
@media (min-width: 768px) {
  .scroll-row__btn { display: flex; }
  .scroll-row .home-hall-row,
  .scroll-row .home-studio-row {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .scroll-row .home-hall-row::-webkit-scrollbar,
  .scroll-row .home-studio-row::-webkit-scrollbar { display: none; }
}

/* Карточка-студия hover */
.studio-card { transition: transform .25s ease; }
.studio-card:hover .studio-card__img { transform: scale(1.04); }
.studio-card__img { transition: transform .5s ease; }

/* Категории-пилюли */
.cat-nav {
  border-top: 1px solid var(--line);
}
.cat-nav:not(.cat-nav--inline) .cat-nav__track {
  padding: 10px 0;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 4px; color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap; cursor: pointer;
  font-size: 12px; font-weight: 500;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cat-pill:hover { color: var(--ink); border-color: var(--line); }
.cat-pill.active { color: var(--ink); border-color: var(--ink); }
.cat-nav--home {
  border-top: none;
  background: transparent;
}
.cat-nav--inline {
  margin: 0;
  padding: 0;
  border-top: none;
}
.cat-nav--inline .cat-nav__track {
  padding: 2px 0 4px;
}
.header--home .cat-nav--home {
  border-top: none;
}
.cat-nav--home .cat-pill,
.cat-nav--inline .cat-pill {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.cat-nav--home .cat-pill:hover,
.cat-nav--inline .cat-pill:hover {
  color: var(--ink);
  background: var(--bg-soft);
  border-color: var(--ink);
}
.cat-nav--home .cat-pill.active,
.cat-nav--inline .cat-pill.active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}
/* Главная и каталог: чипы без заливки, с обводкой */
.cat-nav--home.cat-nav--inline .cat-pill {
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.cat-nav--home.cat-nav--inline .cat-pill:hover {
  background: var(--line);
  border-color: var(--line);
}
.cat-nav--home.cat-nav--inline .cat-pill.active {
  color: var(--ink);
  background: var(--line);
  border: 1px solid var(--line);
  font-weight: 600;
}
.cat-nav--home.cat-nav--inline .cat-pill.active:hover {
  background: var(--line);
  border-color: var(--line);
}
@media (max-width: 767px) {
  .cat-pill {
    padding: 6px 2px;
    gap: 6px;
    font-size: 11px;
  }
  .cat-nav--home .cat-pill,
  .cat-nav--inline .cat-pill {
    padding: 6px 12px;
    font-size: 12px;
  }
  .cat-nav--home.cat-nav--inline .cat-pill {
    padding: 7px 13px;
    font-size: 13px;
  }
}

/* === Главная: photo-forward UX === */
.header--home {
  border-bottom: none;
  box-shadow: none;
}
.header--home + * .home-hero,
.header--home ~ * .home-hero {
  margin-top: 0;
}
.header--home .border-t.border-line,
.header--home .cat-nav {
  border-top-color: transparent;
}

.home-hero {
  background: var(--bg);
}

/* Hero copy — связка заголовка, города и подзаголовка */
/* Текст выровнен по верхнему краю коллажа: заголовок и первое фото
   начинаются на одной горизонтали, колонки читаются как одна сетка. */
.hero-copy {
  align-self: start;
  /* Колонка грида по умолчанию не уже своего содержимого, поэтому лента дней
     в выборе даты растягивала первый экран за пределы экрана телефона. */
  min-width: 0;
}
/* Заголовок намеренно сдержанный: на первом экране главное действие — поиск,
   поэтому H1 работает ориентиром, а не акцентом. */
.hero-title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}
.hero-subtitle {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-subtitle__line {
  display: block;
}

/* Hero perks — под формой выбора даты */
.hero-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 3.25rem 0 0;
  gap: 16px;
}
.hero-perk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.hero-perk__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.hero-perk__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}
[data-theme="dark"] .hero-perk__icon {
  color: var(--ink);
}

.hero-catalog-link {
  margin: 1.75rem 0 0;
}
.hero-catalog-link__a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease, gap .15s ease;
}
.hero-catalog-link__a:hover {
  color: var(--accent-dark);
  gap: 8px;
}
.hero-catalog-link__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
[data-theme="dark"] .hero-catalog-link__a {
  color: #c9956a;
}
[data-theme="dark"] .hero-catalog-link__a:hover {
  color: #dbad7f;
}

@media (max-width: 640px) {
  .hero-subtitle {
    margin-top: 0.75rem;
    font-size: 1rem;
  }
  .hero-subtitle__line {
    display: inline;
  }
  .hero-catalog-link {
    margin-top: 1.375rem;
  }
  .hero-perks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
    margin-top: 2.5rem;
  }
  .hero-perk {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-size: 11px;
    line-height: 1.2;
  }
  .hero-perk__icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Hero collage — ровная сетка 2×2 */
.hero-collage {
  display: grid;
  gap: 12px;
  width: 100%;
  min-height: 280px;
}
.hero-collage__main,
.hero-collage__side-top,
.hero-collage__side-bottom {
  position: relative;
  display: block;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.hero-collage__img,
.hero-collage img,
.hero-collage .fp-img-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-collage__main:hover .hero-collage__img,
.hero-collage__side-top:hover .hero-collage__img,
.hero-collage__side-bottom:hover .hero-collage__img,
.hero-collage__main:hover img,
.hero-collage__side-top:hover img,
.hero-collage__side-bottom:hover img {
  transform: scale(1.05);
}
@media (min-width: 1024px) {
  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 100%;
    /* Высота привязана к вьюпорту: на ноутбуке (~620px) коллаж целиком
       попадает в первый экран и остаётся видна кромка следующей секции. */
    min-height: clamp(360px, 46vh, 440px);
    max-height: 520px;
  }
  .hero-collage__main {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .hero-collage__side-top {
    grid-column: 2;
    grid-row: 1;
  }
  .hero-collage__side-bottom {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (max-width: 1023px) {
  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    max-height: 220px;
    min-height: 0;
  }
  .hero-collage__main {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 220px;
  }
  .hero-collage__side-top,
  .hero-collage__side-bottom {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero-collage {
    display: none;
  }
}

/* Поиск по дате на первом экране: одна строка-«пилюля», как у Airbnb и
   Островка — две ячейки «подпись / значение» и круглая кнопка поиска в
   правом торце. Рамка и тень одни на всю строку, ячейки без собственной
   оболочки: так строка читается одним объектом, а не набором блоков. */
.hero-when {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  margin-top: 1.5rem;
  max-width: 34rem;
  padding-right: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card, #fff);
  box-shadow: 0 4px 16px rgba(16, 24, 40, .06);
  transition: box-shadow .2s ease;
}
.hero-when:hover {
  box-shadow: 0 6px 20px rgba(16, 24, 40, .1);
}
.hero-when__cell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}
/* Дата длиннее времени («Сегодня, 10 сен, чт» против «Любое»). */
.hero-when__cell--date {
  flex-grow: 1.3;
}
/* Разделитель ячеек — короткая линия, а не на всю высоту: мягче. */
.hero-when__cell + .hero-when__cell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 28px;
  transform: translateY(-50%);
  background: var(--line);
}
/* Ячейка целиком — кнопка: клик в любое место раскрывает выбор. */
.hero-when__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.hero-when__field:hover,
.hero-when__cell.is-open .hero-when__field {
  background: var(--bg-soft);
}
.hero-when__field:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.hero-when__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
}
.hero-when__value {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-when__submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: 4px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.hero-when__submit:hover {
  background: var(--accent-dark);
}
.hero-when__submit:active {
  transform: scale(.94);
}
.hero-when__submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero-when__submit-icon {
  width: 18px;
  height: 18px;
}

/* Всплывающие слои под ячейками: календарь и список частей суток. Календарь
   рисуется классами фильтра каталога (.dp-pop__head, .mini-cal), чтобы
   выглядеть одинаково на главной и в каталоге. */
.hero-when__pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--card, #fff);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .18), 0 0 0 1px rgba(16, 24, 40, .05);
}
.hero-when__pop[hidden] {
  display: none;
}
.hero-when__pop--cal {
  width: min(316px, calc(100vw - 48px));
}
.hero-when__pop--cal .dp-pop__head {
  margin-bottom: 10px;
}
.hero-when__pop--cal .dp-nav {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--bg-soft);
}
.hero-when__pop--cal .mc-cell {
  font-size: 13px;
}
/* Точка под числом — загруженность конкретного зала; на главной зала ещё нет. */
.hero-when__pop--cal .mc-cell::after {
  display: none;
}
.hero-when__pop--menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100%;
  padding: 6px;
}
.hero-when__opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s ease;
}
.hero-when__opt:hover {
  background: var(--bg-soft);
}
.hero-when__opt.is-active {
  background: color-mix(in srgb, var(--ink) 8%, var(--bg));
  color: var(--ink);
  font-weight: 600;
}
.hero-when__opt-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.hero-when__opt.is-active .hero-when__opt-hint {
  color: inherit;
  opacity: .8;
}
[data-theme="dark"] .hero-when {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .hero-when__pop {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (max-width: 639px) {
  .hero-when {
    height: 56px;
    margin-top: 1.25rem;
    padding-right: 6px;
  }
  .hero-when__field {
    padding: 0 16px;
  }
  .hero-when__submit {
    width: 44px;
    height: 44px;
  }
}
/* На самых узких телефонах «Сегодня, 10 сен» иначе не помещается. */
@media (max-width: 359px) {
  .hero-when__value {
    font-size: 13px;
  }
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.trust-strip--home {
  border: none;
  background: transparent;
}
.trust-strip--home > div {
  padding-top: 0;
}

/* Hero promo — компактный кликабельный pill под hero (без рамки) */
.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 9px 20px 9px 9px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .06);
  transition: background .15s ease;
}
.hero-promo:hover {
  background: rgba(var(--accent-rgb), .11);
}
.hero-promo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}
.hero-promo__text {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-promo__subtitle {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-promo__arrow {
  color: var(--accent);
  transition: transform .15s ease;
}
.hero-promo:hover .hero-promo__arrow {
  transform: translateX(3px);
}
[data-theme="dark"] .hero-promo {
  background: rgba(var(--accent-rgb), .13);
}
[data-theme="dark"] .hero-promo:hover {
  background: rgba(var(--accent-rgb), .2);
}
@media (max-width: 480px) {
  .hero-promo__subtitle {
    display: none;
  }
}

/* Дополнительные услуги — чистый список с ценой-пилюлей */
.hall-services {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 480px;
}
.hall-services__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}
.hall-services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.hall-services__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hall-services__name {
  font-size: 15px;
  color: var(--ink);
}
.hall-services__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.formatted-text__p {
  margin: 0;
}
.formatted-text__p + .formatted-text__p {
  margin-top: 1em;
}
.expandable-text {
  --expandable-lines: 7;
  --expandable-line-height: 1.75rem;
}
.expandable-text__clip {
  position: relative;
}
.expandable-text.is-collapsed .expandable-text__clip {
  max-height: calc(var(--expandable-lines) * var(--expandable-line-height));
  overflow: hidden;
}
.expandable-text__fade {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 88%);
}
.expandable-text.is-collapsed .expandable-text__fade {
  display: block;
}
.expandable-text__toggle {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.expandable-text__toggle:hover {
  color: var(--accent-dark);
}
[data-theme="dark"] .expandable-text__toggle:hover {
  color: #e8c4a8;
}
.expandable-text.is-expanded .expandable-text__fade,
.expandable-text.is-expanded .expandable-text__toggle {
  display: none;
}
.expandable-text.is-expanded .expandable-text__clip {
  max-height: none;
  overflow: visible;
}
.hall-services__price {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  margin-top: 1px;
}
.hall-services__unit {
  font-weight: 400;
  color: var(--muted);
}

/* Чипы типов света — плоская заливка без обводки */
.light-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .07);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.light-chip svg {
  color: var(--accent);
  flex-shrink: 0;
}
[data-theme="dark"] .light-chip {
  background: rgba(var(--accent-rgb), .16);
  color: #e8c4a8;
}

/* Характеристики помещения — список с уточнением под названием */
.hall-amenity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hall-amenity__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--muted);
}
.hall-amenity__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hall-amenity__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.hall-amenity__note {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* Адрес под картой (без подложки) */
.hall-location-card {
  margin-top: 14px;
}
#sec-location .map-card ~ .hall-location-card {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.studio-address {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.studio-address__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-address__main.hall-amenity {
  gap: 11px;
}
.studio-address__main .hall-amenity__icon {
  margin-top: 3px;
}
.studio-address__metro-wrap {
  margin-top: 6px;
}
.studio-address__metro-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.studio-address__metro-chip-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--metro-line, #94a3b8);
}
.studio-address__line {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.studio-address__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
/* Удобства студии на странице зала — в ряд */
.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.amenity-chip__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}
.amenity-chip__name {
  line-height: 1.3;
}
.amenity-chip__mark {
  margin-left: 1px;
  color: var(--muted);
  font-weight: 600;
}
.amenity-chip-notes {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.amenity-chip-notes__item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.amenity-chip-notes__mark {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--muted);
}
.amenity-chip-notes__label {
  font-weight: 500;
  color: var(--ink);
}
.amenity-chip-notes__label::after {
  content: ' — ';
  font-weight: 400;
  color: var(--muted);
}

/* Предметы интерьера на странице зала — плитки с иконкой */
.interior-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.interior-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 0;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--bg-soft);
  text-align: center;
}
.interior-item__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--muted);
}
.interior-item__name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.interior-item__mark {
  margin-left: 1px;
  color: var(--muted);
  font-weight: 600;
}

/* Теги студии — плоские пилюли без обводки */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.tag-chip:hover { background: var(--line); }
[data-theme="dark"] .tag-chip:hover { background: rgba(255, 255, 255, .1); }

/* Шапка страницы зала — рейтинг, студия, адрес под заголовком */
.hall-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
/* Рейтинг студии — в мета-строке (страница студии) или рядом с названием. */
.hall-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.hall-hero__rating svg {
  width: 16px;
  height: 16px;
  color: var(--star);
  flex-shrink: 0;
}
.hall-hero__rating b { font-weight: 700; }

/* Страница зала: студия надзаголовком над названием — «Фотостудия Y · ★». */
.hall-hero__studio-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-bottom: 4px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}
.hall-hero__studio-line .studio-verified--page {
  width: 13px;
  height: 13px;
}
.hall-hero__studio-line .hall-hero__rating {
  gap: 3px;
  font-size: inherit;
  font-weight: inherit;
}
.hall-hero__studio-line .hall-hero__rating svg {
  width: 12px;
  height: 12px;
}
.hall-hero__studio-line .hall-hero__rating b { font-weight: 600; }
.hall-hero__studio {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: var(--muted);
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.hall-hero__studio:hover { color: var(--ink); text-decoration: underline; }

.hall-hero__studio-line--below-title {
  margin-top: 8px;
  margin-bottom: 0;
}
.hall-hero__studio-line--below-title:has(+ .hall-hero__address-line),
.hall-hero__studio-line--below-title:has(+ .hall-hero__count-line) {
  margin-bottom: 2px;
}
.hall-hero__address-line + .hall-hero__count-line {
  margin-top: 2px;
}
.hall-hero__count-line {
  display: block;
  margin: 6px 0 0;
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
}
.hall-hero__address-line {
  display: block;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--muted);
  text-underline-offset: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s ease;
}
.hall-hero__address-line:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hall-hero__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  min-width: 0;
}
.hall-hero__title .hall-hero__studio-label {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.hall-hero__title .hall-hero__studio-name {
  min-width: 0;
  font-weight: inherit;
}
.hall-hero__studio-label,
.hall-hero__studio-name {
  color: inherit;
  font-weight: inherit;
}

.hall-hero__count {
  color: var(--muted);
  white-space: nowrap;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
.hall-hero__count:hover { color: var(--ink); text-decoration: underline; }

.hall-hero__address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
  color: var(--muted);
  transition: color .15s ease;
}
.hall-hero__address svg { flex-shrink: 0; }
.hall-hero__address span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-underline-offset: 2px;
}
.hall-hero__address:hover { color: var(--ink); }
.hall-hero__address:hover span { text-decoration: underline; }

.hall-hero__dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted);
  opacity: .5;
  flex-shrink: 0;
}
/* На телефоне: рейтинг и студия рядом, адрес — отдельной строкой на всю ширину */
@media (max-width: 640px) {
  .hall-hero__meta { gap: 4px 8px; }
  .hall-hero__address {
    flex: 1 0 100%;
    margin-top: 2px;
  }
  /* Скрываем точку-разделитель перед адресом, когда он уходит на новую строку */
  .hall-hero__dot:has(+ .hall-hero__address) { display: none; }
}

/* Карточки отзывов — компактная лента, одна карточка в строку */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 42rem;
  margin-top: 1.5rem;
}
.reviews-feed__toggle {
  margin-top: 1rem;
}
.reviews-feed__empty {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--muted);
}
.review-card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
}
.review-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
}
.review-card__meta {
  min-width: 0;
  flex: 1 1 auto;
}
.review-card__author {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.review-card__date {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}
.review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.review-card__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--muted) 15%, var(--ink));
}
.review-card__replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.review-card__reply {
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-soft) 80%, var(--bg));
}
.review-card__reply--staff {
  background: color-mix(in srgb, var(--muted) 6%, var(--bg));
}
.review-card__reply-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}
.review-card__reply-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--muted) 25%, var(--ink));
}
[data-theme="dark"] .review-card {
  background: color-mix(in srgb, var(--bg-soft) 35%, var(--bg));
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
}
[data-theme="dark"] .review-card__reply {
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}
[data-theme="dark"] .review-card__reply--staff {
  background: color-mix(in srgb, var(--muted) 10%, transparent);
}

/* Карточки вопросов — в том же стиле, что отзывы */
.questions-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 42rem;
}
.questions-feed__empty {
  font-size: 14px;
  color: var(--muted);
}
.question-card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
}
.question-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.question-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: color-mix(in srgb, var(--muted) 20%, var(--ink));
}
.question-card__meta {
  min-width: 0;
  flex: 1 1 auto;
}
.question-card__author {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.question-card__date {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}
.question-card__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--muted) 15%, var(--ink));
}
.question-card__answer {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-soft) 80%, var(--bg));
}
.question-card__answer--staff {
  background: color-mix(in srgb, var(--muted) 6%, var(--bg));
}
.question-card__answer-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}
.question-card__answer-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--muted) 25%, var(--ink));
}
[data-theme="dark"] .question-card {
  background: color-mix(in srgb, var(--bg-soft) 35%, var(--bg));
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
}
[data-theme="dark"] .question-card__answer {
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}
[data-theme="dark"] .question-card__answer--staff {
  background: color-mix(in srgb, var(--muted) 10%, transparent);
}
.trust-strip .promo-inline {
  margin-left: auto;
}
@media (max-width: 767px) {
  .trust-strip .promo-inline {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

.promo-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .25);
  background: rgba(var(--accent-rgb), .06);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  transition: background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.promo-inline:hover {
  background: rgba(var(--accent-rgb), .12);
  border-color: rgba(var(--accent-rgb), .4);
}

.home-section {
  padding-bottom: clamp(3rem, 5vw, 4rem);
}
.home-section:first-of-type {
  padding-top: clamp(3rem, 5vw, 4rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.section-head__title {
  font-size: var(--text-section);
  font-weight: 500;
  line-height: 1.2;
}
/* Заголовок страницы и подзаголовок раздела — одна шкала на весь сайт. */
.page-title {
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.2;
}
.section-title {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.2;
}
.section-head__link {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .section-head__link { display: inline-flex; }
}

/* Главная: компактные ссылки «↗» в шапках секций */
.home-section .section-head__link {
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.home-section .section-head__link svg {
  width: 12px;
  height: 12px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.home-section .section-head__link:hover {
  color: var(--accent);
}
.home-section .section-head__link:hover svg {
  transform: translate(2px, -2px);
}

/* Style bento */
.style-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (max-width: 639px) {
  .style-bento {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .style-bento__item {
    flex: 0 0 min(75vw, 280px);
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 640px) {
  .style-bento {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.style-bento__item {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 4 / 3;
}
@media (min-width: 640px) {
  .style-bento__item { min-height: 220px; }
}
.style-bento__img,
.style-bento__item .fp-img-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.style-bento__item:hover .style-bento__img,
.style-bento__item:hover .fp-img-fallback {
  transform: scale(1.04);
}
.style-bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
  pointer-events: none;
}
.style-bento__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff;
  z-index: 1;
}

.home-how__card {
  background: var(--card);
  border-radius: var(--radius-hero);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.home-how__step {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(var(--accent-rgb), .18);
  letter-spacing: -0.04em;
}
.home-how__step--muted {
  font-size: 1.75rem;
  color: var(--muted);
  opacity: .35;
}
.home-how {
  background: var(--bg-soft);
}

.section-head__subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}
.section-head--center {
  display: block;
  text-align: center;
  margin-bottom: 2.25rem;
}
.section-head--center .section-head__subtitle {
  max-width: 28rem;
  margin-inline: auto;
}

/* --- Home: популярные залы (лента карточек каталога) --- */
.home-popular-board {
  min-width: 0;
  max-width: 100%;
}
.home-popular-board--grid-md .home-hall-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: unset;
  overflow-x: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
  gap: 16px;
}
.home-popular-board--grid-md .scroll-row__btn {
  display: none;
}
.home-popular-board--grid-md .scroll-row::before,
.home-popular-board--grid-md .scroll-row::after {
  display: none;
}
@media (min-width: 768px) {
  .home-popular-board--grid-md .home-hall-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }
  .home-popular-board--grid-md .hall-card > .relative.rounded-2xl {
    aspect-ratio: 4 / 3;
    border-radius: 11px;
  }
  .home-popular-board--grid-md .hall-card .hc-body {
    margin-top: 0.4375rem;
    gap: 3px;
  }
  .home-popular-board--grid-md .hall-card .hc-catalog-studio {
    font-size: 13px;
  }
  .home-popular-board--grid-md .hall-card .hc-hall-sub {
    font-size: 13px;
  }
  .home-popular-board--grid-md .hall-card .hc-hall-sub__label {
    font-size: 13px;
  }
  .home-popular-board--grid-md .hall-card .hc-rating {
    font-size: 12px;
  }
  .home-popular-board--grid-md .hall-card .hc-rating .hc-star {
    width: 11px;
    height: 11px;
  }
  .home-popular-board--grid-md .hall-card .hc-price-value {
    font-size: 13px;
  }
  .home-popular-board--grid-md .hall-card .hc-price-unit {
    font-size: 11px;
  }
  .home-popular-board--grid-md .hall-card .like-floating svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .home-popular-board--grid-md .hall-card .card-badge,
  .home-popular-board--grid-md .hall-card .status-badge {
    font-size: 11px;
  }
}

.home-popular-foot {
  margin-top: 1.25rem;
}
.home-popular-foot__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
@media (min-width: 768px) {
  .home-popular-foot {
    display: none;
  }
}

/* --- Home: часто ищут (editorial-сетка: лид-колонка + типографика, без плиток) --- */
.home-qp {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-hero);
  background: var(--bg-soft);
}
@media (min-width: 1024px) {
  .home-qp {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
  }
}
.home-qp__lead-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ink);
}
.home-qp__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--text-section);
  font-weight: 500;
  line-height: 1.2;
}
.home-qp__text {
  margin-top: 0.625rem;
  max-width: 19rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.home-qp__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.home-qp__more { margin-top: 1rem; }
.home-qp__more svg {
  width: 12px;
  height: 12px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.home-qp__more:hover { color: var(--accent); }
.home-qp__more:hover svg { transform: translate(2px, -2px); }

.home-quick-picks {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
@media (min-width: 640px) {
  .home-quick-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (min-width: 1024px) {
  .home-quick-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.home-quick-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--ink) 3%, var(--bg));
  transition: background .2s ease, transform .2s ease;
}
.home-quick-pick:hover {
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
}
.home-quick-pick:focus-visible,
.home-qp__more:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-soft), 0 0 0 4px rgba(var(--accent-rgb), .45);
}
.home-quick-pick__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  transition: background .2s ease;
}
.home-quick-pick:hover .home-quick-pick__icon-wrap {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
}
.home-quick-pick__icon {
  width: 18px;
  height: 18px;
  color: var(--ink);
  transition: color .2s ease;
}
.home-quick-pick:hover .home-quick-pick__icon {
  color: var(--accent);
}
.home-quick-pick__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.home-quick-pick__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.home-quick-pick:hover .home-quick-pick__label {
  color: var(--accent);
}
.home-quick-pick__count {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.home-quick-pick__arrow {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
.home-quick-pick:hover .home-quick-pick__arrow {
  opacity: 1;
  transform: none;
  color: var(--accent);
}
[data-theme="dark"] .home-quick-pick {
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
}
[data-theme="dark"] .home-quick-pick:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

/* --- Home: студии (горизонтальная лента, как у залов) --- */
.home-studio-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, calc(100vw - 3rem));
  gap: 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
@media (min-width: 640px) {
  .home-studio-row {
    grid-auto-columns: min(240px, 44vw);
  }
}
@media (min-width: 1024px) {
  .home-studio-row {
    grid-auto-columns: min(260px, calc((100vw - 5rem - 72px) / 3.5));
  }
}
@media (min-width: 1440px) {
  .home-studio-row {
    grid-auto-columns: min(260px, calc((min(100vw, 1440px) - 5rem - 72px) / 4));
  }
}
.home-studio-row::-webkit-scrollbar { height: 4px; }
.home-studio-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.home-studio-row__item {
  scroll-snap-align: start;
  min-width: 0;
  overflow: hidden;
}
.home-studio-row__item .home-studio-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.home-studio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.home-studio-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  overflow: hidden;
}
.home-studio-card__avatar {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
}
.home-studio-card__img,
.home-studio-card__media .fp-img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.home-studio-card:hover .home-studio-card__img,
.home-studio-card:hover .fp-img-fallback {
  transform: scale(1.04);
}
.home-studio-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 0;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.home-studio-card__rating svg {
  width: 12px;
  height: 12px;
  color: var(--star);
}
.home-studio-card__body {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  flex: 1;
}
.home-studio-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  transition: color .2s ease;
}
.home-studio-card:hover .home-studio-card__name {
  color: var(--accent);
}
.home-studio-card__meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.home-studio-card__address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
}
.home-studio-card__halls {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* --- Home: где искать (текстовые ссылки без подложки) --- */
.home-where-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .home-where-layout--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2.5rem 0;
    align-items: start;
  }
  .home-where-layout--split .home-where-group--districts {
    padding-right: clamp(2rem, 4vw, 3.5rem);
  }
  .home-where-layout--split .home-where-group--metro {
    border-left: 1px solid var(--line);
    padding-left: clamp(2rem, 4vw, 3.5rem);
  }
}
.home-where-group__title {
  margin: 0 0 0.875rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-where-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}
.home-where-metro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.home-where-metro-line {
  --line-color: var(--accent);
}
.home-where-metro-line__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.home-where-metro-line__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--line-color);
}
.home-where-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  font-size: 14.5px;
  line-height: 1.3;
  transition: color .18s ease;
}
.home-where-chip:hover {
  color: var(--accent);
}
.home-where-chip__icon {
  display: none;
}
.home-where-chip--metro .home-where-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  background: var(--line-color, var(--accent));
}
.home-where-chip__name {
  font-weight: 600;}
.home-where-chip__count {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
  transform: translateY(-0.45em);
}
.home-where .section-head__link {
  display: inline-flex;
}

[data-theme="dark"] .home-qp {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-soft));
}

/* --- Home: FAQ --- */
.home-faq-section {
  padding-top: clamp(3rem, 6vw, var(--space-section));
}
.home-faq {
  max-width: 760px;
  margin-inline: auto;
}
.home-faq__item {
  border-bottom: 1px solid var(--line);
}
.home-faq__item:first-child {
  border-top: 1px solid var(--line);
}
.home-faq__question {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  position: relative;
}
.home-faq__question::-webkit-details-marker { display: none; }
.home-faq__question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 20px;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
}
.home-faq__item[open] .home-faq__question::after {
  content: '−';
}
.home-faq__answer {
  margin: 0 0 20px;
  padding-right: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* --- Home: финальный CTA --- */
.home-cta {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .07) 0%, var(--bg-soft) 48%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
.home-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .home-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}
.home-cta__title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}
.home-cta__text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  max-width: 36rem;
}
.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.fp-img-fallback--hero {
  min-height: 100%;
}
[data-theme="dark"] .trust-strip { background: var(--bg-soft); }
[data-theme="dark"] .trust-chip { background: var(--card); }
[data-theme="dark"] .promo-inline {
  background: rgba(var(--accent-rgb), .12);
  border-color: rgba(var(--accent-rgb), .35);
}
[data-theme="dark"] .home-how__card { background: var(--card); }
[data-theme="dark"] .home-how__step { color: rgba(var(--accent-rgb), .25); }
[data-theme="dark"] .cat-nav--home .cat-pill:hover,
[data-theme="dark"] .cat-nav--inline .cat-pill:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
}
[data-theme="dark"] .cat-nav--home.cat-nav--inline .cat-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
[data-theme="dark"] .cat-nav--home.cat-nav--inline .cat-pill:hover,
[data-theme="dark"] .cat-nav--home.cat-nav--inline .cat-pill.active,
[data-theme="dark"] .cat-nav--home.cat-nav--inline .cat-pill.active:hover {
  background: var(--line);
  border-color: var(--line);
}
[data-theme="dark"] .cat-nav--catalog.cat-nav--inline .cat-pill.active,
[data-theme="dark"] .cat-nav--catalog.cat-nav--inline .cat-pill.active:hover {
  color: var(--ink);
  background: var(--line);
  border: 1px solid var(--line);
}
[data-theme="dark"] .cat-nav--home .cat-pill.active,
[data-theme="dark"] .cat-nav--inline .cat-pill.active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
[data-theme="dark"] .scroll-row__btn { background: var(--card); }

/* Поисковая панель */
.search-bar {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 8px 8px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
}
.search-bar:hover { box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08); }
.search-bar__cell { padding: 8px 16px; }
.search-bar__cell + .search-bar__cell { border-left: 1px solid var(--line); }
.search-bar__btn {
  background: var(--accent); color: white;
  border-radius: 999px; padding: 12px 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; transition: background .15s ease;
}
.search-bar__btn:hover { background: var(--accent-dark); }

.brand-logo__tagline {
  margin-top: -0.0625rem;
  font-size: 0.5625rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}
@media (min-width: 640px) {
  .brand-logo__tagline {
    margin-top: -0.125rem;
    font-size: 0.625rem;
  }
}

/* Компактный поиск в шапке (desktop) */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 5px 7px 5px 13px;
  box-shadow: none;
  transition: background .12s ease;
}
.header-search:focus-within {
  background: var(--card);
  box-shadow: none;
}
.header-search.typeahead-wrap {
  position: relative;
  z-index: 1;
}
.header-search.typeahead-wrap:has(.typeahead-list.is-open) {
  z-index: 70;
  background: var(--card);
  border-bottom-color: transparent;
  border-radius: 16px 16px 0 0;
}
.header-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  text-overflow: ellipsis;
}
.header-search__input::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.header-search__input::-webkit-search-cancel-button { display: none; }
.header-search__btn {
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, transform .12s ease;
}
.header-search__btn:hover { color: var(--ink); }
.header-search__btn:active { transform: scale(.94); }
[data-theme="dark"] .header-search {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
[data-theme="dark"] .header-search:focus-within,
[data-theme="dark"] .header-search.typeahead-wrap:has(.typeahead-list.is-open) {
  background: var(--card);
}

/* Поиск на телефоне: экран целиком — поле сверху, подсказки строками под ним */
.msearch {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--card);
}
.msearch[hidden] { display: none; }
/* На планшете и шире поле живёт в самой шапке — оверлей прячем даже открытым */
@media (min-width: 640px) {
  .msearch { display: none; }
}
.msearch__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.msearch__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--line);
}
.msearch__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  /* 16px — иначе iOS зумит страницу при фокусе */
  font-size: 16px;
  color: var(--ink);
  padding: 6px 0;
}
.msearch__input::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.msearch__input::-webkit-search-cancel-button { display: none; }
.msearch__close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.msearch__close:hover { background: var(--line); }

/* Подсказки внутри оверлея — не выпадашка, а обычный список на всю высоту */
.msearch .typeahead-list {
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 4px 8px 24px;
}
.msearch .typeahead-list.is-open { animation: none; }
.msearch .typeahead-section {
  padding: 10px 12px 4px;
}
.msearch .typeahead-item {
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
}
.msearch .typeahead-item .ti-thumb {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.msearch .typeahead-item .ti-thumb svg {
  width: 16px;
  height: 16px;
}
/* Строчный вид: название и уточнение в одну строку, без стрелки справа */
.msearch .typeahead-item .ti-body {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.msearch .typeahead-item .ti-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14px;
}
/* Уточнение короткое, поэтому режется название, а не оно */
.msearch .typeahead-item .ti-meta {
  flex: 0 0 auto;
}
.msearch .typeahead-item--cta .ti-meta {
  display: none;
}
.msearch .typeahead-item .ti-tag,
.msearch .typeahead-item .ti-arrow {
  display: none;
}
.msearch .typeahead-footer {
  margin-top: 4px;
  padding-top: 4px;
}
.msearch .typeahead-empty {
  padding: 24px 20px;
}

/* Выбор города в шапке */
.header-city { position: relative; }
.header-city__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .12s ease, background .12s ease, border-color .12s ease;
}
.header-city__trigger svg:not(.header-city__chevron) {
  color: var(--ink);
}
.header-city__trigger:hover,
.header-city.is-open .header-city__trigger {
  color: var(--ink);
  background: var(--bg-soft);
  border-color: var(--line);
}
.header-city__chevron {
  opacity: .65;
  transition: transform .15s ease;
}
.header-city.is-open .header-city__chevron {
  transform: rotate(180deg);
}
.header-city__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 70;
  animation: typeahead-in .18s cubic-bezier(.2,.7,.2,1);
}
.header-city__menu:not([hidden]) { display: block; }
.header-city__option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .12s ease;
}
.header-city__option:hover {
  background: var(--bg-soft);
}
.header-city__option.is-active {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}
[data-theme="dark"] .header-city__menu {
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}

/* === Меню пользователя в шапке (desktop) === */
.header-user { position: relative; }
.header-user__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: opacity .15s ease, transform .12s ease;
}
.header-user__trigger:hover {
  opacity: .88;
}
.header-user__trigger:active {
  transform: scale(.96);
}
.header-user.is-open .header-user__trigger .header-user__avatar,
.header-user.is-open .header-user__trigger .header-user__avatar-img {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--accent);
}
.header-user__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow .15s ease;
}
.header-user__avatar-img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: box-shadow .15s ease;
}
.header-user__trigger:hover .header-user__avatar,
.header-user__trigger:hover .header-user__avatar-img {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line);
}
.header-user__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 70;
  animation: typeahead-in .18s cubic-bezier(.2,.7,.2,1);
}
.header-user__menu:not([hidden]) { display: block; }
.header-user__id {
  padding: 8px 12px 10px;
}
/* Карточка с именем и почтой — это и есть вход в профиль */
.header-user__id--link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  transition: background .12s ease;
}
.header-user__id--link:hover {
  background: var(--bg-soft);
}
.header-user__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user__email {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user__sep {
  height: 1px;
  background: var(--line);
  margin: 6px 6px;
}
.header-user__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .12s ease;
}
.header-user__item:hover { background: var(--bg-soft); }
.header-user__item svg { color: var(--muted); }
.header-user__item--strong { font-weight: 600; }
.header-user__item--muted { color: var(--muted); }
[data-theme="dark"] .header-user__menu {
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}

/* === Бургер (mobile) === */
.header-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: opacity .15s ease, transform .12s ease;
}
.header-burger:hover { opacity: .88; }
.header-burger:active { transform: scale(.96); }
.header-burger .header-user__avatar,
.header-burger .header-user__avatar-img {
  width: 32px;
  height: 32px;
}
.header-burger:hover .header-user__avatar,
.header-burger:hover .header-user__avatar-img {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line);
}

/* === Мобильное меню и выбор города (нижние шиты) === */
/* Скелет и анимация — общие .fp-sheet; здесь только внутренности. */
body.drawer-lock { overflow: hidden; }
/* Карточка с именем и почтой — вход в профиль, поэтому тап-зона во всю ширину */
.hmenu__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: 14px;
  transition: background .12s ease;
}
.hmenu__user:hover,
.hmenu__user:active { background: var(--bg-soft); }
.hmenu__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hmenu__avatar-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hmenu__name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hmenu__email {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hmenu__auth {
  display: flex;
  gap: 10px;
  padding: 4px 0 2px;
}
/* Разделы кабинета — плитками: в столбик они уводили «Выйти» за экран */
.hmenu__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.hmenu__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background .12s ease;
}
.hmenu__tile:active { background: var(--bg-soft); }
.hmenu__tile > svg { color: var(--muted); }
.hmenu__tile-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.hmenu__tile-count {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg, #fff);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hmenu__tile-count[hidden] { display: none; }
.hmenu__rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.hmenu__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease;
}
.hmenu__row:hover { background: var(--bg-soft); }
.hmenu__row > svg:first-child { color: var(--muted); }
.hmenu__row--muted { color: var(--muted); }
/* Строка темы не ссылка: нажимается сам переключатель справа */
.hmenu__row--theme { cursor: default; }
.hmenu__row--theme:hover { background: transparent; }
.hmenu__row-value {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* Поиск по городам закреплён под ручкой: список прокручивается под ним */
.citysheet__search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 4px 20px 4px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
}
.citysheet__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.citysheet__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.citysheet__list {
  display: flex;
  flex-direction: column;
}
.citysheet__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: background .12s ease;
}
.citysheet__item:active { background: var(--bg-soft); }
/* Отфильтрованные поиском строки прячет hidden — правило нужно явное,
   иначе display: flex у самой строки может оказаться сильнее. */
.citysheet__item[hidden] { display: none; }
.citysheet__item > svg { color: var(--muted); }
.citysheet__item.is-active {
  font-weight: 700;
  background: var(--bg-soft);
}
.citysheet__item.is-active > svg { color: var(--ink); }
.citysheet__empty {
  padding: 16px 8px;
  font-size: 14px;
  color: var(--muted);
}

/* === Auth (вход / регистрация / пароль) === */
.auth-page {
  max-width: 22rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}
@media (min-width: 640px) {
  .auth-page {
    max-width: 26rem;
    padding: 3.5rem 1.5rem 4.5rem;
  }
}
.auth-page--wide {
  max-width: 100%;
}
@media (min-width: 640px) {
  .auth-page--wide { max-width: 34rem; }
}
@media (min-width: 1024px) {
  .auth-page--wide {
    max-width: 40rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}
@media (min-width: 640px) {
  .auth-page--wide .auth-card {
    padding: 2.25rem 2rem 2rem;
  }
}
@media (min-width: 1024px) {
  .auth-page--wide .auth-card {
    padding: 2.5rem 2.25rem 2.25rem;
  }
}
.auth-page--centered .auth-card__head {
  text-align: center;
}
.auth-card {
  background: var(--bg-soft);
  border: none;
  border-radius: 12px;
  padding: 1.375rem 1.25rem 1.25rem;
  box-shadow: none;
}
@media (min-width: 640px) {
  .auth-card {
    padding: 2rem;
  }
}
.auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.auth-card__head {
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .auth-card__head { margin-bottom: 1.375rem; }
}
.auth-card__head--plain {
  margin-bottom: 0.875rem;
}
@media (min-width: 640px) {
  .auth-card__head--plain { margin-bottom: 1.125rem; }
}
.auth-card__title {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.2;
}
.auth-card__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
@media (min-width: 640px) {
  .auth-card__subtitle {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
  }
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .auth-form { gap: 1rem; }
}
.auth-form--wide {
  gap: 0.875rem;
}
@media (min-width: 640px) {
  .auth-form--wide { gap: 1.125rem; }
}
@media (min-width: 1024px) {
  .auth-form--wide { gap: 1.25rem; }
}
.auth-form-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .auth-form-grid { gap: 1rem; }
}
@media (min-width: 480px) {
  .auth-form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.auth-form-grid > * {
  min-width: 0;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
@media (min-width: 640px) {
  .auth-field { gap: 0.45rem; }
}
.auth-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.125rem;
}
.auth-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.user-type-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.user-type-field__label {
  padding: 0;
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.user-type-field__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.user-type-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.user-type-option:hover {
  background: color-mix(in srgb, var(--bg) 82%, var(--line));
}
.user-type-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.user-type-option__icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: color .15s ease;
}
.user-type-option:has(.user-type-option__input:checked) {
  background: var(--ink);
  color: var(--card);
}
.user-type-option:has(.user-type-option__input:checked) .user-type-option__icon {
  color: inherit;
}
.user-type-option:has(.user-type-option__input:focus-visible) {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink);
}
.user-type-field__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.auth-field__link {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.auth-field__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-field--has-field-extra {
  position: relative;
}
.auth-field--has-field-extra .auth-field__field-extra {
  position: absolute;
  top: 0;
  right: 0;
}
.auth-input {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: background .15s ease;
}
@media (min-width: 640px) {
  .auth-input {
    padding: 0.75rem 1rem;
  }
}
.auth-input::placeholder { color: var(--muted); }
.auth-input:focus {
  outline: none;
  background: color-mix(in srgb, var(--bg) 82%, var(--line));
}
.auth-input.is-error,
.auth-field--error .auth-input {
  background: var(--notice-error-bg);
}
.auth-field__error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--notice-error-ink);
}
.auth-input:disabled {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
  color: var(--muted);
  cursor: not-allowed;
}

/* Phone field — код страны и локальная часть номера */
.phone-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.phone-field--auth {
  gap: 0.35rem;
}
.phone-field__label {
  display: block;
}
.phone-field--auth .phone-field__label {
  margin: 0;
}
.phone-field__control {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  transition: background .15s ease;
}
.phone-field__control:focus-within {
  background: color-mix(in srgb, var(--bg) 82%, var(--line));
}
.phone-field--error .phone-field__control,
.phone-field--auth.phone-field--error .phone-field__control {
  background: var(--notice-error-bg);
}
.phone-field__country-wrap {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  color: var(--muted);
  transition: color .15s ease;
}
.phone-field__country-wrap:hover,
.phone-field__country-wrap:focus-within {
  color: var(--ink);
}
/* Тонкий разделитель вместо рамки во всю высоту */
.phone-field__country-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 1.375rem;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ink) 16%, transparent), transparent);
  pointer-events: none;
}
/* Шеврон рисуем на currentColor, чтобы он жил в обеих темах */
.phone-field__country-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.65rem;
  width: 0.3125rem;
  height: 0.3125rem;
  margin-top: -0.25rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.phone-field__country {
  width: auto;
  max-width: 5.5rem;
  border: none;
  padding: 0.625rem 1.4rem 0.625rem 0.875rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.25;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
@media (min-width: 640px) {
  .phone-field__country {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}
.phone-field__country option {
  color: var(--ink);
  background: var(--bg);
}
.phone-field__country:focus {
  outline: none;
}
.phone-field__country:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: -3px;
  border-radius: 10px;
}
.phone-field__input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
}
@media (min-width: 640px) {
  .phone-field__input {
    padding: 0.75rem 1rem;
  }
}
.phone-field__input::placeholder {
  color: var(--muted);
}
.phone-field__input:focus {
  outline: none;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.auth-check input { accent-color: var(--accent); }
/* Cloudflare Turnstile — в обёртке flat-стиля */
.turnstile-field {
  margin-top: 0.125rem;
}
.turnstile-field__label {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.turnstile-field__widget {
  width: 100%;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
  line-height: 0;
}
.turnstile-field__widget .cf-turnstile {
  display: block;
  width: 100%;
  min-height: 65px;
  margin: -1px;
  clip-path: inset(1px round 10px);
}
.turnstile-field__widget .cf-turnstile > iframe {
  width: 100% !important;
  max-width: 100%;
  border: none !important;
  display: block;
}
.turnstile-field .fp-field-error {
  margin-top: 0.45rem;
}
.auth-submit {
  width: 100%;
  margin-top: 0.125rem;
  padding: 0.6875rem 1rem !important;
  border-radius: 12px !important;
}
@media (min-width: 640px) {
  .auth-submit {
    margin-top: 0.375rem;
    padding: 0.8125rem 1.25rem !important;
  }
}
.auth-footer {
  margin-top: 0.875rem;
  padding-top: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (min-width: 640px) {
  .auth-footer {
    margin-top: 1.25rem;
  }
}
.auth-footer a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-footer a:hover { color: var(--accent); }

/* Страницы с большими формами (заявка на подключение и т.п.) */
.fp-form-page {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}
@media (min-width: 640px) {
  .fp-form-page {
    max-width: 40rem;
    padding: 3rem 1.5rem 4rem;
  }
}
@media (min-width: 1024px) {
  .fp-form-page {
    max-width: 44rem;
    padding: 3.5rem 1.5rem 4.5rem;
  }
}
.fp-form-page__head {
  margin-bottom: 1.75rem;
}
@media (min-width: 1024px) {
  .fp-form-page__head { margin-bottom: 2rem; }
}
.fp-form-page__title {
  margin: 1rem 0 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .fp-form-page__title { font-size: 2rem; }
}
.fp-form-page__lead {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
@media (min-width: 640px) {
  .fp-form-page__lead {
    margin-top: 0.625rem;
    font-size: 1rem;
  }
}
.fp-form-page__foot {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
@media (min-width: 640px) {
  .fp-form-page__foot {
    margin-top: 1.5rem;
    font-size: 0.875rem;
  }
}
.fp-form-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: none;
}
.fp-form-card__note {
  margin: 0;
  padding: 0.875rem 1.25rem;
  border-bottom: none;
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}
@media (min-width: 640px) {
  .fp-form-card__note {
    padding: 0.9375rem 2rem;
    font-size: 0.875rem;
  }
}
.fp-form-card__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .fp-form-card__body {
    gap: 1.75rem;
    padding: 1.75rem 2rem 2rem;
  }
}
@media (min-width: 1024px) {
  .fp-form-card__body {
    gap: 2rem;
    padding: 2rem 2.25rem 2.25rem;
  }
}
.fp-form-section + .fp-form-section {
  padding-top: 1.5rem;
  border-top: none;
}
@media (min-width: 640px) {
  .fp-form-section + .fp-form-section { padding-top: 1.75rem; }
}
.fp-form-section__title {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 640px) {
  .fp-form-section__title { margin-bottom: 1.125rem; }
}
.fp-form-section__hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
@media (min-width: 640px) {
  .fp-form-section__hint {
    margin-bottom: 1.125rem;
    font-size: 0.875rem;
  }
}
.fp-form-section__block {
  margin-top: 1rem;
}
.fp-form-section__foot {
  margin: 1rem 0 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.fp-form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .fp-form-grid { gap: 1rem 1.25rem; }
}
@media (min-width: 768px) {
  .fp-form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.fp-form-grid > * {
  min-width: 0;
}
.fp-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.fp-form-field__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fp-form-field__label .req {
  color: var(--accent);
}
.fp-form-field__input {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: background .15s ease;
}
.fp-form-field__input::placeholder {
  color: var(--muted);
}
.fp-form-field__input:focus {
  outline: none;
  background: color-mix(in srgb, var(--bg) 82%, var(--line));
}
.fp-form-field__input.is-field-error {
  background: var(--notice-error-bg);
}
.fp-form-field__input--area {
  min-height: 6.5rem;
  resize: vertical;
}
.fp-form-field--phone.phone-field {
  gap: 0.375rem;
}
.fp-form-field--phone .phone-field__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fp-form-field--phone .phone-field__control {
  border-radius: 12px;
}
.fp-form-actions {
  display: flex;
  justify-content: stretch;
  padding-top: 0.25rem;
}
@media (min-width: 640px) {
  .fp-form-actions {
    justify-content: flex-end;
    padding-top: 0.5rem;
  }
}
.fp-form-actions__btn {
  width: 100%;
  padding-top: 0.8125rem;
  padding-bottom: 0.8125rem;
}
@media (min-width: 640px) {
  .fp-form-actions__btn {
    width: auto;
    min-width: 14rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* === Уведомления (flash, алерты, баннеры) === */
.fp-notice-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fp-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--notice-neutral-border);
  background: var(--notice-neutral-bg);
  font-size: 14px;
  line-height: 1.5;
  color: var(--notice-neutral-ink);
}
.fp-notice__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--notice-neutral-icon);
}
.fp-notice__body { min-width: 0; flex: 1; }
.fp-notice__title {
  font-weight: 600;
  color: inherit;
  margin-bottom: 2px;
}
.fp-notice__text { color: inherit; }
.fp-notice__detail {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 6%, #fff);
}
[data-theme="dark"] .fp-notice__detail {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.fp-notice-icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--notice-success-border);
  background: var(--notice-success-bg);
  color: var(--notice-success-icon);
}
.fp-notice-icon-circle--info {
  border-color: var(--notice-info-border);
  background: var(--notice-info-bg);
  color: var(--notice-info-icon);
}
.fp-notice--info {
  background: var(--notice-info-bg);
  border-color: var(--notice-info-border);
  color: var(--notice-info-ink);
}
.fp-notice--info .fp-notice__icon { color: var(--notice-info-icon); }
.fp-notice--success {
  background: var(--notice-success-bg);
  border-color: var(--notice-success-border);
  color: var(--notice-success-ink);
}
.fp-notice--success .fp-notice__icon { color: var(--notice-success-icon); }
.fp-notice--warning {
  background: var(--notice-warning-bg);
  border-color: var(--notice-warning-border);
  color: var(--notice-warning-ink);
}
.fp-notice--warning .fp-notice__icon { color: var(--notice-warning-icon); }
.fp-notice--error {
  background: var(--notice-error-bg);
  border-color: var(--notice-error-border);
  color: var(--notice-error-ink);
}
.fp-notice--error .fp-notice__icon { color: var(--notice-error-icon); }
.fp-notice--neutral {
  background: var(--notice-neutral-bg);
  border-color: var(--notice-neutral-border);
  color: var(--notice-neutral-ink);
}
.fp-notice--neutral .fp-notice__icon { color: var(--notice-neutral-icon); }
.fp-notice--compact {
  padding: 0;
  border: none;
  background: transparent;
  gap: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.fp-notice--compact .fp-notice__icon {
  width: 15px;
  height: 15px;
  margin-top: 0;
}
.fp-notice--compact.fp-notice--success,
.fp-notice--compact.fp-notice--warning,
.fp-notice--compact.fp-notice--info,
.fp-notice--compact.fp-notice--error {
  background: transparent;
  border-color: transparent;
}
.fp-notice--compact.fp-notice--success { color: var(--ink); }
.fp-notice--compact.fp-notice--success .fp-notice__icon { color: var(--notice-success-icon); }
.fp-notice--compact.fp-notice--warning { color: var(--ink); }
.fp-notice--compact.fp-notice--warning .fp-notice__icon { color: var(--notice-warning-icon); }

.auth-alert {
  margin-bottom: 0.75rem;
}
.auth-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.875rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--accent);
}
.auth-inline-action {
  margin-top: 0.25rem;
  text-align: center;
}

/* Кнопка primary */
.btn-primary {
  background: var(--accent); color: #fff;
  border-radius: 12px; padding: 14px 24px;
  font-weight: 600; transition: background .15s ease;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border: 1px solid var(--ink); color: var(--ink);
  border-radius: 12px; padding: 14px 24px;
  font-weight: 600; transition: background .15s ease;
}
.btn-ghost:hover { background: #f7f7f7; }

/* Skeleton-чекерная подложка для пустых блоков */
.checker {
  background-image:
    linear-gradient(45deg, #f3f3f3 25%, transparent 25%, transparent 75%, #f3f3f3 75%),
    linear-gradient(45deg, #f3f3f3 25%, transparent 25%, transparent 75%, #f3f3f3 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Календарь */
.calendar-day {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 14px;
  cursor: pointer; transition: background .12s ease;
}
.calendar-day:hover:not(.disabled) { background: rgba(var(--accent-rgb), .1); }
.calendar-day.selected {
  background: var(--pick-bg);
  color: var(--pick-ink);
  font-weight: 600;
}
.calendar-day.in-range { background: #f7f7f7; border-radius: 0; }
.calendar-day.disabled { color: #d1d1d1; cursor: not-allowed; text-decoration: line-through; }

/* === Страница оформления брони === */
/* Плоские подложки вместо обводок: секции выделяются серым фоном, а элементы
   внутри — белыми плашками, как в панели бронирования на странице зала. */
.bk-h2 {
  font-size: 17px; font-weight: 600;
  margin-bottom: 10px;
}
.bk-panel { background: var(--bg-soft); border-radius: 16px; padding: 14px; }
.bk-panel--rows { padding: 6px; }
.bk-sep { height: 1px; background: var(--line); margin: 14px 0; }
.bk-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px; border-radius: 12px;
  background: var(--card); text-align: left;
}
.bk-row + .bk-row { margin-top: 4px; }
.bk-row--plain { background: transparent; }
.bk-row--plain:hover { background: var(--card); }
/* Услуги: выбор читается по самой отметке и мягкой подсветке строки —
   обводка по контуру спорила с соседними строками и панелью. */
.svc-row { position: relative; cursor: pointer; transition: background .15s ease; }
.svc-row__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.svc-check {
  flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .15s ease, box-shadow .15s ease;
}
.svc-check::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.5) translateY(-1px);
  opacity: 0; transition: opacity .12s ease, transform .12s ease;
}
.svc-row:hover .svc-check { box-shadow: inset 0 0 0 1.5px var(--muted); }
.svc-row:focus-within .svc-check { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 3px rgba(var(--accent-rgb), .18); }
/* Подсветку кладём поверх белой строки, иначе она смешивается с серой панелью */
.svc-row:has(.svc-row__input:checked) {
  background: linear-gradient(rgba(var(--accent-rgb), .07), rgba(var(--accent-rgb), .07)), var(--card);
}
.svc-row:has(.svc-row__input:checked) .svc-check { background: var(--accent); box-shadow: none; }
.svc-row:has(.svc-row__input:checked) .svc-check::after { opacity: 1; transform: rotate(-45deg) scale(1) translateY(-1px); }
[data-theme="dark"] .svc-row:has(.svc-row__input:checked) {
  background: linear-gradient(rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .22)), var(--card);
}

/* Кнопки-иконки ленты дней и календаря: без рамки, фон появляется на hover */
.bk-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.bk-nav:hover:not(:disabled) { background: var(--card); color: var(--ink); }
.bk-nav:disabled { opacity: .3; cursor: default; }

/* Календарь на месяц — поповером у кнопки: инлайн-панель раздвигала секцию и
   уводила часы вниз при каждом открытии. */
.bk-cal { position: relative; }
.bk-cal-pop {
  position: absolute; z-index: 40; top: calc(100% + 8px); right: 0;
  width: min(300px, calc(100vw - 48px));
  padding: 14px; border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .16);
}
[data-theme="dark"] .bk-cal-pop { box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }

/* Лента дней. Два месячных календаря занимали всю колонку, хотя дату обычно
   выбирают ещё на странице зала и здесь правят на день-два. */
.day-strip {
  display: flex; gap: 5px; flex: 1; min-width: 0;
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
}
.day-strip::-webkit-scrollbar { display: none; }
/* Границы недель: без них лента читается как непрерывный поток чисел */
.day-strip__sep {
  flex: none; width: 1px; align-self: stretch; margin: 4px 3px;
  background: var(--line);
}
.day-chip {
  flex: none; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center;
  min-width: 50px; padding: 6px 8px;
  border: 0; border-radius: 12px;
  background: var(--card); color: var(--ink);
  cursor: pointer;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.day-chip__dow { font-size: 10px; color: var(--muted); }
.day-chip__day { font-size: 15px; font-weight: 600; line-height: 1.25; }
.day-chip:hover:not(.disabled) { background: rgba(var(--accent-rgb), .08); }
.day-chip.selected {
  background: var(--pick-bg);
  color: var(--pick-ink);
}
.day-chip.selected:hover { background: var(--pick-bg-hover); }
.day-chip.selected .day-chip__day { font-weight: 700; }
.day-chip.selected .day-chip__dow { color: inherit; opacity: .75; }
.day-chip.disabled { background: transparent; color: var(--muted); opacity: .55; cursor: not-allowed; }
.day-chip.disabled .day-chip__day { text-decoration: line-through; }

/* Часы: чипы по содержимому. В сетке на всю ширину колонки они растягивались
   до кнопок в ладонь. */
.bk-hours { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-hours .time-slot {
  padding: 7px 11px; font-size: 13px; border-radius: 9px;
  border-color: transparent; min-width: 62px;
}
.bk-hours .time-slot.disabled { background: transparent; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted); }
.bk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bk-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.bk-legend i.is-free { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
/* Образец в легенде плотнее самих чипов: на 8 пикселях светлый тон не виден */
.bk-legend i.is-picked { background: rgba(var(--accent-rgb), .4); }
.bk-legend i.is-busy { background: var(--muted); opacity: .35; }

/* Ошибка отправки формы — у своей причины, а не тостом внизу экрана: тост
   уезжает, пока человек ищет, что именно не заполнено. Просто красная строка,
   как у ошибок полей: цветная плашка на форме — лишний цвет. */
.bk-alert {
  margin-top: 10px; font-size: 13px; line-height: 1.45;
  color: var(--notice-error-ink);
}

/* Контакты: подпись над полем со звёздочкой обязательности. Плейсхолдер
   исчезает при вводе, и без подписи не понять, что из заполненного обязательно. */
.bk-field { min-width: 0; }
.bk-label {
  display: block; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.bk-label .req { color: var(--accent); }
/* Галочка в заполненном поле — тем же механизмом, что в регистрации (FP.FormLive);
   заливку поля не меняем, только значок: иначе форма снова пестрит. */
.fp-input-wrap > .bk-input { padding-right: 2.625rem; }

/* Телефон с кодом страны внутри панели мастера: компонент тот же, что в
   регистрации, но поле должно выглядеть как остальные bk-input. */
.bk-panel .phone-field--booking .phone-field__control { background: var(--card); border-radius: 12px; }
.bk-panel .phone-field--booking .phone-field__input,
.bk-panel .phone-field--booking .phone-field__country { padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.phone-field--booking.is-field-error .phone-field__control { background: var(--notice-error-bg); }

/* Состояние канала связи (телефон, почта) — одной строкой под полем, в цвете
   подписи. Зелёная галочка — единственный цвет: «не подтверждён» для нового
   аккаунта состояние обычное, и жёлтого ему не положено. */
.field-note {
  margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted);
}
.field-note__state { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
/* Само состояние — словом в цвете текста и полужирным, пояснение к нему — серым. */
.field-note__label { font-weight: 600; color: var(--ink); }
.field-note__ok { width: 14px; height: 14px; flex: 0 0 auto; color: var(--notice-success-icon); }
/* Точка у неподтверждённого — парная галочке: заметна, но не кричит. */
.field-note__dot {
  width: 8px; height: 8px; flex: 0 0 auto; margin: 0 3px;
  border-radius: 999px; background: var(--notice-warning-icon);
}
.field-note__sep { opacity: .6; }
.field-note__action {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.field-note__action:hover { color: var(--accent); }
.field-note .inline { display: inline; }
/* В профиле подписи и поля крупнее — строка состояния тоже. */
.fp-form-field .field-note { margin-top: 4px; font-size: 13px; }

/* Профиль: карточка белая, и поля без заливки и рамки на ней терялись.
   Серая заливка с тонкой рамкой, в фокусе — белое поле с рамкой в цвет текста. */
.profile-panel .fp-form-field__input,
.profile-panel .phone-field__control {
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.profile-panel .fp-form-field__input:focus,
.profile-panel .phone-field__control:focus-within {
  background: var(--card);
  border-color: var(--ink);
}
.profile-panel .fp-form-field__input.is-field-error,
.profile-panel .phone-field--error .phone-field__control {
  background: var(--notice-error-bg);
  border-color: var(--notice-error-border);
}

/* Действие в уведомлении — ссылкой в цвете текста: призрачная кнопка на
   цветной подложке сливалась с ней. */
.fp-notice__link {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.fp-notice__link:hover { opacity: .75; }

/* Шторка кода подтверждения. Разметка — shared/partials/phone-verify-sheet,
   логика — phone-verify.js; каркас шита общий (core.js Sheet). */
.otp .fp-sheet__body { padding-top: 12px; }
.otp__lead { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.otp__phone { color: var(--ink); font-weight: 600; white-space: nowrap; }
.otp__label {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
/* Код набирают глазами по цифрам — крупный и разряженный читается вернее. */
.otp__input {
  display: block; width: 100%; max-width: 260px; margin: 0 auto;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-soft); color: var(--ink);
  font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: .4em; text-align: center; text-indent: .4em;
}
.otp__input::placeholder { color: var(--line); letter-spacing: .4em; }
.otp__input:focus { outline: none; border-color: var(--ink); background: var(--card); }
.otp__input:disabled { opacity: .6; }
.otp__status { margin: 12px 0 0; font-size: 13px; line-height: 1.45; text-align: center; color: var(--muted); }
.otp__status.is-error { color: var(--notice-error-ink); }
.otp__status.is-ok { color: var(--notice-success-ink); }
.otp__confirm { display: block; width: 100%; margin-top: 16px; padding: 12px 16px; font-size: 14px; }
.otp__confirm:disabled { opacity: .5; cursor: default; }
.otp__foot { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.otp__resend {
  padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.otp__resend:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.otp__escape { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }
.otp__escape a { text-decoration: underline; text-underline-offset: 2px; }

/* Поля: заливка вместо обводки. Класс !border-accent из мастера подсвечивает
   ошибку поверх прозрачной рамки. */
.bk-input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--bg-soft); color: var(--ink);
}
.bk-input::placeholder { color: var(--muted); }

.bk-input:focus { outline: none; border-color: var(--ink); background: var(--card); }
/* Внутри серой подложки поле берёт белую заливку — иначе его не видно */
.bk-panel .bk-input { background: var(--card); }
/* Промокод вводится капсом, но подсказка остаётся обычным регистром */
.bk-input.uppercase::placeholder { text-transform: none; }
.bk-agree {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px; font-size: 12px; line-height: 1.45;
  color: var(--muted); cursor: pointer;
}
.bk-agree a { text-decoration: underline; }
.bk-btn-ghost {
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  border: 0; border-radius: 10px;
  background: var(--card); color: var(--ink); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.bk-btn-ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* Карточки оплаты на этой странице тоже без постоянной рамки */
.bk-pay .pay-opt { background: var(--bg-soft); border-color: transparent; }
.bk-pay .pay-opt:hover { border-color: var(--line); }
.bk-pay .pay-opt.selected { border-color: var(--accent); }
.bk-pay .pay-opt__icon { background: var(--card); }

/* Промокод в сводке: свёрнут, потому что необязателен */
.promo-details__summary {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
  color: var(--muted);
}
.promo-details__summary::-webkit-details-marker { display: none; }
.promo-details__summary:hover { color: var(--ink); }
.promo-details__chev { margin-left: auto; transition: transform .15s ease; }
.promo-details[open] .promo-details__summary { color: var(--ink); }
.promo-details[open] .promo-details__chev { transform: rotate(180deg); }

/* Итог и CTA на телефоне: сайдбар уезжает под форму, и цена при выборе
   слотов оставалась вне экрана. */
.booking-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .07);
  transition: transform .2s ease, opacity .2s ease;
}
/* Сводка доехала до экрана — панель не нужна: итог и кнопка уже перед глазами. */
.booking-bar.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.booking-bar__total { font-size: 17px; font-weight: 700; line-height: 1.2; }
.booking-bar__meta {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
[data-theme="dark"] .booking-bar { box-shadow: 0 -6px 20px rgba(0, 0, 0, .45); }

/* Hall radio cards (booking step) */
.hall-pick-card {
  border: 2px solid var(--line); border-radius: 16px;
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.hall-pick-card:hover { border-color: #c0c0c0; }
.hall-pick-card.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Payment method cards (booking step) */
.pay-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pay-opt {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 48px 18px 18px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pay-opt:hover { border-color: var(--ink); }
.pay-opt.selected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .05);
  box-shadow: 0 0 0 1px var(--accent);
}
.pay-opt:focus-within { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.pay-opt.selected:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(var(--accent-rgb), .22); }

.pay-opt__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

.pay-opt__icon {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.pay-opt.selected .pay-opt__icon { background: var(--accent); color: #fff; }

.pay-opt__title { display: block; font-weight: 600; line-height: 1.3; }
.pay-opt__desc { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--muted); }

.pay-opt__mark {
  position: absolute; top: 18px; right: 18px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line);
  transition: border-color .15s ease;
}
.pay-opt:hover .pay-opt__mark { border-color: var(--muted); }
.pay-opt.selected .pay-opt__mark { border-color: var(--accent); }
.pay-opt.selected .pay-opt__mark::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}

/* Единственный доступный способ оплаты — это не выбор, а факт */
.pay-single {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-soft);
}
.pay-single__icon {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--accent);
  border: 1px solid var(--line);
}
.pay-single__title { display: block; font-weight: 600; line-height: 1.3; }
.pay-single__desc { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Time slot */
.time-slot {
  padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; font-size: 14px;
  text-align: center; transition: all .12s ease;
  background: var(--card, #fff);
}
.time-slot:hover:not(.disabled) { background: rgba(var(--accent-rgb), .08); }
.time-slot.selected {
  background: var(--pick-bg);
  border-color: transparent;
  color: var(--pick-ink);
  font-weight: 600;
}
.time-slot.selected:hover { background: var(--pick-bg-hover); border-color: transparent; }
.time-slot.disabled { color: var(--muted); background: transparent; opacity: .5; cursor: not-allowed; }

/* Sticky booking block */
.sticky-booking {
  position: sticky; top: 96px;
}
/* На узких экранах панель идёт в общем потоке: липнуть ей некуда. */
@media (max-width: 1023px) {
  .sticky-booking { position: static; }
}

/* Карточка бронирования — подложка без тени и рамки: содержимое выделяется
   собственными белыми полями, а не обводкой всего блока. */
.booking-card {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 14px;
}
.booking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.booking-panel-head__toggle {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.booking-panel-head__toggle.btn-ghost {
  padding: 9px 14px;
  font-size: 13px;
}
.booking-preview__scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.booking-preview__scroll::-webkit-scrollbar { display: none; }
.booking-preview-chip {
  flex: none;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  color: var(--notice-success-ink, #14532d);
  background: var(--notice-success-bg, rgba(22, 163, 74, .14));
  transition: background .12s ease, transform .12s ease;
}
.booking-preview-chip:hover {
  background: rgba(22, 163, 74, .22);
}
.booking-preview-chip:active { transform: scale(.97); }
.booking-card .btn-primary,
.hall-booking-section .btn-primary {
  padding: 10px 16px;
}
.booking-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
/* Инфо-кнопка у цены: открывает шит «Цены и условия» — тариф по дням, ночные
   цены и скидки в панели не помещались и читались плохо. */
.booking-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.booking-info-btn:hover {
  background: var(--card, #fff);
  color: var(--ink);
}
.booking-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.booking-hours .time-slot {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}
.booking-hours-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.booking-hours-more:hover { color: var(--ink); }

/* Карточка-итог: белая плашка на серой панели с выбранным слотом. Дата и время
   слева, сумма справа — одной строкой через точки итог сливался с примечанием
   под плашкой и читался как сплошной текст. */
.booking-picked {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card, #fff);
  color: var(--ink);
}
.booking-card .booking-picked,
.hall-booking-section .booking-picked {
  margin-top: 8px;
}
/* В тёмной теме карта и подложка одного тона — плашку выделяет только линия */
[data-theme="dark"] .booking-picked { box-shadow: inset 0 0 0 1px var(--line); }
.booking-picked__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.booking-picked__date { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.booking-picked__time { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.booking-picked__sum {
  flex: none;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.booking-picked__was { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
/* Недобор часов мешает забронировать, поэтому тон предупреждающий */
.booking-picked__note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--notice-warning-ink);
}

/* Порядок подтверждения брони — мелкой строкой между итогом и кнопкой.
   Внутри плашки итога она выглядела частью расчёта. */
.booking-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.booking-card .booking-note,
.hall-booking-section .booking-note {
  margin-top: 8px;
}
.booking-note__icon { flex-shrink: 0; margin-top: 2px; opacity: .75; }
/* Мгновенная бронь — единственное преимущество среди примечаний, его выделяем */
.booking-note--success {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--notice-success-bg);
  color: var(--notice-success-ink);
  font-weight: 500;
}
.booking-note--success .booking-note__icon { color: var(--notice-success-icon); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 100; display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

/* === Карта (Leaflet) в палитре V1 === */

/* Pin с ценой */
.price-pin {
  position: relative;
  background: #fff; color: var(--ink);
  padding: 3px 9px; border-radius: 12px;
  font-weight: 700; font-size: 12px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 4px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
  white-space: nowrap; cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
  display: inline-block;
}
.price-pin:hover,
.price-pin.active {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
}
.price-pin.visited { color: var(--muted); border-color: var(--muted); font-weight: 500; }
.price-pin.featured::before {
  content: "★"; color: var(--accent); font-size: 11px; margin-right: 1px;
}
.price-pin.featured:hover::before,
.price-pin.featured.active::before { color: #fff; }

.leaflet-cluster-spider-leg {
  stroke: rgba(0, 0, 0, 0.22);
  stroke-width: 1.5;
}
[data-theme="dark"] .leaflet-cluster-spider-leg {
  stroke: rgba(255, 255, 255, 0.28);
}

/* Компактная горизонтальная карточка для map-режима */
.list-card-compact {
  display: flex; gap: 10px;
  padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .12s ease;
}
.list-card-compact:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.list-card-compact:hover,
.list-card-compact.hl {
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  transform: translateY(-1px);
}
.list-card-compact .lcc-img {
  width: 108px; height: 108px; flex: 0 0 108px;
  border-radius: 10px; overflow: hidden; background: #f3f3f3;
  position: relative;
}
.list-card-compact .lcc-img img { width: 100%; height: 100%; object-fit: cover; }
.list-card-compact .lcc-rating {
  position: absolute; top: 6px; left: 6px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(4px);
  padding: 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.list-card-compact .lcc-open {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px;
  background: var(--ink); color: #fff;
  transition: transform .12s ease, background .12s ease;
}
.list-card-compact .lcc-open:hover { transform: translateY(-1px); }

/* Сегментный тоггл "Сетка / Карта" */
.view-toggle {
  display: inline-flex; align-items: center;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 5px;
  gap: 2px;
}
.view-toggle button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
  transition: background .15s ease, color .15s ease;
}
.view-toggle button:hover { color: #fff; }
.view-toggle button.active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

/* Кастомизация Leaflet popup */
.leaflet-container { font-family: 'Inter', system-ui, sans-serif; }
.leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  padding: 0; overflow: hidden;
}
.leaflet-popup-content { margin: 0; padding: 0; width: 300px !important; }
.leaflet-popup-tip-container {
  width: 24px; height: 12px;
  margin-top: -1px;
  overflow: hidden;
  pointer-events: none;
}
.leaflet-popup-tip {
  width: 14px; height: 14px;
  padding: 0; margin: -7px auto 0;
  background: var(--card, #fff);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
[data-theme="dark"] .leaflet-popup-tip { background: var(--card); }
.leaflet-popup-close-button {
  width: 28px !important; height: 28px !important;
  background: rgba(255,255,255,.95) !important;
  border-radius: 50% !important;
  font-size: 18px !important; line-height: 26px !important;
  top: 8px !important; right: 8px !important;
  color: var(--ink) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.leaflet-popup-close-button:hover { background: #fff !important; }

/* Карта-контейнер */
.map-card {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f3f3;
}
/* Запираем стэкинг-контекст карты, чтобы её контролы (leaflet z-index ~1000)
   не вылезали поверх мобильной панели бронирования. */
#sec-location .map-card { isolation: isolate; }

/* === Каталог: split-view (фильтры | сетка | карта) === */
.catalog-page {
  --catalog-sticky-top: 56px;
  --catalog-inline-pad: 1.5rem;
  overflow-x: clip;
  max-width: 100%;
}
@media (min-width: 640px) {
  .catalog-page {
    --catalog-sticky-top: 48px;
  }
}
@media (max-width: 1023px) {
  .catalog-page {
    overflow-x: visible;
  }
  .catalog-results {
    container-type: normal;
  }
}
@media (min-width: 1024px) {
  /* overflow:clip ломает position:sticky у карты — на десктопе он не нужен */
  .catalog-page {
    overflow-x: visible;
    --catalog-inline-pad: 1.25rem;
  }
}
.catalog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  /* Laptop + desktop: 2-col shell (filters | results) by default */
  .catalog-shell {
    grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
    gap: 1rem 1.5rem;
    align-items: start;
    padding: 1rem 1.25rem 0;
  }
  .catalog-shell .catalog-map-col {
    display: none !important;
  }

  /* Laptop map-focus: results + map, filters in drawer */
  .catalog-shell.catalog-shell--map-focus:not(.catalog-shell--no-map) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 42vw);
    padding: 1rem 0 0 1.25rem;
  }
  .catalog-shell--map-focus .catalog-filters {
    display: none;
  }
  .catalog-shell--map-focus:not(.catalog-shell--no-map) .catalog-map-col {
    display: block !important;
  }
  .catalog-shell--map-focus:not(.catalog-shell--no-map) .catalog-results {
    padding: 0.25rem;
  }

  /* Grid: no map — 3 columns on laptop */
  .catalog-shell--no-map .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  /* Grid: map visible — 2 columns */
  .catalog-shell:not(.catalog-shell--no-map) .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1rem;
  }
  .catalog-shell:not(.catalog-shell--no-map) .catalog-results {
    padding: 0.25rem;
  }
  .catalog-shell:not(.catalog-shell--no-map) .catalog-grid .hall-card > .relative.rounded-2xl {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  .catalog-shell--no-map .catalog-map-col {
    display: none !important;
  }
  .catalog-toolbar__mapfocus-filters {
    display: none !important;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Laptop map-focus: filters as drawer */
  .catalog-shell--map-focus .catalog-filters {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: min(100%, 400px);
    max-width: 400px;
    height: 100dvh;
    z-index: 60;
    background: var(--card, #fff);
    transform: translateX(-100%);
    transition: transform .3s ease, visibility 0s linear .3s;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
  }
  .catalog-shell--map-focus .catalog-filters.catalog-filters--open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease, visibility 0s linear 0s;
    box-shadow: 8px 0 32px rgba(0, 0, 0, .12);
  }
  .catalog-shell--map-focus .catalog-toolbar__mapfocus-filters {
    display: inline-flex !important;
  }
}
@media (min-width: 1280px) {
  /* Wide desktop: 3-col shell when map visible — map grows with viewport */
  .catalog-shell:not(.catalog-shell--no-map) {
    grid-template-columns: minmax(220px, 240px) minmax(0, 1.55fr) minmax(320px, 1.35fr);
    padding: 1rem 0 0 1.25rem;
  }
  .catalog-shell:not(.catalog-shell--no-map) .catalog-filters {
    display: block;
  }
  .catalog-shell:not(.catalog-shell--no-map) .catalog-map-col {
    display: block !important;
  }
}
@media (min-width: 1536px) {
  .catalog-shell:not(.catalog-shell--no-map) .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
  .catalog-shell--no-map .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}
.catalog-filters {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1023px) {
  .catalog-filters__head {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
  }
  .catalog-filters__head::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 35%, var(--line));
  }
  .catalog-filters {
    background: var(--card, #fff);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: min(92dvh, 720px);
    border-radius: 16px 16px 0 0;
    transition: transform .3s ease, visibility 0s linear .3s;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    z-index: 1210;
  }
  .catalog-filters__head {
    border-bottom: 1px solid var(--line);
  }
  .catalog-filters__foot {
    border-top: 1px solid var(--line);
  }
  .catalog-filters__body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 1rem;
  }
  .catalog-filters.catalog-filters--open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease, visibility 0s linear 0s;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .12);
  }
  .catalog-filters.catalog-filters--dragging {
    transition: none;
  }
  .catalog-filters__head {
    touch-action: none;
    cursor: grab;
  }
  .catalog-filters.catalog-filters--dragging .catalog-filters__head {
    cursor: grabbing;
  }
  .catalog-filters-sticky {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
}
@media (min-width: 1024px) {
  .catalog-filters {
    align-self: stretch;
    margin-top: calc(-1rem - 1px);
    padding-top: 0;
    transform: none;
    background: transparent;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
  }
  .catalog-filters-sticky {
    position: sticky;
    top: var(--catalog-sticky-top);
    z-index: 30;
    max-height: calc(100dvh - var(--catalog-sticky-top));
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .catalog-filters__form {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    background: var(--card, #fff);
    border: none;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
  }
  .catalog-filters__head {
    display: none !important;
  }
  .catalog-filters__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 35%, transparent) transparent;
    min-height: 0;
    padding: 0.25rem 1rem 0.75rem;
  }
  .catalog-filters__foot {
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--line);
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .catalog-shell--map-focus .catalog-filters {
    margin-top: 0;
    transform: translateX(-100%);
    background: var(--card, #fff);
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
  }
  .catalog-shell--map-focus .catalog-filters.catalog-filters--open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .catalog-shell--map-focus .catalog-filters__head {
    display: flex !important;
  }
  .catalog-shell--map-focus .catalog-filters-sticky {
    position: static;
    max-height: none;
    height: 100%;
    flex: 1;
    min-height: 0;
  }
  .catalog-shell--map-focus .catalog-filters__form {
    max-height: 100dvh;
    height: 100%;
  }
}
.catalog-filters__form {
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1023px) {
  .catalog-filters__form {
    max-height: 100dvh;
  }
  .catalog-filters__body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 1rem;
  }
}
.catalog-filters__body {
  min-width: 0;
  max-width: 100%;
}
.catalog-filter-control {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.catalog-filter-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.catalog-filter-chip {
  line-height: 1.25;
  word-break: break-word;
}
.catalog-filter-chip--link {
  display: inline-flex;
  align-items: center;
}

/* Применённые фильтры над каталогом (alias fp-chip) */
#catalog-chips {
  gap: 8px;
}
.fp-chip,
.catalog-applied-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 12px;
  border: none;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  word-break: break-word;
  transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.fp-chip:hover,
.catalog-applied-chip:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.fp-chip.is-on,
.fp-chip.is-active,
.fp-chip[aria-current="page"],
.catalog-applied-chip {
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent-dark);
  font-weight: 600;
}
.fp-chip.is-on:hover,
.fp-chip.is-active:hover,
.fp-chip[aria-current="page"]:hover,
.catalog-applied-chip:hover {
  background: rgba(var(--accent-rgb), .18);
}
.fp-chip--reset,
.catalog-applied-chip--reset {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 500;
}
.fp-chip--reset:hover,
.catalog-applied-chip--reset:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.fp-chip--block {
  display: flex;
  width: 100%;
  padding: 9px 11px;
  gap: 10px;
}
.fp-chip--icon {
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 12px;
  color: var(--muted);
}
.fp-chip--icon:hover {
  color: var(--ink);
}
.fp-chip--toolbar {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}
.catalog-applied-chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: .75;
}
[data-theme="dark"] .fp-chip.is-on,
[data-theme="dark"] .fp-chip.is-active,
[data-theme="dark"] .fp-chip[aria-current="page"],
[data-theme="dark"] .catalog-applied-chip {
  color: #c9956a;
  background: rgba(var(--accent-rgb), .2);
}
[data-theme="dark"] .fp-chip.is-on:hover,
[data-theme="dark"] .fp-chip.is-active:hover,
[data-theme="dark"] .fp-chip[aria-current="page"]:hover,
[data-theme="dark"] .catalog-applied-chip:hover {
  background: rgba(var(--accent-rgb), .28);
}
[data-theme="dark"] .fp-chip--reset,
[data-theme="dark"] .catalog-applied-chip--reset {
  color: var(--ink);
  background: var(--bg-soft);
}
[data-theme="dark"] .fp-chip--reset:hover,
[data-theme="dark"] .catalog-applied-chip--reset:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}

.catalog-category-filter {
  min-width: 0;
}
.catalog-category-radios {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}
.catalog-category-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.catalog-category-radio:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.catalog-category-radio__dot {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--muted) 55%, var(--line));
  border-radius: 50%;
  transition: border-color .15s ease;
}
.catalog-category-radio__dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s ease, transform .15s ease;
}
.catalog-category-radio__label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.catalog-category-radio.is-active {
  background: rgba(var(--accent-rgb), .12);
  box-shadow: none;
}
.catalog-category-radio.is-active:hover {
  background: rgba(var(--accent-rgb), .18);
}
.catalog-category-radio.is-active .catalog-category-radio__dot {
  border-color: var(--accent);
}
.catalog-category-radio.is-active .catalog-category-radio__dot::after {
  opacity: 1;
  transform: scale(1);
}
.catalog-category-radio.is-active .catalog-category-radio__label {
  font-weight: 600;
  color: var(--accent-dark, var(--accent));
}
[data-theme="dark"] .catalog-category-radio.is-active {
  background: rgba(var(--accent-rgb), .2);
}
[data-theme="dark"] .catalog-category-radio.is-active:hover {
  background: rgba(var(--accent-rgb), .28);
}
[data-tag-checks] .owner-tag-chip {
  padding: 6px 12px;
  border: none;
  border-radius: 12px;
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
[data-tag-checks] .owner-tag-chip:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
  color: var(--ink);
}
[data-tag-checks] .owner-tag-chip:has(> input[type="checkbox"]:checked),
[data-tag-checks] .owner-tag-chip.is-selected {
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent-dark, var(--accent));
  border: none;
  font-weight: 600;
  box-shadow: none;
}
[data-tag-checks] .owner-tag-chip:has(> input[type="checkbox"]:checked):hover,
[data-tag-checks] .owner-tag-chip.is-selected:hover {
  background: rgba(var(--accent-rgb), .18);
}
[data-theme="dark"] [data-tag-checks] .owner-tag-chip:has(> input[type="checkbox"]:checked),
[data-theme="dark"] [data-tag-checks] .owner-tag-chip.is-selected {
  background: rgba(var(--accent-rgb), .2);
  color: #c9956a;
  border: none;
}
.catalog-filter-check {
  line-height: 1.35;
}
.catalog-filter-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: .01em;
  margin-bottom: 2px;
}
.catalog-filter-section-title::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 65%, transparent);
}
[data-theme="dark"] .catalog-filter-section-title::before {
  background: color-mix(in srgb, var(--accent) 75%, transparent);
}
.catalog-filter-subgroup + .catalog-filter-subgroup {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.catalog-filter-subgroup__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.3;
}
.catalog-filter-switches {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalog-filter-feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  background: var(--bg-soft);
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.catalog-filter-feature:hover {
  background: color-mix(in srgb, var(--ink) 5%, var(--bg-soft));
}
.catalog-filter-feature__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  transition: background .15s ease, color .15s ease;
}
.catalog-filter-feature__ico--on { display: none; }
.catalog-filter-feature__body {
  flex: 1;
  min-width: 0;
  padding-right: 2px;
}
.catalog-filter-feature__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.catalog-filter-feature__switch {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 18px;
}
.catalog-filter-feature .catalog-filter-switch__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transform: none;
  cursor: pointer;
  z-index: 1;
}
.catalog-filter-feature .catalog-filter-switch__track {
  display: block;
  width: 32px;
  height: 18px;
}
.catalog-filter-feature .catalog-filter-switch__track::after {
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
}
.catalog-filter-feature:has(.catalog-filter-switch__input:checked) .catalog-filter-switch__track::after {
  transform: translateX(14px);
}
.catalog-filter-feature--favs .catalog-filter-feature__icon { color: #a1a1aa; }
.catalog-filter-feature--favs:has(.catalog-filter-switch__input:checked) {
  background: var(--fav-soft);
}
.catalog-filter-feature--favs:has(.catalog-filter-switch__input:checked) .catalog-filter-feature__icon {
  background: var(--fav-soft-icon);
  color: var(--fav);
}
.catalog-filter-feature--favs:has(.catalog-filter-switch__input:checked) .catalog-filter-feature__ico--off { display: none; }
.catalog-filter-feature--favs:has(.catalog-filter-switch__input:checked) .catalog-filter-feature__ico--on { display: block; }
.catalog-filter-feature--favs:has(.catalog-filter-switch__input:checked) .catalog-filter-switch__track {
  background: var(--fav);
}
.catalog-filter-feature--instant .catalog-filter-feature__icon { color: #71717a; }
.catalog-filter-feature--instant:has(.catalog-filter-switch__input:checked) {
  background: #f0fdf4;
}
.catalog-filter-feature--instant:has(.catalog-filter-switch__input:checked) .catalog-filter-feature__icon {
  background: #16a34a;
  color: #fff;
}
.catalog-filter-feature--instant:has(.catalog-filter-switch__input:checked) .catalog-filter-switch__track {
  background: #16a34a;
}
[data-theme="dark"] .catalog-filter-feature--favs:has(.catalog-filter-switch__input:checked) {
  background: var(--fav-soft);
}
[data-theme="dark"] .catalog-filter-feature--favs:has(.catalog-filter-switch__input:checked) .catalog-filter-feature__icon {
  background: var(--fav-soft-icon);
  color: var(--fav);
}
[data-theme="dark"] .catalog-filter-feature--instant:has(.catalog-filter-switch__input:checked) {
  background: rgba(22, 163, 74, .12);
}
[data-theme="dark"] .catalog-filter-feature--instant:has(.catalog-filter-switch__input:checked) .catalog-filter-feature__icon {
  background: #15803d;
  color: #ecfdf5;
}
.catalog-filter-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}
.catalog-filter-switch__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}
.catalog-filter-switch__input {
  position: absolute;
  right: 0;
  top: 50%;
  width: 44px;
  height: 26px;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1;
}
.catalog-filter-switch__track {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d4d4d8;
  transition: background .2s ease;
}
.catalog-filter-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}
.catalog-filter-switch:has(.catalog-filter-switch__input:checked) .catalog-filter-switch__track {
  background: var(--accent);
}
.catalog-filter-switch:has(.catalog-filter-switch__input:checked) .catalog-filter-switch__track::after {
  transform: translateX(18px);
}
.catalog-filter-switch:has(.catalog-filter-switch__input:focus-visible) .catalog-filter-switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[data-theme="dark"] .catalog-filter-switch__track {
  background: #3a3b40;
}
[data-theme="dark"] .catalog-filter-switch__track::after {
  background: #f4f4f5;
}
[data-theme="dark"] .catalog-filter-switch:has(.catalog-filter-switch__input:checked) .catalog-filter-switch__track {
  background: var(--accent);
}
.catalog-filter-group__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.625rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: opacity .15s ease;
}
.catalog-filter-group__toggle::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease, margin-top .2s ease;
}
[data-filter-collapsible]:not([data-collapsed]) .catalog-filter-group__toggle::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
.catalog-filter-group__toggle:hover {
  opacity: 0.75;
}

/* === Каталог: новый визуал панели фильтров (fpf-*) === */
.fpf-desktop-head {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.875rem 0 0.75rem;
}
.fpf-desktop-head__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.fpf-desktop-head__title svg {
  color: var(--muted);
}
.fpf-reset-link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color .15s ease, opacity .15s ease;
}
.fpf-reset-link:hover {
  color: var(--ink);
}
.fpf-reset-link.is-hidden {
  visibility: hidden;
  pointer-events: none;
}
.fpf-reset-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.fpf-head-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Секции-аккордеоны */
.fpf-section {
  border-top: 1px solid var(--line);
  margin: 0 -1rem;
  padding: 0 1rem;
}
.fpf-section--static {
  border-top: 0;
  padding-top: 0.25rem;
  padding-bottom: 1rem;
}
@media (max-width: 1023px) {
  .fpf-section--static {
    padding-top: 0;
  }
}
.fpf-section__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0.875rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.fpf-section__title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.fpf-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
.fpf-section__chev {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .25s ease;
}
.fpf-section__head[aria-expanded="false"] .fpf-section__chev {
  transform: rotate(-90deg);
}
.fpf-section__head:hover .fpf-section__chev {
  color: var(--ink);
}
.fpf-section__wrap {
  display: grid;
  grid-template-rows: 1fr;
  max-height: 3000px;
  transition: grid-template-rows .28s ease, max-height .28s ease;
  overflow: hidden;
}
.fpf-section.is-collapsed .fpf-section__wrap {
  grid-template-rows: 0fr;
  max-height: 0;
}
.fpf-section__wrap > .fpf-section__body {
  overflow: hidden;
  min-height: 0;
}
.fpf-section.is-collapsed .fpf-section__body {
  padding-bottom: 0;
  gap: 0;
}
.fpf-section__body {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding-bottom: 1.125rem;
}
.fpf-section--static .fpf-section__body {
  padding-bottom: 0;
}
.fpf-field {
  min-width: 0;
}
.fpf-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .015em;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Селект сортировки */
.fpf-select {
  position: relative;
  min-width: 0;
}
.fpf-select__el {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card, #fff);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fpf-select__el:hover {
  border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
}
.fpf-select__el:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}
.fpf-select__chev {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

/* Диапазоны «от — до» */
.fpf-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.fpf-range__box {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card, #fff);
  cursor: text;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fpf-range__box:hover {
  border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
}
.fpf-range__box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}
.fpf-range__prefix {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}
.fpf-range__box input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0 !important;
  background: transparent !important;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  box-shadow: none !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.fpf-range__box input::-webkit-outer-spin-button,
.fpf-range__box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fpf-range__box input::placeholder {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}
.fpf-range__box select {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* === Секция фильтров «Когда нужен зал» === */
.fpf-when-section .fpf-section__head {
  flex-wrap: wrap;
  padding: 0.625rem 0 0.5rem;
}
.fpf-when-section .fpf-section__body {
  gap: 6px;
  padding-bottom: 0.875rem;
}
/* Свёрнутая секция сама показывает выбранное — разворачивать ради проверки не нужно.
   Сводка идёт второй строкой: рядом с заголовком в узкой панели её нечем показать. */
.fpf-when-section .fpf-section__title {
  white-space: nowrap;
}
.fpf-when__summary {
  order: 3;
  flex: 0 0 100%;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fpf-when__summary.is-on {
  color: var(--accent);
  font-weight: 600;
}
.fpf-when-section:not(.is-collapsed) .fpf-when__summary {
  display: none;
}
.dp-field--compact {
  margin-top: 0;
  padding: 8px 10px;
  gap: 8px;
  border-radius: 12px;
}
.dp-field--compact .dp-field__text {
  font-size: 13px;
}
/* Дата и сброс в одной строке: крестик рядом с полем понятнее, чем ссылка
   «сбросить», спрятанная в календаре. */
.fpf-when__date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.fpf-when__date-row .dp {
  flex: 1;
  min-width: 0;
}
.fpf-when__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.fpf-when__clear:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.fpf-when__clear[hidden] {
  display: none;
}
.fpf-when-section .fpf-range__box select,
.fpf-when-section .fpf-select__el {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
}
.fpf-when__params {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fpf-when__params[hidden] {
  display: none;
}
/* Время и длительность: «с … / по …» в строку, длительность под ними. */
.fpf-range--time .fpf-select--compact {
  grid-column: 1 / -1;
}
.fpf-when__note {
  margin: 0;
  padding: 0 2px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.fpf-when__note.is-warning {
  color: #b45309;
}

/* Календарь — плавающим слоем у поля, а не в панели: панель скроллится и
   режет всё, что из неё выступает, а статичный календарь съедал её высоту. */
.fpf-when__cal {
  position: fixed;
  z-index: 1300;
  padding: 12px;
  border-radius: 16px;
  background: var(--card, #fff);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .18), 0 0 0 1px rgba(16, 24, 40, .05);
}
.fpf-when__cal[hidden] {
  display: none;
}
.fpf-when__cal .dp-pop__head {
  margin-bottom: 10px;
}
.fpf-when__cal .dp-nav {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--bg-soft);
}
.fpf-when__cal .mc-cell {
  font-size: 13px;
}
/* Точка под числом означает загруженность конкретного зала. В фильтре зал ещё
   не выбран, а на мелкой ячейке она лезет на само число. */
.fpf-when__cal .mc-cell::after {
  display: none;
}
[data-theme="dark"] .fpf-when__cal {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}

.fpf-filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card, #fff);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fpf-filter-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}
.fpf-filter-search__icon {
  flex-shrink: 0;
  color: var(--muted);
}
.fpf-filter-search__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0 !important;
  background: transparent !important;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  box-shadow: none !important;
}
.fpf-filter-search__input::placeholder {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}
.fpf-filter-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.fpf-filter-search__empty {
  margin: 0.5rem 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
[data-theme="dark"] .fpf-filter-search {
  background: var(--card);
}

/* Чипы (тип света, районы) */
.fpf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fpf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  padding: 6px 11px;
  border: none;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  word-break: break-word;
  transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.fpf-chip:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.fpf-chip__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fpf-chip__check {
  flex-shrink: 0;
  width: 0;
  opacity: 0;
  transform: scale(.5);
  transition: width .18s ease, opacity .15s ease, transform .18s ease, margin-right .18s ease;
  margin-right: 0;
}
.fpf-chip.is-on,
.fpf-chip:has(.fpf-chip__input:checked) {
  background: rgba(var(--accent-rgb), .12);
  border: none;
  color: var(--accent-dark, var(--accent));
  font-weight: 600;
  box-shadow: none;
}
.fpf-chip.is-on:hover,
.fpf-chip:has(.fpf-chip__input:checked):hover {
  background: rgba(var(--accent-rgb), .18);
}
.fpf-chip.is-on .fpf-chip__check,
.fpf-chip:has(.fpf-chip__input:checked) .fpf-chip__check {
  width: 14px;
  margin-right: 5px;
  opacity: 1;
  transform: scale(1);
}
.fpf-chip:has(.fpf-chip__input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[data-theme="dark"] .fpf-chip.is-on,
[data-theme="dark"] .fpf-chip:has(.fpf-chip__input:checked) {
  background: rgba(var(--accent-rgb), .2);
  border: none;
  color: #c9956a;
}
[data-theme="dark"] .fpf-chip.is-on:hover,
[data-theme="dark"] .fpf-chip:has(.fpf-chip__input:checked):hover {
  background: rgba(var(--accent-rgb), .28);
}
.fpf-chip [data-facet-count] {
  margin-left: 4px;
}
.fpf-chip__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}

/* Кастомные чекбоксы */
.fpf-checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fpf-checks .catalog-filter-subgroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fpf-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin: 0 -6px;
  padding: 5px 6px;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.fpf-check:hover {
  background: var(--bg-soft);
}
.fpf-check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fpf-check__box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 55%, var(--line));
  border-radius: 6px;
  background: var(--card, #fff);
  color: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.fpf-check__box svg {
  opacity: 0;
  transform: scale(.4);
  transition: opacity .15s ease, transform .18s cubic-bezier(.2, 1.4, .5, 1);
}
.fpf-check:hover .fpf-check__box {
  border-color: color-mix(in srgb, var(--ink) 45%, var(--line));
}
.fpf-check:has(.fpf-check__input:checked) .fpf-check__box {
  background: var(--accent);
  border-color: var(--accent);
}
.fpf-check:has(.fpf-check__input:checked) .fpf-check__box svg {
  opacity: 1;
  transform: scale(1);
}
.fpf-check:has(.fpf-check__input:focus-visible) .fpf-check__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.fpf-check__text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}
.fpf-check:has(.fpf-check__input:checked) .fpf-check__text {
  font-weight: 600;
}
.fpf-check [data-facet-count] {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  margin-top: 2px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fpf-check.is-zero {
  opacity: .45;
}
[data-theme="dark"] .fpf-check__box {
  background: var(--bg-soft);
}
[data-theme="dark"] .fpf-check:has(.fpf-check__input:checked) .fpf-check__box {
  background: var(--accent);
}
.catalog-results {
  padding: 1rem var(--catalog-inline-pad) 2.5rem;
  min-width: 0;
  container-type: inline-size;
  container-name: catalog-results;
}
/* Container queries: card grid follows middle column width when map is visible */
@container catalog-results (max-width: 359px) {
  .catalog-shell:not(.catalog-shell--no-map) .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.catalog-page .catalog-grid {
  gap: 1rem;
}
@media (max-width: 639px) {
  .catalog-page {
    --catalog-inline-pad: 1rem;
  }
  .catalog-page .catalog-grid {
    gap: 16px 10px;
  }
  /* Две колонки на телефоне: карточка ~170px — фото выше, мельче сердечко и подписи. */
  .catalog-page .catalog-grid .hall-card > .relative.rounded-2xl {
    aspect-ratio: 12 / 13;
  }
  .catalog-page .catalog-grid .hall-card .card-slider .cs-dots {
    bottom: 6px;
    gap: 3px;
  }
  .catalog-page .catalog-grid .hall-card .card-slider .cs-dot {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 0 .5px rgba(0,0,0,.2);
  }
  .catalog-page .catalog-grid .hall-card .card-slider .cs-dot.is-active {
    transform: scale(1.35);
  }
  .catalog-page .catalog-grid .hall-card .hc-when-chips {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 3px;
    margin-top: 5px;
  }
  .catalog-page .catalog-grid .hall-card .hc-when-chip {
    flex-shrink: 0;
  }
  .catalog-page .catalog-grid .hall-card .hc-when-chip {
    gap: 3px;
    padding: 2px 6px;
    font-size: 10px;
  }
  .catalog-page .catalog-grid .hall-card .hc-when-chip svg {
    width: 9px;
    height: 9px;
  }
  .catalog-page .catalog-grid .hall-card .like-floating {
    top: 6px; right: 6px;
    width: 28px; height: 28px;
  }
  .catalog-page .catalog-grid .hall-card .like-floating svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .catalog-page .catalog-grid .hall-card .hc-catalog-studio,
  .catalog-page .catalog-grid .hall-card .hc-name {
    font-size: 12px;
  }
  .catalog-page .catalog-grid .hall-card .hc-hall-sub,
  .catalog-page .catalog-grid .hall-card .hc-hall-sub__label {
    font-size: 12px;
  }
  .catalog-page .catalog-grid .hall-card .hc-price-value {
    font-size: 12px;
  }
  .catalog-page .catalog-grid .hall-card .hc-price-unit {
    font-size: 11px;
  }
  .catalog-page .catalog-grid .hall-card .hc-rating {
    font-size: 11px;
  }
  .catalog-page .catalog-grid .hall-card .hc-rating .hc-star {
    width: 10px;
    height: 10px;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .catalog-page .catalog-grid {
    gap: 1rem 1rem;
  }
}
.catalog-results__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  margin-bottom: 1.25rem;
}
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.catalog-toolbar__heading {
  min-width: 0;
}
.catalog-results__head .catalog-toolbar__heading.section-title {
  font-size: 16px;
  font-weight: 600;
}
.catalog-toolbar__actions {
  margin-left: auto;
}
/* Количество вариантов — та же строка заголовка, без отдельного веса и цвета. */
.catalog-catnav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.catalog-catnav-row .cat-nav--catalog {
  flex: 1;
  min-width: 0;
}
.catalog-results__head .cat-nav--catalog {
  margin-top: 0;
  border-top: none;
}
.catalog-results__head .cat-nav--catalog.cat-nav--inline .cat-nav__track {
  padding: 4px 0 6px;
  margin: 0;
  gap: 8px;
}
.catalog-results__head .cat-nav--catalog .cat-pill {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.catalog-results__head .cat-nav--catalog .cat-pill:hover,
.catalog-results__head .cat-nav--catalog .cat-pill.active,
.catalog-results__head .cat-nav--catalog .cat-pill.active:hover,
.cat-nav--catalog.cat-nav--inline .cat-pill:hover,
.cat-nav--catalog.cat-nav--inline .cat-pill.active,
.cat-nav--catalog.cat-nav--inline .cat-pill.active:hover {
  background: var(--line);
  border-color: var(--line);
}
.catalog-results__head .cat-nav--catalog .cat-pill.active,
.cat-nav--catalog.cat-nav--inline .cat-pill.active {
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
}
@media (max-width: 1023px) {
  .catalog-results__head {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .catalog-results__head .catalog-toolbar {
    display: block;
    padding-top: 0;
  }
  .catalog-results {
    padding-bottom: calc(2.5rem + 72px + env(safe-area-inset-bottom, 0px));
  }
  .catalog-results__head .cat-nav--catalog {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0.25rem;
    /* Выравнивание с заголовком: breakout + inset = --catalog-inline-pad как у .catalog-results */
    margin-left: calc(-1 * var(--catalog-inline-pad));
    margin-right: calc(-1 * var(--catalog-inline-pad));
    padding-left: var(--catalog-inline-pad);
    padding-right: var(--catalog-inline-pad);
    box-sizing: border-box;
  }
  .catalog-results__head .cat-nav--catalog.cat-nav--inline .cat-nav__track {
    padding: 2px 0 4px;
    scroll-padding-inline: var(--catalog-inline-pad);
    gap: 6px;
  }
  .catalog-results__head .cat-nav--catalog .cat-pill {
    padding: 7px 13px;
    font-size: 13px;
  }
  .catalog-results__head #catalog-chips-wrap {
    padding-top: 0;
  }
}
@media (min-width: 1024px) {
  .catalog-results__head {
    gap: 0.75rem;
    padding-top: 0.5rem;
    margin-bottom: 1rem;
  }
  .catalog-results {
    padding: 0.25rem var(--catalog-inline-pad) 2rem;
    align-self: start;
  }
  .catalog-shell:not(.catalog-shell--no-map) .catalog-results {
    padding: 0.25rem;
  }
  .catalog-map-col {
    padding: 0;
  }
  .catalog-map-col .map-card {
    border: none;
    box-shadow: var(--shadow-sm);
  }
  .catalog-shell:not(.catalog-shell--no-map) .catalog-map-col .map-card {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
  }
}
.catalog-map-col {
  padding: 0;
  min-width: 0;
}
.catalog-map-sticky {
  position: sticky;
  top: var(--catalog-sticky-top);
  z-index: 30;
}
@media (min-width: 1024px) {
  .catalog-map-col {
    align-self: stretch;
    margin-top: calc(-1rem - 1px);
    padding-top: 0;
  }
  .catalog-map-sticky {
    margin-top: 0;
    padding-top: 0;
    height: calc(100dvh - var(--catalog-sticky-top));
  }
}
.catalog-map-fab {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, .16),
    0 3px 10px rgba(0, 0, 0, .08),
    0 0 0 1px rgba(0, 0, 0, .03);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #111);
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
@media (min-width: 1024px) {
  .catalog-map-fab:not(.hidden) {
    display: inline-flex;
  }
}
.catalog-map-fab:hover {
  background: var(--card);
  color: var(--ink, #111);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .18),
    0 4px 12px rgba(0, 0, 0, .1),
    0 0 0 1px rgba(0, 0, 0, .04);
  transform: translateY(-2px);
}
.catalog-map-fab__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
html[data-theme="dark"] .catalog-map-fab {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink, #f5f5f5);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, .45),
    0 3px 10px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 255, 255, .06);
}
html[data-theme="dark"] .catalog-map-fab:hover {
  background: var(--card);
  border-color: color-mix(in srgb, var(--ink) 22%, var(--line));
  color: var(--ink, #f5f5f5);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .52),
    0 4px 12px rgba(0, 0, 0, .32),
    0 0 0 1px rgba(255, 255, 255, .08);
}
.catalog-mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 10px var(--catalog-inline-pad) calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
body.catalog-mobile-map-open .catalog-mobile-dock {
  display: none;
}
.catalog-mobile-dock__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.catalog-mobile-dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, .14),
    0 3px 10px rgba(0, 0, 0, .08),
    0 0 0 1px rgba(0, 0, 0, .03);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #111);
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.catalog-mobile-dock__btn:hover {
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .16),
    0 4px 12px rgba(0, 0, 0, .1),
    0 0 0 1px rgba(0, 0, 0, .04);
  transform: translateY(-1px);
}
.catalog-mobile-dock__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}
.catalog-mobile-dock__btn--map .catalog-mobile-dock__icon {
  color: var(--ink, #111);
}
.catalog-mobile-dock__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.catalog-mobile-dock__badge.hidden {
  display: none;
}
html[data-theme="dark"] .catalog-mobile-dock__btn {
  box-shadow:
    0 10px 32px rgba(0, 0, 0, .45),
    0 3px 10px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 255, 255, .06);
}
/* === Строка быстрых фильтров: «Когда», «Фильтры» (телефон) + пресеты === */
.catalog-results__head .cat-nav--catalog .catalog-filters-pill {
  gap: 6px;
  font-weight: 600;
}
.catalog-filters-pill__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.catalog-filters-pill__badge.hidden {
  display: none;
}
@media (max-width: 1023px) {
  /* На телефоне шапка сайта в каталоге прокручивается вместе со страницей:
     вверху закрепляется только строка «Когда · Фильтры · пресеты». */
  body:has([data-catalog-quick]) > header,
  body:has([data-catalog-quick]) header.sticky {
    position: relative;
  }
  .catalog-results__head .cat-nav--catalog.catalog-quick.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
    margin: 0;
    padding-top: max(6px, env(safe-area-inset-top, 0px));
    padding-bottom: 4px;
    padding-left: var(--catalog-inline-pad);
    padding-right: var(--catalog-inline-pad);
    box-sizing: border-box;
    background: transparent;
    pointer-events: none;
    animation: catalog-quick-in .18s ease-out;
  }
  /* Градиентное размытие под кнопками: сверху сильное, книзу сходит на нет. */
  .catalog-results__head .cat-nav--catalog.catalog-quick.is-stuck::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% + 16px);
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(2.5px);
    backdrop-filter: blur(2.5px);
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
    mask-image: linear-gradient(to bottom, #000 45%, transparent);
  }
  /* Закреплённая строка — только две плавающие кнопки. */
  .catalog-quick.is-stuck .catalog-preset-pill,
  .catalog-quick.is-stuck .catalog-quick__sep {
    display: none;
  }
  .catalog-quick.is-stuck .cat-nav__track {
    overflow: visible;
    gap: 6px;
    padding: 0;
  }
  .catalog-quick.is-stuck .catalog-when-pill svg,
  .catalog-quick.is-stuck .catalog-filters-pill svg {
    width: 14px;
    height: 14px;
  }
  .catalog-results__head .cat-nav--catalog.catalog-quick.is-stuck .cat-pill {
    pointer-events: auto;
    border-radius: 12px;
    box-shadow:
      0 4px 14px rgba(0, 0, 0, .1),
      0 1px 4px rgba(0, 0, 0, .06),
      0 0 0 1px rgba(0, 0, 0, .04);
  }
  .catalog-results__head .cat-nav--catalog.catalog-quick.is-stuck .cat-pill:not(.active) {
    background: color-mix(in srgb, var(--card) 88%, transparent);
    border-color: var(--line);
  }
  .catalog-results__head .cat-nav--catalog.catalog-quick.is-stuck .cat-pill.active {
    background: var(--line);
    border-color: var(--line);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, .1),
      0 1px 4px rgba(0, 0, 0, .06);
  }
  html[data-theme="dark"] .catalog-results__head .cat-nav--catalog.catalog-quick.is-stuck .cat-pill {
    box-shadow:
      0 4px 14px rgba(0, 0, 0, .32),
      0 1px 4px rgba(0, 0, 0, .2),
      0 0 0 1px rgba(255, 255, 255, .06);
  }
  html[data-theme="dark"] .catalog-results__head .cat-nav--catalog.catalog-quick.is-stuck .cat-pill:not(.active) {
    background: color-mix(in srgb, var(--card) 92%, transparent);
  }
  body.catalog-mobile-map-open .catalog-quick.is-stuck {
    display: none;
  }
}
@keyframes catalog-quick-in {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.catalog-quick__sep {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 4px 2px;
  background: var(--line);
}
.catalog-results__head .cat-nav--catalog .catalog-when-pill {
  gap: 6px;
  font-weight: 600;
}
.catalog-when-pill__chev {
  opacity: .6;
  transition: transform .15s ease;
}
.catalog-when-pill[aria-expanded="true"] .catalog-when-pill__chev {
  transform: rotate(180deg);
}
.catalog-results__head .cat-nav--catalog .catalog-preset-pill {
  gap: 6px;
}
.catalog-preset-intro {
  margin: -0.25rem 0 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-line;
}
.catalog-applied-chip__x {
  display: inline-flex;
  align-items: center;
}

/* === Контрол «Когда нужен зал»: поповер (десктоп) и шторка (телефон) === */
.cwhen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(0, 0, 0, .4);
}
.cwhen-overlay[hidden],
.cwhen-panel[hidden],
.cwhen-exact[hidden],
.cwhen-panel [hidden] {
  display: none;
}
.cwhen-panel {
  position: fixed;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  color: var(--ink);
}
.cwhen-panel.is-pop {
  width: min(600px, calc(100vw - 24px));
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .2), 0 0 0 1px rgba(16, 24, 40, .06);
}
.cwhen-panel.is-sheet {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(100dvh - 48px);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: cwhen-sheet-in .22s ease-out;
}
@keyframes cwhen-sheet-in {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.cwhen-panel__grab {
  display: none;
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--line);
}
.cwhen-panel.is-sheet .cwhen-panel__grab {
  display: block;
}
.cwhen-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 6px 20px;
}
.cwhen-panel.is-pop .cwhen-panel__head {
  display: none;
}
.cwhen-panel__title {
  font-size: 17px;
  font-weight: 700;
}
.cwhen-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cwhen-panel__close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.cwhen-panel__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 8px 20px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cwhen-panel.is-pop .cwhen-panel__body {
  grid-template-columns: 272px 1fr;
  gap: 20px;
  padding: 16px 18px 8px;
}
.cwhen-cal .dp-pop__head {
  margin-bottom: 10px;
}
.cwhen-cal .dp-nav {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--bg-soft);
}
.cwhen-cal .mc-cell {
  font-size: 13px;
}
.cwhen-cal .mc-cell::after {
  display: none;
}
.cwhen-cal .mc-cell.is-today:not(.is-active) .mc-num {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cwhen-panel.is-sheet .cwhen-cal .mc-cell {
  font-size: 15px;
}
.cwhen-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cwhen-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.cwhen-block:has(.cwhen-times) .cwhen-label {
  margin-bottom: 5px;
  font-size: 11px;
}
.cwhen-times {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cwhen-time {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 5px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}
.cwhen-time:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.cwhen-time.is-active {
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent-dark, var(--accent));
  font-weight: 600;
}
.cwhen-time__name {
  font-size: 12px;
  font-weight: 600;
}
.cwhen-time.is-active .cwhen-time__name {
  color: inherit;
}
.cwhen-time__hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.cwhen-time.is-active .cwhen-time__hint {
  color: color-mix(in srgb, currentColor 70%, var(--muted));
}
[data-theme="dark"] .cwhen-time.is-active {
  background: rgba(var(--accent-rgb), .2);
  color: #c9956a;
}
.cwhen-exact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.cwhen-exact select {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
}
.cwhen-block--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cwhen-block--row .cwhen-label {
  margin: 0;
}
.cwhen-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.cwhen-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}
.cwhen-stepper__btn:disabled {
  opacity: .35;
  cursor: default;
}
.cwhen-stepper__value {
  min-width: 64px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.cwhen-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.cwhen-note.is-warning {
  color: #b45309;
}
.cwhen-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}
.cwhen-panel.is-pop .cwhen-panel__foot {
  padding: 0.625rem 1rem;
}
.cwhen-panel__done {
  margin-left: auto;
  transition: opacity .15s ease;
}
.cwhen-panel__done.is-loading {
  opacity: .7;
}
[data-theme="dark"] .cwhen-panel.is-pop {
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
[data-theme="dark"] .cwhen-panel.is-sheet {
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
[data-theme="dark"] .cwhen-overlay {
  background: rgba(0, 0, 0, .6);
}
.catalog-map-float-btn {
  position: absolute;
  top: 1rem;
  left: 0.75rem;
  z-index: 1100;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  color: var(--ink, #111);
  line-height: 1;
  transition: background .15s, box-shadow .15s;
}
.catalog-map-float-btn:hover {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .14);
}
html[data-theme="dark"] .catalog-map-float-btn {
  background: rgba(24, 24, 24, .78);
  border-color: rgba(255, 255, 255, .12);
  color: var(--ink, #f5f5f5);
}
.catalog-map-col .map-card {
  height: calc(100dvh - var(--catalog-sticky-top) - 1rem - 0.75rem);
  min-height: 420px;
}
@media (min-width: 1024px) {
  .catalog-map-col .map-card {
    height: 100%;
    min-height: 0;
    padding-bottom: 0;
  }
}
.catalog-mobile-map__body {
  position: relative;
}
.catalog-mobile-map__body::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1085;
  height: calc(72px + env(safe-area-inset-top, 0px));
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .28) 0%,
    rgba(0, 0, 0, .08) 50%,
    transparent 100%
  );
}
.catalog-mobile-map__body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1090;
  height: calc(100px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .38) 0%,
    rgba(0, 0, 0, .12) 42%,
    transparent 100%
  );
}
.catalog-mobile-map__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: grid;
  /* Боковые колонки равные — счётчик стоит ровно по центру. */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding:
    calc(12px + env(safe-area-inset-top, 0px))
    calc(12px + env(safe-area-inset-right, 0px))
    0
    calc(12px + env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.catalog-mobile-map__map {
  border-radius: 0;
  border: 0;
}
.catalog-mobile-map__filters {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}
html[data-theme="dark"] .catalog-mobile-map__filters {
  background: rgba(28, 28, 28, .88);
  border-color: rgba(255, 255, 255, .14);
  color: var(--ink, #f5f5f5);
}
@media (max-width: 340px) {
  .catalog-mobile-map__filters {
    padding: 0 12px;
  }
  .catalog-mobile-map__filters-label {
    display: none;
  }
}
.catalog-mobile-map__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  color: var(--ink, #111);
  cursor: pointer;
  pointer-events: auto;
  justify-self: end;
}
html[data-theme="dark"] .catalog-mobile-map__close {
  background: rgba(28, 28, 28, .88);
  border-color: rgba(255, 255, 255, .14);
  color: var(--ink, #f5f5f5);
}
.catalog-mobile-map__count {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-mobile-map__count:empty {
  display: none;
}
html[data-theme="dark"] .catalog-mobile-map__count {
  background: rgba(28, 28, 28, .88);
  border-color: rgba(255, 255, 255, .14);
  color: var(--ink, #f5f5f5);
}
body.catalog-mobile-map-open {
  overflow: hidden;
}
body.catalog-mobile-map-open .catalog-shell > .catalog-results {
  visibility: hidden;
  pointer-events: none;
}
.map-popup-sheet-host {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1150;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px calc(20px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.map-popup-sheet-host:empty {
  display: none;
}
.catalog-mobile-map .map-popup-sheet-host {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.map-popup-sheet-host > .leaflet-popup {
  flex: 0 0 auto;
  width: auto;
  max-width: calc(100vw - 24px);
}
@media (max-width: 1023px) {
  .catalog-mobile-map .leaflet-popup.map-popup-sheet {
    z-index: 1150;
    pointer-events: auto;
    margin: 0 !important;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .leaflet-popup-tip-container {
    display: none !important;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .leaflet-popup-content-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    box-sizing: border-box;
  }
  /* На шторке и обёртке инлайн transform: none !important, поэтому анимируем содержимое. */
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .map-popup-visual {
    animation: mpv-sheet-in .18s ease-out;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .leaflet-popup-close-button {
    position: absolute !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    z-index: 25 !important;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .leaflet-popup-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .leaflet-popup-content:has(.map-popup-visual) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .map-popup-visual,
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .mpv-frame {
    width: 100% !important;
    max-width: none !important;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet.map-popup-sheet--landscape .mpv-media {
    width: 100%;
    height: min(34vh, 168px);
    aspect-ratio: unset;
    max-height: none;
  }
  .catalog-mobile-map .leaflet-popup.map-popup-sheet.map-popup-sheet--landscape .mpv-media .card-slider,
  .catalog-mobile-map .leaflet-popup.map-popup-sheet.map-popup-sheet--landscape .mpv-media > img,
  .catalog-mobile-map .leaflet-popup.map-popup-sheet.map-popup-sheet--landscape .mpv-media .fp-img-fallback {
    max-height: none;
    height: 100%;
  }
}
@keyframes mpv-sheet-in {
  from { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-mobile-map .leaflet-popup.map-popup-sheet .map-popup-visual { animation: none; }
}
.catalog-filters-overlay {
  z-index: 1200;
}
@media (max-width: 1023px) {
  .catalog-filters {
    z-index: 1210;
  }
}
@media (min-width: 1024px) {
  .catalog-filters-overlay {
    display: none !important;
  }
}

/* Кнопка построения маршрута на карте студии */
.map-action-btn {
  position: absolute; z-index: 400;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.map-action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.16); }

/* Leaflet controls — Ostrovok-style white pills */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  border-radius: 999px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  width: 36px !important; height: 36px !important; line-height: 36px !important;
  background: #fff !important; color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 18px !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: #f8f8f8 !important; }
.leaflet-control-scale-line {
  background: rgba(255,255,255,.92) !important;
  border: 1px solid var(--line) !important;
  border-top: none !important;
  border-radius: 0 0 6px 6px !important;
  padding: 2px 6px 1px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
[data-theme="dark"] .leaflet-control-zoom a { background: var(--card) !important; color: var(--ink) !important; }
[data-theme="dark"] .leaflet-control-scale-line { background: rgba(30,31,36,.92) !important; }

.fp-fit-all {
  position: absolute;
  right: 12px;
  bottom: 132px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer;
}
.fp-fit-all:hover { background: #f8f8f8; }
[data-theme="dark"] .fp-fit-all { background: var(--card); color: var(--ink); }

/* Логотип Яндекса вместо текстовой атрибуции */
.leaflet-control-attribution:has(.map-yandex-logo) {
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
}
.map-yandex-logo {
  display: block;
  line-height: 0;
}
.map-yandex-logo img {
  display: block;
  height: 40px;
  width: auto;
}
.leaflet-bottom.leaflet-right .leaflet-control-zoom {
  margin-bottom: 8px;
}
.catalog-mobile-map .leaflet-bottom.leaflet-right .leaflet-control-zoom {
  margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.catalog-mobile-map .fp-fit-all {
  right: 10px;
  bottom: calc(142px + env(safe-area-inset-bottom, 0px));
}

/* Pin студии на single-карте */
.place-pin {
  width: 28px; height: 36px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2.5px solid #fff;
  box-shadow: 0 3px 12px rgba(var(--accent-rgb),.35);
  position: relative;
}
.place-pin::after {
  content: "";
  position: absolute; inset: 7px;
  background: #fff; border-radius: 50%;
}

/* Маркер метро M */
.metro-pin {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid #E53935;
  color: #E53935; font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  line-height: 1;
}

/* === Skeleton (shimmer) === */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  border-radius: 12px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: fp-shimmer 1.4s infinite;
}
[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
}
@keyframes fp-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-card { display: flex; flex-direction: column; gap: 12px; }
.skeleton-card .sk-img { aspect-ratio: 1/1; border-radius: 16px; }
.skeleton-card .sk-line { height: 12px; border-radius: 6px; }
.skeleton-card .sk-line.short { width: 60%; }

/* === Промо-баннер === */
.promo-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: linear-gradient(110deg, #7B5344 0%, #5C4033 60%, #3D2314 100%);
  color: #fff; border-radius: 20px;
  box-shadow: 0 8px 26px rgba(var(--accent-rgb),.25);
  position: relative; overflow: hidden;
}
.promo-banner::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
}
.promo-banner__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,.18);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.promo-banner__code {
  margin-left: auto;
  background: #fff; color: var(--accent);
  font-weight: 600; padding: 8px 14px;
  border-radius: 10px; font-size: 13px;
  letter-spacing: 0.5px; cursor: pointer;
  border: 2px dashed #fff;
  transition: transform .15s ease;
}
.promo-banner__code:hover { transform: scale(1.03); }

/* === Compare floating bar === */
.compare-bar {
  position: fixed; left: 50%; bottom: 22px;
  transform: translate(-50%, 30px);
  background: var(--ink); color: #fff;
  border-radius: 20px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
  max-width: calc(100vw - 32px);
}
.compare-bar.is-visible {
  transform: translate(-50%, 0); opacity: 1; pointer-events: auto;
}
.compare-bar__items { display: flex; gap: 8px; }
.compare-bar__item {
  position: relative; width: 48px; height: 48px;
  border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
}
.compare-bar__item img { width: 100%; height: 100%; object-fit: cover; }
.compare-bar__item .fp-img-fallback { width: 100%; height: 100%; min-height: 0; }
.compare-bar__item button {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
}
.compare-bar__placeholder {
  width: 48px; height: 48px; border-radius: 12px;
  border: 2px dashed rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
}
.compare-bar__cta {
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 12px;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s ease;
}
.compare-bar__cta:hover { background: var(--accent-dark); }
.compare-bar__cta[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.compare-bar__clear {
  background: transparent; color: rgba(255,255,255,.6);
  padding: 8px; font-size: 12px;
}
.compare-bar__clear:hover { color: #fff; }

/* === Quick view modal === */
.qv-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.qv-overlay.is-open { display: flex; animation: fp-fade .2s ease; }
.qv-card {
  width: 100%; max-width: 920px; max-height: 92vh;
  background: var(--card); border-radius: 24px;
  overflow: hidden; display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: fp-pop .25s cubic-bezier(.2,.8,.2,1);
}
@media (max-width: 760px) {
  .qv-card { grid-template-columns: 1fr; max-height: 96vh; }
}
.qv-card .qv-img {
  background: var(--bg-soft);
  min-height: 260px;
}
.qv-card .qv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-card .qv-body {
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
}
.qv-card .qv-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
@keyframes fp-fade { from {opacity:0;} to {opacity:1;} }
@keyframes fp-pop { from {transform:scale(.96); opacity:0;} to {transform:scale(1); opacity:1;} }

/* === Typeahead dropdown === */
.typeahead-wrap { position: relative; }
.typeahead-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.12);
  padding: 8px;
  z-index: 60;
  max-height: min(420px, calc(100vh - 120px));
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.header-search.typeahead-wrap .typeahead-list {
  top: 100%;
  left: -1px;
  right: -1px;
  width: auto;
  min-width: 0;
  max-width: none;
  margin-top: 0;
  padding: 4px 4px 6px;
  border-radius: 0 0 16px 16px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .1);
}
.header-search.typeahead-wrap .typeahead-list.is-open {
  animation: typeahead-header-in .15s ease-out;
}
.header-search.typeahead-wrap .typeahead-section {
  padding: 5px 8px 2px;
  font-size: 10px;
}
.header-search.typeahead-wrap .typeahead-item {
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
}
.header-search.typeahead-wrap .typeahead-item .ti-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.header-search.typeahead-wrap .typeahead-item .ti-name {
  font-size: 13px;
  line-height: 1.2;
}
.header-search.typeahead-wrap .typeahead-item .ti-meta {
  font-size: 11px;
  line-height: 1.25;
}
.header-search.typeahead-wrap .typeahead-item .ti-body {
  gap: 1px;
}
.header-search.typeahead-wrap .typeahead-item .ti-tag {
  padding: 2px 6px;
  font-size: 9px;
}
.header-search.typeahead-wrap .typeahead-footer {
  margin-top: 4px;
  padding-top: 4px;
}
.header-search.typeahead-wrap .typeahead-loading {
  padding: 12px 10px;
  font-size: 12px;
}
@keyframes typeahead-header-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-theme="dark"] .header-search.typeahead-wrap:has(.typeahead-list.is-open) {
  background: var(--card);
}
[data-theme="dark"] .header-search.typeahead-wrap .typeahead-list {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.typeahead-list.is-open {
  display: block;
  animation: typeahead-in .18s cubic-bezier(.2,.7,.2,1);
}
@keyframes typeahead-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.typeahead-group + .typeahead-group,
.typeahead-group + .typeahead-footer { margin-top: 4px; }
.typeahead-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 8px 12px 6px;
}
.typeahead-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease, transform .12s ease;
}
.typeahead-item:hover,
.typeahead-item.is-active {
  background: var(--bg-soft);
}
.typeahead-item.is-active {
  box-shadow: inset 0 0 0 1px var(--line);
}
.typeahead-item .ti-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.typeahead-item .ti-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.typeahead-item .ti-thumb--district {
  background: rgba(59, 130, 246, .1);
  color: #2563eb;
}
.typeahead-item .ti-thumb--studio {
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
}
.typeahead-item .ti-thumb--hall {
  background: rgba(34, 34, 34, .06);
  color: var(--ink);
}
.typeahead-item .ti-thumb--search {
  background: var(--bg-soft);
  color: var(--muted);
}
[data-theme="dark"] .typeahead-item .ti-thumb--search {
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
}
.typeahead-item--cta:hover .ti-thumb--search,
.typeahead-item--cta.is-active .ti-thumb--search {
  color: var(--ink);
}
.typeahead-item .ti-thumb--preset {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}
.typeahead-item .ti-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.typeahead-item .ti-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.typeahead-item .ti-meta {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.typeahead-item .ti-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  text-transform: lowercase;
}
.typeahead-item .ti-tag--district { background: rgba(59, 130, 246, .1); color: #2563eb; }
.typeahead-item .ti-tag--studio { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.typeahead-item .ti-tag--hall { background: rgba(34, 34, 34, .06); color: var(--muted); }
.typeahead-item .ti-arrow {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .12s ease, transform .12s ease, color .12s ease;
}
.typeahead-item:hover .ti-arrow,
.typeahead-item.is-active .ti-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--ink);
}
.typeahead-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.typeahead-item--text {
  gap: 8px;
}
.typeahead-item--cta {
  background: transparent;
}
.typeahead-item--cta:hover,
.typeahead-item--cta.is-active {
  background: var(--bg-soft);
}
.typeahead-item--cta .ti-name {
  color: var(--ink);
  font-weight: 600;
}
.typeahead-item--cta .ti-meta {
  color: var(--muted);
}
.typeahead-item--cta .ti-arrow {
  opacity: .5;
  transform: translateX(0);
  color: var(--muted);
}
.typeahead-item--cta:hover .ti-arrow,
.typeahead-item--cta.is-active .ti-arrow {
  opacity: 1;
  color: var(--ink);
}
.typeahead-loading {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.typeahead-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 24px;
  gap: 6px;
}
.typeahead-empty__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.typeahead-empty__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.typeahead-empty__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
[data-theme="dark"] .typeahead-list {
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
[data-theme="dark"] .typeahead-item .ti-thumb--hall {
  background: rgba(255,255,255,.06);
  color: var(--ink);
}
[data-theme="dark"] .typeahead-item .ti-tag--hall {
  background: rgba(255,255,255,.06);
}

/* === Tema toggle === */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink);
  transition: background .15s ease, transform .15s ease;
}
.theme-toggle:hover { background: var(--line); transform: rotate(15deg); }

/* === Heart liked state === */
.studio-card .like-btn,
.list-card-compact .like-btn {
  cursor: pointer;
}
.like-btn { color: var(--ink); }
.like-floating.like-btn,
.map-popup-visual .mpv-fav.like-btn {
  color: rgba(255,255,255,.95);
}
/* Обводка выбранного сердечка наследует currentColor (белая на фото, тёмная на
   светлом фоне) — как у невыбранного; розовой делаем только заливку. */
.like-btn.is-liked { --heart-fill: var(--fav); }
.like-btn.is-liked .heart-empty { display: none; }
.like-btn:not(.is-liked) .heart-fill { display: none; }

.fav-heart { color: var(--fav); }

/* === Звезда рейтинга === */
.rating-star { color: var(--star); flex-shrink: 0; }

/* === Compare-кнопка на карточке (всегда видна, левый верх) === */
.compare-toggle {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  transition: background .12s ease, transform .12s ease, color .12s ease;
  border: 1.5px solid transparent; z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.compare-toggle:hover { transform: scale(1.06); background: #fff; }
.compare-toggle.is-active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.compare-toggle.is-active:hover { background: var(--accent-dark); }

/* === Quick-view (иконка-расширение, правый низ) === */
.qv-btn {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); z-index: 3;
  transition: background .12s ease, transform .12s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.qv-btn:hover { transform: scale(1.06); background: #fff; }

/* === Бэйджи поверх карточки === */
.card-badges {
  position: absolute; top: 12px; left: 12px; right: 52px;
  display: flex; gap: 6px; flex-wrap: wrap; z-index: 5; pointer-events: none;
}
.card-badge {
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.card-badge.is-instant { background: #16A34A; color: #fff; }
.card-badge.is-verified-owner { background: var(--accent); color: #fff; }
/* Галочка «Владелец подтверждён» рядом с названием студии в карточках. */
.studio-verified {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}
.studio-verified:focus { outline: none; }
.studio-verified:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.list-card-compact .studio-verified { width: 12px; height: 12px; }
/* Галочка на страницах студии и зала — рядом с названием, чуть крупнее карточек. */
.studio-verified--page {
  width: 18px;
  height: 18px;
}
.studio-verified-hint-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.studio-verified-hint-wrap .studio-verified {
  cursor: help;
}
.studio-verified-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--card);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
  text-align: left;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
/* На страницах студии и зала иконка у верхней шапки — подсказку показываем вниз. */
.studio-verified-hint-wrap:has(.studio-verified--page) .studio-verified-hint {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}
.studio-verified-hint__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.studio-verified-hint__text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: color-mix(in srgb, var(--card) 72%, transparent);
}
.studio-verified-hint__link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--card);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.studio-verified-hint__link:hover {
  color: #fff;
}
.studio-verified-hint::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.studio-verified-hint-wrap:has(.studio-verified--page) .studio-verified-hint::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--ink);
}
@media (hover: hover) {
  .studio-verified-hint-wrap:hover .studio-verified-hint,
  .studio-verified-hint-wrap:focus-within .studio-verified-hint {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}
[data-theme="dark"] .studio-verified-hint {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .studio-verified-hint__text {
  color: var(--muted);
}
[data-theme="dark"] .studio-verified-hint__link {
  color: var(--ink);
}
[data-theme="dark"] .studio-verified-hint__link:hover {
  color: var(--accent);
}
[data-theme="dark"] .studio-verified-hint::after {
  border-top-color: var(--card);
}
[data-theme="dark"] .studio-verified-hint-wrap:has(.studio-verified--page) .studio-verified-hint::after {
  border-top-color: transparent;
  border-bottom-color: var(--card);
}
.card-badge.is-rating {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-badge.is-rating .hc-star {
  width: 12px;
  height: 12px;
  color: var(--star);
  fill: currentColor;
  flex-shrink: 0;
}

/* === Мини-слайдер фото в карточке === */
.card-slider {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  touch-action: pan-y pinch-zoom;
  cursor: pointer;
}
.card-slider .cs-track {
  display: flex; height: 100%; width: 100%;
  transition: transform .25s cubic-bezier(.4,.1,.25,1);
  will-change: transform;
}
.card-slider .cs-track.cs-track--instant {
  transition: none !important;
}
.card-slider .cs-slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: cover; user-select: none; pointer-events: none;
}
.card-slider .cs-prev,
.card-slider .cs-next {
  position: absolute; top: 0; bottom: 0; height: 100%; width: 22%;
  padding: 0; border: none;
  background: transparent; color: #fff;
  display: flex; align-items: center;
  cursor: pointer; z-index: 4;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.card-slider .cs-prev { left: 0; justify-content: flex-start; padding-left: 8px; }
.card-slider .cs-next { right: 0; justify-content: flex-end; padding-right: 8px; }
.card-slider .cs-prev svg,
.card-slider .cs-next svg {
  width: 20px; height: 20px;
  transition: transform .12s ease;
}
.card-slider .cs-prev:hover:not(.is-disabled) svg,
.card-slider .cs-next:hover:not(.is-disabled) svg {
  transform: scale(1.08);
}
.studio-card:hover .card-slider .cs-prev,
.studio-card:hover .card-slider .cs-next,
.list-card-compact:hover .card-slider .cs-prev,
.list-card-compact:hover .card-slider .cs-next { opacity: 1; }
.studio-card:hover .card-slider .cs-prev:not(.is-disabled),
.studio-card:hover .card-slider .cs-next:not(.is-disabled),
.list-card-compact:hover .card-slider .cs-prev:not(.is-disabled),
.list-card-compact:hover .card-slider .cs-next:not(.is-disabled) { pointer-events: auto; }
.leaflet-popup-content:hover .card-slider .cs-prev:not(.is-disabled),
.leaflet-popup-content:hover .card-slider .cs-next:not(.is-disabled) { pointer-events: auto; }
.card-slider .cs-prev.is-disabled,
.card-slider .cs-next.is-disabled { opacity: 0 !important; pointer-events: none; }
.card-slider .cs-dots {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 5;
}
.card-slider .cs-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55); transition: background .12s ease, transform .12s ease;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.card-slider .cs-dot.is-active { background: #fff; transform: scale(1.25); }
/* На touch-устройствах :hover нет — стрелки карточек видны всегда.
   Тап по боковым зонам листает фото, по центру — открывает зал. */
@media (hover: none) {
  .studio-card .card-slider .cs-prev:not(.is-disabled),
  .studio-card .card-slider .cs-next:not(.is-disabled),
  .list-card-compact .card-slider .cs-prev:not(.is-disabled),
  .list-card-compact .card-slider .cs-next:not(.is-disabled) {
    opacity: 1;
    pointer-events: auto;
  }
  .studio-card .card-slider:not(.map-popup-visual .card-slider) .cs-dot {
    pointer-events: none;
  }
}

/* === Мозаичная галерея на странице студии (Airbnb-style) === */
.studio-gallery { position: relative; }
.studio-gallery .entity-catalog-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  margin: 0;
}
.studio-gallery .entity-catalog-back__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 14px 8px 10px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: background .12s ease;
}
.studio-gallery .entity-catalog-back__icon {
  width: 16px;
  height: 16px;
  margin-left: -2px;
  flex-shrink: 0;
  color: var(--ink);
}
.studio-gallery .entity-catalog-back__link:hover {
  background: #f2f2f2;
}
[data-theme="dark"] .studio-gallery .entity-catalog-back__link {
  background: #fff;
  color: var(--ink);
}
[data-theme="dark"] .studio-gallery .entity-catalog-back__link:hover {
  background: #e8e8e8;
}
.sg-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: clamp(320px, 46vh, 480px);
  border-radius: 20px; overflow: hidden;
}
.sg-mosaic .sg-cell {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
  border: 0; padding: 0; margin: 0;
  transition: filter .15s ease;
}
.sg-mosaic .sg-cell::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background .15s ease;
}
.sg-mosaic .sg-cell:hover::after { background: rgba(0,0,0,.06); }
.sg-mosaic .sg-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none;
}
.sg-mosaic .sg-main-cell {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
}
.sg-mosaic .sg-show-all {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.9); color: var(--ink);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 10px; padding: 7px 12px;
  font-size: 12px; font-weight: 600; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
}
.sg-mosaic .sg-show-all__icon { display: none; }
.sg-mosaic .sg-show-all:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
[data-theme="dark"] .sg-mosaic .sg-show-all {
  background: rgba(28,28,30,.82); color: var(--ink);
  border-color: rgba(255,255,255,.16);
}
[data-theme="dark"] .sg-mosaic .sg-show-all:hover { background: rgba(28,28,30,.95); }
.sg-mosaic .sg-zoom-hint {
  display: none;
  pointer-events: none;
}

/* Раскладки при малом числе фото (без дублей) */
.sg-mosaic--1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.sg-mosaic--1 .sg-main-cell { grid-column: 1; grid-row: 1; }
.sg-mosaic--2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
.sg-mosaic--2 .sg-main-cell { grid-column: 1; grid-row: 1; }
.sg-mosaic--3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.sg-mosaic--4 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}
.sg-mosaic--4 .sg-main-cell { grid-row: 1 / span 3; }

/* Планшет: 2x2 без главного — все равные */
@media (max-width: 1023px) {
  .sg-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: clamp(280px, 50vh, 400px);
  }
  .sg-mosaic .sg-main-cell { grid-column: 1 / span 2; grid-row: 1 / 2; }
  .sg-mosaic .sg-cell-last { display: none; }

  .sg-mosaic--1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .sg-mosaic--1 .sg-main-cell { grid-column: 1; grid-row: 1; }
  .sg-mosaic--2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .sg-mosaic--2 .sg-main-cell { grid-column: 1; grid-row: 1; }
  .sg-mosaic--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .sg-mosaic--4 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .sg-mosaic--4 .sg-main-cell { grid-column: 1 / span 3; grid-row: 1 / 2; }
}

/* Мобильный: только одно фото (мейн) + кнопка "все фото" */
@media (max-width: 640px) {
  .sg-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: auto; aspect-ratio: 4/3;
    border-radius: 16px;
  }
  .sg-mosaic .sg-cell:not(.sg-main-cell) { display: none; }
  .sg-mosaic .sg-main-cell { grid-column: 1; grid-row: 1; }
  .sg-mosaic .sg-zoom-hint {
    display: inline-flex;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    align-items: center;
    justify-content: center;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
  }
  .sg-mosaic .sg-zoom-hint__icon {
    width: 22px;
    height: 22px;
  }
}

/* Мозаика на десктопе + слайдер на мобильном (страница зала) */
.studio-gallery--mosaic-mobile-slider .studio-gallery__mobile {
  display: none;
}
@media (max-width: 640px) {
  .studio-gallery--mosaic-mobile-slider:has(.studio-gallery__mobile .sg-slider) .studio-gallery__desktop {
    display: none;
  }
  .studio-gallery--mosaic-mobile-slider .studio-gallery__mobile:has(.sg-slider) {
    display: block;
  }
}
.sg-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
}
.sg-slider__tap {
  display: block;
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sg-slider__tap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}
.sg-slider .sg-zoom-hint--slider {
  display: inline-flex;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
  pointer-events: none;
}
.sg-slider .sg-zoom-hint--slider .sg-zoom-hint__icon {
  width: 22px;
  height: 22px;
}
.sg-slider .sg-show-all--slider {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.sg-slider .sg-show-all--slider:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
[data-theme="dark"] .sg-slider .sg-show-all--slider {
  background: rgba(28, 28, 30, .82);
  border-color: rgba(255, 255, 255, .16);
}
[data-theme="dark"] .sg-slider .sg-show-all--slider:hover {
  background: rgba(28, 28, 30, .95);
}
.studio-gallery:hover .sg-slider .card-slider .cs-prev,
.studio-gallery:hover .sg-slider .card-slider .cs-next {
  opacity: 1;
}
.studio-gallery:hover .sg-slider .card-slider .cs-prev:not(.is-disabled),
.studio-gallery:hover .sg-slider .card-slider .cs-next:not(.is-disabled) {
  pointer-events: auto;
}
@media (hover: none) {
  .studio-gallery .sg-slider .card-slider .cs-prev,
  .studio-gallery .sg-slider .card-slider .cs-next {
    display: none !important;
  }
  .studio-gallery .sg-slider .card-slider .cs-dot {
    pointer-events: none;
  }
}

/* === Лента всех фото (вертикальная прокрутка) === */
.fp-gfeed {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--bg);
  display: none;
  flex-direction: column;
}
.fp-gfeed.is-open { display: flex; }
.fp-gfeed-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 1210;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .12s ease, transform .12s ease;
}
.fp-gfeed-close:hover {
  background: rgba(0, 0, 0, .55);
}
.fp-gfeed-body {
  flex: 1 1 auto; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.fp-gfeed-list {
  max-width: 860px; margin: 0 auto;
  padding: 16px;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; gap: 12px;
}
.fp-gfeed-title {
  margin: 0 48px 4px 0;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.fp-gfeed-item {
  display: block; width: 100%;
  border-radius: 14px; overflow: hidden;
  background: var(--bg-soft);
}
.fp-gfeed-item img {
  display: block; width: 100%; height: auto;
  user-select: none;
}
.fp-gfeed-end {
  display: flex;
  justify-content: center;
  padding: 12px 0 40px;
}
.fp-gfeed-end__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.fp-gfeed-end__btn:hover { background: var(--line); }
@media (max-width: 640px) {
  .fp-gfeed-list {
    padding: 10px;
    padding-top: calc(52px + env(safe-area-inset-top, 0px));
    gap: 8px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .fp-gfeed-title { font-size: 16px; }
  .fp-gfeed-item { border-radius: 10px; }
  .fp-gfeed-end {
    padding: 8px 0 32px;
  }
}

/* === Lightbox с зумом === */
.fp-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.fp-lightbox.is-open { display: flex; animation: fp-fade .2s ease; }
.fp-lb-stage {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fp-lb-stage img {
  max-width: 92vw; max-height: 88vh; object-fit: contain; user-select: none;
  transition: transform .25s ease;
  cursor: zoom-in;
}
.fp-lb-stage.is-zoomed img { cursor: grab; transition: none; }
.fp-lb-stage.is-zoomed.is-dragging img { cursor: grabbing; }
.fp-lb-close,
.fp-lb-prev,
.fp-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(8px);
  border: none; transition: background .12s ease;
  z-index: 10;
}
.fp-lb-counter { z-index: 10; }
.fp-lb-close:hover,
.fp-lb-prev:hover,
.fp-lb-next:hover { background: rgba(255,255,255,.22); }
.fp-lb-prev { left: 24px; }
.fp-lb-next { right: 24px; }
.fp-lb-close { top: 20px; right: 20px; transform: none; width: 40px; height: 40px; }
.fp-lb-counter {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 999px;
}
.fp-lb-zoom-tip {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 12px;
}

/* === Мини-календарь свободных дат === */
/* Датапикер: поле + поповер с месяцем */
.dp { position: relative; }
.dp-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card, #fff);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dp-field:hover { border-color: var(--ink); }
.dp.is-open .dp-field {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.dp-field__icon { color: var(--muted); flex-shrink: 0; }
.dp-field__text { flex: 1; font-size: 15px; color: var(--muted); }
.dp-field__text.is-filled { color: var(--ink); font-weight: 500; }
.dp-field__chev { color: var(--muted); flex-shrink: 0; transition: transform .2s ease; }
.dp.is-open .dp-field__chev { transform: rotate(180deg); }

.dp-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
}
.dp-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dp-pop__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.dp-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dp-nav:hover:not(:disabled) { background: var(--bg-soft); border-color: var(--ink); }
.dp-nav:disabled { opacity: .35; cursor: default; }
.dp-pop__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.dp-pop__legend span { display: inline-flex; align-items: center; gap: 5px; }
.dp-pop__legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
[data-theme="dark"] .dp-field,
[data-theme="dark"] .dp-pop { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .dp-pop { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }

.mini-cal { display: block; }
.mc-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.mc-head span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.mc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.mc-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.mc-cell--empty {
  background: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
}
.mc-cell .mc-num { line-height: 1; }
.mc-cell::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: transparent;
}
.mc-cell.is-free::after { background: #16A34A; }
.mc-cell.is-partial::after { background: #F59E0B; }
.mc-cell:hover:not([disabled]) {
  background: rgba(var(--accent-rgb), .08);
  transform: translateY(-1px);
}
.mc-cell[disabled] {
  color: var(--muted);
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.mc-cell.is-out {
  background: transparent;
  color: var(--muted);
  opacity: .35;
  text-decoration: none;
}
.mc-cell.is-out::after { display: none; }
/* Выбор — светлым акцентом: чёрная заливка читалась как «выключено»,
   а плотный акцент спорил с кнопкой бронирования. */
.mc-cell.is-active {
  background: var(--pick-bg);
  color: var(--pick-ink);
  font-weight: 700;
}
.mc-cell.is-active::after { background: var(--pick-ink); }

.mc-day {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px; padding: 8px 6px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .12s ease, background .12s ease;
  text-decoration: none; color: var(--ink);
}
.mc-day:hover { border-color: var(--ink); }
.mc-day .mc-dow { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mc-day .mc-num { font-size: 16px; font-weight: 700; line-height: 1.1; }
.mc-day .mc-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 4px; }
.mc-day.is-free .mc-dot { background: #16A34A; }
.mc-day.is-partial .mc-dot { background: #F59E0B; }
.mc-day.is-busy .mc-dot { background: #DC2626; }
.mc-day.is-busy { opacity: .55; }
.mc-day.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.mc-day.is-active .mc-dow { color: rgba(255,255,255,.7); }
.mc-legend { display: inline-flex; gap: 12px; font-size: 11px; color: var(--muted); }
.mc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mc-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* Переключатель ночных часов на странице оформления */
.night-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.night-toggle input { accent-color: var(--accent); cursor: pointer; }
.night-toggle:hover { color: var(--ink); }

/* === Секция бронирования на телефоне (под описанием) === */
.hall-booking-section {
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-soft);
}
/* Часы на телефоне переносятся так же, как на десктопе: прокручиваемая строка
   выглядела обрезанной, и было непонятно, что дальше есть ещё часы. */

/* Ярлыки над полем даты убраны — отступ под них тоже не нужен. */
[data-booking-widget] .dp-field { margin-top: 0; }

/* Построчные контакты (нижний шит зала) */
.studio-contacts-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, #fff);
  transition: border-color .15s ease;
}
.studio-contact-row:hover { border-color: var(--ink); }
.studio-contact-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
}
.studio-contact-row__title { display: block; font-size: 12px; color: var(--muted); }
.studio-contact-row__value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-contact-row__chev { margin-left: auto; flex-shrink: 0; color: var(--muted); }

/* Контакты в панели бронирования (десктоп): телефон виден сразу — когда студия
   принимает брони сама, позвонить и есть целевое действие. Остальные каналы —
   рядом круглых иконок: длинные email и сайты чипами разворачивали панель в
   столбик на полэкрана. */
.studio-contacts-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio-contact-line {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}
.studio-contact-line:hover { text-decoration: underline; }
.studio-contacts-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.studio-contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card, #fff);
  color: var(--ink);
  transition: background .12s ease, color .12s ease;
}
.studio-contact-ico:hover {
  background: var(--ink);
  color: var(--bg, #fff);
}
/* Тот же приём в блоке «О студии». Отличия от панели: выравнивание по левому
   краю и подложка иконок — блок стоит на фоне страницы, где белый круг из
   панели не читался бы. */
.studio-contacts-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.studio-contacts-compact .studio-contact-line {
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}
.studio-contacts-compact .studio-contacts-icons { justify-content: flex-start; }
.studio-contacts-compact .studio-contact-ico {
  width: 32px;
  height: 32px;
  background: var(--bg-soft);
  color: var(--muted);
}
.studio-contacts-compact .studio-contact-ico:hover {
  background: var(--ink);
  color: var(--bg, #fff);
}
/* В блоке «О студии»: после шапки студии, перед «Ещё N залов». На компе —
   одна строка (номер и иконки), на телефоне переносятся. */
.studio-about-card .studio-contacts-compact {
  margin-top: 8px;
}
@media (min-width: 640px) {
  .studio-about-card .studio-contacts-compact { flex-wrap: nowrap; }
}

/* === Нижний шит (мобильный) === */
/* Геометрия и переходы повторяют фильтры каталога (.catalog-filters): сам шит
   и есть панель, затемнение — отдельным слоем. Скрываем через visibility, а не
   display: из display:none переход не проигрывается и шит появлялся рывком. */
.fp-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, .4);
}
.fp-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1210;
  width: 100%;
  /* Не фиксированная высота, как у фильтров: шит контактов — это три строки. */
  max-height: min(92dvh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card, #fff);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.fp-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .3s ease, visibility 0s linear 0s;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .12);
}
.fp-sheet.is-dragging { transition: none; }
.fp-sheet__foot {
  flex-shrink: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.fp-sheet__handle {
  position: relative;
  flex-shrink: 0;
  padding: 12px 20px 8px;
  cursor: grab;
  touch-action: none;
}
/* Свайп вниз и тап по подложке — не очевидные жесты, поэтому явный крестик. */
.fp-sheet__close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.fp-sheet__close:hover { background: var(--bg-soft); color: var(--ink); }
.fp-sheet__handle::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--line);
}
.fp-sheet__title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}
.fp-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 20px 20px;
  overscroll-behavior: contain;
}
.fp-sheet__body:last-child { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .fp-sheet,
  .fp-sheet-overlay { display: none; }

  /* Шит-диалог: на десктопе тот же элемент показывается по центру экрана.
     Затемнению класс is-dialog ставит core.js при открытии такого шита. */
  .fp-sheet-overlay.is-dialog { display: block; }
  .fp-sheet.fp-sheet--dialog {
    display: flex;
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(440px, calc(100vw - 48px));
    max-height: min(80vh, 640px);
    border-radius: 16px;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(12px);
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  }
  .fp-sheet.fp-sheet--dialog.is-open {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear 0s;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
  }
  .fp-sheet.fp-sheet--dialog .fp-sheet__handle { cursor: default; }
  .fp-sheet.fp-sheet--dialog .fp-sheet__handle::before { display: none; }
}
[data-theme="dark"] .fp-sheet.is-open {
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .5);
}

/* Шит «Цены и условия»: тариф по дням, скидки за длительность, мин. бронь */
.pricing-block { margin-top: 16px; }
.pricing-block:first-child { margin-top: 4px; }
.pricing-block__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.pricing-rows {
  display: flex;
  flex-direction: column;
}
.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row__days {
  flex-shrink: 0;
  min-width: 64px;
  color: var(--ink);
}
.pricing-row__time { color: var(--muted); }
.pricing-row__time--closed { color: var(--muted); }
.pricing-row__price {
  margin-left: auto;
  text-align: right;
  color: var(--ink);
  white-space: nowrap;
}
.pricing-row__off {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.pricing-block__hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.pricing-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* === Recently viewed === */
.recently-viewed {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.home-scroll-section.recently-viewed {
  padding-top: 0;
  padding-bottom: var(--space-section);
  border-top: none;
}
.catalog-results .recently-viewed {
  margin-top: 48px;
}
.catalog-page > .recently-viewed {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--catalog-inline-pad);
  padding-right: var(--catalog-inline-pad);
  border-top: none;
}
@media (min-width: 1024px) {
  .catalog-page > .recently-viewed {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* === Попап карты со слайдером === */
.leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 14px; }
.leaflet-popup-content { margin: 0; width: 300px !important; }
.map-popup { display: block; text-decoration: none; color: inherit; font-family: 'Inter', sans-serif; }
.map-popup-cluster-list .mp-body { padding: 12px 14px 14px; }
.map-cluster-list__title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px;
}
.map-cluster-list__scroll {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 240px; overflow-y: auto;
}
.map-cluster-list__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; margin: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.map-cluster-list__item:hover {
  background: var(--bg-soft); border-color: var(--ink);
}
.map-cluster-list__name {
  font-size: 12px; font-weight: 600;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.map-cluster-list__price {
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
[data-theme="dark"] .map-cluster-list__item { background: var(--card); }
[data-theme="dark"] .map-cluster-list__item:hover { background: var(--bg-soft); }
.map-popup .mp-img {
  position: relative; height: 150px; background: #f3f3f3;
  overflow: hidden;
}
.map-popup .mp-rating {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  background: rgba(255,255,255,.95); backdrop-filter: blur(4px);
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  pointer-events: none;
}
.map-popup .mp-instant {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  background: #16A34A; color: #fff;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  pointer-events: none;
}
.map-popup .mp-body { padding: 12px 14px 14px; background: var(--card); }
.map-popup .mp-name { font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--ink); }
.map-popup .mp-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.map-popup .mp-price { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.map-popup .mp-price small { color: var(--muted); font-weight: 500; font-size: 11px; }

/* Прозрачный layer-ссылка над фото в попапе. Лежит ниже стрелок/точек слайдера (z-index 4),
   поэтому управление слайдером не блокируется, а клик по самой картинке ведёт на студию. */
.map-popup .mp-photo-link {
  position: absolute; inset: 0; z-index: 3;
  display: block; cursor: pointer;
  background: transparent;
}

.map-popup .mp-cta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; font-size: 12px; font-weight: 700;
  color: var(--accent); text-decoration: none;
}
.map-popup .mp-cta:hover { text-decoration: underline; }

/* В попапе скрываем стрелки до hover не на всем popup, а на слайдере */
.leaflet-popup-content .card-slider .cs-prev,
.leaflet-popup-content .card-slider .cs-next { opacity: 0; }
.leaflet-popup-content:hover .card-slider .cs-prev,
.leaflet-popup-content:hover .card-slider .cs-next { opacity: 1; }
.leaflet-popup-content:hover .card-slider .cs-prev.is-disabled,
.leaflet-popup-content:hover .card-slider .cs-next.is-disabled { opacity: 0 !important; }

[data-theme="dark"] .map-popup .mp-body { background: var(--card); }
[data-theme="dark"] .map-popup .mp-rating { background: rgba(30,31,36,.92); color: var(--ink); }

/* === "Похожие студии" === */
.similar-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* === Слой метро на карте === */
.metro-line { pointer-events: none; }
.metro-tooltip {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.metro-tooltip::before { display: none; }
.metro-legend {
  position: absolute; right: 12px; top: 12px; z-index: 410;
  background: rgba(255,255,255,.96); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 10px;
  font-size: 11px; font-weight: 600; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); display: none;
}
.metro-legend.is-visible { display: block; }
.metro-legend .ml-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.ml-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
[data-theme="dark"] .metro-legend { background: rgba(30,31,36,.92); }
[data-theme="dark"] .metro-tooltip { background: var(--card); color: var(--ink); }

/* === Heatmap-overlay === */
.leaflet-pane.heatmap-pane { z-index: 410; }
.heat-poly { transition: fill-opacity .2s ease; }
.heat-poly:hover { fill-opacity: .55 !important; }

/* === Overlap fixes === */
.studio-card .card-badges,
.list-card-compact .card-badges { pointer-events: none; }
.studio-card .card-badges .card-badge,
.list-card-compact .card-badges .card-badge { pointer-events: auto; }

/* === Хлебные крошки === */
.breadcrumbs-wrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
}
.breadcrumbs-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2rem;
  background: linear-gradient(to left, var(--bg) 15%, transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .2s ease;
}
.breadcrumbs-wrap.is-scrollable:not(.is-at-end)::after {
  opacity: 1;
}
.breadcrumbs {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 6px; font-size: 13px; color: var(--muted);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs .bc-link {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--muted); text-decoration: none;
  padding: 4px 8px; margin: 0 -2px; border-radius: 8px;
  transition: background .12s ease, color .12s ease;
}
.breadcrumbs > .bc-link:first-child {
  padding-left: 0;
  margin-left: 0;
}
.breadcrumbs .bc-link:hover { background: var(--bg-soft); color: var(--ink); }
.breadcrumbs .bc-current {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--ink); font-weight: 600;
  padding: 4px 0;
}
.breadcrumbs .bc-sep {
  flex-shrink: 0;
  width: 12px; height: 12px; opacity: .5;
}
@media (max-width: 640px) {
  .breadcrumbs { font-size: 12px; gap: 3px; }
}
.page-crumbs {
  padding-top: 12px;
  padding-bottom: 12px;
}
.page-crumbs .breadcrumbs { font-size: 12px; }
.page-crumbs .breadcrumbs .bc-current { font-weight: 500; color: var(--muted); }

/* === Q&A form === */
.qna-form {
  max-width: 42rem;
  margin-top: 1.25rem;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 14px;
  background: var(--bg);
}

/* === Адаптация страницы студии под телефон === */
.studio-actions-mobile--icon-only button {
  padding: 8px;
  gap: 0;
}
.studio-actions-mobile--icon-only button > span {
  display: none;
}
@media (max-width: 767px) {
  /* Действия share/save/compare — компактные иконки */
  .studio-actions-mobile { display: flex; gap: 4px; }
  .studio-actions-mobile button { padding: 8px !important; gap: 0 !important; }
  .studio-actions-mobile button > span { display: none; }

  /* Карточка зала: уменьшаем отступы и плашки цен */
  #halls .grid-cols-3 > div { padding: 6px 8px; }
  #halls .grid-cols-3 .text-\[10px\] { font-size: 9px; }

  /* Похожие студии и недавние просмотры — горизонтальный скролл */
  .similar-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .similar-grid > * { scroll-snap-align: start; }
  .similar-grid::-webkit-scrollbar { display: none; }
}

/* === Draw mode (полигон фильтра на карте) === */
.draw-controls {
  position: absolute; top: 12px; left: 12px; z-index: 410;
  display: flex; flex-direction: column; gap: 8px;
}
.draw-controls .draw-btn {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .12s ease, border-color .12s ease;
}
.draw-controls .draw-btn:hover { border-color: var(--ink); }
.draw-controls .draw-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.draw-tip {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600; z-index: 410;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  display: none;
}
.draw-tip.is-visible { display: block; animation: fp-fade .2s ease; }
.leaflet-draw-area {
  fill: var(--accent); fill-opacity: 0.12;
  stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5;
}

/* Кнопка-сердечко в правом верхнем углу карточки */
.like-floating {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
  z-index: 5;
}

/* === Empty state === */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 20px; color: var(--muted);
  gap: 10px;
}
.empty-state .es-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.empty-state--favs .es-icon {
  color: var(--fav);
  background: var(--fav-soft-icon);
}
.empty-state.es-relaxed {
  border: 1px dashed var(--line); border-radius: 18px;
  background: var(--bg-soft); padding: 28px 20px; margin-bottom: 16px;
}
.empty-state .es-actions {
  display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px;
}

/* === Disabled state === */
[data-theme="dark"] .promo-banner { box-shadow: 0 8px 26px rgba(var(--accent-rgb),.18); }
[data-theme="dark"] .compare-bar { background: var(--card); border: 1px solid var(--line); }
[data-theme="dark"] .qv-card { box-shadow: 0 24px 60px rgba(0,0,0,.7); }
[data-theme="dark"] .compare-toggle { background: rgba(30,31,36,.92); color: var(--ink); }
[data-theme="dark"] .compare-toggle.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .qv-btn { background: rgba(30,31,36,.92); color: var(--ink); }
[data-theme="dark"] .card-badge { background: rgba(30,31,36,.92); color: var(--ink); }
[data-theme="dark"] .card-badge.is-rating {
  background: rgba(30, 31, 36, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="dark"] .mc-day { background: var(--card); }
[data-theme="dark"] .mc-cell { background: var(--bg-soft); }
[data-theme="dark"] .map-action-btn { background: var(--card); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .draw-controls .draw-btn { background: var(--card); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] header { color: var(--ink); }
[data-theme="dark"] .view-toggle { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .view-toggle button.active { background: var(--accent); color: #fff; }
[data-theme="dark"] .view-toggle button { color: var(--muted); }

/* ========================================================================
   === Hall-first: карточка зала, попап со списком залов, витрина залов ===
   ======================================================================== */

/* Карточка зала. Наследует стили .studio-card (hover-эффект на картинке). */
.hall-card {
  overflow: visible;
}
/* Перебивает утилиты w-7/h-7 из разметки: сердечко соразмерно кеглю карточки. */
.hall-card .like-floating svg {
  width: 1.5rem;
  height: 1.5rem;
}
.hall-card .hc-body {
  margin-top: 0.625rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hall-card .hc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.hall-card .hc-head__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hall-card .hc-row--title {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
/* Рейтинг студии в строке названия — общий для карточки зала и попапа на карте. */
.hc-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.hc-rating .hc-star {
  width: 12px;
  height: 12px;
  color: var(--star);
  fill: currentColor;
  flex-shrink: 0;
}
/* В карточке — в правом верхнем углу шапки, на строке студии. */
.hall-card .hc-rating {
  align-self: center;
  margin-left: auto;
}
.hall-card .hc-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
/* Плашка площади и строка студии — общие для карточки зала и попапа на карте. */
.hc-area {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.hc-studio-sub {
  --studio-sub-ink: #a8a8a8;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--studio-sub-ink);
}
.hc-studio-sub__text {
  min-width: 0;
}
/* Мини-чипы «когда нужен зал» — под ценой в карточке каталога. */
.hc-when-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.hc-when-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.hc-when-chip svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.hc-when-chip--ok,
.hc-when-chip--slot {
  background: color-mix(in srgb, #16A34A 6%, var(--bg-soft));
  color: color-mix(in srgb, var(--muted) 55%, #3F6F52);
}
.hc-when-chip--more {
  padding-left: 6px;
  padding-right: 6px;
  color: var(--muted);
}
[data-theme="dark"] .hc-when-chip--ok,
[data-theme="dark"] .hc-when-chip--slot {
  background: color-mix(in srgb, #16A34A 10%, var(--bg-soft));
  color: color-mix(in srgb, var(--muted) 40%, #6B9B7A);
}
.hc-studio-sub__label,
.hc-studio-sub__name {
  color: inherit;
}
.hc-studio-sub__name {
  font-weight: 500;
}
.hall-card .hc-head__main:has(.hc-row--catalog) {
  gap: 0;
}
.hall-card .hc-row--catalog {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
  line-height: 1.35;
}
.hall-card .hc-catalog-studio {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hall-card .hc-row--catalog .hc-catalog-verified,
.hall-card .hc-row--catalog .studio-verified {
  flex-shrink: 0;
  margin-left: 4px;
  margin-right: 6px;
}
.hc-hall-sub {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  margin-left: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}
.hc-hall-sub__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  min-width: 0;
  overflow: hidden;
}
.hc-hall-sub__label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in srgb, var(--muted) 92%, var(--ink));
}
.hc-hall-sub__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}
.hall-card .hc-footer {
  display: flex;
  align-items: center;
  min-width: 0;
}
.hall-card .hc-amenities {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding-bottom: 1px;
}
.hall-card .hc-amenity {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #a3a3a3;
  cursor: default;
}
.hall-card .hc-amenity__icon {
  width: 15px;
  height: 15px;
}
.hall-card .hc-amenity--more {
  width: auto;
  min-width: 28px;
  padding: 0 7px;
  border-radius: 999px;
}
.hall-card .hc-amenity__more {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #a3a3a3;
}
.hall-card .hc-amenity__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(3px);
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--card);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 6;
}
.hall-card .hc-amenity__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}
@media (hover: hover) {
  .hall-card .hc-amenity:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }
  .hall-card .hc-amenity:hover .hc-amenity__tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
@media (min-width: 640px) {
  .hall-card .hc-amenities {
    overflow: visible;
    touch-action: auto;
    padding-bottom: 0;
  }
}
/* Цена одной строкой «55 BYN за час»; в карточке зала — последней строкой слева. */
.hc-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.2;
}
.hall-card .hc-price {
  margin-top: -3px;
}
.hc-price-value {
  font-weight: 600;
  color: var(--ink);
}
.hall-card .hc-price-value {
  font-size: 13px;
  font-weight: 500; /* как у названия зала */}
.hc-price-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
[data-theme="dark"] .hc-area {
  background: rgba(255, 255, 255, 0.06);
  color: #9ca0a8;
}
[data-theme="dark"] .hc-studio-sub {
  --studio-sub-ink: #7a7e88;
}
[data-theme="dark"] .hall-card .hc-amenity,
[data-theme="dark"] .hall-card .hc-amenity__more {
  color: #7d828c;
}
@media (hover: hover) {
  [data-theme="dark"] .hall-card .hc-amenity:hover {
    color: #d4a574;
    background: color-mix(in srgb, #d4a574 14%, transparent);
  }
}
[data-theme="dark"] .hall-card .hc-amenity__tip {
  background: #f5f5f7;
  color: #15161a;
}
[data-theme="dark"] .hall-card .hc-amenity__tip::after {
  border-top-color: #f5f5f7;
}

/* Legacy aliases (map rows, etc.) */
.hall-card .hc-studio-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hall-card .hc-studio {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-card .hc-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.hall-card .hc-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  min-width: 0;
}
.hall-card .hc-title-area {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.hall-card .hc-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.hall-card .hc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.hall-card .hc-light {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 500;
}
[data-theme="dark"] .hall-card .hc-light { background: var(--bg-soft); color: var(--muted); }
.hall-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 10px; align-items: center;
  padding: 6px; border-radius: 12px;
  transition: background .12s ease;
  text-decoration: none; color: inherit;
}
.hall-row:hover { background: var(--bg-soft); }
.hr-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.hr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hr-studio { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.hr-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.hr-price small { font-weight: 400; color: var(--muted); margin-left: 2px; }

/* Попап карты со списком залов студии. */
.map-popup-halls { width: 280px; }
.map-popup-halls .mph-list {
  display: flex; flex-direction: column; gap: 2px;
  margin: 8px -4px 8px;
  max-height: 220px; overflow-y: auto;
  scrollbar-width: thin;
}
.map-popup-halls .mph-list::-webkit-scrollbar { width: 4px; }
.map-popup-halls .mph-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.mph-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 8px; align-items: center;
  padding: 6px 4px; border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: background .12s ease;
}
.mph-row:hover { background: var(--bg-soft); }
.mph-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-soft); }
.mph-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mph-thumb .fp-img-fallback { width: 100%; height: 100%; min-height: 0; }
.mph-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mph-name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mph-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mph-price { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.mph-price small { font-weight: 400; color: var(--muted); margin-left: 1px; font-size: 10px; }

/* Кликабельные строки в блоке «О студии» на странице зала. */
.studio-teaser-link {
  transition: background .12s ease, opacity .12s ease;
  text-decoration: none;
  color: inherit;
}
.studio-teaser-link:hover {
  background: rgba(0, 0, 0, 0.025);
}
[data-theme="dark"] .studio-teaser-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Контакты студии — компактные чипы. */
/* Контакты строкой ссылок: ни плашек, ни плиток — рядом с бронированием это
   второстепенный блок, и любая заливка делала его тяжелее, чем он есть. */
.studio-contacts-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin-top: 14px;
}
.studio-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.studio-contact-link svg { flex-shrink: 0; color: var(--muted); }
.studio-contact-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-contact-link:hover { color: var(--accent-dark); }
.studio-contact-link:hover svg { color: var(--accent); }
.studio-contact-link:hover span { text-decoration: underline; }
[data-theme="dark"] .studio-contact-link:hover { color: #e8c4a8; }
[data-theme="dark"] .studio-contact-link:hover svg { color: #c9956a; }

/* Блок «О студии» на странице зала. */
.studio-about-card {
  border-radius: 20px;
  overflow: visible;
}
.studio-about-card__studio {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.studio-about-card__avatar-link,
.studio-about-card__cover-link {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.studio-about-card__body {
  min-width: 0;
  flex: 1;
}
.studio-about-card__avatar,
.studio-about-card__cover {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.studio-about-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.studio-about-card__title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.studio-about-card__title .hall-hero__studio-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-about-card__title:hover { text-decoration: underline; }
/* Рейтинг, отзывы и число залов — одной приглушённой строкой через точки */
.studio-about-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.studio-about-card__meta > span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--line);
}
.studio-about-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--ink);
}
.studio-about-card__go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.studio-about-card__go:hover { color: var(--accent-dark); }
[data-theme="dark"] .studio-about-card__go:hover { color: #e8c4a8; }
/* В «О студии» подсказку показываем вверх — ниже идут контакты. */
.studio-about-card .studio-verified-hint-wrap:has(.studio-verified--page) .studio-verified-hint {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
}
.studio-about-card .studio-verified-hint-wrap:has(.studio-verified--page) .studio-verified-hint::after {
  top: 100%;
  bottom: auto;
  border-top-color: var(--ink);
  border-bottom-color: transparent;
}
@media (hover: hover) {
  .studio-about-card .studio-verified-hint-wrap:has(.studio-verified--page):hover .studio-verified-hint,
  .studio-about-card .studio-verified-hint-wrap:has(.studio-verified--page):focus-within .studio-verified-hint {
    transform: translateX(-50%) translateY(0);
  }
}
[data-theme="dark"] .studio-about-card .studio-verified-hint-wrap:has(.studio-verified--page) .studio-verified-hint::after {
  border-top-color: var(--card);
  border-bottom-color: transparent;
}
.studio-about-card__divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0 16px;
}

/* Витрина залов на странице студии. */
.studio-halls-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.studio-halls-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.studio-halls-toolbar label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.studio-halls-sort {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.studio-halls-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.studio-halls-grid__item { min-width: 0; }

/* Похожие залы живут в узкой колонке страницы зала, поэтому колонки считаются
   от ширины контейнера, а не от вьюпорта: иначе карточки сжимаются до ~150px
   и название обрезается до одной буквы. */
.similar-halls-grid {
  display: grid;
  gap: 1.75rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Подсветка выбранного зала в попапе студии (когда кликнули по залу в списке слева). */
.mph-row.mph-selected {
  background: rgba(var(--accent-rgb), .08);
  outline: 1.5px solid var(--accent);
  outline-offset: -1.5px;
}
.mph-row.mph-selected .mph-name { color: var(--accent); }

/* Пометка «ещё N залов вне фильтров» под списком залов в попапе. */
.mph-hidden {
  margin-top: 6px;
  padding: 2px 2px 0;
  font-size: 11px;
  color: var(--muted);
  opacity: .75;
  text-align: left;
}

/* Мини-попап на карте (страницы зала и студии) — только основная информация. */
.map-popup-mini { padding: 10px 12px 12px; min-width: 180px; }
.map-popup-mini .mpm-studio {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 2px;
}
.map-popup-mini .mpm-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.map-popup-mini .mpm-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.map-popup-mini .mpm-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.map-popup-mini .mpm-rating,
.map-popup-mini .mpm-halls {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600; color: var(--ink);
  background: var(--bg-soft); padding: 2px 7px; border-radius: 999px;
}
.map-popup-mini .mpm-instant {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: #16a34a;
  background: rgba(34, 197, 94, .1); padding: 2px 6px; border-radius: 999px;
}
.map-popup-mini .mpm-price {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}
.map-popup-mini .mpm-price-suffix { font-weight: 400; color: var(--muted); font-size: 12px; }
[data-theme="dark"] .map-popup-mini .mpm-name { color: var(--ink); }
[data-theme="dark"] .map-popup-mini .mpm-price { color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .map-popup-mini .mpm-rating,
[data-theme="dark"] .map-popup-mini .mpm-halls { background: var(--bg-soft); color: var(--ink); }

/* Попап карты без фото студии: компактная шапка со звездой/instant справа. */
.map-popup-no-img .mp-body { padding: 12px 14px 12px; }
.map-popup-no-img .mp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.map-popup-no-img .mp-head-left { min-width: 0; flex: 1; }
.map-popup-no-img .mp-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.map-popup-no-img .mp-rating-inline {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--bg-soft); padding: 3px 7px; border-radius: 999px;
}
.map-popup-no-img .mp-instant-inline {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: #16a34a;
  background: rgba(34, 197, 94, .1); padding: 2px 6px; border-radius: 999px;
}
/* === Тёмная тема === */
[data-theme="dark"] .hr-name { color: var(--ink); }
[data-theme="dark"] .mph-name { color: var(--ink); }
[data-theme="dark"] .mph-price { color: var(--ink); }
[data-theme="dark"] .hall-card .hc-light { background: var(--bg-soft); color: var(--muted); }
[data-theme="dark"] .map-popup-no-img .mp-rating-inline { background: var(--bg-soft); color: var(--ink); }
[data-theme="dark"] .mph-row.mph-selected { background: rgba(var(--accent-rgb), .14); }

/* === Попап карты: карточка зала (референс PHOTOHUB) === */
.leaflet-popup-content-wrapper:has(.map-popup-visual) {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  overflow: visible;
  border-radius: 0;
}
.leaflet-popup:has(.map-popup-visual) {
  --mpv-topbar-h: 48px;
}
/* Крестик всегда в правом верхнем углу фото: при шапке с листалкой — под ней.
   В Leaflet 1.9 кнопка — соседка обёртки, а не её потомок.
   Символ «×» прячем и рисуем SVG: глиф шрифта не центрируется по вертикали. */
.leaflet-popup:has(.map-popup-visual) > .leaflet-popup-close-button {
  top: 8px !important; right: 8px !important;
  width: 28px !important; height: 28px !important;
  padding: 0 !important;
  background-color: rgba(255,255,255,.92) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%23111' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-size: 12px 12px !important;
  background-repeat: no-repeat !important;
  backdrop-filter: blur(12px);
  border-radius: 50% !important;
  color: transparent !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.16) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  z-index: 10 !important;
  opacity: 1;
  transition: background-color .15s ease, transform .12s ease;
}
.leaflet-popup:has(.map-popup-visual) > .leaflet-popup-close-button span {
  display: none;
}
.leaflet-popup:has(.mpv-topbar) > .leaflet-popup-close-button {
  top: calc(var(--mpv-topbar-h) + 8px) !important;
}
.leaflet-popup:has(.map-popup-visual) > .leaflet-popup-close-button:hover {
  opacity: 1; background-color: #fff !important;
  transform: scale(1.06);
}
[data-theme="dark"] .leaflet-popup:has(.map-popup-visual) > .leaflet-popup-close-button {
  background-color: rgba(28,28,28,.88) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%23f5f5f5' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}
[data-theme="dark"] .leaflet-popup:has(.map-popup-visual) > .leaflet-popup-close-button:hover {
  background-color: rgba(40,40,40,.95) !important;
}
.leaflet-popup:has(.map-popup-visual) .leaflet-popup-tip-container {
  display: none;
}
.leaflet-popup-content:has(.map-popup-visual) {
  width: 292px !important;
  max-width: 292px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box;
}
.map-popup-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; max-width: 100%;
  overflow: visible;
  text-decoration: none; font-family: 'Inter', sans-serif;
  color: var(--ink);
  box-sizing: border-box;
  --mpv-pad-x: 12px;
}
.map-popup-visual .mpv-frame {
  position: relative; overflow: hidden;
  width: 100%;
  background: var(--card);
  border-radius: 16px;
  /* Тень только вокруг карточки попапа. */
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.map-popup-visual .mpv-hall-track {
  display: flex; flex-wrap: nowrap;
  width: auto;
  transition: transform .35s cubic-bezier(.4,.1,.25,1);
  will-change: transform;
}
.map-popup-visual .mpv-slide {
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  box-sizing: border-box;
}
/* Медиа сверху, на всю ширину */
.map-popup-visual .mpv-media-wrap {
  padding: 0;
  flex-shrink: 0;
}
.map-popup-visual .mpv-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden; background: var(--bg-soft);
  border-radius: 0;
  cursor: pointer;
}
.map-popup-visual .mpv-media .card-slider,
.map-popup-visual .mpv-media > img,
.map-popup-visual .mpv-media .fp-img-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 0;
}
/* Только img: заглушка из FP.imgOnError наследует классы и не должна остаться невидимой. */
.map-popup-visual img.fp-fade {
  opacity: 0;
  transition: opacity .2s ease;
}
.map-popup-visual img.fp-fade.is-loaded {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .map-popup-visual img.fp-fade { transition: none; }
}
/* Бейджи поверх фото (рейтинг, мгновенно) */
.map-popup-visual .mpv-media-top {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  display: flex; align-items: center; gap: 5px;
  max-width: calc(100% - 48px);
  pointer-events: none;
}
.map-popup-visual .mpv-rating {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; line-height: 1.15;
  color: #1c1c1e; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.map-popup-visual .mpv-rating:empty {
  display: none;
}
.map-popup-visual .mpv-rating__icon {
  flex-shrink: 0;
  color: var(--star);
}
.map-popup-visual .mpv-badge-instant {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 1.15;
  background: rgba(22,163,74,.94); color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
  white-space: nowrap;
}
.map-popup-visual .mpv-photo-counter {
  position: absolute; bottom: 8px; left: 8px; z-index: 5;
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; line-height: 1.2;
  background: rgba(20,20,22,.55); color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.map-popup-visual .mpv-fav {
  position: absolute; bottom: 6px; right: 6px; z-index: 6;
  width: 30px; height: 30px; padding: 0; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.map-popup-visual .mpv-fav:hover {
  transform: scale(1.12);
}
.map-popup-visual .mpv-fav .heart-empty,
.map-popup-visual .mpv-fav .heart-fill {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
/* Шапка над фото: листалка залов по центру (только если залов больше одного) */
.map-popup-visual .mpv-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--mpv-topbar-h);
  padding: 0 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}
/* Шапка: студия под фото, рейтинг в правом верхнем углу */
.map-popup-visual .mpv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px var(--mpv-pad-x) 0;
  flex-shrink: 0;
  line-height: 1.25;
}
/* Студия — типографика от .hc-studio-sub (как в карточке каталога), здесь только ссылка.
   Цвет повторён явно: иначе его перебивает `.leaflet-container a`. */
.map-popup-visual .mpv-studio {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  color: var(--studio-sub-ink);
  text-decoration: none;
  transition: color .12s ease;
}
.map-popup-visual .mpv-studio .studio-verified { width: 12px; height: 12px; }
.map-popup-visual .mpv-studio__chev {
  flex-shrink: 0;
  width: 11px; height: 11px;
  opacity: .55;
  transition: transform .12s ease, opacity .12s ease;
}
.map-popup-visual .mpv-studio:hover { color: var(--accent); }
.map-popup-visual .mpv-studio:hover .mpv-studio__chev {
  transform: translateX(2px);
  opacity: 1;
}
/* Инфо зала: узкий зазор под строкой студии, шире — перед ценой */
.map-popup-visual .mpv-hall-info {
  padding: 2px var(--mpv-pad-x) 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.map-popup-visual .mpv-hline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.map-popup-visual .mpv-hline--main {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.map-popup-visual .mpv-hall,
.map-popup-visual .mpv-hline--main .mpv-hall,
.map-popup-visual .mpv-hall--static {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
/* Название — кегль и толщина как у .hc-name в карточке каталога. */
.map-popup-visual .mpv-hall {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  max-width: 100%;
  font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink); text-decoration: none;
  min-width: 0;
  transition: color .12s ease;
}
.map-popup-visual .mpv-hall .mpv-hall__label {
  flex-shrink: 0;
  font: inherit;
  color: inherit;
}
.map-popup-visual .mpv-hall .mpv-hall__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  color: inherit;
}
.map-popup-visual .mpv-hall:hover { color: var(--accent); }
.map-popup-visual .mpv-hall--static {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.map-popup-visual .mpv-specs {
  margin-top: 2px;
  font-size: 12px; font-weight: 500; line-height: 1.3;
  color: var(--muted);
}
/* Цена — последней строкой слева, одной строкой «55 BYN за час», как в карточке каталога. */
.map-popup-visual .mpv-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  align-self: flex-start;
  margin-top: 8px;
  /* Как .hc-price-value / .hc-price-unit в карточке каталога. */
  font-size: 14px; font-weight: 500; line-height: 1.2;  color: var(--ink); text-decoration: none;
  white-space: nowrap;
  transition: color .12s ease;
}
.map-popup-visual a.mpv-price:hover { color: var(--accent); }
.map-popup-visual .mpv-price-note {
  flex-shrink: 0;
  font-size: 12px; font-weight: 400; line-height: 1.2;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
/* Листалка залов — в шапке справа */
.map-popup-visual .mpv-hall-nav {
  display: inline-flex; align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 700;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.map-popup-visual .mpv-hall-nav:active {
  cursor: grabbing;
}
.map-popup-visual .mpv-hall-prev,
.map-popup-visual .mpv-hall-next {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .12s ease, opacity .12s ease, transform .1s ease;
}
.map-popup-visual .mpv-hall-prev:hover:not(.is-disabled),
.map-popup-visual .mpv-hall-next:hover:not(.is-disabled) {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.map-popup-visual .mpv-hall-prev:active:not(.is-disabled),
.map-popup-visual .mpv-hall-next:active:not(.is-disabled) {
  transform: scale(.94);
}
.map-popup-visual .mpv-hall-prev.is-disabled,
.map-popup-visual .mpv-hall-next.is-disabled {
  opacity: .35;
  cursor: default; pointer-events: none;
}
/* min-width — под «Зал 10 из 12», чтобы стрелки не прыгали при листании. */
.map-popup-visual .mpv-hall-counter {
  flex: 0 0 auto;
  min-width: 82px;
  padding: 0;
  text-align: center;
  font-size: 13px; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.map-popup-visual .mpv-hall-counter__num {
  font-weight: 700;
}
.map-popup-visual .mpv-hall-counter__of {
  color: var(--muted);
}
.map-popup-visual .mpv-more-shown {
  display: none;
}
.map-popup-visual .mpv-more-media {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.map-popup-visual .mpv-more-media:hover .mpv-more-overlay {
  background: rgba(0,0,0,.62);
}
.map-popup-visual .mpv-more-media > img,
.map-popup-visual .mpv-more-media > .fp-img-fallback {
  object-fit: cover;
  filter: saturate(.65) brightness(.82);
  transform: scale(1.04);
}
.map-popup-visual .mpv-more-overlay {
  position: absolute; inset: 0; z-index: 3;
  border-radius: 0;
  background: rgba(0,0,0,.5);
  transition: background .15s ease;
  pointer-events: none;
}
.map-popup-visual .mpv-more-cta {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  text-align: center; color: #fff;
  pointer-events: none;
}
.map-popup-visual .mpv-more-cta-title {
  font-size: 13px; font-weight: 700; line-height: 1.25;
  max-width: 200px;
}
.map-popup-visual .mpv-empty {
  padding: 28px 16px; text-align: center;
  background: var(--bg-soft);
}
.map-popup-visual .mpv-studio--solo {
  font-size: 15px; font-weight: 600; line-height: 1.2;
  color: var(--ink);
}
/* Фото-слайдер в попапе: листание фото; залы — листалкой в шапке */
.map-popup-visual .card-slider {
  touch-action: none;
  cursor: grab;
}
.map-popup-visual .card-slider:active { cursor: grabbing; }
.map-popup-visual .card-slider .cs-prev,
.map-popup-visual .card-slider .cs-next {
  display: flex;
  opacity: 0;
  pointer-events: none;
}
.map-popup-visual .mpv-media:hover .card-slider .cs-prev,
.map-popup-visual .mpv-media:hover .card-slider .cs-next {
  opacity: 1;
}
.map-popup-visual .mpv-media:hover .card-slider .cs-prev:not(.is-disabled),
.map-popup-visual .mpv-media:hover .card-slider .cs-next:not(.is-disabled) {
  pointer-events: auto;
}
/* На сенсорных экранах :hover залипает после тапа — показываем стрелки всегда.
   Счётчик дублирует точки. */
@media (hover: none) {
  .map-popup-visual .card-slider .cs-prev:not(.is-disabled),
  .map-popup-visual .card-slider .cs-next:not(.is-disabled) {
    opacity: 1;
    pointer-events: auto;
  }
  .map-popup-visual .mpv-photo-counter {
    display: none !important;
  }
}
.map-popup-visual .card-slider .cs-dots {
  display: flex;
  bottom: 8px;
  pointer-events: auto;
}
.map-popup-visual .card-slider .cs-dot {
  width: 5px; height: 5px;
  cursor: pointer;
  pointer-events: auto;
}
[data-theme="dark"] .leaflet-popup-content-wrapper:has(.map-popup-visual) {
  background: transparent;
  box-shadow: none;
}
[data-theme="dark"] .map-popup-visual .mpv-frame {
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
[data-theme="dark"] .map-popup-visual .mpv-rating {
  background: rgba(30,31,36,.92);
  color: var(--ink);
}
/* ====================================================================== */
/* === Панель владельца студии (owner.html) =========================== */
/* ====================================================================== */

/* Role-switch (две таблетки в шапке) */
.role-switch {
  display: inline-flex; gap: 2px;
  background: var(--bg-soft); border-radius: 999px; padding: 3px;
}
.role-switch button,
.role-switch .role-switch-link {
  border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 12px; border-radius: 999px;
  transition: background .15s, color .15s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.role-switch button:hover,
.role-switch .role-switch-link:hover { color: var(--ink); }
.role-switch button.is-active { background: var(--ink); color: #fff; }
[data-theme="dark"] .role-switch button.is-active { background: var(--accent); color: #fff; }

/* Локальные крошки внутри панели (отдельно от глобальных в шапке) */
.owner-crumbs {
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.owner-crumbs a {
  color: var(--muted); text-decoration: none; padding: 4px 8px;
  border-radius: 8px; transition: background .15s, color .15s;
}
.owner-crumbs a:hover { background: var(--bg-soft); color: var(--ink); }
.owner-crumbs .oc-current { color: var(--ink); font-weight: 600; padding: 4px 0; }
.owner-crumbs .oc-sep { width: 12px; height: 12px; opacity: .5; }

/* Заголовок секции с CTA справа */
.owner-section {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.owner-section h2 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.owner-section .owner-section-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* KPI-карточки (дашборд) */
.kpi-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.kpi-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  background: var(--bg);
}
.kpi-card .kpi-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.kpi-card .kpi-value {
  font-size: 32px; font-weight: 600; color: var(--ink);
  margin-top: 6px; line-height: 1;
}
.kpi-card .kpi-delta {
  font-size: 12px; font-weight: 600; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
}
.kpi-card .kpi-delta.is-up { color: #16a34a; }
.kpi-card .kpi-delta.is-down { color: var(--accent); }
.kpi-card .kpi-delta.is-flat { color: var(--muted); }

/* Админка: промокоды */
.admin-promo-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 639px) {
  .admin-promo-kpis {
    grid-template-columns: 1fr;
  }
}
.admin-promo-kpi {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--bg);
}
.admin-promo-kpi__value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);}
.admin-promo-kpi__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.admin-promo-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 1024px) {
  .admin-promo-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
.admin-promo-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .admin-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-promo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-promo-card:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--line));
  box-shadow: var(--shadow-sm);
}
.admin-promo-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-promo-card__code-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.admin-promo-card__code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
}
.admin-promo-card__discount {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.admin-promo-card__label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.admin-promo-card__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.admin-promo-card__meta-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
  line-height: 1.35;
}
.admin-promo-card__meta-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.admin-promo-card__meta-row dd {
  margin: 0;
  color: var(--ink);
}
.admin-promo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.admin-promo-card__action-form {
  display: inline;
}
.admin-promo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--ink) 14%, var(--line));
  border-radius: 18px;
  background: var(--bg-soft);
}
.admin-promo-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.admin-promo-empty__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.admin-promo-empty__text {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.admin-promo-aside {
  min-width: 0;
}
@media (min-width: 1024px) {
  .admin-promo-aside {
    position: sticky;
    top: 88px;
  }
}
.admin-promo-form-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 20px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.admin-promo-form-card__head {
  margin-bottom: 16px;
}
.admin-promo-form-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.admin-promo-form-card__hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.admin-promo-form-card__grid {
  grid-template-columns: 1fr;
}

/* Админка: баннеры */
.admin-banner-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .admin-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-banner-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-banner-card:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--line));
  box-shadow: var(--shadow-sm);
}
.admin-banner-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-banner-card__titles {
  min-width: 0;
}
.admin-banner-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.admin-banner-card__subtitle {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.admin-banner-card__preview {
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.admin-banner-card__preview-pill {
  max-width: 100%;
}
.admin-banner-card__code {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.admin-banner-card__position-note {
  font-size: 12px;
  color: var(--muted);
}
.admin-banner-card__link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.admin-banner-card__link:hover {
  color: var(--accent-dark);
}
.admin-marketing-page {
  min-width: 0;
}
.admin-marketing-form {
  gap: 12px;
}
.admin-marketing-form__submit {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Админка / модерация: отзывы */
.admin-review-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .admin-review-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .admin-review-kpis {
    grid-template-columns: 1fr;
  }
}
.admin-review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.admin-review-filters__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.admin-review-filters__field--grow {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}
.admin-review-filters__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.admin-review-filters__field input[type="search"],
.admin-review-filters__field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s;
  width: 100%;
}
.admin-review-filters__field input:focus,
.admin-review-filters__field select:focus {
  outline: none;
  border-color: var(--ink);
}
.admin-review-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-review-page {
  min-width: 0;
}
.admin-review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-review-card:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--line));
  box-shadow: var(--shadow-sm);
}
.admin-review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-review-card__studio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.admin-review-card__studio-link,
.admin-review-card__studio-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);}
.admin-review-card__studio-link {
  text-decoration: none;
}
.admin-review-card__studio-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(234, 179, 8, .12);
  color: #b45309;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.admin-review-card__rating svg {
  color: var(--star);
}
.admin-review-card__meta {
  margin: 0;
}
.admin-review-card__email {
  word-break: break-all;
}
.admin-review-card__text {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
}
.admin-review-card__reason {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--notice-error-border);
  background: color-mix(in srgb, var(--notice-error-border) 8%, var(--bg));
  font-size: 13px;
  line-height: 1.45;
  color: var(--notice-error-ink);
}
.admin-review-card__reason-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .85;
}
.admin-review-card__replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-review-card__reply {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.admin-review-card__reply-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 4px;
}
.admin-review-card__reply-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.admin-review-card__reply-meta {
  font-size: 12px;
  color: var(--muted);
}
.admin-review-card__reply-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
}
.admin-review-card__reply-form {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.admin-review-card__reply-form .owner-field {
  margin: 0;
}
.admin-review-card__reply-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.admin-review-card__reply-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-review-card__actions {
  margin-top: 2px;
}
.admin-review-pagination {
  margin-top: 20px;
}
.admin-question-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.admin-question-card__badge svg {
  color: currentColor;
}
.admin-question-card__question,
.admin-question-card__answer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-question-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.admin-question-card__text {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.admin-question-card__question .admin-question-card__text {
  background: var(--bg-soft);
  color: var(--ink);
}
.admin-question-card__answer .admin-question-card__text {
  border: 1px solid color-mix(in srgb, var(--notice-success-border) 55%, var(--line));
  background: color-mix(in srgb, var(--notice-success-border) 6%, var(--bg));
  color: var(--ink);
}
.admin-question-card__form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.admin-question-card .admin-review-card__reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.admin-question-card .admin-review-card__reply-form .owner-field {
  gap: 6px;
}
.admin-question-card .admin-review-card__reply-form textarea {
  min-height: 88px;
  display: block;
  width: 100%;
}

/* Backoffice: дашборды */
.bo-dash-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}
.bo-dash-summary__value {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-dark);}
.bo-dash-summary__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.bo-dash-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bo-dash-kpis--overview .bo-dash-kpi__value--sm {
  font-size: 22px;
}
.bo-dash-kpis--moderation {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .bo-dash-kpis--moderation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .bo-dash-kpis--moderation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .bo-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .bo-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bo-dash-kpi {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.bo-dash-kpi:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--line));
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.bo-dash-kpi.is-active {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.bo-dash-kpi--static {
  cursor: default;
}
.bo-dash-kpi--static:hover {
  border-color: var(--line);
  box-shadow: none;
  background: var(--bg);
}
.bo-dash-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
}
.bo-dash-kpi.is-active .bo-dash-kpi__icon {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent-dark);
}
.bo-dash-kpi__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bo-dash-kpi__value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);}
.bo-dash-kpi__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.bo-dash-kpi__hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  opacity: .9;
}
.bo-dash-kpi__dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.bo-dash-panels {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 1024px) {
  .bo-dash-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bo-dash-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  min-width: 0;
}
.bo-dash-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.bo-dash-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);}
.bo-dash-panel__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.bo-dash-panel__link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
}
.bo-dash-panel__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bo-dash-panel__fallback {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bo-dash-panel__fallback-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.bo-dash-feed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bo-dash-feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bo-dash-feed-item__main {
  min-width: 0;
  flex: 1 1 auto;
}
.bo-dash-feed-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.bo-dash-feed-item__link {
  color: inherit;
  text-decoration: none;
}
.bo-dash-feed-item__link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bo-dash-feed-item__type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.bo-dash-feed-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(234, 179, 8, .12);
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
}
.bo-dash-feed-item__text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.bo-dash-feed-item__meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.bo-dash-feed-item__action {
  flex-shrink: 0;
  margin: 0;
}
.bo-dash-feed-list {
  display: flex;
  flex-direction: column;
}
.bo-dash-feed-list--response {
  gap: 0;
}
.bo-dash-panel--response {
  gap: 0;
}
.bo-dash-panel--bookings {
  gap: 0;
}
.bo-dash-feed-list--bookings {
  gap: 0;
}
.bo-dash-feed-item--booking {
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
}
.bo-dash-feed-item--booking:first-child {
  padding-top: 4px;
}
.bo-dash-feed-item--booking.is-pending {
  padding: 12px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border-bottom-color: transparent;
}
.bo-dash-feed-item--booking.is-pending + .bo-dash-feed-item--booking {
  border-top: none;
  padding-top: 14px;
}
.bo-dash-feed-item--booking.is-clickable {
  cursor: pointer;
  transition: background .15s ease;
}
.bo-dash-feed-item--booking.is-clickable:hover {
  background: var(--bg-soft);
}
.bo-dash-feed-item--booking.is-pending.is-clickable:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.bo-dash-booking-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  min-height: 44px;
  padding: 5px 0;
  border-radius: 12px;
  background: var(--bg-soft);
  line-height: 1.1;
}
.bo-dash-feed-item--booking.is-pending .bo-dash-booking-date {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}
.bo-dash-booking-date__day {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);}
.bo-dash-booking-date__mon {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--muted);
}
.bo-dash-feed-item--booking.is-pending .bo-dash-booking-date__day {
  color: var(--accent-dark);
}
.bo-dash-booking-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.bo-dash-booking-info {
  min-width: 0;
  flex: 1 1 auto;
}
.bo-dash-booking-place {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.bo-dash-booking-studio,
.bo-dash-booking-hall {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bo-dash-booking-hall {
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 35%, var(--ink));
}
.bo-dash-booking-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.35;
}
.bo-dash-booking-line--muted {
  margin-top: 3px;
  color: var(--muted);
}
.bo-dash-booking-time {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bo-dash-booking-studio,
.bo-dash-booking-client {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bo-dash-booking-dot {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
.bo-dash-booking-id {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--muted) 85%, var(--ink));
}
.bo-dash-booking-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  justify-content: flex-start;
  flex-shrink: 0;
  padding-top: 1px;
}
.bo-dash-booking-side .status-badge {
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.bo-dash-booking-side .status-badge.is-completed {
  background: var(--bg-soft);
  color: var(--muted);
}
.bo-dash-booking-price {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.bo-dash-booking-deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-dark);
}
.bo-dash-booking-deadline__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.bo-dash-booking-actions {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.owner-dash-response-head {
  margin-bottom: 2px;
}
.bo-dash-feed-item--response {
  align-items: flex-start;
  gap: 12px;
}
.bo-dash-feed-item--response .bo-dash-feed-item__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 2px 8px 2px 6px;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.bo-dash-feed-item--response .bo-dash-feed-item__type-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.bo-dash-feed-item--response .bo-dash-feed-item__type--question {
  background: var(--notice-info-bg);
  color: var(--notice-info-icon);
}
.bo-dash-feed-item--response .bo-dash-feed-item__type--review {
  background: var(--notice-warning-bg);
  color: var(--notice-warning-icon);
}
.bo-dash-feed-item--response .bo-dash-feed-item__type--change {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-soft));
  color: var(--accent);
}
.bo-dash-feed-item__subject {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bo-dash-reply-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}
.bo-dash-reply-form__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.3;
  background: var(--bg);
  color: var(--ink);
}
.bo-dash-reply-form__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.bo-dash-reply-form__btn {
  flex-shrink: 0;
  padding: 7px 12px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
@media (max-width: 767px) {
  .bo-dash-feed-item--response,
  .bo-dash-feed-item--booking {
    flex-wrap: wrap;
  }
  .bo-dash-feed-item--booking.is-pending {
    margin: 0;
  }
  .bo-dash-booking-layout {
    flex-direction: column;
    gap: 8px;
  }
  .bo-dash-booking-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 0;
  }
  .bo-dash-feed-item--response .bo-dash-feed-item__action,
  .bo-dash-feed-item--booking .bo-dash-feed-item__action {
    width: 100%;
    align-self: stretch;
  }
  .bo-dash-booking-actions {
    justify-content: stretch;
  }
  .bo-dash-booking-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .bo-dash-reply-form {
    flex-direction: column;
    align-items: stretch;
  }
  .bo-dash-reply-form__btn {
    width: 100%;
  }
}
.bo-dash-audit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.bo-dash-audit-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bo-dash-audit-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--muted);
}
.bo-dash-audit-item__body {
  min-width: 0;
  flex: 1 1 auto;
}
.bo-dash-audit-item__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.bo-dash-audit-item__meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.bo-dash-audit-item__note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.bo-dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  text-align: center;
}
.bo-dash-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--muted);
}
.bo-dash-empty__text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 28ch;
}
.bo-dash-period-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .bo-dash-period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .bo-dash-period-grid {
    grid-template-columns: 1fr;
  }
}
.bo-dash-period-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.bo-dash-period-card:hover {
  border-color: color-mix(in srgb, var(--ink) 14%, var(--line));
  background: var(--bg);
}
.bo-dash-period-card--static {
  cursor: default;
}
.bo-dash-period-card--static:hover {
  border-color: var(--line);
  background: var(--bg-soft);
}
.bo-dash-period-card__value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);}
.bo-dash-period-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

/* Админ: обзор платформы и статистика */
.platform-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.platform-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.platform-hero__main {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
}
.platform-hero__back:hover { color: var(--accent-dark); }
.platform-hero__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.platform-hero__sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.platform-hero__metric {
  flex: 0 0 auto;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}
.platform-hero__metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.platform-hero__metric-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-dark);}
.platform-hero__metric-link,
.platform-hero__metric-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.platform-hero__metric-link {
  color: var(--accent-dark);
  text-decoration: none;
  margin-top: 2px;
}
.platform-hero__metric-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.platform-section__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.bo-dash-kpis--catalog,
.bo-dash-kpis--activity {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bo-dash-kpis--overview-mini {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bo-dash-kpis--owner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Owner dashboard */
.owner-dash-tasks {
  margin-bottom: 12px;
}
.owner-dash-metrics {
  margin-bottom: 12px;
  padding: 12px 0;
}
.owner-dash-ref-stats-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
}
.owner-dash-ref-stats-link:hover {
  background: var(--bg-soft);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}
.owner-dash-ref-stats-link__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted);
}
.owner-dash-tabs-scroll {
  overflow-x: auto;
  overflow-y: visible;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.owner-dash-tabs-scroll::-webkit-scrollbar {
  display: none;
}
.owner-dash-panels {
  margin-top: 0;
}
.owner-dash-plaque {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 16px;
}
.owner-dash-plaque--studio {
  border: 1px solid color-mix(in srgb, var(--notice-warning-border) 50%, transparent);
  background: var(--notice-warning-bg);
}
@media (min-width: 768px) {
  .owner-dash-plaque--studio {
    width: fit-content;
    max-width: 100%;
  }
}
.owner-dash-tabs {
  flex-wrap: wrap;
  gap: 10px;
}
.owner-dash-tabs .mod-queue-tab {
  position: relative;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 14px;
  border-radius: 12px;
  border: none;
  background: var(--bg);
  color: var(--ink);
  box-shadow: none;
}
.owner-dash-tabs .mod-queue-tab:hover {
  background: var(--bg-soft);
}
.owner-dash-tabs .mod-queue-tab.is-active {
  border: none;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  box-shadow: none;
}
.owner-dash-tab__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 1;
  color: color-mix(in srgb, var(--muted) 30%, var(--ink));
}
.owner-dash-tab.is-active .owner-dash-tab__icon {
  color: var(--accent-dark);
}
.owner-dash-tab__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.owner-dash-tab__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.owner-dash-tab__count {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  border: none;
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.owner-dash-tab__count--zero {
  background: var(--bg-soft);
  color: var(--muted);
}
.owner-dash-tab.is-active .owner-dash-tab__count {
  background: var(--accent);
  color: #fff;
}
.owner-dash-tab__hint {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
}
.mod-queue-tab.is-active .owner-dash-tab__hint {
  color: color-mix(in srgb, var(--muted) 45%, var(--ink));
}
.owner-dash-ref-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.owner-dash-ref-scroll::-webkit-scrollbar {
  display: none;
}
.owner-dash-ref-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.owner-dash-ref-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--bg-soft);
  line-height: 1.2;
  white-space: nowrap;
}
.owner-dash-ref-period__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted);
}
.owner-dash-ref-period__text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
}
.owner-dash-ref-period__prefix {
  color: var(--muted);
  font-weight: 500;
}
.owner-dash-ref-period__month {
  color: var(--ink);
  font-weight: 700;
}
.owner-dash-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.3;
  color: inherit;
  white-space: nowrap;
}
.owner-dash-metric__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted);
}
.owner-dash-metric__value {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.owner-dash-metric__label {
  color: var(--muted);
}
a.owner-dash-metric--link {
  text-decoration: none;
  padding: 4px 10px 4px 8px;
  margin: -4px -2px;
  border-radius: 999px;
  transition: background .12s ease;
}
a.owner-dash-metric--link:hover {
  background: var(--bg-soft);
}
a.owner-dash-metric--link.is-highlight .owner-dash-metric__value {
  color: #d97706;
}
.owner-dash-alerts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.owner-dash-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
}
a.owner-dash-alert:hover .owner-dash-alert__text {
  text-decoration: underline;
}
.owner-dash-alert__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.owner-dash-alert__name {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.owner-dash-alert__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
@media (max-width: 767px) {
  .owner-dash-tabs-scroll .owner-dash-tabs {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }
  .owner-dash-tabs .mod-queue-tab {
    flex: 0 0 auto;
  }
  .owner-dash-tab__hint {
    display: none;
  }
  .owner-dash-ref-scroll {
    margin: 0;
    padding: 2px 0 4px;
  }
  .owner-dash-ref-metrics {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    gap: 0 14px;
  }
  .owner-dash-ref-period {
    flex: 0 0 auto;
    margin-right: 2px;
  }
  .owner-dash-metric {
    flex: 0 0 auto;
  }
}
.owner-feedback-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.owner-feedback-tabs {
  flex-wrap: wrap;
}
.owner-feedback-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.owner-feedback-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.owner-feedback-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.owner-feedback-filter-tab:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.owner-feedback-filter-tab.is-active {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--accent-dark);
}
.owner-feedback-studio-filter {
  min-width: 0;
}
.owner-feedback-studio-select {
  min-width: 180px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 12px;
  color: var(--ink);
}
.owner-feedback-panel {
  margin-top: 0;
}
.owner-feedback-list {
  margin-top: 4px;
}
.owner-feedback-pagination {
  margin-top: 16px;
}
@media (max-width: 900px) {
  .bo-dash-kpis--catalog,
  .bo-dash-kpis--activity,
  .bo-dash-kpis--overview-mini,
  .bo-dash-kpis--owner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.platform-panels {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 1024px) {
  .platform-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.platform-tabs {
  margin-bottom: 0;
}
.platform-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .platform-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.platform-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  min-width: 0;
}
.platform-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--ink);
}
.platform-kpi__value {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);}
.platform-kpi__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.platform-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-chart__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}
.platform-chart__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.platform-chart__track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.platform-chart__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 75%, #3b82f6), var(--accent));
}
.platform-chart__value {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.platform-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-rank__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.platform-rank__pos {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.platform-rank__main {
  flex: 1 1 auto;
  min-width: 0;
}
.platform-rank__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.platform-rank__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
.platform-rank__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.platform-rank__track {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 4px;
}
.platform-rank__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #22c55e), var(--accent));
}
.platform-rank__meta {
  font-size: 11px;
  color: var(--muted);
}
.platform-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}
.platform-empty svg { opacity: .55; }
.platform-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  max-width: 28ch;
}

/* Карточки студий в списке «Мои студии» */
.owner-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.owner-studio-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.owner-studio-card:hover {
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
  box-shadow: var(--shadow-sm);
}
.owner-studio-card .osc-cover {
  aspect-ratio: 2 / 1;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}
.owner-studio-card .osc-cover__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.owner-studio-card .osc-cover__fallback .fp-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.owner-studio-card .osc-cover__img,
.owner-studio-card .osc-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.owner-studio-card:hover .osc-cover__img,
.owner-studio-card:hover .osc-cover img {
  transform: scale(1.03);
}
.owner-studio-card .osc-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.owner-studio-card .osc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.owner-studio-card .osc-head__main {
  min-width: 0;
  flex: 1;
}
.owner-studio-card .osc-head .status-badge {
  flex-shrink: 0;
  margin-top: 1px;
}
.owner-studio-card .osc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
  display: block;
}
.owner-studio-card .osc-name:hover { text-decoration: underline; }
.owner-studio-card .osc-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}
.owner-studio-card .osc-stats {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 6px; font-size: 11px; color: var(--muted);
}
.owner-studio-card .osc-stats b { color: var(--ink); font-weight: 700; font-size: 12px; }
.owner-studio-card .osc-halls {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.owner-studio-card .osc-hall-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  transition: background .12s ease;
}
.owner-studio-card .osc-hall-link:hover { background: #fff; box-shadow: var(--shadow-sm); }
.owner-studio-card .osc-hall-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.owner-studio-card .osc-hall-price {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.owner-studio-card .osc-halls-more {
  display: block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.owner-studio-card .osc-halls-more:hover { color: var(--ink); text-decoration: underline; }
.owner-studio-card .osc-halls-empty {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.owner-studio-card .osc-actions {
  display: flex; gap: 6px; margin-top: auto; padding-top: 10px;
}

/* Панель-обёртка (редактор, списки) */
.owner-panel {
  background: var(--bg-soft);
  border-radius: var(--radius-card);
  padding: 12px;
}
.owner-panel--empty {
  padding: 0;
}

/* Универсальная строка: миниатюра + контент + цена + действия */
.owner-row {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  transition: box-shadow .12s ease, background .12s ease;
}
.owner-halls-panel .owner-row + .owner-row {
  margin-top: 8px;
}
.owner-halls-panel .owner-row:hover {
  box-shadow: var(--shadow-sm);
}
.owner-row:not(.owner-row--hall) {
  border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.owner-row:not(.owner-row--hall):hover { border-color: var(--ink); }
.owner-row:not(.owner-row--hall) + .owner-row:not(.owner-row--hall) { margin-top: 8px; }
.owner-row .or-thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
  text-decoration: none;
}
.owner-row--hall .or-thumb { border-radius: 12px; }
.owner-row .or-info { min-width: 0; }
.owner-row .or-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.owner-row .or-title-link {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.owner-row .or-title-link:hover { text-decoration: underline; }
.owner-row .or-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.owner-row .or-title { font-weight: 700; font-size: 14px; line-height: 1.2; }
.owner-row .or-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.owner-row .or-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}
.owner-row .or-note.is-error { color: var(--notice-error-ink); }
.owner-inline-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--bg-soft);
  color: var(--muted);
}
.owner-row .or-thumb img,
.owner-row .or-thumb .fp-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.owner-row .or-thumb.is-round { border-radius: 50%; }
.owner-edit-head .oeh-img.is-round { border-radius: 50%; overflow: hidden; }
.owner-row .or-meta-strong { font-size: 13px; color: var(--ink); margin-top: 3px; font-weight: 500; }
.owner-row .or-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.owner-row .or-price small { font-weight: 400; color: var(--muted); }
.owner-row .or-actions { display: flex; gap: 6px; align-items: center; }

@media (max-width: 640px) {
  .owner-row { grid-template-columns: 56px 1fr; gap: 10px; }
  .owner-row .or-thumb { width: 56px; height: 56px; }
  .owner-row .or-price, .owner-row .or-actions { grid-column: 2 / -1; padding-top: 6px; }
  .owner-row .or-actions { justify-content: flex-end; }
}

/* Подвкладки редактора */
.owner-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-bottom: 24px;
}
.owner-tabs::-webkit-scrollbar { display: none; }
.owner-tab {
  background: transparent; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; white-space: nowrap;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.owner-tab:hover { color: var(--ink); background: var(--bg-soft); }
.owner-tab.is-active { color: var(--ink); background: var(--bg-soft); font-weight: 600; }

/* Шапка редактора (студии или зала) */
.owner-edit-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
  flex-wrap: wrap;
}
.owner-edit-head .oeh-img {
  width: 96px; height: 64px; border-radius: 12px; overflow: hidden;
  background: var(--bg-soft); flex-shrink: 0;
}
.owner-edit-head .oeh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner-edit-head .oeh-title { font-size: 24px; font-weight: 600; line-height: 1.2; }
.owner-edit-head .oeh-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.owner-edit-head .mt-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.oeh-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.owner-edit-head .oeh-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oeh-actions-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oeh-actions .oeh-actions-divider { width: 1px; height: 24px; background: var(--line); flex-shrink: 0; }
@media (max-width: 640px) {
  .owner-edit-head .oeh-actions { margin-left: 0; width: 100%; }
  .oeh-actions .oeh-actions-divider { display: none; }
}

/* Бейдж «Опубликован» / статусы (legacy-класс, в шаблонах не используется) */
.owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: var(--bg-soft);
  color: var(--muted);
}

/* Двухколоночная сетка формы */
.owner-form-grid {
  display: grid; gap: 14px 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.owner-form-grid .full { grid-column: 1 / -1; }
.owner-field {
  display: flex; flex-direction: column; gap: 6px;
}
.owner-field label {
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.owner-field label .req { color: var(--accent); }
.owner-field input[type="text"],
.owner-field input[type="email"],
.owner-field input[type="tel"],
.owner-field input[type="number"],
.owner-field input[type="url"],
.owner-field input[type="date"],
.owner-field input[type="time"],
.owner-field input[type="datetime-local"],
.owner-field select,
.owner-field textarea {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--bg); transition: border-color .15s;
  width: 100%;
}
.owner-field input[type="date"],
.owner-field input[type="time"],
.owner-field input[type="datetime-local"] {
  min-height: 44px;
  color-scheme: light;
}
[data-theme="dark"] .owner-field input[type="date"],
[data-theme="dark"] .owner-field input[type="time"],
[data-theme="dark"] .owner-field input[type="datetime-local"] {
  color-scheme: dark;
}
.owner-field input[type="date"]::-webkit-calendar-picker-indicator,
.owner-field input[type="time"]::-webkit-calendar-picker-indicator,
.owner-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .55;
}
.owner-field input:focus,
.owner-field select:focus,
.owner-field textarea:focus { outline: none; border-color: var(--ink); }
.owner-field textarea { min-height: 96px; resize: vertical; }
.owner-field textarea[data-textarea-autosize] {
  resize: none;
  overflow: hidden;
  field-sizing: content;
}
.owner-field .owner-field-hint { font-size: 11px; color: var(--muted); }
.owner-field-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.owner-field-toggle__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.owner-field-toggle .fp-switch {
  margin-top: 0;
  flex-shrink: 0;
}
.owner-field-static {
  font-size: 14px;
  line-height: 1.35;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft, #f7f7f7);
  color: var(--ink);
}
.studio-location-address-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.studio-location-address-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.studio-contacts-layout {
  display: grid;
  gap: 28px 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .studio-contacts-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }
}
.studio-contacts-location {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.studio-contacts-geo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.studio-contacts-map-block {
  margin: 0;
}
.studio-contacts-communication {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .studio-contacts-communication {
    position: sticky;
    top: 24px;
  }
}
.studio-contacts-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);}
.studio-contacts-comm-grid {
  grid-template-columns: 1fr;
}
.studio-location-map {
  width: 100%;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft, #f3f4f6);
}
.studio-location-hint,
.studio-location-status {
  margin: 0;
}
.studio-location-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.studio-location-coords {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.studio-contacts-map-block.has-error .studio-location-coords {
  color: var(--notice-error-ink);
  opacity: 1;
}
.owner-field.has-error input[type="text"],
.owner-field.has-error input[type="email"],
.owner-field.has-error input[type="tel"],
.owner-field.has-error input[type="number"],
.owner-field.has-error input[type="url"],
.owner-field.has-error input[type="date"],
.owner-field.has-error input[type="time"],
.owner-field.has-error input[type="datetime-local"],
.owner-field.has-error select,
.owner-field.has-error textarea,
input.is-field-error,
textarea.is-field-error,
select.is-field-error {
  background: var(--notice-error-bg);
}
.fp-field-error,
.owner-field-error {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--notice-error-ink);
}
.fp-field-error--md {
  font-size: 14px;
  margin-top: 6px;
}
.fp-text-error {
  color: var(--notice-error-ink);
}
.owner-tabs .owner-tab[data-tab-has-error="1"]:not(.is-active) {
  color: var(--notice-error-ink);
}
.fp-tab-error-dot {
  background: var(--notice-error-icon);
}

/* Чекбоксы списком (удобства, оборудование, типы света) */
.owner-checks {
  display: grid; gap: 8px 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.owner-check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; padding: 8px 12px; border: none;
  border-radius: 12px; background: var(--bg-soft);
  transition: background .15s ease;
}
.owner-check:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.owner-check input { accent-color: var(--accent); }
.owner-check.is-checked {
  border: none;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent-dark, var(--accent));
  font-weight: 600;
}
.owner-check.is-checked:hover {
  background: rgba(var(--accent-rgb), .18);
}

/* Pivot-элементы: удобства / оборудование с примечаниями (компактный inline) */
.owner-pivot-list { display: flex; flex-direction: column; gap: 3px; }
.owner-pivot-item {
  border: 1px solid transparent; border-radius: 8px;
  transition: background .15s;
}
.owner-pivot-item:hover { background: var(--bg-soft); }
.owner-pivot-item.is-active,
.owner-pivot-item:has(.owner-pivot-item__head input:checked) {
  background: rgba(var(--accent-rgb), .05);
}
[data-theme="dark"] .owner-pivot-item.is-active,
[data-theme="dark"] .owner-pivot-item:has(.owner-pivot-item__head input:checked) {
  background: rgba(var(--accent-rgb), .1);
}
.owner-pivot-item__row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px;
}
.owner-pivot-item__head {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  flex: 0 1 38%; min-width: 120px; max-width: 240px;
}
.owner-pivot-item.is-active .owner-pivot-item__head,
.owner-pivot-item:has(.owner-pivot-item__head input:checked) .owner-pivot-item__head {
  font-weight: 600;
}
.owner-pivot-item__head input { accent-color: var(--accent); flex-shrink: 0; }
.owner-pivot-item__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-pivot-item__extras {
  display: none; flex: 1; align-items: center; gap: 6px; min-width: 0;
}
.owner-pivot-item.is-active .owner-pivot-item__extras,
.owner-pivot-item:has(.owner-pivot-item__head input:checked) .owner-pivot-item__extras {
  display: flex;
}
.owner-pivot-item__qty,
.owner-pivot-item__input {
  font-size: 12px; line-height: 1.2;
  padding: 2px 6px; height: 26px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
}
.owner-field .owner-pivot-item__qty,
.owner-field .owner-pivot-item__input {
  width: auto; padding: 2px 6px; height: 26px; border-radius: 6px; font-size: 12px; line-height: 1.2;
}
.owner-pivot-item__qty,
.owner-field .owner-pivot-item__qty {
  width: 52px; flex: 0 0 52px; flex-shrink: 0; text-align: center;
}
.owner-pivot-item__input,
.owner-field .owner-pivot-item__input {
  flex: 1 1 0; min-width: 0; width: 0;
}
.owner-pivot-item__qty:focus,
.owner-pivot-item__input:focus { outline: none; border-color: var(--accent); }
.owner-pivot-item__qty:disabled,
.owner-pivot-item__input:disabled { opacity: .45; cursor: not-allowed; background: var(--bg-soft); }

@media (max-width: 640px) {
  .owner-pivot-item__row { flex-wrap: wrap; gap: 6px; padding: 6px 10px; }
  .owner-pivot-item__head { flex: 1 1 100%; max-width: none; min-width: 0; }
  .owner-pivot-item.is-active .owner-pivot-item__extras,
  .owner-pivot-item:has(.owner-pivot-item__head input:checked) .owner-pivot-item__extras {
    flex: 1 1 100%;
  }
}

/* Tag-input (теги, своё оборудование) */
.owner-tag-input {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg);
}
.owner-tag-input:focus-within { border-color: var(--ink); }
.owner-tag-input .oti-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-soft); color: var(--ink);
  font-size: 12px; font-weight: 500;
  padding: 4px 6px 4px 10px; border-radius: 999px;
}
.owner-tag-input .oti-tag .oti-x {
  width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; opacity: .6;
}
.owner-tag-input .oti-tag .oti-x:hover { opacity: 1; background: var(--line); }
.owner-tag-input input {
  border: 0; outline: none; font-size: 13px; font-family: inherit;
  background: transparent; color: var(--ink);
  flex: 1; min-width: 120px; padding: 4px 6px;
}

/* Превью фото в формах */
.owner-photo-preview {
  position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.owner-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner-photo-preview .opp-actions {
  position: absolute; top: 10px; right: 10px; display: flex; gap: 6px;
}
.owner-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.owner-gallery__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.owner-gallery__meta {
  font-size: 12px;
  color: var(--muted);
}
.owner-gallery-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.owner-gallery-grid .ogg-cell {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.owner-gallery-grid .ogg-cell__img,
.owner-gallery-grid .ogg-cell img,
.owner-gallery-grid .ogg-cell .fp-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.owner-gallery-grid .ogg-cell__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .15s ease;
}
.owner-gallery-grid .ogg-cell:hover .ogg-cell__overlay,
.owner-gallery-grid .ogg-cell:focus-within .ogg-cell__overlay {
  opacity: 1;
}
.owner-gallery-grid .ogg-cell__btn {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.owner-gallery-grid .ogg-cell__btn--danger {
  min-width: 28px;
  padding-inline: 8px;
  color: var(--accent);
  font-size: 14px;
}
.owner-gallery-grid .ogg-cell__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.owner-gallery-grid .ogg-cell__drag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.owner-gallery-grid .ogg-cell__drag::before {
  content: '⋮⋮';
  display: block;
  font-size: 11px;
  line-height: 24px;
  letter-spacing: -1px;
}
.owner-gallery-grid .ogg-cell__drag:active {
  cursor: grabbing;
}
.owner-gallery-grid .ogg-cell.is-dragging {
  opacity: .55;
}
.owner-gallery.is-saving {
  opacity: .85;
  pointer-events: none;
}
.owner-gallery-grid .ogg-add {
  border: 1.5px dashed var(--line);
  background: transparent;
}
.owner-gallery-grid .ogg-add:hover {
  border-color: color-mix(in srgb, var(--ink) 24%, var(--line));
  background: var(--bg-soft);
}
.owner-gallery-grid .ogg-add__form {
  width: 100%;
  height: 100%;
  margin: 0;
}
.owner-gallery-grid .ogg-add__label {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: color .15s ease;
}
.owner-gallery-grid .ogg-add:hover .ogg-add__label {
  color: var(--ink);
}
.owner-gallery-grid .ogg-add__icon {
  width: 22px;
  height: 22px;
  opacity: .55;
}
.owner-gallery-grid .ogg-add__text {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

/* Действия формы внизу таба */
.owner-form-actions {
  display: flex; gap: 10px; align-items: center;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}

/* Бейджи статусов брони */
.booking-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.booking-status.is-new { background: rgba(59, 130, 246, .12); color: #2563eb; }
.booking-status.is-confirmed { background: rgba(34, 197, 94, .12); color: #16a34a; }
.booking-status.is-cancelled { background: rgba(239, 68, 68, .12); color: var(--accent); }

/* Брони: переключатели периода */
.owner-range-tabs {
  display: inline-flex; gap: 2px; background: var(--bg-soft);
  border-radius: 999px; padding: 3px;
}
.owner-range-tabs button,
.owner-range-tabs a {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 14px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.owner-range-tabs button:hover,
.owner-range-tabs a:hover { color: var(--ink); }
.owner-range-tabs button.is-active,
.owner-range-tabs a.is-active { background: var(--ink); color: #fff; font-weight: 600; }

/* Мини-календарь броней (точка-индикатор на дне) */
.owner-cal {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.owner-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.owner-cal-head .ocal-month { font-weight: 700; font-size: 15px; }
.owner-cal-head button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.owner-cal-head button:hover { background: var(--bg-soft); }
.owner-cal .ocal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  font-size: 10px; color: var(--muted); text-align: center;
  margin-bottom: 4px;
}
.owner-cal .ocal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.owner-cal .ocal-day {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; border-radius: 10px; position: relative;
  transition: background .15s;
  color: var(--ink);
}
.owner-cal .ocal-day:hover:not(.is-empty) { background: var(--bg-soft); }
.owner-cal .ocal-day.is-empty { cursor: default; }
.owner-cal .ocal-day.is-today { font-weight: 700; color: var(--accent); }
.owner-cal .ocal-day.is-selected { background: var(--ink); color: #fff; font-weight: 700; }
.owner-cal .ocal-day.has-bookings::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.owner-cal .ocal-day.is-selected.has-bookings::after { background: #fff; }

/* Notification card */
.owner-notif {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg);
}
.owner-notif + .owner-notif { margin-top: 8px; }
.owner-notif .on-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--muted);
}
.owner-notif .on-text { flex: 1; min-width: 0; font-size: 13px; }
.owner-notif .on-text b { color: var(--ink); }
.owner-notif .on-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Заглушка/пустое состояние */
.owner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 40px 20px;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}
.owner-placeholder .op-icon {
  width: 48px; height: 48px; margin: 0 0 4px;
  color: var(--muted); opacity: .5;
}
.owner-placeholder .op-title {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin: 0;
}
.owner-placeholder p {
  margin: 0;
  max-width: 28ch;
  line-height: 1.45;
}
.owner-placeholder .btn-primary,
.owner-placeholder a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.owner-bookings-page .owner-placeholder {
  margin-top: 12px;
}

/* Тёмная тема */
[data-theme="dark"] .owner-studio-card .osc-hall-link:hover { background: var(--card); }
[data-theme="dark"] .owner-studio-card {
  background: var(--bg);
  border-color: var(--line);
}
[data-theme="dark"] .owner-studio-card .osc-cover__fallback.checker {
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.04) 75%),
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.04) 75%);
  /* legacy: .checker больше не применяется к карточкам студий */
}
[data-theme="dark"] .owner-panel { background: var(--bg-soft); }
[data-theme="dark"] .owner-halls-panel .owner-row { background: var(--card); }
[data-theme="dark"] .owner-row:not(.owner-row--hall),
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .owner-cal,
[data-theme="dark"] .owner-notif { background: var(--bg); }
[data-theme="dark"] .owner-cal .ocal-day { color: var(--ink); }
[data-theme="dark"] .role-switch { background: var(--bg-soft); }

/* ====================================================================== */
/* === Админ / Модератор (admin.html, moderator.html) =================== */
/* ====================================================================== */

/* Diff (заявки на изменение) */
.diff-block,
.cr-diff__block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 10px;
}
.diff-side,
.cr-diff__side {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: var(--bg);
}
.diff-side .diff-label,
.cr-diff__label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  font-weight: 700; color: var(--muted); margin-bottom: 6px;
}
.diff-side.is-before,
.cr-diff__side--before { background: rgba(239, 68, 68, .04); border-color: rgba(239, 68, 68, .16); }
.diff-side.is-after,
.cr-diff__side--after  { background: rgba(34, 197, 94, .06); border-color: rgba(34, 197, 94, .18); }
.diff-side .diff-content,
.cr-diff__content { font-size: 13px; color: var(--ink); line-height: 1.45; }
.diff-side .diff-content ul,
.cr-diff__content ul { padding-left: 16px; }
.diff-row,
.cr-diff__row { margin-bottom: 14px; }
.diff-row:last-child,
.cr-diff__row:last-child { margin-bottom: 0; }
.diff-row .diff-field,
.cr-diff__field {
  font-size: 12px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
}
.cr-diff__empty,
.cr-diff__more {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.cr-diff__more { margin-top: 10px; }
.cr-diff--compact .cr-diff__row { margin-bottom: 10px; }
@media (max-width: 640px) {
  .diff-block,
  .cr-diff__block { grid-template-columns: 1fr; }
}

/* Карточка изменений — превью в списке */
.cr-diff-preview {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.cr-diff-preview__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, var(--muted));
  margin-bottom: 10px;
}
.cr-diff-preview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cr-diff-preview__item {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}
.cr-diff-preview__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.cr-diff-preview__more {
  display: inline-flex;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cr-diff-preview__empty {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Сводка изменений (сайдбар) */
.cr-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.cr-summary__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cr-summary__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cr-summary__track {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.cr-summary__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 80%, #3b82f6), var(--accent));
  transition: width .25s ease;
}
.cr-summary__note {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.cr-summary__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.cr-summary--panel .cr-summary__note {
  color: var(--ink);
  font-weight: 600;
}

/* Журнал действий */
.audit-log {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.al-row {
  display: grid;
  grid-template-columns: 140px 180px 1fr 1fr 130px;
  gap: 12px; padding: 12px 16px; align-items: center;
  font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.al-row:last-child { border-bottom: 0; }
.al-row.al-head {
  background: var(--bg-soft);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.al-row .al-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.al-row .al-actor b { display: block; }
.al-row .al-target { color: var(--muted); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; }
.al-row .al-ip { color: var(--muted); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; text-align: right; }
@media (max-width: 900px) {
  .al-row { grid-template-columns: 1fr 1fr; }
  .al-row .al-ip, .al-row .al-target { grid-column: 1 / -1; }
  .al-row.al-head { display: none; }
}

/* Таблетка роли пользователя */
.user-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted);
}
.user-pill.is-client    { background: rgba(59, 130, 246, .12); color: #2563eb; }
.user-pill.is-owner     { background: rgba(168, 85, 247, .14); color: #7c3aed; }
.user-pill.is-moderator { background: rgba(234, 179, 8, .14);  color: #b45309; }
.user-pill.is-admin     { background: rgba(239, 68, 68, .12);  color: var(--accent); }

/* Горизонтальная мини-полоса для топ-студий */
.stat-bar-row {
  display: grid; grid-template-columns: 24px 1fr 100px 80px; gap: 12px;
  align-items: center; padding: 10px 0; font-size: 13px;
}
.stat-bar-row + .stat-bar-row { border-top: 1px solid var(--line); }
.stat-bar-row .sbr-rank { font-weight: 700; color: var(--muted); font-size: 12px; }
.stat-bar-row .sbr-name { font-weight: 600; min-width: 0; }
.stat-bar-row .sbr-name .sbr-meta { font-size: 11px; color: var(--muted); font-weight: 400; display: block; }
.stat-bar-row .sbr-bar {
  position: relative; height: 6px; background: var(--bg-soft); border-radius: 3px; overflow: hidden;
}
.stat-bar-row .sbr-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent); border-radius: 3px;
}
.stat-bar-row .sbr-val { font-weight: 700; text-align: right; white-space: nowrap; }

/* Severity-бейдж жалоб */
.severity {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px;
}
.severity::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.severity.is-low    { background: rgba(34, 197, 94, .12); color: #16a34a; }
.severity.is-low::before    { background: #16a34a; }
.severity.is-med    { background: rgba(234, 179, 8, .14); color: #b45309; }
.severity.is-med::before    { background: #ca8a04; }
.severity.is-high   { background: rgba(239, 68, 68, .12); color: var(--accent); }
.severity.is-high::before   { background: var(--accent); }

/* Вкладки очереди модерации (legacy — оставлено для studio-review и др.) */
.mod-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.mod-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -5px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.mod-tab svg { color: currentColor; flex: 0 0 auto; opacity: .85; }
.mod-tab:hover { color: var(--ink); background: var(--bg-soft); }
.mod-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.mod-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.mod-tab.is-active .mod-tab__count {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}

/* Пустое состояние очереди */
.mod-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}
.mod-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--notice-success-bg);
  color: var(--notice-success-icon);
  margin-bottom: 4px;
}
.mod-empty__title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.mod-empty__hint { font-size: 13px; color: var(--muted); margin: 0; }

/* Очередь модерации — страница /queue */
.mod-queue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mod-queue-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mod-queue-tab svg {
  flex-shrink: 0;
  opacity: .85;
}
.mod-queue-tab:hover {
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
  color: var(--ink);
  background: var(--bg-soft);
}
.mod-queue-tab.is-active {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  color: var(--ink);
}
.mod-queue-tab.is-active .mod-queue-tab__count {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}
.mod-queue-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.mod-queue-page {
  min-width: 0;
}
.mod-queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mod-queue-empty {
  margin-top: 4px;
}

.mod-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  background: var(--bg); margin-bottom: 0;
}
.mod-card .mc-head {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px;
}
.mod-card .mc-cover {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  background: var(--bg-soft); flex-shrink: 0;
}
.mod-card .mc-cover img { width: 100%; height: 100%; object-fit: cover; }
.mod-card .mc-title { font-weight: 700; font-size: 15px; }
.mod-card .mc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mod-card .mc-meta {
  margin-left: auto; display: flex; gap: 6px; align-items: center; flex-shrink: 0;
}
.mod-card .mc-body { font-size: 13px; color: var(--ink); line-height: 1.5; }
.mod-card .mc-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.mod-card--change .mc-cover {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

/* ── Карточка очереди модерации (студия/зал) ─────────────────────── */
.mqcard {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mqcard--studio,
.mqcard--change,
.mqcard--hall {
  padding: 0;
  overflow: hidden;
}
.mqcard--studio .mqcard__layout,
.mqcard--change .mqcard__layout,
.mqcard--hall .mqcard__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .mqcard--studio .mqcard__layout,
  .mqcard--change .mqcard__layout,
  .mqcard--hall .mqcard__layout {
    grid-template-columns: 1fr;
  }
}
.mqcard__main {
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mqcard__side {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--bg));
  min-width: 0;
}
@media (max-width: 900px) {
  .mqcard__side {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
.mqcard__side-block {
  padding: 14px 16px;
}
.mqcard__side-block + .mqcard__side-block {
  border-top: 1px solid var(--line);
}
.mqcard__side-block--actions {
  margin-top: auto;
  background: var(--bg);
}
.mqcard__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.mqcard__cover {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg-soft)), var(--bg-soft));
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.mqcard__cover:hover {
  box-shadow: var(--shadow-sm);
}
.mqcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.mqcard__cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--accent) 45%, var(--muted));
}
.mqcard__id { flex: 1 1 auto; min-width: 0; }
.mqcard__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mqcard__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
  text-decoration: none;
}
.mqcard__title:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mqcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 6px;
}
.mqcard__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink);
  min-width: 0;
}
.mqcard__meta-item svg { color: var(--muted); flex: 0 0 auto; }
.mqcard__owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.mqcard__owner svg { flex: 0 0 auto; }
.mqcard__owner-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mqcard__aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.mqcard__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.mqcard__date svg { flex: 0 0 auto; }
.mqcard__body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mqcard--studio .mqcard__body,
.mqcard--change .mqcard__body,
.mqcard--hall .mqcard__body {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.mqcard--studio .mqcard__head,
.mqcard--change .mqcard__head,
.mqcard--hall .mqcard__head {
  gap: 14px;
}
.mqcard__studio-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.mqcard__studio-link-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mqcard__studio-link-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.mqcard__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.mqcard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mqcard__chip {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.mqcard__chip--more { color: var(--muted); background: transparent; }
.mqcard__chip--type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-soft));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
[data-theme="dark"] .mqcard__chip--type {
  color: #c9956a;
}
.mqcard__halls-block {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
[data-theme="dark"] .mqcard__halls-block {
  background: color-mix(in srgb, var(--bg) 92%, var(--bg-soft));
  box-shadow: none;
}
.mqcard__halls-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, var(--muted));
  margin-bottom: 8px;
}
.mqcard__halls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mqcard__hall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 13px;
}
.mqcard__hall:last-child { border-bottom: 0; }
.mqcard__hall-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mqcard__hall-name { color: var(--ink); font-weight: 600; min-width: 0; }
.mqcard__hall-meta { color: var(--muted); font-size: 12px; }
.mqcard__hall.has-warn .mqcard__hall-name { color: #b45309; }
[data-theme="dark"] .mqcard__hall.has-warn .mqcard__hall-name { color: #fbbf24; }
.mqcard__hall-warn {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
[data-theme="dark"] .mqcard__hall-warn { color: #fbbf24; }

@media (max-width: 560px) {
  .mqcard__head { flex-wrap: wrap; }
  .mqcard__aside { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; width: 100%; }
}
.mod-warn-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 10px;
  padding: 7px 11px;
}
.mod-warn-note svg { flex: 0 0 auto; }
[data-theme="dark"] .mod-warn-note { color: #fbbf24; }

/* Чеклист модерации */
.mod-checklist-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mod-checklist-wrap--compact { gap: 8px; }
.mod-checklist-wrap--summary-only { gap: 0; }
.mod-checklist-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.mod-checklist-summary__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mod-checklist-summary__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mod-checklist-summary__track {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.mod-checklist-summary__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width .25s ease;
}
.mod-checklist-summary__note {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: #b45309;
  line-height: 1.35;
}
.mod-checklist-summary__note.is-ok {
  color: #16a34a;
}
[data-theme="dark"] .mod-checklist-summary__note { color: #fbbf24; }
[data-theme="dark"] .mod-checklist-summary__note.is-ok { color: #4ade80; }

.mod-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mod-checklist--compact { gap: 2px; }
.mod-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 8px;
}
.mod-checklist--compact .mod-checklist__item { padding: 4px 6px; }
.mod-checklist__item.is-ok { color: var(--muted); }
.mod-checklist__item.is-warn {
  background: rgba(245, 158, 11, .08);
  color: var(--ink);
  border: 1px solid rgba(245, 158, 11, .16);
}
.mod-checklist__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.mod-checklist__item.is-ok .mod-checklist__icon { color: #16a34a; }
.mod-checklist__item.is-warn .mod-checklist__icon { color: #d97706; }
.mod-checklist__content { flex: 1; min-width: 0; }
.mod-checklist__label { display: block; }
.mod-checklist__hint { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* Действия модерации (карточка очереди) */
.mod-actions--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mod-actions--stack .mod-actions__approve { margin: 0; }
.mod-actions__tools {
  display: flex;
  gap: 6px;
}
.mod-actions__tool {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mod-actions__tool:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-soft));
  color: var(--accent-dark);
}
.mod-actions__tool svg { color: var(--muted); }
.mod-actions__tool:hover svg { color: var(--accent); }
.mod-actions__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding-top: 2px;
}
.mod-actions__link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color .15s ease;
}
.mod-actions__link:hover { color: var(--ink); }
.mod-actions__link--danger { color: #dc2626; }
.mod-actions__link--danger:hover { color: #b91c1c; }
[data-theme="dark"] .mod-actions__link--danger { color: #f87171; }

.studio-review-layout .studio-review-hall summary::-webkit-details-marker { display: none; }

/* ── Страница просмотра студии (модерация) ───────────────────────── */
.studio-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.studio-review-hero {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
}
.studio-review-hero__main {
  flex: 1 1 320px;
  min-width: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.studio-review-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
  transition: color .15s ease;
}
.studio-review-hero__back:hover { color: var(--accent-dark); }
.studio-review-hero__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.studio-review-hero__cover {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg-soft)), var(--bg-soft));
  position: relative;
}
.studio-review-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.studio-review-hero__cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--accent) 45%, var(--muted));
}
.studio-review-hero__id { flex: 1 1 auto; min-width: 0; }
.studio-review-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.studio-review-hero__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.studio-review-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
}
.studio-review-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink);
}
.studio-review-hero__meta-item svg { color: var(--muted); flex: 0 0 auto; }
.studio-review-hero__owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.studio-review-hero__owner svg { flex: 0 0 auto; }
.studio-review-hero__owner-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-review-hero__toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 50%, var(--bg));
  align-content: center;
}
@media (max-width: 900px) {
  .studio-review-hero__toolbar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
.studio-review-hero__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.studio-review-hero__tool:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  color: var(--accent-dark);
}
.studio-review-hero__tool svg { color: var(--muted); }
.studio-review-hero__tool:hover svg { color: var(--accent); }

.studio-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1024px) {
  .studio-review-layout { grid-template-columns: 1fr; }
}
.studio-review__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.studio-review__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
}
@media (max-width: 1024px) {
  .studio-review__aside { position: static; }
}
.studio-review-panel {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.studio-review-panel__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-review-panel--actions {
  background: color-mix(in srgb, var(--bg-soft) 40%, var(--bg));
}

.studio-review-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.studio-review-block {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.studio-review-block__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-review-block__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-line;
}
.studio-review-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.studio-review-gallery--sm {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .studio-review-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .studio-review-gallery--sm { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.studio-review-gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.studio-review-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-review-contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}
.studio-review-contacts__item svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--muted);
}
.studio-review-contacts__item a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.studio-review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio-review-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line));
  color: var(--ink);
}
.studio-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-review-list li {
  font-size: 14px;
  line-height: 1.45;
}
.studio-review-list__name { font-weight: 600; color: var(--ink); }
.studio-review-list__hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.studio-review-section__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-review-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.studio-review-halls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-review-hall {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.studio-review-hall.has-warn {
  border-color: rgba(245, 158, 11, .35);
}
.studio-review-hall[open] {
  box-shadow: var(--shadow-sm);
}
.studio-review-hall__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  user-select: none;
}
.studio-review-hall__summary:hover {
  background: color-mix(in srgb, var(--bg-soft) 50%, var(--bg));
}
.studio-review-hall__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.studio-review-hall__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.studio-review-hall.has-warn .studio-review-hall__name { color: #b45309; }
[data-theme="dark"] .studio-review-hall.has-warn .studio-review-hall__name { color: #fbbf24; }
.studio-review-hall__meta {
  font-size: 12.5px;
  color: var(--muted);
}
.studio-review-hall__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.studio-review-hall__warn {
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
[data-theme="dark"] .studio-review-hall__warn { color: #fbbf24; }
.studio-review-hall__chevron {
  color: var(--muted);
  transition: transform .2s ease;
}
.studio-review-hall[open] .studio-review-hall__chevron {
  transform: rotate(180deg);
}
.studio-review-hall__body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.studio-review-hall__body > .mod-checklist-wrap {
  padding-top: 14px;
}
.studio-review-hall__section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.studio-review-schedule {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-review-schedule__row {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.studio-review-schedule__day {
  width: 24px;
  font-weight: 700;
  color: var(--ink);
}
.studio-review-schedule__value { color: var(--muted); }
.studio-review-hall__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.studio-review-hall__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.studio-review-hall__action:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-soft));
}
.studio-review-hall__action svg { color: var(--muted); }
.studio-review-empty-halls { margin-top: 4px; }

/* Документы в верификации */
.doc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 6px 12px; border-radius: 12px;
  background: var(--bg-soft); color: var(--ink); cursor: pointer;
  border: none;
  transition: background .15s ease;
}
.doc-chip:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}

/* Поиск-инпут (для пользователей и студий) */
.admin-search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  min-width: 240px;
}
.admin-search:focus-within { border-color: var(--ink); }
.admin-search input {
  border: 0; outline: none; background: transparent; flex: 1;
  font-size: 13px; color: var(--ink); font-family: inherit;
}
.admin-search svg { color: var(--muted); }

/* Группа в сайдбаре */
.sidenav-group-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  padding: 14px 12px 6px;
}

/* Тёмная тема */
[data-theme="dark"] .mod-card,
[data-theme="dark"] .audit-log,
[data-theme="dark"] .diff-side,
[data-theme="dark"] .cr-diff__side { background: var(--bg); }
[data-theme="dark"] .diff-side.is-before,
[data-theme="dark"] .cr-diff__side--before { background: rgba(239, 68, 68, .08); }
[data-theme="dark"] .diff-side.is-after,
[data-theme="dark"] .cr-diff__side--after  { background: rgba(34, 197, 94, .10); }
[data-theme="dark"] .al-row.al-head { background: var(--bg-soft); }

/* === Универсальная модалка === */
.fp-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto;
  opacity: 0; transition: opacity .18s ease;
}
.fp-modal-overlay.is-open { opacity: 1; }
.fp-modal-overlay + .fp-modal-overlay { background: rgba(15, 23, 42, .35); }
.fp-modal {
  background: var(--card); color: var(--ink);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  width: 100%; max-width: 640px; display: flex; flex-direction: column;
  max-height: calc(100vh - 96px); overflow: hidden;
  transform: translateY(8px); transition: transform .18s ease;
}
.fp-modal-overlay.is-open .fp-modal { transform: translateY(0); }
.fp-modal.is-sm { max-width: 420px; }
.fp-modal.is-md { max-width: 640px; }
.fp-modal.is-lg { max-width: 880px; }
.fp-modal.is-xl { max-width: 1100px; }
.fp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  gap: 12px;
}
.fp-modal-title { font-weight: 700; font-size: 15px; }
.fp-modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
}
.fp-modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.fp-modal-body { padding: 16px 18px; overflow-y: auto; }
.fp-modal-foot {
  padding: 12px 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 8px; background: var(--bg-soft);
}
.fp-confirm-text { font-size: 14px; color: var(--ink); line-height: 1.45; }

.btn-primary {
  background: var(--ink); color: #fff; border: 0;
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.btn-primary:hover { opacity: .9; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ghost--danger { color: #dc2626; }
.btn-ghost--danger:hover {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  border-color: color-mix(in srgb, #ef4444 40%, var(--line));
}
.btn-danger {
  background: #ef4444; color: #fff; border: 0;
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.btn-danger:hover { background: #dc2626; }
.btn-accent {
  background: var(--accent); color: #fff; border: 0;
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-success {
  background: #16a34a; color: #fff; border: 0;
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.btn-success:hover { background: #15803d; }

/* === Расширенные статус-бейджи === */
.status-badge,
.studio-status-pill,
.hall-status-pill,
.admin-studio-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--bg-soft);
  color: var(--muted);
}
.status-badge.is-published,
.studio-status-pill.is-published,
.hall-status-pill.is-published,
.admin-studio-status.is-published,
.owner-badge.is-published {
  background: var(--notice-success-bg);
  color: var(--notice-success-ink);
}
.status-badge.is-draft,
.studio-status-pill.is-draft,
.hall-status-pill.is-draft,
.admin-studio-status.is-draft,
.owner-badge.is-draft {
  background: var(--bg-soft);
  color: var(--muted);
}
.status-badge.is-pending,
.studio-status-pill.is-pending,
.hall-status-pill.is-pending,
.admin-studio-status.is-pending,
.owner-inline-badge.is-pending {
  background: var(--notice-warning-bg);
  color: var(--notice-warning-ink);
}
.status-badge.is-rejected,
.studio-status-pill.is-rejected,
.hall-status-pill.is-rejected,
.admin-studio-status.is-rejected {
  background: var(--notice-warning-bg);
  color: var(--notice-warning-ink);
}
.status-badge.is-hidden,
.studio-status-pill.is-hidden,
.hall-status-pill.is-hidden,
.admin-studio-status.is-hidden,
.status-badge.is-archived,
.studio-status-pill.is-archived,
.hall-status-pill.is-archived,
.admin-studio-status.is-archived {
  background: var(--bg-soft);
  color: var(--muted);
}
.status-badge.is-maintenance,
.studio-status-pill.is-maintenance,
.hall-status-pill.is-maintenance,
.admin-studio-status.is-maintenance {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}
.status-badge.is-completed,
.studio-status-pill.is-completed,
.hall-status-pill.is-completed,
.admin-studio-status.is-completed {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}
.status-badge.is-warning,
.studio-status-pill.is-warning,
.hall-status-pill.is-warning,
.admin-studio-status.is-warning,
.owner-inline-badge.is-warning {
  background: var(--notice-error-bg);
  color: var(--notice-error-ink);
}
.status-badge.is-banned,
.studio-status-pill.is-banned,
.hall-status-pill.is-banned,
.admin-studio-status.is-banned {
  background: var(--notice-error-bg);
  color: var(--notice-error-ink);
}

/* Вариант «solid» — тот же flat-стиль, без рамки и тени */
.status-badge--solid {
  border: none;
  box-shadow: none;
}

/* === Карточка отзыва (модерация) === */
.rev-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; background: var(--card);
  display: flex; flex-direction: column; gap: 10px;
}
.rev-card.is-hidden  { opacity: .55; }
.rev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rev-head-left { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1; }
.rev-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink); flex-shrink: 0;
}
.rev-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rev-author { font-weight: 600; font-size: 13px; color: var(--ink); cursor: pointer; }
.rev-author:hover { text-decoration: underline; }
.rev-stars { color: #f59e0b; font-size: 12px; }
.rev-sub   { font-size: 11px; color: var(--muted); }
.rev-sub a { color: var(--muted); text-decoration: underline; cursor: pointer; }
.rev-sub a:hover { color: var(--ink); }
.rev-body { font-size: 13px; line-height: 1.5; color: var(--ink); }
.rev-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rev-actions .ra-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
.rev-actions .ra-btn:hover { background: var(--bg-soft); }
.rev-actions .ra-btn.is-ok { color: #16a34a; border-color: rgba(34, 197, 94, .35); }
.rev-actions .ra-btn.is-warn { color: #b45309; border-color: rgba(234, 179, 8, .35); }
.rev-actions .ra-btn.is-danger { color: #dc2626; border-color: rgba(239, 68, 68, .3); }

/* Ответы */
.rev-replies { display: flex; flex-direction: column; gap: 8px; }
.rev-reply {
  background: var(--bg-soft); border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.rev-reply-head {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
}
.rev-reply-role {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
}
.rev-reply.is-owner .rev-reply-role     { background: rgba(59, 130, 246, .12); color: #2563eb; }
.rev-reply.is-moderator .rev-reply-role { background: rgba(234, 179, 8, .15); color: #b45309; }
.rev-reply.is-admin .rev-reply-role     { background: rgba(239, 68, 68, .12); color: #dc2626; }
.rev-reply-name { font-weight: 600; color: var(--ink); }
.rev-reply-text { font-size: 13px; color: var(--ink); line-height: 1.45; }
.rev-reply-form {
  display: flex; gap: 8px; align-items: stretch;
  background: var(--bg-soft); padding: 8px; border-radius: 10px;
}
.rev-reply-form textarea {
  flex: 1; resize: vertical; min-height: 40px; max-height: 160px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font: inherit; font-size: 13px; background: var(--card); color: var(--ink);
}
.rev-reply-form button {
  align-self: flex-end; padding: 8px 12px; background: var(--ink); color: #fff;
  border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.rev-reply-form button:hover { opacity: .9; }
.rev-reply-form .rrf-role {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted); padding-left: 4px;
}

/* === Карточка пользователя (модалка) === */
.user-detail { display: flex; flex-direction: column; gap: 16px; }
.ud-head {
  display: flex; align-items: center; gap: 14px; padding: 4px 4px 14px;
  border-bottom: 1px solid var(--line);
}
.ud-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: var(--ink);
}
.ud-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ud-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.ud-meta { font-size: 12px; color: var(--muted); }
.ud-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ud-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.ud-tabs::-webkit-scrollbar { display: none; }
.ud-tab {
  padding: 10px 12px; font-size: 13px; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent;
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
  cursor: pointer; white-space: nowrap;
}
.ud-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.ud-tab:hover { color: var(--ink); }
.ud-section { padding: 4px 0; display: flex; flex-direction: column; gap: 10px; }
.ud-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line);
}
.ud-row:last-child { border-bottom: 0; }
.ud-row .ud-key { color: var(--muted); }
.ud-row .ud-val { color: var(--ink); font-weight: 500; }

.ud-list-item {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; align-items: center;
}
.ud-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ud-timeline li {
  display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-soft);
  font-size: 13px;
}
.ud-timeline .ts { color: var(--muted); font-size: 11px; min-width: 130px; }

.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.perm-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px;
}
.perm-row input { width: 16px; height: 16px; }

/* === Превью студии === */
.studio-preview { display: flex; flex-direction: column; gap: 16px; }
.sp-head {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.sp-cover {
  width: 200px; height: 130px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--bg-soft);
}
.sp-head--no-cover { border-bottom: none; padding-bottom: 0; }
.sp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-name { font-weight: 600; font-size: 18px; color: var(--ink); }
.sp-meta { color: var(--muted); font-size: 13px; }
.sp-rating { display: inline-flex; align-items: center; gap: 4px; color: #f59e0b; font-weight: 600; font-size: 13px; }
.sp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-section { display: flex; flex-direction: column; gap: 8px; }
.sp-section-title { font-weight: 700; font-size: 13px; color: var(--ink); }
.sp-amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-amenity {
  background: var(--bg-soft); border-radius: 999px; padding: 4px 10px;
  font-size: 12px; color: var(--ink);
}
.sp-halls { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sp-hall {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; background: var(--card);
}
.sp-hall:hover { border-color: var(--ink); }
.sp-hall-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); }
.sp-hall-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.sp-hall-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.sp-hall-meta { font-size: 11px; color: var(--muted); }
.sp-disabled-link {
  color: var(--muted); cursor: not-allowed; text-decoration: line-through;
  font-size: 12px;
}

/* Действия в строке таблицы */
.row-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }

/* Поповер «Ещё» через <details> */
.row-actions .ra-mini { position: relative; }
.row-actions .ra-mini > summary { list-style: none; }
.row-actions .ra-mini > summary::-webkit-details-marker { display: none; }
.row-actions .ra-mini-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30;
  min-width: 220px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.row-actions .ra-mini-menu.is-fixed {
  position: fixed;
  top: auto;
  right: auto;
  bottom: auto;
  margin: 0;
}
.admin-users-table-row:has(.ra-mini[open]),
.admin-studios-table-row:has(.ra-mini[open]),
.admin-bookings-table-row:has(.ra-mini[open]) {
  position: relative;
  z-index: 25;
  overflow: visible;
}
.admin-user-card,
.admin-studio-card,
.admin-booking-card {
  overflow: visible;
}
.admin-users-table-body,
.admin-studios-table-body,
.admin-halls-table-body,
.admin-bookings-table-body {
  overflow: visible;
}
.or-actions,
.row-actions .ra-mini {
  overflow: visible;
}
.users-table-panel,
.studios-table-panel,
.halls-table-panel,
.bookings-table-panel,
.user-show-list-panel {
  overflow: visible;
}
.row-actions .ra-mini-menu button,
.row-actions .ra-mini-menu a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--ink);
  background: transparent; border: 0; text-align: left; cursor: pointer;
  text-decoration: none; width: 100%;
}
.row-actions .ra-mini-menu .ra-menu-item {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 12px;
  color: var(--ink); background: transparent; border: 0; text-align: left; cursor: pointer;
}
.row-actions .ra-mini-menu .ra-menu-item:hover { background: var(--bg-soft); }
.row-actions .ra-mini-menu button:hover,
.row-actions .ra-mini-menu a:hover { background: var(--bg-soft); }
.row-actions .ra-mini-menu button.is-danger,
.row-actions .ra-mini-menu .ra-menu-item.is-danger { color: #dc2626; }
.row-actions .ra-mini-menu form { display: block; }
.row-actions .ra-mini-menu form button { width: 100%; }

.is-clickable { cursor: pointer; }
.is-clickable:hover { background: var(--bg-soft); }

/* Селект статуса в шапке */
.status-select {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer;
}

/* Тёмная тема для модалки */
[data-theme="dark"] .fp-modal { background: var(--card); }
[data-theme="dark"] .fp-modal-foot { background: var(--bg-soft); }
[data-theme="dark"] .rev-reply { background: var(--bg); }
[data-theme="dark"] .rev-reply-form { background: var(--bg); }
[data-theme="dark"] .ud-list-item,
[data-theme="dark"] .perm-row { background: var(--card); }
[data-theme="dark"] .ud-timeline li { background: var(--bg); }



/* === Дополнения для Blade-миграции (fallback изображений) === */
.fp-img-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--muted) 10%, transparent) 0%, transparent 65%),
    var(--bg-soft, #f3f4f6);
  color: var(--muted);
}
/* Scene fills the container regardless of context */
.fp-img-fallback__scene {
  position: absolute;
  inset: 0;
  display: block;
}
/* Centered camera badge, scales with container via clamp */
.fp-img-fallback__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 34%, 64px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg, #fff) 70%, transparent);
  color: var(--accent);
}
.fp-img-fallback__icon {
  width: 52%;
  height: 52%;
  opacity: 0.85;
  flex-shrink: 0;
}
/* Legacy hook kept for any leftover markup */
.fp-img-fallback__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-img-fallback__label { display: none; }

.fp-img-fallback--compact { min-height: 0; }
.fp-img-fallback--compact .fp-img-fallback__badge {
  width: clamp(22px, 44%, 34px);
  background: transparent;
}

.owner-photo-preview .fp-img-fallback { min-height: 100%; }

[data-theme="dark"] .fp-img-fallback__badge {
  background: color-mix(in srgb, var(--bg, #15161a) 55%, transparent);
}

/* Admin: список студий */
.admin-status-more { position: relative; }
.admin-status-more > summary { list-style: none; }
.admin-status-more > summary::-webkit-details-marker { display: none; }
.admin-status-more-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 200px;
  background: var(--card, var(--bg));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-status-more-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
}
.admin-status-more-item:hover,
.admin-status-more-item.is-active {
  background: var(--bg-soft);
  font-weight: 600;
}
.admin-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.admin-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  border: none;
  font-size: 12px;
  color: var(--accent-dark);
  text-decoration: none;
  background: rgba(var(--accent-rgb), .12);
  font-weight: 600;
  transition: background .15s ease;
}
.admin-filter-tag:hover {
  background: rgba(var(--accent-rgb), .18);
}
.admin-filter-tag--reset {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 500;
}
.admin-filter-tag--reset:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
[data-theme="dark"] .admin-filter-tag {
  color: #c9956a;
  background: rgba(var(--accent-rgb), .2);
}
[data-theme="dark"] .admin-filter-tag:hover {
  background: rgba(var(--accent-rgb), .28);
}
[data-theme="dark"] .admin-filter-tag--reset {
  color: var(--ink);
  background: var(--bg-soft);
}
[data-theme="dark"] .admin-filter-tag--reset:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.admin-studios-table {
  --ast-cols: minmax(160px, 1.3fr) minmax(90px, 0.9fr) minmax(80px, 0.8fr) minmax(90px, 0.7fr) minmax(64px, 0.45fr) minmax(80px, 0.6fr) minmax(72px, 0.5fr) minmax(40px, auto);
}
.admin-halls-table {
  --ast-cols: minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(90px, 0.6fr) minmax(96px, 0.6fr) minmax(80px, 0.5fr) minmax(40px, auto);
}
.admin-studios-table-header,
.admin-studios-table-row {
  display: grid;
  grid-template-columns: var(--ast-cols);
  gap: 12px;
  align-items: center;
}
.admin-studios-table-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px 14px;
  margin-bottom: 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.admin-studios-table-row {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
}
.admin-studios-table-row + .admin-studios-table-row {
  margin-top: 6px;
}
.admin-studios-table-row .or-actions {
  justify-self: end;
}
.admin-studios-table-row .ast-thumb.studio-thumb--round {
  border-radius: 50%;
}
.admin-studios-table-row .ast-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-studios-table-row .ast-halls {
  line-height: 1.3;
}
.ast-thumb .fp-img-fallback--compact .fp-img-fallback__inner,
.asc-thumb .fp-img-fallback--compact .fp-img-fallback__inner,
.or-thumb .fp-img-fallback--compact .fp-img-fallback__inner,
.studio-thumb .fp-img-fallback--compact .fp-img-fallback__inner {
  padding: 0;
}
.studio-thumb {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-soft);
}
.studio-thumb__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.studio-thumb__fallback .fp-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.studio-thumb__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-studios-table-row .ast-thumb,
.admin-studio-card .asc-thumb,
.owner-row .or-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}
.admin-studio-card .asc-thumb {
  border-radius: 10px;
}
.owner-row .or-thumb {
  border-radius: 10px;
}
.admin-studio-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  box-sizing: border-box;
}
.admin-studio-card:hover {
  border-color: var(--ink);
}
.admin-studio-card .asc-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.admin-studio-card .asc-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.admin-studio-card .asc-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.admin-studio-card .asc-rating {
  flex: 0 0 auto;
  line-height: 1.25;
}
.admin-studio-card .asc-halls {
  margin-top: 2px;
  line-height: 1.3;
}
.admin-studio-card .asc-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-studio-card .asc-meta--status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.admin-studio-card .asc-thumb {
  width: 48px;
  height: 48px;
}
.admin-studio-card .asc-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  align-self: flex-start;
  position: relative;
  overflow: visible;
  z-index: 2;
}
.admin-studio-card .asc-actions-bar .or-actions {
  flex: 0 0 auto;
}
.admin-studio-card .asc-actions-bar .ra-mini-menu {
  right: 0;
  left: auto;
  max-width: min(220px, calc(100vw - 48px));
}
.admin-studios-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-studios-toolbar .admin-search {
  flex: 1 1 200px;
  min-width: min(100%, 200px);
  max-width: 28rem;
}
@media (max-width: 767px) {
  .admin-studios-cards {
    width: 100%;
    max-width: 100%;
  }
  .admin-studio-card .asc-title-row .status-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-studio-card .asc-actions-bar .ra-mini-menu {
    top: auto;
    bottom: calc(100% + 4px);
    z-index: 50;
  }
  .admin-studios-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-studios-toolbar__row select,
  .admin-studios-toolbar__row .btn-primary,
  .admin-studios-toolbar__row .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .admin-studios-toolbar .admin-search {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    padding: 10px 14px;
  }
  .admin-studios-toolbar .admin-search input {
    min-height: 0;
    height: auto;
    line-height: 1.35;
  }
  .admin-studio-card .admin-studio-status {
    font-size: 11px;
  }
  .owner-section h2 {
    font-size: 20px;
  }
  .owner-section-sub {
    font-size: 12px;
    line-height: 1.4;
  }
}
.admin-studios-pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.admin-studios-pagination__info {
  margin: 0;
  line-height: 1.4;
}
.admin-studios-pagination__links {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-studios-pagination__links nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}
@media (max-width: 767px) {
  .admin-studios-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-studios-pagination__links nav {
    justify-content: center;
  }
}
[data-theme="dark"] .admin-status-more-menu,
[data-theme="dark"] .admin-studio-card,
[data-theme="dark"] .admin-studios-table-row,
[data-theme="dark"] .admin-user-card,
[data-theme="dark"] .admin-users-table-row {
  background: var(--card, var(--bg));
}

/* === Админка: список пользователей === */
.admin-user-status {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}
.admin-user-status.is-active { color: #16a34a; }
.admin-user-status.is-pending { color: #b45309; }
.admin-user-status.is-blocked { color: #dc2626; }
.admin-user-status.is-deleted { color: #475569; }
.admin-user-status.is-default { color: var(--muted); }

.user-status-pill,
.admin-user-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.user-status-pill.is-active,
.admin-user-status.is-active { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.user-status-pill.is-pending,
.admin-user-status.is-pending { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.user-status-pill.is-blocked,
.admin-user-status.is-blocked { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.user-status-pill.is-deleted,
.admin-user-status.is-deleted { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
.user-status-pill.is-default,
.admin-user-status.is-default { color: var(--muted); }

.admin-users-table {
  --aut-cols: minmax(150px, 1.2fr) minmax(120px, 1fr) minmax(88px, 0.7fr) minmax(110px, 0.85fr) minmax(88px, 0.6fr) minmax(72px, 0.5fr) 40px;
}
.admin-users-table-header,
.admin-users-table-row {
  display: grid;
  grid-template-columns: var(--aut-cols);
  gap: 12px;
  align-items: center;
}
.admin-users-table-header {
  position: static;
  top: auto;
  z-index: auto;
  min-height: 40px;
  padding: 0 16px;
  margin-bottom: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.platform-page--users .admin-users-table-body .admin-users-table-row {
  min-height: 56px;
  padding: 0 16px;
  margin-top: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  transition: background .12s ease;
}
.platform-page--users .admin-users-table-body .admin-users-table-row:last-child {
  border-bottom: none;
}
.platform-page--users .admin-users-table-body .admin-users-table-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.admin-users-table-row .or-actions {
  justify-self: end;
}
.admin-users-table-row .aut-avatar,
.admin-user-card .auc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aut-avatar__placeholder,
.auc-avatar__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.admin-user-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  box-sizing: border-box;
}
.admin-user-card:hover {
  border-color: var(--ink);
}
.admin-user-card .auc-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.admin-user-card .auc-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.admin-user-card .auc-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.admin-user-card .auc-role {
  flex: 0 0 auto;
  font-size: 10px;
  padding: 2px 6px;
}
.admin-user-card .auc-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
  min-width: 0;
}
.admin-user-card .auc-meta--email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-card .auc-meta--status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.admin-user-card .auc-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  align-self: flex-start;
  position: relative;
  overflow: visible;
  z-index: 2;
}
.admin-user-card .auc-actions-bar .ra-mini-menu {
  right: 0;
  left: auto;
  max-width: min(220px, calc(100vw - 48px));
}

.admin-users-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-users-toolbar .admin-search {
  flex: 1 1 200px;
  min-width: min(100%, 200px);
  max-width: 28rem;
}

.admin-users-pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.admin-users-pagination__info {
  margin: 0;
  line-height: 1.4;
  font-size: 13px;
  color: var(--muted);
}
.admin-users-pagination__links {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-users-pagination__links nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

/* === Админка: карточка пользователя (show) === */
.admin-user-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .admin-user-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.admin-user-stat {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.admin-user-stat:hover {
  border-color: var(--ink);
}
.admin-user-stat.is-active {
  border-color: var(--ink);
  background: var(--bg-soft);
}
.admin-user-stat__label {
  font-size: 11px;
  color: var(--muted);
}
.admin-user-stat__value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.2;
}

.admin-user-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.admin-user-tabs::-webkit-scrollbar {
  display: none;
}
.admin-user-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.admin-user-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.admin-user-tab.is-active {
  border-color: var(--ink);
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}
.admin-user-tab__count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.admin-user-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg);
}
.admin-user-panel + .admin-user-panel {
  margin-top: 1rem;
}
.admin-user-panel__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.admin-user-danger {
  margin-top: 2rem;
  padding: 16px 18px;
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 14px;
  background: rgba(239, 68, 68, .04);
}
.admin-user-danger__head {
  margin-bottom: 12px;
}
.admin-user-danger__title {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  margin: 0;
}
.admin-user-danger__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}

.admin-user-show-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .15s;
}
.admin-user-show-row + .admin-user-show-row {
  margin-top: 6px;
}
.admin-user-show-row.is-clickable {
  cursor: pointer;
}
.admin-user-show-row.is-clickable:hover {
  border-color: var(--ink);
}
.admin-user-show-row__main {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-user-show-row__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}
.admin-user-show-row__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}
.admin-user-show-row__side {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.admin-user-show-row .ast-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Карточка пользователя: hero и layout */
.platform-page--user-show .user-show-tabs {
  margin-bottom: 0;
}
.user-show-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-show-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
}
.user-show-hero__back {
  margin-bottom: 0;
}
.user-show-hero__body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.user-show-hero__avatar {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.user-show-hero__avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.user-show-hero__info {
  flex: 1 1 auto;
  min-width: 0;
}
.user-show-hero__name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.user-show-hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.user-show-hero__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.user-show-hero__contacts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-show-hero__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.user-show-hero__contact svg {
  color: var(--muted);
}
.user-show-hero__contact-link {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}
.user-show-hero__contact-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.user-show-hero__meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.user-show-hero__block-reason {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.user-block-modal__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.user-block-modal-form {
  display: grid;
  gap: 0;
}
.user-show-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 1024px) {
  .user-show-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.user-show-form {
  display: grid;
  gap: 12px;
}
.user-show-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.user-show-list-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.user-show-list-panel .admin-user-show-row {
  border: none;
  border-radius: 0;
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}
.user-show-list-panel .admin-user-show-row:last-child {
  border-bottom: none;
}
.user-show-list-panel .admin-user-show-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.user-show-empty .platform-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.user-show-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.user-show-toolbar__form {
  margin: 0;
}
.user-show-sessions-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.booking-act-btn--danger-text {
  color: #b91c1c;
  border-color: color-mix(in srgb, #b91c1c 20%, var(--line));
  background: var(--bg);
}
.booking-act-btn--danger-text:hover {
  color: #991b1b;
  border-color: #b91c1c;
  background: #fef2f2;
}

@media (max-width: 767px) {
  .user-show-hero__body {
    flex-direction: column;
  }
  .user-show-hero__avatar {
    width: 72px;
    height: 72px;
    flex-basis: auto;
  }
  .admin-users-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-users-toolbar__row select,
  .admin-users-toolbar__row .btn-primary,
  .admin-users-toolbar__row .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .admin-users-toolbar .admin-search {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 12px;
    padding: 10px 14px;
  }
  .admin-user-card .auc-actions-bar .ra-mini-menu {
    top: auto;
    bottom: calc(100% + 4px);
    z-index: 50;
  }
  .admin-users-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-users-pagination__links nav {
    justify-content: center;
  }
  .admin-user-danger .flex-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-user-danger form {
    width: 100%;
  }
}

/* === Админка: бронирования === */
.booking-status-pill,
.admin-booking-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.booking-status-pill.is-pending,
.admin-booking-status.is-pending { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.booking-status-pill.is-confirmed,
.admin-booking-status.is-confirmed { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.booking-status-pill.is-paid,
.admin-booking-status.is-paid { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.booking-status-pill.is-progress,
.admin-booking-status.is-progress { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.booking-status-pill.is-completed,
.admin-booking-status.is-completed { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.booking-status-pill.is-cancelled,
.admin-booking-status.is-cancelled { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.booking-status-pill.is-no-show,
.admin-booking-status.is-no-show { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.booking-status-pill.is-refunded,
.admin-booking-status.is-refunded { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
.booking-status-pill.is-default,
.admin-booking-status.is-default { color: var(--muted); }

.platform-page--bookings .platform-tabs,
.platform-page--users .platform-tabs,
.platform-page--studios .platform-tabs,
.platform-page--halls .platform-tabs {
  margin-bottom: 0;
}

/* === Админка: пользователи === */
.platform-page--users .users-kpis {
  margin-bottom: 0;
}
.users-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.users-filters__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.users-filters__label + .mod-queue-tabs {
  margin-bottom: 4px;
}
.users-filter-more {
  position: relative;
  display: inline-flex;
}
.users-filter-more__toggle { list-style: none; cursor: pointer; }
.users-filter-more__toggle::-webkit-details-marker { display: none; }
.users-filter-more__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.users-filter-more__item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.users-filter-more__item:hover,
.users-filter-more__item.is-active {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--accent-dark);
}
.users-toolbar-panel .admin-users-toolbar__row {
  margin: 0;
}
.users-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.users-search {
  flex: 1 1 220px;
}
.users-hero__metric-link {
  text-decoration: none;
  color: inherit;
}
.users-hero__metric-link:hover .platform-hero__metric-link {
  text-decoration: underline;
}
.users-table-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.users-empty .platform-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* === Админка: студии (список) === */
.platform-page--studios .studios-kpis {
  margin-bottom: 0;
}
.studios-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studios-filters__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.studios-filter-more {
  position: relative;
  display: inline-flex;
}
.studios-filter-more__toggle { list-style: none; cursor: pointer; }
.studios-filter-more__toggle::-webkit-details-marker { display: none; }
.studios-filter-more__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.studios-filter-more__item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.studios-filter-more__item:hover,
.studios-filter-more__item.is-active {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--accent-dark);
}
.studios-toolbar-panel .admin-studios-toolbar__row {
  margin: 0;
}
.studios-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.studios-search {
  flex: 1 1 220px;
}
.studios-hero__metric-link {
  text-decoration: none;
  color: inherit;
}
.studios-hero__metric-link:hover .platform-hero__metric-link {
  text-decoration: underline;
}
.studios-hero__create {
  align-self: center;
  flex: 0 0 auto;
}
.studios-table-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.platform-page--studios .admin-studios-table-header {
  position: static;
  top: auto;
  z-index: auto;
  min-height: 40px;
  padding: 0 16px;
  margin-bottom: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.platform-page--studios .admin-studios-table-body .admin-studios-table-row {
  min-height: 56px;
  padding: 0 16px;
  margin-top: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  transition: background .12s ease;
}
.platform-page--studios .admin-studios-table-body .admin-studios-table-row:last-child {
  border-bottom: none;
}
.platform-page--studios .admin-studios-table-body .admin-studios-table-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.platform-page--studios .admin-studios-cards {
  padding: 12px;
}
.studios-empty .platform-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.studios-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.studios-pagination__info {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.studios-pagination__links {
  flex: 1 1 auto;
  min-width: 0;
}
.studios-pagination__links nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}
@media (max-width: 767px) {
  .studios-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .studios-hero__create {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }
  .studios-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .studios-pagination__links nav {
    justify-content: center;
  }
  .admin-studios-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-studios-toolbar__row select,
  .admin-studios-toolbar__row .btn-primary,
  .admin-studios-toolbar__row .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .studios-toolbar-panel .admin-search {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 12px;
    padding: 10px 14px;
  }
}

/* === Админка: залы (список) === */
.platform-page--halls .halls-kpis {
  margin-bottom: 0;
}
.halls-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.halls-filters__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.halls-filter-more {
  position: relative;
  display: inline-flex;
}
.halls-filter-more__toggle { list-style: none; cursor: pointer; }
.halls-filter-more__toggle::-webkit-details-marker { display: none; }
.halls-filter-more__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.halls-filter-more__item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.halls-filter-more__item:hover,
.halls-filter-more__item.is-active {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--accent-dark);
}
.halls-toolbar-panel .admin-halls-toolbar__row {
  margin: 0;
}
.halls-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.halls-search {
  flex: 1 1 220px;
}
.halls-hero__metric-link {
  text-decoration: none;
  color: inherit;
}
.halls-hero__metric-link:hover .platform-hero__metric-link {
  text-decoration: underline;
}
.halls-table-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.platform-page--halls .admin-halls-table-header {
  position: static;
  top: auto;
  z-index: auto;
  min-height: 40px;
  padding: 0 16px;
  margin-bottom: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.platform-page--halls .admin-halls-table-body .admin-studios-table-row {
  min-height: 56px;
  padding: 0 16px;
  margin-top: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  transition: background .12s ease;
}
.platform-page--halls .admin-halls-table-body .admin-studios-table-row:last-child {
  border-bottom: none;
}
.platform-page--halls .admin-halls-table-body .admin-studios-table-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.platform-page--halls .admin-halls-cards {
  padding: 12px;
}
.halls-empty .platform-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.halls-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.halls-pagination__info {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.halls-pagination__links {
  flex: 1 1 auto;
  min-width: 0;
}
.halls-pagination__links nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-halls-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
@media (max-width: 767px) {
  .halls-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .halls-pagination__links nav {
    justify-content: center;
  }
  .admin-halls-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-halls-toolbar__row select,
  .admin-halls-toolbar__row .btn-primary,
  .admin-halls-toolbar__row .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .halls-toolbar-panel .admin-search {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 12px;
    padding: 10px 14px;
  }
}

.platform-page--bookings .platform-tabs,
.platform-page--booking-show .platform-kpis {
  margin-top: 0;
}
.booking-hero__metric-link {
  text-decoration: none;
  color: inherit;
}
.booking-hero__metric-link:hover .platform-hero__metric-link {
  text-decoration: underline;
}
.bookings-funnel__total {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.bookings-funnel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 768px) {
  .bookings-funnel__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.bookings-funnel__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  min-width: 0;
}
.bookings-funnel__stat--ok { background: color-mix(in srgb, #16a34a 8%, var(--bg)); border-color: color-mix(in srgb, #16a34a 20%, var(--line)); }
.bookings-funnel__stat--warn { background: color-mix(in srgb, #d97706 8%, var(--bg)); border-color: color-mix(in srgb, #d97706 20%, var(--line)); }
.bookings-funnel__stat--timing { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 18%, var(--line)); }
.bookings-funnel__value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);}
.bookings-funnel__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.bookings-funnel__hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
}
.bookings-funnel__breakdown--sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.bookings-funnel__breakdown-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.bookings-funnel__breakdown-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  table-layout: fixed;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.35;
}
.bookings-funnel__col-label {
  width: 132px;
}
.bookings-funnel__col-num {
  width: 52px;
}
.bookings-funnel__col-num--wide {
  width: 84px;
}
.bookings-funnel__col-timing {
  width: 68px;
}
.bookings-funnel__breakdown-th,
.bookings-funnel__breakdown-td,
.bookings-funnel__breakdown-rowhead {
  padding: 8px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  vertical-align: middle;
}
.bookings-funnel__breakdown-th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg-soft);
  white-space: nowrap;
}
.bookings-funnel__breakdown-th--num,
.bookings-funnel__breakdown-td--num {
  text-align: right;
}
.bookings-funnel__breakdown-rowhead {
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  white-space: nowrap;
}
.bookings-funnel__breakdown-rowhead-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.bookings-funnel__breakdown-rowhead-text {
  min-width: 0;
}
.bookings-funnel__breakdown-tr--total .bookings-funnel__breakdown-rowhead {
  font-weight: 700;
  background: color-mix(in srgb, var(--bg-soft) 50%, var(--bg));
}
.bookings-funnel__breakdown-tr--total .bookings-funnel__breakdown-td {
  background: color-mix(in srgb, var(--bg-soft) 50%, var(--bg));
}
.bookings-funnel__breakdown-table tbody tr:last-child .bookings-funnel__breakdown-td,
.bookings-funnel__breakdown-table tbody tr:last-child .bookings-funnel__breakdown-rowhead {
  border-bottom: none;
}
.bookings-funnel__breakdown-td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.bookings-funnel__breakdown-td--ok {
  color: var(--notice-success-ink);
}
.bookings-funnel__breakdown-td--warn {
  color: var(--notice-warning-ink);
}
.bookings-funnel__breakdown-td--bad {
  color: var(--notice-error-ink);
}
.bookings-funnel__breakdown-td--muted {
  color: var(--muted);
}
.bookings-funnel__breakdown-td--timing {
  color: var(--notice-info-ink);
}
.bookings-funnel__breakdown-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
}
.bookings-funnel__breakdown-tr--total .bookings-funnel__breakdown-icon {
  color: var(--ink);
}
.bookings-funnel__breakdown-pct {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.bookings-funnel__breakdown-empty {
  font-weight: 500;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

/* Статистика заявок в кабинете владельца (collapsible) */
.bookings-funnel__caption {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.bookings-funnel__detail-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.bookings-funnel__detail-metric {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.bookings-funnel__detail-metric strong {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bookings-funnel__detail-muted {
  color: var(--muted);
}
.bookings-funnel__detail-metric--warn strong {
  color: var(--notice-warning-ink);
}
.bookings-funnel__detail-metric--bad strong {
  color: var(--notice-error-ink);
}
.bookings-funnel__detail-metric--ok strong {
  color: var(--notice-success-ink);
}
.bookings-funnel__detail-metric--timing strong {
  color: var(--notice-info-ink);
}

.bookings-status-more {
  position: relative;
  display: inline-flex;
}
.bookings-status-more__toggle { list-style: none; cursor: pointer; }
.bookings-status-more__toggle::-webkit-details-marker { display: none; }
.bookings-status-more__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.bookings-status-more__item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.bookings-status-more__item:hover,
.bookings-status-more__item.is-active {
  background: var(--bg-soft);
}
.bookings-toolbar-panel {
  padding: 14px 16px;
}
.bookings-toolbar-panel .admin-bookings-toolbar__row {
  margin: 0;
}
.bookings-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.bookings-search {
  flex: 1 1 220px;
  min-width: 0;
}
.bookings-empty .platform-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.bookings-list-panel,
.bookings-table-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bookings-table-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
/* Ниже xl внутри панели остаются только карточки — рамка вокруг рамок не нужна. */
@media (max-width: 1279.98px) {
  .bookings-table-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}
.bookings-empty .platform-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Ячейки таблицы — единая типографика */
.abt-cell,
.abc-cell__primary,
.abc-cell__secondary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}
.abt-cell__primary,
.abc-cell__primary {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.abt-cell__link,
.abc-cell__link {
  color: inherit;
  text-decoration: none;
}
.abt-cell__link:hover,
.abc-cell__link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.abt-cell__secondary,
.abc-cell__secondary {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.abt-cell__num,
.abc-cell__num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.abt-cell__dot,
.abc-cell__dot {
  opacity: .65;
}
.abt-cell__price,
.abc-cell__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.abt-cell--status {
  align-items: flex-start;
}
.abt-cell--price {
  align-items: flex-end;
  text-align: right;
}
.abt-cell--actions {
  justify-content: center;
  align-items: center;
}
.abt-cell--actions .or-actions {
  justify-self: end;
}

/* Шапка и строки — независимые grid-контейнеры, поэтому треки не должны
   зависеть от содержимого: с auto каждая строка меряет колонку по своему
   статусу и сумме, и колонки разъезжаются. */
.admin-bookings-table {
  --abt-cols: minmax(104px, 0.8fr) minmax(140px, 1.1fr) minmax(120px, 0.95fr) minmax(120px, 0.95fr) minmax(150px, 1.05fr) minmax(88px, 0.6fr) 40px;
}
.admin-bookings-table-header,
.admin-bookings-table-row {
  display: grid;
  grid-template-columns: var(--abt-cols);
  gap: 16px;
  align-items: center;
  padding: 0 16px;
}
.admin-bookings-table-header {
  min-height: 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.admin-bookings-table-body .admin-bookings-table-row {
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background .12s ease;
}
.admin-bookings-table-body .admin-bookings-table-row:last-child {
  border-bottom: none;
}
.admin-bookings-table-body .admin-bookings-table-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.admin-bookings-table-header > div:last-child,
.admin-bookings-table-row .abt-cell--price {
  text-align: right;
}

/* Таблице нужно ~800px, поэтому до xl показываем карточки — на планшетной
   ширине они укладываются в две колонки. Раскладка объявлена внутри медиа-запроса,
   чтобы не перебивать утилиту xl:hidden на широких экранах. */
@media (max-width: 1279.98px) {
  .admin-bookings-cards {
    display: grid;
    gap: 12px;
  }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .admin-bookings-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-booking-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
}
.admin-booking-card:hover {
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 3%, var(--bg));
}
.admin-booking-card .abc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-booking-card .abc-head__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.admin-booking-card .abc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-booking-card .abc-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}
.admin-booking-card .abc-row__label {
  color: var(--muted);
  font-size: 12px;
}
.admin-booking-card .abc-row__value {
  color: var(--ink);
  font-weight: 500;
}
.admin-booking-card .abc-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Карточка брони (show) */
.booking-show-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}
.booking-show-hero__back {
  width: fit-content;
}
.booking-show-hero__body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.booking-show-hero__thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.booking-show-hero__info {
  flex: 1 1 auto;
  min-width: 0;
}
.booking-show-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.booking-show-hero__ids {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.booking-show-hero__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.booking-show-hero__price {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.booking-show-hero__hall {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);}
.booking-show-hero__studio {
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.booking-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
}
.booking-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.booking-fact dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.booking-fact dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.booking-show-hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.booking-show-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.booking-show-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.booking-show-hero__link:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--line));
  background: var(--bg);
}

/* Компактная панель действий на странице брони */
.booking-show-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
.booking-show-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.booking-show-toolbar__form {
  margin: 0;
}
.booking-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background: var(--bg-soft);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.booking-act-btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.booking-act-btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.booking-act-btn--ghost {
  background: var(--bg);
}
.booking-act-btn--ghost:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--line));
  background: var(--bg-soft);
}
.booking-act-btn--danger {
  color: #b91c1c;
  border-color: color-mix(in srgb, #b91c1c 24%, var(--line));
  background: #fef2f2;
}
.booking-act-btn--danger:hover {
  border-color: #b91c1c;
  background: #fee2e2;
}
.booking-act-btn--block {
  width: 100%;
}
.booking-act-drop,
.booking-act-admin {
  position: relative;
}
.booking-act-drop > summary,
.booking-act-admin__toggle {
  list-style: none;
  cursor: pointer;
}
.booking-act-drop > summary::-webkit-details-marker,
.booking-act-admin__toggle::-webkit-details-marker {
  display: none;
}
.booking-act-drop__panel,
.booking-act-admin__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.booking-act-drop__form + .booking-act-drop__form {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.booking-act-drop__form--danger {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.booking-act-drop__input {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
}
.booking-act-admin__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.booking-act-admin__toggle:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.booking-act-admin__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.booking-act-admin__hint {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 767px) {
  .booking-show-hero__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-show-toolbar {
    margin-left: 0;
    justify-content: flex-start;
  }
  .booking-act-drop__panel,
  .booking-act-admin__panel {
    left: 0;
    right: auto;
    min-width: min(280px, calc(100vw - 48px));
  }
}

.booking-alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-alerts:empty {
  display: none;
}
.booking-message {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}
.booking-message__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.booking-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.booking-show-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 1024px) {
  .booking-show-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .booking-show-sidebar {
    position: sticky;
    top: 12px;
  }
}
.booking-show-main,
.booking-show-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-detail-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .booking-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.booking-detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--bg);
}
.booking-detail-card--wide {
  grid-column: 1 / -1;
}
.booking-detail-card--muted {
  background: var(--bg-soft);
}
.booking-detail-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.booking-detail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-detail-list__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.booking-detail-list__row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.booking-detail-list__row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.booking-detail-list__emph {
  font-weight: 700 !important;
}
.booking-detail-list__muted {
  color: var(--muted) !important;
  font-weight: 400 !important;
  font-size: 12px;
}
.booking-detail-list__row--section {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.booking-detail-card__link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.booking-detail-card__link:hover { text-decoration: underline; }
.booking-payment-card {
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 16px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}
.booking-payment-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.booking-payment-card__title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.booking-payment-card__total {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.booking-review__rating {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.booking-review__text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.booking-review__meta {
  font-size: 12px;
  color: var(--muted);
}
.booking-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-timeline__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
}
.booking-timeline__label {
  color: var(--muted);
  font-size: 12px;
}
.booking-timeline__value {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.booking-timeline__item.is-done .booking-timeline__value {
  font-weight: 600;
}
.booking-receipt {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}
.booking-receipt__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.booking-receipt__row dt,
.booking-receipt__row > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
}
.booking-receipt__row dd,
.booking-receipt__row > span:last-child {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.admin-booking-card .abc-actions-bar .ra-mini-menu {
  right: 0;
  left: auto;
  max-width: min(220px, calc(100vw - 48px));
}
@media (max-width: 1023px) {
  .booking-show-hero__body {
    flex-direction: column;
  }
  .booking-show-hero__thumb {
    width: 100%;
    height: 140px;
    flex-basis: auto;
  }
}
@media (max-width: 767px) {
  .bookings-funnel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-bookings-table {
    --abt-cols: minmax(0, 1fr);
  }
}

.admin-bookings-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-bookings-toolbar .admin-search {
  flex: 1 1 200px;
  min-width: min(100%, 200px);
  max-width: 28rem;
}

.admin-bookings-pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.admin-bookings-pagination__info {
  margin: 0;
  line-height: 1.4;
  font-size: 13px;
  color: var(--muted);
}
.admin-bookings-pagination__links {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-bookings-pagination__links nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-booking-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg);
}
.admin-booking-panel__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.admin-booking-head .admin-booking-head__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
@media (max-width: 767px) {
  .admin-booking-head {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-booking-head .oeh-actions {
    margin-left: 0;
    width: 100%;
  }
}

.admin-booking-kpi__item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
}
.admin-booking-kpi__label {
  font-size: 11px;
  color: var(--muted);
}
.admin-booking-kpi__value {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.admin-booking-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.admin-booking-receipt__row--total {
  font-weight: 700;
  font-size: 15px;
  padding-top: 4px;
}

.admin-booking-actions {
  margin-top: 1.5rem;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.admin-booking-actions__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.admin-booking-actions__forms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.admin-booking-actions__decline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
@media (max-width: 767px) {
  .admin-booking-actions__forms {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-booking-actions__decline {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-booking-actions__decline input {
    width: 100%;
  }
  .admin-booking-actions form button {
    width: 100%;
    justify-content: center;
  }
}

[data-theme="dark"] .admin-booking-card,
[data-theme="dark"] .admin-bookings-table-row,
[data-theme="dark"] .admin-booking-panel {
  background: var(--card, var(--bg));
}
[data-theme="dark"] .admin-booking-kpi__item,
[data-theme="dark"] .admin-booking-actions {
  background: var(--card, var(--bg));
}

@media (max-width: 767px) {
  .admin-bookings-toolbar__row,
  .bookings-toolbar-panel .admin-bookings-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-bookings-toolbar__row select,
  .admin-bookings-toolbar__row .btn-primary,
  .admin-bookings-toolbar__row .btn-ghost,
  .bookings-toolbar-panel .admin-bookings-toolbar__row select {
    width: 100%;
    justify-content: center;
  }
  .admin-bookings-toolbar .admin-search,
  .bookings-toolbar-panel .admin-search,
  .bookings-search {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 12px;
    padding: 10px 14px;
  }
  .admin-booking-card .abc-actions-bar .ra-mini-menu {
    top: auto;
    bottom: calc(100% + 4px);
    z-index: 50;
  }
  .admin-bookings-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-bookings-pagination__links nav {
    justify-content: center;
  }
}

/* === Кабинет владельца: брони (show + index) === */
.owner-booking-head .owner-booking-head__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
@media (max-width: 767px) {
  .owner-booking-head {
    flex-direction: column;
    align-items: stretch;
  }
  .owner-booking-head .oeh-actions {
    margin-left: 0;
    width: 100%;
  }
}

.owner-booking-kpi__item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
}
.owner-booking-kpi__label {
  font-size: 11px;
  color: var(--muted);
}
.owner-booking-kpi__value {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.owner-booking-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg);
}
.owner-booking-panel__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.owner-booking-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.owner-booking-receipt__row--total {
  font-weight: 700;
  font-size: 15px;
  padding-top: 4px;
}

.owner-booking-actions {
  margin-top: 1.5rem;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.owner-booking-actions__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.owner-booking-actions__forms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.owner-booking-actions__decline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.owner-booking-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.owner-booking-chip:hover {
  border-color: var(--ink);
}
.owner-booking-chip.is-active {
  border-color: var(--ink);
  background: var(--bg-soft);
  font-weight: 600;
}
.owner-booking-chip__count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(234, 179, 8, .2);
  color: #b45309;
}

.owner-bookings-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.owner-bookings-pagination__info {
  margin: 0;
  line-height: 1.4;
  font-size: 13px;
  color: var(--muted);
}
.owner-bookings-pagination__links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

[data-theme="dark"] .owner-booking-kpi__item,
[data-theme="dark"] .owner-booking-panel,
[data-theme="dark"] .owner-booking-actions {
  background: var(--card, var(--bg));
}

@media (max-width: 767px) {
  .owner-booking-actions__forms {
    flex-direction: column;
    align-items: stretch;
  }
  .owner-booking-actions__decline {
    flex-direction: column;
    align-items: stretch;
  }
  .owner-booking-actions__decline input {
    width: 100%;
  }
  .owner-booking-actions form button {
    width: 100%;
    justify-content: center;
  }
  .owner-bookings-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .owner-bookings-pagination__links nav {
    justify-content: center;
  }
}

/* === Кабинет владельца: список броней (index) === */
/* Единый вертикальный ритм вместо mb-* на каждом блоке — как на админских страницах. */
.owner-bookings-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.owner-bookings-page .owner-bookings-pagination {
  margin-top: 0;
}
.owner-bookings-page .owner-dash-metrics {
  margin-bottom: 0;
  padding: 0;
}
.owner-bookings-statuses {
  padding-bottom: 0;
  border-bottom: none;
}
.bookings-toolbar-panel .owner-dash-tabs-scroll {
  margin: 0 -2px;
}
.bookings-toolbar-panel .owner-dash-tabs .mod-queue-tab {
  padding: 6px 12px;
}
.owner-bookings-funnel-details {
  border-radius: 12px;
  overflow: hidden;
}
.owner-bookings-funnel-details[open] {
  background: var(--bg-soft);
}
.owner-bookings-funnel-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  line-height: 1.35;
  background: var(--bg);
  border-radius: 12px;
}
.owner-bookings-funnel-summary:hover {
  background: color-mix(in srgb, var(--bg-soft) 25%, var(--bg));
}
.owner-bookings-funnel-details[open] .owner-bookings-funnel-summary {
  border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.owner-bookings-funnel-summary::-webkit-details-marker {
  display: none;
}
.owner-bookings-funnel-summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
  align-self: center;
}
.owner-bookings-funnel-details[open] .owner-bookings-funnel-summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.owner-bookings-funnel-summary__title {
  font-weight: 600;
  color: var(--ink);
}
.owner-bookings-funnel-summary__meta {
  font-size: 12px;
  color: var(--muted);
}
.owner-bookings-funnel-body {
  padding: 10px 14px 12px;
}

/* Колонки заголовка и строк раскладываются независимо, поэтому ни одна из них
   не должна зависеть от содержимого: иначе ширины разъезжаются. */
.owner-bookings-table {
  --obt-cols: minmax(88px, 0.75fr) minmax(96px, 0.8fr) minmax(110px, 1fr) minmax(120px, 1.05fr) minmax(112px, 0.9fr) minmax(72px, 0.55fr) 140px;
}
.owner-bookings-table-header,
.owner-bookings-table-row {
  display: grid;
  grid-template-columns: var(--obt-cols);
  gap: 14px;
  align-items: center;
  padding: 0 16px;
}
.owner-bookings-table-header {
  min-height: 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  border-radius: 15px 15px 0 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.owner-bookings-table-header > div:nth-child(6) {
  text-align: right;
}
.owner-bookings-table-body .owner-bookings-table-row {
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background .12s ease;
}
.owner-bookings-table-body > *:last-child {
  border-bottom: none;
}
.owner-bookings-table-body .owner-bookings-table-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.owner-bookings-table-body .owner-bookings-table-row--pending {
  background: color-mix(in srgb, #f59e0b 5%, var(--bg));
}
.owner-bookings-table-row .abt-cell--actions {
  align-items: stretch;
}
.owner-bookings-table-row .or-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.bookings-daybar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.bookings-daybar__count {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: .75;
}

/* Таблица требует ~860px, поэтому до xl показываем карточки — на планшетной
   ширине они укладываются в две колонки, чтобы не растягиваться в полосы. */
.owner-bookings-cards__list {
  display: grid;
  gap: 12px;
}
@media (min-width: 1024px) {
  .owner-bookings-cards__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.owner-bookings-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: background .12s ease;
}
.owner-bookings-card.is-clickable:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.owner-bookings-card--pending {
  background: rgba(245, 158, 11, .04);
}
.owner-bookings-card--pending.is-clickable:hover {
  background: color-mix(in srgb, #f59e0b 8%, var(--bg));
}
.owner-bookings-card .obc-body {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: flex-start;
}
.owner-bookings-card .obc-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.owner-bookings-card .obc-id {
  font-weight: 700;
  font-size: 14px;
}
.owner-bookings-card .obc-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.owner-bookings-card .obc-meta--status {
  margin-top: 8px;
}
.owner-bookings-card .obc-actions-bar {
  flex-shrink: 0;
}

.owner-bookings-day + .owner-bookings-day {
  margin-top: 18px;
}
.owner-bookings-day__label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.owner-bookings-table-row .obt-expires {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

[data-theme="dark"] .owner-bookings-table-row,
[data-theme="dark"] .owner-bookings-card {
  background: var(--card, var(--bg));
}
[data-theme="dark"] .owner-bookings-table-row--pending,
[data-theme="dark"] .owner-bookings-card--pending {
  background: rgba(245, 158, 11, .08);
}
[data-theme="dark"] .owner-bookings-card.is-clickable:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--card, var(--bg)));
}
[data-theme="dark"] .owner-bookings-card--pending.is-clickable:hover {
  background: color-mix(in srgb, #f59e0b 12%, var(--card, var(--bg)));
}

@media (max-width: 767px) {
  .owner-bookings-funnel-summary__meta {
    flex: 1 1 100%;
  }
  .owner-bookings-funnel-summary::after {
    align-self: flex-start;
    margin-top: 6px;
  }
}

.owner-booking-services {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.owner-booking-service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.owner-booking-service:hover {
  border-color: var(--ink);
}

/* === Календарь занятости: суточная сетка «залы × часы» и месячный обзор === */
.fp-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fp-cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fp-cal-nav .is-active {
  border-color: var(--ink);
  font-weight: 600;
}
.fp-cal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.fp-cal-legend .opl-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fp-cal-legend .opl-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.opl-swatch.is-block {
  background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, transparent 3px, transparent 6px);
  border-color: var(--line);
}

.fp-cal__scroll {
  /* Скроллим внутри контейнера, иначе sticky-шапка часов уезжает вместе со страницей. */
  overflow: auto;
  max-height: calc(100vh - 260px);
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.fp-cal__table {
  min-width: max-content;
}
.fp-cal__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.fp-cal__row:last-child {
  border-bottom: 0;
}
.fp-cal__row--head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
}
.fp-cal__hall {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: 0 0 168px;
  width: 168px;
  padding: 10px 12px;
  background: var(--bg);
  border-right: 1px solid var(--line);
}
.fp-cal__hall--head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.fp-cal__hall-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.fp-cal__hall-studio {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.fp-cal__scale {
  display: flex;
  width: var(--opl-scale-width);
}
.fp-cal__hour {
  flex: 0 0 auto;
  padding: 8px 0 8px 4px;
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}
.fp-cal__track {
  position: relative;
  width: var(--opl-scale-width);
  min-height: 52px;
  /* Фон = закрыто; рабочие окна подсвечиваются поверх. */
  background: repeating-linear-gradient(45deg, rgba(113, 113, 113, .05), rgba(113, 113, 113, .05) 4px, transparent 4px, transparent 8px);
}
.fp-cal__open {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--bg);
}
.fp-cal__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.fp-cal__block {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, transparent 3px, transparent 7px);
  border: 1px solid var(--line);
}
.fp-cal__ghost {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 8px;
  border: 1px dashed var(--ink);
  background: rgba(107, 68, 35, .06);
  pointer-events: none;
}
.fp-cal__now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dc2626;
  z-index: 2;
}
.fp-cal__booking {
  position: absolute;
  top: 6px;
  bottom: 6px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fp-cal__booking .opb-time {
  font-size: 10px;
  line-height: 1.2;
  opacity: .8;
  white-space: nowrap;
}
.fp-cal__booking .opb-client {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Цвета статусов — те же, что у booking-status-pill, только фон плотнее:
   блок лежит на белой дорожке и должен читаться с расстояния. */
.fp-cal__booking.is-pending,
.fp-cal-pop .opp-status.is-pending,
.opl-swatch.is-pending {
  background: #fef3c7;
  border-color: #f59e0b;
  border-style: dashed;
  color: #92400e;
}
.fp-cal__booking.is-confirmed,
.fp-cal-pop .opp-status.is-confirmed,
.opl-swatch.is-confirmed {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}
.fp-cal__booking.is-completed,
.fp-cal-pop .opp-status.is-completed,
.opl-swatch.is-completed {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
.fp-cal__booking.is-no-show,
.fp-cal-pop .opp-status.is-no-show,
.opl-swatch.is-no-show {
  background: #ffedd5;
  border-color: #f97316;
  color: #9a3412;
}

.fp-cal-pop {
  position: absolute;
  z-index: 60;
  width: 248px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}
.fp-cal-pop .opp-title {
  font-size: 13px;
  font-weight: 600;
}
.fp-cal-pop .opp-status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.fp-cal-pop .opp-client {
  margin-top: 8px;
  font-size: 13px;
}
.fp-cal-pop .opp-phone,
.fp-cal-pop .opp-total,
.fp-cal-pop .opp-expires,
.fp-cal-pop .opp-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.fp-cal-pop .opp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

[data-theme="dark"] .fp-cal__scroll,
[data-theme="dark"] .fp-cal__row--head,
[data-theme="dark"] .fp-cal__hall,
[data-theme="dark"] .fp-cal__open,
[data-theme="dark"] .fp-cal-pop {
  background: var(--card, var(--bg));
}

@media (max-width: 767px) {
  .fp-cal__hall {
    flex-basis: 116px;
    width: 116px;
    padding: 8px;
  }
  .fp-cal-pop {
    width: 220px;
  }
}

/* Занятость из внешнего календаря студии — своя заливка, чтобы не путать с бронями. */
.fp-cal__external {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(59, 130, 246, .2) 4px, transparent 4px, transparent 8px);
  border: 1px solid rgba(59, 130, 246, .45);
}
.opl-swatch.is-external {
  background: repeating-linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(59, 130, 246, .35) 3px, transparent 3px, transparent 6px);
  border-color: rgba(59, 130, 246, .5);
}

.fp-cal-views {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fp-cal-views a {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}
.fp-cal-views a.is-active {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

.fp-cal-sync {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}
.fp-cal-sync__icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--muted);
}

/* Месячный обзор: статус дня по всем залам сразу */
.fp-cal-month {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.fp-cal-month__dows,
.fp-cal-month__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.fp-cal-month__dows {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.fp-cal-month__dow {
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}
.fp-cal-month__week {
  border-bottom: 1px solid var(--line);
}
.fp-cal-month__week:last-child {
  border-bottom: 0;
}
.fp-cal-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-height: 86px;
  padding: 8px;
  border-left: 1px solid var(--line);
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.fp-cal-day:first-child {
  border-left: 0;
}
.fp-cal-day:hover {
  background: var(--bg-soft);
}
.fp-cal-day--empty {
  background: var(--bg-soft);
  cursor: default;
}
.fp-cal-day.is-selected {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.fp-cal-day__num {
  font-size: 13px;
  font-weight: 600;
}
/* Прошедшие дни гасим целиком — вместе с метками и полосой загрузки. */
.fp-cal-day--past {
  opacity: .5;
}
.fp-cal-day--past:hover {
  opacity: .8;
}
/* Сегодня подсвечиваем всей ячейкой: кружок на цифре терялся среди метк и полос. */
.fp-cal-day--today {
  background: rgba(var(--accent-rgb), .09);
}
.fp-cal-day--today:hover {
  background: rgba(var(--accent-rgb), .15);
}
.fp-cal-day--today .fp-cal-day__num {
  font-weight: 700;
}
[data-theme="dark"] .fp-cal-day--today {
  background: rgba(var(--accent-rgb), .24);
}
[data-theme="dark"] .fp-cal-day--today:hover {
  background: rgba(var(--accent-rgb), .32);
}
.fp-cal-day__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}
.fp-cal-day--off .fp-cal-day__bar {
  background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, transparent 3px, transparent 6px);
}
.fp-cal-day--partial .fp-cal-day__bar {
  background: linear-gradient(90deg, #f59e0b 0 55%, var(--line) 55% 100%);
}
.fp-cal-day--full .fp-cal-day__bar {
  background: #f59e0b;
}
.fp-cal-day__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fp-cal-day__tag {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.fp-cal-day__tag.is-booking {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}
.fp-cal-day__tag.is-external {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
.fp-cal-day__off {
  font-size: 10.5px;
  color: var(--muted);
}

.fp-cal-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, var(--bg));
}
.fp-cal-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
}
.fp-cal-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.fp-cal-panel__hint {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.fp-cal-panel__grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .fp-cal-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fp-cal-panel__grid .is-wide {
    grid-column: 1 / -1;
  }
}
.fp-cal-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.fp-cal-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fp-cal-block-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fp-cal-block-row__when {
  font-size: 13px;
  font-weight: 600;
}
.fp-cal-block-row__meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* === SEO editor === */
.seo-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.seo-serp-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-soft, #f7f7f7);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.seo-serp-preview__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.seo-serp-preview__url {
  font-size: 12px;
  color: #137333;
  word-break: break-all;
}
.seo-serp-preview__title {
  font-size: 18px;
  line-height: 1.3;
  color: #1a0dab;
  word-break: break-word;
}
.seo-serp-preview__description {
  font-size: 13px;
  line-height: 1.45;
  color: #4d5156;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.seo-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.seo-field-head label { margin: 0; }
.seo-field-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}
.seo-char-counter {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.seo-char-counter.is-warning { color: #b45309; }
.seo-char-counter.is-danger { color: #dc2626; font-weight: 600; }
.seo-source-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, .12);
  color: var(--muted);
}
.seo-source-badge.is-override {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}
.seo-inherited-value {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-soft, #f7f7f7);
}
.seo-inherited-value__label {
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}
.seo-reset-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.seo-reset-btn:hover { color: var(--ink); }
.seo-og-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.seo-og-row input { flex: 1 1 auto; min-width: 0; }
.seo-og-thumb {
  width: 120px;
  height: 63px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--bg-soft, #f7f7f7);
}
.seo-og-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}

/* Profile avatar upload */
.profile-avatar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-avatar__preview {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--bg-soft);
}
.profile-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
}
.profile-avatar__placeholder svg {
  width: 40px;
  height: 40px;
}
.profile-avatar__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.profile-avatar__pick {
  padding: 10px 18px !important;
  font-size: 14px;
}
.profile-avatar__hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* === Загрузка файлов (заявка на подключение студии) === */
.file-drop {
  margin-top: 6px;
}
.file-drop__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 26px 18px;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.file-drop__zone:hover,
.file-drop--dragover .file-drop__zone {
  background: color-mix(in srgb, var(--bg) 82%, var(--line));
  color: var(--ink);
}
.file-drop--dragover .file-drop__zone {
  background: rgba(var(--accent-rgb), .08);
}
.file-drop__icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  opacity: .85;
}
.file-drop__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.file-drop__hint {
  font-size: 12px;
  color: var(--muted);
}
.file-drop--error .file-drop__zone {
  background: var(--notice-error-bg);
}
.file-drop__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-drop__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
  color: var(--ink);
}
.file-drop__item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}
.file-drop__item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop__item-size {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}
[data-theme="dark"] .file-drop__item { background: var(--card); }

/* Живая валидация форм (регистрация, заявка на подключение) */
.fp-input-wrap {
  position: relative;
  width: 100%;
}
.fp-input-wrap > .auth-input,
.fp-input-wrap > input.border-line,
.fp-input-wrap > .fp-form-field__input,
.fp-input-wrap > textarea.border-line {
  padding-right: 2.625rem;
}
.fp-input-wrap__status {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.fp-input-wrap__icon {
  width: 1.125rem;
  height: 1.125rem;
  display: none;
}
.fp-input-wrap--valid > .auth-input,
.fp-input-wrap--valid > input.border-line,
.fp-input-wrap--valid > .fp-form-field__input,
.fp-input-wrap--valid > textarea.border-line {
  background: color-mix(in srgb, var(--notice-success-bg) 55%, var(--bg));
}
.fp-input-wrap--invalid > .auth-input,
.fp-input-wrap--invalid > input.border-line,
.fp-input-wrap--invalid > .fp-form-field__input,
.fp-input-wrap--invalid > textarea.border-line {
  background: var(--notice-error-bg);
}
.fp-input-wrap--valid .fp-input-wrap__icon--ok {
  display: block;
  color: var(--notice-success-icon);
}
.fp-input-wrap--invalid .fp-input-wrap__icon--err {
  display: block;
  color: var(--notice-error-icon);
}
.fp-input-wrap--phone.fp-input-wrap--valid,
.fp-input-wrap--phone.fp-input-wrap--invalid {
  box-shadow: none;
}
.fp-input-wrap--phone.fp-input-wrap--valid .phone-field__control {
  background: color-mix(in srgb, var(--notice-success-bg) 55%, var(--bg));
}
.fp-input-wrap--phone.fp-input-wrap--invalid .phone-field__control {
  background: var(--notice-error-bg);
}
.fp-input-wrap--phone .fp-input-wrap__status {
  right: 0.625rem;
}
.fp-input-wrap--phone .phone-field__input {
  padding-right: 2.25rem;
}
.fp-live-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--notice-error-ink);
}
.fp-live-hint[hidden] {
  display: none;
}
.password-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.password-fields--auth {
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .auth-form--wide .password-fields--auth,
  .fp-form-card .password-fields--default {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
  }
  .auth-form--wide .password-fields--auth > .auth-form-grid,
  .fp-form-card .password-fields--default > .fp-form-grid {
    grid-column: 1 / -1;
  }
  .auth-form--wide .password-fields--auth .password-rules,
  .fp-form-card .password-fields--default .password-rules {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem 1.5rem;
  }
}
@media (min-width: 1024px) {
  .auth-form--wide .password-fields--auth,
  .fp-form-card .password-fields--default {
    grid-template-columns: 1fr 1fr minmax(11.5rem, 13.5rem);
    grid-template-rows: auto;
  }
  .auth-form--wide .password-fields--auth > .auth-form-grid,
  .fp-form-card .password-fields--default > .fp-form-grid {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .auth-form--wide .password-fields--auth .password-rules,
  .fp-form-card .password-fields--default .password-rules {
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-self: stretch;
    justify-content: center;
    gap: 0.5rem;
  }
}
.password-rules {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-soft);
}
@media (min-width: 640px) {
  .password-rules {
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
  }
}
.password-rules__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
  transition: color .15s ease;
}
.password-rules__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
}
.password-rules__icon-svg {
  width: 1.125rem;
  height: 1.125rem;
  display: none;
}
.password-rules__item:not(.password-rules__item--valid):not(.password-rules__item--invalid) .password-rules__icon-svg--neutral {
  display: block;
  color: var(--muted);
}
.password-rules__item--valid {
  color: var(--notice-success-ink);
}
.password-rules__item--valid .password-rules__icon-svg--ok {
  display: block;
  color: var(--notice-success-icon);
}
.password-rules__item--invalid {
  color: var(--notice-error-ink);
}
.password-rules__item--invalid .password-rules__icon-svg--err {
  display: block;
  color: var(--notice-error-icon);
}

/* Instant booking card (owner studio editor) */
.editor-instant-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.editor-instant-card.is-locked .editor-instant-card__row { cursor: default; }
.editor-instant-card__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.editor-instant-card__icon { transition: color .2s ease; }
.editor-instant-card.is-on .editor-instant-card__icon {
  color: var(--notice-success-icon);
}
.editor-instant-card.is-locked .editor-instant-card__icon { color: var(--muted); }
.editor-instant-card__extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.editor-instant-card.is-locked {
  background: color-mix(in srgb, var(--bg-soft) 45%, var(--card));
}

/* Legacy aliases (если где-то остались старые классы) */
.fp-instant-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
}
.fp-instant-card__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}
/* Компактный статус-хинт в шапке карточки: Вкл/Выкл */
.fp-instant-card__state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.fp-instant-card__state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}
.editor-instant-card.is-on .fp-instant-card__state { color: var(--notice-success-icon); }
.editor-instant-card.is-on .fp-instant-card__state::before { background: var(--notice-success-icon); }
.fp-instant-card.is-on .fp-instant-card__state { color: var(--notice-success-icon); }
.fp-instant-card.is-on .fp-instant-card__state::before { background: var(--notice-success-icon); }
.fp-instant-card__extra {
  margin-top: 14px;
  padding-top: 14px;
  padding-left: 32px;
  border-top: 1px solid var(--line);
}
.fp-cancel-window { display: block; }
.fp-cancel-window__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
}
.fp-cancel-window__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fp-cancel-window__input {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fp-cancel-window__input:focus-within {
  border-color: var(--notice-success-icon);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--notice-success-border) 30%, transparent);
}
.fp-cancel-window__input input[type="number"] {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  width: 68px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  -moz-appearance: textfield;
}
.fp-cancel-window__input input[type="number"]:focus { outline: none; }
.fp-cancel-window__unit {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.fp-cancel-window__note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* ─── Блок «Бронирование» на вкладке «Основное» ─── */
.editor-booking-block__hint {
  margin-top: -6px;
  margin-bottom: 14px;
}
.editor-booking-block .editor-system-card + .editor-system-card {
  margin-top: 12px;
}
.editor-booking-mode-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.editor-booking-mode-list .editor-booking-mode-card + .editor-booking-mode-card {
  margin-top: 0;
}
.editor-booking-mode-foot {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.editor-booking-mode-foot a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.editor-booking-mode-foot + .editor-system-card {
  margin-top: 12px;
}
.editor-booking-mode-card .editor-system-card__head {
  align-items: flex-start;
}
.editor-booking-mode-card {
  position: relative;
  border: none;
  background: var(--bg-soft);
}
.editor-booking-mode-card.is-active .editor-system-card__head,
.editor-booking-mode-card.is-alt .editor-system-card__head {
  padding-right: 28px;
}
.editor-booking-mode-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  pointer-events: none;
}
.editor-booking-mode-card__mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--muted) 35%, var(--line));
  box-sizing: border-box;
  pointer-events: none;
}
.editor-booking-mode-card.is-active.fp-mode-info--internal .editor-booking-mode-card__check {
  background: #2563eb;
}
.editor-booking-mode-card.is-active.fp-mode-info--request .editor-booking-mode-card__check {
  background: var(--accent-dark);
}
.editor-booking-mode-card.is-active.fp-mode-info--internal {
  background: rgba(59, 130, 246, .12);
}
.editor-booking-mode-card.is-active.fp-mode-info--request {
  background: rgba(var(--accent-rgb), .12);
}
.editor-booking-mode-card.is-active.fp-mode-info--internal .editor-booking-mode-card__icon {
  color: #2563eb;
  background: rgba(59, 130, 246, .16);
}
.editor-booking-mode-card.is-active.fp-mode-info--request .editor-booking-mode-card__icon {
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), .16);
}
.editor-booking-mode-card.is-active .editor-system-card__title {
  color: var(--ink);
}
.editor-booking-mode-card.is-alt {
  background: color-mix(in srgb, var(--bg-soft) 65%, var(--bg));
}
.editor-booking-mode-card.is-alt .editor-system-card__title {
  color: color-mix(in srgb, var(--ink) 52%, var(--muted));
  font-weight: 600;
}
.editor-booking-mode-card.is-alt .editor-system-card__hint {
  color: color-mix(in srgb, var(--muted) 88%, transparent);
}
.editor-booking-mode-card.is-alt .editor-booking-mode-card__icon {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  background: color-mix(in srgb, var(--bg-soft) 45%, var(--line));
}

/* Toggle switch */
.fp-switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}
.fp-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.fp-switch__track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  transition: background .2s ease;
  display: inline-flex;
  align-items: center;
  padding: 3px;
}
.fp-switch__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.fp-switch input:checked + .fp-switch__track {
  background: var(--notice-success-icon);
}
.fp-switch input:checked + .fp-switch__track .fp-switch__thumb {
  transform: translateX(20px);
}
.fp-switch input:focus-visible + .fp-switch__track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--notice-success-border) 45%, transparent);
}

/* Editor section header */
.editor-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.editor-section-head__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--accent);
}
.editor-section-head__text { min-width: 0; }
.editor-section-head__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.editor-section-head__hint {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  margin: 3px 0 0;
}

/* Подзаголовок группы полей внутри секции — лёгкий, в том же стиле */
.editor-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 12px;
}
.editor-subhead__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.editor-subhead:first-child { margin-top: 0; }
.editor-subhead__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.editor-subhead__hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin: 4px 0 12px;
}

/* Вкладка «Тарифы и расписание» */
.hall-rates {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hall-rates__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hall-rates-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 14px 16px;
}
.hall-rates-card__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.hall-rates-summary {
  padding: 0;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hall-rates-summary__title,
.hall-rates-summary__rows {
  padding-left: 14px;
  padding-right: 14px;
}
.hall-rates-summary__title {
  margin: 0 0 8px;
  padding-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hall-rates-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
}
.hall-rates-summary__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.hall-rates-min {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hall-rates-min__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.hall-rates-min__control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.hall-rates-min__input {
  width: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
}
.hall-rates-min__input:focus {
  outline: none;
}
.hall-rates-min__unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.hall-rates-summary__calendar {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
  flex: 1 1 160px;
}
.hall-rates-summary__calendar a {
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
  white-space: nowrap;
}
.hall-rates-summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 13px;
  line-height: 1.35;
}
.hall-rates-summary__days {
  font-weight: 700;
  color: var(--ink);
  min-width: 3.5rem;
}
.hall-rates-summary__time {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.hall-rates-summary__price {
  color: var(--ink);
  flex: 1 1 auto;
}
.hall-rates-summary__off {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.hall-rates-summary__closed,
.hall-rates-summary__muted {
  color: var(--muted);
}
.hall-rates-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  order: 1;
}
.hall-rates-card--week {
  order: 2;
  padding: 0;
  overflow: hidden;
}
.hall-rates-card--week .hall-rates-card__title {
  padding: 14px 16px 0;
}
.hall-rates-card--preview {
  padding-bottom: 12px;
}
.hall-rates-card--preview .hall-rate-preview {
  margin: 0;
  padding: 0 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hall-rates-card--preview .hall-rate-preview__catalog {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.hall-rates-extras {
  display: grid;
  gap: 14px;
}
@media (min-width: 1024px) {
  .hall-rates-extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
.hall-rates-extra-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 14px 16px 16px;
  min-width: 0;
}
.hall-rates-extra__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.hall-rates-extra__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-soft));
  color: var(--accent);
}
.hall-rates-extra__icon--services {
  background: color-mix(in srgb, var(--ink) 6%, var(--bg-soft));
  color: var(--ink);
}
.hall-rates-extra__head-text {
  flex: 1 1 auto;
  min-width: 0;
}
.hall-rates-extra__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.hall-rates-extra__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.hall-rates-extra__count {
  flex: 0 0 auto;
  min-width: 1.5rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: center;
}
.hall-rates-extra__form-error {
  margin: -4px 0 10px;
}
@media (min-width: 1024px) {
  .hall-rates__main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    align-items: start;
    gap: 16px;
  }
  .hall-rates-sidebar {
    order: 2;
    position: sticky;
    top: 12px;
  }
  .hall-rates-card--week {
    order: 1;
  }
}

/* Редактор тарифов зала: недельная таблица */
.hall-week {
  --hall-week-cols: 76px minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.hall-rates-card--week .hall-week {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
}
.hall-week__copy {
  padding: 12px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hall-week__copy-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.hall-week__copy-text {
  font-size: 13px;
  color: var(--ink);
}
.hall-week__copy-day {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 6px;
  margin: 0 -2px;
  border: 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  max-width: 11rem;
}
.hall-week__copy-day:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-soft), 0 0 0 4px var(--accent);
  border-radius: 4px;
}
.hall-week__copy-segments {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.hall-week__copy-seg {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s ease;
}
.hall-week__copy-seg:last-child {
  border-right: 0;
}
.hall-week__copy-seg:hover {
  background: var(--bg-soft);
}
.hall-week__copy-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}
@media (max-width: 639px) {
  .hall-week__copy-segments {
    width: 100%;
  }
  .hall-week__copy-seg {
    flex: 1 1 0;
    text-align: center;
    padding: 9px 8px;
  }
}
.hall-week__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  background: var(--bg-soft);
  cursor: help;
  vertical-align: middle;
}
.hall-week__undo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--ink);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hall-week__undo-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
}
.hall-week__head {
  display: none;
}
@media (min-width: 900px) {
  .hall-week__head {
    display: grid;
    grid-template-columns: var(--hall-week-cols);
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
.hall-week-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.hall-week-row--time-invalid .hall-week-row__time select {
  border-color: var(--notice-error-ink);
}
.hall-week-row:last-of-type {
  border-bottom: 0;
}
.hall-week-row--closed {
  background: var(--bg-soft);
}
.hall-week-row--closed .hall-week-row__field {
  display: none;
}
.hall-week-row__errors {
  grid-column: 1 / -1;
  font-size: 12px;
}
.hall-week-row.has-error {
  box-shadow: inset 3px 0 0 var(--notice-error-ink);
}
@media (min-width: 900px) {
  .hall-week-row {
    grid-template-columns: var(--hall-week-cols);
    align-items: center;
    gap: 10px;
  }
}
.hall-week-row__day {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hall-week-row__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.hall-week-row--closed .hall-week-row__name {
  color: var(--muted);
}
.hall-week-row__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.hall-week-row__switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hall-week-row__switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line);
  transition: background .2s ease;
}
.hall-week-row__switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transition: transform .2s ease;
}
.hall-week-row__switch input:checked + .hall-week-row__switch-track {
  background: var(--accent);
}
.hall-week-row__switch input:checked + .hall-week-row__switch-track::after {
  transform: translateX(16px);
}
.hall-week-row__switch input:focus-visible + .hall-week-row__switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hall-week-row__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
/* На узком экране шапки таблицы нет, поэтому подпись берём из data-label. */
.hall-week-row__field::before {
  content: attr(data-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 900px) {
  .hall-week-row__field::before {
    display: none;
  }
}
.hall-week-row__time {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hall-week-row__time select,
.hall-week-row__time-select {
  flex: 1 1 0;
  min-width: 0;
  max-width: 5.5rem;
}
.hall-week-row__dash {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.hall-week-row input[type="number"],
.hall-week-row select {
  width: 100%;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--bg);
}
.hall-rate-preview__time-select {
  width: 100%;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--bg);
}
.hall-week-row input:focus,
.hall-week-row select:focus {
  outline: none;
  border-color: var(--ink);
}
.hall-week-row input:disabled,
.hall-week-row select:disabled {
  opacity: .45;
}
.hall-week__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 20px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.hall-week__min {
  flex: 0 0 auto;
  width: 168px;
}
.hall-week__foot-hint {
  flex: 1 1 280px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* Сводка по закрытиям дат: сами закрытия живут в календаре */
.hall-week__calendar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.hall-week__calendar svg {
  flex: 0 0 auto;
  color: var(--muted);
}
.hall-week__calendar span {
  flex: 1 1 240px;
}
.hall-week__calendar a {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Ссылка на внешний календарь бывает длиннее строки — переносим по символам */
.hall-schedule-source-url {
  word-break: break-all;
}

/* Калькулятор стоимости на вкладке тарифов */
.hall-rate-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.hall-rates-card--preview .hall-rate-preview__out {
  min-height: 4.5rem;
}
.hall-rate-preview__controls {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .hall-rate-preview__controls {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr);
  }
}
.hall-rate-preview__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.hall-rate-preview__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}
.hall-rate-preview__field input,
.hall-rate-preview__field select {
  width: 100%;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--bg);
}
.hall-rate-preview__field input:focus,
.hall-rate-preview__field select:focus {
  outline: none;
  border-color: var(--ink);
}
.hall-rate-preview__out {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hall-rate-preview__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--ink);
}
.hall-rate-preview__line.is-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}
.hall-rate-preview__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.hall-rate-preview__catalog {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* Повторяемые строки скидок и услуг на вкладке тарифов */
.hall-rate-repeatable {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hall-rate-repeatable__empty {
  margin: 0;
  padding: 14px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.hall-rate-repeatable__empty--readonly {
  border-style: solid;
  text-align: left;
}
.hall-rate-repeatable__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.hall-rate-repeatable__row.has-error {
  border-color: color-mix(in srgb, var(--notice-error-ink) 35%, var(--line));
  box-shadow: inset 3px 0 0 var(--notice-error-ink);
}
.hall-rate-repeatable__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.hall-rate-repeatable__grid--discount {
  grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.8fr) auto;
  align-items: end;
}
@media (max-width: 479px) {
  .hall-rate-repeatable__grid--discount {
    grid-template-columns: 1fr 1fr auto;
  }
  .hall-rate-repeatable__grid--discount .hall-rate-repeatable__field--accent {
    grid-column: 1 / 3;
  }
  .hall-rate-repeatable__grid--discount .hall-rate-repeatable__remove-wrap {
    grid-row: 1 / 3;
    grid-column: 3;
  }
}
.hall-rate-repeatable__grid--service {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr) minmax(0, .65fr) auto;
  align-items: end;
}
@media (max-width: 639px) {
  .hall-rate-repeatable__grid--service {
    grid-template-columns: 1fr 1fr auto;
  }
  .hall-rate-repeatable__grid--service .hall-rate-repeatable__field--grow {
    grid-column: 1 / -1;
  }
  .hall-rate-repeatable__grid--service .hall-rate-repeatable__remove-wrap {
    grid-row: 2;
    grid-column: 3;
    align-self: end;
  }
}
.hall-rate-repeatable__remove-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}
.hall-rate-repeatable__summary {
  margin: -4px 0 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.hall-rate-repeatable__row--discount:has([data-discount-input="min_hours"]:not(:placeholder-shown)) .hall-rate-repeatable__summary,
.hall-rate-repeatable__row--discount:has([data-discount-input="discount_value"]:not(:placeholder-shown)) .hall-rate-repeatable__summary {
  color: var(--ink);
}
.hall-rate-repeatable__warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--notice-warning-ink, var(--accent)) 25%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--notice-warning-ink, var(--accent)) 8%, var(--bg-soft));
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}
.hall-rate-repeatable__warning svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent);
}
.hall-rate-repeatable__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.hall-rate-repeatable__field--accent input {
  font-weight: 700;
}
.hall-rate-repeatable__value {
  display: flex;
  min-width: 0;
}
.hall-rate-repeatable__field .hall-rate-repeatable__value input {
  flex: 1 1 auto;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.hall-rate-repeatable__field .hall-rate-repeatable__value select {
  flex: 0 0 auto;
  width: auto;
  margin-left: -1px;
  padding-right: 28px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: var(--bg-soft);
  font-weight: 600;
}
.hall-rate-repeatable__field--desc {
  margin-top: -2px;
}
.hall-rate-repeatable__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.hall-rate-repeatable__field input,
.hall-rate-repeatable__field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s;
}
.hall-rate-repeatable__field input:focus,
.hall-rate-repeatable__field select:focus {
  outline: none;
  border-color: var(--ink);
}
.hall-rate-repeatable__field input:read-only,
.hall-rate-repeatable__field select:disabled {
  color: var(--muted);
  background: var(--bg-soft);
}
.hall-rate-repeatable__row.has-error .hall-rate-repeatable__field input,
.hall-rate-repeatable__row.has-error .hall-rate-repeatable__field select {
  background: var(--notice-error-bg);
}
.hall-rate-repeatable__errors {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hall-rate-repeatable__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hall-rate-repeatable__remove:hover {
  background: color-mix(in srgb, var(--notice-error-ink) 8%, var(--bg-soft));
  border-color: color-mix(in srgb, var(--notice-error-ink) 20%, var(--line));
  color: var(--notice-error-ink);
}
.hall-rate-repeatable__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
  padding: 10px 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 4%, var(--card));
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.hall-rate-repeatable__add:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

/* Мягкий контейнер для админ-групп внутри секции (без «коробочности») */
.editor-subgroup {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ─── Вкладка «Управление»: компактные карточки служебных настроек ─── */
.editor-system-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.editor-system-card + .editor-system-card { margin-top: 12px; }
.editor-system-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.editor-system-card__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--muted);
}
.editor-system-card__text { flex: 1 1 auto; min-width: 0; }
.editor-system-card__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.editor-system-card__hint {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.editor-system-card__form { margin-top: 12px; }
.editor-system-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.editor-system-card__field {
  flex: 1 1 300px;
  min-width: 0;
  margin: 0;
}
.editor-system-card__field select,
.editor-system-card__field input { width: 100%; }
.editor-system-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.editor-system-card__row .editor-system-card__submit { flex: 0 0 auto; }
.editor-system-card__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  transition: background .15s ease, border-color .15s ease;
}
.editor-system-card__submit:hover {
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.editor-system-card__note {
  margin: 12px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.editor-system-card__note a { color: var(--ink); text-decoration: underline; }
.editor-system-card__note code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 11px;
}
a.editor-system-card__submit { text-decoration: none; }

/* Уведомления: адрес доставки и подключённые каналы */
.editor-system-card.is-warning {
  border-color: color-mix(in srgb, var(--notice-warn-border, #f59e0b) 60%, var(--line));
  background: color-mix(in srgb, #f59e0b 6%, var(--card));
}
.editor-system-card__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.editor-system-card__check input[type="checkbox"] { margin-top: 2px; flex: 0 0 auto; }
/* Переключатель доставки в шапке карточки: у канала есть состояние «выключен»,
   а не только «удалён», поэтому это тумблер, а не крестик. */
.editor-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.editor-switch input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.editor-switch__track {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line);
  transition: background .15s ease;
}
.editor-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.editor-switch input[type="checkbox"]:checked + .editor-switch__track { background: var(--accent); }
.editor-switch input[type="checkbox"]:checked + .editor-switch__track .editor-switch__knob {
  transform: translateX(16px);
}
.editor-switch input[type="checkbox"]:focus-visible + .editor-switch__track {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
}
.editor-system-card__field input:disabled { opacity: .5; cursor: default; background: var(--bg-soft); }
.editor-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.editor-field-hint__action {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}
.editor-field-hint__action:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}
.editor-channel-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.editor-channel-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 13px;
}
.editor-channel-list__state { color: var(--muted); font-size: 12px; }

/* Выбор событий: кабинет владельца и кабинет клиента */
.notify-events {
  margin-top: 4px;
  display: grid;
  gap: 2px;
}
.notify-events__row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.notify-events__row:last-child { border-bottom: 0; }
.notify-events__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.notify-events__label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.notify-events__hint {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.notify-events__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.notify-events__note a { color: var(--ink); text-decoration: underline; }

/* Подключённые чаты Telegram в секции «Уведомления» */
.tg-chat-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.tg-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--notice-success-icon) 26%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--notice-success-bg) 60%, var(--card));
}
.tg-chat--off {
  border-color: var(--line);
  background: var(--bg-soft);
}
.tg-chat__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--notice-success-icon);
  color: #fff;
}
.tg-chat--off .tg-chat__icon {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tg-chat__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tg-chat__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-chat__meta {
  font-size: 11px;
  color: var(--muted);
}
.tg-chat__state {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--notice-success-ink);
}
.tg-chat__state--off { color: var(--notice-warning-ink); }
.tg-chat__form { flex: 0 0 auto; display: flex; }
.tg-chat__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.tg-chat__remove:hover {
  background: var(--notice-error-bg);
  color: var(--notice-error-ink);
}
.tg-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.tg-hint__summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.tg-hint__summary::-webkit-details-marker { display: none; }
.tg-hint__summary::before {
  content: '+ ';
  color: var(--muted);
}
.tg-hint[open] .tg-hint__summary::before { content: '– '; }
.tg-hint__body {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  line-height: 1.5;
}
.tg-hint__body p { margin: 0 0 6px; }
.tg-hint__code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 11px;
  word-break: break-all;
}
[data-theme="dark"] .tg-chat__icon { color: var(--bg); }
[data-theme="dark"] .tg-chat--off .tg-chat__icon { color: var(--muted); }
@media (max-width: 520px) {
  .tg-chat { flex-wrap: wrap; }
  .tg-chat__state { order: 3; width: 100%; padding-left: 42px; }
}

/* Заголовок секции с действием справа */
.editor-section-head--toolbar .editor-section-head__text { flex: 1 1 auto; }
.editor-section-head__action {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}
@media (max-width: 640px) {
  .editor-section-head--toolbar { flex-wrap: wrap; }
  .editor-section-head__action {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 2px;
  }
}

/* ─── Вкладка «Залы» в редакторе студии ─── */
.editor-halls-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.editor-hall-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: var(--bg-soft);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.editor-hall-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.editor-hall-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.editor-hall-card__thumb img,
.editor-hall-card__thumb .fp-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.editor-hall-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.editor-hall-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}
.editor-hall-card__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.editor-hall-card__badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.editor-hall-card__subline {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.editor-hall-card__spec { color: var(--muted); }
.editor-hall-card__sep { margin: 0 5px; opacity: 0.45; }
.editor-hall-card__booking { color: var(--muted); }
.editor-hall-card__booking.is-warning {
  color: var(--notice-warning-ink, #b45309);
  font-weight: 600;
}
.editor-hall-card__note {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.editor-hall-card__note.is-error { color: var(--notice-error-ink); }
.editor-hall-card__aside {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
}
.editor-hall-card__price {
  color: var(--ink);
  white-space: nowrap;
}
.editor-hall-card__price small {
  font-weight: inherit;
  color: var(--muted);
}
.editor-hall-card__chevron {
  flex-shrink: 0;
  color: var(--muted);
}
.editor-halls-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  border: none;
  border-radius: 12px;
  background: var(--bg-soft);
}
.editor-halls-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
  color: var(--muted);
}
.editor-halls-empty__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.editor-halls-empty__hint {
  margin: 8px 0 0;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.editor-halls-empty__action { margin-top: 18px; }

/* ─── Страница создания сущности (зал, …) ─── */
.bo-editor-create {
  max-width: 640px;
}
.bo-editor-create--wide {
  max-width: 48rem;
}
.editor-booking-services-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.bo-editor-head__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.editor-create-form { margin-top: 0; }
.editor-create-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .editor-hall-card {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 14px;
  }
  .editor-hall-card__thumb { width: 64px; height: 64px; }
}

/* Выбор режима бронирования: три карточки вместо блёклого селекта */
.mode-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.mode-choice__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.mode-choice__item:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.mode-choice__item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mode-choice__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-top: 1px;
}
.mode-choice__body { min-width: 0; }
.mode-choice__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.mode-choice__desc {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.mode-choice__item:has(input:focus-visible) {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.mode-choice__item.is-internal:has(input:checked) {
  border-color: rgba(37, 99, 235, .45);
  background: rgba(37, 99, 235, .07);
}
.mode-choice__item.is-internal:has(input:checked) .mode-choice__icon { color: #2563eb; }
.mode-choice__item.is-request:has(input:checked) {
  border-color: color-mix(in srgb, var(--ink) 32%, var(--line));
  background: var(--bg-soft);
}
.mode-choice__item.is-request:has(input:checked) .mode-choice__icon { color: var(--ink); }

/* Booking mode badge */
.osc-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}
.fp-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  color: var(--muted);
  background: var(--bg-soft);
  white-space: nowrap;
}
.fp-mode-badge svg { flex: 0 0 auto; }
.fp-mode-badge.is-internal {
  color: #2563eb;
  background: rgba(59, 130, 246, .12);
}
.fp-mode-badge.is-request {
  color: var(--muted);
  background: var(--bg-soft);
}
/* Заявка с подключённым внешним календарём — отличаем от заявки без расписания */
.fp-mode-badge.is-external {
  color: #7c3aed;
  background: rgba(139, 92, 246, .12);
}
.fp-mode-badge.is-instant {
  color: var(--notice-success-ink);
  background: var(--notice-success-bg);
}

/* ─── Верификация владельцев (модерация) ─────────────────────────── */
.verif-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.verif-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg);
}
.verif-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.verif-card__id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.verif-card__avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-soft));
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}
.verif-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verif-card__contacts {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.verif-card__date {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.verif-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.verif-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
}
.verif-card__meta-item svg { color: var(--muted); flex: 0 0 auto; }
.verif-card__comment {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  color: var(--ink);
}
.verif-card__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.verif-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
.verif-doc:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg-soft)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.verif-doc svg { color: var(--muted); flex: 0 0 auto; }
.verif-card__history { margin-top: 14px; }
.verif-card__history > summary {
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.verif-card__history > summary::-webkit-details-marker { display: none; }
.verif-card__history > summary::before { content: "▸ "; }
.verif-card__history[open] > summary::before { content: "▾ "; }
.verif-history-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.verif-history-item {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
}

/* Действия */
.verif-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.verif-action { position: relative; }
.verif-action > summary {
  list-style: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.verif-action > summary::-webkit-details-marker { display: none; }
.verif-action--danger > summary.verif-action__danger-trigger { color: #dc2626; }
.verif-action--danger > summary.verif-action__danger-trigger:hover {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  border-color: color-mix(in srgb, #ef4444 40%, var(--line));
}
.verif-action__panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  min-width: 320px;
  max-width: 460px;
}
.verif-action--danger .verif-action__panel {
  border-color: color-mix(in srgb, #ef4444 35%, var(--line));
  background: color-mix(in srgb, #ef4444 6%, var(--bg-soft));
}
.verif-action__label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.verif-action__input {
  width: 100%;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  line-height: 1.45;
}
.verif-action__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.verif-action__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Панели действий раскрываются на всю строку под кнопками */
@media (min-width: 640px) {
  .verif-action[open] { flex: 1 1 100%; }
}

.verif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}
.verif-empty svg { color: color-mix(in srgb, var(--accent) 45%, var(--muted)); }
.verif-empty p { font-size: 14px; margin: 0; }


/* ============================================================
   Back-office shell (панель управления: владелец / персонал)
   Отдельная оболочка без витринного header/footer.
   Использует общие токены (--bg / --bg-soft / --card / --line / --accent).
   ============================================================ */

.bo-body {
  background: var(--bg-soft);
  color: var(--ink);
  min-height: 100vh;
}

.bo-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Топ-бар --- */
.bo-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bo-topbar__inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .bo-topbar__inner { padding: 0 24px; }
}
.bo-topbar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bo-topbar__brand { display: inline-flex; align-items: center; min-width: 0; }
.bo-topbar__context {
  font-size: 12px;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) { .bo-topbar__context { display: none; } }

.bo-topbar__burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.bo-topbar__burger:hover { background: var(--bg-soft); }
@media (max-width: 1023px) { .bo-topbar__burger { display: inline-flex; } }

.bo-topbar__right { display: flex; align-items: center; gap: 8px; }
.bo-topbar__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
}
.bo-topbar__link:hover { background: var(--bg-soft); color: var(--ink); }

/* --- Меню пользователя в топ-баре --- */
.bo-user { position: relative; }
.bo-user__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
}
.bo-user__trigger:hover { background: var(--bg-soft); }
.bo-user__avatar,
.bo-user__avatar-img {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  object-fit: cover;
}
.bo-user__avatar { background: var(--accent); color: #fff; }
.bo-user__name { font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-user__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 60;
}
.bo-user__id { padding: 8px 10px 10px; }
.bo-user__id-name { font-weight: 700; font-size: 14px; }
.bo-user__id-email { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-user__sep { height: 1px; background: var(--line); margin: 4px 0; }
.bo-user__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 13px; color: var(--ink);
  background: transparent; border: 0; cursor: pointer; text-align: left;
}
.bo-user__item:hover { background: var(--bg-soft); }
.bo-user__item--muted { color: var(--muted); }

/* --- Каркас: сайдбар + контент --- */
.bo-shell__body {
  flex: 1;
  display: flex;
  align-items: stretch;
  position: relative;
}

.bo-sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 12px;
  align-self: flex-start;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}
.bo-sidebar__head {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 4px 8px 12px;
}
.bo-sidebar__title { font-weight: 700; font-size: 15px; }
.bo-sidebar__close {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.bo-sidebar__close:hover { background: var(--bg-soft); color: var(--ink); }

.bo-nav { font-size: 14px; }
.bo-nav__group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.bo-nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background .12s, color .12s;
}
.bo-nav__item:hover { background: var(--bg-soft); }
.bo-nav__item.is-active {
  background: color-mix(in srgb, rgba(var(--accent-rgb), 1) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.bo-nav__badge {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, rgba(var(--accent-rgb), 1) 14%, transparent);
  color: var(--accent);
  padding: 1px 8px; border-radius: 999px;
}
.bo-nav__count { margin-left: auto; font-size: 12px; color: var(--muted); }
.bo-nav__sep { height: 1px; background: var(--line); margin: 12px 4px; }

/* --- Основная рабочая зона --- */
.bo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bo-content {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 24px;
}
@media (max-width: 767px) { .bo-content { padding: 16px; } }
.bo-content--crumbs { padding-top: 20px; padding-bottom: 0; }
.bo-content--crumbs + .bo-content { padding-top: 12px; }

/* Формо-ориентированные страницы: читаемая ширина внутри fluid-зоны */
.bo-narrow { max-width: 860px; }

/* --- Мобильный off-canvas сайдбар --- */
.bo-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 45;
}
body.bo-drawer-locked { overflow: hidden; }

@media (max-width: 1023px) {
  .bo-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100vh;
    width: 288px;
    max-width: 86vw;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-md);
  }
  .bo-sidebar__head { display: flex; }
  .bo-shell.is-drawer-open .bo-sidebar { transform: translateX(0); }
  .bo-shell.is-drawer-open .bo-drawer-overlay { display: block; }
}

/* --- Двухколоночный редактор (форма + sticky-рейл) --- */
.editor-back {
  margin-bottom: 12px;
}
.editor-back__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.editor-back__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-back__link:hover {
  color: var(--ink);
}
.bo-editor-head-card {
  margin-bottom: 16px;
}
.bo-editor-head-card .bo-editor-head {
  margin-bottom: 0;
}
.bo-editor-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.bo-editor-head .oeh-img {
  width: 96px; height: 64px; border-radius: 12px; overflow: hidden;
  flex-shrink: 0; background: var(--bg-soft);
}
.bo-editor-head .oeh-img.is-round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.bo-editor-head .oeh-title { font-size: 22px; font-weight: 600; line-height: 1.2; }
.bo-editor-head .oeh-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Ссылки «посмотреть»: на широком экране справа от названия, на узком — под ним */
.oeh-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 16px;
  margin-left: auto;
  padding-top: 2px;
}
.oeh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease;
}
.oeh-link:hover { color: var(--accent); }

/* Белая оболочка вкладок и контента редактора */
.bo-editor-shell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
  /* clip вместо hidden: скругление сохраняется, но sticky внутри продолжает работать */
  overflow: clip;
}
/* Командная строка: вкладки слева, действия над черновиком справа */
.bo-editor-shell__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  position: sticky;
  /* Ровно высота .bo-topbar__inner: любой зазор просвечивает прокручиваемым контентом */
  top: 56px;
  z-index: 6;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bo-editor-shell__tabs {
  flex: 1 1 auto;
  /* Когда вкладкам остаётся меньше 640px, кнопки уезжают на вторую строку */
  min-width: min(100%, 640px);
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 8px;
  margin-bottom: -1px;
  border-bottom: 1px solid var(--line);
}
.bo-editor-shell__tabs::-webkit-scrollbar { display: none; }
.bo-editor-shell__actions {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
}
.bo-editor-shell__hint {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px 0;
}
/* На мыши вкладки переносятся в два ряда: скрытый горизонтальный скролл там не подсказан */
@media (hover: hover) {
  .bo-editor-shell__tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}
.bo-editor-tab {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  padding: 12px 14px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.bo-editor-tab:hover {
  color: var(--ink);
}
.bo-editor-tab.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.bo-editor-tab[data-tab-has-error="1"]:not(.is-active) {
  color: var(--notice-error-ink);
  background: color-mix(in srgb, var(--notice-error-icon) 8%, var(--bg));
}
.bo-editor-shell__body {
  padding: 20px 18px;
}
.bo-editor-shell__body [data-editor-panel] > .editor-section-head:first-child,
.bo-editor-shell__body [data-editor-panel] > .editor-system-card:first-child {
  margin-top: 0;
}

/* На узких экранах бар не липнет, ссылки и кнопки занимают всю ширину */
@media (max-width: 1023px) {
  .bo-editor-shell__bar { position: static; }
  .bo-editor-shell__actions { justify-content: flex-start; }
  .oeh-links {
    margin-left: 0;
    width: 100%;
    gap: 2px 14px;
  }
}

/* Разделитель обратимых и разрушительных действий внутри меню «Ещё» */
.ra-mini-menu .oeh-actions-divider {
  display: block !important;
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* Админ: справочники (taxonomies) */
.platform-page--taxonomy .taxonomy-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.taxonomy-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tax-tabs {
  margin-bottom: 0;
}

.tax-geo-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 4px;
}
.tax-geo-crumb__sep {
  color: var(--muted);
  opacity: 0.6;
}
.tax-geo-crumb__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.tax-geo-crumb__link:hover {
  color: var(--accent-dark);
}
.tax-geo-crumb__link.is-active {
  color: var(--ink);
  cursor: default;
}
a.tax-geo-crumb__link.is-active:hover {
  color: var(--ink);
}

.tax-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.tax-panel + .tax-panel {
  margin-top: 0;
}
.tax-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tax-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.tax-panel__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 40%, transparent);
}

.tax-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 900px) {
  .tax-layout {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  }
}
.tax-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tax-sidebar {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.tax-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 18%, var(--bg));
}
.tax-sidebar__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tax-sidebar__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.tax-sidebar__nav {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
  max-height: min(60vh, 480px);
  overflow-y: auto;
}
.tax-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.12s ease;
}
.tax-sidebar__link:hover {
  background: color-mix(in srgb, var(--line) 35%, transparent);
}
.tax-sidebar__link.is-active {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, var(--line));
}
.tax-sidebar__link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tax-sidebar__link-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tax-sidebar__empty {
  margin: 8px 10px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.tax-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tax-main__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tax-main__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.tax-main__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.tax-add {
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--accent));
  border-radius: 12px;
  background: color-mix(in srgb, var(--line) 12%, var(--bg));
}
.tax-add--sidebar {
  padding: 0;
}
.tax-add--inline {
  margin-bottom: 0;
}
.tax-add__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tax-add__toggle::-webkit-details-marker { display: none; }
.tax-add__toggle::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent-dark);
  transition: transform 0.15s ease;
}
.tax-add[open] > .tax-add__toggle::before {
  content: "−";
}
.tax-add__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
}
.tax-add--sidebar .tax-add__form {
  padding: 0 12px 12px;
}
.tax-add__form--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.tax-add__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.tax-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tax-field--wide {
  grid-column: 1 / -1;
}
.tax-field--check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}
.tax-field--check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.tax-field__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.tax-field__hint {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}
.tax-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.tax-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.tax-input--cell {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
}
.tax-input--narrow {
  max-width: 5rem;
}

.tax-table-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.tax-table-panel--legacy {
  overflow-x: auto;
}
.tax-table-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 18%, var(--bg));
}
.tax-table-header--currency {
  grid-template-columns: 72px minmax(0, 1fr) 80px auto;
}
.tax-table-header--countries {
  grid-template-columns: minmax(0, 1.2fr) 72px 72px 64px auto;
}
.tax-table-header--cities {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.tax-table-header--amenities {
  grid-template-columns: minmax(0, 1.2fr) 100px 100px 72px auto;
}
.tax-table-header--equipment {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
}
.tax-table-header__actions {
  text-align: right;
}

.tax-table-body {
  display: flex;
  flex-direction: column;
}
.tax-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.tax-table-row:last-child {
  border-bottom: none;
}
.tax-table-row--currency {
  grid-template-columns: 72px minmax(0, 1fr) 80px auto;
}
.tax-table-row--countries {
  grid-template-columns: minmax(0, 1.2fr) 72px 72px 64px auto;
}
.tax-table-row--cities {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.tax-table-row--amenities,
.tax-table-row--equipment {
  position: relative;
  display: block;
  padding: 0;
}
.tax-table-row__form--amenities {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 100px 100px 72px auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 14px;
  padding-right: 88px;
}
.tax-table-row__form--equipment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 14px;
  padding-right: 88px;
}
.tax-table-row__delete {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}
.tax-table-row__main {
  min-width: 0;
}
.tax-table-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tax-table-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.tax-inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tax-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--line) 35%, transparent);
  padding: 2px 6px;
  border-radius: 6px;
}
.tax-id {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tax-muted {
  font-size: 12px;
  color: var(--muted);
}
.tax-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}
.tax-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tax-btn-save,
.tax-btn-delete {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.tax-btn-save {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.tax-btn-save:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
}
.tax-btn-delete {
  color: #b42318;
  border-color: color-mix(in srgb, #b42318 25%, var(--line));
  background: color-mix(in srgb, #b42318 6%, var(--bg));
}
.tax-btn-delete:hover {
  background: color-mix(in srgb, #b42318 12%, var(--bg));
}

.tax-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.tax-empty--panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--line) 10%, var(--bg));
}
.tax-empty--panel svg {
  color: var(--muted);
  opacity: 0.7;
}
.tax-empty__title {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.tax-legacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tax-legacy-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 18%, var(--bg));
  white-space: nowrap;
}
.tax-legacy-table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.tax-legacy-table tbody tr:last-child td {
  border-bottom: none;
}
.tax-legacy-table form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tax-legacy-table .tax-inline-form .tax-input {
  flex: 1 1 8rem;
  min-width: 0;
}
.tax-legacy-table td:last-child {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
.tax-legacy-table .tax-empty {
  text-align: center;
  color: var(--muted);
  padding: 20px 14px !important;
}

/* География: страны и города */
.tax-geo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}
.tax-geo-head__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.tax-geo-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tax-geo-head__slug {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.tax-geo-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.tax-geo-list--cities {
  margin-top: 0;
}
.tax-geo-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.tax-geo-item:last-child {
  border-bottom: none;
}
.tax-geo-item--city {
  grid-template-columns: minmax(0, 1fr) auto;
}
.tax-geo-item__main {
  min-width: 0;
}
.tax-geo-item__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  line-height: 1.3;
}
.tax-geo-item__title:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tax-geo-item__slug {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tax-geo-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tax-geo-item__stats {
  text-align: right;
}
.tax-geo-item__stat {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.tax-geo-item__stat:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tax-geo-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.tax-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: color-mix(in srgb, var(--line) 45%, var(--bg));
  border: 1px solid var(--line);
  white-space: nowrap;
}
.tax-pill--muted {
  color: var(--muted);
  font-weight: 600;
}
.tax-pill--accent {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}
.tax-btn-open {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  white-space: nowrap;
}
.tax-btn-open:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

/* Метро: линии и станции */
.tax-metro-summary {
  padding: 2px 0 4px;
}
.tax-metro-summary__text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.tax-metro-block + .tax-metro-block {
  margin-top: 22px;
}
.tax-metro-line__empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}
.tax-metro-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tax-metro-line {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.tax-metro-line__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 16%, var(--bg));
}
.tax-metro-line__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--metro-color, #94a3b8);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}
.tax-metro-line__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.tax-metro-line__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.tax-metro-line .tax-table-panel {
  border: none;
  border-radius: 0;
}
.tax-metro-table {
  table-layout: fixed;
  min-width: 880px;
}
.tax-metro-table th,
.tax-metro-table td {
  vertical-align: middle;
}
.tax-metro-table__coord {
  width: 108px;
}
.tax-metro-table__slug {
  width: 128px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tax-metro-table__actions-h {
  width: 168px;
  text-align: right;
}
.tax-metro-table__actions {
  text-align: right;
  white-space: nowrap;
}
.tax-metro-table__action-form {
  display: inline-flex;
  vertical-align: middle;
}
.tax-metro-table__action-form + .tax-metro-table__action-form {
  margin-left: 6px;
}
.tax-metro-color {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.tax-metro-color__swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}
.tax-metro-table .tax-input--cell {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
}
.tax-metro-table .tax-input--coord {
  font-variant-numeric: tabular-nums;
}
.tax-input--color {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 767px) {
  .tax-geo-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .tax-geo-item__stats {
    text-align: left;
  }
  .tax-geo-item__actions {
    justify-content: flex-start;
  }
  .tax-table-header,
  .tax-table-row,
  .tax-table-row__form--amenities,
  .tax-table-row__form--equipment {
    grid-template-columns: minmax(0, 1fr);
  }
  .tax-table-header {
    display: none;
  }
  .tax-table-row {
    gap: 6px;
    padding: 12px 14px;
  }
  .tax-table-row--amenities .tax-table-row__form--amenities,
  .tax-table-row--equipment .tax-table-row__form--equipment {
    padding-right: 14px;
    padding-bottom: 40px;
  }
  .tax-table-row__delete {
    top: auto;
    bottom: 10px;
    right: 14px;
    transform: none;
  }
  .tax-table-row__actions {
    justify-content: flex-start;
  }
}

/* === Админка: настройки платформы === */
.platform-page--settings .platform-tabs {
  margin-bottom: 0;
}
.settings-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-panel__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.settings-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.settings-panel__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.settings-panel__note {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  background: color-mix(in srgb, var(--line) 20%, var(--bg));
  border: 1px solid var(--line);
}
.settings-panel__note code {
  font-size: 11px;
  word-break: break-word;
}
.settings-subhead {
  margin: 20px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.settings-subhead:first-of-type {
  margin-top: 0;
}
.settings-subhead__note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.settings-subhead__note code {
  font-size: 11px;
  word-break: break-all;
}
.settings-subhead + .settings-fields,
.settings-subhead__note + .settings-fields {
  margin-top: 10px;
}
.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}
.settings-fields + .settings-subhead {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.settings-subactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
}
.settings-subactions__hint {
  font-size: 12px;
  color: var(--muted);
}
.header-bell,
.header-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.header-bell:hover,
.header-iconbtn:hover {
  background: var(--line);
}
.header-bell__badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
}
.header-notif { position: relative; }
.header-notif__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 70;
  animation: typeahead-in .18s cubic-bezier(.2,.7,.2,1);
}
.header-notif__menu:not([hidden]) { display: block; }
[data-theme="dark"] .header-notif__menu {
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.header-notif__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 10px;
}
.header-notif__title {
  font-size: 14px;
  font-weight: 600;
}
.header-notif__count {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.header-notif__item {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background .12s ease;
}
.header-notif__item:hover {
  background: var(--bg-soft);
}
.header-notif__item.is-static:hover {
  background: transparent;
}
.header-notif__item-title {
  font-size: 13px;
  font-weight: 600;
}
.header-notif__item.is-unread .header-notif__item-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--accent);
}
.header-notif__item-lead {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.header-notif__item-meta {
  font-size: 11px;
  color: var(--muted);
}
.header-notif__empty {
  margin: 0;
  padding: 2px 12px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.header-notif__all {
  display: block;
  margin-top: 4px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.header-notif__all:hover {
  color: var(--accent);
}
@media (max-width: 640px) {
  /* Колокольчик стоит не у самого края экрана: справа ещё бургер и отступ.
     Поэтому на узких экранах панель прижимаем к окну, а не к кнопке. */
  .header-notif__menu {
    position: fixed;
    top: calc(var(--fp-header-h, 56px) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - var(--fp-header-h, 56px) - 24px);
    overflow-y: auto;
  }
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.notif-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.notif-item.is-unread {
  border-color: var(--accent);
}
.notif-item__link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}
.notif-item__title {
  font-weight: 600;
}
.notif-item__lead {
  font-size: 14px;
  color: var(--muted);
}
.notif-item__meta {
  font-size: 12px;
  color: var(--muted);
}
.settings-chats {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.settings-chats__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.settings-chats__label {
  font-weight: 600;
}
.settings-chats__id {
  font-size: 12px;
  color: var(--muted);
}
.settings-chats__state {
  font-size: 12px;
  color: var(--danger, #c0392b);
}
.settings-chats__action {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.settings-field__inline-action {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.settings-field__inline-action:hover {
  text-decoration: underline;
}
.settings-field--checkbox {
  grid-column: 1 / -1;
}
.settings-field.has-error .tax-input,
.settings-field.has-error textarea {
  border-color: #dc2626;
}
.settings-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
}
.settings-checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
}
.settings-checkbox__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.settings-checkbox__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.settings-checkbox__hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.settings-input--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}
.settings-form__actions {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.settings-form__actions .owner-form-actions {
  margin: 0;
}
@media (max-width: 767px) {
  .settings-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .settings-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================================
   Юридические документы (/privacy, /terms, /offer) — рендер markdown
   ========================================================================== */
.fp-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.fp-legal__title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1.15;
  margin-bottom: 28px;
}
.fp-legal__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.fp-legal__body > *:first-child {
  margin-top: 0;
}
.fp-legal__body h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin: 36px 0 12px;
}
.fp-legal__body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 10px;
}
.fp-legal__body p,
.fp-legal__body ul,
.fp-legal__body ol {
  margin: 0 0 14px;
}
.fp-legal__body ul,
.fp-legal__body ol {
  padding-left: 22px;
}
.fp-legal__body ul {
  list-style: disc;
}
.fp-legal__body ol {
  list-style: decimal;
}
.fp-legal__body li {
  margin-bottom: 6px;
}
.fp-legal__body a {
  color: var(--accent);
  text-decoration: underline;
}
.fp-legal__body strong {
  font-weight: 600;
}
.fp-legal__body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.fp-legal__body hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.fp-legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.fp-legal__body th,
.fp-legal__body td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.fp-legal__body th {
  background: var(--bg-soft);
  font-weight: 600;
}
@media (max-width: 640px) {
  .fp-legal {
    padding: 32px 20px 56px;
  }
  .fp-legal__title {
    font-size: 26px;
  }
}

/* === Пагинатор бэкофиса (resources/views/pagination/backoffice.blade.php) === */
.fp-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.fp-pager__page,
.fp-pager__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
}
a.fp-pager__page:hover,
a.fp-pager__nav:hover {
  background: var(--bg-soft);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
}
.fp-pager__page.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  cursor: default;
}
.fp-pager__nav.is-disabled {
  color: var(--muted);
  opacity: .5;
  cursor: default;
}
.fp-pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 32px;
  color: var(--muted);
  font-size: 13px;
}

/* === Админка: страница «Службы» === */
.platform-page--system {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sys-summary .platform-kpi {
  align-items: flex-start;
  gap: 8px;
}
.sys-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sys-status-pill.is-ok {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #15803d;
}
.sys-status-pill.is-warning {
  background: color-mix(in srgb, #d97706 16%, transparent);
  color: #b45309;
}
.sys-status-pill.is-error {
  background: color-mix(in srgb, #dc2626 14%, transparent);
  color: #b91c1c;
}
.sys-section {
  padding: 20px 22px;
}
.sys-section__head {
  margin-bottom: 16px;
}
.sys-section__title {
  font-size: 18px;
  font-weight: 600;
}
.sys-section__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.sys-subtitle {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.sys-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sys-metric {
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.sys-metric.is-warning {
  border-color: color-mix(in srgb, #d97706 35%, var(--line));
}
.sys-metric__value {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}
.sys-metric__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.sys-table-wrap {
  overflow: auto;
}
.sys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sys-table th,
.sys-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.sys-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
}
.sys-table tr.is-stale td {
  background: color-mix(in srgb, #d97706 8%, transparent);
}
.sys-table__muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.sys-table td code.sys-table__muted {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}
.sys-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.sys-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sys-checks-intro {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.sys-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.sys-check-row.is-warning {
  border-color: color-mix(in srgb, #d97706 35%, var(--line));
  background: color-mix(in srgb, #d97706 6%, var(--bg));
}
.sys-check-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sys-check-row__label {
  font-size: 14px;
  font-weight: 600;
}
.sys-check-row__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.sys-log-panel {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.sys-log-line {
  display: grid;
  grid-template-columns: 170px 72px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}
.sys-log-line:last-child {
  border-bottom: 0;
}
.sys-log-line.is-error {
  background: color-mix(in srgb, #dc2626 8%, transparent);
}
.sys-log-line.is-warning {
  background: color-mix(in srgb, #d97706 8%, transparent);
}
.sys-log-line__at {
  color: var(--muted);
  white-space: nowrap;
}
.sys-log-line__level {
  font-weight: 700;
}
.sys-log-line__text {
  word-break: break-word;
}
.sys-config {
  display: grid;
  gap: 10px;
  margin: 0;
}
.sys-config__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sys-config__row:last-child {
  border-bottom: 0;
}
.sys-config__row dt {
  color: var(--muted);
  font-weight: 600;
}
.sys-config__row dd {
  margin: 0;
  word-break: break-word;
}
@media (max-width: 768px) {
  .sys-log-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .sys-config__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* === Карточки настроек в личном кабинете === */
.account-card {
  max-width: 36rem;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}
.account-card--on {
  border-color: color-mix(in srgb, var(--notice-success-icon) 32%, var(--line));
  background: color-mix(in srgb, var(--notice-success-bg) 85%, var(--card));
}
.account-card--warn {
  border-color: color-mix(in srgb, var(--notice-warning-icon) 32%, var(--line));
  background: color-mix(in srgb, var(--notice-warning-bg) 70%, var(--card));
}
.account-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.account-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
}
.account-card__icon--accent {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  color: var(--accent);
}
.account-card__icon--on {
  border-color: transparent;
  background: var(--notice-success-icon);
  color: #fff;
}
.account-card__icon--warn {
  border-color: transparent;
  background: var(--notice-warning-icon);
  color: #fff;
}
.account-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 600;
  line-height: 1.3;
}
.account-card__note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.account-badge--on {
  background: color-mix(in srgb, var(--notice-success-icon) 18%, var(--card));
  color: var(--notice-success-ink);
}
.account-badge--warn {
  background: color-mix(in srgb, var(--notice-warning-icon) 20%, var(--card));
  color: var(--notice-warning-ink);
}
.account-card__rows {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-left: 56px;
}
.account-pref {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
  user-select: none;
  transition: border-color .12s ease, background .12s ease;
}
.account-pref:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.account-pref:has(.account-switch__input:checked) {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-soft));
}
.account-pref__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
}
.account-pref:has(.account-switch__input:checked) .account-pref__icon {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.account-pref__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-pref__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.account-pref__note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.account-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
}
.account-switch__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.account-switch__track {
  position: relative;
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d4d4d8;
  transition: background .2s ease;
}
.account-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}
.account-switch:has(.account-switch__input:checked) .account-switch__track {
  background: var(--accent);
}
.account-switch:has(.account-switch__input:checked) .account-switch__track::after {
  transform: translateX(18px);
}
.account-card__error {
  margin-top: 10px;
  padding-left: 56px;
}
.account-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-left: 56px;
}
.account-card__link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .12s ease;
}
.account-card__link:hover {
  color: var(--notice-error-ink);
}
[data-theme="dark"] .account-card__icon--on,
[data-theme="dark"] .account-card__icon--warn {
  color: var(--bg);
}
[data-theme="dark"] .account-switch__track {
  background: #3f4249;
}
@media (max-width: 480px) {
  .account-card__rows,
  .account-card__actions,
  .account-card__error {
    padding-left: 0;
  }
}

/* === Страница профиля (личный кабинет) === */
.profile-page {
  max-width: 42rem;
}
.profile-page__head {
  margin-bottom: 1.5rem;
}
.profile-page__lead {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.profile-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  overflow: hidden;
}
.profile-section {
  padding: 1.375rem 1.5rem 1.5rem;
}
.profile-section + .profile-section {
  border-top: 1px solid var(--line);
}
.profile-section__head {
  margin-bottom: 1.125rem;
}
.profile-section__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.profile-section__note {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.profile-section__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.125rem;
  padding-top: 0.25rem;
}
.profile-personal {
  display: grid;
  gap: 1.25rem;
}
/* Шапка профиля: фото, имя и «с сен. 2026 · 3 брони» — часть формы,
   поэтому кнопки фото стоят здесь же, а не отдельной секцией. */
.profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.profile-identity__body {
  min-width: 0;
}
.profile-identity__name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-identity__meta {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.profile-identity__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.profile-identity__drop {
  padding: 0.375rem 0.5rem;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: color .12s ease, background .12s ease;
}
.profile-identity__drop:hover {
  color: var(--notice-error-ink);
  background: var(--bg-soft);
}
.profile-identity__drop[hidden] { display: none; }
.profile-identity .profile-avatar__hint {
  margin-top: 0.5rem;
}
.profile-password {
  display: grid;
  gap: 0.875rem;
}
.profile-password .password-rules {
  margin-top: 0;
}
.fp-form-field__hint {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.profile-fields {
  display: grid;
  gap: 0.875rem;
}
.profile-fields__full {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.profile-notify-form .notify-events {
  margin-top: 0;
}
.profile-notify-form .notify-events__note {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.profile-tg {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--bg-soft);
}
.profile-tg--on {
  border-color: color-mix(in srgb, var(--notice-success-icon) 28%, var(--line));
  background: color-mix(in srgb, var(--notice-success-bg) 80%, var(--bg-soft));
}
.profile-tg--warn {
  border-color: color-mix(in srgb, var(--notice-warning-icon) 28%, var(--line));
  background: color-mix(in srgb, var(--notice-warning-bg) 65%, var(--bg-soft));
}
.profile-tg__icon {
  flex: 0 0 auto;
  width: 2.375rem;
  height: 2.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}
.profile-tg__icon--on {
  border-color: transparent;
  background: var(--notice-success-icon);
  color: #fff;
}
.profile-tg__icon--warn {
  border-color: transparent;
  background: var(--notice-warning-icon);
  color: #fff;
}
.profile-tg__body {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-tg__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}
.profile-tg__note {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.profile-tg__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.profile-tg__disconnect {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .12s ease;
}
.profile-tg__disconnect:hover {
  color: var(--notice-error-ink);
}
@media (max-width: 480px) {
  .profile-section {
    padding: 1.125rem 1rem 1.25rem;
  }
  .profile-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
  .profile-fields {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Статистика карточек (вкладка редактора и раздел админки)
   ========================================================================== */
.card-stats-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.card-stats-blank .card-stats-period {
  margin-top: 14px;
}
.card-stats-period__item {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  transition: color .15s, border-color .15s, background .15s;
}
.card-stats-period__item:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.card-stats-period__item.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* Доска: одна крупная цифра, остальное — контекст к ней */
.card-stats-board__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.card-stats-board__hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.card-stats-board__value {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card-stats-board__unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.card-stats-board__facts {
  display: grid;
  /* Колонка редактора узкая и меняется от роли: подстраиваемся под контейнер */
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-stats-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.card-stats-fact__value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card-stats-fact__icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.card-stats-fact__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.card-stats-fact__hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
/* Сегменты срезов вместо отдельных карточек под каждый */
.card-stats-seg {
  display: inline-flex;
  gap: 2px;
  margin-top: 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.card-stats-seg__item {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.card-stats-seg__item:hover {
  color: var(--ink);
}
.card-stats-seg__item.is-active {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.card-stats-panel__hint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.card-stats-kpis {
  margin-bottom: 12px;
}
.card-stats-empty {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.card-stats-bars {
  margin-top: 12px;
}
.card-stats-chart {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 8px;
  margin-top: 16px;
}
.card-stats-chart__scale {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 132px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.card-stats-chart__plot {
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 132px;
  border-bottom: 1px solid var(--line);
}
.card-stats-chart__axis {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.card-stats-chart .card-stats-legend {
  grid-column: 2;
}
.card-stats-day {
  position: relative;
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.card-stats-day__views,
.card-stats-day__contacts {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 1px;
}
.card-stats-day__views {
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-soft));
  transition: background .12s;
}
.card-stats-day.is-hovered .card-stats-day__views {
  background: color-mix(in srgb, var(--accent) 45%, var(--bg-soft));
}
.card-stats-day__contacts {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--accent);
}
.card-stats-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.card-stats-tip[hidden] {
  display: none;
}
.card-stats-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.card-stats-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-stats-legend__item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.card-stats-legend__item--views::before {
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-soft));
}
.card-stats-legend__item--contacts::before {
  background: var(--accent);
}
.card-stats-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  /* Собственный фон: в сводке владельца таблица лежит прямо на сером фоне кабинета */
  background: var(--bg);
  /* Колонка редактора узкая: пять колонок не ужимаются, а уезжают в прокрутку */
  overflow-x: auto;
}
.card-stats-table__head,
.card-stats-table__row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(4, 84px);
  min-width: 486px;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.card-stats-table__head {
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}
.card-stats-table__head > *:not(:first-child),
.card-stats-table__row span:not(:first-child) {
  text-align: right;
}
.card-stats-table__sort {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: inherit;
  transition: color .15s;
}
.card-stats-table__head > .card-stats-table__sort:not(:first-child) {
  justify-content: flex-end;
}
.card-stats-table__sort:hover {
  color: var(--ink);
}
.card-stats-table__sort.is-active {
  color: var(--accent);
}
.card-stats-table__arrow {
  font-size: 10px;
}
.card-stats-table__row + .card-stats-table__row,
.card-stats-table__head + .card-stats-table__row {
  border-top: 1px solid var(--line);
}
.card-stats-table__row {
  position: relative;
}
/* Полоса по кликам живёт в своей колонке: залитая целиком строка читалась
   как выделение, хотя означала лишь максимум по таблице. */
.card-stats-table__metric {
  position: relative;
  /* Блочная ячейка: полоса должна мерить колонку, а не ширину числа */
  display: block;
}
.card-stats-table__metric::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  width: var(--bar, 0);
  max-width: 100%;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.card-stats-table__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.card-stats-table__name a:hover {
  color: var(--accent);
}
.card-stats-table__tag {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
/* Сводка владельца: студия и её карточки подпунктами в одной таблице */
.card-stats-table__row--group {
  background: var(--bg-soft);
}
.card-stats-table__row--group .card-stats-table__name {
  font-weight: 700;
}
/* Между группами — воздух вместо линии, иначе список читается как сплошной */
.card-stats-table__row--child + .card-stats-table__row--group {
  margin-top: 6px;
  border-top: none;
}
.card-stats-table__row--child {
  color: var(--muted);
  font-size: 12px;
}
.card-stats-table__row--child .card-stats-table__name {
  padding-left: 16px;
  font-weight: 500;
}
.card-stats-table__row--group + .card-stats-table__row--child,
.card-stats-table__row--child + .card-stats-table__row--child {
  border-top: 1px dashed color-mix(in srgb, var(--line) 65%, transparent);
}

/* ==========================================================================
   Личный кабинет: разделы чипами (телефон, вместо сайдбара)
   ========================================================================== */
.acct-nav {
  margin-top: 10px;
}
/* Все разделы видны сразу: шесть подписей в строку не влезают, поэтому перенос
   на вторую строку, а не горизонтальная прокрутка со спрятанными пунктами. */
.acct-nav__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.acct-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.acct-nav__item:hover {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
.acct-nav__item.is-active {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.acct-nav__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
}
.acct-nav__item.is-active .acct-nav__icon {
  color: inherit;
}
.acct-nav__count {
  font-size: 11px;
  color: var(--muted);
}
.acct-nav__count:empty {
  display: none;
}
.acct-nav__item.is-active .acct-nav__count {
  color: color-mix(in srgb, var(--bg) 70%, var(--ink));
}
/* На тёмном --bg-soft почти сливается с фоном, и чипы читаются как обычный текст */
[data-theme="dark"] .acct-nav__item:not(.is-active) {
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--line));
}
[data-theme="dark"] .acct-nav__item:not(.is-active):hover {
  background: var(--line);
}
