/* =====================================================
   MIGUN re:borne — Responsive стилове
   Mobile-first breakpoints: 480 / 768 / 1024 / 1200
   ===================================================== */

/* =====================================================
   MAX 1024px — Таблети
   ===================================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    h1 { font-size: 42px; }
    h2 { font-size: 36px; }

    .hero-content {
        gap: 40px;
    }

    .hero-title,
    .hero-title-2 {
        font-size: 42px;
    }

    /* Hide desktop nav-menu on mobile */
    .nav-menu {
        display: none;
    }

    .nav-cta-desktop,
    .nav-lang {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Show mobile menu elements */
    .mobile-menu-overlay,
    .mobile-menu {
        display: block;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu Panel */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        background: var(--white);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    .mobile-menu-scroll {
        flex: 1;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding-top: calc(var(--header-height) + 8px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    }

    /* Mobile Menu Links */
    .mobile-menu-links {
        list-style: none;
        padding: 0 24px;
        margin: 0;
    }

    .mobile-menu-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .mobile-menu-links li:last-child {
        border-bottom: none;
    }

    .mobile-link {
        display: flex;
        align-items: center;
        padding: 16px 4px;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.2s ease, padding-left 0.2s ease;
        position: relative;
    }

    .mobile-link:hover {
        color: var(--black);
        padding-left: 8px;
    }

    .mobile-link.active {
        color: var(--black);
        font-weight: 600;
    }

    .mobile-link.active::before {
        content: '';
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: var(--gold);
        border-radius: 2px;
    }

    /* Mobile CTA Button */
    .mobile-menu-cta {
        padding: 20px 24px 0;
    }

    .mobile-cta-btn {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 15px;
        padding: 16px 24px;
    }

    /* Mobile Menu Footer - Fixed at bottom (outside scroll container) */
    .mobile-menu-footer {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border);
        background: var(--gray-light);
    }

    .mobile-lang {
        display: flex;
        gap: 8px;
    }

    .mobile-lang-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 36px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        text-decoration: none;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
    }

    .mobile-lang-btn:hover {
        color: var(--black);
        border-color: var(--black);
    }

    .mobile-lang-btn.active {
        color: var(--white);
        background: var(--black);
        border-color: var(--black);
    }

    .mobile-phone {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-phone:hover {
        color: var(--gold);
    }

    .mobile-phone svg {
        color: var(--gold);
    }

    .pain-grid,
    .personas-grid,
    .why-grid,
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .therapy-grid > :last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .steps-grid::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cta-content {
        gap: 48px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-main {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* =====================================================
   MAX 768px — Малки таблети / Големи телефони
   ===================================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --header-height: 70px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }

    .logo-img {
        height: 40px;
    }

    .footer-logo img {
        height: 50px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-title {
        font-size: 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 20px;
    }

    .hero-title,
    .hero-title-2 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
        max-width: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        text-align: center;
        width: 100%;
    }

    .hero-trust {
        gap: 24px;
        justify-content: space-between;
        width: 100%;
    }

    .trust-number {
        font-size: 28px;
    }

    .hero-visual {
        order: -1;
    }

    .pain-grid {
        grid-template-columns: 1fr 1fr;
    }

    .therapy-grid {
        grid-template-columns: 1fr;
    }

    .therapy-grid > :last-child {
        max-width: 100%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-col--reverse {
        direction: ltr;
    }

    .process-box {
        padding: 40px 28px;
    }

    .form-card {
        padding: 32px 24px;
    }

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

    .personas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-hero {
        padding: 48px 0;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .price-block {
        padding: 36px 24px;
    }

    .price-amount {
        font-size: 44px;
    }

    .showroom-card {
        padding: 28px;
    }

    .contact-card {
        padding: 32px;
    }

    .offer-card {
        padding: 32px;
    }

    .map-container {
        height: 300px;
    }

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

    .counter-number {
        font-size: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .who-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }

    .experts-grid {
        grid-template-columns: 1fr;
    }

    .expert-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .compare-table thead th,
    .compare-table tbody td {
        padding: 14px 14px;
        font-size: 13px;
    }

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

    .article-hero h1 {
        font-size: 32px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-cta {
        padding: 32px 24px;
    }
}

/* =====================================================
   MAX 480px — Мобилни телефони
   ===================================================== */

@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    .container {
        padding: 0 16px;
    }

    h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }

    .logo-img {
        height: 36px;
    }

    .footer-logo img {
        height: 44px;
    }

    .section-title {
        font-size: 26px;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 40px 16px;
        gap: 32px;
    }

    .hero-title,
    .hero-title-2 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .trust-item {
        text-align: center;
        min-width: 80px;
    }

    .trust-number {
        font-size: 24px;
    }

    .trust-label {
        font-size: 11px;
    }

    .pain-grid,
    .personas-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .pain-card,
    .persona-card,
    .why-card {
        padding: 28px 20px;
    }

    .therapy-card {
        padding: 32px 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-number {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .cta-text h2 {
        font-size: 28px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: 15px;
    }

    .counters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .counter-card {
        padding: 24px 12px;
    }

    .counter-number {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        grid-column: auto;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: column;
        gap: 16px;
    }

    .viber-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .viber-float svg {
        width: 24px;
        height: 24px;
    }

    .faq-question {
        font-size: 15px;
    }

    .map-container {
        height: 250px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .who-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }

    .experts-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .expert-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }

    .story-card {
        padding: 28px 20px;
    }

    .compare-table thead th,
    .compare-table tbody td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .benefit-quote-card {
        padding: 24px;
    }

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

    .blog-card-image {
        height: 160px;
        min-height: 160px;
    }

    .blog-card-body {
        padding: 20px 16px;
    }

    .article-hero h1 {
        font-size: 26px;
    }

    .article-excerpt {
        font-size: 15px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 22px;
        margin: 36px 0 16px;
    }

    .article-content h3 {
        font-size: 19px;
    }

    .article-cta {
        padding: 28px 20px;
    }

    .viber-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        left: 20px;
    }

    .viber-float svg {
        width: 24px;
        height: 24px;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}
