/* ========== responsive.css ========== */
/* Адаптация под планшеты и мобильные устройства */

/* Большие планшеты (до 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Сетка видео на главной */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Улучшение для видео-карточек на мобильных */
@media screen and (max-width: 768px) {
    div[style*="width: 70px; height: 70px;"] {
        width: 50px !important;
        height: 50px !important;
    }
    div[style*="font-size: 1.8rem;"] {
        font-size: 1.2rem !important;
    }
    div[style*="font-size: 3rem;"] {
        font-size: 2rem !important;
    }
    div[style*="bottom: 20px; left: 0; right: 0; text-align: center;"] span {
        font-size: 0.8rem !important;
        padding: 3px 10px !important;
    }
}
/* Улучшение видео-карточек на мобильных */
@media screen and (max-width: 768px) {
    .video-section div[style*="width: 70px; height: 70px;"] {
        width: 50px !important;
        height: 50px !important;
    }
    .video-section div[style*="font-size: 1.8rem;"] i {
        font-size: 1.2rem !important;
    }
    .video-section div[style*="font-size: 3rem;"] i {
        font-size: 2rem !important;
    }
    .video-section div[style*="bottom: 20px; left: 0; right: 0;"] span {
        font-size: 0.75rem !important;
        padding: 4px 12px !important;
    }
    .video-section h3 {
        font-size: 1.1rem !important;
    }
    .video-section p {
        font-size: 0.9rem !important;
    }
}

/* Улучшение hero на мобильных */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
    .hero-stats .stat-number {
        font-size: 1.5rem !important;
    }
}
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
}
/* Планшеты (до 768px) */
@media screen and (max-width: 768px) {
    /* Навигация */
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .btn-appointment {
        margin-left: auto;
        margin-right: 15px;
    }
    
    /* Hero секция */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Секция видео */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Прайс-лист */
    .price-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Сетка фотографий работ */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Сетка фотоотзывов */
    .photo-reviews-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Контакты */
    .contacts-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    /* Страница "О нас" */
    .doctor-full-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Сетка отзывов */
    .reviews-masonry {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Футер */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contacts {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Модальное окно */
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* Мобильные телефоны (до 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    /* Заголовки */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    h2[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }
    
    /* Статистика */
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Кнопки */
    .btn-large, 
    .platform-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Табы галереи */
    .gallery-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    /* Сетки */
    .gallery-grid,
    .photo-reviews-grid,
    .reviews-masonry,
    div[style*="display: grid"][style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Карточки прайса */
    div[style*="display: grid"][style*="gap: 25px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Бейджи с опытом */
    div[style*="display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap"] {
        justify-content: center;
    }
    
    /* Платформы отзывов */
    .platform-buttons {
        flex-direction: column;
    }
    
    .platform-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Карточки видео */
    .video-section div[style*="padding: 20px"] {
        text-align: center;
    }
    
    /* Футер */
    .footer-social div[style*="display: flex; gap: 15px; flex-wrap: wrap"] {
        justify-content: center;
    }
    
    /* Модальное окно */
    .modal-content {
        padding: 15px;
    }
    
    .modal-close {
        top: 5px;
        right: 10px;
        font-size: 2rem;
    }
    
    /* Шаги процесса */
    .steps-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Декоративные элементы */
    div[style*="position: absolute; bottom: -15px; right: -15px"] {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Исправление inline-стилей для мобильных */
    .doctor-full-grid[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Адаптация кнопок дипломов */
    a[style*="padding: 12px 20px"] {
        width: 100%;
        justify-content: center !important;
    }
}

/* Очень маленькие экраны (до 360px) */
@media screen and (max-width: 360px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Исправление для мобильного меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #0A2F44;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Адаптация FAQ */
.faq-item-checkbox {
    margin-bottom: 15px;
}

.faq-label {
    padding: 18px 20px;
    font-size: 1rem;
}

.faq-answer-checkbox {
    padding: 0 20px 20px 20px;
}

/* Горизонтальный скролл для бейджей на маленьких экранах */
@media screen and (max-width: 600px) {
    div[style*="display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap"] {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    div[style*="display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap"] span {
        white-space: nowrap;
    }
}
/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
@media screen and (max-width: 768px) {
    /* Показываем кнопку бургер */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 15px;
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: #0A2F44;
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }
    
    /* Скрываем обычное меню */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Показываем меню при активном классе */
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Анимация бургера при открытом меню */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
@media screen and (max-width: 768px) {
    /* Кнопка мобильного меню */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto; /* КНОПКА СПРАВА */
        margin-top: -70px; /* ЧУТЬ ВЫШЕ (можно уменьшить или увеличить значение) */
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: #0A2F44;
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }
    
    /* Остальные стили... */
}