@media screen and (max-width: 768px) {
    .header__block_menu {
        margin: 1.0625rem 1rem 0rem 1rem;
    }

    .header__block_wrapper {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        margin-top: 3.6875rem;
    }

    .header__site-name {
        font-size: 1.375rem;
        font-style: normal;
        font-weight: 400;
        line-height: 115%; /* 1.5813rem */
        letter-spacing: 0.0138rem;
        padding: 0.3125rem 0.625rem 0.25rem 0.625rem;
        border-radius: 2.5rem;
    }

    .header__site-description {
        font-size: 1.75rem;
        line-height: 120%; /* 2.1rem */
        letter-spacing: -0.035rem;
        margin-top: 0.8125rem;
    }

    .header__site-faculty { 
        font-size: 0.875rem;
        line-height: 115%; /* 1.0063rem */
    }

    .header__programs-description {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: 1.9375rem;
        row-gap: 1.375rem;
    }


    .header__programs-description__item {
        width: auto;
        max-width: 20.9375rem;
        column-gap: 0.5rem;
    }

    .header.main-page .header__background_design {
        display: block;
        margin-top: 1.0625rem;
    }

    .courses-gallery {
        border-radius: 2.5rem;
        padding: 4.125rem 1.25rem 4rem 1.25rem;
        margin-bottom: 3rem;
    }

    .courses-gallery__cards__item {
        margin-bottom: 3.8125rem;
        row-gap: 0px;
    }

    .courses-gallery__cards__item.ProAdvanced .courses-gallery__cards__list:nth-child(2) {
        margin-bottom: 1.3125rem;
    }

    .courses-gallery__filter-button {
        padding: 0.625rem 1rem 0.625rem 1rem;
        border-radius: 2.5rem;
        font-size: 0.8125rem;
        font-weight: 550;
        line-height: 115%; /* 0.9344rem */
        letter-spacing: -0.0187rem;
    }

    .courses-gallery__filter-divider {
        width: 18.4375rem;
        height: 0.0625rem;
        background-color: #C9D4EB;
        justify-self: center;
    }


    .courses-gallery__filter-item {
        padding-top: 1rem;
        padding-bottom: 1rem;
        font-size: 0.8125rem;
    }

    .courses-gallery__filter-item:first-child {
        padding-bottom: 0.9375rem;
    }

    .courses-gallery__cards__list {
        gap: 1.25rem;
    }

    .courses-gallery__cards__heading {
        font-size: 1.375rem;
        line-height: 1.625rem;
        margin-top: 0rem;
        margin-bottom: 1.25rem;
    }

    .courses-gallery__card-body {
        padding: 2.5rem 1.25rem;
        border-radius: 2rem 2rem 0rem 0rem;
    }

    .courses-gallery__card__properties {
        row-gap: 0.3125rem;
        column-gap: 0.25rem;
        margin-bottom: 0.8125rem;
    }

    .courses-gallery__card__properties-item {
        padding: 0.25rem 0.5rem 0.125rem 0.5rem;
        font-size: 0.6875rem;
        line-height: 140%; /* 0.9625rem */
        letter-spacing: -0.0069rem;
    }

    .courses-gallery__card__course-title, 
    .courses-gallery__card__course-title a {
        font-size: 1.25rem;
        font-weight: 550;
        line-height: 120%; /* 1.5rem */
        letter-spacing: -0.0125rem;
        padding-bottom: 0rem;
        margin-bottom: 0.625rem;
    }

    .courses-gallery__card__course-annotation {
        line-height: 1.0625rem;
        margin-bottom: 0.9375rem;
    }

    .courses-gallery__card__course-benefits {
        padding-top: 0.9375rem;
        row-gap: 0.375rem;
        column-gap: 0.5rem;
    }

    .courses-gallery__card__course-review {
        padding-top: 2.1875rem;
    }

    .courses-gallery__card-footer {
        padding: 1.4375rem 1.25rem 1.375rem 1.25rem;
        border-radius: 0rem 0rem 2rem 2rem;
    }

    .courses-gallery__card-footer__starttime::before {
        width: 1rem;
        height: 1rem;
        background-size: contain;
    }

    .courses-gallery__card-footer__starttime {
        font-size: 0.875rem;
        line-height: 140%; /* 1.225rem */
        column-gap: 0.375rem;
    }

    .courses-gallery__card-footer__price {
        font-size: 1rem;
        line-height: 120%; /* 1.2rem */
        letter-spacing: -0.01rem;
    }

    .courses-gallery__cards__list.pro-retraining .courses-gallery__card-body {
        flex-direction: column-reverse;
        justify-content: flex-start;
        flex-wrap: nowrap;
        row-gap: 0rem;
    }

    .courses-gallery__cards__list.pro-retraining .courses-gallery__card__course-info {
        margin-top: 1rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card-body {
        flex-direction: column-reverse;
        padding: 2.5rem 1.25rem 2.1875rem 1.25rem;
        border-radius: 2rem 2rem 0rem 0rem;
        row-gap: 1.3125rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-logo {
        padding: 0.5625rem 0 0 0rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-logo img {
        width: 10.5625rem;
    }


    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-title, 
    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-title a {
        font-size: 1.125rem;
        line-height: 1.4375rem;
        margin-bottom: 0.5rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-annotation {
        font-size: 0.8125rem;
        line-height: 1rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__course-benefits {
        padding-top: 0.8125rem;
        row-gap: 0.125rem;
        column-gap: 0.5625rem;
    }

    .courses-gallery__card__wrapper-column {
        row-gap: 1.3125rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__wrapper-column .courses-gallery__card-body {
        flex-direction: column;
        row-gap: 1rem;
    }

    .courses-gallery__cards__list-with-picture  .courses-gallery__card__wrapper-column .courses-gallery__card__properties {
        row-gap: 0.3125rem;
        column-gap: 0.25rem;
        margin-bottom: 0.8125rem;
    }

    .courses-gallery__cards__list-with-picture  .courses-gallery__card__wrapper-column .courses-gallery__card__properties-item {
        padding: 0.25rem 0.5rem 0.125rem 0.5rem;
        font-size: 0.6875rem;
        line-height: 140%; /* 0.9625rem */
        letter-spacing: -0.0069rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__wrapper-column .courses-gallery__card__course-logo {
        padding: 0 0 0 0;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__wrapper-column .courses-gallery__card__course-logo img {
        width: 10rem;
    }

    .courses-gallery__cards__list-with-picture .courses-gallery__card__wrapper-column .courses-gallery__card-footer {
        padding: 1.4375rem 1.25rem 1.375rem 1.25rem;
        border-radius: 0rem 0rem 2rem 2rem;
    }

    .courses-gallery__card__wrapper-column.three-columns .courses-gallery__card__course-title, .courses-gallery__card__wrapper-column.three-columns .courses-gallery__card__course-title a {
        font-size: 1.125rem;
    }

    .courses-gallery__card__wrapper-column.three-columns .courses-gallery__card__course-annotation {
        font-size: 0.8125rem;
        line-height: 1rem;
    }

    .courses-gallery__card__wrapper-column.three-columns .courses-gallery__card-footer__starttime {
        font-size: 0.875rem;
    }

    .courses-gallery__card__wrapper-column.three-columns .courses-gallery__card-footer__price {
        font-size: 1rem;
    }

    .courses-gallery__card__wrapper-column.three-columns .courses-gallery__card-footer__starttime::before {
        width: 1rem;
        height: 1rem;
    }

    .main-footer {
        background-image: url("../../images/footer-bg-mobile.svg");
    }

    .main-footer__upper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 4rem 1.25rem 3.5625rem 1.25rem;
    }

    .main-footer__logo {
        width: 14.5625rem;
        height: 2.0625rem;
    }

    .main-footer__description {
        font-size: 0.875rem;
        margin-top: 0.625rem;
    }

    .main-footer__link {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .main-footer__content {
        padding: 4rem 1.25rem 4rem 1.1875rem;
        row-gap: 4rem;
    }

    .main-footer__courses__head {
        padding-bottom: 1rem;
        display: block;
    }

    .main-footer__courses__logo {
        width: 16.4375rem;
        height: 2.0625rem;
    }

    .main-footer__courses__title {
        font-size: 0.875rem;
        margin-top: 0.875rem;
        letter-spacing: -0.0063rem;
    }

    .main-footer__courses__list {
        row-gap: 0.5rem;
    }

    .main-footer__courses__item a {
        font-size: 0.875rem;
    }

    .main-footer__courses__link {
        margin-top: 1.4375rem;
    }

    .main-footer__courses__link a {
        font-size: 0.9375rem;
    }

    .main-footer__courses__head .main-footer__courses__ya-rating {
        display: none;
    }

    .main-footer__courses__ya-rating {
        display: block;
        margin-top: 2.5rem;
    }

    .main-footer__friend-sites {
        row-gap: 4rem;
        column-gap: normal;
    }

    .main-footer__friend-sites__item,
    .main-footer__friend-sites__item:nth-child(3), 
    .main-footer__friend-sites__item:nth-child(4) {
        min-height: auto;
    }

    .main-footer__friend-sites__heading {
        height: 1.5rem;
    }

    .main-footer__friend-sites__title {
        font-size: 0.875rem;
        padding-bottom: 1.0625rem;
        margin-bottom: 0rem;
        min-height: auto;
    }

    .main-footer__friend-sites__links {
        margin-top: 1.5rem;
        row-gap: 0.75rem;
    }

    .main-footer__friend-sites__links-item a {
        font-size: 0.875rem;
    }

    .main-footer__friend-sites__more-courses, 
    .main-footer__friend-sites__item:nth-child(1) .main-footer__friend-sites__more-courses, 
    .main-footer__friend-sites__item:nth-child(2) .main-footer__friend-sites__more-courses {
        margin-top: 1.75rem;
    }

    .main-footer__friend-sites__more-courses span {
        font-size: 0.9375rem;
    }

    .main-footer___feedback {
        width: 100vw;
        padding: 2.3125rem 1.25rem 2.5rem 1.25rem;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        border-radius: 2.5rem 2.5rem 0 2.5rem;
    }

    .main-footer___feedback__title {
        font-size: 1.375rem;
    }

    .main-footer___feedback__link {
        margin-top: 1.625rem;
    }

    .main-footer__lower {
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1.375rem 1.25rem 1.5rem 1.25rem;
        row-gap: 0.75rem;
    }

    .main-footer__socials {
        align-self: flex-start;
    }

    .main-footer__socials-body {
        margin-top: 0rem;
    }

    .main-footer__socials-body span {
        font-size: 0.875rem;
    }

    .main-footer__socials-link img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .main-footer__license {
        row-gap: 1rem;
    }

    .main-footer__license__title {
        font-size: 0.75rem;
    }

    .main-footer__license__links {
        flex-direction: column;
        gap: 0.4375rem;
    }

    .main-footer__license__links-item {
        font-size: 0.6875rem;
    }
}