body {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
  }

.karta {
    display: none
}

.btn.login {
    background-color: transparent;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 16px;
    margin-left: 10px;
    border: 1px solid #8B71C8;
}

.navbar.bg-light {
    background-color: white!important;
}

.navbar-nav .nav-item {
    margin-right: 14px;
}

body {
    font-family: "Poppins", sans-serif;
}

.carousel .carousel-caption {
    left: 0;
    top: 0;
    width: 50%;
    border-bottom-right-radius: 45px;
    text-align: left;
    position: relative;
    padding: 60px 0;
}

.carousel .carousel-caption h2, .carousel-caption p {
    color: #261B3F;
}

.carousel .carousel-caption .btn {
    padding: 10px 36px;
    margin-top: 16px;
}

.btn {
    background-color: #261B3F;
    border: none;
    border-radius: 30px;
}

.btn:hover {
    background-color:#8B71C8;
    color:white;
}

.btn.h-white:hover {
    background-color:white;
    color:#261B3F;
}

.carousel .carousel-caption h2 {
    font-size: 2.7rem;
}

body {
    background-color: #f4f5fa;
}

.carousel .carousel-item.c-item:before {
    content: "";
    width: 60%;
    display: block;
    height: 100%;
    z-index: -3;
    background: linear-gradient(90deg, rgba(168, 145, 222, 1) 0%, rgba(216, 201, 253, 1) 100%);
    position: absolute;
    border-bottom-right-radius: 50px;
}

.card-body .btn.yellow-bg{
    background-color: #FF6C02;
}

.card-body .btn.pink-bg{
    background-color: #DD29D6;
}

.card-body .btn {
    background-color: #8B71C8;
    color: white;
}

.card-body .btn:hover {
    background-color: #6B50AB;
}

.card-body .btn.yellow-bg:hover {
    background-color: #EC5501;
}

.card-body .btn.pink-bg:hover {
    background-color: #B71DB1;
}

.carousel .carousel-item.c-item.yellow-bg:before{
    background: linear-gradient(90deg, rgba(251,163,98,1) 0%, rgba(250,203,149,1) 100%);
}

.carousel .carousel-item.c-item.pink-bg:before{
    background: linear-gradient(90deg, rgba(233,139,229,1) 0%, rgba(251,203,255,1) 100%);
}

.carousel .carousel-caption p {
    padding-top: 5px;
    min-height: 53px;
}

.carousel .bd-placeholder-img {
    position: absolute;
    z-index: -4;
    width: 45%;
    height: 100%;
    right: 0;
    background-size: cover;
    background-position: center;
}

.card-group .card-body p {
    opacity: 0;
    height: 0;
}

.card-group .card:hover .card-body p {
    opacity: 1;
    transition: .5s;
    height: auto;
}

.card-group .card-body h5 {
    text-align: center;
}

.card-group>.card {
    border: none;
}

.background-fluid {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.post-wrapper {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 2px 2px 10px #eaecf2;
}

.card {
    border: none;
    box-shadow: 2px 2px 10px #eaecf2;
}

.dropdown-toggle.active.show::after {
    transform: rotate(180deg);
}

.dropdown-toggle.active.show {
    font-weight: 600;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    padding: 0;
    left: 0;
    width: 100%;
    min-width: 200px;
}

.navbar-expand-lg .navbar-nav .dropdown-menu li {
    border-bottom: 1px solid #d3d5da5e;
    width: 100%;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: #f4f5fa;
    color: #8c71c8;
}

a.dropdown-item {
    font-size: 14px;
    white-space: normal;
}

img.card-img-top {
    max-width: 200px;
    margin: auto;
    margin-top: 20px;
}

.card:hover img.card-img-top {
    max-width: 100px;
    transition: .1s;
}

.navbar .dropdown-toggle::after {
    background-image: url("/static/img/arrow-down.d4f6302129cd.svg");
    border: none;
    width: 9px;
    top: 16px;
    right: -7px;
    height: 8px;
    position: absolute;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.nav-link {
    position: relative;
}

.post-text-wrapper {
    margin: 60px;
}

.post-text-wrapper h4 a {
    color: inherit;
    text-decoration: none;
}

.post-text-wrapper .read-more a {
    color: #8B71C8;
    text-decoration: none;
}

.post-text-wrapper .read-more a:after {
    content: "";
    background-image: url("/static/img/arrow-right.48addcbe667d.svg");
    width: 18px;
    height: 10px;
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 5px;
}

.copyright p {
    color: #9B9FB4;
    margin: 20px 0;
}

.copyright a {
    color: #9B9FB4;
    margin: 20px 0;
    display: inline-block;
}

.heading {
    background-color: #DADDEA;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}

.heading h1 {
    margin: 0;
}

.panel {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 2px 2px 10px #eaecf2;
}

.panel .image {
    height: 180px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 50px;
}

.text-right {
    text-align: right;
}

.panel input.form-control {
    padding: 10px;
    border-color: #eff0f6;
}

.panel .btn {
    padding: 10px 30px;
}

div#main-container {
    min-height: calc(100vh - 330px);
}

.post-background {
    min-height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #daddea;
}

.heading.long {
    background: linear-gradient(90deg, rgba(251,163,98,1) 0%, rgba(250,203,149,1) 100%);
}

.heading.short {
    background: linear-gradient(90deg, rgba(168, 145, 222, 1) 0%, rgba(216, 201, 253, 1) 100%);
}

.heading.kreditni_linka {
    background: linear-gradient(90deg, rgba(233,139,229,1) 0%, rgba(251,203,255,1) 100%);
}

.heading.long:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url("/static/img/safebox.7f409a124fa2.png");
    background-position: 7% center;
    background-size: auto 80%;
    background-repeat: no-repeat;
}

.heading.short:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url("/static/img/target.1d1425848044.png");
    background-position: 7% center;
    background-size: auto 80%;
    background-repeat: no-repeat;
}

.heading.kreditni_linka:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url("/static/img/list.580ff22c8c7d.png");
    background-position: 7% center;
    background-size: auto 80%;
    background-repeat: no-repeat;
}

.btn.btn-outline-success {
    background-color: transparent;
    border: 1px solid #8B71C8;
    color: #8B71C8;
}

.btn.login:hover {
    background-color: #8B71C8;
    color: white;
}

.btn.btn-outline-success:hover {
    color: #261B3F;
    border-color: #261B3F;
}

.credit-link-form.short .coupon-form {
    border: 2px solid #e0caf9;
}

.credit-link-form.long .coupon-form {
    border: 2px solid #ffc700;
}

.credit-link-form.kreditni_linka .coupon-form {
    border: 2px solid #E99AD8;
}

.credit-link-form .card {
    box-shadow: 1px 2px 8px #dee2e6;
}

.coupon-form button {
    padding: 8px 20px;
}

.merged-bodies {
    flex-direction: row;
}

.merged-bodies .card-body:first-child {
    border-right: 1px solid #e3e3e3;
    padding-right: 30px;
}

.merged-bodies .form-range {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

div#main-container.post-inner {
    background-color: white;
}

.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    transition: opacity .15s ease-in-out;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    margin-top:-11px;
    border-radius: 50%;
    background: #ffd700;
    border:4px solid white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.form-range:focus::-webkit-slider-thumb{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.form-range::-moz-range-thumb {
    width: 30px;
    height: 30px;
    margin-top:-11px;
    border-radius: 50%;
    background: #ffd700;
    border:4px solid white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.form-range::-ms-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.form-range::-ms-fill-lower {
    background: #ff8c00;
    border-radius: 5px;
}

.form-range::-ms-fill-upper {
    background: #e0e0e0;
    border-radius: 5px;
}

.form-range:focus::-ms-fill-lower {
    background: #ff8c00;
}

.form-range:focus::-ms-fill-upper {
    background: #e0e0e0;
}

.form-range::-webkit-slider-runnable-track{
    background-color: #00000000;
}

.credit-link-form #form_step1,.credit-link-form #form_step2 {
    background-color: white;
}

.credit-link-form #form_step1 .karta input:not(.form-check-input),
.credit-link-form #form_step2 .karta input:not(.form-check-input){
    margin-bottom: 20px;
    border-color: #eef0f7;
    padding: 12px 18px;
}

.credit-link-form #form_step1 div#tamzpet,
.credit-link-form #form_step2 div#tamzpet{
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.credit-link-form #form_step1 .invalid-feedback,
.credit-link-form #form_step2 .invalid-feedback{
    margin-top: -16px;
}

#form .form-select {
    margin-bottom: 20px;
}

.credit-link-form .form-check {
    display: flex;
    gap: 15px;
    align-items: center;
}

.credit-link-form  .form-check input.form-check-input {
    padding: 10px;
}

.credit-link-form #form_step1 div#tamzpet button,
.credit-link-form #form_step2 div#tamzpet button{
    min-width: 110px;
}


.alert-primary {
    background-color: #e7e3f4;
}

.credit-summary .alert-primary, .credit-summary .alert-info, .credit-summary .alert-success, .credit-summary .alert-warning {
    border: none;
}

.credit-summary .alert-success, .credit-summary .alert-primary, .credit-summary .alert-info, #main-container:not(.long,.kreditni_linka) .credit-summary .alert-warning > span {
    display: flex;
    justify-content: space-between;
}

.credit-summary .alert-success> span:first-child::before, .credit-summary .alert-info> span:first-child::before, .credit-summary .alert-primary> span:first-child::before, .credit-summary .alert-warning> span:first-child::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    background-image: url("/static/img/arrow-2-right.ce2226f5c318.svg");
    left: 0;
    background-repeat: no-repeat;
    top: 5px;
}

.credit-summary .alert-success> span:first-child, .credit-summary .alert-info> span:first-child, .credit-summary .alert-primary> span:first-child, .credit-summary .alert-warning> span:first-child {
    padding-left: 20px;
    position: relative;
}

.credit-summary .alert-primary> span:first-child::before{
    background-image: url("/static/img/date.f5850d93502f.svg");
    top: 2px;
    left: -2px;
}

.credit-summary .alert-warning> span:first-child::before{
    background-image: url("/static/img/wallet.12e54434abe9.svg");
    top: 2px;
    left: -4px;
}

.credit-summary .alert-info> span:first-child::before{
    background-image: url("/static/img/percentage22.50d0044e4e4d.svg");
    top: 2px;
    left: -4px;
}

.credit-summary .alert-primary, .credit-summary .alert-primary, .credit-summary .alert-warning {
    color: black;
}

.credit-summary .alert-primary span:last-child, .credit-summary .alert-primary span:last-child, .credit-summary .alert-success span:last-child, #main-container:not(.long) .credit-summary .alert-warning span span:last-child {
    font-weight: 600;
}

.card-body.row.m-0.credit-summary {
    gap: 10px;
    flex-wrap: wrap;
}

.alert.alert-success, .alert.alert-primary {
    flex: 1 0 49%;
}

.alert.alert-info {
    flex: 1 0 49%;
}

.credit-link-form.long .coupon-form {
    border: 2px solid #ffc700;
}


#main-container.long .credit-summary .alert-warning > span {
    text-align: left;
    position: relative;
    float: left;
    width: 100%;
}

#main-container.long .credit-summary .alert-warning > span ol.list-group.list-group-numbered {
    width: 100%;
    margin-left: -19px;
    margin-top: 10px;
}

#main-container.long .credit-summary .alert-warning > span ol.list-group.list-group-numbered li.list-group-item-danger {
    background-color: transparent;
    color: black;
    display: flex;
    justify-content: space-between;
}

#main-container.long .credit-summary .alert-warning > span ol.list-group.list-group-numbered li.list-group-item-danger span:first-child:before {
    content: counters(section, ".") ". ";
    counter-increment: section;
    width: 23px;
    height: 22px;
    display: inline-block;
    text-align: center;
    background-color: white;
    border-radius: 20px;
    margin-right: 10px;
}

#main-container.long .credit-summary .alert-warning > span ol.list-group.list-group-numbered li.list-group-item-danger::before {
    display: none;
}

#main-container.long .credit-summary .alert-warning > span ol.list-group.list-group-numbered li.list-group-item-danger strong {
    font-weight: 600;
    margin-left: 10px;
    order: 2;
    font-size: 15px;
}

.kreditni_linka .credit-summary .alert-warning> span:first-child::before {
    display: none;
}

.card-group .card {
    border-radius: 10px!important;
}

.services-pic-block {
    height: 365px;
}

.services-pic-block .card {
    height: max-content;
    transition: .5s;
}

.blog .post-wrapper:nth-child(2n+1) .background-fluid {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.blog .post-wrapper:nth-child(2n) .background-fluid {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.navbar-light .navbar-toggler {
    border: none;
}

.merged-bodies .card-body:last-child {
    padding-left: 30px;
}

.modal-dialog .modal-content {
    border: none;
}

.modal-dialog .modal-content .modal-header h5 {
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

.modal-dialog .modal-content .modal-header button.btn-close {
    position: absolute;
    right: 12px;
    top: 13px;
    background-size: 12px;
}

.modal-dialog .modal-content .modal-header {
    border-bottom: 0;
}

.modal-dialog .modal-content .modal-footer {
    border: 0;
    text-align: center;
    justify-content: center;
    margin-bottom: 15px;
}

.modal-dialog .modal-content .modal-body {
    display: flex;
    justify-content: space-around;
}

.modal-dialog .modal-content .modal-body .right svg {
    display: block;
}

p.text-as-input {
    background-color: #f4f5fa;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 20px;
    border-radius: 6px;
    border: 1px solid #eaedf4;
}

div#main-container.contacts .input-wrapper span {
    font-size: 13px;
    color: #9B9FB4;
}

div#main-container.contacts .input-wrapper p a {
    text-decoration: none;
    color: black;
}

img.post-img {
    width: 100%;
}

.navbar-nav .nav-item a.nav-link:hover {
    color: #8c71c8;
}

@media (max-width: 991px) {
    .services-pic-block {
        height: 450px;
    }

}

@media (max-width: 767px) {
    #main-container.long .credit-summary .alert-warning > span ol.list-group.list-group-numbered li.list-group-item-danger span:last-child {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
        font-size: 12px;
        margin-bottom: 10px;
    }
    .services-pic-block{
        height: auto;
    }
    .background-fluid {
        min-height: 300px;
    }
    .blog.container .post-wrapper:nth-child(2n) > .col-md-6:nth-child(2n) {
        order: 1;
    }
    .blog.container .post-wrapper:nth-child(2n) > .col-md-6:first-child {
        order: 2;
    }
    .card-group>.card {
        width: 100%;
        flex: none;
    }

    .carousel .carousel-caption {
        width: 100%;
    }

    .carousel .carousel-item.c-item:before {
        width: 100%;
        border-radius: inherit;
    }

    .carousel .bd-placeholder-img {
        position: relative;
        height: 300px;
        z-index: 1;
        width: 100%;
        order: 1;
    }

    .carousel-item .container {
        order: 2;
    }

    .carousel-item.active {
        display: grid;
    }

    .credit-link-form #form_step1 div#tamzpet {
        flex-direction: column;
        gap: 16px;
    }

    .blog .post-wrapper .background-fluid {
        border-radius: 0;
    }

    .post-text-wrapper {
        margin: 20px;
    }

    .card-group .card-body p{
        opacity: 1;
        height: auto;
    }
    .card img.card-img-top{
        max-width: 100px;
    }

    .merged-bodies .card-body:last-child {
        padding-left: 1rem;
    }

    .merged-bodies {
        flex-direction: column;
    }

    .merged-bodies .card-body:first-child {
        border: none;
    }

    .credit-summary .alert-primary> span:first-child {
        text-align: left;
    }

    .credit-summary .alert-primary span:last-child {
        text-align: right;
    }

    #main-container:not(.long, .short) .credit-summary .alert-warning> span#parametry {
        padding-left: 0;
        text-align: left !important;
    }

    .credit-summary .alert-warning {
        text-align: left!important;
    }

    .blog-inner .heading.text-center h1 {
        text-align: left;
    }

    .blog-inner .heading.text-center h1 {
        text-align: left;
    }

    .blog-inner .heading {
        padding-left: 0;
    }
}

@media (max-width: 575px) {
    .heading.kreditni_linka:before, .heading.short:before, .heading.long:before {
        background-size: auto 60%;
        background-position: 0% center;
    }
    .heading.short {
        padding-left: 79px;
    }
}
