/* responsive.css — дополнительные стили адаптивности */
@media (max-width: 991px) {
    .hero {
        padding: 0 1rem;
    }

    section,
    .why,
    .price,
    .gallery,
    .faq-section {
        padding: 2rem 1rem;
    }
}

/* ------------ Mobile Fixes (<= 768px) ------------ */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 76vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .hero__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 500px;
    }

    .header__contacts {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .hero__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero__image {
        margin-top: -5rem;
        margin-bottom: -5.3rem;
    }

    .hero__image img {
        max-width: 430px;
        width: 100%;
        height: auto;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero__text {
        padding-bottom: 1.5rem;
        flex: 1 1 350px;
    }

    .hero__image {
        display: none;
        align-items: flex-start;
    }

    .seo-atmospheric__image,
    .seo-atmospheric__text {
        flex: none;
    }

    .seo-atmospheric__content {
        flex-direction: column;
        text-align: center;
        padding: 0 1.5rem;
        padding-top: 1rem;
    }

    .seo-atmospheric__text h2 {
        font-size: 1.7rem;
    }

    .seo-quote {
        font-size: 0.95rem;
    }

    .services-cards {
        padding: 3rem 0.5rem;
    }

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

    .services-cards__item img {
        height: 150px;
    }

    .footer__container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer__column {
        flex: none;
        width: 100%;
    }
}

/* === ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ === */
/* Уменьшение перерисовок и переходов для быстрого рендеринга */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Критический CSS для выше сгиба (above-the-fold) */
@media (max-width: 640px) {

    /* Минимизируем шрифты для мобиля для быстрого FCP */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero__text {
        padding: 1.5rem;
    }
}