/* Parallax система */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ЧИСТЫЙ CSS ПАРАЛЛАКС */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* Контейнер для параллакса */
.parallax-container {
    position: relative;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 1px;
    transform-style: preserve-3d;
    scroll-behavior: smooth;
}

/* ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ ФОНОВ */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateZ(-4px) scale(5);
    z-index: -1;
    pointer-events: none;
}

/* ПЕРВЫЙ ФОН */
.parallax-bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        linear-gradient(
            to bottom,
            rgba(26, 32, 44, 0.8) 0%,
            rgba(26, 32, 44, 0.5) 25%,
            rgba(26, 32, 44, 0.3) 50%,
            rgba(26, 32, 44, 0.1) 75%,
            transparent 100%
        ),
        url('../images/gym-bg.jpg') center/cover no-repeat;
}

/* ВТОРОЙ ФОН */
.parallax-bg-2 {
    position: absolute;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        linear-gradient(
            to bottom,
            rgba(26, 32, 44, 0.1) 0%,
            rgba(26, 32, 44, 0.3) 25%,
            rgba(26, 32, 44, 0.5) 50%,
            rgba(26, 32, 44, 0.8) 75%,
            rgba(26, 32, 44, 0.9) 100%
        ),
        url('../images/gym-bg2.jpg') center/cover no-repeat;
}

/* ТРЕТИЙ ФОН */
.parallax-bg-3 {
    position: absolute;
    top: 200vh;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: 
        linear-gradient(
            to bottom,
            rgba(26, 32, 44, 0.1) 0%,
            rgba(26, 32, 44, 0.3) 25%,
            rgba(26, 32, 44, 0.5) 50%,
            rgba(26, 32, 44, 0.8) 75%,
            rgba(26, 32, 44, 0.9) 100%
        ),
        url('../images/gym-bg3.jpg') center/cover no-repeat;
}

/* Весь контент сайта - ПЕРЕДНИЙ СЛОЙ */
.page-content {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    min-height: 100%;
    background: transparent;
    padding-bottom: 50px;
}

/* Секции контента */
.content-section {
    position: relative;
    z-index: 2;
    min-height: auto;
    padding: 80px 0;
}

/* Герой-секция */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
    
    .hero-section {
        height: 90vh;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 40px 0;
    }
}
