/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

body.parallax-mobile {
    overflow-x: hidden;
    background: #000;
}

/* Секции параллакса */
.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
  
}

#section1 {
    justify-content: right;
}

#section2 {
    justify-content: left;
}

#section3 {
    justify-content: right;
}       

#section4 {
    justify-content: left;
}



/* Фоновые изображения */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    opacity: 0; /* По умолчанию невидимы */
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1); /* Очень плавный переход */
}

.parallax-bg img{ display:none;}
/* Активный фон */
.parallax-bg.active {
    opacity: 1; /* Активный фон видим */
}

body.parallax-mobile .parallax-bg {
    position: absolute;
    opacity: 1;
    transition: none;
    background-attachment: scroll;
    filter: brightness(0.85);
}

body.parallax-mobile .parallax-text {
    transform: none !important;
    transition: none !important;
  /*  background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);*/
    padding: 32px 24px;
}

body.parallax-mobile .parallax-section::before {
    display: none;
}

body.parallax-mobile .parallax-section {
    align-items: flex-start;
    padding: 80px 20px 100px;
}

body.parallax-mobile .parallax-content {
    width: 100%;
    max-width: 100%;
    float: none;
}

body.parallax-mobile .parallax-text p,
body.parallax-mobile .parallax-text h2 {
    text-align: left;
}

body.parallax-mobile .contact-icons {
    top: auto;
    bottom: 24px;
    right: 16px;
    transform: none;
    gap: 16px;
}

body.parallax-mobile .contact-icon {
    width: 56px;
    height: 56px;
}

/* Контент поверх фона */
.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 1800px;
    width: 100%;
    padding: 0 20px;
    float: right;
}

/* Текст с эффектом параллакса */
.parallax-text {
    padding: 40px;
    border-radius: 15px;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Очень плавная анимация */
}

.parallax-text h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.parallax-text-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.parallax-text-body p {
    margin: 0;
}

.parallax-text-body ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parallax-text-body li {
    margin: 0;
}

/* Эффект затемнения для лучшей читаемости */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.65) 100%);
}

/* Адаптивность */

@media (max-width: 999px) {
.parallax-bg img{ display:block; height:100vh;}
}

@media (max-width: 768px) {
    .parallax-text h2 {
        font-size: 2rem;
    }
    
    .parallax-text p {
        font-size: 1.2rem;
    }
    
    .parallax-text {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    
    #section3 h2  {line-height: 30px;   font-size: 1.2rem;

}   

#section3 .parallax-text-body {line-height: 1.2rem;

} 


    .parallax-text h2 {
        font-size: 1.5rem;
    }
    
    .parallax-text p {
        font-size: 1rem;
    }
    
    .parallax-text {
        padding: 5px;
    }
    
    .parallax-text-body span, .parallax-text-body p {line-height: 1.3;}
}

/* ========================================
   ИКОНКИ КОНТАКТОВ
   ======================================== */

.contact-icons {
    position: fixed;
    top: 80%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.contact-icon svg {
    width: 48px;
    height: 48px;
}

/* Telegram иконка */
.telegram-icon {
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    animation: pulse-telegram 2s ease-in-out infinite;
}

.telegram-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    animation: none; /* Останавливаем мерцание при наведении */
}

/* Телефон иконка */
.phone-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    animation: pulse-phone 2.5s ease-in-out infinite;
}

.phone-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: none; /* Останавливаем мерцание при наведении */
}

/* Анимация мерцания для Telegram */
@keyframes pulse-telegram {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 136, 204, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(0, 136, 204, 0);
    }
}

/* Анимация мерцания для телефона */
@keyframes pulse-phone {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}





/* Адаптивность для иконок */
@media (max-width: 768px) {
    .contact-icons {
        right: 15px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .contact-icons {
        right: 10px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon svg {
        width: 28px;
        height: 28px;
    }
}