/* style.css */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    height: 100%;
    scroll-behavior: smooth;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('../images/zadniy_fon.webp') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    background: #e67e22;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.content, .route, .relax, .contact {
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 30px;
}

.content {
    text-align: center;
    padding: 50px 20px;
}

.content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin: 0 auto 30px;
    max-width: 80%;
    line-height: 1.3;
}

/* Слайдер */
/* Слайдер */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    height: 60vh;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    will-change: transform;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.5s ease;
    flex-shrink: 0;
}

/* Анимации активных и неактивных изображений */
.slides img.active {
    transform: scale(1.1);
    z-index: 2;
}

.slides img.inactive {
    opacity: 0.7;
    filter: blur(2px);
    transform: scale(0.9);
}


/* Десктопная версия */
@media (min-width: 769px) {
    .slider {
        height: 70vh;
    }
    
    .slides {
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .slides img {
        width: 30%;
        height: 80%;
        margin: 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .slides img.active {
        transform: scale(1.1);
        z-index: 2;
    }
    
    .slides img.inactive {
        opacity: 0.7;
        filter: brightness(0.8);
        transform: scale(0.95);
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .slider {
        height: 50vh;
    }
    
    .slides {
        width: 100%;
    }
    
    .slides img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Кнопки навигации */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .slider {
        height: 50vh;
    }
    .content, .route, .relax, .contact {
        padding: 20px;
        margin: 30px auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-button {
        padding: 12px 25px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Плавное появление секций */
.section-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптация контейнера */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Гарантия видимости активного слайда */
.slides img.active {
    position: relative;
    z-index: 2;
}

/* Плавное появление */
.slider {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.slider.visible {
    opacity: 1;
    transform: translateY(0);
}