/*
Theme Name: КРИК Child
Theme URI: https://krik-quest.ru
Description: Дочерняя тема для хоррор-квестов КРИК (базовая: Astra)
Author: КРИК
Template: astra
Version: 1.4.8
Text Domain: krik
*/

/* ============================================================
   CSS-ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --bg-primary:    #05080f;
  --bg-secondary:  #080d1e;
  --bg-card:       #090e20;
  --blue-deep:     #0c1640;
  --purple-accent: #1a2878;
  --glow:          #3a6aff;
  --cta:           #4d80ff;
  --cta-hover:     #2a55dd;
  --red-accent:    #ff3366;
  --text-primary:  #f0f4ff;
  --text-body:     #c0caea;
  --text-muted:    #6878a8;
  --border:        rgba(58, 106, 255, 0.25);
  --border-hover:  #4d80ff;
  --divider:       rgba(58, 106, 255, 0.15);
}

/* ============================================================
   СБРОС И БАЗА
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html {
  overflow-x: hidden;
}
body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0; padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Убираем стандартные Astra-элементы */
.ast-header-wrap, .site-header-focus-item { display: none !important; }
.main-header-bar-wrap { display: none !important; }
footer.site-footer { display: none !important; }
.ast-above-header-wrap { display: none !important; }

/* Сбрасываем Astra-обёртку: она не должна влиять на layout */
#page,
.hfeed.site,
.ast-container,
.site-content,
.ast-page-builder-template,
.entry-content,
article.post,
.post-page-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Секции — нормальный поток, туман сверху через screen */
.hero-section,
.quests-section,
.about-section,
.booking-section,
.reviews-section,
.contacts-section,
.site-footer-custom {
  display: block;
  width: 100%;
  box-sizing: border-box;
  float: none;
  clear: both;
  position: relative;
}

/* ============================================================
   ТИПОГРАФИЯ
   ============================================================ */
h1, h2, h3 { line-height: 1.2; margin: 0; }

a { color: var(--cta); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--text-primary); }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96%           { opacity: 0.85; }
  97%           { opacity: 1; }
  98%           { opacity: 0.9; }
}
@keyframes horror-flicker {
  0%,  18%, 20%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 4px #fff,
      0 0 20px #ff2200,
      0 0 50px #ff0000,
      0 0 100px #cc0000,
      0 0 180px rgba(200,0,0,0.5);
  }
  19%, 21% {
    opacity: 0.15;
    text-shadow: none;
  }
  23%, 24% {
    opacity: 0.6;
    text-shadow: 0 0 10px #ff0000;
  }
  54%, 56% {
    opacity: 0.25;
    text-shadow: none;
  }
  55% {
    opacity: 0.9;
    text-shadow: 0 0 8px #ff2200;
  }
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.4; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   ТУМАН — domain-warped canvas fog
   ============================================================ */
.fog-fixed {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  overflow: hidden;
  mix-blend-mode: screen;
}
/* Blur на absolute дочернем — безопасно */
.fog-blur {
  position: absolute;
  inset: -12px; /* перекрываем чтобы blur не обрезался */
  filter: blur(5px);
}
#site-fog {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   ЛОГОТИП / МЕРЦАНИЕ
   ============================================================ */
.logo-text {
  font-family: 'Stalinist One', cursive;
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 12px rgba(220, 235, 255, 0.95),
    0 0 28px rgba(160, 200, 255, 0.8),
    0 0 60px rgba(80, 140, 255, 0.6),
    0 0 110px rgba(40, 90, 220, 0.4),
    0 0 180px rgba(20, 55, 180, 0.25),
    0 0 280px rgba(10, 30, 140, 0.15);
  animation: flicker 8s ease-in-out infinite;
  display: inline-block;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn-primary {
  background: var(--cta);
  color: var(--text-primary);
  border: none;
  padding: 14px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: crosshair;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 0 25px rgba(123,111,255,0.7), 0 0 50px rgba(92,79,214,0.3);
  transform: scale(1.03);
  color: var(--text-primary);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--cta);
  color: var(--cta);
  padding: 13px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: crosshair;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-outline:hover {
  background: rgba(123,111,255,0.1);
  box-shadow: 0 0 20px rgba(123,111,255,0.4);
  color: var(--text-primary);
}

/* ============================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.section-title {
  font-family: 'Stalinist One', cursive;
  font-size: clamp(36px, 6vw, 60px);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cta), transparent);
  margin: 12px auto 0;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin-bottom: 48px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,9,26,0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(92,79,214,0.3);
}
.site-header.hide { transform: translateY(-100%); }

.header-logo .logo-text {
  font-size: 32px;
  text-decoration: none;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.header-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  text-transform: uppercase;
}
.header-nav a:hover { color: var(--text-primary); }

.header-cta { padding: 10px 20px; font-size: 14px; }

/* Бургер */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: crosshair;
  background: none;
  border: none;
  padding: 4px;
  z-index: 10001;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}
.burger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Stalinist One', cursive;
  font-size: 32px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--cta); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(20, 60, 200, 0.4) 0%, transparent 42%),
    radial-gradient(ellipse at 15% 90%,  rgba(10, 30, 140, 0.3) 0%, transparent 35%),
    radial-gradient(ellipse at 85% 90%,  rgba(10, 25, 130, 0.3) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%,  #0a1228 0%, #050a18 55%, #020508 100%);
  z-index: 0;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  filter: url(#noise);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
}
.hero-logo {
  font-size: clamp(80px, 16vw, 180px);
  margin-bottom: 16px;
  display: block;
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
  will-change: opacity, filter, transform;
}
.hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(12px, 1.8vw, 17px);
  letter-spacing: 0.38em;
  color: rgba(200, 218, 255, 0.75);
  margin-bottom: 20px;
  display: block;
  text-transform: uppercase;
}
.hero-slogan {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollPulse 2s ease-in-out infinite;
  color: var(--cta);
  font-size: 28px;
  line-height: 1;
}

/* ============================================================
   КВЕСТЫ
   ============================================================ */
.quests-section {
  background: var(--bg-secondary);
  padding: 80px 0;
}
.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}
/* Один квест — центрированная широкая карточка */
.quests-grid--single {
  grid-template-columns: minmax(320px, 600px);
  justify-content: center;
}
.quest-card--featured {
  border-color: var(--glow);
  box-shadow: 0 0 30px rgba(58,106,255,0.2);
}
.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: crosshair;
}
.quest-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(123,111,255,0.2), 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(-6px);
}
.quest-card-image {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
}
.quest-card-image img,
.quest-card-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.72) saturate(0.85);
  transition: transform 0.6s ease, filter 0.4s ease;
  display: block;
}
.quest-card:hover .quest-card-image img {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1);
}
.quest-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-card));
}
.quest-card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.3;
  filter: brightness(0.5);
}
.quest-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
}
.quest-badge-18 {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(7,9,26,0.8);
  border: 1px solid var(--red-accent);
  color: var(--red-accent);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
}
.quest-card-body { padding: 20px 24px 24px; }
.quest-name {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.quest-skulls { display: flex; gap: 4px; margin-bottom: 12px; }
.skull-filled { color: var(--red-accent); font-size: 16px; }
.skull-empty  { color: var(--purple-accent); font-size: 16px; }
.quest-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.quest-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.quest-meta span { white-space: nowrap; }
.quest-price {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.quest-price span { font-size: 16px; color: var(--text-muted); }
.quest-card .btn-primary { width: 100%; }

/* ============================================================
   ПОЧЕМУ МЫ
   ============================================================ */
.about-section {
  position: relative;
  background: var(--bg-primary);
  padding: 80px 0;
  overflow: hidden;
}
.about-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}
.about-inner { position: relative; z-index: 1; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(92,79,214,0.2);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
}
.feature-card:hover {
  border-color: rgba(92,79,214,0.6);
  box-shadow: 0 0 30px rgba(92,79,214,0.15);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 48px;
  color: var(--cta);
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 10px #5c4fd6);
}
.feature-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============================================================
   БРОНИРОВАНИЕ
   ============================================================ */
.booking-section {
  position: relative;
  background: var(--bg-secondary);
  padding: 80px 0;
  overflow: hidden;
}
.booking-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}
.booking-intro {
  text-align: center;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews-section {
  background: var(--bg-primary);
  padding: 80px 0;
}
.reviews-swiper-wrap {
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  height: auto;
}
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  color: var(--cta);
  font-weight: 700;
  margin-bottom: 12px;
}
.review-stars { color: var(--red-accent); margin-bottom: 10px; font-size: 14px; }
.review-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 14px;
}
.review-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
}
.review-date { font-size: 12px; color: var(--text-muted); }
.swiper-pagination-bullet { background: var(--text-muted); }
.swiper-pagination-bullet-active { background: var(--cta); }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-section {
  background: var(--bg-secondary);
  padding: 80px 0;
}
.contacts-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacts-list { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { color: var(--cta); font-size: 20px; width: 28px; flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: 12px; color: var(--text-muted); margin: 0 0 2px; font-family: 'Oswald', sans-serif; letter-spacing: 0.05em; }
.contact-value { font-size: 16px; color: var(--text-primary); font-family: 'Inter', sans-serif; margin: 0; }
.contact-value a { color: var(--text-primary); }
.contact-value a:hover { color: var(--cta); }
.contact-map-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.contact-map-buttons .btn-outline { padding: 8px 16px; font-size: 13px; }
.contact-socials { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(92,79,214,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cta);
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-link:hover {
  border-color: var(--cta);
  box-shadow: 0 0 20px rgba(123,111,255,0.5);
  color: var(--text-primary);
}
.contact-map-wrap { width: 100%; }

/* Рейтинговая строка под картой/отзывами */
.yandex-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(58,106,255,0.2);
  border-top: none;
  border-radius: 0 0 4px 4px;
  gap: 12px;
}
.yandex-rating-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yandex-rating-num {
  font-family: 'Stalinist One', cursive;
  font-size: 28px;
  color: var(--text-primary);
  text-shadow: 0 0 14px rgba(77,128,255,0.3);
  line-height: 1;
}
.yandex-rating-stars-inline {
  font-size: 16px;
  color: #fbbf24;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
}
.yandex-rating-src {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.yandex-all-reviews {
  padding: 9px 20px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer-custom {
  background: var(--bg-primary);
  border-top: 1px solid rgba(92,79,214,0.2);
  padding: 48px 40px 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-logo { font-size: 32px; }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-socials { display: flex; gap: 12px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(92,79,214,0.1);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}
.age-badge {
  background: var(--red-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 3px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--cta); }
.footer-seo-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(92,79,214,0.1);
  font-size: 12px;
}
.footer-seo-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-seo-links a:hover { color: var(--cta); }
.footer-seo-sep { color: rgba(255,255,255,0.15); }

/* ============================================================
   SECTION-WRAPPER
   ============================================================ */
.section-wrap { padding-left: 40px; padding-right: 40px; }
.section-head { margin-bottom: 48px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .contacts-inner { grid-template-columns: 1fr; }
  .contact-map-placeholder { height: 220px; }
}

@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .burger-btn { display: flex; }

  /* Секции */
  .quests-grid { padding: 0 16px; }
  .features-grid { padding: 0 16px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .booking-inner { padding: 0 16px; }
  .contacts-inner { padding: 0 16px; }
  .reviews-swiper-wrap { padding: 0 16px; }
  .site-footer-custom { padding: 32px 20px 20px; }

  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  .section-wrap { padding-left: 16px; padding-right: 16px; }
  .hero-section { min-height: 100svh; }

  /* Hero */
  .hero-title { font-size: clamp(28px, 10vw, 52px); }
  .hero-slogan { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { width: 100%; max-width: 300px; text-align: center; }

  /* Квест */
  .quest-card { margin: 0 auto; }
  .quest-card-image { height: 220px; }
  .quest-card-body { padding: 20px 16px; }
  .quest-name { font-size: 20px; }
  .quest-price { font-size: 22px; }

  /* О нас */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px 16px; }

  /* Контакты */
  .contacts-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-map-wrap iframe { height: 220px; }
  .contact-map-buttons { flex-direction: column; }
  .contact-map-buttons a { text-align: center; }

  /* Отзывы */
  .review-card { padding: 20px 18px; }

  /* Секции с паддингом */
  .about-section,
  .booking-section,
  .reviews-section,
  .quests-section { padding-top: 70px; padding-bottom: 70px; }
  .contacts-section { padding-top: 70px; padding-bottom: 50px; }

  /* Заголовки */
  .section-subtitle { font-size: 14px; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(26px, 9vw, 44px); }
}

/* ============================================================
   SCANLINES — плёночная текстура поверх всей страницы
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

/* ============================================================
   GLITCH — эффект на заголовках секций при наведении
   ============================================================ */
@keyframes glitch-shift-r {
  0%   { clip-path: inset(0 0 95% 0); transform: translate(3px, 0); }
  20%  { clip-path: inset(40% 0 50% 0); transform: translate(-3px, 0); }
  40%  { clip-path: inset(60% 0 30% 0); transform: translate(2px, 0); }
  60%  { clip-path: inset(80% 0 10% 0); transform: translate(-2px, 0); }
  80%  { clip-path: inset(20% 0 70% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(0 0 95% 0); transform: translate(0, 0); }
}
@keyframes glitch-shift-b {
  0%   { clip-path: inset(50% 0 30% 0); transform: translate(-3px, 0); }
  25%  { clip-path: inset(10% 0 80% 0); transform: translate(3px, 0); }
  50%  { clip-path: inset(70% 0 20% 0); transform: translate(-2px, 0); }
  75%  { clip-path: inset(30% 0 60% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(50% 0 30% 0); transform: translate(0, 0); }
}

.section-title {
  position: relative;
  display: inline-block;
}
.section-title::before,
.section-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.section-title:hover::before {
  opacity: 0.7;
  color: #ff3366;
  animation: glitch-shift-r 0.4s steps(1) infinite;
}
.section-title:hover::after {
  opacity: 0.5;
  color: #4d80ff;
  animation: glitch-shift-b 0.4s steps(1) infinite;
}

/* ============================================================
   КРОВАВЫЕ КАПЛИ — разделитель между секциями
   ============================================================ */
@keyframes drip {
  0%   { height: 0; opacity: 0.9; }
  70%  { height: 28px; opacity: 0.9; }
  85%  { height: 28px; opacity: 0.7; }
  100% { height: 28px; opacity: 0; }
}

.quests-section::before,
.about-section::before,
.booking-section::before,
.reviews-section::before {
  content: '';
  display: block;
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 51, 102, 0.0) 20%,
    rgba(255, 51, 102, 0.4) 40%,
    rgba(255, 51, 102, 0.55) 50%,
    rgba(255, 51, 102, 0.4) 60%,
    rgba(255, 51, 102, 0.0) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Сами капли — через span.blood-drip, добавляем JS'ом */
.blood-drip {
  position: absolute;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, #cc0022, #880011);
  border-radius: 0 0 50% 50%;
  animation: drip 2.5s ease-in forwards;
  pointer-events: none;
  z-index: 3;
}

/* ============================================================
   HEARTBEAT — пульс на главной кнопке бронирования
   ============================================================ */
@keyframes heartbeat {
  0%   { box-shadow: 0 0 0 0 rgba(77, 128, 255, 0.5); }
  50%  { box-shadow: 0 0 0 14px rgba(77, 128, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 128, 255, 0); }
}

.hero-buttons .btn-primary {
  animation: heartbeat 2.4s ease-in-out infinite;
}
.hero-buttons .btn-primary:hover {
  animation: none;
}

/* ============================================================
   FEATURED QUEST CARD — усиленное свечение для единственной карточки
   ============================================================ */
.quest-card--featured {
  max-width: 560px;
  margin: 0 auto;
}
.quest-card--featured .quest-card-image {
  height: 320px;
}

/* ============================================================
   FEATURE CARDS — subtle flicker при наведении
   ============================================================ */
@keyframes icon-flicker {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px var(--cta)); }
  33%       { opacity: 0.6; filter: drop-shadow(0 0 2px var(--cta)); }
  66%       { opacity: 0.9; filter: drop-shadow(0 0 14px var(--cta)); }
}
.feature-card:hover .feature-icon {
  animation: icon-flicker 0.6s ease-in-out 1;
}

/* ============================================================
   REVIEW CARDS — красная полоска слева при наведении
   ============================================================ */
.review-card {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  border-left: 2px solid transparent;
}
.review-card:hover {
  border-left-color: var(--red-accent);
  box-shadow: -4px 0 20px rgba(255, 51, 102, 0.15), 0 0 30px rgba(77, 128, 255, 0.08);
  transform: translateX(4px);
}

/* ============================================================
   SLOT GRID — hint текст убираем (таб один)
   ============================================================ */
.krik-quest-tabs { display: none !important; }
.krik-hint { display: none !important; }

/* ============================================================
   ЭКРАН ЗАГРУЗКИ
   ============================================================ */
@keyframes loader-glow-in {
  0%   { opacity: 0; filter: blur(30px); text-shadow: none; transform: scale(0.85); }
  40%  { opacity: 1; filter: blur(0); transform: scale(1.05); }
  100% { opacity: 1; filter: blur(0); transform: scale(1);
    text-shadow:
      0 0 10px #fff,
      0 0 40px var(--cta),
      0 0 90px var(--cta-hover),
      0 0 180px rgba(42, 85, 221, 0.5);
  }
}
@keyframes loader-bar {
  0%   { width: 0%; }
  100% { width: 100%; }
}

#krik-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#krik-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  font-size: clamp(72px, 18vw, 140px);
  animation: loader-glow-in 1.6s ease-out forwards;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(77, 128, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cta), var(--glow));
  animation: loader-bar 1.8s ease-in-out forwards;
  box-shadow: 0 0 8px var(--cta);
}

/* ============================================================
   TYPEWRITER CURSOR
   ============================================================ */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.typewriter-cursor {
  display: inline-block;
  color: var(--cta);
  font-weight: 300;
  animation: blink-cursor 0.9s step-end infinite;
  margin-left: 2px;
}

/* ============================================================
   КРОВАВЫЕ КАПЛИ — увеличенные, яркие
   ============================================================ */
@keyframes drip-fall {
  0%   {
    height: 0px;
    opacity: 1;
    box-shadow: 0 0 4px #ff0033;
  }
  60%  {
    height: 40px;
    opacity: 1;
    box-shadow: 0 0 8px #ff0033, 0 2px 12px rgba(255,0,50,0.5);
  }
  85%  {
    height: 42px;
    opacity: 0.8;
  }
  100% {
    height: 42px;
    opacity: 0;
  }
}

/* Убираем старый стиль .blood-drip если конфликтует */
.blood-drip {
  position: absolute !important;
  top: 0 !important;
  border-radius: 0 0 50% 50% !important;
  background: linear-gradient(to bottom, #ff0033, #990022) !important;
  animation: drip-fall ease-in forwards !important;
  pointer-events: none !important;
  z-index: 10 !important;
  display: block !important;
}

/* ============================================================
   HERO — ПАРАЛЛАКС ФОТО
   ============================================================ */
.hero-photo-bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  background-image: url('/wp-content/themes/krik-theme/img/hero-bg.jpg');
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.12);
  will-change: transform;
  filter: grayscale(30%) brightness(0.45);
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(8, 14, 42, 0.55) 0%, transparent 60%),
    linear-gradient(to bottom,
      rgba(5, 8, 15, 0.72) 0%,
      rgba(5, 8, 15, 0.30) 40%,
      rgba(5, 8, 15, 0.30) 60%,
      rgba(5, 8, 15, 0.85) 100%
    );
}
/* hero-bg теперь поверх фото — для синего свечения снизу */
.hero-bg { z-index: 2; opacity: 0.55; }

/* ============================================================
   HEADER RIGHT — онлайн + кнопка
   ============================================================ */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.online-badge {
  display: flex;
  align-items: center;
  gap: 7px;
}
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34,197,94,0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 10px #22c55e, 0 0 22px rgba(34,197,94,0.6); }
}
.online-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: opacity 0.4s;
  white-space: nowrap;
}

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */
.steps-section {
  background: var(--bg-secondary);
  padding: 100px 40px;
  text-align: center;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.step-card {
  padding: 32px 24px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  z-index: 0;
}
.step-card:first-child::before { left: 50%; }
.step-card:last-child::before  { right: 50%; }

.step-number {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  color: var(--cta);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover .step-icon {
  border-color: var(--cta);
  box-shadow: 0 0 20px rgba(77,128,255,0.25);
}
.step-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-arrow {
  position: absolute;
  right: -14px;
  top: 48px;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--cta);
  z-index: 2;
  opacity: 0.5;
}
.step-card--last .step-arrow { display: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--bg-primary);
  padding: 100px 40px;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--divider);
}
.faq-item:first-child { border-top: 1px solid var(--divider); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: crosshair;
  text-align: left;
  color: var(--text-primary);
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--cta); }
.faq-question[aria-expanded="true"] { color: var(--cta); }

.faq-icon {
  font-size: 22px;
  color: var(--cta);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s;
  font-weight: 300;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p {
  padding: 0 0 22px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.faq-item.open .faq-answer { /* max-height задаётся JS */ }

/* ============================================================
   ФИКСИРОВАННЫЕ КНОПКИ СОЦСЕТЕЙ
   ============================================================ */
.social-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 40px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.social-float-btn i { font-size: 18px; flex-shrink: 0; }
.social-float-label {
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  white-space: nowrap;
}
.social-float-btn:hover .social-float-label {
  max-width: 120px;
  opacity: 1;
}
.social-float-tg {
  background: linear-gradient(135deg, #229ed9, #1a85bb);
}
.social-float-tg:hover {
  box-shadow: 0 0 20px rgba(34,158,217,0.5), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateX(-4px);
  color: #fff;
}
.social-float-vk {
  background: linear-gradient(135deg, #4a76a8, #2d5f8a);
}
.social-float-vk:hover {
  box-shadow: 0 0 20px rgba(74,118,168,0.5), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateX(-4px);
  color: #fff;
}

/* ============================================================
   ФИКС ЗАГОЛОВКОВ — всегда по центру
   ============================================================ */
.section-head {
  text-align: center;
  width: 100%;
}
.section-title {
  display: inline-block;
  width: auto;
  text-align: center;
}

/* ============================================================
   АДАПТИВ — новые блоки
   ============================================================ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .step-card::before { display: none; }
}
@media (max-width: 768px) {
  .steps-section { padding: 70px 20px; }
  .faq-section   { padding: 70px 20px; }
  .steps-grid    { grid-template-columns: 1fr; gap: 8px; }
  .online-badge  { display: none; }
  .social-float  { bottom: 20px; right: 16px; }
  .social-float-btn { padding: 12px 14px; border-radius: 50%; }
  .social-float-label { display: none; }
  .yandex-rating-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .yandex-all-reviews { width: 100%; text-align: center; }
}

/* ============================================================
   СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ============================================================ */
.privacy-main {
  padding: 120px 24px 80px;
  min-height: 100vh;
}
.privacy-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(6, 9, 26, 0.82);
  border: 1px solid rgba(77,128,255,0.12);
  border-radius: 6px;
  padding: 48px 52px;
  backdrop-filter: blur(8px);
}
.privacy-title {
  font-family: 'Stalinist One', cursive;
  font-size: clamp(22px, 4vw, 40px);
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 0 20px rgba(77,128,255,0.3);
  margin-bottom: 8px;
}
.privacy-updated {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.privacy-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cta);
  letter-spacing: 0.08em;
  margin: 36px 0 12px;
  text-transform: uppercase;
}
.privacy-content p,
.privacy-content li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}
.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.privacy-content li {
  margin-bottom: 6px;
}
.privacy-content a { color: var(--cta); }
.privacy-content a:hover { color: var(--text-primary); }
.privacy-back { margin-top: 48px; }

/* ============================================================
   COOKIE БАННЕР
   ============================================================ */
#krik-cookie {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 99998;
  background: #06091a;
  border: 1px solid rgba(77,128,255,0.35);
  border-radius: 6px;
  box-shadow:
    0 0 40px rgba(77,128,255,0.15),
    0 8px 32px rgba(0,0,0,0.6),
    inset 0 0 60px rgba(0,0,0,0.5);
  width: min(720px, calc(100vw - 32px));
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
}
#krik-cookie.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}
.cookie-skull {
  font-size: 36px;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(77,128,255,0.6));
  animation: skull-pulse 3s ease-in-out infinite;
}
@keyframes skull-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}
.cookie-body { flex: 1; min-width: 0; }
.cookie-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cta);
  margin: 0 0 4px;
  text-transform: uppercase;
}
.cookie-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}
.cookie-text a { color: var(--cta); text-decoration: underline; }
.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-accept {
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 3px;
  cursor: crosshair;
  transition: all 0.3s;
  white-space: nowrap;
}
.cookie-accept:hover {
  background: var(--cta-hover);
  box-shadow: 0 0 20px rgba(77,128,255,0.5);
}
.cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 3px;
  cursor: crosshair;
  transition: all 0.3s;
  text-align: center;
}
.cookie-decline:hover { border-color: rgba(255,51,102,0.5); color: var(--red-accent); }

@media (max-width: 768px) {
  #krik-cookie { bottom: 12px; }
  .cookie-inner { flex-direction: column; padding: 16px 18px; gap: 14px; }
  .cookie-skull { font-size: 28px; }
  .cookie-buttons { flex-direction: row; width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; }
  .privacy-main { padding: 100px 12px 60px; }
  .privacy-wrap { padding: 28px 20px; }
}
