/* VetPro - Responsive Styles */

/* ===============================================
   RESPONSIVE MEDIA QUERIES
   =============================================== */

/* ================================================
   БАЗОВЫЕ СТИЛИ ФУТЕРА (для десктопа)
   ================================================ */
/* На десктопе элементы схлопывания скрыты, контент виден */
.footer-toggle {
    display: none;
}

.footer-chevron {
    display: none;
}

.footer-collapse {
    display: block;
}

/* Desktop - FAQ Grid Layout */
@media (min-width: 1024px) {
    .faq-grid .feature-card:last-child {
        grid-column: 2;
    }
    
    /* Modal desktop styles moved to components.css */
}

/* Tablet and Medium Desktop - FAQ Grid */
@media (max-width: 1023px) {
    .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .faq-grid .feature-card:last-child {
        grid-column: auto;
    }
    
    /* Footer - 2 columns on tablets */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* ===============================================
   MAIN RESPONSIVE BREAKPOINT - 768PX
   =============================================== */
@media (max-width: 768px) {
    /* Navigation */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Actions */
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Audience Actions */
    .audience-actions {
        gap: 0.75rem;
    }
    
    .audience-actions .btn {
        width: auto;
        min-width: 160px;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Адаптивный текст кнопок */
    .btn-text-full {
        display: none;
    }
    
    .btn-text-short {
        display: inline;
    }
    
    /* Icons и Feature Cards */
    .audience-cards .feature-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .feature-icon {
        width: 5rem;
        height: 5rem;
    }
    
    /* Steps Layout */
    .steps-with-arrows {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Hide arrows on mobile */
    .step-arrow {
        display: none;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    .breadcrumb-separator {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    /* Container и Typography */
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.15;
    }
    
    .hero-description {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    .hero-section {
        padding: 2rem 0 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    /* Stats и Counters */
    .stat {
        font-size: 0.75rem;
    }
    
    .stat-icon {
        font-size: 12px;
    }
    
    .counter-text {
        font-size: 1.125rem;
    }
    
    .counter-text .counter-number {
        font-size: 1.75rem;
    }
    
    .specialists-counter {
        padding: 3rem 0;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Grid Layouts */
    .testimonials-grid,
    .features-grid:not(.audience-cards) {
        grid-template-columns: 1fr;
    }
    
    .audience-cards.features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Pricing Cards */
    .pricing-card.popular {
        transform: none;
    }
    
    /* Packages */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-card.popular {
        transform: none;
        border-color: var(--primary-blue);
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .packages-info,
    .contact-section {
        padding: 2rem 1.5rem;
    }
    
    /* Modal Styles */
    /* Все стили анализов (.summary-cards, .rec-sections, .patient-grid, .patient-info h3, .section-title, .parameter) 
       перенесены в analysis-display.css для централизации */
    
    /* Analysis Grid */
    .analyses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .analysis-card {
        padding: 1.5rem;
    }
    
    .analysis-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .analysis-icon i {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-collapsible .footer-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #374151;
        cursor: pointer;
        user-select: none;
    }
    
    .footer-collapsible h4 {
        margin: 0;
        font-size: 1rem;
    }
    
    .footer-chevron {
        display: block;
        width: 1.25rem;
        height: 1.25rem;
        color: #9ca3af;
        transition: transform 0.3s ease;
    }
    
    .footer-chevron.active {
        transform: rotate(180deg);
    }
    
    .footer-collapse {
        max-height: 0;
        padding: 0;
        margin: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .footer-collapse.active {
        max-height: 500px;
        padding: 0.75rem 0 0 0;
        margin: 0;
        opacity: 1;
    }
    
    .footer-links li,
    .footer-contacts li {
        justify-content: flex-start;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        text-align: left;
    }
    
    .footer-links i,
    .footer-contacts i {
        width: 0.875rem;
        height: 0.875rem;
        flex-shrink: 0;
    }
    
    .footer-section:first-child {
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #374151;
    }
    
    .footer-section:first-child .footer-links {
        display: block;
        opacity: 1;
        max-height: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* ===============================================
   HERO STATS MOBILE LAYOUT
   =============================================== */
@media (max-width: 640px) {
    .hero-stats {
        flex-wrap: wrap; /* На мобильных разрешаем перенос */
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

/* ===============================================
   SMALL MOBILE - 480PX
   =============================================== */
@media (max-width: 480px) {
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Footer Section */
    .footer {
        padding: 1.5rem 0 0.75rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links li,
    .footer-contacts li {
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ===============================================
   EXTRA SMALL MOBILE - 375PX
   =============================================== */
@media (max-width: 375px) {
    .hero .hero-title {
        font-size: 1.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero .hero-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}
