/* ==========================================================================
   ЦИФРОВОЙ МУЗЕЙ СВЯЗИ ПАО «РОСТЕЛЕКОМ» (ЛИПЕЦК)
   Стили оформления интерфейса и адаптивная верстка
   ========================================================================== */

:root {
  /* Фирменные цвета «Ростелеком» */
  --rt-orange: #FF5E00;
  --rt-purple: #772CE8;
  --rt-blue: #0077FF;

  /* Спокойные строгие фоны и поверхности */
  --bg-deep: #0B101D;
  --bg-surface: #101728;
  --bg-card: #151F34;
  --bg-card-hover: #1A2742;

  /* Границы и тени без неона */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.25);

  /* Текст */
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-accent: #FF5E00;

  /* Типографика */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Onest', 'Inter', -apple-system, sans-serif;

  --fs-root: 16px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --transition: all 0.2s ease-out;
}

/* Сброс стилей и базовые настройки */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--fs-root);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* Контейнеры */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Типографика и градиентный текст */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.hero-accent {
  color: var(--rt-orange);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  user-select: none;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}

.btn-primary {
  background: var(--rt-orange);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #E55200;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(0, 194, 255, 0.2);
  border-color: var(--rt-cyan);
  color: var(--rt-cyan);
}

/* ==========================================================================
   ШАПКА (HEADER)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: normal;
  color: #FFFFFF;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rt-logo-img {
  display: block;
  height: 38px;
  width: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--rt-cyan);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a11y-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.a11y-toggle-btn:hover,
.a11y-toggle-btn.active {
  background: #FFE600;
  color: #000000;
  border-color: #FFE600;
}

.mobile-burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
}

@media (min-width: 960px) {
  .mobile-burger-btn {
    display: none;
  }
}

/* Мобильное меню (drawer) */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px;
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 95;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.drawer-link:hover {
  background: rgba(0, 194, 255, 0.15);
  color: var(--rt-cyan);
}

/* ==========================================================================
   ПАНЕЛЬ ДОСТУПНОСТИ (ОВЗ)
   ========================================================================== */
.a11y-toolbar {
  background: #111;
  border-bottom: 2px solid #FFE600;
  padding: 10px 0;
  z-index: 101;
  position: relative;
}

.a11y-toolbar.hidden {
  display: none;
}

.a11y-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.a11y-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.a11y-label {
  font-size: 0.85rem;
  color: #CCC;
  font-weight: 600;
}

.a11y-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #444;
  background: #222;
  color: #FFF;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.a11y-btn.active,
.a11y-btn:hover {
  background: #FFE600;
  color: #000;
  border-color: #FFE600;
}

/* Стили активного режима слабовидящих */
html.a11y-active,
body.a11y-active {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.04em !important;
  line-height: 1.8 !important;
}

html.a11y-active a,
body.a11y-active a {
  text-decoration: underline !important;
}

/* 1. Чёрно-жёлтая тема (ГОСТ Р 52872) */
html.a11y-active[data-a11y-theme="black-yellow"],
body.a11y-active[data-a11y-theme="black-yellow"] {
  --bg-deep: #000000 !important;
  --bg-surface: #000000 !important;
  --bg-card: #000000 !important;
  --bg-card-hover: #000000 !important;
  --border-subtle: #FFE600 !important;
  --border-hover: #FFE600 !important;
  --text-main: #FFE600 !important;
  --text-muted: #FFE600 !important;
  --text-dim: #FFE600 !important;
  background-color: #000000 !important;
  color: #FFE600 !important;
}

html.a11y-active[data-a11y-theme="black-yellow"] .a11y-toolbar {
  background: #000000 !important;
  border-bottom: 2px solid #FFE600 !important;
}

html.a11y-active[data-a11y-theme="black-yellow"] .a11y-label {
  color: #FFE600 !important;
}

html.a11y-active[data-a11y-theme="black-yellow"] .a11y-btn {
  background: #000000 !important;
  color: #FFE600 !important;
  border: 1.5px solid #FFE600 !important;
}

/* Строго чёрный контрастный текст на активных жёлтых кнопках */
html.a11y-active[data-a11y-theme="black-yellow"] .a11y-btn.active,
html.a11y-active[data-a11y-theme="black-yellow"] .a11y-btn:hover,
html.a11y-active[data-a11y-theme="black-yellow"] .a11y-toggle-btn.active,
html.a11y-active[data-a11y-theme="black-yellow"] .a11y-toggle-btn:hover,
html.a11y-active[data-a11y-theme="black-yellow"] .btn-primary,
html.a11y-active[data-a11y-theme="black-yellow"] .hotspot-core {
  background: #FFE600 !important;
  background-color: #FFE600 !important;
  color: #000000 !important;
  border-color: #FFE600 !important;
  font-weight: 800 !important;
}

html.a11y-active[data-a11y-theme="black-yellow"] .a11y-btn.active *,
html.a11y-active[data-a11y-theme="black-yellow"] .a11y-toggle-btn.active * {
  color: #000000 !important;
}

html.a11y-active[data-a11y-theme="black-yellow"] p,
html.a11y-active[data-a11y-theme="black-yellow"] span:not(.a11y-btn.active *):not(.a11y-toggle-btn.active *):not(.hotspot-core *),
html.a11y-active[data-a11y-theme="black-yellow"] h1,
html.a11y-active[data-a11y-theme="black-yellow"] h2,
html.a11y-active[data-a11y-theme="black-yellow"] h3,
html.a11y-active[data-a11y-theme="black-yellow"] h4,
html.a11y-active[data-a11y-theme="black-yellow"] a,
html.a11y-active[data-a11y-theme="black-yellow"] label,
html.a11y-active[data-a11y-theme="black-yellow"] li,
html.a11y-active[data-a11y-theme="black-yellow"] strong,
html.a11y-active[data-a11y-theme="black-yellow"] button:not(.a11y-btn.active):not(.a11y-toggle-btn.active):not(.btn-primary),
html.a11y-active[data-a11y-theme="black-yellow"] input,
html.a11y-active[data-a11y-theme="black-yellow"] select,
html.a11y-active[data-a11y-theme="black-yellow"] textarea {
  color: #FFE600 !important;
}

html.a11y-active[data-a11y-theme="black-yellow"] .site-header,
html.a11y-active[data-a11y-theme="black-yellow"] .site-footer,
html.a11y-active[data-a11y-theme="black-yellow"] .hall-tour-card,
html.a11y-active[data-a11y-theme="black-yellow"] .hall-modes-bar,
html.a11y-active[data-a11y-theme="black-yellow"] .scene-footer-info,
html.a11y-active[data-a11y-theme="black-yellow"] .exhibit-card,
html.a11y-active[data-a11y-theme="black-yellow"] .timeline-content,
html.a11y-active[data-a11y-theme="black-yellow"] .building-card-layout,
html.a11y-active[data-a11y-theme="black-yellow"] .stat-card-2026,
html.a11y-active[data-a11y-theme="black-yellow"] .director-card,
html.a11y-active[data-a11y-theme="black-yellow"] .form-card,
html.a11y-active[data-a11y-theme="black-yellow"] .modal-card,
html.a11y-active[data-a11y-theme="black-yellow"] .hotspot-card,
html.a11y-active[data-a11y-theme="black-yellow"] .audio-guide-card,
html.a11y-active[data-a11y-theme="black-yellow"] input,
html.a11y-active[data-a11y-theme="black-yellow"] select,
html.a11y-active[data-a11y-theme="black-yellow"] textarea {
  background-color: #000000 !important;
  border-color: #FFE600 !important;
}

html.a11y-active[data-a11y-theme="black-yellow"] .btn-primary,
html.a11y-active[data-a11y-theme="black-yellow"] .hotspot-core {
  background-color: #000000 !important;
  color: #FFE600 !important;
  border: 3px solid #FFE600 !important;
}

/* 2. Бело-чёрная тема */
html.a11y-active[data-a11y-theme="white-black"],
body.a11y-active[data-a11y-theme="white-black"] {
  --bg-deep: #FFFFFF !important;
  --bg-surface: #FFFFFF !important;
  --bg-card: #FFFFFF !important;
  --bg-card-hover: #FFFFFF !important;
  --border-subtle: #000000 !important;
  --border-hover: #000000 !important;
  --text-main: #000000 !important;
  --text-muted: #000000 !important;
  --text-dim: #000000 !important;
  background-color: #FFFFFF !important;
  color: #000000 !important;
}

html.a11y-active[data-a11y-theme="white-black"] .a11y-toolbar {
  background: #FFFFFF !important;
  border-bottom: 2px solid #000000 !important;
}

html.a11y-active[data-a11y-theme="white-black"] .a11y-label {
  color: #000000 !important;
}

html.a11y-active[data-a11y-theme="white-black"] .a11y-btn {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 1.5px solid #000000 !important;
}

html.a11y-active[data-a11y-theme="white-black"] .a11y-btn.active,
html.a11y-active[data-a11y-theme="white-black"] .a11y-btn:hover,
html.a11y-active[data-a11y-theme="white-black"] .a11y-toggle-btn.active,
html.a11y-active[data-a11y-theme="white-black"] .a11y-toggle-btn:hover,
html.a11y-active[data-a11y-theme="white-black"] .btn-primary,
html.a11y-active[data-a11y-theme="white-black"] .hotspot-core {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
  font-weight: 800 !important;
}

html.a11y-active[data-a11y-theme="white-black"] .a11y-btn.active *,
html.a11y-active[data-a11y-theme="white-black"] .a11y-toggle-btn.active * {
  color: #FFFFFF !important;
}

html.a11y-active[data-a11y-theme="white-black"] p,
html.a11y-active[data-a11y-theme="white-black"] span:not(.a11y-btn.active *):not(.a11y-toggle-btn.active *):not(.hotspot-core *),
html.a11y-active[data-a11y-theme="white-black"] h1,
html.a11y-active[data-a11y-theme="white-black"] h2,
html.a11y-active[data-a11y-theme="white-black"] h3,
html.a11y-active[data-a11y-theme="white-black"] h4,
html.a11y-active[data-a11y-theme="white-black"] a,
html.a11y-active[data-a11y-theme="white-black"] label,
html.a11y-active[data-a11y-theme="white-black"] li,
html.a11y-active[data-a11y-theme="white-black"] strong,
html.a11y-active[data-a11y-theme="white-black"] button:not(.a11y-btn.active):not(.a11y-toggle-btn.active):not(.btn-primary),
html.a11y-active[data-a11y-theme="white-black"] input,
html.a11y-active[data-a11y-theme="white-black"] select,
html.a11y-active[data-a11y-theme="white-black"] textarea {
  color: #000000 !important;
}

html.a11y-active[data-a11y-theme="white-black"] .site-header,
html.a11y-active[data-a11y-theme="white-black"] .site-footer,
html.a11y-active[data-a11y-theme="white-black"] .hall-tour-card,
html.a11y-active[data-a11y-theme="white-black"] .hall-modes-bar,
html.a11y-active[data-a11y-theme="white-black"] .scene-footer-info,
html.a11y-active[data-a11y-theme="white-black"] .exhibit-card,
html.a11y-active[data-a11y-theme="white-black"] .timeline-content,
html.a11y-active[data-a11y-theme="white-black"] .building-card-layout,
html.a11y-active[data-a11y-theme="white-black"] .stat-card-2026,
html.a11y-active[data-a11y-theme="white-black"] .director-card,
html.a11y-active[data-a11y-theme="white-black"] .form-card,
html.a11y-active[data-a11y-theme="white-black"] .modal-card,
html.a11y-active[data-a11y-theme="white-black"] .hotspot-card,
html.a11y-active[data-a11y-theme="white-black"] .audio-guide-card,
html.a11y-active[data-a11y-theme="white-black"] input,
html.a11y-active[data-a11y-theme="white-black"] select,
html.a11y-active[data-a11y-theme="white-black"] textarea {
  background-color: #FFFFFF !important;
  border-color: #000000 !important;
}

html.a11y-active[data-a11y-theme="white-black"] .btn-primary,
html.a11y-active[data-a11y-theme="white-black"] .hotspot-core {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: 3px solid #000000 !important;
}

/* 3. Контрастная тёмная тема */
html.a11y-active[data-a11y-theme="high-contrast-dark"],
body.a11y-active[data-a11y-theme="high-contrast-dark"] {
  --bg-deep: #000000 !important;
  --bg-surface: #0a0a0a !important;
  --bg-card: #050505 !important;
  --bg-card-hover: #111111 !important;
  --border-subtle: #FFFFFF !important;
  --border-hover: #FFFFFF !important;
  --text-main: #FFFFFF !important;
  --text-muted: #E2E8F0 !important;
  --text-dim: #CBD5E1 !important;
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-toolbar {
  background: #000000 !important;
  border-bottom: 2px solid #FFFFFF !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-label {
  color: #FFFFFF !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-btn {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-btn.active,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-btn:hover,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-toggle-btn.active,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-toggle-btn:hover,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .btn-primary,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .hotspot-core {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
  font-weight: 800 !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-btn.active *,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .a11y-toggle-btn.active * {
  color: #000000 !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] p,
html.a11y-active[data-a11y-theme="high-contrast-dark"] span:not(.a11y-btn.active *):not(.a11y-toggle-btn.active *):not(.hotspot-core *),
html.a11y-active[data-a11y-theme="high-contrast-dark"] h1,
html.a11y-active[data-a11y-theme="high-contrast-dark"] h2,
html.a11y-active[data-a11y-theme="high-contrast-dark"] h3,
html.a11y-active[data-a11y-theme="high-contrast-dark"] h4,
html.a11y-active[data-a11y-theme="high-contrast-dark"] a,
html.a11y-active[data-a11y-theme="high-contrast-dark"] label,
html.a11y-active[data-a11y-theme="high-contrast-dark"] li,
html.a11y-active[data-a11y-theme="high-contrast-dark"] strong,
html.a11y-active[data-a11y-theme="high-contrast-dark"] button:not(.a11y-btn.active):not(.a11y-toggle-btn.active):not(.btn-primary),
html.a11y-active[data-a11y-theme="high-contrast-dark"] input,
html.a11y-active[data-a11y-theme="high-contrast-dark"] select,
html.a11y-active[data-a11y-theme="high-contrast-dark"] textarea {
  color: #FFFFFF !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] .site-header,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .site-footer,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .hall-tour-card,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .hall-modes-bar,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .scene-footer-info,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .exhibit-card,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .timeline-content,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .building-card-layout,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .stat-card-2026,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .director-card,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .form-card,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .modal-card,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .hotspot-card,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .audio-guide-card,
html.a11y-active[data-a11y-theme="high-contrast-dark"] input,
html.a11y-active[data-a11y-theme="high-contrast-dark"] select,
html.a11y-active[data-a11y-theme="high-contrast-dark"] textarea {
  background-color: #000000 !important;
  border: 2px solid #FFFFFF !important;
}

html.a11y-active[data-a11y-theme="high-contrast-dark"] .btn-primary,
html.a11y-active[data-a11y-theme="high-contrast-dark"] .hotspot-core {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: 3px solid #FFFFFF !important;
  font-weight: 900 !important;
}

/* Все слои медиа остаются прозрачными и видимыми */
.hotspots-layer,
.scene-image-wrapper,
.panorama-canvas-wrap,
.viewer-canvas-wrap {
  background: transparent !important;
  background-color: transparent !important;
}

html.a11y-active canvas,
html.a11y-active img,
html.a11y-active video,
html.a11y-active .real-scene-img,
html.a11y-active .panorama-canvas,
html.a11y-active .viewer-360-canvas,
html.a11y-active .scene-image-wrapper,
html.a11y-active .hall-viewport,
html.a11y-active .panorama-canvas-wrap,
html.a11y-active .viewer-canvas-wrap,
html.a11y-active .modal-viewer-col {
  background-color: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   HERO СЕКЦИЯ
   ========================================================================== */
.hero-section {
  padding: 60px 0 40px;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.3);
  color: var(--rt-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rt-cyan);
  box-shadow: 0 0 10px var(--rt-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 980px;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 50px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1040px;
}

@media (min-width: 768px) {
  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.stat-item:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rt-cyan);
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================================== */
section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rt-orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   ВИРТУАЛЬНЫЙ ЗАЛ МУЗЕЯ (ГЛАВНЫЙ ЭКРАН)
   ========================================================================== */
.hall-tour-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.hall-modes-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(10, 16, 33, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.modes-toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.mode-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.mode-btn.active {
  background: var(--rt-purple);
  border-color: var(--rt-purple);
  color: #FFFFFF;
}

.hall-hint {
  font-size: 0.82rem;
  color: var(--rt-cyan);
}

.hall-viewport {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: #080D1A;
}

/* Ракурсы от входа */
.photos-view-container {
  display: flex;
  flex-direction: column;
}

.scene-image-wrapper {
  position: relative;
  width: 100%;
  height: clamp(340px, 50vw, 540px);
  overflow: hidden;
  background: #000;
}

.real-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.exhibit-card:hover .card-cover-img {
  transform: scale(1.05);
}

/* Слой хотспотов */
.hotspots-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.exhibit-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.hotspot-pulse {
  display: none;
}

.hotspot-core {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 94, 0, 0.95);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 0 5px rgba(11, 16, 29, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.exhibit-hotspot:hover .hotspot-core {
  transform: scale(1.15);
  background: #E55200;
}

.hotspot-card {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 230px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease-out;
  text-align: left;
  z-index: 25;
}

.exhibit-hotspot:hover .hotspot-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-tag {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 3px;
}

.card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-action {
  font-size: 0.75rem;
  color: var(--rt-orange);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Навигация ракурсов */
.scene-subnav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(10, 16, 33, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 90%;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.scene-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.scene-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.scene-chip .chip-num {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.scene-chip.active {
  background: var(--rt-orange);
  color: #FFFFFF !important;
  border-color: #FFA366;
}

.scene-chip.active .chip-num {
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
}

.scene-footer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(14, 22, 43, 0.6);
  border-top: 1px solid var(--border-subtle);
}

.scene-info-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.scene-info-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scene-exhibit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  background: rgba(0, 194, 255, 0.2);
  border-color: var(--rt-cyan);
  color: var(--rt-cyan);
}

/* Режим панорамы 360 */
.panorama-canvas-wrap {
  position: relative;
  width: 100%;
  height: 520px;
}

.panorama-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.panorama-canvas:active {
  cursor: grabbing;
}

.pano-controls-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.pano-hint {
  font-size: 0.8rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pano-btns {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.control-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 22, 43, 0.85);
  border: 1px solid var(--border-subtle);
  color: #FFF;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.control-icon-btn:hover {
  border-color: var(--rt-cyan);
  background: rgba(0, 194, 255, 0.2);
}

/* Режим схемы музея */
.museum-map-container {
  padding: 30px 20px;
}

.map-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.map-stands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.stand-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.stand-card:hover {
  border-color: var(--border-highlight);
  background: rgba(0, 194, 255, 0.08);
  transform: translateY(-2px);
}

.stand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rt-orange);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stand-category {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stand-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.stand-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rt-cyan);
}

/* ==========================================================================
   КАТАЛОГ ЭКСПОНАТОВ
   ========================================================================== */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

@media (min-width: 860px) {
  .catalog-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cat-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.cat-tab-btn.active {
  background: var(--rt-purple);
  border-color: var(--rt-purple);
  color: #FFF;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  width: 100%;
  max-width: 320px;
  color: var(--text-muted);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-size: 0.9rem;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.exhibit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.exhibit-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card-visual {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #0A1124 0%, #162447 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.card-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rt-cyan);
}

.card-tag-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 94, 0, 0.2);
  border: 1px solid rgba(255, 94, 0, 0.4);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rt-orange);
}

.badge-360 {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 22, 43, 0.85);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rt-cyan);
}

.preview-apparatus-icon {
  transition: transform 0.3s ease;
}

.exhibit-card:hover .preview-apparatus-icon {
  transform: scale(1.1);
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-era {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rt-cyan);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 16, 33, 0.4);
}

.card-footer .open-exhibit-btn {
  flex: 1;
}

/* ==========================================================================
   ХРОНОЛОГИЯ СВЯЗИ (TIMELINE)
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rt-orange);
  border: 3px solid var(--bg-deep);
  z-index: 2;
}

.marker-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--rt-cyan) 0%, rgba(119, 44, 232, 0.2) 100%);
  margin-top: 6px;
}

.timeline-step:last-child .marker-line {
  display: none;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  transition: var(--transition);
}

.timeline-step:hover .timeline-content {
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.timeline-year {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--rt-orange);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ЗДАНИЕ НА ПЛ. ПЛЕХАНОВА, 5
   ========================================================================== */
.building-card-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .building-card-layout {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 50px;
    align-items: center;
  }
}

.record-badge {
  display: inline-block;
  background: rgba(255, 94, 0, 0.15);
  border: 1px solid var(--rt-orange);
  color: var(--rt-orange);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.building-p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.services-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-box {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.service-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.service-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.service-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.building-art-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0E1626;
  display: flex;
  flex-direction: column;
}

.building-real-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.building-caption {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(10, 16, 33, 0.95);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

/* ==========================================================================
   СВЯЗЬ 2026 ГОДА
   ========================================================================== */
.stats-2026-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 860px) {
  .stats-2026-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card-2026 {
  background: linear-gradient(135deg, rgba(20, 32, 60, 0.7) 0%, rgba(10, 16, 33, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card-2026:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-val-2026 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--rt-cyan);
  margin-bottom: 10px;
}

.stat-lbl-2026 {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   ПРИВЕТСТВИЕ ДИРЕКТОРА
   ========================================================================== */
.director-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .director-card {
    flex-direction: row;
    text-align: left;
    padding: 48px;
  }
}

.director-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.director-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.director-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rt-orange);
  background: rgba(255, 94, 0, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.director-quote {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
}

.director-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.director-title {
  font-size: 0.88rem;
  color: var(--rt-cyan);
}

/* ==========================================================================
   ФОРМЫ ЗАПИСИ И ОТЗЫВОВ
   ========================================================================== */
.forms-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 860px) {
  .forms-split-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .form-card {
    padding: 24px 16px;
  }
}

.form-card-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 500px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(10, 16, 33, 0.8);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--rt-orange);
}

.rules-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.rules-title {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--rt-orange);
}

.rules-list {
  padding-left: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   ПОДВАЛ (FOOTER)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #060A14;
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.4fr 1.2fr 1fr;
  }
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 14px 0;
  max-width: 340px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contacts a {
  color: var(--rt-cyan);
  text-decoration: none;
}

.footer-contacts a:hover {
  text-decoration: underline;
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.badge-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-tech span {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО 360° ОСМОТРА ЭКСПОНАТА
   Адаптивность: на мобилках работает как Bottom Sheet
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* На мобильных устройствах — Bottom Sheet */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 94, 0, 0.3);
  border-color: var(--rt-orange);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .modal-body-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Колонка просмотрщика */
.modal-viewer-col {
  background: #060B17;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 480px;
  height: 100%;
  border-right: 1px solid var(--border-subtle);
}

.viewer-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-360-canvas {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  cursor: grab;
  touch-action: none;
}

.hidden {
  display: none !important;
}

.viewer-360-canvas:active {
  cursor: grabbing;
}

.modal-video-player {
  width: 100%;
  height: 100%;
  min-height: 460px;
  max-height: 75vh;
  object-fit: contain;
  background: #000000;
  border-radius: var(--radius-sm);
  display: block;
}

.modal-static-img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  max-height: 75vh;
  object-fit: contain;
  background: #060B17;
  display: block;
}

.viewer-top-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  justify-content: center;
}

.interaction-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.viewer-tools-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(14, 22, 43, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  max-width: 90%;
}

.viewer-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.viewer-tool-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.viewer-tool-btn.active {
  color: var(--rt-cyan);
  background: rgba(0, 194, 255, 0.15);
}

/* Колонка описания экспоната */
.modal-info-col {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exhibit-pill {
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 94, 0, 0.15);
  border: 1px solid var(--rt-orange);
  color: var(--rt-orange);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.era-pill {
  font-size: 0.75rem;
  color: var(--rt-cyan);
  background: rgba(0, 194, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.modal-exhibit-title {
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Аудиогид карточка */
.audio-guide-card {
  background: rgba(10, 16, 33, 0.8);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audio-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 194, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-meta {
  display: flex;
  flex-direction: column;
}

.audio-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.audio-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.audio-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.audio-seek-slider {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  accent-color: var(--rt-orange);
  cursor: pointer;
  outline: none;
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.audio-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rt-purple) 0%, #5716C4 100%);
  border: none;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.audio-play-btn:hover {
  background: #6620CE;
}

.block-heading {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.full-desc-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.facts-list {
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-actions-row {
  margin-top: 10px;
}

/* ==========================================================================
   МОБИЛЬНАЯ НИЖНЯЯ ПАНЕЛЬ (BOTTOM BAR)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    height: 64px;
    background: rgba(8, 13, 26, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    z-index: 150;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
  }

  .bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 10px;
    flex: 1;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
  }

  .bottom-bar-item:hover,
  .bottom-bar-item.active {
    color: var(--rt-cyan);
  }

  .bottom-bar-item svg {
    transition: transform 0.2s ease;
  }

  .bottom-bar-item.active svg {
    transform: scale(1.15);
  }
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--rt-cyan);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 300;
  max-width: 420px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.app-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
