/* Шрифты — самоxост из файлов, присланных Елизаветой (не Google Fonts CDN) */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/Montserrat-Bold.woff") format("woff"),
       url("/fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("/fonts/geologica/Geologica-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("/fonts/geologica/Geologica-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Палитра подтверждена Артёмом 22.07.2026: кремовый фон + нейтральный серый + жёлтый
     только для акцентов/кнопок/лого (бренд-цвет «Циркуля» из официального гайдлайна) */
  --color-bg: #f3efe6;
  --color-bg-raised: #fbfbf9;
  --color-text: #2e2e2e;
  --color-muted: #6f6f6f;
  --color-border: #d9d9d9;
  --color-accent: #f6be00;
  --color-accent-text: #2e2e2e;
  --font-body: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Montserrat", var(--font-body);
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1, h2 {
  text-align: center;
}

.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.site-header {
  position: relative;
  justify-content: center;
}

.site-footer {
  justify-content: space-between;
}

.site-footer {
  border-bottom: none;
  border-top: 1px solid var(--color-border);
  flex-direction: column;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

.logo img {
  height: 40px;
  width: auto;
  border-radius: var(--radius);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.3rem;
  text-decoration: none;
  color: inherit;
}

.menu-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 101;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-accent-text);
  padding: 0;
}

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(300px, 85vw);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 4rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 100;
}

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

.nav-drawer a {
  text-decoration: none;
  font-size: 1.05rem;
  color: inherit;
}

.nav-drawer a:hover {
  color: var(--color-accent);
}

.nav-drawer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0;
}

.nav-drawer .socials {
  margin-top: auto;
  gap: 1rem;
}

.nav-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-drawer-overlay {
    transition: none;
  }
}

.socials a {
  text-decoration: none;
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: 5rem 1rem;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
  z-index: -1;
}

.hero h1, .hero p {
  color: #fff;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.hero .btn-outline {
  background: rgba(20, 16, 12, 0.4);
  color: #fff;
  border-color: #fff;
}

.halls-grid, .equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.halls-carousel {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}

.halls-carousel::-webkit-scrollbar {
  display: none;
}

.halls-carousel .hall-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.halls-carousel-full .hall-card {
  flex-basis: 320px;
}

/* Полноэкранный слайдер залов на Главной (стрелки + точки, без скролла мышью) */
.halls-slider {
  position: relative;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.halls-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.hall-slide {
  flex: 0 0 100%;
  min-height: 65vh;
  background-size: cover;
  background-position: center;
  background-color: #e6ddd0;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  position: relative;
  isolation: isolate;
}

.hall-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  z-index: -1;
}

.hall-slide-content {
  max-width: 46ch;
  color: #fff;
}

.hall-slide-content h3 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.hall-slide-content h3 a {
  color: inherit;
  text-decoration: none;
}

.hall-slide-content p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-arrow.prev {
  left: 0.75rem;
}

.slider-arrow.next {
  right: 0.75rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--color-accent);
}

.hall-card, .equipment-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  background: var(--color-bg-raised);
}

.hall-img-placeholder {
  aspect-ratio: 4 / 3;
  background: #e6ddd0;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hall-card img,
.equipment-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.hall-card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hall-limit, .hall-price, .hall-hours {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.hall-description {
  text-align: left;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.hall-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hall-features li:before {
  content: "— ";
}

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

.section-intro {
  color: var(--color-muted);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.rent-rules .rule {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.rent-rules summary {
  cursor: pointer;
  font-weight: 600;
}

.booking {
  text-align: center;
  padding: 2rem 0;
}

.booking-alt {
  margin-top: 2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  main { padding: 1.25rem; }

  .hero { padding: 3rem 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .hall-slide { padding: 1.5rem; min-height: 55vh; }
  .hall-slide-content { max-width: 100%; }

  .slider-arrow { width: 2.25rem; height: 2.25rem; font-size: 1.2rem; }
  .slider-arrow.prev { left: 0.5rem; }
  .slider-arrow.next { right: 0.5rem; }

  .menu-toggle { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
}

/* Бегущая строка-анонс */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: 0.4rem 0;
}

.ticker-track {
  display: inline-flex;
  gap: 4rem;
  animation: ticker-scroll 18s linear infinite;
}

.ticker-track span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-right: 4rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    white-space: normal;
  }
}

/* Хиро на всю высоту экрана + быстрая навигация по разделам Главной */
.hero--full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Карусели с перетаскиванием */
.drag-scroll {
  cursor: grab;
  user-select: none;
}

.drag-scroll.dragging {
  cursor: grabbing;
}

.drag-scroll img {
  -webkit-user-drag: none;
}

/* Гримёрное место / Оборудование — тизеры на Главной */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.teaser-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--color-bg-raised);
}

.teaser-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.equipment-category {
  color: var(--color-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}

/* Дополнительные услуги / Акции */
.extra-grid, .promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.extra-card, .promo-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--color-bg-raised);
  text-align: center;
}

.extra-card img, .promo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* Снято у нас */
.community-carousel {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}

.community-carousel::-webkit-scrollbar {
  display: none;
}

.community-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.community-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
}

.community-card p {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0.4rem 0 0;
}

/* Контакты + карта */
.contacts-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.contacts-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .contacts-block { grid-template-columns: 1fr; }
}

/* Страница отдельного зала — галерея как слайдер */
.gallery-slider {
  margin-bottom: 1.5rem;
}

.gallery-slide {
  flex: 0 0 100%;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* Встроенный календарь бронирования (Cue Business в iframe) */
.booking-embed {
  margin-top: 2.5rem;
}

.booking-iframe-wrap {
  margin-top: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.booking-iframe-wrap iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
}

.booking-fallback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.hall-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.hall-detail-meta .meta-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--color-bg-raised);
}

.hall-detail-meta .meta-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
}

.hall-detail h3 {
  text-align: center;
}

.hall-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

/* Плавающая кнопка "Забронировать онлайн" */
.floating-book {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
  .floating-book {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
}

/* Расширенный футер */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
  width: 100%;
}

.footer-about .logo { justify-content: flex-start; margin-bottom: 0.75rem; }
.footer-about .socials { justify-content: flex-start; }

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0 0 0.25rem;
}
.footer-col a { font-size: 0.9rem; text-decoration: none; }

.footer-copy {
  margin-top: 1.5rem;
  width: 100%;
}

@media (max-width: 720px) {
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-about .logo, .footer-about .socials { justify-content: center; }
}
