:root { --bg-color: #050505; --text-color: #c0c0c0; --accent-color: #00a8cc; --hover-color: #00e5ff; --section-bg: #0d0d0d; --border-color: #1a1a1a; --mode-green: #2ecc71; --mode-yellow: #f1c40f; --mode-orange: #e67e22; --mode-red: #c0392b; --mode-kids: #9b59b6; --danger-color: #ff4757; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
a { color: var(--accent-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--hover-color); }
header { background-color: rgba(0, 0, 0, 0.95); padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
nav { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 28px; font-weight: bold; letter-spacing: 4px; color: #fff; text-transform: uppercase; text-shadow: 0 0 10px var(--accent-color); z-index: 1001; }
.menu-toggle { display: flex; flex-direction: column; cursor: pointer; z-index: 1001; padding: 10px; }
.menu-toggle span { width: 30px; height: 2px; background-color: var(--accent-color); margin: 3px 0; transition: 0.4s; box-shadow: 0 0 5px var(--accent-color); }
.menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
.nav-menu { position: absolute; top: 60px; right: 0; background-color: rgba(5, 5, 5, 0.98); border: 1px solid var(--accent-color); padding: 20px; display: none; flex-direction: column; min-width: 200px; }
.nav-menu.active { display: flex; }
.nav-menu a { color: var(--text-color); text-transform: uppercase; font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-color); text-align: right; }
.nav-menu a:last-child { border-bottom: none; }
.hero { height: 100vh; background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%); display: flex; align-items: center; justify-content: center; text-align: center; border-bottom: 2px solid var(--accent-color); position: relative; }
.hero-content h1 { font-size: 60px; margin-bottom: 10px; color: #fff; text-transform: uppercase; text-shadow: 0 0 20px var(--accent-color); animation: flicker 3s infinite alternate; }
.hero-content h2 { font-size: 24px; color: var(--accent-color); margin-bottom: 30px; font-weight: 300; }
.btn { display: inline-block; padding: 15px 40px; background: transparent; border: 2px solid var(--accent-color); color: var(--accent-color); font-size: 18px; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; }
.btn:hover { background: var(--accent-color); color: #000; box-shadow: 0 0 20px var(--accent-color); }
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 20px; color: #fff; text-transform: uppercase; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent-color); margin: 15px auto 0; }
.section-subtitle { text-align: center; margin-bottom: 50px; color: var(--text-color); }
#legend { background-color: var(--bg-color); }
.footer, .hero-text, .bottom-text { word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; padding: 0 15px; box-sizing: border-box;}
.story-container { max-width: 900px; margin: 0 auto; text-align: center; cursor: pointer; padding: 30px 20px; border: 1px solid var(--border-color); background: linear-gradient(180deg, #080808 0%, #0d0d0d 100%); perspective: 1000px; }
.story-text { font-family: 'Georgia', 'Times New Roman', Times, serif; font-size: 1.1rem; line-height: 1.6; color: #e0e0e0; text-shadow: 1px 1px 2px black; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 1s ease, max-height 0.5s ease; margin: 0; }
.story-text.visible { opacity: 1; max-height: 500px; margin-bottom: 25px; transform: scale(1) translateZ(0); }
.story-text.final { color: var(--hover-color); font-weight: bold; font-size: 22px; border-top: 1px solid var(--accent-color); padding-top: 20px; margin-top: 20px; }
.click-hint { color: var(--accent-color); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-top: 20px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; text-shadow: 0 0 10px var(--accent-color); } 100% { opacity: 0.5; } }
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mode-card { background: var(--section-bg); padding: 25px; border: 1px solid var(--border-color); position: relative; overflow: hidden; transition: transform 0.3s; }
.mode-card:hover { transform: translateY(-5px); }
.mode-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-color); }
.mode-card.green::before { background: var(--mode-green); box-shadow: 0 0 10px var(--mode-green); }
.mode-card.yellow::before { background: var(--mode-yellow); }
.mode-card.orange::before { background: var(--mode-orange); }
.mode-card.red::before { background: var(--mode-red); box-shadow: 0 0 10px var(--mode-red); }
.mode-card.kids::before { background: var(--mode-kids); }
.mode-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.mode-name { font-size: 22px; font-weight: bold; color: #fff; text-transform: uppercase; }
.mode-badge { font-size: 12px; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; font-weight: bold; }
.mode-card.green .mode-badge { color: var(--mode-green); border: 1px solid var(--mode-green); }
.mode-card.yellow .mode-badge { color: var(--mode-yellow); border: 1px solid var(--mode-yellow); }
.mode-card.orange .mode-badge { color: var(--mode-orange); border: 1px solid var(--mode-orange); }
.mode-card.red .mode-badge { color: var(--mode-red); border: 1px solid var(--mode-red); }
.mode-card.kids .mode-badge { color: var(--mode-kids); border: 1px solid var(--mode-kids); }
.mode-list { list-style: none; }
.mode-list li { position: relative; padding-left: 15px; margin-bottom: 8px; font-size: 15px; color: #a0a0a0; }
.mode-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent-color); }
.features-grid, .services-grid, .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: var(--section-bg); padding: 30px; border: 1px solid var(--border-color); transition: 0.3s; }
.feature-card:hover { border-color: var(--accent-color); box-shadow: 0 0 15px rgba(0, 168, 204, 0.1); }
.feature-card h3 { color: var(--hover-color); margin-bottom: 20px; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
.feature-list { list-style: none; }
.feature-list li { position: relative; padding-left: 25px; margin-bottom: 12px; color: var(--text-color); font-size: 16px; }
.feature-list li::before { content: '✔'; position: absolute; left: 0; color: var(--accent-color); font-size: 16px; top: 2px; }
.disclaimer { font-size: 14px; color: #888; margin-bottom: 20px; font-style: italic; line-height: 1.5; }
.disclaimer a { color: var(--accent-color); font-weight: bold; font-style: normal; }
.discount-item { margin-bottom: 15px; }
.discount-item strong { color: #fff; }
.discount-note { font-size: 12px; color: #666; display: block; margin-top: 2px; }
.service-price { color: var(--accent-color); font-weight: bold; margin-left: 5px; }
.rules-intro { max-width: 900px; margin: 0 auto 40px; text-align: center; font-size: 16px; color: #a0a0a0; }
.rules-list.detailed { max-width: 900px; margin: 0 auto; background: var(--section-bg); padding: 30px; border: 1px solid var(--border-color); }
.rules-list.detailed li { margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.rules-list.detailed li:last-child { border-bottom: none; margin-bottom: 0; }
#contacts { background-color: var(--section-bg); }
.map-container { width: 100%; height: 400px; background-color: #000; border: 1px solid var(--border-color); overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.contact-item { margin-bottom: 15px; font-size: 18px; }
.contact-item strong { color: #fff; display: block; margin-bottom: 5px; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.contact-links a { display: inline-block; margin-right: 15px; margin-top: 10px; }
.booking-container { max-width: 800px; margin: 0 auto; background: var(--section-bg); padding: 40px; border: 1px solid var(--border-color); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #fff; font-weight: bold; text-transform: uppercase; font-size: 14px; }
.form-control { width: 100%; padding: 12px; background: #000; border: 1px solid var(--border-color); color: var(--text-color); }
.form-control:focus { border-color: var(--accent-color); outline: none; }
.error-text { color: var(--danger-color); font-size: 12px; display: none; margin-top: 5px; }
#timeGrid {
    width: 100%;
    display: flex;       
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 10px;           
    margin-top: 20px;
}
.slot-free {
    width: 75px;
    height: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
    user-select: none;
    border: none;
    flex-direction: column;
    line-height: 1.2;
}
.slot-free small { 
    font-size: 0.7rem; 
    font-weight: 400; 
    opacity: 0.9; 
}
.slot-free:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 8px 15px rgba(40, 167, 69, 0.4); 
    background: linear-gradient(135deg, #218838 0%, #1db98b 100%); 
}

.slot-free.selected { 
    background: linear-gradient(135deg, #00a8cc 0%, #00e5ff 100%); 
    box-shadow: 0 0 15px var(--hover-color); 
    transform: scale(1.05); 
}

.slot-booked {
    width: 75px;
    height: 50px;
    background-color: #2a2a2a;
    color: #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration: line-through;
    text-decoration-color: #ff4d4d;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    flex-direction: column;
}
.slot-booked small { 
    text-decoration: line-through; 
    font-size: 0.7rem; 
}
.slot-booked::before {
    content: '';
    position: absolute;
    top: 50%; left: -10%;
    width: 120%; height: 2px;
    background-color: rgba(255, 0, 0, 0.6);
    transform: rotate(45deg);
    pointer-events: none;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.8);
}
.slot-booked::after {
    content: '';
    position: absolute;
    top: 50%; left: -10%;
    width: 120%; height: 2px;
    background-color: rgba(255, 0, 0, 0.6);
    transform: rotate(-45deg);
    pointer-events: none;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.8);
}

@media (max-width: 600px) {
    .slot-free, .slot-booked { width: 60px; height: 45px; font-size: 0.8rem; }
    .slot-free small, .slot-booked small { font-size: 0.6rem; }
    #timeGrid { gap: 6px; }
}
.total-price { text-align: center; font-size: 24px; color: #fff; margin: 20px 0; }
.total-price span { color: var(--accent-color); font-weight: bold; font-size: 32px; }
footer { background: #000; padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); margin-top: auto; }
@keyframes flicker { 0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: 0.8; } }
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--section-bg);
    margin: 5% auto; 
    padding: 40px;
    border: 1px solid var(--accent-color);
    width: 90%; max-width: 500px;
    border-radius: 10px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
}
.close-modal:hover { color: #fff; }

#modalSubmitBtn:disabled {
    background: #333 !important;
    border-color: #333 !important;
    color: #666 !important;
}
#modalSubmitBtn:not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
    background: var(--accent-color);
    color: #000;
}
