body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0a1f;
    color: #e0e0e0;
    background-image: url('img/phonovoe.jpeg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.main-container {
    background: linear-gradient(to bottom right, #1a1438, #0d0a1f);
    border-radius: 12px;
    padding: 25px;
    width: calc(100% - 50px);
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid #7c3aed;
    box-shadow: 0 0 10px rgba(240, 171, 252, 0.6), 0 0 20px rgba(167, 139, 250, 0.4);
    position: relative;
    z-index: 10;
}

.logo-title {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 90%;
}

.logo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(240, 171, 252, 0.6), 0 0 20px rgba(167, 139, 250, 0.4);
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.02);
}

/* Галерея */
.gallery-section {
    position: relative;
    z-index: 20;
    margin: 40px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.3);
}

/* Система лояльности */
.loyalty-widget {
    background: linear-gradient(135deg, #1a1438 0%, #0d0a1f 100%);
    border: 1px solid #7c3aed;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
    width: 280px;
}

.loyalty-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.loyalty-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.progress-container {
    height: 8px;
    background: #2a214d;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
}

.loyalty-progress {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #8b5cf6 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

.discount-badge {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Виджет онлайн-записи */
.online-widget {
    position: relative;
    z-index: 15;
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 10px rgba(240, 171, 252, 0.6), 0 0 20px rgba(167, 139, 250, 0.4); }
    100% { box-shadow: 0 0 15px rgba(240, 171, 252, 0.8), 0 0 30px rgba(167, 139, 250, 0.6); }
}

/* Социальные сети */
.social-section {
    margin: 40px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
}

.instagram-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
    position: relative;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-post:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.reviews-widget {
    margin-top: 30px;
}

.review-item {
    border: 1px solid #4c1d95;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.review-item:hover {
    border-color: #06b6d4;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

/* Навигация по табам */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #4b5563;
    color: #e5e7eb;
    border: none;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.tab-button:hover {
    background-color: #374151;
}

.tab-button.active {
    background-color: #7c3aed;
    color: white;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.7), 0 0 25px rgba(124, 58, 237, 0.5);
}

/* Секции бронирования */
.booking-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.booking-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #22d3ee;
    text-align: center;
    text-shadow: 0 0 5px rgba(240, 171, 252, 0.6), 0 0 10px rgba(240, 171, 252, 0.4);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .booking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #f0abfc;
}

.input-group input,
.input-group select {
    padding: 12px;
    background-color: #2a214d;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.5);
}

.input-group input::placeholder {
    color: #a78bfa;
    opacity: 0.7;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    background-color: #7c3aed;
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(240, 171, 252, 0.6);
    transition: all 0.2s;
}

.counter-btn:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

.counter-controls input {
    width: 60px;
    text-align: center;
    padding: 8px;
}

.duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.duration-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.duration-options input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #22d3ee;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-inputs input {
    width: 60px;
    text-align: center;
}

.availability-message {
    font-size: 14px;
    color: #f87171;
    margin-top: 8px;
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 20px 0;
    text-align: center;
}

.price-value {
    font-size: 24px;
    color: #22d3ee;
    text-shadow: 0 0 5px rgba(240, 171, 252, 0.6);
}

.book-btn {
    background-color: #10b981;
    color: white;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(240, 171, 252, 0.6);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.book-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Модальное окно */
.message-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.message-box.active {
    opacity: 1;
    pointer-events: auto;
}

.message-content {
    background: linear-gradient(to bottom right, #1a1438, #0d0a1f);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #7c3aed;
    box-shadow: 0 0 20px rgba(240, 171, 252, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.message-box.active .message-content {
    transform: scale(1);
}

#message-text {
    font-size: 18px;
    color: #e5e7eb;
    margin-bottom: 24px;
    line-height: 1.5;
}

.message-btn {
    background-color: #7c3aed;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(240, 171, 252, 0.6);
}

.message-btn:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

/* Анимация кубов */
.cube {
    position: absolute;
    border-radius: 2px;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1438;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #6d28d9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin-top: 40px;
    width: 100%;
}

footer a {
    color: #e0c3fc;
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 195, 252, 0.5);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    border-bottom-color: white;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
        width: calc(100% - 30px);
    }
    
    .tab-button {
        min-width: 160px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .book-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .loyalty-widget {
        width: 240px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .duration-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .counter-controls {
        gap: 8px;
    }
    
    .counter-controls input {
        width: 50px;
    }
    
    .time-inputs input {
        width: 50px;
    }
    
    .total-price {
        font-size: 18px;
    }
    
    .price-value {
        font-size: 20px;
    }
}

/* Неоновые эффекты */
.neon-box-glow {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
    transition: box-shadow 0.3s ease;
}

.neon-box-glow:hover {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.7), 0 0 30px rgba(124, 58, 237, 0.4);
}

.neon-text-glow {
    text-shadow: 0 0 5px rgba(240, 171, 252, 0.8), 0 0 10px rgba(240, 171, 252, 0.6);
    animation: text-glow-pulse 3s infinite alternate;
}

@keyframes text-glow-pulse {
    from { text-shadow: 0 0 5px rgba(240, 171, 252, 0.8), 0 0 10px rgba(240, 171, 252, 0.6); }
    to { text-shadow: 0 0 8px rgba(240, 171, 252, 1), 0 0 15px rgba(240, 171, 252, 0.8); }
}
```

### Основные улучшения:

1. **Структура и организация**: Улучшена структура кода с четкими комментариями для каждой секции.

2. **Адаптивность**: Добавлены дополнительные медиа-запросы для лучшего отображения на мобильных устройствах.

3. **Анимации**: Оптимизированы анимации (пульсация, появление элементов) для плавности работы.

4. **Доступность**: Улучшены контрастность и размеры элементов для лучшей доступности.

5. **Производительность**: Упрощены некоторые сложные градиенты и тени для лучшей производительности.

6. **Интерактивность**: Добавлены дополнительные hover-эффекты для улучшения пользовательского опыта.

7. **Исправления ошибок**: Устранены проблемы с перекрытием элементов и z-index.

8. **Семантика**: Улучшена семантическая структура стилей.

9. **Оптимизация для мобильных**: Улучшено отображение на маленьких экранах.

10. **Новые эффекты**: Добавлены дополнительные неоновые эффекты для усиления космической тематики.

Этот CSS полностью совместим с вашим HTML и сохраняет все оригинальные функции, добавляя при этом улучшения в производительности и пользовательском опыте.