@media (max-width:991px) {
    body.poster {
        margin-top: 60vh;
    }
}

body.poster {
    background-attachment: fixed;
}

.top-5 {
    top: 5px;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    /* Основные исправления для мобильных устройств */
    
    /* Контейнеры и секции */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Hero секция */
    .hero-block {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-block .display-3 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-block .lead {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Кнопки */
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Заголовки */
    .display-4 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    /* Карточки */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Изображения */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Анимированные элементы - уменьшить размеры */
    .position-absolute[style*="width: 200px"],
    .position-absolute[style*="width: 300px"],
    .position-absolute[style*="width: 400px"] {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Секции */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Контактная форма */
    .form-control {
        font-size: 16px !important; /* Предотвращает зум на iOS */
    }
    
    /* Навигация */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    /* Статистика и иконки */
    .bg-gradient[style*="width: 70px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    
    /* Округлые элементы */
    .rounded-circle[style*="width: 120px"] {
        width: 80px !important;
        height: 80px !important;
    }
    
    .rounded-circle[style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 576px) {
    /* Экстра маленькие экраны */
    
    .hero-block .display-3 {
        font-size: 1.5rem !important;
    }
    
    .hero-block .lead {
        font-size: 0.9rem !important;
        padding: 0 1rem;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .display-5 {
        font-size: 1.3rem !important;
    }
    
    /* Кнопки в ряд на маленьких экранах */
    .d-flex.flex-wrap.justify-content-center.gap-3 {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .btn-lg {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Карточки команды */
    .card-body {
        padding: 1rem !important;
    }
    
    /* Уменьшить отступы */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Предотвращение горизонтального скролла */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Фиксированные элементы с анимацией */
.position-absolute[style*="animation"] {
    max-width: 100vw !important;
    max-height: 100vh !important;
}

/* Фоновые изображения */
@media (max-width: 768px) {
    .background-cover {
        background-attachment: scroll !important;
    }
}
