/* =========================
ПЛАНШЕТ (до 1024px)
========================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 52px; letter-spacing: -2px; }
    .hero p  { font-size: 18px; }
    .new-price { font-size: 36px; }
    h2 { font-size: 36px; margin-bottom: 45px; }
    section { padding: 70px 0; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    
    .features-grid   { grid-template-columns: repeat(2, 1fr); }
    .delivery-grid   { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* =========================
МОБИЛЬНЫЕ (до 768px) — БУРГЕР
========================= */
@media (max-width: 768px) {
    .header-container { height: 70px; }

    /* БУРГЕР — показываем */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        order: 2;
        z-index: 1001;
    }
    .burger span {
        display: block;
        height: 3px;
        background: #111827;
        border-radius: 2px;
        transition: .3s;
    }

    /* МЕНЮ — скрыто по умолчанию */
    .menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        z-index: 999;
    }
    .menu.active { display: flex; }
    .menu a {
        padding: 15px 25px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 16px;
        text-align: center;
    }

    .header-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* HERO */
    .hero { padding: 120px 0 60px; }
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-content { width: 100%; }
    .hero-image   { width: 85%; }
    .price { justify-content: center; }
    .trust { justify-content: center; flex-wrap: wrap; gap: 15px; }
	
	

	/* =========================
	GALLERY — МОБИЛЬНАЯ ВЕРСИЯ
	========================= */
	@media (max-width: 600px) {
	    .gallery {
	        padding: 20px 0 15px;
	    }
    
	    .gallery h2 {
	        font-size: 22px;
	        margin-bottom: 15px;
	    }
    
	    .gallery-wrapper {
	        width: 100%;
	    }
    
	    /* Основное фото — без рамок и отступов */
	    .gallery-main {
	        width: 100%;
	        max-width: 100%;
	        padding: 0;                  /* Убрали padding */
	        border-radius: 0;
	        background: #f8fafc;         /* светло голубой фон вместо белого */
	        box-shadow: none;
	        height: auto;
	        overflow: hidden;
	    }
    
		.gallery-main-image {
		    width: 100vw;              /* На всю ширину viewport */
		    margin-left: -5%;          /* Компенсируем container */
		    height: auto;
		    max-height: 85vh;
		    object-fit: contain;
		}
    
	    /* Миниатюры внизу */
	    .gallery-thumbs {
	        display: flex;
	        justify-content: center;
	        gap: 8px;
	        margin-top: 12px;
	        padding: 0 10px;
	    }
    
	    .gallery-thumb {
	        width: 55px;
	        height: 55px;
	        border-radius: 10px;
	        opacity: 0.5;
	        border: 2px solid transparent;
	        object-fit: cover;
	        flex-shrink: 0;
	    }
    
	    .gallery-thumb.active {
	        opacity: 1;
	        border-color: #f8fafc;
	        box-shadow: 0 4px 12px rgba(37,99,235,0.3);
	    }
	}
	
	
	
    /* ORDER */
    .order-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .order-info h2, .order-info p { text-align: center; }
    .order-benefits { align-items: center; }
    .order-form { padding: 30px 25px; border-radius: 25px; }
}


/* =========================
USE CASES — АДАПТИВ
========================= */
@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .use-cases {
        padding: 55px 0;
    }
    
    .use-cases h2 {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .use-case-card {
        padding: 30px 20px;
        border-radius: 22px;
    }
    
    .use-case-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 18px;
    }
    
    .use-case-card h3 {
        font-size: 19px;
    }
}

/* =========================
COMFORT — АДАПТИВ
========================= */
@media (max-width: 1024px) {
    .comfort-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .comfort-image,
    .comfort-content {
        width: 100%;
    }
    
    .comfort-content h2 {
        font-size: 36px;
        text-align: center;
    }
    
    .comfort-content p {
        text-align: center;
    }
    
    .comfort-list {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .comfort {
        padding: 55px 0;
    }
    
    .comfort-image img {
        border-radius: 20px;
    }
    
    .comfort-content h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .comfort-content p {
        font-size: 16px;
        text-align: center;
    }
    
    .comfort-list li {
        font-size: 15px;
    }
}

/* =========================
МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 600px)
========================= */
@media (max-width: 600px) {
    .container { width: 92%; }
    section { padding: 55px 0; }
    h2 { font-size: 28px; margin-bottom: 35px; letter-spacing: -.5px; }

    .logo { font-size: 18px; }
    .header-button { padding: 8px 16px; font-size: 13px; }

    .hero { padding: 110px 0 50px; }
    .hero h1 { font-size: 34px; letter-spacing: -1px; margin-bottom: 20px; }
    .badge { font-size: 12px; padding: 6px 14px; margin-bottom: 18px; }
    .rating { font-size: 16px; margin-bottom: 18px; }
    .hero p { font-size: 16px; margin-bottom: 22px; }
    .price { gap: 12px; margin-bottom: 25px; }
    .old-price { font-size: 20px; }
    .new-price { font-size: 30px; }
    .main-button { padding: 16px 30px; font-size: 16px; width: 100%; text-align: center; }
    .trust { font-size: 12px; gap: 10px; margin-top: 25px; }
    .hero-image { width: 100%; }

    .advantages-grid { grid-template-columns: 1fr; gap: 15px; }
    .advantage-card { padding: 30px 20px; border-radius: 22px; }
    .advantage-icon { width: 60px; height: 60px; font-size: 28px; margin-bottom: 18px; }
    .advantage-card h3 { font-size: 19px; }

    .gallery-main { padding: 20px; border-radius: 20px; }
    .gallery-main-image { max-height: 260px; }
    .gallery-thumb { width: 60px; height: 60px; border-radius: 12px; }

   

    .features-grid { grid-template-columns: 1fr; gap: 15px; }
    .feature-item { padding: 25px 20px; border-radius: 20px; }
    .feature-title { font-size: 18px; }

    /* Reviews: carousel on mobile */

    .delivery-grid { grid-template-columns: 1fr; gap: 15px; }
    .delivery-card { padding: 30px 20px; border-radius: 22px; }
    .delivery-icon { width: 60px; height: 60px; font-size: 20px; margin-bottom: 18px; }
    .delivery-card h3 { font-size: 20px; }
    .delivery-note { font-size: 17px; margin-top: 30px; }

    .order-wrapper { gap: 30px; }
    .order-info p { font-size: 16px; }
    .order-price { font-size: 17px; margin: 25px 0; }
    .order-price strong { font-size: 32px; }
    .order-form { padding: 25px 20px; border-radius: 22px; }
    .order-form input, .order-form select { padding: 15px; font-size: 15px; }
    .order-form button { padding: 16px; font-size: 16px; }
}


/* На десктопе бургер скрыт */
.burger { display: none; }




/* =========================
FOOTER — АДАПТИВ
========================= */
@media (max-width: 600px) {
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-worktime {
        font-size: 13px;
    }
    
    .footer-links-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-links-row a {
        font-size: 13px;
    }
    
    .footer-ip {
        font-size: 10px;
    }
    
    .footer-toggle-text {
        font-size: 12px;
    }
    
    .footer-details {
        padding: 15px 18px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .footer-details p {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 10px;
    }
}

/* =========================
   CUSTOM DROPDOWN — MOBILE
========================= */
@media (max-width: 768px) {
    .custom-select.open .custom-select-options {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .custom-option {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .custom-select-trigger {
        padding: 15px;
        font-size: 15px;
    }

    .custom-option {
        padding: 14px 15px;
        font-size: 15px;
    }
}