/* =======================================================
   HERO_BLOCK.CSS - Стили для hero секции
   ======================================================= */

.hero-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image-container img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.hero-image-container:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #9d99c6, #6c688a);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.hero-section .display-4 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Анимация появления hero контента */
.hero-section .col-lg-6:first-child {
    animation: slideInLeft 1s ease-out;
}

.hero-section .col-lg-6:last-child {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Кнопки в hero секции */
.hero-section .btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 2px solid transparent;
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    color: white !important;
}

.hero-section .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
    color: white !important;
}

/* Улучшение расстояний в placeholder */
.hero-placeholder .text-center h3 {
    margin-bottom: 0.5rem !important;
}

.hero-placeholder .text-center p {
    margin-bottom: 1.5rem !important;
    opacity: 0.8;
}

/* =======================================================
   MEDIA QUERIES
   ======================================================= */

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-placeholder {
        height: 250px;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    /* Увеличение отступов между блоками в мобильной версии */
    .hero-content {
        margin-bottom: 3rem !important;
    }
    
    .hero-image-container {
        margin-top: 2rem !important;
    }
    
    /* Улучшение расстояний в мобильной версии */
    .hero-placeholder .text-center p {
        margin-bottom: 2rem !important;
        font-size: 0.9rem;
    }
    
    /* Усиление контрастности кнопки на мобильных */
    .hero-section .btn-primary {
        border: 3px solid rgba(255, 255, 255, 0.3);
        font-size: 1.1rem;
        padding: 12px 24px;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .btn-primary:hover {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-placeholder {
        height: 200px;
    }
    
    /* Увеличение отступов между блоками для очень маленьких экранов */
    .hero-content {
        margin-bottom: 4rem !important;
    }
    
    .hero-image-container {
        margin-top: 3rem !important;
    }
    
    /* Дополнительные отступы для очень маленьких экранов */
    .hero-placeholder .text-center p {
        margin-bottom: 2.5rem !important;
    }
    
    .hero-section .btn-primary {
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 2rem !important;
    }
}