/* ============================================
   HCAR — Responsive Adaptations
   ============================================ */

/* ── Tablet (<= 1024px) ── */
@media (max-width: 1024px) {
    .hero-backdrop-overlay {
        background: 
            linear-gradient(180deg, 
                rgba(15, 18, 22, 0.65) 0%, 
                rgba(15, 18, 22, 0.30) 40%, 
                rgba(15, 18, 22, 0.85) 100%);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust-pills {
        justify-content: center;
    }

    .hero-visual {
        margin-top: var(--space-8);
    }

    .hero-showcase {
        max-width: 520px;
    }

    .quick-search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-search-form button {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        z-index: var(--z-modal);
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    }

    .filters-sidebar.open {
        transform: translateX(0);
    }

    .filters-close {
        display: block;
    }

    .filter-toggle-mobile {
        display: inline-flex;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .detail-info {
        position: static;
        max-height: none;
    }

    .gallery-main {
        max-height: 460px;
    }

    .advantages-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile (<= 768px) ── */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .top-bar {
        display: none;
    }

    .nav-desktop, .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-mobile {
        display: flex;
    }

    .hero {
        padding: var(--space-12) 0 var(--space-16);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-showcase {
        max-width: 100%;
    }

    .hero-showcase-frame {
        border-radius: 16px;
    }

    .hero-badge-live {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .hero-floating-glass {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-v-title {
        max-width: 100%;
        font-size: var(--font-size-sm);
    }

    .hero-v-meta {
        font-size: 11px;
    }

    .hero-v-action {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-v-price {
        font-size: var(--font-size-lg);
    }

    .hero-v-btn {
        margin-top: 0;
        padding: 4px 10px;
    }

    .glass-metric-val {
        font-size: var(--font-size-base);
    }

    .glass-metric-lbl {
        font-size: 10px;
    }

    .quick-search {
        padding: var(--space-6);
        margin-top: -30px;
    }

    .quick-search-form {
        grid-template-columns: 1fr;
    }

    .advantages-grid, .services-grid, .guarantees-grid {
        grid-template-columns: 1fr;
    }

    .stats-counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .stat-number {
        font-size: var(--font-size-3xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .gallery-main {
        max-height: 320px;
    }

    .gallery-thumb {
        width: 68px;
        height: 48px;
    }

    .specs-grid, .equipment-list, .similar-grid {
        grid-template-columns: 1fr;
    }

    .detail-price {
        font-size: var(--font-size-3xl);
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
}
