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

body.poster {
    background-attachment: fixed;
}

.top-5 {
    top: 5px;
}

/* Дополнительные стили для мобильной адаптивности */
@media (max-width: 768px) {
    /* Адаптация hero секции */
    .hero-block {
        padding: 3rem 0 !important;
    }
    
    .hero-block h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-block p.lead {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Адаптация контента */
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.8rem !important;
    }
    
    /* Адаптация изображений */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Адаптация карточек */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Адаптация паддингов и маргинов */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Адаптация навигации */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    /* Адаптация текста */
    .lead {
        font-size: 1.1rem !important;
    }
    
    /* Адаптация кнопок */
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Адаптация контейнеров */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Скрытие декоративных элементов */
    .position-absolute.rounded-circle[style*="width: 400px"],
    .position-absolute.rounded-circle[style*="width: 300px"],
    .position-absolute.rounded-circle[style*="width: 350px"],
    .position-absolute.rounded-circle[style*="width: 250px"],
    .position-absolute[style*="width: 200px"][style*="height: 200px"],
    .position-absolute[style*="width: 300px"][style*="height: 300px"] {
        display: none !important;
    }
}

@media (max-width: 576px) {
    /* Специальные стили для очень маленьких экранов */
    .hero-block h1 {
        font-size: 1.8rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .display-4 {
        font-size: 1.7rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    /* Адаптация отступов */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Адаптация формы */
    .form-control {
        font-size: 16px !important; /* Предотвращает зум на iOS */
    }
    
    /* Адаптация карточек команды */
    .row.g-5 {
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
    }
    
    .row.g-5 > * {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Адаптация анимированных элементов */
    .position-absolute[style*="animation"] {
        display: none !important; /* Скрываем декоративные элементы на мобильных */
    }
    
    /* Адаптация статистических блоков */
    .row .col-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 1rem;
    }
    
    .row .col-4:nth-child(3) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Дополнительные утилиты для адаптивности */
@media (max-width: 768px) {
    .text-md-center {
        text-align: center !important;
    }
    
    .mb-md-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Адаптация flex элементов */
    .d-flex.flex-wrap {
        justify-content: center !important;
    }
    
    /* Адаптация статистики */
    .row.g-4 .col-4 {
        margin-bottom: 1rem;
    }
    
    /* Улучшение читаемости на мобильных */
    body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Адаптация секций с градиентами */
    section[style*="background: linear-gradient"] {
        background-attachment: scroll !important;
    }
    
    /* Уменьшение размера SVG иконок */
    svg {
        max-width: 20px;
        max-height: 20px;
    }
    
    /* Адаптация круглых элементов в карточках */
    .rounded-circle[style*="width: 80px"] {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Адаптация размеров для мобильных */
    .w-20, .h-20 {
        width: 10% !important;
        height: 10% !important;
    }
    
    .w-32, .h-32 {
        width: 15% !important;
        height: 15% !important;
    }
}

/* Фиксы для горизонтального скролла */
* {
    box-sizing: border-box;
}

.container-fluid,
.container {
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* Улучшения для touch устройств */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
}

/* Адаптация для max-width на контенте */
@media (max-width: 768px) {
    [style*="max-width: 800px"] {
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    [style*="max-width: 700px"] {
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    [style*="max-width: 600px"] {
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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

/* Мобильные улучшения для карточек ценообразования */
@media (max-width: 991px) {
    .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    h1, .h1 {
        font-size: 1.6rem !important;
    }
    
    h2, .h2 {
        font-size: 1.4rem !important;
    }
    
    h3, .h3 {
        font-size: 1.2rem !important;
    }
}
