/* Tablet Styles (700px - 999px) */
@media (max-width: 999px) {
    .heroDiv {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .heroDiv .right {
        order: 2 !important;
    }
    
    .left h1 {
        font-size: 3rem;
    }
    
    .serviceDiv {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .boxDiv {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .owl-carousel .owl-stage-outer {
        overflow: visible;
    }
    
    /* Gallery Mobile Styles */
    #gallerySection {
        padding: 60px 0;
    }
    
    .gallery-slide {
        margin: 0 5px;
    }
    
    .gallery-slide img {
        height: 240px;
    }
    
    /* Reviews grid tablet adjustments */
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    /* Hero tablet adjustments */
    .heroDiv {
        gap: 50px;
    }
    
    .left h1 {
        font-size: 3.75rem;
    }
    
    /* Advantages tablet layout */
    .advantages-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .advantages-image-container {
        height: 300px;
    }
}

/* Mobile Styles (≤ 699px) */
@media (max-width: 699px) {
    .container {
        padding: 0 16px;
    }
    
    /* Header Mobile */
    .hamburger {
        display: block;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-top: none;
        z-index: 1000;
    }
    
    .menu.active {
        display: block;
    }
    
    .menu ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .menu li {
        border-bottom: 1px solid var(--border-color);
        padding: 16px 0;
    }
    
    .menu li:last-child {
        border-bottom: none;
    }
    
    .callBtn {
        display: none;
    }
    
    #headerSection {
        position: relative;
        padding: 15px 0;
    }
    
    .logo img {
        height: 60px;
    }
    
    .hamburger {
        font-size: 1.25rem;
    }
    
    /* Hero Mobile */
    #heroSection {
        padding: 40px 0;
        background: 
            linear-gradient(135deg, rgba(11, 13, 15, 0.9) 0%, rgba(10, 12, 14, 0.95) 100%),
            url('../images/hero-bg.jpg') center center/cover no-repeat;
        background-attachment: scroll;
        min-height: auto;
    }
    
    .heroDiv {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
    }
    
    .heroDiv .left {
        order: 1 !important;
    }
    
    .heroDiv .right {
        order: 2 !important;
    }
    
    .left h1 {
        font-size: 3rem;
    }
    
    .left > p {
        font-size: 1.125rem;
        margin-bottom: 40px;
    }
    
    .proof {
        justify-content: center;
        gap: 8px;
        margin-bottom: 40px;
    }
    
    .chip {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* Form Mobile */
    .formCard {
        padding: 24px;
        margin-top: 0;
        min-height: auto;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    /* Services Mobile */
    #serviceSection {
        padding: 60px 0;
    }
    
    #serviceSection h2 {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .serviceDiv {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .serviceBox {
        padding: 24px 20px;
    }
    
    /* Why Choose Us Mobile */
    #whyChooseUsSection {
        padding: 60px 0;
    }
    
    .whyChooseUsDiv h2 {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .boxDiv {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Testimonials Mobile */
    #testimonialSection {
        padding: 60px 0;
    }
    
    #testimonialSection h2 {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .contentDiv {
        padding: 24px;
    }
    
    /* Footer Mobile */
    #footerSection .container {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Touch Targets */
    .btn,
    .callBtn a,
    .menu a,
    .hamburger {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    input,
    select,
    textarea {
        min-height: 44px;
    }
    
    .consent {
        gap: 16px !important;
    }
    
    .consent input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Extra Small Mobile (≤ 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .left h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .left > p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .formCard {
        padding: 20px;
        margin: 0 auto;
    }
    
    .logo img {
        height: 50px;
    }
    
    #serviceSection h2,
    .whyChooseUsDiv h2,
    #testimonialSection h2,
    #advantagesSection h2,
    .advantages-container h2 {
        font-size: 1.75rem;
    }
    
    .advantages-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantages-image-container {
        height: 250px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
        min-height: auto;
    }
    
    .review-card h4 {
        font-size: 0.8rem;
    }
    
    .review-card .description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .serviceBox i,
    .box i {
        font-size: 2rem;
    }
    
    .chip {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    
    .proof {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    /* Gallery mobile adjustments */
    #gallerySection {
        padding: 50px 0;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .gallery-slide img {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-overlay h4 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }
    
    .gallery-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
