@import url(fonts.css);

/* ======================= ПЕРЕМЕННЫЕ ======================= */
:root{
  --brand:#6d35e8;
  --brand-2:#8b5cf6;
  --dark:#14111f;
  --text:#151327;
  --muted:#6f6a7f;
  --line:#e9e4f3;
  --bg:#f7f5fb;
  --soft:#f3edff;
  --green:#17a34a;
  --green-bg:#dcfce7;
  --yellow:#ffb326;
  --accent:#5b22f0;
  --accent-dark:#4213c8;
  --card:#ffffff;
  --radius:28px;
}

/* ======================= БАЗОВЫЕ СТИЛИ ======================= */
body{
  margin:0;
  font-family:"GolosText", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Exo 2", "Segoe UI", sans-serif;
  color:var(--dark);
  background:
    radial-gradient(circle at 10% 0%, rgba(109,53,232,.12), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255,216,77,.16), transparent 30%),
    var(--bg);
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.page{
  max-width:1440px;
  margin:24px auto;
  padding:28px 16px 60px;
}
.page-fullwidth{
  margin:24px auto;
  padding:28px 16px 60px;
}

/* ======================= ШАПКА ======================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(18px);
  background:rgba(255,255,255,.82);
  border-bottom:1px solid var(--line);
}

.brand-logo{
  width:60px;
  height:60px;
  border-radius:14px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

/* Выпадающее меню */
.dropdown-menu {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(31, 23, 74, 0.12);
  padding: 8px;
  min-width: 220px;
  margin-top: 8px;
}

.dropdown-item {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--soft);
  color: var(--brand);
  text-decoration: none;
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--brand);
  color: #fff;
}

.dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .dropdown-item {
    color: var(--text);
    padding: 10px 0;
    border-radius: 0;
  }
  .dropdown-item:hover {
    background: transparent;
    color: var(--brand);
  }
}

/* ======================= ОБЩИЕ КОМПОНЕНТЫ ======================= */
.event-shell{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 24px 70px rgba(31,23,74,.1);
  overflow:hidden;
}

.gallery{
  position:relative;
  min-height:100%;
  border-right:1px solid var(--line);
  background:#111;
}

.main-photo{
  width:100%;
  height:680px;
  object-fit:cover;
  display:block;
}

.gallery::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.34),transparent 28%,rgba(0,0,0,.48));
  pointer-events:none;
}

.chips{
  position:absolute;
  top:24px;
  left:24px;
  z-index:2;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.chip{
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  font-size:14px;
  font-weight:700;
}

.chip.paid{ background:var(--yellow); }
.chip.open{ background:#bbf7d0; color:#14532d; }

.heart{
  position:absolute;
  top:24px;
  right:24px;
  z-index:2;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.9);
  color:var(--dark);
  font-size:22px;
}

.thumbs{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}

.thumbs img,
.more-photo{
  width:100%;
  height:84px;
  border-radius:16px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.55);
}

.more-photo{
  background:rgba(20,17,31,.78);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:20px;
}

.content{
  padding:38px 42px 34px;
}

.breadcrumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:0.9rem;
  margin-bottom:1.5rem;
  align-items:center;
}

.breadcrumbs a{
  color:var(--brand);
  text-decoration:none;
}

.breadcrumbs a:hover{
  text-decoration:underline;
}

.title{
  font-size:clamp(34px,4vw,54px);
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:900;
  margin:0 0 16px;
}

.lead{
  font-size:18px;
  color:#4d4859;
  line-height:1.65;
  margin-bottom:26px;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:26px 0 32px;
}

.quick-card{
  background:linear-gradient(180deg,#fbfaff,#f5f1ff);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
}

.quick-card i{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:12px;
  color:var(--brand);
  margin-bottom:12px;
  box-shadow:0 8px 18px rgba(109,53,232,.08);
}

.quick-card b{
  display:block;
  font-size:15px;
}

.quick-card span{
  color:var(--muted);
  font-size:13px;
}

.info-list{
  border-top:1px solid var(--line);
}

.info-row{
  display:grid;
  grid-template-columns:210px 1fr;
  gap:24px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
  align-items:start;
}

.info-row .label{
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:center;
}

.info-row .value{
  font-weight:650;
  line-height:1.45;
}

.booking{
  margin:34px 28px 34px 0;
  padding:26px;
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#fbfaff);
  position:sticky;
  top:92px;
  box-shadow:0 16px 44px rgba(31,23,74,.08);
}

.price{
  font-size:44px;
  line-height:1;
  font-weight:900;
  color:var(--brand);
  letter-spacing:-.04em;
}

.countdown{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:14px 0 22px;
}

.countdown div{
  background:var(--soft);
  border-radius:14px;
  padding:10px 4px;
  text-align:center;
}

.countdown b{
  display:block;
  color:var(--brand);
  font-size:22px;
}

.countdown small{
  font-size:11px;
  color:var(--muted);
}

.btn-brand{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  border:0;
  color:#fff;
  font-weight:800;
  border-radius:16px;
  padding:15px 18px;
  box-shadow:0 14px 28px rgba(109,53,232,.24);
}

.btn-soft{
  background:var(--soft);
  color:var(--brand);
  border:1px solid var(--line);
  font-weight:800;
  border-radius:16px;
  padding:14px 18px;
}

.side-list{
  list-style:none;
  margin:22px 0 0;
  padding:0;
}

.side-list li{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.side-list li:last-child{ border-bottom:0; }

.side-list i{
  color:var(--brand);
}

.side-list span{
  display:block;
  color:var(--muted);
  font-size:13px;
}

.status{
  display:inline-block;
  margin-top:4px;
  background:var(--green-bg);
  color:var(--green);
  border-radius:999px;
  padding:4px 10px;
  font-weight:800;
  font-size:13px;
}

.tabs-section{
  padding:0 34px 34px;
  border-top:1px solid var(--line);
}

.nav-tabs{
  border-bottom:1px solid var(--line);
  gap:8px;
  overflow-x:auto;
  flex-wrap:nowrap;
}

.nav-tabs .nav-link{
  border:0;
  color:#4d4859;
  font-weight:750;
  padding:22px 14px;
  white-space:nowrap;
  border-bottom:3px solid transparent;
}

.nav-tabs .nav-link.active{
  color:var(--brand);
  border-bottom-color:var(--brand);
  background:transparent;
}

.tab-panel{
  max-width:960px;
  padding-top:28px;
  font-size:18px;
  line-height:1.7;
}

.included{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:24px;
}

.included-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  background:#fff;
}

.included-card i{
  color:var(--brand);
  font-size:24px;
  margin-bottom:10px;
}

.map-card,
.similar-card{
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  padding:24px;
  box-shadow:0 12px 36px rgba(31,23,74,.05);
}

.fake-map{
  min-height:220px;
  border-radius:18px;
  background:
    linear-gradient(45deg,rgba(109,53,232,.08) 25%,transparent 25%),
    linear-gradient(-45deg,rgba(109,53,232,.08) 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,rgba(109,53,232,.08) 75%),
    linear-gradient(-45deg,transparent 75%,rgba(109,53,232,.08) 75%),
    #f4f0ff;
  background-size:32px 32px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--brand);
  font-weight:900;
  text-align:center;
}

.date-options{
  display:grid;
  gap:10px;
  margin-bottom:18px;
}

.date-option{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
  cursor:pointer;
}

.date-option.active{
  border-color:var(--brand);
  background:var(--soft);
}

/* ======================= КАРТОЧКИ МЕРОПРИЯТИЙ ======================= */
.card-img-wrapper {
  aspect-ratio: 210 / 297; /* точное соотношение А4 (портрет) */
  overflow: hidden;
  background: #f0f0f0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.transition-all { transition: all 0.2s ease; }

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
  transform: translateY(-2px);
}

.card-soft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(32, 25, 80, .06);
}

.muted { color: var(--muted); }

.event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card .card-img-wrapper {
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f0f0f0;
}

.event-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.event-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.event-card .card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--dark);
  transition: color 0.2s;
}

.event-card .card-title:hover {
  color: var(--brand);
}

.event-card .card-text {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.event-card .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  background: var(--soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.event-location {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.age-badge {
  background: var(--yellow);
  color: #2c2100;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ======================= ОСТАЛЬНЫЕ КОМПОНЕНТЫ ======================= */
.hero {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)),
    url("https://images.unsplash.com/photo-1518709268805-4e9042af2176?q=80&w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--yellow);
  color: #2c2100;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
}

.age-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}

.photo-count {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(0,0,0,.72);
  color: #fff;
  border-radius: 14px;
  padding: 9px 14px;
  font-weight: 700;
}

.event-title {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f0eaff;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.tag-yellow {
  background: #fff0cf;
  color: #946000;
}

.tag-blue {
  background: #e9f9ff;
  color: #006e89;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  height: 100%;
  background: #fff;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f0eaff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.btn-accent {
  background: linear-gradient(135deg, #6b2cff, #4d15d9);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 13px 22px;
  font-weight: 800;
}

.btn-accent:hover {
  color: #fff;
  background: linear-gradient(135deg, #5b22f0, #4213c8);
}

.date-card {
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 18px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}

.date-card:hover,
.date-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 34, 240, .12);
}

.session {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
}

.session.soldout {
  opacity: .55;
}

.notice {
  background: #fff7e6;
  border: 1px solid #ffe1a6;
  border-radius: 20px;
  padding: 18px;
}

.side-sticky {
  position: sticky;
  top: 20px;
}

.tab-link {
  border: 0;
  background: transparent;
  padding: 18px 20px;
  font-weight: 800;
  color: var(--muted);
}

.tab-link.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

.gallery-img {
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
}

.empty-state {
  border: 1px dashed #d8d2ef;
  border-radius: 24px;
  background: #fff;
  padding: 32px;
  text-align: center;
}

/* ======================= ФУТЕР ======================= */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0 0 20px;
  color: var(--text);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-contacts i {
  color: var(--brand);
  font-size: 1.1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-size: 1.2rem;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* ======================= ПАГИНАЦИЯ ======================= */
.pagination-wrapper {
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  background: var(--soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* ======================= МЕДИАЗАПРОСЫ ======================= */
@media (max-width: 1199px) {
  .main-photo { height: 560px; }
  .quick-grid { grid-template-columns: 1fr; }
  .booking { position: static; margin: 0 24px 32px; }
}

@media (max-width: 991px) {
  .gallery { border-right: 0; border-bottom: 1px solid var(--line); }
  .main-photo { height: 460px; }
  .content { padding: 30px 24px; }
  .info-row { grid-template-columns: 1fr; gap: 6px; }
  .included { grid-template-columns: 1fr 1fr; }
  .hero { height: 320px; }
  .side-sticky { position: static; }
  .date-scroll {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 10px;
  }
}

@media (max-width: 575px) {
  .page { padding: 14px 0 36px; }
  .event-shell { border-radius: 20px; }
  .main-photo { height: 360px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .thumbs img,
  .more-photo { height: 64px; }
  .thumbs img:nth-child(4) { display: none; }
  .content { padding: 24px 18px; }
  .tabs-section { padding: 0 18px 24px; }
  .included { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
}