/* Общие стили */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
}

/* Классы для разных страниц */
body.home-page {
  display: block; /* обычный поток для главной */
}

body.scene-page {
  display: flex;
  flex-direction: column;
  height: 100vh; /* чтобы сцена заняла всё свободное место */
}

/* Шапка */
header {
  height: 70px;
  background: #0b1c2d;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 20px;
  position: relative;
  z-index: 10;
}

header h1 {
  font-size: 20px;
  margin: 0;
  font-weight: normal;
}

.back-btn {
  color: white;
  text-decoration: none;
  background: #1e3a5f;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
}

.back-btn:hover {
  background: #2a4d7a;
}

/* Основной контент на главной */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Hero-блок */
.hero h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #555;
  max-width: 700px;
}

/* Сетка карточек аудиторий на главной */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.room-card {
  background: white;
  border-radius: 6px;
  padding: 0; /* убираем внутренние отступы */
  height: 80px; /* фиксированная высота кнопки */
  display: flex;
  justify-content: center; /* по горизонтали */
  align-items: center;     /* по вертикали */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.room-card h3 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 8px;
}

.room-card p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

/* Панорама на страницах аудиторий */
body.scene-page #scene-wrapper {
  flex: 1;
  width: 100%;
  height: calc(100vh - 70px - 50px);
  position: relative;
  z-index: 0;
}

body.scene-page #scene-wrapper a-scene {
  width: 100%;
  height: 100%;
  display: block;
}

/* Footer */
body.home-page footer {
  background: #f4f6f8;
  color: #222;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

body.scene-page footer {
  background: #0b1c2d;
  color: white;
  height: 50px;
  line-height: 50px;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Панель с инфо для аудиторий */
#infoBox {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 16px;
  max-width: 400px;
  z-index: 20;
  text-align: center;
  line-height: 1.4;
}

#infoBox button {
  margin-top: 15px;
  padding: 6px 12px;
  background: #444;
  color: white;
  border: none;
  cursor: pointer;
}

.a-enter-vr-button {
  display: none !important;
}

.building-title {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 26px;
  color: #0b1c2d;
}