/* --- ОБЩИЕ СТИЛИ И ШРИФТЫ --- */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Slab', serif;
    color: #fff;
    overflow: hidden;
    /* Важно для fullPage.js */
}

* {
    box-sizing: border-box;
}

/* --- ГРАДИЕНТЫ ДЛЯ СЕКЦИЙ --- */
.section-1 {
    background: linear-gradient(180deg, #8eb0e5 0%, #e7b9cc 50%, #f17954 100%);
}

.section-2 {
    background: linear-gradient(180deg, #f17954 0%, #d8637c 50%, #a043a1 100%);
}

.section-3 {
    background: linear-gradient(180deg, #a043a1 0%, #643c94 50%, #372f79 100%);
}

.section-4 {
    background: linear-gradient(180deg, #372f79 0%, #2f4858 50%, #1e5a6e 100%);
}

.section-5 {
    background: linear-gradient(180deg, #1e5a6e 0%, #29806a 50%, #78b087 100%);
}

.section-6 {
    background: linear-gradient(180deg, #78b087 0%, #29806a 50%, #1e5a6e 100%);
}

/* --- АДАПТИВНАЯ СЕТКА БЛОКОВ --- */
.fixed-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
    height: 120px;
    /* Фиксированная высота для расчетов */
}

.header-content {
    text-align: left;
    display: inline-block;
    max-width: 600px;
    width: 100%;
    /* Занимаем всю доступную ширину */
    padding: 0 15px;
    /* Добавляем внутренние отступы */
}

.fixed-header h1 {
    font-size: 34px;
    margin: 0 0 10px 0;
}

.fixed-header p {
    font-size: 18px;
    opacity: 0.8;
    margin: 0;
}

.fixed-banner {
    position: fixed;
    top: 220px;
    /* Отступ от header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    height: 600px;
    /* Фиксированная высота баннера для десктопа */
    opacity: 0;
    /* Изначально скрыт */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fixed-banner.show {
    opacity: 1;
    visibility: visible;
}

.fixed-banner .banner-title {
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.fixed-banner iframe {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 15px 12px rgba(0, 0, 0, 0.1);
    /* Отключаем события мыши для iframe, чтобы не блокировать скролл */
    pointer-events: none;
    /* Но разрешаем клики по содержимому */
    touch-action: none;
    width: 300px;
    height: 420px;
}

/* Разрешаем взаимодействие при наведении */
.fixed-banner:hover iframe {
    pointer-events: auto;
}

/* --- РАКЕТА --- */
.rocket-container {
    position: fixed;
    z-index: 15;
    transform: translateY(-50%) translateX(-50%);

}

#rocket {
    width: 100%;
    transform-origin: bottom center;
}

/* --- ИНДИВИДУАЛЬНЫЕ СТИЛИ РАКЕТЫ ДЛЯ КАЖДОГО СЛАЙДА --- */

/* Ракета для слайда 1 */
.rocket-slide-1 {
    top: 560px;
    left: 49%;
    width: 200px;
    height: 200px;
}

/* Ракета для слайда 2 */
.rocket-slide-2 {
    top: 280px;
    left: 50%;
    width: 220px;
    height: 220px;
}

/* Ракета для слайда 3 */
.rocket-slide-3 {
    top: 280px;
    left: 50%;
    width: 220px;
    height: 220px;
}

/* Ракета для слайда 4 */
.rocket-slide-4 {
    top: 310px;
    left: 50%;
    width: 280px;
    height: 280px;
}

/* Ракета для слайда 5 */
.rocket-slide-5 {
    top: 310px;
    left: 50%;
    width: 280px;
    height: 280px;
}

/* Ракета для слайда 6 */
.rocket-slide-6 {
    top: 280px;
    left: 50%;
    width: 210px;
    height: 210px;
}

/* --- КОНТЕНТ ВНУТРИ СЛАЙДОВ --- */
.section {
    position: relative;
}

.content-block {
    position: absolute;
    top: 500px;
    /* Позиция ниже баннера */
    left: 50%;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translate(-50%, 30px);
    min-height: 200px;
    /* Минимальная высота для контента */
}

.content-number {
    font-size: 48px;
    font-weight: 700;
    margin-right: 20px;
    opacity: 0.5;
}

.content-text h2 {
    margin: 0 0 15px 0;
    font-size: 38px;
    line-height: 1.1;
}

.content-text p {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.2;
}

.content-text small {
    opacity: 0.7;
}

/* --- КОНТАКТЫ В ФУТЕРЕ --- */
.fixed-contacts {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 20;
    height: 80px;
}

.fixed-contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.5) 50%, transparent 50%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-link img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Стилизация навигационных точек */
#fp-nav ul li a span {
    background: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease !important;
}

#fp-nav ul li a.active span {
    background: #fff !important;
    animation: pulse 2s infinite;
}

/* Анимация пульсации для активной точки */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .fixed-header {
        top: 10px;
        height: 100px;
        padding: 0 15px;
        /* Увеличиваем отступы для мобильных */
    }

    .header-content {
        padding: 0 20px;
        /* Дополнительные внутренние отступы */
    }

    .fixed-header h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    .fixed-header p {
        font-size: 16px;
        line-height: 1.1;
    }

    .fixed-banner {
        top: 170px;
        height: 250px;
        /* Высота для мобильного баннера */
    }

    .fixed-banner iframe {
        /* width: 300px; */
        /* height: 250px; */
        /* Размеры мобильного баннера */
        /* Отключаем события мыши для iframe, чтобы не блокировать скролл */
        pointer-events: none;
        /* Но разрешаем клики по содержимому */
        touch-action: none;
    }

    /* Ракета для слайда 1 - мобильная */
    .rocket-slide-1 {
        top: 245px;
        left: 35%;
        width: 100px;
        height: 100px;
    }

    /* Ракета для слайда 2 - мобильная */
    .rocket-slide-2 {
        top: 265px;
        left: 50%;
        width: 180px;
        height: 180px;
    }

    /* Ракета для слайда 3 - мобильная */
    .rocket-slide-3 {
        top: 270px;
        left: 50%;
        width: 180px;
        height: 180px;
    }

    /* Ракета для слайда 4 - мобильная */
    .rocket-slide-4 {
        top: 290px;
        left: 50%;
        width: 220px;
        height: 220px;
    }

    /* Ракета для слайда 5 - мобильная */
    .rocket-slide-5 {
        top: 290px;
        left: 50%;
        width: 220px;
        height: 220px;
    }

    /* Ракета для слайда 6 - мобильная */
    .rocket-slide-6 {
        top: 260px;
        left: 50%;
        width: 180px;
        height: 180px;
    }

    .content-block {
        top: 440px;
        /* Позиция ниже мобильного баннера */
        padding: 0 20px;
        /* Увеличиваем отступы */
    }

    .content-number {
        font-size: 30px;
    }

    .content-text h2 {
        font-size: 28px;
        line-height: 1.1;
        margin-bottom: 5px;
    }

    .content-text p {
        font-size: 18px;
        line-height: 1.2;
    }

    .fixed-contacts {
        padding: 15px 20px;
        justify-content: space-between;
        gap: 10px;
        height: 40px;
        bottom: 15px;


    }

    .fixed-contacts::before {
        left: 20px;
        right: 20px;
        margin-top: -10px;
    }

    .contact-link {
        display: flex;
        align-items: left;
        text-decoration: none;
        color: #fff;
        font-size: 12px;
        transition: opacity 0.3s;
    }

}


/* --- СТРЕЛКА ПРОКРУТКИ --- */
.scroll-arrow {
    position: fixed;
    /* Изменено на fixed для более надежного позиционирования */
    bottom: 120px;
    /* Отступ от низа, чтобы не накладывалась на футер */
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-arrow img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* --- АДАПТИВНОСТЬ ДЛЯ СТРЕЛКИ --- */
@media (max-width: 768px) {
    .scroll-arrow {
        position: fixed;
        bottom: 85px !important;
        /* Принудительно применяем значение */
        left: 50%;
        transform: translateX(-50%);
    }

    .scroll-arrow img {
        width: 25px;
        height: 25px;
    }
}

/* --- ФИНАЛЬНЫЕ СТИЛИ ДЛЯ НИЗКИХ ЭКРАНОВ (В КОНЦЕ ФАЙЛА) --- */
@media screen and (max-height: 1150px) and (min-width: 800px) {
    .fixed-banner {
        top: 180px;
        /* Высота для маленького баннера */
    }

    .fixed-banner iframe {
        /* width: 300px !important; */
        /* height: 250px !important; */
        /* Размеры маленького баннера */
        /* Отключаем события мыши для iframe, чтобы не блокировать скролл */
        pointer-events: none;
        /* Но разрешаем клики по содержимому */
        touch-action: none;
    }

    /* Ракета для слайда 1 - низкий экран */
    .rocket-slide-1 {
        top: 345px !important;
        /* 220px (banner top) + 125px (половина высоты 250px) */
    }

    /* Ракета для слайда 2 - низкий экран */
    .rocket-slide-2 {
        top: 299px !important;
    }

    /* Ракета для слайда 3 - низкий экран */
    .rocket-slide-3 {
        top: 299px !important;
    }

    /* Ракета для слайда 4 - низкий экран */
    .rocket-slide-4 {
        top: 299px !important;
    }

    /* Ракета для слайда 5 - низкий экран */
    .rocket-slide-5 {
        top: 299px !important;
    }

    /* Ракета для слайда 6 - низкий экран */
    .rocket-slide-6 {
        top: 265px !important;
    }

    .content-block {
        top: 500px !important;
        /* Позиция ниже маленького баннера: 220px + 250px + 20px отступ */
    }

    .scroll-arrow {
        bottom: 125px !important;
        /* Корректировка для низких экранов */
    }

    .scroll-arrow img {
        width: 25px !important;
        height: 25px !important;
    }
}

.hover-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(0, 150, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.fixed-contacts::before {
    pointer-events: none;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #9370DB;
    animation: spin 2s linear infinite;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #BA55D3;
    animation: spin 3s linear infinite;
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #FF00FF;
    animation: spin 1.5s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}