/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet (до 992px) */
@media (max-width: 992px) {
    
    /* Header */
    .header__nav {
        display: none;
    }
    
    .header__burger {
        display: flex;
    }
    
    .header__phone span {
        display: none;
    }
    
    /* Hero */
    .hero__title {
        font-size: var(--text-4xl);
    }
    
    .hero__subtitle {
        font-size: var(--text-lg);
    }
    
    .hero__trust {
        gap: 2rem;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-card--featured {
        min-height: 350px;
    }
    
    /* Steps */
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contacts */
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
}

/* Mobile Large (до 768px) */
@media (max-width: 768px) {
    
    /* Typography */
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
    }
    
    /* Hero */
    .hero__title {
        font-size: var(--text-3xl);
    }
    
    .hero__subtitle {
        font-size: var(--text-base);
    }
    
    .hero__form {
        padding: 1.5rem;
    }
    
    .hero__trust {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card--featured,
    .category-card {
        min-height: 300px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Steps */
    .steps {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
    }
    
}

/* Mobile Small (до 576px) */
@media (max-width: 576px) {
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Buttons */
    .btn--large {
        padding: 0.875rem 1.5rem;
        font-size: var(--text-base);
    }
    
    /* Header */
    .header__actions {
        gap: 0.5rem;
    }
    
    .header__phone {
        font-size: var(--text-sm);
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: var(--text-sm);
    }
    
    /* Hero */
    .hero {
        padding: var(--spacing-2xl) 0;
        min-height: auto;
    }
    
    .hero__title {
        font-size: var(--text-2xl);
    }
    
    .hero__subtitle {
        font-size: var(--text-sm);
    }
    
    .hero__form {
        padding: 1rem;
    }
    
    .trust-item__number {
        font-size: var(--text-2xl);
    }
    
    /* Category Cards */
    .category-card__content {
        padding: 1.5rem;
    }
    
    .category-card__title {
        font-size: var(--text-xl);
    }
    
    .category-card__price {
        font-size: var(--text-lg);
    }
    
    /* Product Modal */
    .product-modal__info {
        padding: 1.5rem;
    }
    
    .product-modal__title {
        font-size: var(--text-2xl);
    }
    
    .product-modal__price {
        font-size: var(--text-2xl);
    }
    
    /* Sections Spacing */
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    /* CTA Block */
    .cta-block {
        padding: 2rem 1rem;
    }
    
    .cta-block h3 {
        font-size: var(--text-xl);
    }
    
    /* Contact Form */
    .contacts-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-column h4 {
        font-size: var(--text-lg);
    }
    
    /* Floating Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
    }
    
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero__scroll-down {
        display: none;
    }
    
}

/* Print Styles */
@media print {
    
    .header,
    .hero__form,
    .whatsapp-float,
    .scroll-to-top,
    .product-modal,
    .mobile-menu {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
    }
    
    .product-card,
    .category-card,
    .advantage-card,
    .review-card {
        break-inside: avoid;
    }
    
}
/* ===================================
   RESPONSIVE STYLES FOR NEW SECTIONS
   Portfolio, Homepage Products, New Advantages
   =================================== */

/* ===================================
   PORTFOLIO SECTION - Mobile
   =================================== */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 40px 0;
    }
    
    .portfolio-item {
        min-width: 250px;
        height: 200px;
    }
    
    .portfolio-overlay h4 {
        font-size: 14px;
    }
    
    .portfolio-popup .popup-content {
        width: 95%;
        max-width: none;
        padding: 15px;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    #popup-title {
        font-size: 16px;
    }
}

/* ===================================
   NEW ADVANTAGES SECTION - Mobile
   =================================== */
@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .stat-desc {
        font-size: 11px;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stat-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===================================
   HOMEPAGE PRODUCTS SECTION - Mobile
   =================================== */
@media (max-width: 768px) {
    .homepage-products {
        padding: 40px 0;
    }
    
    .homepage-products .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .loading-placeholder {
        padding: 40px 20px;
    }
    
    .section-footer {
        margin-top: 30px;
    }
    
    .section-footer .btn {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .homepage-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1025px) {
    .homepage-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* ===================================
   PRODUCT CARDS - Enhanced Responsive
   =================================== */
@media (max-width: 768px) {
    .product-card__characteristics {
        font-size: 13px;
    }
    
    .product-card__characteristics li {
        margin-bottom: 6px;
    }
    
    .product-card__badge--discount {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .price-new {
        font-size: 20px;
    }
    
    .price-old {
        font-size: 16px;
    }
}

/* ===================================
   MODAL RESPONSIVE ENHANCEMENTS
   =================================== */
@media (max-width: 768px) {
    .product-modal__content {
        flex-direction: column;
    }
    
    .modal__left,
    .modal__right {
        width: 100%;
    }
    
    .modal__thumbnails {
        justify-content: center;
    }
    
    .specs-table {
        font-size: 14px;
    }
    
    .specs-table td {
        padding: 10px 12px;
    }
    
    .accordion-inner {
        padding: 15px;
    }
    
    #modalDescription {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        min-width: 200px;
        height: 180px;
    }
}

/* ===================================
   GENERAL SECTION SPACING - Mobile
   =================================== */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
}

/* ===== CTA BLOCK 2 ===== */

@media (max-width: 1439px) {
    .need-consultation {
        margin-bottom: 60px;
        padding: 0 20px;
    }

    .need-consultation__wrapper {
        padding: 0 30px;
    }

    .need-consultation__inner {
        padding: 32px 32px;
    }

    .need-consultation__title {
        font-size: 30px;
        text-align: left;
    }

    .need-consultation__desc {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 940px) {
    .need-consultation__inner {
        flex-direction: column;
        text-align: left;
    }

    .need-consultation__content {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .need-consultation__title {
        font-size: 28px;
    }

    .need-consultation__desc {
        font-size: 16px;
    }

    .need-consultation__image {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .need-consultation {
        margin-bottom: 56px;
        padding: 0 16px;
    }

    .need-consultation__wrapper {
        padding: 0;
    }

    .need-consultation__inner {
        padding: 24px 20px;
    }

    .need-consultation__title,
    .need-consultation__desc {
        text-align: center;
    }

    .need-consultation__cta {
        text-align: center;
    }

    .need-consultation__confidential {
        margin-left: auto;
        margin-right: auto;
    }

    .need-consultation__image {
        display: none; /* как у конкурента — картинку прячем на мобиле */
    }
}
