/* =========================
   BOOKING PAGE
========================= */

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

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

/* =========================
   BACK
========================= */

.booking-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: clamp(20px, 1.8vw, 30px);
    color: rgba(5, 5, 5, 0.78);
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease;
}

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

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

.booking-head {
    margin-bottom: clamp(28px, 2.8vw, 44px);
}

.booking-head h1 {
    display: inline-block;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(58px, 5.8vw, 112px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.088em;
    text-transform: uppercase;
    transform: scaleX(0.96) scaleY(1.12);
    transform-origin: left bottom;
}

.booking-head p {
    max-width: 620px;
    margin: clamp(20px, 1.45vw, 24px) 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(14px, 0.95vw, 17px);
    font-weight: 800;
    line-height: 1.34;
}

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

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(34px, 4vw, 66px);
    align-items: start;
}

.booking-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(26px, 2.4vw, 38px);
}

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

.booking-section {
    min-width: 0;
}

.booking-section__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.booking-section__accent {
    width: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

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

.booking-section__head h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(24px, 1.8vw, 36px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

/* =========================
   TICKET / CARD BASE
========================= */

.booking-detail-card,
.booking-user-card,
.booking-guest-card {
    position: relative;
    border: 1px solid rgba(5, 5, 5, 0.2);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.04) 100%
        );
    box-shadow: none;
    overflow: hidden;
}

/* убрали полукруглые вырезы и пунктирные штрихи */
.booking-detail-card::before,
.booking-detail-card::after,
.booking-user-card::before,
.booking-user-card::after,
.booking-guest-card::before,
.booking-guest-card::after {
    content: none !important;
    display: none !important;
}

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

.booking-detail-card {
    --poster-width: clamp(190px, 16vw, 260px);

    display: grid;
    grid-template-columns: var(--poster-width) minmax(0, 1fr);
    min-height: 236px;
}

.booking-detail-card__poster {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #050505;
    border-right: 1px solid rgba(5, 5, 5, 0.16);
}

.booking-detail-card__poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.booking-detail-card__poster span {
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: rgba(255, 255, 255, 0.18);
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.booking-detail-card__content {
    min-width: 0;
    padding: 20px clamp(26px, 2.5vw, 44px) 20px clamp(24px, 2.2vw, 38px);
}

.booking-detail-row {
    min-height: 40px;
    display: grid;
    grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.13);
}

.booking-detail-row:last-child {
    border-bottom: 0;
}

.booking-detail-row span {
    color: rgba(5, 5, 5, 0.54);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.booking-detail-row strong {
    color: #050505;
    font-size: clamp(14px, 0.95vw, 17px);
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

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

.booking-user-card,
.booking-guest-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-user-item {
    min-height: 82px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.13);
}

.booking-user-item:nth-child(odd) {
    border-right: 1px solid rgba(5, 5, 5, 0.13);
}

.booking-user-item:nth-last-child(1),
.booking-user-item:nth-last-child(2) {
    border-bottom: 0;
}

.booking-user-item span {
    color: rgba(5, 5, 5, 0.54);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.booking-user-item strong {
    color: #050505;
    font-size: clamp(14px, 0.95vw, 17px);
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* =========================
   GUEST FORM
========================= */

.booking-guest-card {
    padding: 0;
}

.booking-field {
    min-width: 0;
    min-height: 92px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.13);
}

.booking-field:nth-child(odd) {
    border-right: 1px solid rgba(5, 5, 5, 0.13);
}

.booking-field--wide {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-bottom: 0;
}

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

.booking-input-wrap {
    width: 100%;
}

.booking-input-wrap input,
.booking-input-wrap select,
.booking-input-wrap textarea {
    width: 100% !important;
    height: 38px !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-bottom: 2px solid rgba(5, 5, 5, 0.38) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    font-size: clamp(15px, 1vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.18s ease;
}

.booking-input-wrap input:focus,
.booking-input-wrap select:focus,
.booking-input-wrap textarea:focus {
    border-bottom-color: #050505 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.booking-input-wrap input::placeholder,
.booking-input-wrap textarea::placeholder {
    color: #9e9e9e;
    font-weight: 800;
    opacity: 1;
}

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

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

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

/* =========================
   SUMMARY
========================= */

.booking-summary {
    position: sticky;
    top: 112px;
    align-self: start;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-top: clamp(30px, 2.6vw, 42px);
    padding: clamp(20px, 1.8vw, 26px);
    border: 1px solid rgba(5, 5, 5, 0.16);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.05) 100%
        );
}

.booking-summary h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(23px, 1.65vw, 32px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.booking-summary__line {
    width: 100%;
    height: 2px;
    margin: 17px 0 18px;
    background: #050505;
}

.booking-summary__items {
    display: flex;
    flex-direction: column;
}

.booking-summary__item {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.13);
}

.booking-summary__item .booking-summary__icon {
    display: none;
}

.booking-summary__item span:not(.booking-summary__icon) {
    color: #050505;
    font-size: clamp(13px, 0.88vw, 16px);
    font-weight: 800;
    line-height: 1.2;
}

.booking-summary__item strong {
    color: #050505;
    font-size: clamp(13px, 0.88vw, 16px);
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.booking-summary__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    color: rgba(5, 5, 5, 0.58);
    overflow: hidden;
}

.booking-summary__icon img,
.booking-summary__icon svg {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    fill: currentColor;
    stroke: currentColor;
}

.booking-summary__total {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.13);
}

.booking-summary__total span {
    color: #050505;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.booking-summary__total strong {
    color: #050505;
    font-size: clamp(25px, 1.7vw, 34px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.booking-summary__notice {
    margin: 20px 0 0;
    color: rgba(5, 5, 5, 0.52);
    font-size: clamp(12px, 0.84vw, 14px);
    font-weight: 800;
    line-height: 1.35;
}

.booking-summary__submit,
.booking-summary__change {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 0 22px;
    border-radius: 0;
    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;
    text-decoration: none;
    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;
}

.booking-summary__submit {
    border: 1px solid #ff2118;
    background: #ff2118;
    color: #ffffff;
}

.booking-summary__submit:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.booking-summary__change {
    margin-top: 14px;
    border: 1px solid rgba(5, 5, 5, 0.36);
    background: transparent;
    color: #050505;
}

.booking-summary__change:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.booking-summary__submit span,
.booking-summary__change span {
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

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

@media (max-width: 1280px) {
    .booking-layout {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
        gap: 32px;
    }

    .booking-detail-card {
        --poster-width: clamp(160px, 16vw, 220px);
    }

    .booking-detail-card__content {
        padding: 16px 30px 16px 24px;
    }
}

@media (max-width: 1080px) {
    .booking-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .booking-summary {
        position: static;
        align-self: start;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .booking-page__inner {
        width: min(100% - 18px, 1540px);
        padding-top: 24px;
    }

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

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

    .booking-detail-card {
        --poster-width: 130px;
        min-height: 190px;
    }

    .booking-detail-card__content {
        padding: 12px 28px 12px 14px;
    }

    .booking-detail-row {
        min-height: 34px;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
    }

    .booking-user-card,
    .booking-guest-card {
        grid-template-columns: 1fr;
    }

    .booking-user-item,
    .booking-user-item:nth-child(odd),
    .booking-field,
    .booking-field:nth-child(odd) {
        border-right: 0;
    }

    .booking-user-item {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .booking-user-item:nth-last-child(2) {
        border-bottom: 1px solid rgba(5, 5, 5, 0.13);
    }
}

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

    .booking-back {
        font-size: 12px;
    }

    .booking-head h1 {
        font-size: 38px;
    }

    .booking-section__head {
        gap: 12px;
    }

    .booking-section__accent {
        width: 42px;
        gap: 6px;
    }

    .booking-section__accent span {
        width: 8px;
        height: 19px;
    }

    .booking-section__head h2 {
        font-size: 23px;
    }

    .booking-detail-card {
        grid-template-columns: 1fr;
    }

    .booking-detail-card__poster {
        height: 220px;
        border-right: 0;
        border-bottom: 1px solid rgba(5, 5, 5, 0.16);
    }

    .booking-detail-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 9px 0;
    }

    .booking-user-item {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .booking-field {
        min-height: auto;
        padding: 16px 14px;
    }

    .booking-summary {
        padding: 18px;
    }

    .booking-summary__item {
        min-height: 56px;
    }

    .booking-summary__total strong {
        font-size: 25px;
    }

    .booking-summary__submit,
    .booking-summary__change {
        min-height: 50px;
        padding: 0 18px;
    }
}