.payment {
    font:
        400 1rem/1.5 Montserrat,
        Arial,
        sans-serif;
    color: #14152b;
    background: #f3f6ff;
    padding: clamp(24px, 5vw, 76px) clamp(16px, 5vw, 76px);
    min-height: 70vh;
}
.layout {
    max-width: 1220px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(24px, 5vw, 76px);
}
.intro {
    padding-top: 17px;
}
.section-name {
    font-size: 0.9rem;
    font-weight: 650;
    color: #3847f5;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.section-name:before {
    content: "";
    flex: 0 0 30px;
    height: 3px;
    background: currentColor;
}
.payment h1 {
    font-weight: 720;
    letter-spacing: -0.048em;
    line-height: 1.04;
    font-size: clamp(2rem, 3.25vw, 3.1rem);
    margin: 22px 0;
}
.intro p {
    max-width: 30ch;
    color: #50576b;
    font-size: 1.06rem;
}
.books {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    padding: 0 8px 3px;
    margin: 40px 0 0;
    border-bottom: 3px solid #3847f5;
}
.books i {
    display: block;
    position: relative;
    height: 100px;
    width: 23px;
    border: 2px solid #3847f5;
    border-radius: 4px;
    background: #ebecfe;
    color: #3847f5;
}
.books i:before,
.books i:after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    height: 6px;
    border-block: 1px solid currentColor;
    top: 8px;
}
.books i:after {
    top: auto;
    bottom: 8px;
}
.books i:nth-child(2) {
    height: 83px;
    width: 17px;
    background: #3847f5;
    color: white;
}
.books i:nth-child(3) {
    height: 110px;
    width: 27px;
}
.books i:nth-child(4) {
    height: 94px;
    width: 20px;
    background: #9ba3fa;
}
.books i:nth-child(5) {
    height: 86px;
    width: 18px;
}
.books i:nth-child(6) {
    height: 103px;
    background: #3847f5;
    color: white;
}
.books i:nth-child(7) {
    height: 91px;
    background: #cdd1ff;
    transform: rotate(-13deg);
    transform-origin: left bottom;
    margin-left: 19px;
}
.payment form {
    background: white;
    border: 1px solid #dce1f2;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 44px);
    box-shadow: 0 8px 28px #00053f08;
}
.payment-row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.85rem;
}
.amount,
.library-field {
    min-width: 0;
}
.amount {
    position: relative;
}
.amount .form-control {
    background: #f3f6ff;
    border-color: #c4cafa;
    color: #252bb7;    
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}
.currency {
    position: absolute;
    right: 0.75rem;
    bottom: 12px;
    color: #3847f5;
    pointer-events: none;
}
.library-field select {
    text-overflow: ellipsis;
}

@media (max-width: 510px) {
    .payment-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .amount {
        max-width: 9.5rem;
    }
}

.payment .form-label {
    position: relative;
    display: block;
    font-size: 0.91rem;
    font-weight: 650;
    margin-bottom: 0.45rem;
    bottom: 0;
}
.payment .req {
    color: #3847f5;
}
.payment .form-control,
.payment .form-select {
    min-height: 48px;
    border-color: #adb5c7;
    border-radius: 8px;
    font: inherit;
    width: 100%;
    padding: 12px;
}
.payment .form-control::placeholder {
    color: #707888;
}
.payment .form-control:focus,
.payment .form-select:focus,
.payment .form-check-input:focus {
    border-color: #3847f5;
    box-shadow: 0 0 0 0.2rem #3847f524;
}
.payment .form-check-input:checked {
    background-color: #3847f5;
    border-color: #3847f5;
}
.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.reader {
    margin-top: 0;
    margin-bottom: 0;
}
.payment .form-check {
    margin: 22px 0;
    padding-left: 1.75rem;
}
.payment .form-check-input {
    width: 1.14rem;
    height: 1.14rem;
    margin-left: -1.75rem !important;
    flex-shrink: 0;
    margin-top: 0.25em;
    vertical-align: top;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #dee2e6;;
}
.payment .form-check-label {
    font-size: 0.93rem;
}
.payment .form-check-input[type="checkbox"]{
    border-radius: 0.25em;
}
.payment a {
    color: #2937ce;
    text-underline-offset: 3px;
}
.payment .btn {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    background: #3847f5;
    color: white;
    font-weight: 650;
}
.payment .btn:hover,
.payment .btn:focus-visible {
    background: #001ec1;
    color: white;
}
.status:empty {
    display: none;
}
.status {
    margin: 16px 0 0;
    color: #26358c;
}
@media (min-width: 821px) {
    .layout {
        align-items: stretch;
    }
    .intro {
        display: flex;
        flex-direction: column;
    }
    .intro h1 {
        margin-bottom: 24px;
    }
    .intro .books {
        margin-top: 16px;
    }
}
@media (max-width: 820px) {
    .layout {
        grid-template-columns: 1fr;
        max-width: 650px;
        gap: 20px;
    }
    .intro {
        padding: 0;
    }
    .intro p {
        max-width: none;
        margin: 0;
    }
    .books {
        display: none;
    }
    .payment h1 {
        margin: 12px 0;
        font-size: clamp(2.2rem, 7vw, 3.2rem);
    }
}