/* =====================================================
   MEDIA.CSS - Адаптивные стили (медиа-запросы)
   ===================================================== */

/* ------------------- 1. ПЛАНШЕТЫ (ДО 1000px) ------------------- */
@media (max-width: 1000px) {
    /* Скрываем основное меню, показываем иконку */
    .menu {
        display: none !important;
    }
    
    .menu-icon {
        display: block !important;
    }
    
    /* Боковое меню */
    .side-menu {
        padding-top: 60px;
        width: 200px;
        transition: 0.5s;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100%;
        background-color: rgba(25, 25, 30, 0.8);
        color: white;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1;
        overflow-x: hidden;
    }
    
    .side-menu a {
        padding: 10px 15px;
        text-decoration: none;
        font-size: 18px;
        color: white;
        display: block;
        transition: 0.3s;
    }
    
    .side-menu a:hover {
        color: #f1f1f1;
        transition: 0.5s;
    }
    
    .side-menu .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
    }
    
    /* Шапка */
    .header {
        flex-direction: column;
        align-items: center;
        margin-left: 10px;
    }
    
    /* Контейнер логотипа */
    .title-logo-container {
        margin-left: -40px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .project-title {
        font-size: 24px;
        margin-left: 10px;
    }
    
    .logo {
        max-height: 50px;
    }
    
    /* Скрываем бонусы */
    .bonuses {
        display: none;
    }
    
    /* Социальные кнопки */
    .social-buttons a {
        margin: 10px;
    }
    
    .social-buttons img {
        margin-left: 5px;
        width: 40px;
        height: 40px;
    }
    
    .social-buttons {
        margin-left: 0 !important;
        padding-left: 10px !important;
    }
    
    /* Скрываем левую боковую панель */
    .sidebar-left {
        display: none;
        padding-right: 50px;
    }
    
    /* Контейнер */
    .container {
        padding: 20px 5%;
        background-color: #1B1D24;
        border-radius: 10px;
        max-width: 1200px;
        display: flex;
        flex-direction: column;
    }
    
    /* Основной лейаут */
    .main-layout {
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        max-width: none;
        display: block;
    }
    
    /* Сетка товаров - 3 колонки */
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Цена на карточке */
    .product .price {
        font-size: 0.8rem;
        padding: 0.4em 0.8em;
    }
}


/* ------------------- 2. ТЕЛЕФОНЫ (ДО 600px) ------------------- */
@media (max-width: 600px) {
    /* Сетка товаров - 2 колонки */
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Цена на карточке */
    .product .price {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }
    
    /* Модальное окно - шире */
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    /* Футер - колонки в столбик */
    .footer {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column {
        padding: 10px 20px;
        flex: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        padding-left: 0;
    }
    
    .footer-policy {
        text-align: center;
        padding-right: 0;
    }
    
    /* Профиль - колонки в столбик */
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Блок пополнения */
    .sidebar-block.balance-topup .quick-buttons {
        flex-wrap: wrap;
    }
    
    .sidebar-block.balance-topup button {
        flex: 1;
        min-width: 70px;
    }
}


/* ------------------- 3. МАЛЕНЬКИЕ ТЕЛЕФОНЫ (ДО 300px) ------------------- */
@media (max-width: 300px) {
    /* Сетка товаров - 1 колонка */
    .products {
        grid-template-columns: repeat(1, 1fr);
    }
    
    /* Цена на карточке */
    .product .price {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }
    
    /* Блок выбора срока - кнопки в столбик */
    #durationSelector .duration-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    #durationSelector button {
        width: 100%;
    }
}


/* ------------------- 4. ПЛАНШЕТЫ (ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ) ------------------- */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* Сетка товаров - 4 колонки */
    .products {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Левая панель - уже */
    .sidebar-left {
        width: 200px;
    }
}


/* ------------------- 5. БОЛЬШИЕ ЭКРАНЫ (ОТ 1920px) ------------------- */
@media (min-width: 1920px) {
    /* Контейнеры шире */
    .container {
        max-width: 1400px;
    }
    
    .header {
        max-width: 1800px;
    }
    
    .main-layout {
        max-width: 1800px;
    }
    
    /* Сетка товаров - 6 колонок */
    .products {
        grid-template-columns: repeat(6, 1fr);
    }
}