/* =========================
   PAYMENT PAGE
========================= */

.payment-page {
    width: 100%;
    min-height: calc(100vh - 96px);
    background: #f3f2ee;
    color: #050505;
}

.payment-page__inner {
    width: min(100% - 32px, 1540px);
    margin: 0 auto;
    padding: clamp(30px, 3vw, 52px) 0 clamp(58px, 5vw, 86px);
}

.payment-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: clamp(22px, 2vw, 36px);
    color: rgba(5, 5, 5, 0.78);
    font-size: clamp(12px, 0.84vw, 15px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease;
}

.payment-back:hover {
    color: #ff2118;
}

/* =========================
   LAYOUT
========================= */

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(520px, 0.85fr);
    gap: clamp(48px, 5vw, 86px);
    align-items: start;
}

.payment-left {
    min-width: 0;
}

.payment-right {
    position: sticky;
    top: 118px;
    min-width: 0;
    align-self: start;
    padding-left: clamp(34px, 4vw, 72px);
    border-left: 1px solid rgba(5, 5, 5, 0.14);
}

/* =========================
   HEAD
========================= */

.payment-head {
    margin-bottom: clamp(28px, 2.6vw, 40px);
}

.payment-head__accent {
    width: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
}

.payment-head__accent span {
    width: 9px;
    height: 22px;
    display: block;
    background: #ff2118;
    transform: skewX(-16deg);
}

.payment-head h1 {
    display: inline-block;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(48px, 4.5vw, 84px);
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: -0.085em;
    text-transform: uppercase;
    transform: scaleX(0.96) scaleY(1.12);
    transform-origin: left bottom;
}

.payment-head p {
    max-width: 620px;
    margin: clamp(18px, 1.4vw, 24px) 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 800;
    line-height: 1.34;
}

/* =========================
   ORDER RECEIPT
========================= */

.payment-order {
    width: 100%;
}

.payment-order__top {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 13px;
    border-bottom: 2px solid #050505;
}

.payment-order__top span {
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(17px, 1.15vw, 22px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.payment-order__movie {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 20px 0 22px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.16);
}

.payment-order__poster {
    width: 104px;
    height: 130px;
    overflow: hidden;
    background: #050505;
}

.payment-order__poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.payment-order__poster--empty {
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.payment-order__poster--empty span {
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.payment-order__movie-info {
    min-width: 0;
    padding-top: 1px;
}

.payment-order__movie-info h2 {
    max-width: 560px;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(23px, 1.6vw, 32px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.067em;
    text-transform: uppercase;
}

.payment-order__movie-info p {
    margin: 9px 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.payment-order__details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 20px;
}

.payment-order__details span {
    color: #050505;
    font-size: clamp(13px, 0.9vw, 15px);
    font-weight: 900;
    line-height: 1.25;
}

/* =========================
   CHECK
========================= */

.payment-check {
    width: 100%;
    padding-top: 17px;
    border-bottom: 2px solid #050505;
}

.payment-check__title {
    margin-bottom: 8px;
    color: rgba(5, 5, 5, 0.58);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.payment-check__row {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(5, 5, 5, 0.14);
}

.payment-check__row span {
    min-width: 0;
    color: #050505;
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 900;
    line-height: 1.25;
}

.payment-check__row strong {
    color: #050505;
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.payment-check__row--muted span,
.payment-check__row--muted strong {
    color: rgba(5, 5, 5, 0.5);
}

.payment-check__total {
    min-height: 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 18px 0 20px;
}

.payment-check__total span {
    color: rgba(5, 5, 5, 0.58);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.payment-check__total strong {
    color: #050505;
    font-size: clamp(34px, 2.55vw, 50px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

/* =========================
   PAYMENT FORM
========================= */

.payment-form {
    width: 100%;
    margin: 0;
    padding-top: clamp(18px, 2vw, 34px);
    border: 0;
    background: transparent;
}

/* =========================
   CARD
========================= */

.payment-card {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 1.68 / 1;
    min-height: 292px;
    overflow: hidden;
    padding: 28px;
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 88% 88%,
            rgba(255, 33, 24, 0.2) 0%,
            rgba(255, 33, 24, 0) 31%
        ),
        linear-gradient(145deg, #080808 0%, #181818 54%, #050505 100%);
    color: #ffffff;
    box-shadow: 0 26px 58px rgba(5, 5, 5, 0.16);
}

.payment-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    pointer-events: none;
}

.payment-card__bg-text {
    position: absolute;
    top: 18px;
    right: 18px;
    color: rgba(255, 255, 255, 0.035);
    font-family: var(--font-display);
    font-size: clamp(64px, 5vw, 96px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.09em;
    text-transform: uppercase;
    pointer-events: none;
}

.payment-card__accent {
    position: relative;
    z-index: 3;
    width: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
}

.payment-card__accent span {
    width: 8px;
    height: 20px;
    display: block;
    background: #ff2118;
    transform: skewX(-16deg);
}

.payment-card__chip {
    position: relative;
    z-index: 3;
    width: 48px;
    height: 36px;
    margin-bottom: 26px;
    border-radius: 7px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.42),
            rgba(255, 255, 255, 0)
        ),
        #d8d8d8;
}

.payment-card__field {
    position: relative;
    z-index: 4;
}

.payment-card__field label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payment-card__field input {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: var(--font-display) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    text-transform: uppercase;
}

.payment-card__field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
    opacity: 1;
}

.payment-card__field--number {
    width: calc(100% - 6px);
    margin-bottom: 27px;
}

.payment-card__field--number input {
    font-size: clamp(21px, 1.65vw, 32px) !important;
    letter-spacing: 0.045em !important;
}

.payment-card__bottom {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 26px;
    align-items: end;
    width: calc(100% - 92px);
}

.payment-card__field--date input,
.payment-card__field--holder input {
    font-size: clamp(13px, 0.95vw, 18px) !important;
    letter-spacing: 0.04em !important;
}

.payment-card__systems {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 3;
    width: 74px;
    height: 39px;
}

.payment-card__systems span {
    position: absolute;
    top: 0;
    width: 39px;
    height: 39px;
    display: block;
    border-radius: 50%;
}

.payment-card__systems span:first-child {
    left: 0;
    background: #ff2118;
}

.payment-card__systems span:last-child {
    right: 0;
    background: #ff9d1c;
    mix-blend-mode: screen;
}

.payment-card__field input:-webkit-autofill,
.payment-card__field input:-webkit-autofill:hover,
.payment-card__field input:-webkit-autofill:focus,
.payment-card__field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #101010 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* =========================
   UNDER FORM
========================= */

.payment-form__under {
    width: min(100%, 520px);
    margin-top: 24px;
}

.payment-form__accept {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: rgba(5, 5, 5, 0.58);
}

.payment-form__accept span {
    margin-right: 6px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.payment-form__accept strong {
    color: rgba(5, 5, 5, 0.74);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.payment-form__accept i {
    position: relative;
    width: 35px;
    height: 17px;
    display: block;
}

.payment-form__accept i::before,
.payment-form__accept i::after {
    content: "";
    position: absolute;
    top: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.54);
}

.payment-form__accept i::before {
    left: 4px;
}

.payment-form__accept i::after {
    right: 4px;
}

/* =========================
   CVV FIELD
========================= */

.payment-field {
    min-width: 0;
    margin-bottom: 16px;
}

.payment-field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(5, 5, 5, 0.72);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.payment-field--cvv {
    width: min(100%, 270px);
}

.payment-field input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(5, 5, 5, 0.18) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease;
}

.payment-field input:focus {
    border-color: #050505 !important;
}

.payment-field input::placeholder {
    color: rgba(5, 5, 5, 0.36);
    font-weight: 800;
    opacity: 1;
}

/* =========================
   ERRORS
========================= */

.payment-error {
    margin-top: 8px;
    color: #d50000;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.payment-error ul {
    margin: 0;
    padding-left: 18px;
}

.payment-error--card {
    position: absolute;
    left: 0;
    top: 100%;
    color: #ff8f8f;
    z-index: 6;
}

.payment-error--common {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 33, 24, 0.18);
    background: rgba(255, 33, 24, 0.08);
}

/* =========================
   SUBMIT
========================= */

.payment-submit {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 5px;
    padding: 0 24px;
    border: 1px solid #ff2118;
    border-radius: 0;
    background: #ff2118;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.payment-submit:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.payment-submit i {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.payment-terms {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(5, 5, 5, 0.52);
    font-size: clamp(11px, 0.78vw, 13px);
    font-weight: 800;
    line-height: 1.45;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1260px) {
    .payment-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .payment-right {
        position: static;
        max-width: 720px;
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .payment-page__inner {
        width: min(100% - 18px, 1540px);
        padding-top: 26px;
        padding-bottom: 52px;
    }

    .payment-head__accent {
        width: 42px;
        gap: 6px;
        margin-bottom: 14px;
    }

    .payment-head__accent span {
        width: 8px;
        height: 19px;
    }

    .payment-head h1 {
        font-size: clamp(42px, 13vw, 64px);
        transform: none;
        letter-spacing: -0.075em;
    }

    .payment-head p {
        font-size: 13px;
    }

    .payment-order__movie {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 16px;
    }

    .payment-order__poster {
        width: 82px;
        height: 108px;
    }

    .payment-order__details {
        margin-top: 16px;
    }

    .payment-check__row,
    .payment-check__total {
        gap: 16px;
    }

    .payment-check__total strong {
        font-size: 34px;
    }

    .payment-card {
        min-height: 240px;
        padding: 22px;
    }

    .payment-card__chip {
        width: 42px;
        height: 32px;
        margin-bottom: 22px;
    }

    .payment-card__field--number input {
        font-size: 20px !important;
    }

    .payment-card__bottom {
        width: calc(100% - 72px);
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 18px;
    }

    .payment-card__systems {
        right: 22px;
        bottom: 22px;
        width: 56px;
        height: 31px;
    }

    .payment-card__systems span {
        width: 31px;
        height: 31px;
    }

    .payment-form__accept {
        flex-wrap: wrap;
    }

    .payment-field--cvv {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .payment-page__inner {
        width: min(100% - 14px, 1540px);
    }

    .payment-head h1 {
        font-size: 37px;
    }

    .payment-order__movie {
        grid-template-columns: 1fr;
    }

    .payment-order__poster {
        width: 120px;
        height: 150px;
    }

    .payment-check__row,
    .payment-check__total {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
    }

    .payment-check__total strong {
        font-size: 32px;
    }

    .payment-card {
        min-height: 218px;
        padding: 18px;
        border-radius: 10px;
    }

    .payment-card__accent {
        margin-bottom: 18px;
    }

    .payment-card__chip {
        width: 38px;
        height: 29px;
        margin-bottom: 18px;
    }

    .payment-card__field--number {
        margin-bottom: 21px;
    }

    .payment-card__field--number input {
        font-size: 17px !important;
        letter-spacing: 0.02em !important;
    }

    .payment-card__bottom {
        width: 100%;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }

    .payment-card__field--date input,
    .payment-card__field--holder input {
        font-size: 11px !important;
    }

    .payment-card__systems {
        display: none;
    }

    .payment-submit {
        min-height: 50px;
        padding: 0 18px;
    }
}