/* ========== БАЗОВІ ЗМІННІ ========== */
:root {
    --primary: #FF6B6B;
    --primary-light: #FF8E8E;
    --secondary: #7C5CFC;
    --accent: #00D2D3;
    --accent-light: #48E5E6;
    --bg: #F8F9FC;
    --bg-alt: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text: #2D3436;
    --text-light: #636E72;
    --text-on-dark: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(124, 92, 252, 0.2);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-full: 50%;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ========== СКИДАННЯ ТА БАЗА ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* ========== НАВІГАЦІЯ ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(248, 249, 252, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.nav-logo { text-decoration: none; }
.logo-text {
    font-family: var(--font-heading); font-size: 28px; font-weight: 900;
    color: var(--text); letter-spacing: -0.5px;
}
.logo-dot { color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 8px; align-items: center; }
.nav-link {
    text-decoration: none; color: var(--text-light); font-weight: 600; font-size: 15px;
    padding: 8px 16px; border-radius: var(--radius-full); transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: rgba(255, 107, 107, 0.08); }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important; padding: 10px 24px; box-shadow: var(--shadow-glow);
}
.nav-cta:hover { transform: scale(1.05); background: linear-gradient(135deg, var(--primary-light), var(--secondary)); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background: var(--text); border-radius: 3px; transition: var(--transition); }

/* ========== ГЕРОЙ ========== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #E8F0FE 0%, #F0E6FF 30%, #FFE8EC 60%, #E0F7FA 100%);
    overflow: hidden; padding-top: 72px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,107,107,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(124,92,252,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 80%, rgba(0,210,211,0.1) 0%, transparent 60%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; padding: 80px 20px; }
.hero-badge {
    display: inline-block; background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); padding: 8px 20px; border-radius: var(--radius-full);
    font-weight: 700; font-size: 14px; color: var(--secondary); margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}
.hero-title {
    font-family: var(--font-heading); font-size: clamp(40px, 7vw, 72px); font-weight: 900;
    line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px); color: var(--text-light);
    margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading); font-size: 48px; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 14px; color: var(--text-light); font-weight: 600; display: block; margin-top: 4px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; color: var(--bg); }
.hero-wave svg { display: block; }

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-full); font-weight: 700; font-size: 16px;
    text-decoration: none; cursor: pointer; border: none; transition: var(--transition);
    font-family: var(--font-body); white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(124, 92, 252, 0.4); }
.btn-outline {
    background: transparent; color: var(--secondary);
    border: 2px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: white; }
.btn-full { width: 100%; justify-content: center; padding: 16px; font-size: 18px; }
.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white; font-size: 18px; padding: 14px 32px;
}
.btn-instagram:hover { transform: scale(1.05); }

/* ========== СЕКЦІЇ (заголовки) ========== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block; background: rgba(124, 92, 252, 0.1);
    color: var(--secondary); font-weight: 700; font-size: 14px;
    padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-heading); font-size: clamp(32px, 5vw, 48px); font-weight: 900;
    margin-bottom: 12px; color: var(--text);
}
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { color: var(--text-light); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ========== КАРТКИ ПОСЛУГ (та інші) ========== */
.services-grid, .characters-grid, .shows-grid, .quests-grid, .workshops-grid, .teambuilding-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}

.card {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 92, 252, 0.15); }
.card-image { width: 100%; height: 220px; overflow: hidden; background: #f0f0f0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-icon { font-size: 32px; color: var(--primary); margin-bottom: 4px; }
.card-title { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--text); }
.card-text { color: var(--text-light); font-size: 15px; line-height: 1.5; flex: 1; }
.card-badge {
    display: inline-block; background: rgba(0, 210, 211, 0.1); color: var(--accent);
    font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: var(--radius-full);
    width: fit-content;
}
.card-price { font-weight: 800; font-size: 18px; color: var(--primary); }
.card-btn { align-self: flex-start; margin-top: auto; }

/* ========== ФІЛЬТРИ ГАЛЕРЕЇ ========== */
.gallery-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
    padding: 10px 24px; border-radius: var(--radius-full); font-weight: 600; font-size: 14px;
    background: white; border: 1px solid #e0e0e0; color: var(--text-light); cursor: pointer;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--secondary); color: white; border-color: var(--secondary); }

/* ========== ГАЛЕРЕЯ (Masonry) ========== */
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-item {
    break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius);
    overflow: hidden; cursor: pointer; position: relative;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; display: block; }

/* ========== ВІДГУКИ ========== */
.reviews-slider { display: flex; overflow: hidden; transition: transform 0.5s ease; }
.review-slide { min-width: 100%; padding: 0 16px; }
.review-card {
    background: white; border-radius: var(--radius); padding: 32px; text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04);
    max-width: 600px; margin: 0 auto;
}
.review-avatar { width: 64px; height: 64px; border-radius: var(--radius-full); object-fit: cover; margin-bottom: 16px; }
.review-stars { color: #ffc107; font-size: 20px; margin-bottom: 12px; }
.review-text { font-size: 16px; color: var(--text); font-style: italic; margin-bottom: 12px; }
.review-author { font-weight: 700; color: var(--text-light); }
.slider-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; }
.slider-arrow {
    background: white; border: none; width: 40px; height: 40px; border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm); cursor: pointer; font-size: 16px; color: var(--secondary);
    transition: var(--transition);
}
.slider-arrow:hover { background: var(--secondary); color: white; }
.slider-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: var(--radius-full); background: #ccc; cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--secondary); width: 24px; border-radius: 10px; }

/* ========== INSTAGRAM ========== */
.instagram-section { background: linear-gradient(135deg, #f9f0ff, #fff0f0); }
.instagram-card { display: flex; align-items: center; gap: 40px; background: white; border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-md); flex-wrap: wrap; }
.instagram-content { flex: 1; min-width: 280px; }
.instagram-icon { font-size: 48px; color: #e1306c; margin-bottom: 16px; }
.instagram-title { font-family: var(--font-heading); font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.instagram-text { color: var(--text-light); margin-bottom: 24px; }
.instagram-preview { flex: 1; }
.insta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.insta-item { background: #f0f0f0; border-radius: var(--radius-sm); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.insta-placeholder { font-size: 32px; color: #ccc; }

/* ========== БРОНЮВАННЯ ========== */
.booking-section { background: var(--bg-alt); }
.booking-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.booking-calendar { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.booking-block-title { font-family: var(--font-heading); font-size: 20px; margin-bottom: 20px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-title { font-weight: 700; font-size: 16px; }
.cal-nav { background: none; border: none; cursor: pointer; color: var(--secondary); font-size: 18px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-day-name { font-size: 12px; font-weight: 700; color: var(--text-light); padding: 8px 0; }
.cal-day { padding: 10px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: 14px; }
.cal-day:hover:not(.empty):not(.past) { background: rgba(124, 92, 252, 0.1); }
.cal-day.empty { pointer-events: none; }
.cal-day.past { color: #ccc; pointer-events: none; }
.cal-day.today { font-weight: 800; color: var(--primary); border: 1px solid var(--primary); }
.cal-day.selected { background: var(--secondary); color: white; font-weight: 700; }

.booking-form-wrapper { background: white; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; transition: var(--transition); background: #fafafa;
}
.form-group input:focus, .form-group select:focus { border-color: var(--secondary); outline: none; box-shadow: 0 0 0 3px rgba(124,92,252,0.1); }
.checkbox-group-label { font-weight: 600; margin-bottom: 12px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox-item input { display: none; }
.checkbox-custom {
    width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 6px;
    display: inline-block; position: relative; transition: var(--transition);
}
.checkbox-item input:checked + .checkbox-custom { background: var(--secondary); border-color: var(--secondary); }
.checkbox-item input:checked + .checkbox-custom::after {
    content: '✓'; color: white; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 12px; font-weight: bold;
}
.form-success { text-align: center; padding: 40px; }
.success-animation { font-size: 64px; color: var(--accent); margin-bottom: 20px; animation: scaleUp 0.5s ease; }

/* ========== ФУТЕР ========== */
.footer { background: #1a1a2e; color: white; padding: 60px 0 20px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand .logo-text { color: white; font-size: 24px; }
.footer-slogan { color: #aaa; margin: 8px 0 16px; }
.footer-social { display: flex; gap: 12px; }
.social-link { color: white; font-size: 20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: var(--radius-full); transition: var(--transition); text-decoration: none; }
.social-link:hover { background: var(--primary); transform: translateY(-2px); }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-heading); margin-bottom: 16px; font-size: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; }
.footer-bottom-content { display: flex; justify-content: space-between; flex-wrap: wrap; color: #aaa; font-size: 13px; }

/* ========== МОДАЛЬНІ ВІКНА ========== */
.modal, .lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal.active, .lightbox.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content {
    position: relative; background: white; border-radius: var(--radius-lg);
    padding: 32px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto;
    z-index: 2001; box-shadow: var(--shadow-lg);
}
.modal-close, .lightbox-close {
    position: absolute; top: 16px; right: 16px; background: white; border: none;
    width: 36px; height: 36px; border-radius: var(--radius-full); cursor: pointer;
    font-size: 18px; box-shadow: var(--shadow-sm); z-index: 10;
}
.modal-character-header { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.modal-character-img { width: 80px; height: 80px; border-radius: var(--radius-full); object-fit: cover; }
.modal-programs { list-style: none; margin-top: 12px; }
.modal-programs li { padding: 6px 0; padding-left: 16px; position: relative; }
.modal-programs li::before { content: '•'; color: var(--primary); position: absolute; left: 0; }
.modal-book-btn { margin-top: 20px; }

/* Лайтбокс */
.lightbox { background: rgba(0,0,0,0.9); }
.lightbox-content { max-width: 90vw; max-height: 85vh; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); border: none; color: white;
    font-size: 24px; width: 48px; height: 48px; border-radius: var(--radius-full);
    cursor: pointer; z-index: 2002; transition: var(--transition);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.4); }

/* ========== КНОПКА ВГОРУ ========== */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 48px; height: 48px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border: none; cursor: pointer; font-size: 20px;
    box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden;
    transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; visibility: visible; }

/* ========== АНІМАЦІЇ ========== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes scaleUp { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pulse-glow { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 252, 0.4); } 50% { box-shadow: 0 0 0 15px rgba(124, 92, 252, 0); } }

/* ========== АДАПТИВНІСТЬ ========== */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu { position: fixed; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 24px; gap: 16px; box-shadow: var(--shadow-lg); transform: translateY(-150%); transition: var(--transition); }
    .nav-menu.active { transform: translateY(0); }
    .booking-wrapper { grid-template-columns: 1fr; }
    .gallery-grid { columns: 2; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gallery-grid { columns: 1; }
    .hero-stats { gap: 24px; }
}