/* Tablet / Desktop Small (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
        max-width: 100% !important;
    }

    .hero-section {
        width: 100%;
        /* Override 1160px */
        height: auto;
        padding: 60px 40px;
        border-radius: 0 0 30px 30px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        width: 100%;
        flex: none;
        align-items: center;
    }

    .hero-title,
    .hero-subtitle {
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        flex: none;
    }

    .history-section,
    .approach-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        margin: 60px auto;
    }

    .history-text,
    .approach-text {
        align-items: center;
        width: 100%;
    }

    .approach-section {
        flex-direction: column-reverse;
        /* Switch image/text order if needed for consistency */
    }

    .advantages-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .advantages-grid {
        width: 100%;
    }

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

/* Tablet / Mobile Large (max-width: 790px) */
@media (max-width: 790px) {
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content {
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-title {
        font-size: 24px !important;
        line-height: 28px;
    }

    .history-title {
        font-size: 24px !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
    }

    .advantages-section {
        padding: 60px 0 !important;
        margin-top: 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .advantages-section .container {
        padding: 0 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .advantages-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: stretch !important;
    }

    .advantages-left {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .advantages-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 24px !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

    .advantage-card {
        padding: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .advantage-card h3 {
        font-size: 18px !important;
    }

    .advantage-card p {
        font-size: 14px !important;
    }

    .testimonials-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

/* Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 13px !important;
    }

    .advantages-section {
        padding: 40px 0 !important;
        margin-top: 40px !important;
    }

    .advantage-card {
        padding: 20px !important;
    }

    .advantage-card h3 {
        font-size: 16px !important;
    }

    .advantage-card p {
        font-size: 13px !important;
    }

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

    .history-title {
        font-size: 22px !important;
    }

    .section-label {
        font-size: 12px;
    }
}