/* ================================================
   ВИДЕО ФОН НА ГЛАВНОЙ СТРАНИЦЕ
   ================================================ */

.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-bg-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Затемнение для лучшей читаемости текста */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #2d7a5e;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 122, 94, 0.4);
}

.hero-cta-button:hover {
    background-color: #236249;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 122, 94, 0.6);
}

.hero-cta-button svg {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.hero-cta-button:hover svg {
    transform: translateX(5px);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .hero-video-section {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Плавное появление контента */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-cta-button {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}
