/* ============ АДАПТИВНОСТЬ ============ */

/* Десктоп (≥993px) */
@media (min-width: 993px) {
    .mobile-menu {
        display: none;
    }
    
    .top-header {
        display: none;
    }
    
    .mobile-header-right {
        display: none;
    }
    
    .quick-links-container-home {
        display: none !important;
    }
    
    .main-content {
        margin-left: 300px;
    }
    
    .main-footer {
        width: calc(100% - 300px);
        margin-left: 300px !important;
    }
}

/* Планшет и мобильные (≤992px) */
@media (max-width: 992px) {
    .desktop-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-header-right {
        display: flex;
    }
    
    /* Отступ сверху для всех секций кроме главной */
    .content-section:not(.home-section) {
        padding-top: 80px !important;
    }
    
    /* Быстрые кнопки показываются только когда body имеет класс home-section-active */
    body.home-section-active .quick-links-container-home {
        display: flex !important;
        position: fixed !important; /* Фиксированная позиция для мобильных */
        top: 70px !important;
        right: 10px !important;
    }
    
    /* На других страницах скрываем кнопки */
    body:not(.home-section-active) .quick-links-container-home {
        display: none !important;
    }
    
    .main-footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Размеры заголовков на мобильных */
    .content-section h2 {
        font-size: 1.6rem;
    }
}

/* Планшет (768px-992px) */
@media (max-width: 992px) and (min-width: 768px) {
    .content-card {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-phone {
        font-size: 1.3rem;
    }
    
    .trainer-card-main {
        padding: 1.5rem;
    }
    
    .trainer-name-main {
        font-size: 1.8rem;
    }
    
    .trainer-specialty-main {
        font-size: 1.1rem;
    }
    
    .achievement-section {
        padding: 1.5rem;
    }
    
    .video-container-9-16 {
        padding-bottom: 177.78%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Мобильные (≤768px) */
@media (max-width: 768px) {
    .mobile-header-right {
        gap: 12px;
    }
    
    .mobile-social-icons {
        gap: 10px;
    }
    
    .social-icon {
        font-size: 1.2rem;
    }
    
    body.home-section-active .quick-links-container-home {
        top: 70px !important;
        right: 8px !important;
        gap: 6px;
    }
    
    .quick-link-home {
        padding: 6px 10px;
    }
    
    .quick-link-home span {
        font-size: 0.75rem;
        letter-spacing: 0.4px;
    }
    
    .main-footer {
        padding: 0.3rem 0 !important;
        min-height: 35px;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
    
    .content-card {
        padding: 0.8rem;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .trainer-card-main {
        padding: 1rem;
    }
    
    .trainer-name-main {
        font-size: 1.6rem;
    }
    
    .trainer-specialty-main {
        font-size: 1rem;
    }
    
    .achievement-section {
        padding: 1rem;
    }
}

/* Маленькие мобильные (≤360px) */
@media (max-width: 360px) {
    .mobile-header-right {
        gap: 8px;
    }
    
    .mobile-social-icons {
        gap: 8px;
    }
    
    .social-icon {
        font-size: 1.1rem;
    }
    
    body.home-section-active .quick-links-container-home {
        top: 65px !important;
        right: 6px !important;
        gap: 5px;
    }
    
    .quick-link-home {
        padding: 5px 8px;
    }
    
    .quick-link-home span {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
}

/* iOS специфичные фиксы */
@supports (-webkit-touch-callout: none) {
    body.home-section-active .quick-links-container-home {
        position: fixed !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}