@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.4375rem;
    }

    .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_webtech {
        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;
    }

    .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.6875rem;
        margin-top: 2.875rem;
        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__review-wrapper {
        padding: 2.4375rem 1.25rem 2.4375rem 1.25rem;
        row-gap: 1.1875rem;
    }

    .courses-gallery__card__review-wrapper::before {
        background-size: contain;
        width: 4.875rem;
        height: 3.125rem;
        left: 1.0625rem;
        top: -1.8125rem;
    }

    .courses-gallery__card__review_up {
        max-width: 15.9375rem;
    }

    .courses-gallery__card__course-review__text {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .courses-gallery__card__review__author span {
        font-size: 0.875rem;
    }

    .courses-gallery__card__review_down {
        max-width: 15.9375rem;
        padding-top: 0.9375rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        row-gap: 1.125rem;
    }

    .courses-gallery__card__review__rating-vk {
        width: 6.5625rem;
        height: 1.125rem;
    }

    .courses-gallery__card__review__rating-value {
        font-size: 0.875rem;
        margin-right: 0.3125rem;
    }

    .courses-gallery__card__review__link-more__wrapper {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: nowrap;
        column-gap: 0.1875rem;
        align-items: center;
    }

    .courses-gallery__card__review__link-more {
        font-size: 0.75rem;
        border-bottom: 0.0625rem solid #0B68FE;
        padding-bottom: 0.0625rem;
    }

    .courses-gallery__card__review__link-more__wrapper::after {
        width: 1rem;
        height: 1rem;
        background-size: contain;
    }


    .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-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;
    }

    .main-footer {
        padding-top: 3rem;
        row-gap: 4rem;
    }

    .main-footer__upper {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        row-gap: 3.625rem;
    }

    .main-footer__inner-links {
        margin-top: 0rem;
        row-gap: 1.375rem;
    }

    .main-footer__inner-links__heading {
        width: 15.4375rem;
    }

    .main-footer__inner-links__menu {
        max-width: 20.625rem;
        gap: 0.875rem;
    }

    .main-footer__inner-links__menu-item, 
    .main-footer__inner-links__menu-item a {
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.375rem;
    }

    .main-footer__friend-sites {
        row-gap: 3.625rem;
    }

    .main-footer__socials {
        padding: 20px 1.25rem 20px 1.25rem;
    }

    .main-footer__license {
        padding: 1.1875rem 1.25rem 20px 1.25rem;
    }

    .main-footer__license__links {
        flex-direction: column;
        row-gap: 0.25rem;
    }

    .main-footer__license__links-item {
        line-height: 0.9375rem;
        display: inline-block;
    }

}