@media screen and (max-width: 1200px) {
    .main-page .header__logo {
        width: 11.125rem;
        margin-top: 0.125rem;
    }

    .main-page .header__button-courses {
        display: none;
    }

    .main-page .header__button.mobile {
        display: block;
    }

    .header__block_wrapper {
        margin-left: 2.5rem;
        margin-right: 2.5rem;
    }

    .header__site-name {
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: -0.02rem;
        margin-top: 0.7rem;
        padding-top: 0rem;
        padding-bottom: 0rem;
    }

    .header__site-description {
        font-size: 2.5rem;
        margin-top: 1rem;
        line-height: 2.8rem;
    }

    .header__site-faculty {
        font-size: 1.375rem;
    }

    .header__programs-description {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        column-gap: 1.875rem;
        row-gap: 1.5rem;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        margin-top: 4rem;
    }

    .header__programs-description__item {
        width: 28.125rem;
    }

    .header.main-page .header__background_webtech {
        margin-top: 1.25rem;
    }

    .courses-gallery {
        width: 100%;
        padding: 4.3125rem 2.5rem 5rem 2.5rem;
        margin-top: 0;
        border-radius: 4.0625rem;
    }

    .courses-gallery__cards__item {
        margin-bottom: 4.7rem;
    }

    .courses-gallery__cards__list {
        gap: 1.5rem;
    }

    .courses-gallery__cards__arrow,
    .courses-gallery__card__score {
        display: none;
    }

    .courses-gallery__cards__heading-text {
        flex-shrink: unset;
    }

    .courses-gallery__cards__heading {
        margin-top: 2.8125rem;
        margin-bottom: 1.75rem;
    }

    .courses-gallery__card-body {
        flex-wrap: wrap;
        padding: 3.75rem 2rem 3.9rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        align-self: stretch;
    }

    .courses-gallery__card__properties {
        margin-bottom: 0.5rem;
    }

    .courses-gallery__card__properties-item {
        padding: 0rem 0.5rem 0rem 0.5rem;
        font-size: 0.75rem;
        letter-spacing: -0.0075rem;
    }

    .courses-gallery__card__course-title,
    .courses-gallery__card__course-title a {
        font-size: 1.375rem;
        letter-spacing: -0.0275rem;
        margin-bottom: 0rem;
    }

    .courses-gallery__card__course-annotation {
        font-size: 0.875rem;
        line-height: 1.29rem;
    }

    .courses-gallery__card__course-benefits {
        padding-top: 1.4rem;
        max-width: 100%;
        width: 100%;
    }

    .courses-gallery__card__course-review {
        padding-top: 1.6rem;
    }

    .courses-gallery__card__review-wrapper {
        padding: 2.4rem 2.5rem 2.25rem 2.5rem;
        row-gap: 1.25rem;
    }

    .courses-gallery__card__review-wrapper::before {
        width: 3.885rem;
        height: 2.6rem;
        top: -1.7rem;
        background-size: cover;
    }

    .courses-gallery__card__course-info {
        max-width: 100%;
        margin-top: 0;
    }

    .courses-gallery__card__review_up {
        width: 100%;
    }

    .courses-gallery__card__review_down {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
    }

    .courses-gallery__card__review__rating {
        margin-top: 0.125rem;
    }

    .courses-gallery__card-footer {
        padding: 1.1rem 2.5rem 1.1rem 2.5rem;
    }

    .courses-gallery__card-footer__starttime {
        font-size: 1rem;
    }

    .courses-gallery__card-footer__starttime::before {
        width: 1.25rem;
        height: 1.25rem;
    }

    .courses-gallery__card-footer__price {
        font-size: 1.25rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card-body {
        padding: 3.75rem 1.25rem 3.6rem 2.5rem;
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        height: auto;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__properties-item {
        letter-spacing: -0.006875rem;
        font-size: 0.6875rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-annotation {
        font-size: 0.8125rem;
        line-height: 1.2rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-info {
        max-width: 39rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-title,
    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-title a {
        margin-bottom: 0.1rem;
        padding-bottom: 0rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-benefits {
        padding-top: 1.3rem;
        column-gap: 0.8125rem;
        row-gap: 0.3rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-benefits__item {
        font-size: 0.8125rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-logo {
        padding: 2.5rem 0 0 0.5rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-logo img {
        width: 13.4375rem;
        height: auto;
    }

    .courses-gallery__card__wrapper-column {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .courses-gallery__card__wrapper-column .courses-gallery__card-body {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .courses-gallery__card__wrapper-column .courses-gallery__card__properties-item {
        padding: 0rem 0.5rem 0rem 0.5rem;
    }

    .courses-gallery__card__wrapper-column .courses-gallery__card__score {
        display: none;
    }

    .courses-gallery__card__wrapper-column .courses-gallery__card__properties {
        margin-bottom: 0.4rem;
    }

    .courses-gallery__card__wrapper-column .courses-gallery__card__course-title,
    .courses-gallery__card__wrapper-column .courses-gallery__card__course-title a {
        font-size: 1.35rem;
        margin-bottom: 0.3rem;
    }

    .courses-gallery__card__wrapper-column .courses-gallery__card__course-annotation {
        margin-bottom: 1.4375rem;
        line-height: 1.125rem;
    }

    .courses-gallery__card__wrapper-column .courses-gallery__card-footer {
        padding: 1.1rem 2.5rem;
    }

    .main-footer {
        padding-top: 3.1rem;
        row-gap: 4.7rem;
    }

    .main-footer__upper {
        margin-left: 2.5rem;
        margin-right: 2.5rem;
        flex-direction: column;
        row-gap: 4.8125rem;
    }

    .main-footer__inner-links {
        gap: 2.75rem;
    }

    .main-footer__inner-links__menu {
        gap: 1.125rem;
    }

    .main-footer__friend-sites__links {
        gap: 0.6875rem;
    }

    .main-footer__friend-sites {
        column-gap: 2.5rem;
        row-gap: 4.6rem;
    }

    .main-footer__friend-sites__item {
        width: 28.25rem;
    }

    .main-footer__upper .main-footer__inner-links__ya-rating {
        display: none;
    }

    .main-footer__lower {
        border-top: none;
        flex-direction: column-reverse;
        padding: 0;
    }

    .main-footer__license {
        display: flex;
        padding: 1.25rem 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        align-self: stretch;
        border-top: 1px solid rgba(201, 212, 235, 0.20);
    }

    .main-footer__socials {
        width: 100%;
        display: flex;
        padding: 1.25rem 2.5rem 1.25rem 2.5rem;
        justify-content: space-between;
        align-items: flex-start;
        border-top: 1px solid rgba(201, 212, 235, 0.20);
    }

    .main-footer__inner-links__ya-rating {
        width: 7.5rem;
        height: 2.5rem;
    }

    .main-footer__socials-link img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .main-footer__socials-body {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
    }
}


@media screen and (max-width: 330px) {
    html {
        font-size: 12px;
    }
}