/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

/* --- Tablet: max 768px --- */
@media (max-width: 768px) {

    /* Header */
    .nav-desktop {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-inner {
        gap: var(--space-sm);
    }

    .logo-svg {
        width: 130px;
        height: 33px;
    }

    /* Hero */
    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero-stats {
        gap: var(--space-xl);
    }

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

    /* Filters — horizontal scroll */
    .filters-section {
        padding: var(--space-sm) 0;
    }

    .filters-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--space-xs);
    }

    .filters-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-select {
        min-width: 110px;
        font-size: 14px;
    }

    .filter-checks {
        flex-shrink: 0;
    }

    .filter-clear {
        margin-left: var(--space-sm);
        flex-shrink: 0;
    }

    /* Cards — 2 columns on tablet */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    /* Company page */
    .cp-hero-top {
        flex-direction: column;
        gap: var(--space-md);
    }

    .cp-logo-placeholder {
        width: 56px;
        height: 56px;
    }

    .cp-badges {
        gap: var(--space-xs);
    }

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

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

    .cp-security-list {
        grid-template-columns: 1fr;
    }

    .cp-locations-grid {
        grid-template-columns: 1fr;
    }

    /* District page — location list */
    .district-loc-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-md) 0;
    }

    /* City page — districts grid */
    .city-districts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Map */
    .map-container {
        border-radius: 0;
    }

    .map-iframe {
        height: 300px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-nav-companies {
        columns: 2;
    }

    /* Section spacing */
    .section {
        padding: var(--space-xl) 0;
    }

    .section-sm {
        padding: var(--space-lg) 0;
    }

    /* Typography */
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    .section-title {
        font-size: var(--text-xl);
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: var(--text-xs);
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    /* Aux pages */
    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        gap: var(--space-md);
    }

    .contacts-email-block {
        flex-direction: column;
        text-align: center;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* 404 */
    .error-404-code {
        font-size: 100px;
    }
}

/* --- Mobile: max 480px --- */
@media (max-width: 480px) {

    /* Container */
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Header */
    .logo-svg {
        width: 110px;
        height: 28px;
    }

    /* Hero */
    .hero {
        padding: var(--space-xl) 0;
    }

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

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

    .hero-stats {
        gap: var(--space-lg);
    }

    .hero-stat-number {
        font-size: var(--text-2xl);
    }

    .hero-stat-label {
        font-size: var(--text-xs);
    }

    /* Cards — single column */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .company-card {
        padding: var(--space-md);
    }

    /* Card header compact */
    .card-logo-placeholder {
        width: 40px;
        height: 40px;
    }

    .card-logo-letter {
        font-size: var(--text-lg);
    }

    .card-title {
        font-size: var(--text-md);
    }

    /* Company page */
    .cp-facts-grid {
        grid-template-columns: 1fr;
    }

    .cp-services-grid {
        grid-template-columns: 1fr;
    }

    .cp-sizes-grid {
        gap: var(--space-xs);
    }

    .cp-size-card {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }

    .cp-location-card {
        padding: var(--space-md);
    }

    /* District page */
    .city-districts-grid {
        grid-template-columns: 1fr;
    }

    .city-district-card {
        padding: var(--space-md);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-nav-companies {
        columns: 2;
    }

    /* Typography */
    h1 {
        font-size: var(--text-2xl);
    }

    .section-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-lg);
    }

    /* Filters compact */
    .filter-select {
        min-width: 100px;
        padding: 0.4rem 1.8rem 0.4rem 0.6rem;
        font-size: 13px;
    }

    .filter-checkbox {
        font-size: var(--text-xs);
    }

    /* Map full width */
    .map-iframe {
        height: 250px;
    }

    /* FAQ */
    .faq-question {
        font-size: var(--text-sm);
        padding: var(--space-md) 0;
    }

    .faq-answer {
        font-size: var(--text-sm);
    }

    /* About stats */
    .about-stat-number {
        font-size: var(--text-3xl);
    }

    /* 404 */
    .error-404-code {
        font-size: 72px;
    }

    .error-404-links {
        gap: var(--space-xs);
    }

    .error-404-links a {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-sm);
    }

    /* Form */
    .form-card {
        padding: var(--space-lg);
    }

    /* Section spacing */
    .section {
        padding: var(--space-lg) 0;
    }

    .section-sm {
        padding: var(--space-md) 0;
    }

    /* SEO text */
    .seo-content p {
        font-size: var(--text-sm);
    }

    .seo-content h2 {
        font-size: var(--text-xl);
    }
}
