/* Герой секция */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9), rgba(30, 30, 30, 0.95));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #FFFFFF, #B0B0B0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(123, 98, 254, 0.3);
    animation: fadeInUp 1s ease, textGlow 3s ease-in-out infinite alternate;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.btn.pulse {
    animation: pulse 2s infinite;
}

/* Анимированный фон для герой-секции */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Сетка фона */
.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(123, 98, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 98, 254, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.9;
}

/* Схема материнской платы */
.bg-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="rgba(123, 98, 254, 0.1)" stroke-width="0.5"/><path d="M30,30 L70,30 L70,70 L30,70 Z" fill="none" stroke="rgba(123, 98, 254, 0.1)" stroke-width="0.5"/><path d="M40,40 L60,40 L60,60 L40,60 Z" fill="none" stroke="rgba(123, 98, 254, 0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="5" fill="none" stroke="rgba(123, 98, 254, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
    opacity: 0.1;
}

/* Электрические разряды */
.electric-line {
    position: absolute;
    height: 3px;
    width: 123px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform-origin: left center;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: electricFlash 0.9s linear forwards;
    z-index: 1;
}

@keyframes electricPulse {
    0% {
        opacity: 0;
        transform: translate(0, 0);
        background-position: 10% 10%;
    }
    10% {
        opacity: 0.8;
    }
    20% {
        background-position: 30% 50%;
    }
    30% {
        background-position: 70% 20%;
    }
    40% {
        opacity: 0.8;
        background-position: 80% 80%;
    }
    50% {
        background-position: 50% 60%;
    }
    60% {
        background-position: 20% 30%;
    }
    70% {
        opacity: 0.8;
        background-position: 90% 10%;
    }
    80% {
        background-position: 40% 70%;
    }
    90% {
        opacity: 0;
    }
    100% {
        transform: translate(50px, 50px);
        background-position: 60% 90%;
    }
}

@keyframes electricFlash {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

/* Галерея */
.gallery {
    padding: 100px 0;
    background-color: var(--bg-dark);
    position: relative;
}

/* Горизонтальный слайдер для всех устройств */
.gallery-slider {
    display: block;
    position: relative;
    margin-top: 50px;
    overflow: hidden;
}

.gallery-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    margin: 0;
    padding-left: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.gallery-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.gallery-slider-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    background: rgba(61, 61, 61, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(123, 98, 254, 0.1);
    transition: var(--transition-medium);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    margin: 0;
}

.gallery-slider-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    border-radius: var(--border-radius-large);
    opacity: 0;
    transition: var(--transition-medium);
    background-size: 200% 200%;
}

.gallery-slider-item:hover::before {
    opacity: 0.7;
    animation: borderGlow 2s linear infinite;
}

.gallery-slider-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(123, 98, 254, 0.3);
}

.gallery-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
    background: rgba(30, 30, 30, 0.8);
}

.gallery-slider-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: var(--transition-medium);
}

.gallery-slider-item:hover .gallery-slider-overlay {
    transform: translateY(0);
}

.gallery-slider-overlay h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.gallery-slider-overlay p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Стрелки слайдера */
.slider-arrows {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(123, 98, 254, 0.2);
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-medium);
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slider-arrow::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;
}

.slider-arrow:hover::before {
    opacity: 1;
}

.slider-arrow:hover:not(.disabled) {
    box-shadow: var(--accent-glow);
    transform: scale(1.1);
    border-color: transparent;
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-arrow.disabled:hover::before {
    opacity: 0;
}

.slider-arrow.disabled:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--accent-primary);
}

/* Индикатор текущего слайда */
.slider-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(123, 98, 254, 0.3);
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition-medium);
}

.slider-dot.active {
    transform: scale(1.2);
}

.slider-dot.active::before {
    transform: scale(1);
}

.slider-dot:hover {
    transform: scale(1.1);
}

/* Прогресс-бар для слайдера */
.slider-progress {
    width: 100%;
    height: 4px;
    background: rgba(123, 98, 254, 0.2);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Анимации для слайдера */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-slider-item.visible {
    animation: slideIn 0.5s ease forwards;
}

/* Адаптивность для ПК - всегда показываем по одному слайду */
@media (min-width: 1200px) {
    .gallery-slider-item {
        flex: 0 0 100%;
        aspect-ratio: 16/9;
        max-width: 100%;
    }
    
    .gallery-slider-container {
        gap: 0;
        padding: 20px 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gallery-slider-item {
        flex: 0 0 100%;
        aspect-ratio: 16/9;
        max-width: 100%;
    }
    
    .gallery-slider-container {
        gap: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-slider-item {
        flex: 0 0 100%;
        aspect-ratio: 16/9;
        max-width: 100%;
    }
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .gallery-grid {
        display: none;
    }
    
    .gallery-slider {
        display: block;
    }
    
    .gallery-slider-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .gallery-slider-overlay {
        padding: 15px;
    }
    
    .gallery-slider-overlay h3 {
        font-size: 1.1rem;
    }
    
    .gallery-slider-overlay p {
        font-size: 0.85rem;
    }
}

/* Улучшенная версия для очень маленьких экранов */
@media (max-width: 480px) {
    .gallery-slider-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .gallery-slider-overlay {
        padding: 12px;
    }
    
    .gallery-slider-overlay h3 {
        font-size: 1rem;
    }
    
    .gallery-slider-overlay p {
        font-size: 0.8rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Дополнительные стили для улучшенного UX */
.gallery-slider-container {
    cursor: grab;
}

.gallery-slider-container:active {
    cursor: grabbing;
}

/* Центрирование слайдов */
.gallery-slider-item {
    margin: 0 auto;
}

/* Бронирование */
.booking {
    padding: 100px 0;
    background-color: var(--bg-darker);
    position: relative;
}

.booking-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.booking-info {
    flex: 1;
}

.booking-image {
    flex: 1;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    transition: var(--transition-medium);
}

.booking-image img {
    width: 100%;
    height: auto;
    display: block;
}

.booking-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Контакты */
.contacts {
    padding: 100px 0;
    background-color: var(--bg-dark);
    position: relative;
}

.contacts-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contacts-info {
    flex: 1;
}

.contacts-map {
    flex: 1;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
    height: 100%;
    margin: 0;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(61, 61, 61, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
    border: 1px solid rgba(123, 98, 254, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgb(0 0 0 / 50%);
    z-index: -1;
    border-radius: var(--border-radius-medium);
    opacity: 0;
    transition: var(--transition-medium);
    background-size: 200% 200%;
}

.contact-item:hover::before {
    opacity: 0.7;
    animation: borderGlow 2s linear infinite;
}

.contact-item:hover {
    transform: translateX(10px);
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-secondary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    min-width: 30px;
    text-align: center;
}