/* ============================================================
   RESPONSIVE — LYNXREACTOR
   ============================================================ */

/* ============================================================
   1400px — Большие экраны
   ============================================================ */
@media (max-width: 1400px) {
    .container { padding: 0 40px; }
    .hero-left { padding: 60px 40px 30px; }
    .hero-stats { padding: 16px 30px; margin: 16px 30px 30px; }
}

/* ============================================================
   1200px — Ноутбуки
   ============================================================ */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .tariffs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .process-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .landing-top { grid-template-columns: 1fr 1fr; }
    .landing-top-center { grid-column: span 2; padding: 20px 40px; }
    .portfolio-wrapper { gap: 30px; padding: 0 20px; }
    .cta-form-wrapper { padding: 40px 30px; }
    .business-top { grid-template-columns: 1fr 1fr; padding: 0 20px; }
    .business-top-center { grid-column: span 2; padding: 20px 30px; }
    .business-features-grid { grid-template-columns: repeat(2, 1fr); }
    .refactor-top { grid-template-columns: 1fr 1fr; padding: 0 20px; }
    .refactor-top-center { grid-column: span 2; padding: 20px 30px; }
    .refactor-details-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   992px — Планшеты и маленькие ноутбуки
   ============================================================ */
@media (max-width: 992px) {
    .hero-wrapper { flex-direction: column; min-height: auto; }
    .hero-left {
        flex: 1;
        padding: 100px 30px 30px;
        text-align: center;
    }
    .hero-description { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-right { flex: 0 0 50vh; min-height: 300px; }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 10px 20px 20px;
        padding: 16px 20px;
        border-radius: 16px;
        max-width: calc(100% - 40px);
        min-height: auto;
    }
    .stat-item {
        padding: 12px 16px;
        gap: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) { border-bottom: none; }
    .stat-icon { font-size: 24px; width: 40px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 10px; }

    .services-section { padding: 60px 0; }
    .services-header { margin-bottom: 40px; }
    .service-card { aspect-ratio: 4/5; }
    .service-number { font-size: 36px; }
    .service-title { font-size: 18px; }
    .service-description { font-size: 12px; }

    .tariffs-section { padding: 70px 0; }
    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 16px !important;
    }
    .tariff-card { padding: 32px 20px 24px; }
    .price-value { font-size: 32px; }

    .landing-section { padding: 60px 0; }
    .landing-top { grid-template-columns: 1fr; padding: 0 16px; }
    .landing-top-left { text-align: center; padding: 30px; }
    .landing-description { max-width: 100%; }
    .landing-top-center { grid-column: span 1; padding: 20px; }
    .landing-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
    }
    .landing-benefits .benefit-item { flex: 0 0 calc(50% - 16px); }
    .landing-top-right { min-height: 300px; height: 300px; }
    .landing-bottom { padding: 40px 16px 0; }
    .landing-features-grid { grid-template-columns: repeat(2, 1fr); }

    .business-section { padding: 60px 0; }
    .business-top { grid-template-columns: 1fr; padding: 0 16px; }
    .business-top-left { text-align: center; padding: 30px; }
    .business-description { max-width: 100%; }
    .business-top-center { grid-column: span 1; padding: 20px; }
    .business-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
    }
    .business-benefits .benefit-item { flex: 0 0 calc(50% - 16px); }
    .business-top-right { min-height: 300px; height: 300px; }
    .business-bottom { padding: 40px 16px 0; }
    .business-features-grid { grid-template-columns: repeat(2, 1fr); }

    .refactor-section { padding: 60px 0; }
    .refactor-top { grid-template-columns: 1fr; padding: 0 16px; }
    .refactor-top-left { text-align: center; padding: 30px; }
    .refactor-description { max-width: 100%; }
    .refactor-top-center { grid-column: span 1; padding: 20px; }
    .refactor-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
    }
    .refactor-benefits .benefit-item { flex: 0 0 calc(50% - 16px); }
    .refactor-top-right { min-height: 300px; height: 300px; }
    .refactor-bottom { padding: 40px 16px 0; }
    .refactor-details-grid { grid-template-columns: repeat(2, 1fr); }

    .portfolio-section { padding: 60px 0; }
    .portfolio-wrapper { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
    .portfolio-left { text-align: center; }
    .portfolio-description { max-width: 100%; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .cta-wrapper { grid-template-columns: 1fr; min-height: auto; }
    .cta-image { height: 40vh; min-height: 250px; order: -1; }
    .cta-form-wrapper {
        padding: 40px 30px;
        text-align: center;
        width: 100%;
    }
    .cta-form { max-width: 100%; margin: 0 auto; width: 100%; }
    .cta-form .form-group { width: 100%; }
    .cta-form .form-control { width: 100%; max-width: 100%; }
    .turnstile-wrapper { justify-content: center; }

    .process-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .process-step { padding: 12px; }
    .step-number { font-size: 28px; }
    .step-title { font-size: 14px; }
    .step-description { font-size: 11px; }
}

/* ============================================================
   768px — Мобильные устройства
   ============================================================ */
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding-bottom: 0; }
    .hero-left { padding: 80px 20px 20px; text-align: left; }
    .hero-title { font-size: clamp(30px, 7vw, 40px); }
    .hero-main { font-size: clamp(28px, 6vw, 36px); }
    .hero-subtitle { font-size: 12px; }
    .hero-description { font-size: 15px; margin: 16px 0 24px; }
    .hero-badge { font-size: 11px; margin-bottom: 12px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-right { flex: 0 0 40vh; min-height: 200px; }
    .hero-scroll-indicator { left: 16px; bottom: 50px; gap: 6px; }
    .scroll-label { font-size: 8px; letter-spacing: 0.15em; }
    .scroll-line { height: 24px; }
    .scroll-ball { width: 6px; height: 6px; }
    .scroll-arrow { width: 16px; height: 16px; }
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 10px 16px 16px;
        padding: 12px 16px;
        border-radius: 12px;
        max-width: calc(100% - 32px);
    }
    .stat-item {
        padding: 8px 12px;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .stat-item:nth-child(3) { border-bottom: none; }
    .stat-icon { font-size: 20px; width: 32px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 9px; letter-spacing: 0.04em; }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 0 16px;
    }
    .service-card { aspect-ratio: 4/5; border-radius: 4px; }
    .service-card-overlay { padding: 20px 16px 16px; }
    .service-number { font-size: 30px; margin-bottom: 8px; }
    .service-title { font-size: 16px; margin-bottom: 4px; }
    .service-description {
        font-size: 11px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .service-link { font-size: 12px; }

    .tariffs-section { padding: 50px 0; }
    .tariffs-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        gap: 16px !important;
        padding: 0 16px !important;
    }
    .tariff-card { padding: 24px 18px 20px; }
    .tariff-name { font-size: 20px; }
    .price-value { font-size: 30px; }
    .price-custom { font-size: 22px; }
    .currency-switcher {
        flex-wrap: wrap !important;
        justify-content: center !important;
        max-width: 320px !important;
    }
    .currency-btn {
        padding: 6px 14px !important;
        font-size: 11px !important;
        flex: 1 !important;
        min-width: 60px !important;
    }
    .tariff-badge { right: 16px !important; font-size: 9px !important; padding: 4px 14px !important; }

    .landing-section { padding: 40px 0; }
    .landing-top-left { padding: 24px 20px; text-align: left; }
    .landing-title { font-size: clamp(26px, 5vw, 34px); }
    .landing-description { font-size: 14px; }
    .landing-top-center { padding: 16px 20px; }
    .landing-benefits { gap: 12px; }
    .landing-benefits .benefit-item {
        flex: 0 0 100%;
        gap: 12px;
        padding: 10px 14px;
    }
    .landing-benefits .benefit-icon { font-size: 24px; width: 40px; }
    .landing-benefits .benefit-text { font-size: 14px; }
    .landing-top-right { min-height: 200px; height: 200px; }
    .landing-bottom { padding: 30px 16px 0; }
    .landing-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .landing-features-grid .feature-item { padding: 16px 18px; }

    .business-section { padding: 40px 0; }
    .business-top-left { padding: 24px 20px; text-align: left; }
    .business-title { font-size: clamp(26px, 5vw, 34px); }
    .business-description { font-size: 14px; }
    .business-top-center { padding: 16px 20px; }
    .business-benefits { gap: 12px; }
    .business-benefits .benefit-item {
        flex: 0 0 100%;
        gap: 12px;
        padding: 10px 14px;
    }
    .business-benefits .benefit-icon { font-size: 24px; width: 40px; }
    .business-top-right { min-height: 200px; height: 200px; }
    .business-bottom { padding: 30px 16px 0; }
    .business-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .business-features-grid .feature-item { padding: 16px 18px; }

    .refactor-section { padding: 40px 0; }
    .refactor-top-left { padding: 24px 20px; text-align: left; }
    .refactor-title { font-size: clamp(26px, 5vw, 34px); }
    .refactor-description { font-size: 14px; }
    .refactor-top-center { padding: 16px 20px; }
    .refactor-benefits { gap: 12px; }
    .refactor-benefits .benefit-item {
        flex: 0 0 100%;
        gap: 12px;
        padding: 10px 14px;
    }
    .refactor-benefits .benefit-icon { font-size: 24px; width: 40px; }
    .refactor-top-right { min-height: 200px; height: 200px; }
    .refactor-bottom { padding: 30px 16px 0; }
    .refactor-details-grid { grid-template-columns: 1fr; gap: 12px; }
    .refactor-details-grid .detail-item { padding: 16px 18px; }

    .portfolio-section { padding: 30px 0; }
    .portfolio-wrapper { padding: 0 16px; gap: 20px; }
    .portfolio-title { font-size: clamp(24px, 5vw, 32px); }
    .portfolio-description { font-size: 14px; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .portfolio-card { border-radius: 8px; }
    .portfolio-content { padding: 12px 14px 14px; }
    .portfolio-title-link { font-size: 14px; }
    .portfolio-category { font-size: 9px; }
    .portfolio-link { font-size: 12px; }

    .cta-image { height: 30vh; min-height: 180px; }
    .cta-form-wrapper { padding: 30px 20px; width: 100%; }
    .cta-title { font-size: clamp(24px, 5vw, 32px); margin-bottom: 24px; }
    .cta-badge { font-size: 11px; }
    .cta-form .form-control { font-size: 14px; padding: 12px 16px; width: 100%; }
    .cta-form textarea.form-control { min-height: 80px; }
    .cta-form .btn-block { width: 100%; justify-content: center; }
    .cta-form .form-note { font-size: 12px; margin-top: 12px; }

    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .process-step { padding: 12px 10px; border-radius: 8px; }
    .step-number { font-size: 24px; }
    .step-title { font-size: 13px; margin: 4px 0 2px; }
    .step-description { font-size: 10px; }

    .section-label { font-size: 11px; }
    .section-title { font-size: clamp(26px, 5vw, 34px); }
    .btn { font-size: 12px; padding: 12px 24px; }
    .btn .arrow { font-size: 12px; }

    .faq-section { padding: 50px 0; }
    .faq-container { padding: 0 20px; }
    .faq-grid { grid-template-columns: 1fr; gap: 12px; padding: 0; }
    .faq-question { padding: 16px 18px; gap: 12px; font-size: 14px; }
    .faq-question-text { font-size: 14px; }
    .faq-answer-content { padding: 0 18px 18px 54px; font-size: 14px; }

    .faq-cta { padding: 30px 24px; margin-top: 40px; }
    .faq-cta-text { font-size: 16px; }
    .faq-cta-btn { padding: 12px 28px; font-size: 13px; width: 100%; justify-content: center; }

    .tech-section { padding: 50px 0; }
    .tech-container { padding: 0 20px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tech-item { padding: 28px 16px 20px; }
    .tech-icon { width: 60px; height: 60px; margin-bottom: 16px; }
    .tech-icon img { width: 36px; height: 36px; }
    .tech-icon-placeholder { font-size: 22px; }
    .tech-name { font-size: 17px; }
    .tech-description {
        font-size: 13px;
        -webkit-line-clamp: 3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

/* ============================================================
   576px — Маленькие телефоны
   ============================================================ */
@media (max-width: 576px) {
    .hero-left { padding: 70px 16px 16px; }
    .hero-right { flex: 0 0 30vh; min-height: 150px; }
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 10px 12px;
        margin: 8px 12px 12px;
        border-radius: 10px;
        max-width: calc(100% - 24px);
    }
    .stat-item {
        padding: 6px 10px;
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .stat-item:nth-child(2) { border-bottom: none; }
    .stat-icon { font-size: 16px; width: 28px; }
    .stat-value { font-size: 16px; }
    .stat-label { font-size: 8px; letter-spacing: 0.03em; }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
        padding: 0 12px;
    }
    .service-card { aspect-ratio: 3/4; }
    .service-card-overlay { padding: 14px 12px 12px; }
    .service-number { font-size: 24px; margin-bottom: 4px; }
    .service-title { font-size: 14px; margin-bottom: 2px; }
    .service-description {
        font-size: 10px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    .service-link { font-size: 10px; }

    .tariffs-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding: 0 12px !important;
    }
    .tariff-card { padding: 20px 16px 18px; }
    .price-value { font-size: 26px; }
    .currency-btn {
        padding: 4px 12px !important;
        font-size: 10px !important;
        min-width: 50px !important;
    }
    .currency-btn .currency-icon { font-size: 11px !important; }
    .tariff-features li { font-size: 12px; padding: 4px 0; }

    .process-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .process-step { padding: 10px 8px; }
    .step-number { font-size: 20px; }
    .step-title { font-size: 12px; }
    .step-description { font-size: 9px; }

    .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .portfolio-content { padding: 10px 12px 12px; }
    .portfolio-title-link { font-size: 13px; }
    .portfolio-category { font-size: 8px; }
    .portfolio-link { font-size: 11px; }

    .cta-form-wrapper { padding: 24px 16px; }
    .cta-title { font-size: clamp(20px, 4vw, 28px); margin-bottom: 20px; }
    .cta-form .form-control { font-size: 13px; padding: 10px 14px; }
    .cta-form textarea.form-control { min-height: 60px; }
    .cta-form .form-note { font-size: 11px; }

    .landing-top-left { padding: 20px 16px; }
    .landing-title { font-size: clamp(20px, 4vw, 28px); }
    .landing-description { font-size: 13px; }
    .landing-bottom { padding: 20px 12px; }
}

/* ============================================================
   480px — Очень маленькие телефоны
   ============================================================ */
@media (max-width: 480px) {
    .hero-left { padding: 60px 12px 12px; }
    .hero-title { font-size: clamp(24px, 6vw, 32px); }
    .hero-main { font-size: clamp(22px, 5vw, 28px); }
    .hero-subtitle { font-size: 10px; letter-spacing: 0.08em; }
    .hero-description { font-size: 14px; margin: 12px 0 20px; }
    .hero-badge { font-size: 10px; margin-bottom: 8px; }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 12px;
        max-width: calc(100% - 16px);
    }
    .stat-item {
        padding: 6px 8px;
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .stat-item:last-child { border-bottom: none; }
    .stat-icon { font-size: 14px; width: 24px; }
    .stat-value { font-size: 14px; }
    .stat-label { font-size: 8px; }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        padding: 0 8px;
    }
    .service-card { aspect-ratio: 4/5; border-radius: 3px; }
    .service-card-overlay { padding: 12px 10px 10px; }
    .service-number { font-size: 20px; }
    .service-title { font-size: 12px; }
    .service-description { font-size: 9px; -webkit-line-clamp: 2; }
    .service-link { font-size: 9px; }

    .tariffs-grid { padding: 0 12px !important; }
    .tariff-card { padding: 18px 14px 16px; }
    .price-value { font-size: 24px; }
    .price-symbol { font-size: 14px !important; }
    .price-symbol.nbrb-icon { font-size: 16px !important; }
    .currency-btn {
        padding: 4px 10px !important;
        font-size: 10px !important;
        min-width: 45px !important;
    }
    .currency-btn .currency-icon { font-size: 10px !important; }
    .tariff-features li { font-size: 11px; padding: 3px 0; }
    .check-icon { width: 12px !important; height: 12px !important; }
    .clock-icon { width: 12px !important; height: 12px !important; }

    .process-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .process-step { padding: 8px 6px; border-radius: 6px; }
    .step-number { font-size: 18px; }
    .step-title { font-size: 11px; }
    .step-description { font-size: 9px; }

    .portfolio-grid { grid-template-columns: 1fr; gap: 8px; }
    .portfolio-card { border-radius: 6px; }
    .portfolio-content { padding: 8px 12px 12px; }
    .portfolio-title-link { font-size: 14px; }

    .btn { font-size: 11px; padding: 10px 18px; gap: 8px; }
    .btn .arrow { font-size: 11px; }

    .landing-top-left { padding: 16px 12px; }
    .landing-title { font-size: clamp(18px, 4vw, 24px); }
    .landing-description { font-size: 12px; }
    .landing-bottom { padding: 16px 8px; }

    .cta-title { font-size: clamp(18px, 4vw, 24px); }
    .cta-form-wrapper { padding: 20px 12px; }

    .tech-container { padding: 0 16px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tech-item { padding: 20px 12px 16px; border-radius: 12px; }
    .tech-icon { width: 50px; height: 50px; margin-bottom: 12px; }
    .tech-icon img { width: 30px; height: 30px; }
    .tech-icon-placeholder { font-size: 18px; }
    .tech-name { font-size: 15px; }
    .tech-badge { font-size: 7px; padding: 1px 8px; top: 8px; right: 8px; }
    .tech-category { font-size: 10px; }
    .tech-description { font-size: 12px; -webkit-line-clamp: 2; }

    .faq-container { padding: 0 16px; }
    .faq-question { padding: 14px 14px; gap: 10px; font-size: 13px; }
    .faq-question-text { font-size: 13px; }
    .faq-answer-content { padding: 0 14px 14px 48px; font-size: 13px; }
    .faq-question .faq-icon { width: 20px; height: 20px; }
    .faq-toggle { width: 20px; height: 20px; }

    .faq-cta { padding: 24px 16px; margin-top: 30px; }
    .faq-cta-text { font-size: 15px; }
    .faq-cta-btn { padding: 10px 24px; font-size: 12px; }
}

/* ============================================================
   360px — Очень маленькие телефоны
   ============================================================ */
@media (max-width: 360px) {
    .hero-left { padding: 50px 8px 8px; }
    .hero-title { font-size: clamp(20px, 5vw, 26px); }
    .hero-main { font-size: clamp(18px, 4vw, 24px); }
    .hero-description { font-size: 13px; margin: 8px 0 16px; }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 6px 8px;
        max-width: calc(100% - 12px);
    }
    .stat-item { padding: 4px 6px; gap: 6px; }
    .stat-icon { font-size: 12px; width: 20px; }
    .stat-value { font-size: 12px; }
    .stat-label { font-size: 7px; }

    .services-grid { grid-template-columns: 1fr; gap: 4px; padding: 0 8px; }
    .service-card { aspect-ratio: 16/9; }
    .service-card-overlay { padding: 16px 14px 14px; }
    .service-number { font-size: 24px; }
    .service-title { font-size: 14px; }
    .service-description { font-size: 11px; -webkit-line-clamp: 2; }
    .service-link { font-size: 10px; }

    .tariffs-grid { padding: 0 8px !important; gap: 12px !important; }
    .tariff-card { padding: 14px 12px 12px; border-radius: 12px !important; }
    .price-value { font-size: 20px; }
    .price-symbol { font-size: 12px !important; }
    .price-symbol.nbrb-icon { font-size: 14px !important; }
    .currency-btn {
        padding: 3px 8px !important;
        font-size: 9px !important;
        min-width: 40px !important;
        gap: 3px !important;
    }
    .currency-btn .currency-icon { font-size: 9px !important; }
    .tariff-features li { font-size: 10px; padding: 3px 0; gap: 6px; }
    .check-icon { width: 10px !important; height: 10px !important; }
    .tariff-name { font-size: 16px !important; }
    .clock-icon { width: 10px !important; height: 10px !important; }

    .process-grid { grid-template-columns: 1fr; gap: 6px; }
    .process-step { padding: 10px 8px; }
    .step-number { font-size: 20px; }
    .step-title { font-size: 13px; }
    .step-description { font-size: 10px; }

    .portfolio-grid { grid-template-columns: 1fr; gap: 6px; }
    .portfolio-content { padding: 6px 10px 10px; }
    .portfolio-title-link { font-size: 13px; }

    .btn { font-size: 10px; padding: 8px 14px; gap: 6px; }
    .btn .arrow { font-size: 10px; }

    .cta-title { font-size: clamp(16px, 4vw, 20px); }
    .cta-form-wrapper { padding: 16px 10px; }
    .cta-form .form-control { font-size: 12px; padding: 8px 12px; }
    .cta-form textarea.form-control { min-height: 50px; }

    .landing-title { font-size: clamp(16px, 4vw, 22px); }
    .landing-description { font-size: 12px; }
    .landing-top-left { padding: 12px 10px; }
    .landing-bottom { padding: 12px 6px; }
    .benefit-text { font-size: 12px !important; }

    .tech-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tech-item { padding: 16px 10px 14px; }
    .tech-icon { width: 44px; height: 44px; }
    .tech-icon img { width: 26px; height: 26px; }
    .tech-icon-placeholder { font-size: 16px; }
    .tech-name { font-size: 13px; }
    .tech-description { display: none; }
}

/* ============================================================
   ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section { min-height: auto; height: auto; padding: 0; }
    .hero-wrapper { min-height: auto; flex-direction: row; }
    .hero-left { padding: 60px 30px 20px; flex: 0 0 50%; }
    .hero-right { flex: 0 0 50%; min-height: auto; height: 100vh; max-height: 100vh; }
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 10px 20px;
        margin: 10px 20px 20px;
        max-width: calc(100% - 40px);
        min-height: auto;
    }
    .stat-item {
        padding: 6px 10px;
        gap: 8px;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: none;
    }
    .stat-item:last-child { border-right: none; }
    .stat-icon { font-size: 16px; width: 30px; }
    .stat-value { font-size: 14px; }
    .stat-label { font-size: 8px; }

    .services-grid { grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 0 8px; }
    .service-card { aspect-ratio: 3/4; }

    .tariffs-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        padding: 0 16px !important;
    }
    .tariff-card { padding: 16px 12px !important; }
    .price-value { font-size: 20px !important; }
    .tariff-name { font-size: 16px !important; }
    .tariff-features li { font-size: 10px !important; padding: 2px 0 !important; }

    .process-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .process-step { padding: 8px; }
    .step-number { font-size: 20px; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .cta-wrapper { grid-template-columns: 1fr 1fr; min-height: auto; }
    .cta-image { height: 100vh; max-height: 100vh; }
    .cta-form-wrapper { padding: 30px 20px; }

    .landing-top { grid-template-columns: 1fr 1fr; min-height: auto; }
    .landing-top-right { min-height: auto; height: 100vh; max-height: 100vh; }
    .landing-section { padding: 40px 0; }
    .landing-top-left { padding: 20px; }

    .currency-switcher {
        flex-wrap: nowrap !important;
        gap: 2px !important;
        padding: 2px !important;
        max-width: 100% !important;
    }
    .currency-btn {
        padding: 4px 8px !important;
        font-size: 9px !important;
        min-width: 40px !important;
    }

    .business-top { grid-template-columns: 1fr 1fr; min-height: auto; }
    .business-top-right { min-height: auto; height: 100vh; max-height: 100vh; }

    .refactor-top { grid-template-columns: 1fr 1fr; min-height: auto; }
    .refactor-top-right { min-height: auto; height: 100vh; max-height: 100vh; }
    .refactor-section { padding: 40px 0; }
    .refactor-top-left { padding: 20px; }
    .refactor-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .refactor-benefits .benefit-item { flex: 0 0 calc(50% - 8px); padding: 8px 12px; }
    .refactor-details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .refactor-details-grid .detail-item { padding: 12px 14px; }
}

/* ============================================================
   ПРИНТ
   ============================================================ */
@media print {
    .site-header, .site-footer, .hero-buttons, .btn,
    .nav-toggle, .cta-form .btn-block, .hero-scroll-indicator,
    .burger-btn, .mobile-overlay {
        display: none !important;
    }

    .hero-section, .services-section, .landing-section,
    .portfolio-section, .cta-section, .tariffs-section,
    .business-section, .refactor-section, .faq-section,
    .tech-section {
        padding: 40px 0;
        margin: 0;
        width: 100%;
        left: 0;
        right: 0;
    }

    .hero-wrapper { flex-direction: column; min-height: auto; }
    .hero-left { flex: 1; padding: 20px; text-align: left; }
    .hero-right { flex: 0 0 auto; min-height: auto; height: 300px; width: 100%; }
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        border: 1px solid #ddd;
        background: transparent;
        backdrop-filter: none;
        border-radius: 8px;
        padding: 16px;
        max-width: 100%;
    }

    .services-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .service-card {
        border: 1px solid #ddd;
        border-radius: 4px;
        aspect-ratio: auto;
    }
    .service-card-overlay {
        background: #fff;
        position: relative;
        padding: 16px;
    }
    .service-number { color: #666; opacity: 0.5; }
    .service-title { color: #000; }
    .service-description { color: #555; }

    .tariffs-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
    .tariff-card {
        border: 1px solid #ddd !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    .price-value { color: #333 !important; }
    .currency-switcher { display: none !important; }
    .tariff-badge { background: #f0f0f0 !important; color: #333 !important; }

    .landing-section { background: #fff; color: #000; }
    .landing-title { color: #000; }
    .landing-description { color: #555; }
    .process-grid { grid-template-columns: repeat(6, 1fr); }
    .process-step { background: #f5f5f5; border: 1px solid #ddd; }
    .step-title { color: #000; }
    .step-description { color: #555; }

    .portfolio-section { background: #fff; }
    .portfolio-card { border: 1px solid #ddd; background: #fff; }
    .portfolio-title { color: #000; }
    .portfolio-title-link { color: #000; }

    .cta-section { background: #fff; }
    .cta-title { color: #000; }
    .cta-form-wrapper { padding: 20px; }
    .cta-image { display: none; }
    .cta-wrapper { grid-template-columns: 1fr; }
}

/* ============================================================
   ПОДДЕРЖКА СТАРЫХ БРАУЗЕРОВ
   ============================================================ */
@supports not (display: grid) {
    .services-grid, .portfolio-grid, .process-grid, .tariffs-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .service-card, .portfolio-card, .process-step, .tariff-card {
        flex: 0 0 calc(50% - 20px);
        margin: 10px;
    }
}

/* ============================================================
   ПЛАВНАЯ ПРОКРУТКА ДЛЯ SAFARI
   ============================================================ */
@supports (-webkit-overflow-scrolling: touch) {
    .section-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================================
   ДОСТУПНОСТЬ (Reduced Motion)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .service-card:hover .service-card-overlay {
        background: linear-gradient(180deg, rgba(11, 11, 12, 0.2) 0%, rgba(11, 11, 12, 0.85) 70%, rgba(11, 11, 12, 0.95) 100%);
    }

    .portfolio-card:hover { transform: none; }
    .portfolio-card:hover .portfolio-image img { transform: none; }
    .scroll-ball { animation: none !important; }
    .scroll-arrow { animation: none !important; }
    .tariff-card:hover { transform: none !important; }
}