/* ================================================================
   03 - Responsive rules and media queries
================================================================ */

/* Планшеты (до 1200px) */
@media (max-width: 1200px) {
    .hero__container {
        justify-content: center;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__image {
        max-width: 600px;
        margin: 0 auto;
    }

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

    .career__logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .career__logo-slot {
        height: 100px;
    }

    .career__roles {
        grid-template-columns: 1fr;
    }

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

    /* Информационные карточки программы - 2 колонки на планшетах */
    .program-info__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Трек обучения - вертикальный на планшетах */
    .education-track__timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .education-track__timeline::before,
    .education-track__timeline::after {
        display: none;
    }

    .education-track__year {
        padding: 0;
    }

    .education-track__marker {
        margin-bottom: 1rem;
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Навигация */
    .nav__links,
    .nav__cta {
        display: none;
    }

    /* На мобильных переключатель темы центрируется между логотипом и бургером */
    .nav__container .theme-toggle {
        margin-left: auto;
        margin-right: auto;
    }

    .nav__burger {
        display: flex;
    }

    /* Мобильное меню — появляется сверху вниз под шапкой */
    .nav__mobile {
        border-radius: 0 0 1rem 1rem;
    }

    /* Hero */
    .hero__container {
        padding: 0 1rem;
        padding-top: 80px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero__subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero__badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    /* Декор hero — уменьшаем на мобилках */
    .hero__dots {
        width: 100px;
        height: 100px;
        opacity: 0.35;
    }

    .hero__circle--1 {
        width: 160px;
        height: 160px;
    }

    .hero__circle--2 {
        display: none;
    }

    .hero__line {
        display: none;
    }

    /* Декор секций — уменьшаем/скрываем на мобилках */
    .decor {
        display: none;
    }

    .about::before,
    .education-track::before,
    .advantages::after,
    .curriculum::before,
    .career::before,
    .gallery::before,
    .footer::before {
        width: 80px;
        height: 80px;
        opacity: 0.3;
    }

    .about::after,
    .education-track::after,
    .advantages::before,
    .curriculum::after,
    .career::after,
    .gallery::after,
    .footer::after {
        display: none;
    }

    .cta::before {
        width: 100px;
        height: 100px;
        opacity: 0.3;
    }

    .cta::after {
        display: none;
    }

    /* ПРЕИМУЩЕСТВА */
    .advantages__grid {
        grid-template-columns: 1fr;
    }

    /* О НАС */
    .about__features {
        grid-template-columns: 1fr;
    }

    /* Скрываем текст подсказки на мобильных, оставляем только иконку глаза */
    .about__feature-touch::after {
        content: none;
    }

    .about__feature-touch {
        opacity: 0.5;
    }

    .about__feature-touch .icon--desktop {
        display: none;
    }

    .about__feature-touch .icon--mobile {
        display: inline;
        width: 24px;
        height: 24px;
    }

    /* ГАЛЕРЕЯ */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .gallery__item--wide,
    .gallery__item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* ПРИЗЫВ К ДЕЙСТВИЮ */
    .cta__info {
        flex-direction: column;
        gap: 2rem;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}



/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero__container {
        padding: 0 0.75rem;
        padding-top: 70px;
    }

    .hero__title {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn--large {
        width: 100%;
    }

    .career__role {
        flex-wrap: wrap;
    }

    .career__role-salary {
        width: 100%;
        text-align: left;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

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

    .career__logo-slot {
        height: 80px;
    }

    /* Информационные карточки программы - 1 колонка на мобильных */
    .program-info__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    /* Трек обучения */
    .education-track__skills {
        flex-direction: column;
    }

    .education-track__skill {
        text-align: center;
    }
}
