/* Адаптив: планшеты и мобильные */
@media (max-width: 1024px) {
    .head__desktop-menu {
        display: none;
    }

    .head__logo a {
        font-size: 24px;
    }

    .head__content {
        padding: 0 16px;
    }

    .main-section h1 {
        font-size: 32px;
    }

    .main-section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .contract-details {
        grid-template-columns: 1fr;
    }

    .search-row {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .org-header {
        padding: 16px;
    }

    .org-name {
        font-size: 18px;
    }

    .tab-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }

    .user-trigger {
        padding: 8px;
    }

    .main-section {
        padding: 40px 16px;
    }

    .search-section {
        padding: 0 16px;
    }

    .results {
        padding: 0 16px 40px;
    }
}

/* ========== АДАПТИВНЫЕ КЛАССЫ ДЛЯ РАЗНЫХ УСТРОЙСТВ ========== */

/* Десктоп (по умолчанию) */
.device-desktop .mobile-only {
    display: none !important;
}

.device-desktop .tablet-only {
    display: none !important;
}

/* Планшеты */
.device-tablet .desktop-only {
    display: none !important;
}

.device-tablet .mobile-only {
    display: none !important;
}

/* Мобильные */
.device-mobile .desktop-only {
    display: none !important;
}

.device-mobile .tablet-only {
    display: none !important;
}

/* Примеры использования */
.device-mobile .search-row {
    flex-direction: column;
}

.device-mobile .org-name {
    font-size: 18px;
}

.device-tablet .search-row {
    flex-wrap: wrap;
}