/* ==============================================================================
   lefortovo.mafgu.ru — blocks added for the Lefortovo club site
   (schedule, hosts, contacts, booking modal states). Uses tokens from styles.css.
   ============================================================================== */

/* --- Hero: where & when --- */
.hero-where {
  margin-top: 12px !important;
}

/* --- Schedule --- */
.schedule {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 4vw, 48px);
}
.schedule-inner {
  width: var(--container, min(1200px, calc(100% - 32px)));
  margin: 0 auto;
}
.schedule-title,
.hosts-title {
  margin: 0 0 16px;
  font-family: var(--second-family);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}
.schedule-lead,
.hosts-lead {
  color: #d6d3e0 !important;
  max-width: 760px;
  margin: 0 0 32px;
  font-family: var(--font-family);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--muted);
}
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.upcoming-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(164, 73, 245, 0.35);
  border-radius: 18px;
  background: rgba(20, 20, 24, 0.72);
  backdrop-filter: blur(6px);
}
.upcoming-card-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.upcoming-card-day {
  font-family: var(--second-family);
  font-size: 26px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
}
.upcoming-card-time,
.upcoming-card-weekday {
  margin: 0;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--muted);
}
.upcoming-card-weekday::first-letter {
  text-transform: uppercase;
}
.upcoming-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--white);
}
.upcoming-card-price {
  font-weight: 600;
  color: var(--gold-bright);
  white-space: nowrap;
}
.upcoming-card-btn.btn {
  margin-top: auto;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 14px;
}

/* --- Hosts --- */
.hosts {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 7vw, 110px) 0 clamp(32px, 5vw, 64px);
}
.hosts-inner {
  width: var(--container, min(1200px, calc(100% - 32px)));
  margin: 0 auto;
}
.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.host-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.host-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: #1c1a24;
  box-shadow: 0 0 36px rgba(164, 73, 245, 0.25);
}
.host-name {
  margin: 6px 0 0;
  font-family: var(--second-family);
  font-size: 28px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
}
.host-text {
  margin: 0;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* --- Contacts (single club) --- */
.club-contacts-list.club-contacts-list--single {
  grid-template-columns: minmax(0, 1fr) !important;
  width: auto !important;
}
.club-contacts-venue {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
}
.club-contacts-address {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.club-contacts-address a,
.club-contacts-other a {
  color: var(--gold);
  text-decoration: underline;
}
.club-contacts-when {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--white);
}
.club-contacts-other {
  margin: 28px 0 0;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--muted);
}

/* --- Booking modal states --- */
.quick-modal__backdrop {
  position: absolute;
  inset: 0;
}
.quick-modal__error {
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 77, 77, 0.12) !important;
  border: 1px solid rgba(255, 77, 77, 0.45) !important;
  color: #ffb3b3 !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.quick-modal__error[hidden] {
  display: none !important;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 600px) {
  .upcoming-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .upcoming-card { scroll-snap-align: start; }
  .upcoming-card-day { font-size: 22px; }
  .host-name { font-size: 24px; }
  .hosts-grid { gap: 32px; }
}

/* --- FAQ: the base theme fixes the block height for 7 questions; let it grow --- */
.faq-wrapper,
#faq,
#faq .faq-inner {
  height: auto !important;
  min-height: 0 !important;
}

/* --- Contacts: one club, normal document flow at every width --- */
#contacts.club-contacts {
  height: auto !important;
  min-height: 0 !important;
  margin: 40px 0 0 !important;
  padding: 60px 0 40px !important;
}
#contacts .club-contacts-inner {
  position: relative;
  width: var(--container, min(1200px, calc(100% - 32px))) !important;
  max-width: 1200px !important;
  height: auto !important;
  margin: 0 auto !important;
}
#contacts .club-contacts-title,
#contacts .club-contacts-list {
  position: static !important;
  top: auto !important;
  left: auto !important;
  max-width: none !important;
}
#contacts .club-contacts-title {
  margin: 0 0 32px !important;
}
#contacts .club-contacts-list {
  width: 100% !important;
  margin: 0 !important;
}
#contacts .club-contacts-item {
  max-width: 520px;
}
@media (min-width: 1024px) {
  #contacts .club-contacts-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    column-gap: 64px;
    align-items: start;
  }
  #contacts .club-contacts-title { grid-column: 1; grid-row: 1 / span 2; }
  #contacts .club-contacts-list  { grid-column: 2; grid-row: 1; }
  #contacts .club-contacts-other { grid-column: 2; grid-row: 2; margin-top: 20px; }
}
@media (max-width: 600px) {
  #contacts .club-contacts-inner { width: calc(100% - 28px) !important; }
  #contacts .club-contacts-item { max-width: none; }
}

/* --- Booking modal polish --- */
.quick-modal__title {
  padding-right: 44px !important;          /* keep clear of the close button */
  font-size: clamp(22px, 2.4vw, 28px) !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}
.quick-modal__close {
  top: 14px !important;
  right: 14px !important;
}
.quick-modal label.quick-modal__consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 6px 0 22px !important;
  line-height: 1.35 !important;
  font-size: 13px !important;
}
.quick-modal label.quick-modal__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0 !important;
}

/* --- Final CTA raccoon: sit fully visible on the footer line (base theme hid ~300px under the footer) --- */
@media (min-width: 601px) {
  .cta-final {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
  }
  .cta-raccoon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(438px, 70vw) !important;
    max-width: 438px !important;
    margin: 48px auto 0 !important;
    transform: translateX(67px) !important;
    z-index: 4 !important;
  }
  .cta-raccoon-img,
  .cta-raccoon img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
  }
  .site-footer {
    margin-top: 0 !important;
  }
}
@media (min-width: 1025px) {
  /* base theme shifts the CTA content down 200px with `top`, outside the layout flow */
  .cta-inner {
    position: relative !important;
    top: 0 !important;
  }
  .cta-final {
    padding-top: 200px !important;
  }
}

/* --- Private events: title block overlapped the cards on wide screens --- */
@media (min-width: 1025px) {
  #private.private { height: 1340px !important; }
  #private .private-cards { top: 892px !important; }
  #private .private-cta { top: 1200px !important; }
}

/* --- Internal links --- */
.schedule-more { margin: -12px 0 24px; font-family: var(--font-family); font-size: 15px; }
.schedule-more a, .club-contacts-other a { color: var(--gold); text-decoration: underline; }
.footer-pages {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 28px 0 8px; font-family: var(--font-family); font-size: 14px;
}
.footer-pages a { color: var(--muted); text-decoration: none; }
.footer-pages a:hover { color: var(--gold); }

/* --- Inner pages (/raspisanie, /pravila, ...) --- */
.inner-page .page-intro { padding-bottom: 24px; }
.page-hero, .page-body {
  width: var(--container, min(1200px, calc(100% - 32px)));
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-hero { padding: clamp(140px, 14vw, 190px) 0 16px; }
.page-crumbs { margin-bottom: 18px; font-family: var(--font-family); font-size: 13px; color: var(--muted); }
.page-crumbs a { color: var(--muted); }
.page-crumbs span { margin: 0 6px; }
.page-h1 {
  margin: 0 0 18px; font-family: var(--second-family); font-weight: 500;
  font-size: clamp(38px, 5.5vw, 76px); line-height: 1.02; text-transform: uppercase; color: var(--white);
}
.page-lead, .page-text {
  margin: 0; font-family: var(--font-family); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: #d6d3e0;
}
.page-text + .page-text, .page-text + .page-list, .page-list + .page-text { margin-top: 14px; }
.page-body { padding-bottom: 80px; }
.page-section { padding: 40px 0 8px; }
.page-section.schedule { padding-top: 24px; }
.page-h2 {
  margin: 0 0 20px; font-family: var(--second-family); font-weight: 500;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.1; text-transform: uppercase; color: var(--gold);
}
.page-list { margin: 0; padding-left: 22px; font-family: var(--font-family); font-size: 16px; line-height: 1.6; color: #d6d3e0; }
.page-list li + li { margin-top: 8px; }
.page-list b { color: var(--white); }
.page-table { width: 100%; border-collapse: collapse; font-family: var(--font-family); font-size: 15px; }
.page-table th, .page-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.1); }
.page-table th { width: 34%; font-weight: 500; color: var(--gold); white-space: nowrap; }
.page-table td { color: var(--white); }
.page-body a:not(.btn) { color: var(--gold); text-decoration: underline; }
.page-note { margin: 16px 0 0; font-family: var(--font-family); font-size: 14px; line-height: 1.5; color: var(--muted); }
.page-map { overflow: hidden; border-radius: 18px; border: 1px solid rgba(164,73,245,.35); }
.page-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.page-actions { margin: 20px 0 0; }
.page-faq { max-width: none; }
.page-cta {
  margin-top: 56px; padding: 36px 32px; text-align: center; border-radius: 18px;
  border: 1px solid rgba(164,73,245,.35); background: rgba(20,20,24,.72);
}
.page-cta p { margin: 0 auto 24px; max-width: 560px; font-family: var(--font-family); font-size: 15px; line-height: 1.5; color: #d6d3e0; }
.inner-page .rules-media {
  position: relative !important; top: auto !important; left: auto !important; transform: none !important;
  width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; margin: 0 !important;
  overflow: hidden; border-radius: 18px;
}
.inner-page .rules-media .rules-video-facade,
.inner-page .rules-media iframe { width: 100% !important; height: 100% !important; }
.inner-page .rules-video-poster { width: 100%; height: 100%; object-fit: cover; }
.page-body .upcoming-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 600px) {
  .page-hero, .page-body { width: calc(100% - 28px); }
  .page-table th { white-space: normal; width: 40%; }
  .page-table th, .page-table td { padding: 12px 8px; }
  .page-map iframe { height: 320px; }
  .page-cta { padding: 28px 18px; }
}

/* --- Link fixes: rules "more" link, two contact notes in one grid cell --- */
.rules-more { display: block; margin-top: 14px; color: var(--gold) !important; text-decoration: underline; }
@media (min-width: 1024px) {
  #contacts .club-contacts-other + .club-contacts-other { grid-row: 3; margin-top: 8px; }
}
