/* ===== adaptive.css ===== */
/* Все медиа-запросы для планшетов, телефонов и маленьких экранов */

/* ===== ПЛАНШЕТЫ (1024px и меньше) ===== */
@media (max-width: 1024px) {
    .shapka {
        font-size: 18px;
        gap: 20px;
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logotxt .bold { font-size: 24px; }
    .logotxt .light { font-size: 18px; }
    
    .report-container { gap: 20px; }
    .pub-list li { font-size: 14px; }
    .publications-image { width: 170px; }
    
    .parent-item { gap: 8px; padding: 0 10px; }
    .parent-logo { width: 35px; height: 35px; }
    .parent-text { font-size: 16px; }
}

/* ===== ТЕЛЕФОНЫ (768px и меньше) ===== */
@media (max-width: 768px) {
    /* Шапка */
    .logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        padding: 10px;
        gap: 5px;
    }
    
    .logo img { width: 55px; height: auto; margin-right: 8px; }
    .logotxt { margin-bottom: 0; flex: 1; }
    .logotxt .bold { font-size: 16px; white-space: nowrap; }
    .logotxt .light { font-size: 14px; white-space: nowrap; }
    
    .shapka {
        font-size: 15px;
        gap: 20px;
        margin-left: 0;
        margin-top: 10px;
        white-space: nowrap;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        border-top: 1px solid #aaa;
        padding-top: 10px;
    }
    .shapka a { font-size: 15px; }
    
    .line { width: 100%; margin-top: 10px; margin-bottom: 20px; }
    
    /* Новости */
    .images-row { flex-direction: column; }
    .left-column, .right-column { width: 100%; }
    .left-column .image, .right-column .image2 { margin-bottom: 20px; }
    
    /* Карточки таксонов */
    .cards-container { flex-direction: column; gap: 25px; padding: 0 15px; }
    .card { width: 100%; max-width: 100%; }
    .card-image { height: 200px; width: 100%; }
    
    /* Публикации и устав */
    .report-container { flex-direction: column; }
    .report-left, .report-right { flex: auto; width: 100%; }
    .report-card { padding: 20px; max-height: none; height: auto; }
    .report-title { font-size: 20px; }
    .publications-wrapper { flex-direction: column; align-items: center; }
    .publications-list { width: 100%; order: 2; }
    .publications-image { width: 100%; max-width: 280px; margin: 0 auto 25px; order: 1; }
    .pub-list { padding-left: 25px; }
    
    /* Партнёры */
    .parents-row { height: auto; flex-direction: column; }
    .parent-item {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 15px 20px;
        gap: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    .parent-item:not(:last-child)::after { display: none; }
    .parent-item:not(:last-child) { border-bottom: 4px solid #1e3a5f; }
    .parent-logo { width: 40px; height: 40px; }
    .parent-text { font-size: 18px; }
    
    /* Футер */
    .footer-links { flex-direction: column; gap: 15px; align-items: flex-start; }
    
    /* Страница отчётов */
    .reports-page h1 { font-size: 24px; }
    .reports-list { padding: 20px; }
    .report-year { font-size: 16px; }
    .report-content { font-size: 13px; padding: 0 10px 15px 20px; }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (480px и меньше) ===== */
@media (max-width: 480px) {
    .logo img { width: 45px; }
    .logotxt .bold { font-size: 14px; }
    .logotxt .light { font-size: 12px; }
    
    .shapka { font-size: 14px; gap: 15px; }
    .shapka a { font-size: 14px; }
    
    .card-content { padding: 15px 12px; }
    .card-title { font-size: 17px; }
    .card-description { font-size: 14px; }
    .read { font-size: 17px; }
    
    .report-card { padding: 15px; }
    .report-title { font-size: 18px; }
    .publications-image { max-width: 220px; }
    
    .parent-item { padding: 12px 15px; gap: 12px; }
    .parent-text { font-size: 14px; }
    .parent-logo { width: 30px; height: 30px; }
    
    .reports-page h1 { font-size: 22px; }
    .reports-list { padding: 15px; }
    .report-year { font-size: 15px; }
    .report-content { font-size: 12px; padding: 0 5px 15px 15px; }
}

/* ===== СУПЕР-МАЛЕНЬКИЕ (360px и меньше) ===== */
@media (max-width: 360px) {
    .parent-item { gap: 8px; padding: 10px 12px; }
    .parent-text { font-size: 13px; }
}

/* ===== АДАПТАЦИЯ ДЛЯ СТРАНИЦЫ НОВОСТЕЙ ===== */
@media (max-width: 768px) {
    .news-full-item {
        padding: 25px 0;
    }
    
    .news-full-title {
        font-size: 20px;
    }
    
    .news-full-gallery img {
        height: 160px;
    }
    
    .news-full-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .news-full-item {
        padding: 20px 0;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    .news-full-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .news-full-gallery {
        gap: 10px;
    }
    
    .news-full-gallery img {
        height: 130px;
    }
    
    .news-full-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .news-full-text p {
        margin-bottom: 12px;
    }
}