/* Специальные фиксы для iPhone SE (375x667) */

/* Фикс для правильного центрирования на iPhone SE */
@media only screen 
    and (min-device-width: 375px) 
    and (max-device-width: 375px)
    and (device-height: 667px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    /* Hero секция с правильным центрированием */
    .hero-section {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Обертка для контента */
    .hero-section > .container {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 40px;
    }
    
    .hero-section .row {
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px 10px !important;
        margin: 0 !important;
    }
    
    /* Заголовок */
    .hero-content h1 {
        font-size: 2.5rem !important;
        font-weight: 800 !important;
        margin-bottom: 1.2rem !important;
        line-height: 1 !important;
        letter-spacing: -1px !important;
    }
    
    /* Подзаголовок */
    .hero-content p.lead {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 2rem !important;
        opacity: 0.9;
    }
    
    /* Группа кнопок с правильными отступами */
    .btn-group-hero {
        margin-top: 30px !important;
        gap: 15px !important;
    }
    
    /* Кнопки */
    .btn-primary-custom {
        padding: 16px 30px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Иконки в кнопках */
    .btn-primary-custom i {
        margin-right: 8px !important;
        font-size: 1.1rem !important;
    }
    
    /* Индикатор скролла */
    .scroll-indicator {
        position: absolute !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Дополнительный фикс для всех устройств с шириной 375px */
@media (width: 375px) {
    /* Убеждаемся что контент не наезжает друг на друга */
    .hero-section {
        overflow: hidden;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    /* Фикс для длинного текста */
    .hero-content h1,
    .hero-content p {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Кнопки не должны выходить за края */
    .btn-group-hero {
        padding: 0 10px;
    }
}

/* Ландшафтная ориентация iPhone SE */
@media only screen 
    and (min-device-width: 375px) 
    and (max-device-width: 667px)
    and (orientation: landscape)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .hero-section {
        min-height: 100vh;
        padding: 20px 0 !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-content p.lead {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .btn-group-hero {
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center !important;
    }
    
    .btn-primary-custom {
        width: auto !important;
        flex: 1 !important;
        max-width: 200px !important;
    }
    
    .scroll-indicator {
        display: none !important;
    }
}