/* ========== АДАПТИВ ========== */

/* Планшеты (до 980px) - для хедера и навигации */
@media (max-width: 980px) {
    .burger {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ece6dd;
        flex-direction: column;
        gap: 0;
        z-index: 100;
    }

    nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-grid,
    .about,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .catalog-card img {
        height: 450px;
    }

    .about-image {
        height: 500px;
    }
}

/* Адаптив для галерей (до 900px) */
@media (max-width: 900px) {
    .gallery-layout {
        flex-direction: column;
        gap: 40px;
    }

    .gallery-left {
        flex: auto;
        width: 100%;
    }

    .gallery-right {
        flex: auto;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .thumbnails-wrapper {
        max-width: 100%;
    }

    .thumbnails-row img,
    .thumb-placeholder {
        width: 85px;
        height: 85px;
        border-radius: 14px;
    }

    .thumb-prev,
    .thumb-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Адаптив для контактов (до 860px) */
@media (max-width: 860px) {
    .contact-card {
        padding: 32px;
        gap: 32px;
    }

    .contact-card h3 {
        font-size: 32px;
        margin-bottom: 22px;
    }

    .contacts-row {
        gap: 28px;
    }

    .contact-value {
        font-size: 18px;
    }
}

/* Адаптив для героя (до 768px) */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-btn {
        padding: 12px 30px;
    }
}

/* Мобильные (до 640px) */
@media (max-width: 640px) {
    .section {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 32px;
    }

    .section-desc {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .gallery-layout {
        gap: 30px;
    }

    .gallery-right {
        aspect-ratio: 1 / 1;
    }

    .thumbnails-wrapper {
        gap: 8px;
    }

    .thumbnails-row img,
    .thumb-placeholder {
        width: 75px;
        height: 75px;
        border-radius: 12px;
    }

    .thumb-prev,
    .thumb-next {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .contact-card {
        padding: 24px;
    }

    .contact-card h3 {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .contact-item {
        flex: 1 1 100%;
    }

    .map iframe {
        height: 280px;
    }

    .main-image-placeholder {
        min-height: 300px;
        padding: 30px;
    }

    .main-image-placeholder svg {
        width: 50px;
        height: 50px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }

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

    .thumbnails-row img,
    .thumb-placeholder {
        width: 65px;
        height: 65px;
        border-radius: 10px;
    }

    .thumb-prev,
    .thumb-next {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .catalog-card img {
        height: 300px;
    }

    .about-image {
        height: 300px;
    }
}