
/* --- Вкладки услуг --- */
.pill-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 26px 0 32px;
}
.pill-tabs .pill {
  background: #fff;
  border: 2px solid var(--primary-2);
  border-radius: 22px;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: background .18s, color .18s, border .18s;
  outline: none;
}
.pill-tabs .pill.active,
.pill-tabs .pill:focus {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: var(--primary);
}
@media (max-width: 680px) {
  .pill-tabs {
    gap: 8px;
    justify-content: space-between;
  }
  .pill-tabs .pill {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}
.tab-panel {
  margin-top: 24px;
}
.tab-panel[hidden] {
  display: none !important;
}

/* --- Карточки предложений --- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
  margin: 0 auto 24px;
}
.offer-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s;
}
.offer-card:hover {
  transform: translateY(-4px) scale(1.025);
}
.offer-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid #f3f0ff;
}
.offer-body {
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.offer-body h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.25rem;
}
.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.offer-list li {
  margin: 0 0 7px 0;
  padding-left: 1.2em;
  position: relative;
}
.offer-list li::before {
  content: "•";
  color: var(--primary-2);
  position: absolute;
  left: 0;
}
.offer-prices {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}
.price-box {
  background: #f3f0ff;
  border-radius: 9px;
  padding: 6px 16px;
  min-width: 92px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.2);
}

.price-box:hover {
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35);
}
.price-label {
  font-size: 0.92rem;
  color: var(--muted);
}
.price-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.11rem;
}
.offer-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.offer-actions .btn {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* --- Аренда --- */
/* --- Аренда --- */
.rent-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 16px;
  font-size: 1.07rem;
  border-radius: 12px;
  padding: 18px 22px;
}

/* --- Шоу-программы --- */
.show-list {
  list-style: disc inside;
  margin: 0 0 18px 0;
  padding: 18px 22px 18px 36px;
  color: var(--ink);
  font-size: 1.05rem;
  border-radius: 12px;
}
.shows-gallery {
  margin-top: 16px;
}

/* --- Модальные окна --- */
.modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(60, 52, 92, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.22s;
}
.modal[hidden] {
  display: none !important;
}
.modal-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(60,52,92,0.13);
  padding: 34px 28px 28px;
  max-width: 370px;
  width: 96vw;
  position: relative;
}
.modal-dialog h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 1.2rem;
}
.modal-dialog ul {
  margin: 0 0 18px 0;
  padding: 0 0 0 18px;
  font-size: 1.01rem;
  color: var(--ink);
}


/* --- Универсальное правило для списков без маркера --- */
li.no-bullet {
  list-style: none;
  padding-left: 0;
}
li.no-bullet::marker {
  content: '';
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 50%;
  transition: background .18s;
}
.modal-close:hover {
  background: #f3f0ff;
  color: var(--primary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .offer-grid { grid-template-columns: 1fr; }
  .modal-dialog { max-width: 98vw; }
}

/* Перенесённый текст над каруселью */
.hero-text{
  text-align:center;
  margin-bottom: 24px;
}

/* Кнопки в центре карусели */
.carousel-buttons{
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (max-width: 680px) {
  .hero-carousel .carousel-buttons {
    bottom: 10px;
    gap: 8px;
  }

  .hero-carousel .carousel-buttons .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    box-shadow: none;
  }
}

.hero-carousel:hover .carousel-buttons{
  opacity: 1;
}

/* Кнопки немного уменьшенные */
.carousel-buttons .btn{
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

/* Увеличить высоту фото, чтобы влезала голова Спайди :) */
.carousel-slide img{
  height: 550px;
  object-fit: cover;
}

@media (max-width: 680px){
  .carousel-slide img{ height: 320px; }
  .carousel-buttons{
    bottom: 16px;
    gap: 10px;
  }
  .carousel-buttons .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}
:root{
  --bg:#fff8f2;
  --ink:#2f2a3a;
  --muted:#6f6b78;
  --primary:#6c5ce7;
  --primary-2:#a29bfe;
  --card:#ffffffcc;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color:var(--ink);
  /* background:
    radial-gradient(1000px 450px at 85% -20%, #ffdfe7 0%, transparent 60%),
    radial-gradient(800px 400px at -10% 30%, #ffe6a7 0%, transparent 55%),
    var(--bg); */
  background: url("assets/main_bg.jpg") no-repeat center center fixed;
  background-size: cover;
  line-height:1.6;
}

h1,h2,h3{font-family:'Neucha', cursive; line-height:1.15; margin:0 0 .5rem}
h1{font-size: clamp(32px, 6vw, 56px)}
h2{font-size: clamp(28px, 4vw, 40px); text-align:center; margin-bottom:1.2rem}
h3{font-size: clamp(22px, 3vw, 28px)}
.container{width: min(1100px, 92vw); margin: 0 auto}
.container.narrow{width: min(960px, 92vw)}

.contact-bar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.section{padding: 72px 0}
.section.alt{}

.lead{font-size: clamp(16px,2.2vw,20px); color:var(--muted); max-width: 800px}

/* Top Bar */
.top-bar{
  position: relative;
  width: 100%;
  height: 310px; /* full width; height so whole moon fits */
  overflow: hidden;
  background: var(--bg);
}
/* Новый блок контактов под хедером */
.contact-bar{
  background: transparent;          /* фон страницы */
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 10px 0 8px;
}
.contact-row1{
  display:flex;
  align-items:center;
  justify-content: space-between;   /* адрес слева, иконки справа */
  gap: 12px;
  width: 100%;
}

/* Телефон ровно под иконками */
.contact-bar .top-phone {
  text-align: right;
  margin: 2px 0 0;
  font-weight: 700;
  position: relative;
  top: 0;
  right: 0;
  display: inline-block;
}
.contact-row1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
/* --------- Новый стиль для .contact-bar .top-social и .top-phone --------- */
.contact-bar .top-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Сделать иконки чёрными, как раньше */
.contact-bar .top-social .ico {
  color: var(--ink);
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
}

.contact-bar .top-social .ico:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.contact-bar .top-phone {
  margin-top: 4px;
  font-weight: 700;
  text-align: right;
}

/* Чёрный текст, как в меню */
.contact-bar .top-address a,
.contact-bar .top-phone a{
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.contact-bar .top-address a:hover,
.contact-bar .top-phone a:hover{
  text-decoration: underline;
}

/* Мобильная адаптация */
@media (max-width:680px){
  .contact-row1 {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 6px;
  }
  .contact-bar .top-address,
  .contact-bar .top-phone,
  .contact-bar .top-social {
    text-align: right;
    align-items: flex-end;
    width: 100%;
  }
}
.top-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover; /* show full frame without cropping */
  background: var(--bg); /* side letterbox blends into page */
}
@media (max-width:680px){
  .overlay-row{ gap:6px; font-size:.95rem }
  .top-contact-row{ flex-wrap:wrap; row-gap:6px }
  .dot{ display:none } /* если где-то осталась точка — скрываем */
}
.top-bar-overlay-bottom{
  position:absolute; left:0; right:0; bottom:0;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 70%);
  color:#fff;
}
.overlay-row{
  display:flex;
  flex-direction: column;    /* две строки одна под другой */
  align-items:flex-end;      /* прижать вправо */
  gap:8px;
  text-align:right;
}
.top-contact-row{
  display:flex;
  align-items:center;
  gap:12px;                  /* расстояние между иконками и телефоном */
}

.top-social{ display:flex; gap:10px; }

.top-social .ico{
  display:inline-flex;
  width:22px;
  height:22px;
  color:#fff;                /* белые SVG-иконки */
  opacity:.95;
  transition:opacity .2s ease, transform .2s ease;
}
.top-social .ico:hover{
  opacity:1;
  transform: translateY(-1px);
}

.top-phone a,
.top-address a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.top-phone a:hover,
.top-address a:hover{ text-decoration:underline; }
@media (max-width:680px){
  .overlay-row{ flex-wrap:wrap; gap:8px; font-size:.95rem }
  .dot{ display:none }
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.main-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.main-header .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
  gap: 2px;
}
.brand-text {
  font-size: 0.9rem;
  color: var(--muted);
}
.main-header .brand img {
  width: 60px;
  height: 60px;
  border-radius: 10%;
  object-fit: cover;
  margin-bottom: 2px;
}
.nav a {
  margin: 0 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.nav a:hover {
  color: var(--primary);
}

/* --- Двухэтажная шапка --- */
.main-header .header-inner.two-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.main-header .brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.main-header .brand {
  flex-direction: column;
  align-items: center;
}

.main-header .brand img {
  width: 72px;
  height: 72px;
  border-radius: 12%;
  margin-bottom: 4px;
}

.brand-text {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* выровняли по вертикали */
}

@media (max-width: 680px) {
  .main-header .header-inner.two-line {
    gap: 6px;
  }
  .nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* Sticky state for Main Header */
.main-header.stuck{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 1000;
}

.btn{
  display:inline-block;
  padding:14px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  border:2px solid transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn.block{display:block; text-align:center; width:100%}
.btn.small{padding:10px 12px; font-size:.9rem}
.btn-primary{background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff}
.btn-primary:hover{filter:brightness(1.05)}
.btn-outline{background:#fff; border-color: var(--primary); color:var(--primary)}
.btn-outline:hover{background: #f3f0ff}
.btn-small{font-size:.9rem; padding:8px 10px}

/* Hero Carousel */
.hero{
  position:relative;
  padding: 20px 0 72px;
  overflow:hidden;
}
.hero-carousel{
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-slides{
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide{
  min-width: 100%;
  user-select: none;
  pointer-events: none;
  position: relative;
}
.carousel-slide img{
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}
.carousel-controls{
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events:none;
}
.carousel-controls button{
  pointer-events:auto;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.3s;
}
.carousel-controls button:hover{
  background: var(--primary);
  color: #fff;
}

/* Наше пространство (Gallery) */
.gallery-grid{
  display:grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap:14px;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-grid img{
  width:100%; 
  border-radius:12px; 
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery-grid img:hover{
  transform: scale(1.05);
}

/* Пакеты */
.packages-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
  max-width: 1100px;
  margin: 0 auto;
}
.package-card{
  background: var(--card);
  border:1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.package-card:hover{
  transform: translateY(-6px);
}
.package-card h3{
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary);
}
.package-card ul{
  list-style: none;
  padding-left: 1.1rem;
  margin: 0 0 12px;
}
.package-card ul li{
  margin: 6px 0;
  position: relative;
}
.package-card ul li::before{
  content: "✦";
  color: var(--primary);
  position: absolute;
  left: -1.1rem;
}

/* Этапы праздника */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.step{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.3s ease;
}
.step:hover{
  transform: translateY(-6px);
}
.step-number{
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.step-title{
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc{
  color: var(--muted);
  font-size: 0.9rem;
}

/* Отзывы */
.testimonials{
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.testimonial-slide{
  display: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
}
.testimonial-slide.active{
  display: block;
}
.testimonial-text{
  font-style: italic;
  margin-bottom: 12px;
  color: var(--ink);
}
.testimonial-author{
  font-weight: 700;
  color: var(--primary);
}

/* FAQ */
.faq{
  max-width: 800px;
  margin: 0 auto;
}
.faq-item{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-question{
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  position: relative;
  user-select: none;
  color: var(--primary);
}
.faq-question::after{
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after{
  content: "-";
}
.faq-answer{
  max-height: 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer{
  max-height: 200px;
  padding: 12px 20px;
}

/* Контакты */
.contact-section{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px){
  .contact-section{
    grid-template-columns: 1fr;
  }
}
.contact-info{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.contact-info h3{
  margin-bottom: 16px;
  color: var(--primary);
}
.contact-info p{
  margin: 8px 0;
  color: var(--ink);
  font-weight: 600;
}
.map-container{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
}

/* Animations */
@keyframes fadeInUp{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.section{
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Responsive */
@media (max-width: 1100px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr) }
  .packages-grid{ grid-template-columns: repeat(2, 1fr) }
  .steps-grid{ grid-template-columns: repeat(3, 1fr) }
}
@media (max-width: 680px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr) }
  .packages-grid{ grid-template-columns: 1fr }
  .steps-grid{ grid-template-columns: 1fr }
  .hero-carousel img{
    height: 240px;
  }
  .contact-bar .top-phone{
    text-align:left;
  }
}
@media (max-width: 480px){
  .nav a{margin: 0 6px; font-size: 0.9rem;}
  .btn{
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .site-header .header-inner{
    flex-direction: column;
    gap: 12px;
  }
  .hero{
    padding: 72px 0 60px;
  }
}

/* Responsive for Top Bar and Main Header */
@media (max-width: 480px){
  .top-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .top-bar .logo-small {
    margin-right: 0;
  }
  .main-header .header-inner {
    flex-direction: column;
    gap: 12px;
  }
}

/* Preserve old styles for other elements */
.hero h1 span{color:var(--primary)}
.hero .cta{display:flex; gap:12px; margin-top:16px}
.hero .floating-stars::before,
.hero .floating-stars::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(4px 4px at 10% 20%, #ffd166 90%, transparent),
    radial-gradient(3px 3px at 30% 80%, #ffd166 90%, transparent),
    radial-gradient(3px 3px at 70% 15%, #ffd166 90%, transparent),
    radial-gradient(4px 4px at 85% 60%, #ffd166 90%, transparent),
    radial-gradient(3px 3px at 55% 40%, #ffd166 90%, transparent);
  animation: twinkle 6s linear infinite;
  opacity:.9;
  pointer-events:none;
}
@keyframes twinkle{
  0%,100%{opacity:.6} 50%{opacity:1}
}


.hero-carousel{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.carousel-slides{
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide{
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  user-select: none;
}
.carousel-slide img{
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}
.carousel-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.carousel-nav.prev{ left: 10px; }
.carousel-nav.next{ right: 10px; }
.carousel-dots{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots button{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.6);
  cursor: pointer;
}
.carousel-dots button.active{ background: #fff; }
@media (max-width: 680px){
  .carousel-slide img{ height: 240px; }
}
html, body {
  overflow-x: hidden; /* убираем горизонтальный скролл */
}

/* Наше пространство — кружочки и выравнивание */
.space-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  justify-items: center;
}

.space-features .feature {
  text-align: center;
  max-width: 220px;
}
.space-features .feature img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border: 3px solid #fff;
  background: #fff;
}

/* Карусель кружков в секции "Наше пространство" */
.space-features-carousel {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.space-features-carousel .carousel-slides {
  display: flex;
  transition: transform 0.6s ease;
}
/* --- Исправленный стиль для .space-features-carousel .carousel-slide --- */
.space-features-carousel .carousel-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

@media (max-width: 680px) {
  .space-features-carousel .carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 0;
  }
  .space-features-carousel .feature {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* --- Новый стиль для .space-features-carousel .feature --- */
.space-features-carousel .feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
}
.space-features-carousel .feature img {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  background: #fff;
}
.space-features-carousel .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.space-features-carousel .carousel-nav.prev { left: 10px; }
.space-features-carousel .carousel-nav.next { right: 10px; }
.space-features-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.space-features-carousel .carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.2);
  cursor: pointer;
}
.space-features-carousel .carousel-dots button.active {
  background: var(--primary);
}
/* Ровное выравнивание пунктов меню и кнопки в шапке */
.main-header .nav a,
.main-header .nav .btn {
  display: inline-flex;
  align-items: center; /* вертикально внутри элемента */
  line-height: 1;      /* убираем лишний зазор снизу у текста */
}

.offer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.center-card {
  flex: 1 1 100%;
  max-width: 420px;
  margin: 0 auto;
}

.offer-actions .btn-primary {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}
/* --- Раздел "Как всё происходит?" — змейкой --- */
.process-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 28px 40px;
  align-items: start;
  margin-top: 32px;
}

.stage{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  transition: transform .25s ease;
}
.stage:hover{ transform: translateY(-4px); }

.stage-number{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-weight:700;
  display:inline-block;
  border-radius:50%;
  width:38px; height:38px;
  text-align:center; line-height:38px;
  font-size:1.1rem;
  margin-bottom:8px;
}
.stage h3{ margin:4px 0 6px; color:var(--primary); font-size:1.15rem; }
.stage p{  margin:0; color:var(--ink); font-size:.98rem; }

.process-grid .stage:nth-child(odd){  justify-self: start; }
.process-grid .stage:nth-child(even){ justify-self: end;  }

@media (max-width: 860px){
  .process-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .process-grid .stage{
    justify-self: stretch;
  }
}

/* Карусель отзывов */
#reviews .carousel {
  position: relative;
  overflow: hidden;
}
#reviews .carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}
#reviews .carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
#reviews .review {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  font-size: 0.95rem;
}
#reviews .review footer {
  margin-top: 8px;
  font-weight: 700;
  color: var(--primary);
}
#reviews .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
#reviews .carousel-nav.prev { left: 10px; }
#reviews .carousel-nav.next { right: 10px; }
#reviews .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
#reviews .carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.2);
  cursor: pointer;
}
#reviews .carousel-dots button.active {
  background: var(--primary);
}
/* --- Улучшенный FAQ с hover эффектом --- */
#faq details {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

#faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  list-style: none;
  outline: none;
  transition: background 0.25s ease, color 0.25s ease;
}

#faq summary::marker {
  display: none;
}

/* --- FAQ summary icon and answer styling --- */
#faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#faq summary:hover {
  background: #f3f0ff;
  color: var(--primary-2);
}

#faq details:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

#faq p {
  padding: 18px 22px 22px 22px;
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 680px) {
  #faq summary {
    padding: 16px 18px;
    font-size: 0.98rem;
  }
  #faq p {
    padding: 0 18px 16px 18px;
    font-size: 0.92rem;
  }
}
/* --- Новый раздел "Контакты" с картой --- */
.contact-map-section {
  position: relative;
  padding: 0;
}
.map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 24px 26px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-width: 300px;
  text-align: center;
}
.contact-card h3 {
  font-family: 'Neucha', cursive;
  font-size: 1.6rem;
  margin: 6px 0 10px;
  color: #fff;
}
.contact-card .contact-logo {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.contact-phone a {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}
.contact-phone a:hover {
  text-decoration: underline;
}
.contact-hours {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 12px;
}

.contact-icons svg {
  width: 24px;
  height: 24px;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-icons svg:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.contact-address {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.contact-address a {
  color: #fff;
  text-decoration: none;
}
.contact-address a:hover {
  text-decoration: underline;
}
.contact-card .btn {
  width: 100%;
  background: #fff;
  color: var(--primary);
  border: none;
  font-weight: 700;
}
.contact-card .btn:hover {
  background: #f3f0ff;
}
@media (max-width: 900px) {
  .contact-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 20px auto;
    text-align: center;
  }
  .map-wrapper {
    height: 600px;
  }
}
/* --- Новый стиль секции "Бронирование" --- */
#booking {
  background: radial-gradient(circle at 50% 0%, var(--primary-2) 0%, #fff 70%);
  position: relative;
  overflow: hidden;
}
#booking::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 120%, #ffd6ff 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
#booking h2 {
  color: var(--primary);
  text-align: center;
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 12px;
}
#booking .muted {
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 28px;
}
#booking .form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 40px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
#booking .form-row {
  margin-bottom: 16px;
}
#booking label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
#booking input,
#booking textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e8e5ff;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#booking input:focus,
#booking textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,92,231,0.15);
  outline: none;
}
#booking button.btn {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#booking button.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108,92,231,0.25);
}
#booking .tiny {
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.85rem;
}
@media (max-width: 680px) {
  #booking .form {
    padding: 24px 20px;
  }
}
/* --- Коррекция якорей: чтобы заголовки не скрывались под шапкой --- */
section {
  scroll-margin-top: 100px; /* регулирует отступ при переходе по якорям */
}
/* --- Эффект фокусного слайда в секции "Наше пространство" --- */
.space-features-carousel .carousel-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.space-features-carousel .carousel-slide .feature {
  transform: scale(0.9);
  opacity: 0.7;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.space-features-carousel .carousel-slide.active .feature {
  transform: scale(1);
  opacity: 1;
}
/* --- "Наше пространство" — чистое и парящее оформление карточек --- */
.space-features-carousel .carousel-slide {
  align-items: stretch;
}

.space-features-carousel .feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  background: var(--card); /* фон как у остальных карточек */
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); /* лёгкая тень для "парящего" эффекта */
  border-radius: 20px;
  padding: 0 12px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.space-features-carousel .feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.space-features-carousel .feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  margin-top: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.space-features-carousel .feature h3 {
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.space-features-carousel .feature p {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}
/* --- Исправление отступов и фона под точками в "Наше пространство" --- */
.space-features-carousel .carousel-dots {
  margin-top: 28px; /* увеличиваем отступ сверху */
  margin-bottom: 10px; /* небольшой нижний отступ */
  position: relative;
  z-index: 2;
}

.space-features-carousel {
  background: transparent; /* убираем возможный фон */
  box-shadow: none; /* убираем линию-отсечку снизу */
  padding-bottom: 20px; /* добавляем немного воздуха */
}

.space-features-carousel .carousel-slide {
  background: transparent;
  box-shadow: none;
}
/* Разрешаем клик по картинкам в секции "Наше пространство" */
.space-features-carousel .feature img {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* Чтобы слайды не блокировали клики по контенту */
.space-features-carousel .carousel-slide {
  pointer-events: none;
}

.space-features-carousel .carousel-slide .feature {
  pointer-events: auto;
}
/* --- Большие модалки с изображениями --- */

/* --- Универсальное поведение для модалок с изображениями (фикс перекрытия и центрирование) --- */
.modal:has(img) {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

.modal:has(img) .modal-dialog {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
  width: auto;
  height: auto;
}

.modal:has(img) img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.modal:has(img) .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.8rem;
  border-radius: 50%;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal:has(img) .modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* --- Звёзды над отзывами --- */
#reviews .review::before {
  content: "★★★★★";
  display: block;
  margin-bottom: 10px;
  color: #FFD700; /* ярко-жёлтые звёзды */
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: left;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-input select {
  padding: 10px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}
.phone-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.agree-row {
  display: flex;
  justify-content: flex-start !important; /* <--- ДОБАВЬТЕ ЭТО */
  text-align: left !important; /* <--- И ЭТО НА ВСЯКИЙ СЛУЧАЙ */
  margin-bottom: 16px;
}

.agree-label {
  display: flex; /* Ставит чекбокс и текст в один ряд */
  align-items: flex-start; /* Выравнивает чекбокс по верху текста */
  gap: 10px; /* Расстояние между чекбоксом и текстом */
  cursor: pointer; /* Позволяет кликать по тексту для активации чекбокса */
}

.agree-label input[type="checkbox"] {
  flex-shrink: 0; /* Запрещает чекбоксу сжиматься */
  width: 18px;
  height: 18px;
  margin-top: 2px; /* Небольшая коррекция для идеального выравнивания по вертикали */
  accent-color: var(--primary);
}

.agree-label span {
  /* Стили для текста рядом с чекбоксом */
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}

.agree-label a {
  color: var(--primary);
  text-decoration: none;
}

.agree-label a:hover {
  text-decoration: underline;
}
/* --- Полупрозрачный слой поверх фона сайта --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.0); /* регулируй прозрачность: 0.4–0.8 */
  z-index: -1;
  pointer-events: none;
}
/* --- Секции услуг: аренда и шоу-программы --- */
 .rent-section, .shows-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}

/* Отступ подзаголовка "Аренда пространства" */
.rent-section h3.tab-subtitle {
  margin-bottom: 16px;
}

/* Уточнение: чтобы контент внутри секций не прилипал к краям */
.rent-section > *, .shows-section > * {
  margin-top: 0;
  margin-bottom: 0;
}
/* Hand cursor for all interactive elements */
a[href], button, [role="button"], .btn, .carousel-nav, .carousel-dots button, .pill, [data-open], [data-close] {
  cursor: pointer;
}
. 
/* --- Исправление бесконечного скролла и выравнивание телефона на мобильных --- */
@media (max-width: 680px) {
  .top-bar {
    display: none !important;
    position: static !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .contact-row1 {
    flex-direction: column;
    align-items: flex-end !important;
    text-align: right !important;
  }

  .contact-bar .top-address,
  .contact-bar .top-phone,
  .contact-bar .top-social {
    text-align: right !important;
    align-items: flex-end !important;
    width: 100% !important;
  }

  .contact-bar .top-phone {
    display: block !important;
    text-align: right !important;
    align-self: flex-end !important;
    margin-left: auto !important;
  }
}
/* --- Исправление скрытия видео: только на мобильных --- */
@media (max-width: 680px) {
  .top-bar {
    display: none !important;
    position: static !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}
@media (max-width: 680px) {
  .carousel-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 14px;
    min-width: 120px;
  }
}
@media (max-width: 680px) {
  /* Уменьшаем поле выбора страны в форме */
  #booking .phone-input {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  #booking #country-code {
    width: 90px;
    min-width: 90px;
    font-size: 0.85rem;
    padding: 6px 8px;
    text-align: center;
  }
  #booking #phone {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}
@media (max-width: 680px) {
  /* Перестраиваем порядок элементов в секции Контакты */
  .contact-map-section {
    display: flex;
    flex-direction: column;
  }

  /* Сдвигаем фиолетовый блок наверх */
  .contact-map-section .contact-card {
    order: -1;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 20px auto 16px;
    max-width: 340px;
    z-index: 5;
  }

  /* Карта идёт ниже */
  .contact-map-section .map-wrapper {
    order: 1;
  }
}
@media (max-width: 680px) {
  /* В мобильной версии поднимаем фиолетовый блок контактов над картой */
  .contact-map-section {
    display: flex;
    flex-direction: column;
  }

  .contact-map-section .contact-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 20px auto 16px !important;
    order: -1 !important;
    z-index: 5 !important;
  }

  .contact-map-section .map-wrapper {
    order: 1;
  }
}