.course_container {
    padding: 3vw;
}

.course_container_title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    text-align: right;
}

.course_container_title h1 {
    margin-bottom: 0;
    margin: 0;
}

.course_flex_row-strech {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    flex-wrap: wrap;
}

.courses_main_banner {
    position: relative;
    z-index: 12;
    border-radius: 4vw;
    width: 96vw;
    /* min-height: 96vw; */
    margin: 2vw auto;
    padding: 0vw;
    top: 0;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 30px;
    color: #FFFFFF;
    background: rgb(13, 84, 193);
    /* background: linear-gradient(to left top, rgba(13, 84, 193, 1), rgba(15, 155, 217, 1)); */
    background: linear-gradient(116.86deg, #FFA32E 3.99%, #ED572D 87.65%);
}

.courses_main_banner::after,
.courses_main_banner::before {
    content: "";
    position: absolute;
    display: block;
    border-radius: 50%;
    z-index: -1;
    background-blend-mode: screen;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
    user-select: none;
}

.courses_main_banner::after {
    width: 60vw;
    height: 60vw;
    right: -12vw;
    bottom: -8vw;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
    animation-name: courses_main_banner_background;
    /* animation-delay: 7.5s; */
}

.courses_main_banner::before {
    width: 90vw;
    height: 90vw;
    left: -23vw;
    top: -20vw;
    background: linear-gradient(242.13deg, rgba(255, 255, 255, 0) 8.93%, rgba(255, 255, 255, 0.1) 86.37%);
    animation-name: courses_main_banner_background;
}

@keyframes courses_main_banner_background {

    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate3d(0, 0, 0) scale(0.9) rotate(180deg);
        filter: blur(15px);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(360deg);
    }
}


.courses_main_banner_grid_container {
    width: 88vw;
    min-width: 88vw;
    padding: 4vw;
    display: grid;
    gap: 0px;
    /* Отступы между блоками */
}

.courses_main_banner_grid_area1,
.courses_main_banner_grid_area2,
.courses_main_banner_grid_area3,
.courses_main_banner_grid_area4,
.courses_main_banner_grid_area5 {
    /* background-color: #f0f0f030; */
    padding: 0px;
    text-align: center;
    color: #fff;
}

/* Стили для мобильных устройств */
@media (max-width: 1199px) {
    .courses_main_banner_grid_container {
        grid-template-columns: 70% 30%;
        /* Сетка для первых двух блоков */
        grid-template-rows: auto auto auto auto;
        /* Автоматические высоты */
        grid-template-areas:
            "grid_area1 grid_area2"
            "grid_area3 grid_area3"
            "grid_area4 grid_area4"
            "grid_area5 grid_area5";
        /* Остальные блоки на 100% ширины */
    }

    .courses_main_banner_grid_area1 {
        grid-area: grid_area1;
    }

    .courses_main_banner_grid_area2 {
        grid-area: grid_area2;
    }

    .courses_main_banner_grid_area3 {
        grid-area: grid_area3;
        width: 100%;
        padding-bottom: 14px;
    }

    .courses_main_banner_grid_area4 {
        grid-area: grid_area4;
        width: 100%;
        padding-bottom: 14px;
    }

    .courses_main_banner_grid_area5 {
        grid-area: grid_area5;
        width: 100%;
    }
}

/* Стили для десктопов */
@media (min-width: 1200px) {
    .courses_main_banner_grid_container {
        grid-template-columns: 55% 45%;
        /* Две колонки по 50% */
        grid-template-rows: auto auto auto;
        /* Автоматические высоты */
        grid-template-areas:
            "grid_area1 grid_area2"
            "grid_area1 grid_area4"
            "grid_area3 grid_area3"
            "grid_area5 grid_area5";
        /* Блоки 3 и 5 на всю ширину ниже */
    }

    .courses_main_banner_grid_area1 {
        grid-area: grid_area1;
    }

    .courses_main_banner_grid_area2 {
        grid-area: grid_area2;
    }

    .courses_main_banner_grid_area3 {
        grid-area: grid_area3;
    }

    .courses_main_banner_grid_area4 {
        grid-area: grid_area4;
    }

    .courses_main_banner_grid_area5 {
        grid-area: grid_area5;
    }
}

.courses_main_banner_images {
    width: 100%;
    height: 36vw;
    margin-right: -12vw;
    position: relative;
    /* transform: translate(7%, -23%); */
    transform: translate(-4%, -23%);
}

.courses_main_banner_images img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50%;
    transform: translate(-50%, -50%);
    /* transform-origin: bottom; */
    transform-origin: left center;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
    transition: transform .7s cubic-bezier(0.175, 0.885, 0.32, 1.075) .3s;
    user-select: none;
    pointer-events: none;
    border-radius: 1.5vw;
}

.courses_main_banner_images.show img {
    transform: translate(-60%, -50%) scale(1);
}

.courses_main_banner_images.show img:first-child {
    /* transform: translate(-40%, -50%) rotate(7deg); */
    /* transform: translate(-15%, -50%) rotate(8.38deg) scale(.8); */
    transform: translate(-32%, -50%) scale(.9);
}

.courses_main_banner_images.show img:last-child {
    /* transform: translate(-60%, -50%) rotate(-7deg); */
    /* transform: translate(-80%, -50%) rotate(-15deg) scale(1.1); */
    transform: translate(-90%, -50%) scale(1.1);
}

a:hover .courses_main_banner_images.show img:first-child {
    transition-delay: 0s;
    transform: translate(-22%, -50%) scale(.9);
}

a:hover .courses_main_banner_images.show img:last-child {
    transition-delay: 0s;
    transform: translate(-100%, -50%) scale(1.1);
}

.course_labels {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.course_label {
    background-color: #86FF7C;
    padding: 7px 10px;
    line-height: 100%;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    color: #2A2A2A;
    min-width: max-content;
}

.course_label.course_label_best {
    background-color: #64F5FF;
}

.course_label.course_label_discount {
    background-color: #FFEC6E;
}

.course_label.course_label_best::before,
.course_label.course_label_discount::before {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    display: inline;
    width: 12px;
    height: 12px;
    transition: transform .7s cubic-bezier(0.175, 0.885, 0.32, 1.075);
}

.course_label.course_label_best::before {
    background-image: url('/assets/images/star.svg');
}

.course_label.course_label_discount::before {
    background-image: url('/assets/images/discount.svg');
}

.course_includes_wrapper ul {
    margin: 0;
    padding: 0;
}

.course_includes {
    margin: 14px 0 0 0;
    padding: 0;
    display: flex;
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
}

.course_includes [class^="icon-"] {
    font-size: 20px;
    color: #60F054;
    width: 20px;
    transition: transform .7s cubic-bezier(0.175, 0.885, 0.32, 1.075);
}

.course_includes:hover [class^="icon-"] {
    transform: rotate(8deg) scale(1.2);
}

li.course_includes:nth-of-type(1n+5) {
    display: none;
}

/* .course_includes::before {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    display: inline;
    width: 20px;
    height: 20px;
} */

/* .course_includes_pdf::before {
    background-image: url('/assets/images/pdf.svg');
}

.course_includes_audio::before {
    background-image: url('/assets/images/headphones.svg');
}

.course_includes_interactive::before {
    background-image: url('/assets/images/pen.svg');
}

.course_includes_text::before {
    background-image: url('/assets/images/chat.svg');
} */


.courses_main_banner *:is(h1, h2, p) {
    font-size: 14px;
    font-weight: 600;
    margin: 7px 0;
    line-height: 130%;
    text-align: left;
}

.courses_main_banner h1 {
    font-size: 20px;
}

.courses_main_banner a h1:hover {
    text-decoration: underline;
}

.courses_main_banner h2 {
    font-size: 14px;
}

.courses_main_banner p {
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.course_workload {
    font-size: 12px;
    font-weight: 300;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.courses_main_banner .course_workload {
    margin-top: -12px;
}

.course_prew_group {
    display: inline-block;
}

.course_prew {
    position: relative;
    z-index: 12;
    border-radius: 4vw;
    width: 70vw;
    height: auto;
    margin: 15vw 2vw 5vw;
    /* padding: 4vw; */
    /* overflow: hidden; */
    top: 0;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 30px;
    background-color: #F8F8FF;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3vw;
    transition: background-color 150ms;
    box-sizing: border-box;
}

.course_prew>a {
    position: relative;
    z-index: 12;
    border-radius: 4vw;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 4vw;
    /* overflow: hidden; */
    top: 0;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 30px;
    /* background-color: #F8F8FF; */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3vw;
    box-sizing: border-box;
}

.course_prew_header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 3vw;
}

.course_prew .img_wrapper {
    width: 23vw;
    height: 18vw;
    /* position: relative; */
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: flex-start;
}

.course_prew .img_wrapper img {
    width: 23vw;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.16));
    transition: transform 350ms;
    user-select: none;
    /* pointer-events: none; */
    border-radius: 1vw;
}

.course_prew .img_wrapper.img_wrapper_app {
    width: 17.3vw;
}

.course_prew .img_wrapper.img_wrapper_app img {
    width: 17.3vw;
    border-radius: 2.5vw;
}

.course_prew:hover .img_wrapper img {
    transform: rotate(-7deg);
}

.course_prew time {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 10px;
    letter-spacing: 0.01em;
    color: #717A87;
    display: block;
    margin: 4px;
}

.course_prew h1 {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 130%;
    color: #2A2A2A;
    display: inline-block;
    margin: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 150ms;
    white-space: wrap;
}

.course_prew p {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 130%;
    color: #2A2A2A;
    display: inline-block;
    margin: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.flex_row_space-between_center {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.link_about_course {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #0D54C1;
    justify-content: flex-end;
    transition: color 150ms;
    z-index: 1;
}

.link_about_course::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: transparent;
    display: block;
    border-radius: 4vw;
}

.courses_main_banner .link_about_course::before {
    /* display: none; */
}

.course_prew:hover {
    background-color: #0D54C1;
    color: #86FF7C;
}

.course_prew:hover h1 {
    color: #ffffff;
}

.course_prew:hover .link_about_course {
    color: #86FF7C;
}

.scroll.hide .course_prew,
.scroll.hide .course_prew .course_prew_header,
.scroll.hide .course_prew .flex_row_space-between_center {
    transition: transform .3s linear;
    transform: translateY(100%) scale(0);
}

.scroll.show .course_prew {
    transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.075) 350ms, background-color 350ms;
    transform: translateY(0%) scale(1);
}

.scroll.show .course_prew .course_prew_header {
    transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.075) 550ms;
    transform: translateY(0%) scale(1);
}

.scroll.show .course_prew .flex_row_space-between_center {
    transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.075) 650ms;
    transform: translateY(2px) scale(1);
}

.scroll.hide ._animation_show {
    transition: transform .3s linear;
    transform: translateY(100%) scale(0);
}

.scroll.show ._animation_show {
    transition: all 250ms, transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.075) calc(650ms + (50ms * var(--i)));
    transform: translateY(0%) scale(1);
}

.link_about_course span {
    font-size: 24px;
    margin: 2px;
    transition: transform 150ms;
}

a:hover .link_about_course span,
.link_about_course:hover span {
    transform: translateX(20%);
}

.courses_main_banner .link_about_course {
    color: #ffffff;
}

.courses_main_banner .link_about_course:hover {
    color: #86FF7C;
}

.product_pay_button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: initial;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    font-weight: 600;
    font-size: 18px;
    line-height: 130%;
    /* transform: translateY(8px); */
}

.product_pay_button [class^="icon-"] {
    font-size: 22px;
}

.product_pay_button .product_price_wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 100%;
}

.product_price_old {
    font-weight: 600;
}

.course_prew .product_price_old {
    font-size: 16px;
    transform: translateY(-18px);
    position: absolute;
    /* text-decoration: line-through;
    text-decoration-thickness: .5px; */
    /* text-decoration-color: rgb(255 128 128 / 50%); */

}

.product_price_old,
.basket_popup_price_old {
    text-decoration: line-through;
    text-decoration-thickness: .5px;
}

/* .product_price_wrapper .product_price_old,.course_prew .product_price_old{position: relative;}
.product_price_wrapper .product_price_old::before,
.course_prew .product_price_old::before {
    top: 38%;
    background: rgb(255 74 125);
    opacity: .5;
    content: '';
    width: 110%;
    position: absolute;
    height: 3px;
    border-radius: .1em;
    left: -5%;
    white-space: nowrap;
    display: block;
    transform: rotate(-7deg);
    z-index: -1;
} */
/* .course_prew .product_price_old::before {
    top: 38%;
    background: currentColor;
    opacity: .3;
    content: '';
    width: 110%;
    position: absolute;
    height: 3px;
    border-radius: .1em;
    left: -5%;
    white-space: nowrap;
    display: block;
    transform: rotate(-7deg);
} */
/* .course_prew .product_price_old::after{
    
  content:"";
  display: block;
  height: 2px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  background: red;
} */

.courses_main_banner .product_pay_button {
    color: #86FF7C;
    padding: 8px;
    padding-left: 16px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 0 0 1px #86FF7C;
    transition: all 150ms;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
}

.courses_main_banner .product_pay_button [class^="icon-"] {
    font-size: 30px;
}

.courses_main_banner .product_price_old {
    font-size: 14px;
    color: #FFFFFF;
    transition: color 150ms;
}

.courses_main_banner .product_pay_button:hover {
    color: #0D54C1;
    box-shadow: 0 0 0 2px #0D54C1;
    background-color: #86FF7C;
}

.courses_main_banner .product_pay_button:hover .product_price_old {
    color: #00000080;
}

.course_prew:hover .product_pay_button {
    color: #FFFFFF;
}

.product_pay_button .spinner::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

.product_pay_button .hidden {
    pointer-events: none;
    user-select: none;
    opacity: 0;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.course-multiple-slider {
    overflow: visible;
    white-space: nowrap;
    max-width: 100vw;
    overflow-x: auto;
}

/* Стили для десктопов */
@media (min-width: 1200px) {

    .course_container {
        padding: 0px;
    }

    .course_container_title {
        width: 95%;
        margin: 20px auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .course_flex_row-strech {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-around;
        flex-wrap: nowrap;
        gap: 20px;
        width: 100%;
    }

    .courses_main_banner {
        width: 600px;
        height: 456px;
        margin: 0;
        margin-top: 46px;
        border-radius: 24px;
    }

    .courses_main_banner::before {
        width: 332px;
        height: 332px;
        left: -27px;
        top: -90px;
    }

    .courses_main_banner::after {
        width: 225px;
        height: 225px;
        right: -40px;
        bottom: -60px;
    }

    .courses_main_banner_grid_container {
        box-sizing: border-box;
        width: 600px;
        min-width: 600px;
        height: 456px;
        padding: 26px;
        align-content: space-between;
    }

    .courses_main_banner_images {
        width: 264px;
        width: 100%;
        height: 200px;
        margin-right: -23px;
        /* transform: translate(7%, -19%); */
        transform: translate(7%, -19%);
    }

    .courses_main_banner_images img {
        width: 60%;
        border-radius: 8px;
    }

    .courses_main_banner .product_pay_button [class^="icon-"] {
        font-size: 27px;
    }

    .courses_main_banner .product_price_old {
        font-size: 14px;
        color: #ffffffab;
    }

    .courses_main_banner .product_pay_button {
        font-size: 21px;
    }

    .courses_main_banner .product_pay_button .product_price_wrapper {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .course_prew_container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        padding-top: 20px;
        margin-top: -20px;
    }

    .course_labels {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 5px;
        justify-content: flex-start;
        user-select: none;
    }

    .course_label {
        padding: 5px 8px;
        border-radius: 11px;
        font-size: 11px;
        font-weight: 600;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

    .course_label:hover {
        padding: 6px 9px;
        margin: -1px;
    }

    .course_label:hover::before {
        transform: rotate(8deg) scale(1.2);
    }

    .course_includes_wrapper {
        padding: 7px 0px 7px 28px;
    }

    .courses_main_banner h1 {
        font-size: 22px;
    }

    .courses_main_banner p {
        font-size: 12px;
        line-clamp: 5;
        -webkit-line-clamp: 5;
    }

    .course_includes {
        margin: 7px 0 0 0;
        gap: 7px;
        font-size: 12px;
    }

    .course_prew_group {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-around;
        gap: 20px;
    }

    .course_prew {
        box-sizing: border-box;
        width: 280px;
        height: 108px;
        margin: 0;
        margin-top: 46px;
        /* padding: 16px 20px; */
        gap: 0px;
        border-radius: 16px;
        justify-content: space-between;
    }

    .course_prew>a {
        box-sizing: border-box;
        width: 280px;
        height: 108px;
        margin: 0;
        margin-top: 0;
        padding: 16px 20px 8px 20px;
        gap: 0px;
        border-radius: 16px;
        justify-content: space-between;
    }

    .course_prew_header {
        gap: 14px;
    }

    .course_prew .img_wrapper {
        width: 75px;
        height: 44px;
    }

    .course_prew .img_wrapper img {
        width: 75px;
        border-radius: 4px;
    }

    .course_prew .img_wrapper.img_wrapper_app {
        width: 57px;
    }

    .course_prew .img_wrapper.img_wrapper_app img {
        width: 57px;
        border-radius: 8px;
    }

    .course_prew h1 {
        font-size: 14px;
    }

    .course_prew .product_price_wrapper {
        font-size: 14px;
        font-size: 16px;
        align-items: flex-end;
    }

    .course_prew .product_price_old {
        font-size: 14px;
        font-weight: 400;
        position: absolute;
        transform: translateY(-18px);
        z-index: -1;
    }

    .scroll .course_prew {
        transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.075);
        transform: translateX(100%) scale(0);
    }

    .scroll.show .course_prew {
        transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.075) calc(250ms + (100ms * var(--i))), background-color 350ms;
        transform: translateX(0%) scale(1);
    }

    .scroll .course_prew .course_prew_header,
    .scroll .course_prew .flex_row_space-between_center {
        transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.075);
        transform: scale(0);
        transform-origin: bottom center;
    }

    .scroll.show .course_prew .course_prew_header {
        transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.075) calc(550ms + (100ms * var(--i)));
        transform: translateX(0%) scale(1);
    }

    .scroll.show .course_prew .flex_row_space-between_center {
        transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.075) calc(750ms + (100ms * var(--i)));
        transform: translateY(2px) scale(1);
    }

    .courses_main_banner .link_about_course {
        font-size: 14px;
        gap: 4px;
    }

    .link_about_course::before {
        border-radius: 16px;
    }

    .courses_main_banner .link_about_course::before {
        display: none;
        border-radius: 24px;
    }
}    

@media (max-width: 1200px) {    
    .course_flex_row-strech {
        margin-top: 7vw;
    }
}