@media only screen and (max-width: 1242px) {

    .inner-section {
        width: 100%;

    }

    .header-content {
        display: flex;
        flex-flow: column wrap;
        justify-content: flex-start;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 99;
        transform: translatey(-100%);
        width: 100%;
        height: 100vh;
        background: #768F43;
        padding: 120px 15px 20px 15px;
        color: #fff;
        transition: all 0s;
    }

    .inner-header {
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .header.active .inner-header {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .header-content.active {
        transform: translateY(0);
    }


    .header .contacts {
        margin-top: auto;
    }


    .header .contacts .title {
        margin: 0 auto 8px 0;
        text-align: center;
        display: block;
        color: #fff;
        font-weight: 300;
        font-size: 14px;
        line-height: 1.3em;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }



    .main {
        font-size: 18px;
    }

    section {
        padding: 50px 0 50px 0;
    }

    .header-placeholder {
        height: 60px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }


    .payment-order-text {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-items: center;
    }

    .payment-logos-container-top {
        display: none;
    }

    .payment-logo-v {
        position: absolute;
        bottom: 50px;
        left: 50%;
        margin-left: -30px;
        z-index: 1;
    }

    .payments-form-wrap {
        position: relative;
        z-index: 3;
        padding-right: 0;
    }

    .payment-page-content-wrap {
        width: 100%;
        display: block;
    }

    .payment-logos-container {
        width: auto;
    }

    .payment-result-block {
        padding: 0 15px;
    }


    .payment-title.has-alert {
        display: block;
    }

    .error-alert {
        margin-top: 8px;
        width: 100%;
    }

    .error-alert i {
        display: inline-block;
        max-width: 80%;
        line-height: 1.25em;
    }

}

@media only screen and (max-width: 825px) {
    .page-container {
        padding: 15px 15px 0 15px;
    }

    .bth-qr{
        display: none;
    }

    .mobile-bth{
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none
    }



    .mobile-bth.active{
        pointer-events: auto;
    }
}


@media only screen and (max-width: 767px) {
    .payment-page-success{
        padding-top: 60px!important;
    }
    .payment-page-content{
        padding-top: unset;
    }
    .payment-variants-item .title, .payment-type-item .title {
        min-width: 58px;
    }

    .payment-contacts {
        display: flex;
        flex-direction: column;
    }

    .toggling-item {
        flex-direction: column;
    }

    .button {
        font-size: 16px !important;
    }

    .payment-order-text-row {
        margin-right: 0;
        font-size: 14px;
        line-height: 15.4px;
    }

    .description-row {
        margin-top: 0 !important;
    }

    .pnl-agree > div {
        max-width: 100% !important;
    }

    .payment-order-text-content {
        padding: 16px;
    }

    h1 {
        font-size: 20px;
    }

    .payment-order-text-row {
        margin-bottom: 8px;
    }

    .description-row {
        margin-top: 0;
        margin-bottom: 0;
    }

    .payment-order-text .payment-title {
        font-size: 15px;
    }

    .payment-card-block {
        align-self: center;
    }

    .payment-card-contacts, .contacts-item {
        max-width: 100%;
        width: 100%;
    }

    .payment-page-container .button.submit-button {
        width: 100%;
    }

    .payment-order-text {
        margin-bottom: 25px;
    }

    .payment-tabs .tabs-head button {
        height: auto;
        margin: 0 0 8px 0;
        width: 100%;
        border-radius: 20px;
        padding: 23px 14px 23px 24px;
    }

    .payment-tabs .tabs-head button br {
        display: none;
    }

    .payment-page-container .tabs-item .submit-button {
        font-size: 16px;
    }

    .payment-title br {
        display: none;
    }

    .error-alert svg {
        margin-right: 8px;
    }

    .error-alert i {
        font-size: 10px;
        max-width: 100%;
    }

    .payment-variants-blocks {
        width: 100%;
    }


    .payment-variants-item .mobile-title {
        display: block;
    }

    .payment-variants-item .ref {
        display: block;
    }

    .payment-card-block-outer {
        flex-direction: column;
    }

    .amount-variants {
        flex-wrap: wrap;
    }

    .fixed-amounts-wrapper{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .amount-variants input{
        max-width: none;
    }

    .amount {
        max-width: 100% !important;
    }

    .amount-variants input.amount {
        text-align: left;
        padding: 16px;
    }

    .payment-page-container .form-item.pnl-agree > input {
        margin: 0 !important;

    }

    .payment-card-contacts {
        max-width: 100%;
    }

    .checkboxes-outer {
        flex-direction: column;
    }

    .payment-footer .button, .retry-payment-button {
        max-width: 767px;
        width: 100%;
    }

    .payment-footer img {
        width: 100%;
        position: absolute;
        bottom: 28px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .amount-variants .form-item:last-child {
        max-width: 100%;
        width: 100%;
    }

    .payment-card-block {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .payment-footer {
        flex-direction: column;
        padding-bottom: 0;
    }

    .payment-footer-img-mobile {

        max-width: 330px;
        margin: 28px auto;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .payment-footer-img {
        display: none;
    }

    .payment-footer-img-mobile {
        display: block;
    }

    .payment-page-container {
        justify-content: space-between;
    }

    .tabs-content {
        padding: 16px;
    }

    .payment-type-modal, .payment-ul-modal {
        padding: 24px 16px;
    }

    .success-title {
        margin-top: 24px;
    }

    .payment-type-item .title{
        font-size: 16px;
        line-height: 24px;
    }

    .payment-variants-item .title, .payment-type-item .title{
        font-size: 16px;
        line-height: 24px;
    }

    .payment-monthly {
        padding: 16px;
    }

    .tab-menu .payment-title {
        justify-content: space-between;
    }

    .payment-title span {
        font-size: 12px;
    }

    .slider-item-rigth-block{
        max-height: 135px;
        gap: 8px
    }

    .slider-item-text{
        gap: 8px;
    }

    .slider-item-title{
        font-size: 14px;
        font-weight: 600;
        line-height: 16px;
        max-height: calc(16px * 2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slider-item-description{
        font-size: 12px;
        line-height: 13.2px;
        max-height: calc(13.2px * 3);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
}


@media only screen and (max-width: 560px) {

    .payment-ul-modal {
        max-width: calc(100% - 30px);
    }

    .payment-variants-blocks {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
    }

    .payment-variants-item3, .payment-variants-item2 {
        display: flex;
        /*width: calc(50% - 5px);*/
    }

    .payment-variants-item1 {
        width: 100%;
    }

}

@media only screen and (max-width: 500px) {


    .payment-order-text-column {
        margin-right: 55px;
        font-size: 12px;
    }

    .payment-order-text-column:last-child {
        margin-right: 0px;
    }



}

@media only screen and (max-width: 440px) {

    .payment-card-block {
        max-width: 298px;
        height: 198px;
        background: url("https://storage.yandexcloud.net/onf2/img/card-background-mobile.png") center center no-repeat;
        background-size: cover;
        padding: 16px;
    }

    .payment-title {
        font-size: 16px;
        line-height: 24px;
    }

    .payment-card-block-bottom {
        margin-top: 8px;
    }

    .payment-card-block input {
        height: 47px;
    }

    .payments-slider-item .slick-slide .slick-current .slick-active{
        min-width: 330px !important;
    }
}

@media only screen and (max-width: 395px) {

    .payment-result-block .white-button {
        font-size: 15px;
        padding: 0 20px;
    }


    .payment-page-container .form-item input::-webkit-input-placeholder, .payment-page-container .form-item input:-moz-placeholder {
        font-size: 13px;
    }

    .payment-order-text-column {
        font-size: 12px;
    }

}


@media only screen and (max-width: 340px) {

    .show-all-button {
        min-width: 0;
        font-size: 15px;
    }

}

@media (hover: hover) {
    .payment-variants-item:hover,
    .payment-footer .button:hover,
    .retry-payment-button:hover {
        background: #ffffff;
        color: rgba(57, 57, 57, 1);
        backdrop-filter: none;
        box-shadow: none;
    }
}
