/* ===== МЕДИАЗАПРОСЫ ===== */

/* Общие адаптивные стили */
@media (max-width: 1400px) {
    .main-container {
        max-width: 80%;
    }
}

@media (max-width: 1200px) {
    .about-skymax-container {
        width: 90%;
        gap: 30px;
    }

    .coverage-container {
        padding: 30px;
    }
}

@media (max-width: 1100px) {
    .main-menu {
        gap: 0;
    }

    .menu-item a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .main-container {
        max-width: 90%;
        padding: 0 20px;
    }

    .main-menu-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-logo {
        margin-bottom: 15px;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .main-menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        border-radius: 30px;
    }

    .menu-item {
        flex: 1 1 auto;
    }

    .stats-row {
        flex-direction: column;
    }

    .stats-col-main,
    .stats-col-side {
        flex: 1;
        width: 100%;
    }

    .stats-row-inner {
        flex-direction: column;
    }

    .stats-col-small,
    .stats-col-large {
        flex: 1;
        width: 100%;
    }

    .stats-vertical-group {
        flex-direction: row;
        gap: 20px;
    }

    .why-skymax-container {
        flex-direction: column;
        gap: 30px;
    }

    .why-skymax-image {
        min-height: 400px;
        width: 100%;
        flex: 1;
        border-radius: 40px;
    }

    .why-skymax-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .why-skymax-content h2 {
        text-align: center;
    }

    .promotion-card {
        flex-direction: column;
    }

    .promotion-card-image {
        flex: 0 0 200px;
        width: 100%;
    }

    .promotion-card-content {
        background: white;
        padding-right: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .access-content {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }

    .footer-column-navigation,
    .footer-column-requisites,
    .footer-column-documents {
        width: 100%;
        max-width: 100%;
    }

    .footer-bottom-columns {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== МОБИЛЬНЫЕ УСТРОЙСТВА (все до 768px) ===== */
@media (max-width: 768px) {
    .main-container {
        max-width: 100%;
        padding: 0 16px;
    }

    .sectionMain {
        margin: 60px 0px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        margin-left: 0;
    }

    .header-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-left: 0;
        width: 100%;
    }

    .social-icons {
        margin-left: 0;
        margin-top: 10px;
    }

    /* Гамбургер-меню */
    .menu-toggle {
        display: block !important;
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 1001;
        background: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        padding: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #433f45;
        margin: 4px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 260px;
        max-width: 75%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 60px 16px 16px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        border-radius: 0;
        overflow-y: auto;
        justify-content: flex-start !important;
    }

    .main-menu.open {
        left: 0;
    }

    .main-menu .menu-item {
        width: 100%;
        text-align: center;
        margin-bottom: 0 !important;
        padding: 0;
        flex: 0 0 auto !important;
    }

    .main-menu .menu-item a {
        display: block;
        padding: 8px 0 !important;
        width: 100%;
        text-align: left;
        font-size: 14px;
    }

    .main-menu .menu-item .btn-callback {
        display: inline-block;
        width: auto;
        margin-top: 5px;
        padding: 6px 20px !important;
        text-align: center;
        font-size: 14px;
    }

    .main-menu .menu-logo {
        display: none;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }

    .main-menu-wrapper {
        position: relative;
        min-height: 45px;
    }

    .banner-slide {
        flex-direction: column;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .carousel-dots {
        padding: 8px 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .why-skymax h2,
    .how-we-work h2,
    .quick-access h2,
    .partners h2,
    .coverage-section h2,
    .promotions-header h3 {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .why-skymax-content h2 {
        font-size: 42px;
    }

    .why-skymax-image {
        min-height: 300px;
        flex: 1;
    }

    .why-skymax-image img {
        height: 300px;
    }

    .promotion-section h3 {
        font-size: 32px;
    }

    .form-info h2 {
        font-size: 32px;
    }

    .application-form-section {
        padding: 40px 20px;
    }

    .city-modal {
        width: 300px;
        left: -50px;
    }

    .city-lists {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-plus {
        font-size: 32px;
    }

    .footer-nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-nav-list li {
        margin-bottom: 0;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-column-navigation {
        text-align: center;
    }

    .footer-bottom-col {
        min-width: 100%;
        text-align: center;
    }

    .contact-table td:first-child {
        padding-right: 10px;
        width: 80px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* ===== СКРЫТИЕ БЛОКОВ НА МОБИЛЬНЫХ ===== */
    .coverage-right {
        display: none !important;
    }

    .stats-col-side {
        display: none !important;
    }

    /* ===== СКРОЛЛ ВКЛАДОК ДОКУМЕНТОВ ===== */
    .documents-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .documents-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .documents-tabs::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }

    .documents-tabs::-webkit-scrollbar-thumb {
        background: #a43ccf;
        border-radius: 3px;
    }

    .doc-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* ===== АКЦИИ - КАРТИНКА ПЕРВАЯ ===== */
    .promotion-card {
        flex-direction: column-reverse;
    }

    .promotion-card-image {
        flex: 0 0 180px;
        width: 100%;
        order: -1;
    }

    /* ===== КНОПКИ ДОП. УСЛУГ НА ВСЮ ШИРИНУ ===== */
    .services-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-openAdditionalServices,
    .btn-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {
    .main-container {
        padding: 0 12px;
    }

    .sectionMain {
        margin: 40px 0px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-dots-container {
        margin: 10px 0 30px 0;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-plus {
        font-size: 28px;
    }

    .feature-card,
    .promotion-card {
        padding: 20px;
    }

    .city-modal {
        width: 280px;
        left: -40px;
    }

    .footer-main {
        padding: 25px 15px;
    }

    .footer-bottom {
        padding: 20px 15px;
    }

    .requisites-table td {
        font-size: 13px;
    }

    .requisites-table td:first-child {
        width: 40%;
    }

    .contact-table {
        font-size: 13px;
    }

    .why-skymax-content h2 {
        font-size: 36px;
    }

    .why-skymax-image {
        min-height: 250px;
        flex: 1;
    }

    .why-skymax-image img {
        height: 250px;
    }

    .promotion-card {
        flex: 0 0 100%;
    }

    .how-we-work h2 {
        font-size: 36px;
    }

    .how-we-work-container {
        padding: 30px 20px;
        border-radius: 30px;
    }

    /* Уменьшаем отступы в меню */
    .main-menu {
        padding: 55px 12px 12px;
    }

    .main-menu .menu-item a {
        padding: 6px 0 !important;
        font-size: 13px;
    }

    .main-menu .menu-item .btn-callback {
        padding: 4px 16px !important;
        font-size: 13px;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 375px - iPhone SE, iPhone 12 mini) ===== */
@media (max-width: 375px) {
    .main-container {
        padding: 0 10px;
    }

    .sectionMain {
        margin: 30px 0px;
    }

    .why-skymax h2,
    .how-we-work h2,
    .quick-access h2,
    .partners h2,
    .coverage-section h2,
    .promotions-header h3 {
        font-size: 28px !important;
    }

    .why-skymax-content h2 {
        font-size: 28px;
    }

    .main-menu {
        width: 240px;
        padding: 55px 12px 12px;
    }

    .main-menu .menu-item a {
        padding: 5px 0 !important;
        font-size: 13px;
    }

    .main-menu .menu-item .btn-callback {
        padding: 4px 14px !important;
        font-size: 13px;
    }

    .menu-toggle {
        top: 10px !important;
        right: 10px !important;
        padding: 6px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }

    .promotion-card-content {
        padding: 15px;
    }

    .promotion-card h4 {
        font-size: 18px;
    }

    .promotion-card p {
        font-size: 13px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-connect,
    .btn-outline {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===== КРОШЕЧНЫЕ ТЕЛЕФОНЫ (до 320px - iPhone 5/SE 1-го поколения) ===== */
@media (max-width: 320px) {
    .main-container {
        padding: 0 8px;
    }

    .sectionMain {
        margin: 20px 0px;
    }

    .why-skymax h2,
    .how-we-work h2,
    .quick-access h2,
    .partners h2,
    .coverage-section h2,
    .promotions-header h3 {
        font-size: 24px !important;
    }

    .why-skymax-content h2 {
        font-size: 24px;
    }

    .main-menu {
        width: 220px;
        padding: 50px 10px 10px;
    }

    .main-menu .menu-item a {
        padding: 4px 0 !important;
        font-size: 12px;
    }

    .main-menu .menu-item .btn-callback {
        padding: 3px 12px !important;
        font-size: 12px;
    }

    .menu-toggle {
        top: 8px !important;
        right: 8px !important;
        padding: 5px;
    }

    .menu-toggle span {
        width: 18px;
        height: 2px;
        margin: 3px 0;
    }

    .promotion-card-image {
        flex: 0 0 140px;
    }

    .tariff-card {
        padding: 15px;
    }

    .tariff-card h3 {
        font-size: 18px;
    }

    .tariff-price,
    .tariff-speed {
        font-size: 14px;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .promotion-card {
        flex: 0 0 calc(50% - 15px);
    }

    .news-card {
        flex: 0 0 calc(50% - 15px);
    }

    .review-card {
        flex: 0 0 calc(50% - 15px);
    }

    .camera-card {
        flex: 0 0 calc(50% - 15px);
    }

    .equipment-card {
        flex: 0 0 calc(50% - 15px);
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ БОЛЬШИХ ЭКРАНОВ ===== */
@media (min-width: 1920px) {
    .main-container {
        max-width: 1400px;
    }
}

/* ===== УЛУЧШЕНИЕ ТАЧ-СОБЫТИЙ НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    button,
    a,
    .clickable {
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ===== НЕ УБИРАЕМ КНОПКИ КАРУСЕЛИ НОВОСТЕЙ ПРИ ZOOM ===== */
.news-prev,
.news-next {
    display: flex !important;
}

/* ===== БЛОК ТАРИФОВ ДЛЯ БИЗНЕСА (АДАПТИВ) ===== */
@media (max-width: 768px) {
    .business-tariffs-header h2 {
        font-size: 42px !important;
    }

    .business-tariffs-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .business-services-list {
        padding: 15px;
    }

    .business-service-item {
        padding: 10px 0;
    }

    .business-service-info {
        flex-direction: column;
        gap: 5px;
    }

    .business-tariff-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .business-tariffs-header h2 {
        font-size: 32px !important;
    }

    .business-services-col h3 {
        font-size: 20px;
    }
}