/* ============================================
   БЛОК 1: ОБЛОЖКА (HERO SECTION) - ФИКСИРОВАННЫЙ ФОН
   ============================================ */

.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}



.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
}

/* ЕДИНЫЙ контейнер для всего контента */
.hero-content-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 20px auto 0;
}

/* Главный контентный блок - ОДИН на всю страницу */
.hero-content {
    width: 100%;
    text-align: center;
    padding: 60px 40px;
    background: rgba(131, 131, 131, 0.2); /* МЕНЬШЕ прозрачности! */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: containerAppear 1.2s ease-out 0.3s both;
}

/* Логотип/подпись AiMax*/
.hero-tagline {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: inline-block;
    padding: 12px 24px;
    background: rgba(79, 172, 254, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.8s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

/* Эффект свечения для подписи */
.hero-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shine 3s ease-in-out infinite;
}

/* Главный заголовок */
.hero-title {
    font-size: 68px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(53, 143, 223, 0.3);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #a5d8ff 50%, 
        #266dac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Подзаголовок */
.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* БЛОК ДЛЯ ДОПОЛНИТЕЛЬНОГО КОНТЕНТА */
.hero-content-bottom {
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

/* Кнопка для примера (если понадобится) */
.hero-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.hero-cta-button:hover::before {
    left: 100%;
}

/* Декоративные элементы */
.hero-decoration {
    position: fixed; /* Фиксируем на фоне */
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.hero-decoration-1 {
    top: 15%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(79, 172, 254, 0.4) 0%, 
        rgba(79, 172, 254, 0.1) 50%,
        transparent 70%);
}

.hero-decoration-2 {
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(0, 242, 254, 0.3) 0%, 
        rgba(0, 242, 254, 0.05) 50%,
        transparent 70%);
    animation-delay: -4s;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Эффект частиц */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================ */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-content-container {
        max-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: 0vh;
        padding: 10px;
    }
    
    .hero-content {
        padding: 40px 30px;
    }

    .hero-content-container {
        margin: 10px auto 0; /* Минимальный отступ */
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-tagline {
        font-size: 13px;
    }
    
    /* На планшетах отключаем fixed фон */
    .hero-bg {
        position: absolute;
    }
    
    .hero-decoration {
        position: absolute;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 10vh;
        padding: 10px;
    }
    
    .hero-content {
        padding: 30px 20px;
        backdrop-filter: blur(5px);
    }

    .hero-content-container {
        margin: 10px auto 0; /* Минимальный отступ */
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .hero-tagline {
        font-size: 12px;
        letter-spacing: 2px;
        padding: 10px 20px;
        margin-bottom: 20px;
    }
    
    .hero-content-bottom {
        padding: 20px;
    }
    
    .hero-cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 10vh;
        padding: 10px;
    }
    
    .hero-content {
        padding: 25px 15px;
        border-radius: 16px;
    }

    .hero-content-container {
        margin: 10px auto 0; /* Минимальный отступ */
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-tagline {
        font-size: 11px;
        padding: 8px 16px;
    }
    
    .hero-decoration-1,
    .hero-decoration-2 {
        display: none;
    }
}


/* Контейнер для аккордеона */
.accordion-wrapper {
    width: 100%;
    padding: 0 10px;
    background: transparent;
    border: none;
}

@media (min-width: 768px) {
    .accordion-wrapper {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 0 20px; /* Или 0, если основной контейнер не имеет боковых паддингов */
    }
}