.pay-container{
    max-width: 1170px;
    padding: 0 15px;
    margin: auto;
}
.pay-section{
    background-image: url(../img/fon-1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 61px 0;
    min-height: 100vh;
}
.pay-row{
    display: flex;
    flex-wrap: wrap;
}
.pay-row>*{
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x)/ 2);
    padding-left: calc(var(--bs-gutter-x)/ 2);
    margin-top: var(--bs-gutter-y);
}
.pay-title{
    display: block;
    text-align: center;
    font-family: 'Berlingske Serif';
    font-weight: 600;
    font-style: italic;
    margin-bottom: 67px;
    font-size: 48px;
}
.pay-title span{
    color: #C08835;
}
.pay-subtitle{
    font-family: 'Gilroy';
    font-size: 30px;
    margin-bottom: 60px;
    font-weight: 700;
}
.pay-list{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
}

.pay-item:nth-child(1),
.pay-item:nth-child(2){
    flex: 0 0 33.333%;
}
.pay-item:nth-child(1) .pay-card,
.pay-item:nth-child(2) .pay-card{
    height: 190px;
}
.pay-card{
    width: 100%;
    border: 1px solid #002335;
    padding: 10px 0 14px;
    margin-bottom: 30px;
    position: relative;
    line-height: 1.2;
}
.pay-card span{
    font-family: 'Gilroy';
    font-weight: 400;
    font-size: 18px;
    position: absolute;
    left: 53%;
    transform: translateX(-50%);
    bottom: 13px;
}
.pay-card .pay-way-image{
    width: 100%;
    position: absolute;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 37px;
}
.pay-way-svg{
    position: absolute;
    bottom: -5px;
    left: 42px;
}
.pay-card .pay-way-image img{
    max-width: 100%;
}
.pay-price{
    margin-bottom: 30px;
    border: 1px solid #002335;
    padding: 10px 0;
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    font-family: 'Gilroy';
    position: relative !important;
}
.pay-price span{
    font-weight: 400;
    font-size: 18px;
}
.pay-item:nth-child(3){
    flex: 0 0 25.6%;
}
.pay-way-title{
    text-align: center;
    font-family: 'Gilroy';
    font-weight: 400;
    font-size: 24px;
}
.pay-image{
    width: 100%;
    padding: 29px;
}
.pay-image img{
    opacity: 0.42;
    width: 100%;
}
.pay-item:nth-child(2) .pay-duration-text{
    font-size: 18px;
    font-family: 'Gilroy';
    font-weight: 400;
    text-align: center;
}
.pay-duration{
    margin-top: 56px;
    margin-bottom: 28px;
}
.pay-form-group{
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
    margin-bottom: 20px;
}
.pay-form-control{
    position: relative;
    line-height: 0;
}
.pay-form-control:not(:last-child):after{
    content: '';
    display: inline-block;
    height: 2px;
    width: 86px;
    background: #000000;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.pay-form-control>label{
    position: relative;
}
.pay-form-control>label span:after{
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #002335;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}
.pay-input{
    display: none;
}
.pay-input:checked + span:after{
    background: #AD7B2B;
    border-color: #AD7B2B;
}
.pay-form-control label span label{
    cursor: pointer;
    position: absolute;
    white-space: nowrap;
    font-family: 'Gilroy';
    font-weight: 400;
    font-size: 18px;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
}
.pay-btn{
    cursor: pointer;
    border: 0;
    background: rgb(2,0,36);
    background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(248,189,102,1) 0%, rgba(192,136,53,1) 0%, rgba(248,189,102,1) 100%);
    position: relative;
    color: #002335;
    font-family: 'Berlingske Serif';
    font-size: 26px;
    font-weight: 400;
    margin: auto;
    width: 100%;
    display: block;
    border-radius: 7px;
    padding: 24px 0 30px;
}
.pay-btn::after{
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    border-radius: 15px;
    box-shadow: 0 9px 0 #B37C2A;
    width: 100%;
    height: 100%;
}
.pay-item:last-child .pay-btn{
    width: calc(100% - 48px);
    font-size: 16px;
    padding: 16px 0 20px;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
}
.pay-item:last-child .pay-card{
    padding-bottom: 28px;
}
.pay-item .pay-card::after,
.pay-item .pay-price::after{
    transition: 0.2s;
    content: '';
    position: absolute;
    display: block;
    width: calc(100% + 4.5px);
    height: calc(100% + 3.5px);
    left: -2px;
    top: -2px;
    border: 3px solid #ad7b2b00;
}
.pay-item.active .pay-card::after,
.pay-item.active .pay-price::after{
    border-color: #AD7B2B;
    width: calc(100% + 4.5px);
    height: calc(100% + 3.5px);
}

.pay-thank-section{
    background-image: url(../img/fon-2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}
.pay-thank{
    padding-left: 15.6vw;
    padding-right: 2.3vw;
    padding-top: 32vh;
}
.pay-title-thank{
    font-size: 2.5vw;
    margin-bottom: 4vh;
    font-family: 'Berlingske Serif';
    font-weight: 600;
    font-style: italic;
    color: #C08835;
    text-align: center;
}
.pay-subtitle-thank{
    font-family: 'Berlingske Serif';
    font-weight: 500;
    font-style: italic;
    font-size: 2vw;
    text-align: center;
    margin-block-start: 0;
    margin-block-end: 0;
}

.pay-thank-section.thank{
    background-position: top right;
    padding-bottom: 60px;
}
.pay-thank-section.thank .pay-thank{
    padding-top: 92px;
    padding-left: 315px;
    padding-right: 0;
}
.pay-thank-section.thank .pay-title-thank{
    margin-bottom: 30px;
    text-align: left;
}
.pay-thank-section.thank .pay-subtitle-thank{
    text-align: left;
    font-size: 27px;
    margin-bottom: 59px;
    line-height: 1.4;
    font-weight: 600;
}
.pay-thank-text{
    font-size: 24px;
    font-weight: 500;
    font-family: 'Gilroy';
    margin-bottom: 36px;
    line-height: 1.4;
    margin-left: 0;
}
ul.pay-thank-text{
    list-style: none;
}
ul.pay-thank-text li{
    font-size: 24px;
    font-weight: 500;
    font-family: 'Gilroy';
    line-height: 1.4;
}
.pay-after-thank{
    font-family: 'Gilroy';
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
}
.pay-last-text{
    margin-top: 25px;
    color: #C08835;
    font-family: 'Berlingske Serif';
    font-weight: 500;
    font-style: italic;
    font-size: 36px;
    margin-bottom: 56px;
}
.pay-thank-section.thank .pay-btn{
    width: auto;
    margin: 0;
    padding: 37px 60px 40px;
}

@media screen and (max-width: 1500px){
    .pay-section,
    .pay-thank-section{
        background-size: cover;
        background-position: right;
    }
}
@media screen and (max-width: 1199px){
    .pay-container{
        max-width: 960px;
    }
    .pay-form-control:not(:last-child):after{
        width: 58px;
    }
    .pay-item:nth-child(2) .pay-duration-text{
        font-size: 16px;
    }
    .pay-price{
        font-size: 36px;
    }
    .pay-item:last-child .pay-btn{
        width: calc(100% - 20px);
    }
    .pay-thank-section{
        background-size: cover;
        background-position: center;
    }
    .pay-thank-section.thank{
        background-size: auto 120%;
    }
}
@media screen and (max-width: 991px){
    .pay-title-thank{
        font-size: 36px;
        margin-bottom: 30px;
    }
    .pay-subtitle-thank{
        font-size: 24px;
    }
    .pay-thank-section.thank .pay-thank{
        padding-left: 0;
    }
    .pay-title{
        font-size: 32px;
        margin-bottom: 45px;
    }
    .pay-subtitle{
        font-size: 24px;
        margin-bottom: 30px;
    }
    .pay-way-title{
        font-size: 18px;
    }
    .pay-item:nth-child(1) .pay-card, .pay-item:nth-child(2) .pay-card{
        height: 150px;
    }
    .pay-price{
        font-size: 32px;
    }
    .pay-item .pay-btn{
        font-size: 22px;
        padding: 20px 0 25px;
    }
    .pay-price span,
    .pay-card span{
        font-size: 14px;
    }
    .pay-way-svg{
        position: absolute;
        bottom: 10px;
        left: 15px;
        width: 80%;
    }
    .pay-way-svg svg{
        width: 100%;
    }
    .pay-item:nth-child(1), .pay-item:nth-child(2){
        flex: 0 0 245px;
    }
    .pay-item:nth-child(3){
        flex: 0 0 189px;
    }
    .pay-form-control:not(:last-child):after {
        width: 37px;
    }
    .pay-form-control label span label{
        font-size: 14px;
    }
    .pay-duration{
        margin-top: 45px;
        margin-bottom: 20px;
    }
    .pay-item:nth-child(2) .pay-duration-text{
        font-size: 12px;
    }
}
@media screen and (max-width: 767px){
    .pay-thank{
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }
    .pay-thank-section{
        background-size: cover;
        background-position: right;
    }
    .pay-thank-section.thank .pay-thank{
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
    .pay-item{
        flex: 0 0 100% !important;
        margin-bottom: 60px;
    }
    .pay-container{
        max-width: 310px;
    }
    .pay-title{
        font-size: 24px;
        margin-bottom: 20px;
    }
    .pay-subtitle{
        font-size: 18px;
        text-align: center;
        margin-bottom: 20px;
    }
    .pay-form-control:not(:last-child):after{
        width: 47px;
    }
    .pay-item:nth-child(3){
        margin-bottom: 0;
    }
}
@media screen and (max-width: 575px){
    .pay-title-thank{
        font-size: 32px;
        margin-bottom: 20px;
    }
    .pay-subtitle-thank{
        font-size: 20px;
    }
    .pay-thank-section{
        background-size: cover;
        background-position: center - 100px;
    }
    .pay-thank-section.thank .pay-thank{
        padding-top: 60px;
    }
    .pay-thank-section.thank .pay-title-thank{
        margin-bottom: 20px;
    }
    .pay-thank-section.thank .pay-subtitle-thank{
        font-size: 21px;
        margin-bottom: 30px;
    }
    .pay-thank-text,
    ul.pay-thank-text li,
    .pay-after-thank{
        font-size: 18px;
    }
    .pay-last-text{
        font-size: 30px;
    }
    .pay-thank-section.thank .pay-btn{
        padding: 15px 0 20px;
        width: 100%;
    }
}