/* Футуристичный стиль для компьютерного клуба */
/* Основные переменные */
:root {
    --bg-dark: #2A2A2A;
    --bg-darker: #1E1E1E;
    --bg-light: #3D3D3D;
    --accent-primary: #7B62FE;
    --accent-secondary: #9D8BFF;
    --accent-tertiary: #6C5CE7;
    --accent-glow: 0 0 15px rgba(123, 98, 254, 0.7);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --error-color: #FF4D4D;
    --success-color: #00E676;
    --warning-color: #FFC107;
    --border-radius-large: 24px;
    --border-radius-medium: 16px;
    --border-radius-small: 8px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(123, 98, 254, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(123, 98, 254, 0.1) 0%, transparent 30%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(123, 98, 254, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(123, 98, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(123, 98, 254, 0); }
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(123, 98, 254, 0.3); }
    to { text-shadow: 0 0 20px rgba(123, 98, 254, 0.7); }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius-medium);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.auth-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(123, 98, 254, 0.5));
    transition: var(--transition-medium);
    display: block;
    margin: 0 auto;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    transition: var(--transition-medium);
    opacity: 0.9;
}

.btn:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

.btn-primary {
    color: white;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(123, 98, 254, 0.9);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(123, 98, 254, 0.1);
    box-shadow: var(--accent-glow);
}

.btn-telegram {
    background: #0088cc;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-vk {
    background: #4C75A3;
}

/* Уведомления */
.alert {
    padding: 15px;
    border-radius: var(--border-radius-medium);
    margin-bottom: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    background: rgba(61, 61, 61, 0.7);
    border-left: 4px solid;
}

.alert-error {
    border-color: var(--error-color);
    color: var(--error-color);
}

.alert-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

/* Лоадер */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(123, 98, 254, 0.2);
    border-top: 5px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--text-primary);
    animation: fadeInUp 1s ease, textGlow 3s ease-in-out infinite alternate;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    margin: 10px auto;
    border-radius: 2px;
}

/* Стили для галереи */
.gallery {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Модальное окно галереи */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ccc;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    padding: 0 20px;
    transition: color 0.3s;
}

.nav-arrow:hover {
    color: #ccc;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.image-caption {
    color: white;
    text-align: center;
    padding: 15px 0;
    max-width: 800px;
}

.image-caption h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.image-caption p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

#imageCounter {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Стили для новостных карточек */
.news {
    padding: 60px 0;
    background-color: var(--bg-darker);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(123, 98, 254, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(123, 98, 254, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 992px) {
    .booking-content,
    .contacts-content {
        flex-direction: column;
    }
    
    .booking-image,
    .contacts-map {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(42, 42, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-medium);
        z-index: 999;
    }
    
    .nav ul.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .nav-arrow {
        font-size: 30px;
    }
    
    .close-modal {
        font-size: 25px;
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}
/* Стили для модального окна с предупреждением */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.warning-modal {
    background: var(--bg-light);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    border: 2px solid #8e79ff;
    animation: slideInUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.warning-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9480fe, #9681fe);
}

.warning-header {
    text-align: center;
    margin-bottom: 2rem;
}

.warning-header i {
    font-size: 3rem;
    color: #9681fe;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.warning-header h3 {
    color: #9581fe;
    font-size: 1.8rem;
    margin: 0;
    /* text-shadow: 0 0 10px rgba(255, 193, 7, 0.3); */
}

.warning-content {
    margin-bottom: 2.5rem;
}

.warning-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.warning-content strong {
    color: #846cfe;
}

.warning-alert {
    background: rgb(61 52 107);
    border: 1px solid rgb(148 127 254);
    border-radius: var(--border-radius-medium);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.warning-alert i {
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-alert span {
    color: var(--text-primary);
    font-weight: 500;
}

.warning-footer {
    text-align: center;
}

.btn-continue {
    background: linear-gradient(45deg, #826afe, #9884fe);
    color: #2A2A2A;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-medium);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-continue:disabled {
    background: var(--bg-darker);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-continue:not(:disabled):hover {
    background: linear-gradient(45deg, #8d7af2, #3d346b);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgb(255 255 255 / 40%);
}

.btn-continue:not(:disabled):active {
    transform: translateY(-1px);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.010);
        opacity: 0.8;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .warning-modal {
        padding: 2rem;
    }
    
    .warning-header h3 {
        font-size: 1.5rem;
    }
    
    .warning-header i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .warning-modal {
        padding: 1.5rem;
    }
    
    .warning-header h3 {
        font-size: 1.3rem;
    }
    
    .btn-continue {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}