:root {
  --bg-deep: #030304;
  --bg-mid: #0a0b0f;
  --surface: rgba(16, 18, 26, 0.72);
  --surface-solid: #12141c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f2f4;
  --muted: #8b8f9c;
  --hot: #ff2d55;
  --hot-dim: #c41e3a;
  --cool: #00f5d4;
  --cool-dim: #00c4a7;
  --violet: #a855f7;
  --danger: #ff6b6b;
  --success: #34d399;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Roboto",
    "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --shadow-glow: 0 0 40px rgba(255, 45, 85, 0.15);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Переливы градиентов — короткий ход позиции, без резких скачков */
@keyframes gradient-flow-x {
  0%,
  100% {
    background-position: 38% 50%;
  }
  50% {
    background-position: 62% 50%;
  }
}

@keyframes gradient-flow-xy {
  0%,
  100% {
    background-position: 42% 48%;
  }
  50% {
    background-position: 58% 52%;
  }
}

@keyframes mesh-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translate(1.2%, -1%) scale(1.02);
    opacity: 0.58;
  }
  66% {
    transform: translate(-0.8%, 1.2%) scale(0.99);
    opacity: 0.54;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -20%, rgba(255, 45, 85, 0.22), transparent 55%),
    radial-gradient(ellipse 800px 480px at 95% 10%, rgba(0, 245, 212, 0.12), transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(168, 85, 247, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 40%, #020203 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 3px
  );
  background-size: 40px 40px;
  animation: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(255, 45, 85, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 15%, rgba(0, 245, 212, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 50% at 50% 95%, rgba(168, 85, 247, 0.12), transparent 55%);
  animation: mesh-drift 48s ease-in-out infinite;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--cool);
  text-decoration: none;
  transition: color 0.15s ease, filter 0.15s ease;
}

a:hover {
  color: #7cffee;
  text-decoration: none;
}

.container {
  width: min(1120px, 100%);
  max-width: 100%;
  margin: 0 auto;
  /* Чтобы текст и кнопки не прилипали к краям экрана (в т.ч. с вырезом) */
  padding-left: max(1.5rem, calc(env(safe-area-inset-left, 0px) + 0.75rem));
  padding-right: max(1.5rem, calc(env(safe-area-inset-right, 0px) + 0.75rem));
}

/* Сетки: треки не шире контейнера, ячейки могут сжиматься (иначе «растягивание» на мобильных) */
.card-grid,
.home-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card-grid > *,
.home-grid > *,
.mix-brand-check-grid > * {
  min-width: 0;
}

/* ——— Header ——— */
.site-header {
  background: rgba(5, 6, 10, 0.75);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 45, 85, 0.12);
}

/*
 * backdrop-filter задаёт containing block для position:fixed у потомков — затемнение и
 * drawer оказываются «привязаны» к высоте шапки и уходят под main. При открытом меню
 * отключаем blur и поднимаем слой; overflow — visible, иначе overflow-x: clip режет оверлей.
 */
.site-header--nav-open {
  overflow: visible;
  z-index: 12000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(255, 45, 85, 0.55) 0%,
    rgba(168, 85, 247, 0.45) 28%,
    rgba(0, 245, 212, 0.42) 52%,
    rgba(168, 85, 247, 0.4) 76%,
    rgba(255, 45, 85, 0.5) 100%
  );
  opacity: 0.92;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.45rem 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
  padding: 0.9rem 0;
  overflow-x: clip;
}

.header-plank {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.header-plank .nav {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

/* Кнопка «гамбургер» — только мобильная вёрстка */
.nav-mobile-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-mobile-toggle:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 2px;
}

.nav-mobile-toggle__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 1.35rem;
  height: 1.1rem;
}

.nav-mobile-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.site-header--nav-open .nav-mobile-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--nav-open .nav-mobile-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header--nav-open .nav-mobile-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Затемнение и выезжающая панель */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-header--nav-open .nav-mobile-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 150;
  width: min(20rem, calc(100% - 1rem));
  max-height: 100vh;
  max-height: 100dvh;
  padding: 0.75rem 0 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: var(--surface-solid);
  border-left: 1px solid var(--border-strong);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-header--nav-open .nav-mobile-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Кнопка меню над backdrop — иначе на телефоне touchend попадает на затемнение и меню сразу закрывается */
.site-header--nav-open .nav-mobile-toggle {
  position: relative;
  z-index: 155;
}

.nav-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-drawer__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-mobile-close {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-mobile-close:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 2px;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.nav-mobile-links a {
  display: block;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.nav-mobile-links a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cool);
}

.nav-mobile-links__admin {
  color: var(--hot) !important;
}

.nav-mobile-divider {
  height: 1px;
  margin: 0.35rem 1rem;
  background: var(--border);
}

.nav-mobile-account {
  padding: 0.75rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nav-mobile-user {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.nav-mobile-account__btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 46px;
}

.nav-mobile-account__form {
  margin: 0;
}

body.nav-mobile-open {
  overflow: hidden;
  touch-action: none;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  background: linear-gradient(
    100deg,
    #f8f9fb 0%,
    var(--cool) 22%,
    var(--violet) 48%,
    var(--hot) 72%,
    #f8f9fb 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  animation: gradient-flow-x 36s ease-in-out infinite;
}

.logo-text {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.nav-admin {
  color: var(--hot) !important;
  border-color: rgba(255, 45, 85, 0.35) !important;
  background: rgba(255, 45, 85, 0.08) !important;
}

.nav-admin:hover {
  background: rgba(255, 45, 85, 0.15) !important;
}

.auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.user-name {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-form {
  display: inline;
  margin: 0;
}

.main-content {
  flex: 1;
  padding: 2.25rem 0 3.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent);
}

.site-footer .footer-brand {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.site-footer__tagline {
  margin: 0;
  max-width: 42rem;
}

.site-footer__disclaimer {
  margin: 0;
  max-width: 44rem;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.92;
}

.site-footer__privacy {
  margin: 0;
}

.site-footer__privacy-trigger {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(197, 200, 208, 0.35);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.site-footer__privacy-trigger:hover {
  color: var(--text);
  text-decoration-color: rgba(0, 245, 212, 0.45);
}

html.privacy-policy-modal--lock,
html.privacy-policy-modal--lock body {
  overflow: hidden;
}

.privacy-policy-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.privacy-policy-modal[hidden] {
  display: none !important;
}

.privacy-policy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 5, 0.82);
  backdrop-filter: blur(10px);
}

.privacy-policy-modal__panel {
  position: relative;
  width: min(36rem, 100%);
  max-height: min(88vh, 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: linear-gradient(165deg, rgba(18, 20, 28, 0.98), rgba(8, 9, 14, 0.99));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.privacy-policy-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-policy-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.privacy-policy-modal__title {
  margin: 0 2.5rem 0.75rem 0;
  padding-right: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.privacy-policy-modal__body {
  overflow-y: auto;
  padding-right: 0.25rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #c5c8d0;
}

.privacy-policy-modal__body h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-policy-modal__body h3:first-of-type {
  margin-top: 0.35rem;
}

.privacy-policy-modal__body p {
  margin: 0 0 0.55rem;
}

.privacy-policy-modal__body p:last-child {
  margin-bottom: 0;
}

.privacy-policy-modal__meta {
  margin-bottom: 0.75rem !important;
  font-size: 0.9rem;
}

/* ——— Hero & home ——— */
/* Кольца пара: тор с бликом сверху, к концу цикла рассыпаются */
@keyframes site-smoke-ring-rise {
  0% {
    transform: translate3d(-50%, 36%, 0) scale(0.46, 0.4) rotate(-2deg);
    opacity: 0;
    filter: blur(1.5px);
  }
  14% {
    opacity: 0.48;
  }
  32% {
    opacity: 0.34;
    filter: blur(6px);
  }
  52% {
    opacity: 0.22;
    filter: blur(12px);
  }
  100% {
    transform: translate3d(-50%, -300%, 0) scale(2.55, 2.18) rotate(4deg);
    opacity: 0;
    filter: blur(24px);
  }
}

@keyframes site-smoke-ring-rise-l {
  0% {
    transform: translate3d(-50%, 38%, 0) scale(0.42, 0.38) rotate(3deg);
    opacity: 0;
    filter: blur(1.5px);
  }
  15% {
    opacity: 0.44;
  }
  38% {
    opacity: 0.28;
    filter: blur(9px);
  }
  100% {
    transform: translate3d(calc(-50% - 22px), -288%, 0) scale(2.38, 2.02) rotate(-6deg);
    opacity: 0;
    filter: blur(26px);
  }
}

@keyframes site-smoke-ring-rise-r {
  0% {
    transform: translate3d(-50%, 40%, 0) scale(0.44, 0.39) rotate(-4deg);
    opacity: 0;
    filter: blur(1.5px);
  }
  15% {
    opacity: 0.42;
  }
  40% {
    opacity: 0.24;
    filter: blur(11px);
  }
  100% {
    transform: translate3d(calc(-50% + 26px), -292%, 0) scale(2.42, 2.08) rotate(5deg);
    opacity: 0;
    filter: blur(25px);
  }
}

@keyframes site-smoke-rise-a {
  0% {
    transform: translate3d(0, 54%, 0) scale(0.8, 0.7);
    opacity: 0;
    filter: blur(11px);
  }
  18% {
    opacity: 0.38;
    filter: blur(16px);
  }
  48% {
    opacity: 0.26;
    filter: blur(22px);
  }
  100% {
    transform: translate3d(-18px, -120%, 0) scale(1.54, 1.9);
    opacity: 0;
    filter: blur(38px);
  }
}

@keyframes site-smoke-rise-b {
  0% {
    transform: translate3d(0, 56%, 0) scale(0.74, 0.68);
    opacity: 0;
    filter: blur(10px);
  }
  20% {
    opacity: 0.34;
    filter: blur(16px);
  }
  50% {
    opacity: 0.2;
    filter: blur(23px);
  }
  100% {
    transform: translate3d(24px, -114%, 0) scale(1.64, 1.74);
    opacity: 0;
    filter: blur(36px);
  }
}

@keyframes site-smoke-rise-c {
  0% {
    transform: translate3d(0, 50%, 0) scale(0.76, 0.72);
    opacity: 0;
    filter: blur(12px);
  }
  18% {
    opacity: 0.36;
    filter: blur(17px);
  }
  46% {
    opacity: 0.22;
    filter: blur(25px);
  }
  100% {
    transform: translate3d(-26px, -110%, 0) scale(1.5, 1.84);
    opacity: 0;
    filter: blur(40px);
  }
}

@keyframes site-smoke-rise-d {
  0% {
    transform: translate3d(0, 58%, 0) scale(0.72, 0.66);
    opacity: 0;
    filter: blur(9px);
  }
  22% {
    opacity: 0.32;
    filter: blur(15px);
  }
  52% {
    opacity: 0.18;
    filter: blur(26px);
  }
  100% {
    transform: translate3d(16px, -116%, 0) scale(1.6, 1.8);
    opacity: 0;
    filter: blur(37px);
  }
}

.main-content--smoke {
  position: relative;
}

.main-content--smoke > .site-smoke {
  position: absolute;
  left: -0.75rem;
  right: -0.75rem;
  top: -0.35rem;
  height: clamp(9rem, 24vh, 15rem);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Мягкое свечение под шапкой блока (только CSS, без мыши) */
.main-content--smoke > .site-smoke::after {
  content: "";
  position: absolute;
  inset: -12% -8% 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.42;
  background:
    radial-gradient(
      ellipse min(200px, 48vw) min(150px, 32vh) at 50% 38%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(236, 242, 250, 0.06) 38%,
      rgba(220, 228, 238, 0.03) 58%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 90% 70% at calc(50% + 18px) calc(38% - 24px),
      rgba(0, 245, 212, 0.05) 0%,
      transparent 55%
    );
  mix-blend-mode: screen;
  filter: blur(18px);
}

@supports (mix-blend-mode: plus-lighter) {
  .main-content--smoke > .site-smoke::after {
    mix-blend-mode: plus-lighter;
  }
}

.main-content--smoke > *:not(.site-smoke) {
  position: relative;
  z-index: 1;
}

.main-content--smoke > .site-smoke + * {
  padding-top: 1.35rem;
}

.site-smoke__rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.site-smoke__ring {
  display: block;
  position: absolute;
  left: var(--ring-left, 50%);
  bottom: -10%;
  width: clamp(68px, 17vw, 138px);
  aspect-ratio: 2.45 / 1;
  border-radius: 50%;
  border: none;
  /* Тор: свет сверху, чуть холоднее снизу — как плотный пар */
  background: radial-gradient(
    ellipse 100% 100% at 50% 36%,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 36%,
    rgba(252, 253, 255, 0.16) 43%,
    rgba(255, 255, 255, 0.2) 48.5%,
    rgba(236, 240, 246, 0.12) 51%,
    rgba(198, 208, 220, 0.07) 56%,
    rgba(255, 255, 255, 0.02) 62%,
    transparent 71%
  );
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.06),
    0 0 40px rgba(235, 242, 250, 0.04),
    0 4px 28px rgba(180, 195, 210, 0.05);
  mix-blend-mode: screen;
  will-change: transform, opacity, filter;
  transform: translate3d(-50%, 0, 0);
  opacity: 0;
  animation: site-smoke-ring-rise var(--ring-dur, 22s) cubic-bezier(0.22, 0.82, 0.36, 1) infinite;
  animation-delay: var(--ring-delay, 0s);
}

.site-smoke__ring::before {
  content: "";
  position: absolute;
  inset: -42%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 100% 100% at 50% 40%,
    transparent 28%,
    rgba(255, 255, 255, 0.035) 46%,
    transparent 72%
  );
  filter: blur(16px);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}

.site-smoke__ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 100% 100% at 50% 30%,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 55%
  );
  opacity: 0.45;
  pointer-events: none;
}

.site-smoke__ring--1 {
  --ring-left: 34%;
  --ring-dur: 24s;
  --ring-delay: 0s;
  animation-name: site-smoke-ring-rise-l;
}

.site-smoke__ring--2 {
  --ring-left: 46%;
  --ring-dur: 27s;
  --ring-delay: -4.5s;
  animation-name: site-smoke-ring-rise-r;
}

.site-smoke__ring--3 {
  --ring-left: 54%;
  --ring-dur: 21s;
  --ring-delay: -8s;
}

.site-smoke__ring--4 {
  --ring-left: 62%;
  --ring-dur: 25s;
  --ring-delay: -11.5s;
  animation-name: site-smoke-ring-rise-r;
}

.site-smoke__ring--5 {
  --ring-left: 41%;
  --ring-dur: 29s;
  --ring-delay: -15s;
  animation-name: site-smoke-ring-rise-l;
}

.site-smoke__wisp {
  display: block;
  position: absolute;
  left: var(--smoke-left, 10%);
  bottom: -10%;
  z-index: 1;
  width: clamp(88px, 18vw, 168px);
  height: clamp(120px, 24vw, 228px);
  border-radius: 50% 42% 55% 48% / 62% 55% 40% 44%;
  filter: blur(16px);
  will-change: transform, opacity, filter;
  /* Нейтральный «молочный» пар, без неоновых цветов */
  background: radial-gradient(
    ellipse 78% 70% at 48% 66%,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(238, 242, 248, 0.11) 32%,
    rgba(210, 218, 228, 0.06) 52%,
    rgba(255, 255, 255, 0.02) 68%,
    transparent 82%
  );
  mix-blend-mode: screen;
  opacity: 0;
}

@supports (mix-blend-mode: plus-lighter) {
  .site-smoke__ring,
  .site-smoke__wisp {
    mix-blend-mode: plus-lighter;
  }
}

/* Второй слой — более размытое облако, смещение имитирует завихрение */
.site-smoke__wisp::before {
  content: "";
  position: absolute;
  inset: -18% -12% 8% -22%;
  border-radius: 48% 52% 50% 46% / 58% 48% 44% 52%;
  background: radial-gradient(
    ellipse 85% 75% at 55% 58%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(225, 232, 240, 0.05) 45%,
    transparent 72%
  );
  opacity: 0.85;
  pointer-events: none;
}

.site-smoke__wisp::after {
  content: "";
  position: absolute;
  inset: 12% 5% -8% 10%;
  border-radius: 52% 46% 48% 54% / 50% 56% 42% 48%;
  background: radial-gradient(
    ellipse 70% 65% at 42% 72%,
    rgba(248, 250, 252, 0.08) 0%,
    transparent 65%
  );
  opacity: 0.7;
  pointer-events: none;
}

.site-smoke__wisp--a {
  --smoke-left: 6%;
  animation: site-smoke-rise-a 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.site-smoke__wisp--b {
  --smoke-left: 30%;
  width: clamp(72px, 15vw, 138px);
  height: clamp(102px, 21vw, 198px);
  border-radius: 46% 54% 48% 52% / 56% 52% 44% 46%;
  animation: site-smoke-rise-b 18.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -3.2s;
  background: radial-gradient(
    ellipse 76% 72% at 52% 64%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(232, 236, 242, 0.09) 38%,
    rgba(200, 210, 222, 0.05) 58%,
    transparent 80%
  );
}

.site-smoke__wisp--c {
  --smoke-left: 52%;
  border-radius: 52% 44% 54% 48% / 48% 58% 46% 52%;
  animation: site-smoke-rise-c 15.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -6.2s;
  background: radial-gradient(
    ellipse 74% 68% at 46% 68%,
    rgba(250, 252, 255, 0.2) 0%,
    rgba(228, 234, 242, 0.08) 42%,
    rgba(255, 255, 255, 0.03) 62%,
    transparent 78%
  );
}

.site-smoke__wisp--d {
  --smoke-left: 76%;
  width: clamp(60px, 12vw, 112px);
  height: clamp(92px, 19vw, 172px);
  border-radius: 50% 48% 50% 50% / 54% 50% 48% 50%;
  animation: site-smoke-rise-d 17s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -9.5s;
  background: radial-gradient(
    ellipse 72% 70% at 50% 66%,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(218, 226, 236, 0.07) 48%,
    transparent 78%
  );
}

@media (prefers-reduced-motion: reduce) {
  .main-content--smoke > .site-smoke::after {
    opacity: 0 !important;
    visibility: hidden;
  }

  .site-smoke__wisp {
    animation: none;
    opacity: 0.18;
    filter: blur(20px);
    transform: translate3d(0, -38%, 0) scale(1.08, 1.12);
  }

  .site-smoke__ring {
    animation: none;
    opacity: 0;
  }
}

.hero {
  margin-bottom: 2.5rem;
  padding: 0.25rem 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
  background: linear-gradient(
    125deg,
    #ffffff 0%,
    var(--cool) 28%,
    var(--violet) 52%,
    var(--hot) 78%,
    #ffffff 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow-xy 40s ease-in-out infinite;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  line-height: 1.55;
  font-weight: 500;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.35rem;
}

.home-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--hot) 0%,
    var(--violet) 33%,
    var(--cool) 66%,
    var(--hot) 100%
  );
  background-size: 100% 100%;
  opacity: 0.88;
}

@media (hover: hover) and (pointer: fine) {
  .home-block:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow), var(--shadow-card);
  }
}

.home-block h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-block h2 a {
  color: var(--text);
}

.home-block h2 a:hover {
  color: var(--cool);
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.mini-list li:last-child {
  border-bottom: none;
}

.rating-badge {
  color: var(--cool);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.more-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hot);
}

.more-link:hover {
  color: #ff6b86;
}

/* ——— Главная: плитки каталога ——— */
.home-grid--catalog {
  gap: 1.25rem;
  align-items: stretch;
}

.home-tile {
  --tile-accent: var(--hot);
  --tile-accent-dim: rgba(255, 45, 85, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: linear-gradient(165deg, rgba(18, 20, 30, 0.96) 0%, rgba(10, 11, 16, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-tile--tobacco {
  --tile-accent: var(--cool);
  --tile-accent-dim: rgba(0, 245, 212, 0.12);
}

.home-tile--shop {
  --tile-accent: var(--violet);
  --tile-accent-dim: rgba(168, 85, 247, 0.14);
}

.home-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--tile-accent), rgba(255, 255, 255, 0.15));
  opacity: 0.95;
  border-radius: 4px 0 0 4px;
}

@media (hover: hover) and (pointer: fine) {
  .home-tile:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transform: translateY(-2px);
  }
}

.home-tile__hero {
  display: flex;
  align-items: center;
  gap: 0.9rem 1rem;
  padding: 1.15rem 1.2rem 1rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 80% at 0% 0%, var(--tile-accent-dim), transparent 55%);
}

.home-tile__icon {
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, var(--tile-accent), rgba(0, 0, 0, 0.35));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.home-tile__svg {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
}

.home-tile__head-text {
  min-width: 0;
}

.home-tile__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-tile__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-tile__title a:hover {
  color: var(--tile-accent);
}

.home-tile__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.home-tile__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  flex: 1;
}

.home-tile__list > li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-tile__list > li:last-child {
  border-bottom: none;
}

.home-tile-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.55rem 1.1rem;
  min-height: 3.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-tile-item:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}

.home-tile-item__thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.home-tile-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-tile--tobacco .home-tile-item__thumb {
  background: rgba(0, 0, 0, 0.35);
}

.home-tile--tobacco .home-tile-item__thumb img {
  object-fit: contain;
  padding: 0.2rem;
}

.home-tile-item__fallback {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.35));
  border: 1px solid var(--border);
}

.home-tile-item__name {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
  color: #e8eaef;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-tile-item__rating {
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--cool);
  white-space: nowrap;
  flex-shrink: 0;
}

.home-tile-item__star {
  margin-left: 0.12rem;
  font-size: 0.78rem;
  opacity: 0.85;
}

.home-tile__empty {
  padding: 0.85rem 1.1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-tile__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.25rem 1rem 1.05rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-tile__more:hover {
  color: var(--tile-accent);
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--tile-accent-dim);
  text-decoration: none;
}

.home-tile__more-arrow {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.home-tile__more:hover .home-tile__more-arrow {
  transform: translateX(3px);
}

/* ——— Cards & lists ——— */
.list-section-title {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  gap: 1.2rem;
  margin-top: 1.75rem;
}

.card {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s;
}

a.card.card--clickable {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 100%;
}

a.card.card--clickable:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
}

a.card.card--clickable:hover .card-title-link {
  color: var(--cool);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(600px 200px at 80% -20%, rgba(0, 245, 212, 0.12), transparent 60%);
  transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 245, 212, 0.25);
  }

  .card:hover::after {
    opacity: 1;
  }
}

.card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.card h2 a {
  color: var(--text);
}

.card h2 a:hover {
  color: var(--cool);
}

.card-title-link {
  color: var(--text);
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.address {
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-size: 0.93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-meta--with-stars .stars {
  font-size: 0.95rem;
  line-height: 1;
  align-self: center;
}

.rating-big {
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(
    90deg,
    var(--cool) 0%,
    var(--violet) 35%,
    var(--hot) 70%,
    var(--cool) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow-x 38s ease-in-out infinite;
}

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

/* ——— Detail ——— */
.detail-head .breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.detail-head .breadcrumb a {
  color: var(--cool);
  text-decoration: none;
}

.detail-head .breadcrumb a:hover {
  text-decoration: underline;
}

.detail-head .breadcrumb-sep {
  margin: 0 0.4em;
  opacity: 0.55;
  font-weight: 500;
}

.detail-head .breadcrumb-current,
.detail-head .breadcrumb-plain {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
  color: var(--text);
}

.detail-head .breadcrumb-plain {
  font-weight: 600;
  color: var(--muted);
}

.detail-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.description {
  margin-top: 1.1rem;
  line-height: 1.65;
  white-space: pre-wrap;
  color: #c9ccd4;
  font-weight: 450;
}

.detail-hours-inline {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 245, 212, 0.06);
}

.detail-hours-inline__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cool);
  margin-bottom: 0.4rem;
}

.detail-hours-body {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #d2d5de;
  font-size: 0.98rem;
}

.detail-price-section {
  margin: 1.75rem 0 0;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 85, 0.22);
  background: linear-gradient(
    160deg,
    rgba(255, 45, 85, 0.08) 0%,
    rgba(16, 18, 26, 0.92) 38%,
    rgba(0, 245, 212, 0.06) 100%
  );
  box-shadow: var(--shadow-glow), 0 16px 48px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.detail-price-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  pointer-events: none;
}

.detail-price-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--hot), var(--violet), var(--cool));
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}

.detail-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.detail-price-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.detail-price-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-price-item__name {
  color: var(--text);
  font-weight: 500;
  flex: 0 1 auto;
  max-width: 100%;
}

.detail-price-item__dots {
  flex: 1 1 12px;
  min-width: 12px;
  border-bottom: 1px dotted rgba(139, 143, 156, 0.45);
  margin-bottom: 0.2rem;
  height: 0;
  align-self: flex-end;
}

.detail-price-item__price {
  color: var(--cool);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-price-item--plain {
  color: #c9ccd4;
  font-weight: 450;
}

@media (max-width: 520px) {
  .detail-price-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .detail-price-item__dots {
    display: none;
  }
}

.reviews-section {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.reviews-section > h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
}

.review-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow);
}

.review-form-wrap h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.star-pick-field {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  min-width: 0;
}

.star-pick-legend {
  padding: 0;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.star-pick__stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.star-pick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.2rem 0.35rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    color 0.15s ease,
    transform 0.12s ease,
    filter 0.15s ease;
}

.star-pick__btn:hover {
  color: rgba(0, 245, 212, 0.55);
}

.star-pick__btn:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
}

.star-pick__btn.is-hover,
.star-pick__btn.is-active {
  color: var(--hot);
  filter: drop-shadow(0 0 10px rgba(255, 45, 85, 0.45));
}

.star-pick__btn:active {
  transform: scale(0.92);
}

.review-form input[type="hidden"] {
  display: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  width: 0;
  height: 0;
}

.stack-form label,
.review-form label {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.password-label .password-field {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.4rem;
}

.password-field input {
  flex: 1;
  min-width: 0;
}

.password-toggle {
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  min-width: 2.65rem;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--cool);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 245, 212, 0.35);
  color: #9cffee;
}

.password-toggle:focus {
  outline: none;
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(0, 245, 212, 0.55);
  outline-offset: 2px;
}

.password-toggle__icons {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
}

.password-toggle__icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.password-toggle__eye-off {
  display: none;
}

.password-toggle--visible .password-toggle__eye {
  display: none;
}

.password-toggle--visible .password-toggle__eye-off {
  display: block;
}

.stack-form input,
.stack-form textarea,
.review-form input,
.review-form select,
.review-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stack-form input:focus,
.stack-form textarea:focus,
.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.12);
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(
    115deg,
    var(--hot) 0%,
    #ff6b4a 32%,
    var(--cool) 58%,
    var(--violet) 82%,
    var(--hot) 100%
  );
  background-size: 220% 220%;
  color: #0a0a0c;
  box-shadow: 0 8px 28px rgba(255, 45, 85, 0.35);
  animation: gradient-flow-xy 42s ease-in-out infinite;
}

.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
  box-shadow: 0 10px 36px rgba(255, 45, 85, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.hint {
  color: var(--muted);
  line-height: 1.55;
}

.errors {
  margin: 0;
  padding: 0.85rem 1rem;
  list-style: none;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffc9c9;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.errors li + li {
  margin-top: 0.35rem;
}

/* Вход / регистрация */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 0.35rem 0 0.5rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  padding: 1.75rem 1.65rem 1.45rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border-strong);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(12, 14, 22, 0.55) 42%,
    rgba(5, 6, 10, 0.72) 100%
  );
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.auth-card--register {
  max-width: 34rem;
}

.auth-card__head {
  margin-bottom: 1.25rem;
}

.auth-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 3.8vw, 1.68rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-card__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.48;
  font-weight: 500;
}

.auth-card__errors {
  margin-bottom: 1rem;
}

.auth-card .stack-form {
  margin-top: 0;
}

.auth-forgot-link {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.9rem;
}

.auth-card__footer {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
}

.auth-google-wrap {
  margin: 1rem 0 0;
}

.auth-google-wrap--after-form {
  margin-top: 1.15rem;
}

.auth-google-wrap--after-form .auth-google-divider {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.auth-google-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
}

.auth-google-divider::before,
.auth-google-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: #1f1f1f;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-google:hover {
  background: #f8f9fa;
}

.btn-google svg {
  flex-shrink: 0;
}

.btn-google--disabled,
.btn-google:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn-google--disabled:hover,
.btn-google:disabled:hover {
  background: #fff;
}

.auth-google-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.auth-google-hint code {
  font-size: 0.88em;
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0.35rem;
  border: 1px solid var(--border);
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  text-align: center;
}

@media (max-width: 640px) {
  .auth-page {
    padding-top: 0.15rem;
  }

  .auth-card {
    padding: 1.35rem 1.15rem 1.2rem;
    border-radius: var(--radius);
  }

  .auth-card__head {
    margin-bottom: 1.1rem;
  }
}

.flash {
  margin: 0.85rem auto 0;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.flash-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.flash-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #fecaca;
}

html.first-visit-consent--lock,
html.first-visit-consent--lock body {
  overflow: hidden;
}

.first-visit-consent {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.first-visit-consent[hidden] {
  display: none !important;
}

.first-visit-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 5, 0.82);
  backdrop-filter: blur(10px);
}

.first-visit-consent__panel {
  position: relative;
  width: min(26rem, 100%);
  max-height: min(90vh, 100%);
  overflow: auto;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: linear-gradient(165deg, rgba(18, 20, 28, 0.98), rgba(8, 9, 14, 0.99));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.first-visit-consent__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.first-visit-consent__body {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c5c8d0;
}

.first-visit-consent__body p {
  margin: 0 0 0.65rem;
}

.first-visit-consent__body p:last-child {
  margin-bottom: 0;
}

.first-visit-consent__btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.review-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.review-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.review-top .review-user-name {
  font-weight: 700;
  color: #e4e6eb;
}

.review-top strong {
  font-weight: 700;
  color: #e4e6eb;
}

.review-top time {
  color: var(--muted);
  margin-left: auto;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.stars {
  letter-spacing: 0.06em;
  color: var(--hot);
  filter: drop-shadow(0 0 8px rgba(255, 45, 85, 0.35));
}

.review-body {
  margin: 0.55rem 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #c5c8d0;
}

/* ——— Admin ——— */
.admin-sections {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
}

.admin-sections li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.15rem;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table th {
  background: rgba(255, 45, 85, 0.08);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.row-actions {
  white-space: nowrap;
}

.row-actions form {
  display: inline;
  margin-left: 0.5rem;
}

.link-danger {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-danger:hover {
  color: #ffb4b4;
}

/* ——— Page titles (lists) ——— */
main h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

main > h1 + .muted {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

/* ——— Админ: таблица и кнопки ——— */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
  margin: 0 0 1rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-scroll .data-table {
  min-width: 520px;
}

/* ——— Адаптив: планшеты и телефоны ——— */
@media (max-width: 900px) {
  .nav-mobile-toggle {
    display: inline-flex;
  }

  /* Десктопная полоса навигации полностью убрана из потока (без «второго» ряда кнопок) */
  .header-plank {
    display: none !important;
  }

  /* Полоска-градиент под шапкой на телефоне часто читается как второй «бургер» рядом с иконкой */
  .site-header::after {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0;
    flex-wrap: unset;
    box-sizing: border-box;
  }

  .logo {
    flex: unset;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .logo-mark {
    flex-shrink: 0;
  }

  .logo-text {
    font-size: clamp(0.52rem, 2.6vw, 0.65rem);
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Декор «дым» не вылезает за padding — без горизонтального скролла */
  .main-content--smoke > .site-smoke {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .main-content {
    max-width: 100%;
    overflow-x: clip;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: max(1.65rem, calc(env(safe-area-inset-left, 0px) + 1rem));
    padding-right: max(1.65rem, calc(env(safe-area-inset-right, 0px) + 1rem));
  }

  .main-content {
    padding: 1.25rem 0 2.5rem;
  }

  .hero {
    margin-bottom: 1.75rem;
  }

  .hero h1 {
    max-width: none;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .home-grid--catalog {
    gap: 0.95rem;
  }

  .home-tile__hero {
    padding: 1rem 1.1rem 0.85rem;
    gap: 0.75rem;
  }

  .home-tile__icon {
    width: 2.85rem;
    height: 2.85rem;
  }

  .home-tile__title {
    font-size: 1.08rem;
  }

  .home-tile-item {
    min-height: 3.35rem;
    padding: 0.5rem 0.95rem;
    gap: 0.55rem 0.65rem;
  }

  .home-tile-item__thumb,
  .home-tile-item__fallback {
    width: 2.6rem;
    height: 2.6rem;
  }

  .home-tile-item__thumb img {
    width: 100%;
    height: 100%;
  }

  .home-tile__more {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
    margin-bottom: 0.95rem;
    min-height: 44px;
  }

  .card:not(.card--with-media) {
    padding: 1.1rem 1.05rem;
  }

  .card-media img {
    height: min(160px, 46vw);
    max-height: 200px;
  }

  .card--with-media h2 {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .card--with-media .address,
  .card--with-media .card-meta {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  main h1,
  .detail-head h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .lead {
    font-size: 1rem;
  }

  .header-inner {
    padding: 0.5rem 0;
  }

  .logo-mark {
    font-size: 1.15rem;
  }

  .logo-text {
    letter-spacing: 0.08em;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mini-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .rating-badge {
    align-self: flex-start;
  }

  .review-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-top time {
    margin-left: 0;
  }

  .detail-head .breadcrumb {
    font-size: 0.75rem;
  }

  .stack-form input,
  .stack-form textarea,
  .review-form input,
  .review-form select,
  .review-form textarea {
    font-size: 16px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar .btn {
    width: 100%;
    text-align: center;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.45rem;
  }

  .row-actions {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
}

/* ——— Публичные карточки и деталь с фото ——— */
.card--with-media {
  padding: 0;
  padding-bottom: 1.25rem;
  overflow: hidden;
}

.card-media {
  display: block;
  margin: 0;
  overflow: hidden;
  line-height: 0;
}

.card-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.card--with-media h2 {
  margin: 1rem 1.35rem 0.5rem;
  padding: 0;
}

.card--with-media .address {
  margin: 0 1.35rem 0.85rem;
  padding: 0;
}

.card--with-media .card-meta {
  margin: 0 1.35rem;
  padding: 0;
}

/* Табак: не растягивать и не жёстко обрезать — сохраняем пропорции */
.card--tobacco .card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  max-height: 220px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.22);
}

.card--tobacco .card-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.detail-hero-photo {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.detail-hero-photo img {
  display: block;
}

/* Кальянные / магазины — ширина блока */
.detail-hero-photo:not(.detail-hero-photo--tobacco) img {
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: cover;
}

/* Табак — без растягивания на всю ширину: как на фото, по центру, с разумным максимумом */
.detail-hero-photo--tobacco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  background: rgba(0, 0, 0, 0.18);
  padding: 1rem 1.25rem;
}

.detail-hero-photo--tobacco img {
  width: auto;
  height: auto;
  max-width: min(100%, 380px);
  max-height: 340px;
  object-fit: contain;
}

/* ——— Админка: боковое меню и дашборд ——— */
.admin-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  min-height: 52vh;
  width: 100%;
}

.admin-sidebar {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-card);
}

.admin-sidebar-head {
  padding: 0.5rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-sidebar-brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.admin-sidebar-brand:hover {
  color: var(--cool);
  text-decoration: none;
}

.admin-sidebar-sub {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.admin-nav-item.is-active {
  color: var(--text);
  border-left-color: var(--hot);
  background: rgba(255, 45, 85, 0.08);
}

.admin-nav-ico {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

.admin-nav-muted {
  font-size: 0.88rem;
  font-weight: 500;
}

.admin-nav-sub {
  padding-left: 1.85rem;
  font-size: 0.84rem;
  font-weight: 500;
}

.admin-nav-sub .admin-nav-ico {
  font-size: 1rem;
  width: 1.35rem;
}

.admin-sidebar-foot {
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
}

/* Уведомления представителю: новая бронь (SSE) */
.rep-live-toast-host {
  position: fixed;
  z-index: 99990;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2rem));
}

.rep-live-toast {
  pointer-events: auto;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.35);
  background: linear-gradient(155deg, rgba(20, 24, 32, 0.97) 0%, rgba(10, 12, 18, 0.98) 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.rep-live-toast--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rep-live-toast--out {
  opacity: 0;
  transform: translateY(8px);
}

.rep-live-toast__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 245, 212, 0.95);
}

.rep-live-toast__text {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}

.rep-live-toast__time {
  font-size: 0.86rem;
  color: var(--muted);
}

.rep-live-toast__link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cool);
}

.rep-live-toast__link:hover {
  color: #7cffee;
}

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

.admin-main-inner {
  padding-bottom: 1rem;
}

.admin-page-head {
  margin-bottom: 1.5rem;
}

.admin-page-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.admin-page-lead {
  margin: 0;
  max-width: 40rem;
}

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

/* ——— Админ: чат поддержки ——— */
.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 420px;
}

@media (max-width: 900px) {
  .admin-support-layout {
    grid-template-columns: 1fr;
  }
}

.admin-support-sidebar {
  padding: 1rem;
  max-height: 70vh;
  overflow: auto;
}

.admin-support-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-support-sidebar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-support-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-support-thread-list li {
  margin-bottom: 0.35rem;
}

.admin-support-thread-btn {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.admin-support-thread-avatar-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-support-thread-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-support-thread-avatar-ph {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}

.admin-support-thread-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.admin-support-thread-btn:hover {
  border-color: rgba(0, 245, 212, 0.35);
}

.admin-support-thread-btn.is-active {
  border-color: rgba(0, 245, 212, 0.55);
  background: rgba(0, 245, 212, 0.08);
}

.admin-support-thread-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-support-thread-meta {
  font-size: 0.8rem;
  word-break: break-all;
}

.admin-support-thread-preview {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.admin-support-thread-empty {
  padding: 0.5rem 0;
}

.admin-support-main {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.admin-support-main-head {
  margin-bottom: 0.75rem;
}

.admin-support-main-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.admin-support-main-sub {
  margin: 0;
  font-size: 0.85rem;
}

.admin-support-messages {
  flex: 1;
  min-height: 200px;
  max-height: 48vh;
  overflow-y: auto;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.admin-support-msg {
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.admin-support-msg__row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.admin-support-msg__main {
  flex: 1;
  min-width: 0;
}

.admin-support-msg__avatar-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-support-msg--admin .admin-support-msg__avatar-wrap {
  border-radius: 10px;
}

.admin-support-msg__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-support-msg__avatar-ph {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}

.admin-support-msg--admin {
  border-color: rgba(0, 245, 212, 0.25);
  background: rgba(0, 245, 212, 0.06);
}

.admin-support-msg__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.admin-support-msg__time {
  font-size: 0.75rem;
}

.admin-support-msg__body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.admin-support-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
}

.admin-support-compose-actions {
  margin-top: 0.5rem;
}

/* ——— Виджет чата с админом (все страницы, роль user) ——— */
.home-support-chat {
  /* Выше .site-header--nav-open (12000), иначе панель чата может оказаться под шапкой/меню и ловить чужие клики (в т.ч. «Выйти»). */
  --support-chat-z: 20100;
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: var(--support-chat-z);
  font-size: 0.9375rem;
  pointer-events: none;
  isolation: isolate;
}

.home-support-chat--open {
  pointer-events: auto;
}

.home-support-chat__fab {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem 0.62rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.42);
  background: linear-gradient(155deg, rgba(0, 245, 212, 0.22), rgba(12, 18, 28, 0.92));
  color: var(--text, #f4f6fb);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: auto;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.home-support-chat__fab:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 212, 0.65);
  box-shadow:
    0 8px 28px rgba(0, 245, 212, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.home-support-chat__fab:active {
  transform: translateY(0);
}

.home-support-chat--open .home-support-chat__fab {
  border-color: rgba(0, 245, 212, 0.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.home-support-chat__fab-glow {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(0, 245, 212, 0.35), transparent 65%);
  opacity: 0.55;
  z-index: -1;
  filter: blur(10px);
  pointer-events: none;
}

.home-support-chat__fab-ico {
  display: flex;
  color: rgba(0, 245, 212, 0.95);
  flex-shrink: 0;
}

.home-support-chat__fab-avatar {
  display: flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.home-support-chat__fab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-support-chat__fab--has-avatar .home-support-chat__fab-text {
  margin-left: 0.05rem;
}

.home-support-chat__fab-text {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .home-support-chat__fab-text {
    display: none;
  }

  .home-support-chat__fab {
    padding: 0.65rem;
    border-radius: 50%;
  }
}

.home-support-chat__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(2, 4, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s step-end;
}

.home-support-chat--open .home-support-chat__backdrop {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s step-start;
}

.home-support-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: min(100vw - 1.5rem, 400px);
  max-height: min(72vh, 480px);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0) scale(0.96);
  transform-origin: 85% 100%;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s step-end;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55));
}

.home-support-chat--open .home-support-chat__panel {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s step-start;
}

@media (prefers-reduced-motion: reduce) {
  .home-support-chat__fab,
  .home-support-chat__backdrop,
  .home-support-chat__panel {
    transition: none !important;
  }

  .home-support-chat__fab:hover {
    transform: none;
  }
}

.home-support-chat__panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: inherit;
  padding: 1rem 1.05rem 1rem;
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(22, 28, 40, 0.98), rgba(10, 12, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 64px rgba(0, 0, 0, 0.5);
}

.home-support-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.home-support-chat__head-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.home-support-chat__head-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.home-support-chat__head-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.home-support-chat__badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 245, 212, 0.14);
  color: rgba(0, 245, 212, 0.95);
  border: 1px solid rgba(0, 245, 212, 0.28);
}

.home-support-chat__title {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-support-chat__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-support-chat__close:hover {
  background: rgba(255, 80, 100, 0.15);
  border-color: rgba(255, 120, 130, 0.35);
}

.home-support-chat__hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.home-support-chat__messages {
  flex: 1;
  min-height: 8rem;
  max-height: min(32vh, 240px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-gutter: stable;
}

.home-support-chat__msg {
  margin-bottom: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
}

.home-support-chat__msg-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.home-support-chat__msg-main {
  flex: 1;
  min-width: 0;
}

.home-support-chat__msg-avatar-wrap {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-support-chat__msg--admin .home-support-chat__msg-avatar-wrap {
  border-radius: 9px;
}

.home-support-chat__msg-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-support-chat__msg-avatar-ph {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.75;
  line-height: 1;
}

.home-support-chat__msg:last-child {
  margin-bottom: 0;
}

.home-support-chat__msg--admin {
  border-color: rgba(0, 245, 212, 0.22);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(0, 0, 0, 0.15));
}

.home-support-chat__msg-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
  font-size: 0.72rem;
  margin-bottom: 0.28rem;
  opacity: 0.92;
}

.home-support-chat__msg-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.home-support-chat__form textarea {
  width: 100%;
  resize: vertical;
  min-height: 3.25rem;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
  line-height: 1.4;
}

.home-support-chat__form textarea:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.12);
}

.home-support-chat__send {
  width: 100%;
}

@media (max-width: 520px) {
  .home-support-chat {
    right: 0;
    bottom: 0;
    left: 0;
    padding: max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-left)) max(0.5rem, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
  }

  .home-support-chat--open {
    pointer-events: auto;
  }

  .home-support-chat__fab {
    z-index: 3;
    margin-right: max(0.25rem, env(safe-area-inset-right, 0px));
    margin-bottom: max(0.25rem, env(safe-area-inset-bottom, 0px));
  }

  .home-support-chat__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(88dvh, 560px);
    max-width: none;
    border-radius: 18px 18px 0 0;
    transform: translate3d(0, 110%, 0);
    transform-origin: 50% 100%;
    filter: drop-shadow(0 -8px 40px rgba(0, 0, 0, 0.55));
  }

  .home-support-chat--open .home-support-chat__panel {
    transform: translate3d(0, 0, 0);
  }

  .home-support-chat__panel-inner {
    border-radius: 18px 18px 0 0;
    padding: 1.1rem 1rem 1.15rem;
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }

  .home-support-chat__messages {
    max-height: min(42dvh, 320px);
    min-height: 10rem;
  }

  html.support-chat-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
}

.admin-tobacco-split__block + .admin-tobacco-split__block {
  margin-top: 2.25rem;
}

.admin-tobacco-split__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

a.admin-tobacco-brand-open {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a.admin-tobacco-brand-open:hover {
  text-decoration-thickness: 0.12em;
}

.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.admin-stat-card--accent {
  border-color: rgba(0, 245, 212, 0.25);
  background: linear-gradient(145deg, rgba(0, 245, 212, 0.06), var(--surface-solid));
}

.admin-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--cool), var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.admin-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.admin-section-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 220px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}

.admin-section-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.admin-section-card-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.admin-section-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0.25rem 0 0;
}

.admin-section-card-blurb {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-section-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.admin-empty {
  margin-top: 1rem;
}

.admin-user-role {
  font-size: 0.875rem;
  color: var(--muted);
}

.admin-user-role--admin {
  color: var(--cool);
  font-weight: 600;
}

.admin-user-role--rep {
  color: var(--violet);
  font-weight: 600;
}

.admin-user-role--pending {
  color: var(--hot-dim);
  font-size: 0.8125rem;
}

.admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.admin-rep-venue-delete {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Регистрация: выбор «гость / представитель» */
.reg-role-field {
  margin-top: 0.25rem;
}

.reg-role-field__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.reg-role-field__hint {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.reg-role-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .reg-role-picker {
    grid-template-columns: 1fr 1fr;
  }
}

.reg-role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.12s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.reg-role-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.reg-role-card:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.12);
}

.reg-role-card:active {
  transform: scale(0.98);
}

.reg-role-card.is-selected {
  border-color: transparent;
  background: linear-gradient(
    115deg,
    var(--hot) 0%,
    #ff6b4a 32%,
    var(--cool) 58%,
    var(--violet) 82%,
    var(--hot) 100%
  );
  background-size: 220% 220%;
  color: #0a0a0c;
  box-shadow: 0 8px 28px rgba(255, 45, 85, 0.35);
  animation: gradient-flow-xy 42s ease-in-out infinite;
}

.reg-role-card.is-selected .reg-role-card__title {
  color: inherit;
}

.reg-role-card.is-selected .reg-role-card__desc {
  color: rgba(10, 10, 12, 0.85);
}

.reg-role-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--cool);
}

.reg-role-card__icon svg {
  width: 1.42rem;
  height: 1.42rem;
}

.reg-role-card.is-selected .reg-role-card__icon {
  background: rgba(10, 10, 12, 0.22);
  color: #0a0a0c;
}

.reg-role-card__title {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.reg-role-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 500;
}

.reg-rep-comment {
  margin-top: 0.5rem;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}

.reg-rep-comment.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.reg-rep-comment:not(.is-collapsed) {
  max-height: 12rem;
  opacity: 1;
}

.reg-rep-comment__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.reg-rep-comment__hint {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.data-table--media .th-thumb,
.data-table--media .td-thumb {
  width: 72px;
}

.admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.admin-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.35rem;
}

.admin-image-field {
  margin-bottom: 1.25rem;
}

.admin-image-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.admin-image-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.admin-image-preview {
  margin-bottom: 0.75rem;
}

.admin-preview-img {
  max-width: 280px;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 0.5rem;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.admin-file-input {
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-map-block {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.admin-map-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-map-block__head .admin-map-block__title {
  margin-bottom: 0;
}

.admin-map-chain-btn {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.admin-map-block__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.admin-map-block__hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.admin-location-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  z-index: 0;
}

.admin-geocode-hits {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: rgba(0, 245, 212, 0.06);
}

.admin-geocode-hits__title {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.admin-geocode-hits__streets {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

.admin-map-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

@media (max-width: 520px) {
  .admin-map-coords {
    grid-template-columns: 1fr;
  }
}

.admin-map-coord-input {
  font-variant-numeric: tabular-nums;
}

.detail-map-section {
  margin: 2rem 0 1rem;
}

.detail-map-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.detail-map-route-bar {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.detail-map-route-hint {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.detail-map-route-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.detail-map-route-actions--geo {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.detail-map-route-or {
  font-size: 0.85rem;
  margin-right: 0.15rem;
}

.detail-map-route-btn.detail-map-route-btn--loading {
  pointer-events: none;
  opacity: 0.65;
}

.detail-map-route-status {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.detail-map-route-status.detail-map-route-status--error {
  color: var(--danger);
}

.detail-map-route-manual {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.detail-map-route-manual-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.detail-map-route-manual-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.detail-map-route-address-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}

.detail-map-route-address-input:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.12);
}

.detail-map-route-address-input:disabled {
  opacity: 0.65;
}

.detail-location-map {
  width: 100%;
  height: min(360px, 55vh);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  z-index: 0;
}

.admin-seo-block {
  margin: 1.25rem 0 1rem;
  padding: 1rem 1rem 0.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.admin-seo-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-field-hint {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.35;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 0.75rem;
    gap: 0.5rem 1rem;
  }

  .admin-sidebar-head {
    grid-column: 1;
    border-bottom: none;
    padding: 0.25rem 0.5rem;
  }

  .admin-sidebar-nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    gap: 0.35rem;
  }

  .admin-nav-item {
    border-left: none;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.45rem 0.75rem;
  }

  .admin-nav-item.is-active {
    border-color: rgba(255, 45, 85, 0.45);
  }

  .admin-sidebar-foot {
    grid-column: 2;
    grid-row: 1;
    border-top: none;
    align-self: center;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

/* ——— Пагинация списков (в стиле сайта) ——— */
.pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

.pagination-panel {
  width: 100%;
  max-width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 0.65rem;
  background: linear-gradient(165deg, rgba(18, 20, 28, 0.95), rgba(10, 11, 16, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 45, 85, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.65rem;
}

.pagination-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  min-height: 2.45rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

a.pagination-nav:hover {
  border-color: rgba(0, 245, 212, 0.45);
  background: rgba(0, 245, 212, 0.1);
  color: #c5fff5;
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.12);
  text-decoration: none;
}

.pagination-nav--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.03);
}

.pagination-nav--compact {
  min-width: 2.35rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 0.15rem;
}

.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

a.pagination-num:hover {
  color: var(--cool);
  border-color: rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.08);
  text-decoration: none;
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.1);
}

.pagination-num.is-current {
  color: var(--text);
  cursor: default;
  border-color: rgba(255, 45, 85, 0.55);
  background: linear-gradient(145deg, rgba(255, 45, 85, 0.22), rgba(168, 85, 247, 0.12));
  box-shadow: 0 0 20px rgba(255, 45, 85, 0.2);
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0 0.15rem;
  font-size: 0.9rem;
  user-select: none;
  opacity: 0.75;
}

.pagination-meta {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  max-width: 26rem;
}

.pagination-hint {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.88;
}

a.pagination-nav:focus-visible,
a.pagination-num:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .pagination-panel {
    max-width: 100%;
    border-radius: var(--radius);
    padding: 0.65rem 0.5rem;
  }

  .pagination-bar {
    gap: 0.45rem;
  }

  .pagination-nav {
    min-height: 44px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .pagination-num {
    min-width: 2.55rem;
    min-height: 2.55rem;
  }
}

/* Личный кабинет и топ забивок */
.surface-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}

.profile-section-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.profile-form select {
  width: 100%;
}

.input-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-link-list li {
  margin-bottom: 0.5rem;
}

.profile-actions {
  margin-top: 1rem;
}

.nav-cabinet {
  margin-right: 0.25rem;
}

.mix-new-form .mix-tobacco-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem 1rem;
  margin: 0;
}

.mix-tobacco-scroll {
  max-height: 280px;
  overflow: auto;
  margin-top: 0.5rem;
  padding-right: 0.25rem;
}

/* Вкусы забивки: клик по строке, без видимого чекбокса */
.mix-tobacco-row.mix-tobacco-row--pickable {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.45rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mix-tobacco-row.mix-tobacco-row--pickable:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.32);
}

.mix-tobacco-row.mix-tobacco-row--pickable:has(.mix-tobacco-row__input:checked) {
  border-color: rgba(0, 245, 212, 0.55);
  background: rgba(0, 245, 212, 0.09);
  box-shadow: 0 0 0 1px rgba(0, 245, 212, 0.18);
}

.mix-tobacco-row.mix-tobacco-row--pickable:has(.mix-tobacco-row__input:focus-visible) {
  outline: 2px solid var(--cool);
  outline-offset: 2px;
}

.mix-tobacco-row.mix-tobacco-row--pickable:has(.mix-tobacco-row__input:checked)::after {
  content: "";
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.22);
  border: 1px solid rgba(0, 245, 212, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%2300f5d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem 0.75rem;
}

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

.card--mix .mix-card-author {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.mix-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mix-author-avatar--lead {
  width: 40px;
  height: 40px;
}

.mix-card-author--with-avatar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mix-detail-byline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.mix-detail-byline__text {
  line-height: 1.35;
}

.card--mix .mix-card-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.mix-detail-head .mix-detail-note {
  margin-top: 0.75rem;
}

.mix-composition-list {
  margin: 0;
  padding-left: 1.2rem;
}

.mix-composition-list li {
  margin-bottom: 0.35rem;
}

.mix-save-actions {
  margin-bottom: 1.5rem;
}

.mix-owner-actions {
  margin-bottom: 1.5rem;
}

.mix-owner-actions__title {
  margin-top: 0;
  font-size: 1.1rem;
}

.mix-owner-actions__lead {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.mix-owner-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.mix-card-hero img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.mix-card-strip {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.mix-card-strip__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.mix-card-placeholder {
  min-height: 140px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.15), rgba(0, 245, 212, 0.1));
}

.mix-flavor-line {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--cool-dim);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mix-flavor-line--large {
  -webkit-line-clamp: 6;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.mix-composition-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.mix-line-thumb {
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mix-line-text {
  flex: 1;
  min-width: 0;
}

.mix-brand-grid .card--mix-brand {
  text-align: center;
}

.mix-pick-other {
  margin-left: 0.75rem;
  font-size: 0.9rem;
}

.mix-flavor-thumb {
  margin-left: 0.35rem;
  vertical-align: middle;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.mix-tobacco-row__text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.mix-tobacco-row__name {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.mix-flavor-legend {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cool-dim);
  padding: 0 0.25rem;
}

.mix-flavor-count {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.mix-flavor-count-hint {
  font-weight: 400;
  color: var(--muted);
}

.mix-flavor-count--ok strong {
  color: var(--success);
}

.mix-step-card {
  margin-bottom: 1.25rem;
}

.mix-step-hint {
  margin-top: 0;
  margin-bottom: 1rem;
}

.mix-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.mix-brands-get-form {
  margin: 0;
}

.mix-brand-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.mix-brand-check-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mix-brand-check-card:has(.mix-brand-check-input:checked) {
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 245, 212, 0.2);
}

.mix-brand-check-card--pickable {
  position: relative;
}

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

.mix-brand-check-card--pickable:has(.mix-brand-check-input:checked)::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.22);
  border: 1px solid rgba(0, 245, 212, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%2300f5d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.72rem 0.72rem;
  pointer-events: none;
}

.mix-brand-check-card--pickable:has(.mix-brand-check-input:focus-visible) {
  outline: 2px solid var(--cool);
  outline-offset: 2px;
}

.mix-brand-check-media {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mix-brand-check-media img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.mix-brand-check-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mix-selected-brands {
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

.mix-brand-sep {
  margin: 0 0.35rem;
  color: var(--muted);
}

.btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

/* Кабинет: сетка и типографика */
.cabinet-page {
  max-width: 960px;
  margin: 0 auto;
}

.cabinet-page--narrow {
  max-width: 720px;
}

.cabinet-page-title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.cabinet-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cabinet-footer-links {
  margin-top: 1.5rem;
  font-size: 0.92rem;
}

.cabinet-footer-links a {
  color: var(--cool-dim);
}

.cabinet-hero {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.12), rgba(0, 245, 212, 0.08));
}

.cabinet-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.cabinet-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.cabinet-hero-copy {
  flex: 1;
  min-width: 0;
}

.cabinet-hero-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cabinet-hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.cabinet-hero-text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
}

.cabinet-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .cabinet-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.cabinet-card--span-grid {
  grid-column: 1 / -1;
}

.cabinet-card--loyalty .cabinet-loyalty-total {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.cabinet-loyalty-qr-wrap {
  display: inline-block;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.cabinet-loyalty-qr-img {
  display: block;
  width: 280px;
  height: auto;
  max-width: 100%;
}

.cabinet-loyalty-subtitle {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.cabinet-loyalty-venue-list,
.cabinet-loyalty-log {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cabinet-loyalty-log {
  list-style: none;
  padding-left: 0;
}

.cabinet-loyalty-log li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
}

.cabinet-loyalty-log__pts {
  color: var(--cool);
  font-weight: 600;
  min-width: 2rem;
}

.cabinet-loyalty-log__time {
  font-size: 0.85rem;
}

.cabinet-loyalty-code-form {
  max-width: 320px;
}

.rep-loyalty__reader {
  max-width: 400px;
  margin-bottom: 1rem;
}

.rep-loyalty__textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.rep-loyalty__result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.rep-loyalty__result--ok {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.rep-loyalty__result--err {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.08);
}

.rep-loyalty__result--info {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.1);
}

/* Представитель: план зала (стены + столы, % от холста) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rep-hall-page {
  max-width: 1100px;
}

.rep-hall-hero {
  margin-bottom: 1.5rem;
}

.rep-hall-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.rep-hall-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.rep-hall-hero__lead {
  margin: 0;
  max-width: 52rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.rep-hall-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 50%, var(--surface) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.rep-hall-card--main {
  padding: 1.25rem 1.35rem 1.5rem;
}

@media (min-width: 720px) {
  .rep-hall-card--main {
    padding: 1.5rem 1.75rem 1.75rem;
  }
}

.rep-hall-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rep-hall-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rep-hall-toolbar__row--save {
  background: transparent;
  border: none;
  padding: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
}

.rep-hall-quick-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-right: auto;
}

.rep-hall-toolbar__heading {
  flex: 0 0 100%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 600px) {
  .rep-hall-toolbar__heading {
    flex: 0 0 auto;
    margin-right: 0.5rem;
  }
}

.rep-hall-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.rep-hall-tool--mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.rep-hall-tool--mode:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.rep-hall-tool__ico {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1;
}

.rep-hall-tool.is-active {
  border-color: transparent;
  background: linear-gradient(
    115deg,
    rgba(255, 45, 85, 0.35) 0%,
    rgba(255, 107, 107, 0.25) 40%,
    rgba(0, 245, 212, 0.28) 100%
  );
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.2);
}

.rep-hall-hint {
  font-size: 0.88rem;
  margin: 0 0 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(0, 245, 212, 0.06);
  border: 1px solid rgba(0, 245, 212, 0.12);
}

.rep-hall-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .rep-hall-layout {
    grid-template-columns: 1fr minmax(240px, 280px);
  }

  .rep-hall-side {
    margin-top: 0;
  }
}

.rep-hall-stage-outer {
  min-width: 0;
}

.rep-hall-stage-wrap {
  position: relative;
  max-width: 960px;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 85, 0.45) 0%,
    rgba(0, 245, 212, 0.35) 50%,
    rgba(139, 92, 246, 0.35) 100%
  );
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.rep-hall-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: linear-gradient(145deg, #12121a 0%, #0a0a10 100%);
  overflow: hidden;
  touch-action: none;
}

.rep-hall-stage--snap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 4% 4%;
}

.rep-hall-stage--3d {
  perspective: 1000px;
  background: radial-gradient(circle at 50% 30%, #1d2030 0%, #0a0a10 70%);
}

.rep-hall-stage--3d .rep-hall-stage__shine {
  background:
    radial-gradient(ellipse 85% 52% at 50% 0%, rgba(0, 245, 212, 0.14), transparent 55%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent 20%);
}

.rep-hall-stage--3d .rep-hall-tables {
  transform: rotateX(12deg);
  transform-origin: center top;
}

.rep-hall-stage--3d .rep-hall-table {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(160deg, rgba(255, 85, 120, 0.38) 0%, rgba(35, 35, 55, 0.96) 100%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.48),
    0 3px 0 rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 45, 85, 0.24) inset;
}

.rep-hall-stage--3d .rep-hall-table.is-selected {
  box-shadow:
    0 0 0 2px rgba(0, 245, 212, 0.48),
    0 14px 28px rgba(0, 245, 212, 0.2);
}

.rep-hall-stage--3d .rep-hall-wall {
  stroke-width: 0.65;
  stroke: rgba(129, 255, 239, 0.96);
  filter: drop-shadow(0 0 1.5px rgba(0, 245, 212, 0.45));
}

.rep-hall-stage__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 245, 212, 0.08), transparent 55%);
  z-index: 1;
}

.rep-hall-stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.rep-hall-stage__bg--empty {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 245, 212, 0.04) 0%, transparent 65%);
  background-size:
    8.333% 10%,
    8.333% 10%,
    auto;
}

.rep-hall-stage-caption {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
}

.rep-hall-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rep-hall-wall {
  fill: none;
  stroke: rgba(0, 245, 212, 0.95);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.rep-hall-wall--draft {
  stroke-dasharray: 1.5 1;
  stroke: rgba(255, 200, 140, 0.95);
}

.rep-hall-wall-pt {
  fill: rgba(255, 200, 140, 0.98);
  filter: drop-shadow(0 0 0.4px rgba(0, 0, 0, 0.8));
}

.rep-hall-markers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.rep-hall-marker {
  position: absolute;
  pointer-events: auto;
  margin: 0;
  padding: 0.15rem 0.25rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 18, 28, 0.72);
  color: var(--text);
  font-size: clamp(0.55rem, 1.35vw, 0.72rem);
  font-weight: 700;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  overflow: hidden;
}

.rep-hall-marker:active {
  cursor: grabbing;
}

.rep-hall-marker.is-selected {
  box-shadow:
    0 0 0 2px rgba(0, 245, 212, 0.45),
    0 6px 20px rgba(0, 0, 0, 0.4);
}

.rep-hall-marker__text {
  pointer-events: none;
  word-break: break-word;
}

.rep-hall-marker--entrance {
  border-color: rgba(52, 211, 153, 0.85);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.28) 0%, rgba(15, 18, 28, 0.88) 100%);
}

.rep-hall-marker--door {
  border-color: rgba(251, 191, 36, 0.9);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.22) 0%, rgba(15, 18, 28, 0.9) 100%);
}

.rep-hall-marker--booth {
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.95);
  background: rgba(139, 92, 246, 0.12);
}

.rep-hall-stage--3d .rep-hall-marker {
  transform: perspective(520px) rotateX(12deg) translateY(-4%);
  transform-origin: center bottom;
}

.rep-hall-toolbar__row--markers {
  flex-wrap: wrap;
}

.rep-hall-marker-kind-hint {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(0, 245, 212, 0.85);
}

.rep-hall-tables {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.rep-hall-table {
  position: absolute;
  pointer-events: auto;
  margin: 0;
  padding: 0.2rem 0.35rem;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 45, 85, 0.22) 0%, rgba(20, 20, 28, 0.88) 100%);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: clamp(0.62rem, 1.5vw, 0.8rem);
  font-weight: 600;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 45, 85, 0.15) inset;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.rep-hall-table:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.rep-hall-table:active {
  cursor: grabbing;
}

.rep-hall-table.is-selected {
  border-color: rgba(0, 245, 212, 0.75);
  box-shadow:
    0 0 0 2px rgba(0, 245, 212, 0.35),
    0 8px 24px rgba(0, 245, 212, 0.15);
  background: linear-gradient(160deg, rgba(0, 245, 212, 0.2) 0%, rgba(20, 20, 28, 0.92) 100%);
}

.rep-hall-table__name {
  display: block;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rep-hall-table__seats {
  display: block;
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.75);
}

.rep-hall-side {
  margin-top: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(0, 245, 212, 0.07) 0%, rgba(0, 0, 0, 0.15) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.rep-hall-side__title {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.rep-hall-field {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.rep-hall-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.rep-hall-input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.rep-hall-input:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.12);
}

.rep-hall-delete {
  margin-top: 0.15rem;
  width: 100%;
}

.rep-hall-danger {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 107, 0.25);
  background: rgba(255, 80, 80, 0.06);
}

.rep-hall-danger__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 180, 170, 0.95);
}

.rep-hall-danger__text {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 40rem;
}

.rep-hall-btn-danger {
  border: 1px solid rgba(255, 120, 120, 0.45);
  background: rgba(180, 40, 50, 0.35);
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.rep-hall-btn-danger:hover {
  background: rgba(200, 50, 60, 0.5);
  border-color: rgba(255, 160, 160, 0.55);
}

.rep-hall-status {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  padding: 0.5rem 0;
}

.rep-hall-status--ok {
  color: rgba(110, 231, 183, 0.95);
}

.rep-hall-status--err {
  color: var(--hot-dim, #ff8a8a);
}

.rep-hall-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.rep-hall-field--photo {
  margin-bottom: 1rem;
}

.rep-hall-photo-hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.rep-hall-photo-preview-wrap {
  margin-bottom: 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 180px;
  background: rgba(0, 0, 0, 0.2);
}

.rep-hall-photo-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
}

.rep-hall-table--has-photo::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.95), rgba(139, 92, 246, 0.85));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Публичная страница: бронь и план зала */
.detail-booking-cta {
  margin: 2rem 0;
}

.detail-booking-open {
  margin-top: 0.25rem;
}

.detail-hall-lead {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.detail-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-booking-modal[hidden] {
  display: none;
}

.detail-booking-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
}

.detail-booking-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(96vw, 1060px);
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #1e1e28 0%, #12121a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  flex: 0 1 auto;
  margin: auto;
  pointer-events: auto;
}

.detail-booking-modal .public-hall {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.detail-booking-modal .public-hall-stage {
  max-height: min(58dvh, 620px);
}

.detail-booking-modal__title {
  margin: 0 2.25rem 0.35rem 0;
  font-size: 1.2rem;
}

.detail-booking-modal__lead {
  margin: 0 0 1rem;
}

.detail-booking-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.detail-booking-modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.public-hall {
  max-width: 960px;
}

.public-hall-stage-wrap {
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 85, 0.35) 0%,
    rgba(0, 245, 212, 0.28) 100%
  );
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.public-hall-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, #15151c 0%, #0c0c10 100%);
  overflow: hidden;
}

.public-hall-stage__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 245, 212, 0.07), transparent 55%);
}

.public-hall-stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.public-hall-stage__bg--empty {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 8.333% 10%;
}

.public-hall-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.public-hall-wall {
  fill: none;
  stroke: rgba(0, 245, 212, 0.9);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.public-hall-markers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.public-hall-marker {
  position: absolute;
  box-sizing: border-box;
  padding: 0.12rem 0.22rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 18, 28, 0.75);
  color: var(--text);
  font-size: clamp(0.55rem, 1.35vw, 0.72rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
  overflow: hidden;
}

.public-hall-marker__text {
  word-break: break-word;
}

.public-hall-marker--entrance {
  border-color: rgba(52, 211, 153, 0.85);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.26) 0%, rgba(15, 18, 28, 0.9) 100%);
}

.public-hall-marker--door {
  border-color: rgba(251, 191, 36, 0.9);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.2) 0%, rgba(15, 18, 28, 0.92) 100%);
}

.public-hall-marker--booth {
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.95);
  background: rgba(139, 92, 246, 0.12);
}

.public-hall-tables {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.public-hall-table {
  position: absolute;
  pointer-events: auto;
  margin: 0;
  padding: 0.2rem 0.35rem;
  flex-direction: column;
  gap: 0.08rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 45, 85, 0.2) 0%, rgba(22, 22, 30, 0.92) 100%);
  color: var(--text);
  font-size: clamp(0.62rem, 1.5vw, 0.8rem);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.12;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  font-family: inherit;
}

.public-hall-table:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.15);
  border-color: rgba(0, 245, 212, 0.45);
}

.public-hall-table--has-photo::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.95), rgba(139, 92, 246, 0.85));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.public-hall-table__name {
  display: block;
  font-weight: 700;
}

.public-hall-table__seats {
  display: block;
  font-size: 0.78em;
  opacity: 0.85;
}

.public-hall-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.public-hall-modal[hidden] {
  display: none;
}

.public-hall-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.public-hall-modal__dialog {
  position: relative;
  z-index: 2;
  max-width: min(96vw, 520px);
  width: 100%;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #1e1e28 0%, #12121a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  flex: 0 1 auto;
  margin: auto;
  pointer-events: auto;
}

@media (max-height: 820px) {
  .detail-booking-modal,
  .public-hall-modal {
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  .detail-booking-modal__dialog,
  .public-hall-modal__dialog {
    max-height: calc(100dvh - 1rem);
  }

  .detail-booking-modal .public-hall-stage {
    max-height: min(48dvh, 520px);
  }
}

.public-hall-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.public-hall-modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.public-hall-modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.15rem;
  padding-right: 0.5rem;
}

.public-hall-modal__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-hall-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 480px);
  object-fit: contain;
  vertical-align: middle;
}

.public-hall-modal__empty {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
}

.public-hall-booking {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.public-hall-booking__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.public-hall-booking__lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.public-hall-booking__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.public-hall-booking__field {
  display: grid;
  gap: 0.3rem;
}

.public-hall-booking__label {
  font-size: 0.84rem;
  color: var(--muted);
}

.public-hall-booking__date,
.public-hall-booking__slot {
  width: 100%;
  min-height: 2.3rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0.4rem 0.55rem;
}

.public-hall-booking__submit {
  margin-top: 0.75rem;
}

.public-hall-booking__status {
  margin: 0.55rem 0 0;
  min-height: 1.3rem;
}

.public-hall-booking__status.is-error {
  color: #ff7f9f;
}

.cabinet-card {
  margin-bottom: 0;
  /* height: 100%; */
}

.cabinet-card--accent {
  border-color: rgba(0, 245, 212, 0.18);
  background: linear-gradient(160deg, rgba(0, 245, 212, 0.06), var(--surface));
}

.cabinet-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.cabinet-card-desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.cabinet-card-empty {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.cabinet-card-btn {
  width: 100%;
  margin-top: 0.25rem;
  justify-content: center;
}

.cabinet-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.45rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 45, 85, 0.2);
  color: var(--hot);
  vertical-align: middle;
}

.cabinet-form .cabinet-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.cabinet-select-label {
  display: block;
}

.cabinet-favorite-preview {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.cabinet-tile-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.cabinet-tile-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.cabinet-tile-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cabinet-tile-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.cabinet-tile-link:hover {
  color: var(--cool);
}

.cabinet-tile-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Красивый select */
.select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.35rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.85;
}

.select-native {
  width: 100%;
  margin: 0;
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select-native:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.select-native:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.12);
}

.select-wrap--cabinet .select-native {
  background: rgba(10, 12, 20, 0.85);
}

.stack-form .select-wrap {
  margin-top: 0.4rem;
}

/* Товары заведения (публичная карточка) */
.detail-products-section {
  margin-top: 2rem;
}

.detail-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detail-product-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.detail-product-card__media {
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.35);
}

.detail-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-product-card__body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-product-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.detail-product-card__price {
  margin: 0;
  color: var(--cool);
  font-weight: 600;
  font-size: 0.95rem;
}

.detail-yandex-link-wrap {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.detail-yandex-link {
  color: var(--cool);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 212, 0.35);
}

.detail-yandex-link:hover {
  border-bottom-color: var(--cool);
}

/* Админка: товары заведения */
.admin-products-link-wrap {
  margin: 0.75rem 0 1rem;
}

.admin-products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.admin-yandex-import {
  margin-bottom: 1.75rem;
}

.admin-import-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-import-hint code {
  font-size: 0.82em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.admin-import-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}

.admin-import-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.admin-import-form input[type="url"] {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.admin-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-products-table th,
.admin-products-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.admin-products-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-products-table__img img {
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.admin-products-table__actions {
  white-space: nowrap;
}

.admin-products-table__actions .inline-form {
  display: inline-block;
  margin-left: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .site-header::after,
  .logo-mark,
  .hero h1,
  .home-block::before,
  .home-tile:hover,
  .rating-big,
  .btn-primary {
    animation: none !important;
  }

  .home-tile:hover {
    transform: none !important;
  }

  body::before {
    background-position: 0 0;
  }

  .nav-mobile-drawer,
  .nav-mobile-backdrop,
  .nav-mobile-toggle__bar {
    transition: none !important;
  }
}
