@media (min-width: 540px) and (max-width: 767px) {
    .wc-block-product-template__responsive.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .wc-block-product-template__responsive.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}















@media (max-width: 768px) {
    .woocommerce-cart-form__cart-item.cart_item td.product-name a {
        display: block !important;
    }

    .coupon .button.wp-element-button {
        margin-left: 0 !important;
        font-size: 14px !important;
        height: auto !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    input#coupon_code {
        border-radius: 100px !important;
        width: 100% !important;
    }

    .cart-collaterals .cart_totals {
        padding: 0 15px 40px !important;
        width: calc(100% - 30px) !important;
    }

    .woocommerce-page .cart-collaterals h2 {
        font-size: 18px !important;
    }

    .cart_totals .tax-rate td {
        font-size: 15px !important;
        font-weight: 300 !important;
        padding-bottom: 10px !important;
        padding-top: 10px !important;
        margin-top: 10px;
    }

    /* .woocommerce-cart.woocommerce-page h3.wp-block-post-title, 
    .woocommerce-checkout.woocommerce-page h3.wp-block-post-title {
        padding-left: 0 !important;
        padding-right: 0 !important; 
    } */

}

@media (max-width: 919px) {
    .desktop-button {
        display: none !important;
    }

    .mobile-button {
        display: block !important;
        text-align: center;
        margin-top: 50px !important;
    }
}

@media (min-width: 769px) and (max-width: 1680px) {

    .woocommerce-cart.woocommerce-page h3.wp-block-post-title,
    .woocommerce-checkout.woocommerce-page h3.wp-block-post-title {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-checkout .checkout-main {
        padding-left: 30px !important;
    }

    input#coupon_code {
        border-radius: 100px 0 0 100px;
        width: 63% !important;
    }

    .coupon .button.wp-element-button {
        width: calc(37% + 15px) !important;
    }
}















@media (min-width: 541px) and (max-width: 1680px) {

    /* h3.wp-block-post-title,
    .woocommerce-checkout .wp-block-post-title,
    .woocommerce-cart .wp-block-post-title {
        padding: 20px 30px;
    } */
}

@media (min-width: 769px) {

    /* ----- КОРЗИНА ----- */
    body.woocommerce-cart .woocommerce,
    body.woocommerce-checkout .woocommerce .custom-checkout-grid {
        display: flex;
        flex-wrap: wrap;
    }

    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-checkout .checkout-main {
        flex: 2 1 65%;
        min-width: 300px;
        position: relative;
        border: 0;
        padding-right: 30px;
        box-sizing: border-box;
        padding-top: 60px;
        padding-bottom: 100px;
    }

    body.woocommerce-cart .woocommerce-cart-form table,
    body.woocommerce-checkout .woocommerce-cart-form table {
        border: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form table th {
        font-size: 14px;
        padding: 10px 2px;
        color: #000;
        font-family: 'Unbounded';
        font-weight: 400;
    }

    .woocommerce table.shop_table tr {
        position: relative;
    }

    body.woocommerce-cart .woocommerce-cart-form table td.actions {
        padding-top: 50px;
        padding-left: 0;
        padding-right: 0;
    }

    .woocommerce table.shop_table td {
        border-top: 1px solid #6E6E6E;
        vertical-align: top !important;
    }

    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-checkout .checkout-summary {
        flex: 1 1 35%;
        min-width: 260px;
        padding-left: 60px;
        padding-right: 60px;
        box-sizing: border-box;
    }

    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-checkout .checkout-summary {
        background: #f0f0f0;
        padding-bottom: 100px;
        padding-top: 50px;
        margin-top: 0;
        position: relative;
    }





    th.product-thumbnail,
    td.product-name {
        display: none;
    }

    td.product-remove a {
        position: absolute;
        right: 40px;
        top: 50px;
    }

    .product-remove {
        width: 0 !important;
        padding: 0 !important;
    }

    tr.woocommerce-cart-form__cart-item.cart_item td div {
        text-align: left;
    }

    tr.woocommerce-cart-form__cart-item.cart_item td bdi {
        font-family: 'Unbounded';
        font-size: 14px;
        color: #000;
    }

    tr.woocommerce-cart-form__cart-item.cart_item td.product-price,
    tr.woocommerce-cart-form__cart-item.cart_item td.product-quantity,
    tr.woocommerce-cart-form__cart-item.cart_item td.product-subtotal {
        padding-top: 50px;
        padding-left: 0;
    }

    tr.woocommerce-cart-form__cart-item.cart_item td.product-subtotal {
        width: 20%;
    }

    tr.woocommerce-cart-form__cart-item.cart_item td.product-subtotal bdi {
        font-size: 18px;
    }

    tr.woocommerce-cart-form__cart-item.cart_item td.product-subtotal .tax_label {
        display: block;
        font-size: 14px;
        color: #acacac;
        margin-top: -4px;
    }

    .custom-qty-wrapper .qty {
        width: 40px !important;
        padding-left: 5px !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        font-family: 'Unbounded';
        margin-right: -10px !important;
    }

    .custom-qty-wrapper {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 6px;
    }

    .custom-qty-wrapper .qty {
        text-align: center;
        border: none;
        background: transparent;
        font-size: 16px;
        font-weight: 500;
        padding: 0;
        margin: 0 2px;
        outline: none;
    }

    .custom-qty-wrapper .qty-minus,
    .custom-qty-wrapper .qty-plus {
        background: #F3F3F3;
        border: none;
        color: #222;
        font-size: 20px !important;
        width: 31px !important;
        height: 43px !important;
        cursor: pointer;
        transition: background 0.1s;
        user-select: none;
    }

    .custom-qty-wrapper .qty-minus:hover,
    .custom-qty-wrapper .qty-plus:hover {
        background: #f0f0f0;
    }

    .cart-prod-title {
        margin-top: 8px;
        font-size: 16px;
        line-height: 1.3;
        font-family: 'Ubuntu';
        font-weight: 500;
        margin-bottom: 15px;
    }

    .cart-prod-title a {
        text-decoration: none;
    }










    .woocommerce-cart .actions .coupon {
        width: 100%;
    }

    input#coupon_code {
        border-radius: 100px 0 0 100px;
        /* width: 75% !important; */

    }

    .coupon .button.wp-element-button {
        border-radius: 100px;
        margin-left: -30px;
        background: #0087B4;
        font-family: 'Unbounded';
        font-size: 16px;
        font-weight: 300;
        transition: 0.3s;
        height: 50px;
        padding-top: 13px;
        padding-bottom: 13px;
        /* width: calc(25% + 15px); */
    }
}

@media (max-width: 900px) {

    body.woocommerce-cart .woocommerce,
    body.woocommerce-checkout .custom-checkout-grid {
        flex-direction: column;
    }

    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-checkout .custom-checkout-grid .checkout-main,
    body.woocommerce-checkout .custom-checkout-grid .checkout-summary {
        min-width: 0;
        width: 100%;
    }

    .cart-collaterals::after,
    .checkout-summary::after {
        display: none !important;
    }



}

@media (min-width: 920px) {
    ul.tabs.wc-tabs {
        display: flex;
        width: 100%;
        align-items: flex-end;
    }
}


/*----моб меню---*/
@media (max-width: 1279px) {

    .wp-block-navigation__responsive-container-open {
        display: flex !important;
    }

    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }

    .wp-block-navigation__responsive-toggle {
        display: flex !important;
    }
}

@media (min-width: 1280px) {
    .wp-block-navigation__responsive-container {
        display: flex !important;
    }

    .wp-block-navigation__responsive-toggle {
        display: none !important;
    }

    .team_video_title {
        left: calc(50% - 255px);
        position: relative;
        z-index: 1;
        margin-left: -60px !important;
    }

    .vidpic {
        max-width: 70% !important;
    }
}

/*---моб. меню конец---*/

@media screen and (max-width: 540px) {


    .woocommerce-checkout.woocommerce-page .checkout-main,
    .woocommerce-checkout.woocommerce-page .checkout-summary {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: calc(100% - 30px) !important;
    }

    .woocommerce-checkout.woocommerce-page .checkout-summary {
        padding-bottom: 40px !important;
    }

}

@media screen and (min-width: 541px) and (max-width: 768px) {

    .woocommerce-checkout.woocommerce-page .checkout-main,
    .woocommerce-checkout.woocommerce-page .checkout-summary {
        padding-left: 32px !important;
        padding-right: 32px !important;
        width: calc(100% - 64px) !important;
    }

    .woocommerce-checkout.woocommerce-page .checkout-summary {
        padding-bottom: 40px !important;
    }
}


@media screen and (max-width: 539px) {
    .wp-block-button__link {
        padding-left: 30px;
        padding-right: 30px;
    }

    .wp-block-buttons,
    .main_button {
        width: 100%;
    }

    .wp-block-site-logo a,
    .wp-block-site-logo img {
        width: 71px;
    }

    .header-lang-switcher {
        display: none !important;
    }

    .wc-block-mini-cart__button {
        margin: 0;
    }

    figure.card_main_img {
        padding: 20px 60px 10px;
    }

    .other-courses-home {
        margin-top: -20px;
        margin-bottom: 0rem !important;
    }

    .palka_animation {
        width: 20%;
    }

    .achivments_block {
        display: block !important;
    }

    .achivments_block .achivment {
        margin-bottom: 25px;
    }

    .achivments_block .achivment .wp-block-group-is-layout-flex:first-child {
        margin-bottom: 10px;
    }

    .empty-space1 {
        display: none;
    }

    .cards_other .card_other_img,
    .cards_other hr {
        display: none;
    }

    .cat-main-left-col {
        flex-basis: 100% !important;
    }

    .cat-main-right-col {
        flex-basis: 100% !important;
    }

    .popmake h2 {
        font-size: 18px !important;
        line-height: 140% !important;
    }

    .vc_tta-tab {
        padding-right: 10px !important;

    }

    .vc_separator-has-text {
        margin-bottom: 0;
    }

    .vc_separator-has-text h4 {
        font-size: 18px !important;
        text-align: center;
    }

    .courses-grid,
    .wc-block-product-template__responsive.columns-4 {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .header-2col {
        order: 2 !important;
    }

    /* .woocommerce-cart-form{
        padding: 40px 15px;
    } */

}

@media screen and (max-width: 767px) {
    .cards_other {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .wp-block-heading.main_title1 {
        font-size: 18px !important;
    }

    .main_section3_name img {
        height: 45px;
        margin-bottom: -8px;
    }

    .about-academy-block {
        margin-top: -40px !important;
    }

    #team-row {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .team_section {
        margin-bottom: 40px !important;
    }

    .empty-space1 {
        flex-basis: 40px;
    }

    .popmake {
        padding: 40px 12px 0 !important;
    }

    .popmake .wpb_single_image {
        text-align: left;
        margin-top: 10px;
    }

    .popmake .vc_tta-panel-heading {
        display: none;
    }

    .vc_tta.vc_tta-tabs .vc_tta-tabs-container {
        display: block;
    }





}

@media screen and (min-width: 540px) and (max-width: 919px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 1279px) {

    .vc_tta-tab {
        /* line-height: 40px; */
        margin-bottom: 20px !important;
    }

    .reviews-block,
    .youtube-block {
        display: none !important;
    }

    .wp-block-navigation__responsive-container-open::before {
        content: 'MENU';
        align-content: center;
        padding-right: 10px !important;
    }

    .header_main_menu {
        justify-content: end;
    }

    .vidpic {
        max-width: 100%;
        margin-top: -40px;
    }

    .team_video_title {
        text-align: right;
    }

    .mainpage_play {
        top: calc(50% - 45px);
        right: calc(50% - 20px);
        width: 40px;
    }


    .team-home-row p {
        line-height: 22px !important;
    }

    .team-home-row h5 {
        font-size: 18px !important;
    }

}



@media (min-width: 768px) {
    .team_section {
        margin-bottom: 100px !important;
    }
}

@media (min-width: 768px) and (max-width: 919px) {
    .cards_other {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}