/* ===========================
   Мобильная адаптация
   =========================== */

/* Планшет и ноутбуки */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .tariffs__grid {
        gap: 16px;
    }

    .infrastructure__inner {
        gap: 40px;
    }

    .footer__inner {
        gap: 30px;
    }
}

/* Планшет */
@media (max-width: 992px) {
    .hero__title {
        font-size: 40px;
    }

    .section-title,
    .infrastructure__title,
    .contacts__title {
        font-size: 30px;
    }

    .tariffs__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .infrastructure__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-block {
        height: 350px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .tariffs__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Хедер сразу с тёмным фоном на мобильном */
    .header {
        background-color: var(--color-green-dark);
    }

    /* Бургер-меню */
    .burger {
        display: flex;
    }

    .header__inner {
        justify-content: space-between;
        padding: 0 20px;
    }

    /* Логотип виден на мобильном */
    .header__logo {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-green-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 30px;
        gap: 28px;
        transition: opacity var(--transition), visibility var(--transition);
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
    }

    .header__link {
        font-size: 22px;
    }

    .header__phone {
        font-size: 18px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero__content {padding: 130px 20px}

    .hero__leaves {
        display: none;
    }

    /* Частицы видны на мобильном */
    .hero__particles {
        display: block;
    }

    .hero__title {
       font-size: 2.3rem;
        line-height: 2.3rem;
        padding-bottom: 60px;
    }

    .hero__subtitle {
        font-size: 1.4rem;
    }

    .photo-block {display: none;}

    /* Секции */
    .advantages,
    .infrastructure,
    .tariffs,
    .contacts {
        padding: 60px 0;
    }

    .section-title,
    .infrastructure__title,
    .contacts__title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Горизонтальна розкладка: число зліва, текст справа */
    .advantage-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 20px;
        row-gap: 4px;
        align-items: start;
    }

    .advantage-card__number {
        grid-row: 1 / 3;
        margin-bottom: 0;
        align-self: start;
    }

    .advantage-card__title {
        margin-bottom: 0;
    }

    .tariffs__grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .photo-block {
        height: 250px;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Модальное окно */
    .modal {
        padding: 40px 24px;
        margin: 0 16px;
    }

    .modal__title {
        font-size: 22px;
    }

    /* Слайдер */
    .slider__decor {
        display: none;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    

    .btn {
        padding: 12px 28px;
        font-size: 13px;
    }

    .section-title,
    .infrastructure__title,
    .contacts__title {
        font-size: 22px;
    }

    .tariff-card {
        padding: 20px;
    }

    .tariff-card__price {
        font-size: 24px;
    }

    .slider__btn {
               width: 38px;
        height: 38px;
        font-size: 14px;
        right: -20px;
        top: 50%;
    }
}
