/* =========================
   CHECK RESULTS BODY OVERRIDES
========================= */

.check-results-body {
    --check-results-header-height: 96px;
}

.check-results-body .site-main {
    position: relative;
    padding: 0;
}

.check-results-body .site-main > .site-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.check-results-body .site-footer {
    margin-top: 0;
}

.check-results-body .messages-stack {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 30;
    width: min(520px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
}

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

.check-results-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f3f2ee;
    color: #050505;
}

.check-results-wrap {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding:
        clamp(22px, 2.3vw, 34px)
        clamp(28px, 5vw, 72px)
        clamp(42px, 4vw, 64px);
}

/* =========================
   HEADER
========================= */

.check-results-header {
    margin-bottom: clamp(28px, 2.8vw, 42px);
}

.check-results-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(11px, 0.82vw, 13px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.82;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.check-results-back:hover {
    color: #ff2118;
    opacity: 1;
}

.check-results-header h1 {
    display: block;
    max-width: 880px;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(44px, 4.35vw, 68px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.check-results-header p {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   LIST
========================= */

.check-results-list {
    display: flex;
    flex-direction: column;
    gap: clamp(34px, 3.2vw, 52px);
}

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

.check-result-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(360px, 420px);
    gap: clamp(34px, 3.2vw, 48px);
    align-items: center;
}

/* =========================
   REAL SVG TICKET
========================= */

.check-result-ticket {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
}

.check-result-ticket__inner {
    position: relative;
    width: 100%;
    max-width: 720px;
    overflow: hidden;
}

.check-result-ticket__bg {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* =========================
   POSTER OVER SVG
========================= */

.check-result-ticket__poster {
    position: absolute;
    left: 5.35%;
    top: 50%;
    z-index: 2;
    width: 17.2%;
    aspect-ratio: 2 / 3;
    transform: translateY(-50%);
    overflow: hidden;
    background: #111111;
}

.check-result-ticket__poster-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    filter: contrast(1.04) saturate(0.96);
}

.check-result-ticket__poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.check-result-ticket__poster-placeholder span {
    color: rgba(255, 255, 255, 0.42);
    font-family: var(--font-display);
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
}

/* =========================
   TICKET CONTENT
========================= */

.check-result-ticket__content {
    position: absolute;
    left: 25.2%;
    top: 50%;
    z-index: 2;
    width: 41.5%;
    transform: translateY(-50%);
}

.check-result-ticket__content h2 {
    max-width: 100%;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(23px, 1.55vw, 29px);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.check-result-ticket__datetime {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 17px;
    color: #ffffff;
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 900;
    line-height: 1;
}

.check-result-ticket__place {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.check-result-ticket__place p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(12px, 0.82vw, 14px);
    font-weight: 700;
    line-height: 1.24;
}

/* =========================
   PRICE OVER SVG
========================= */

.check-result-ticket__price {
    position: absolute;
    right: 7.8%;
    top: 50%;
    z-index: 2;
    width: 14%;
    transform: translateY(-50%);
    text-align: left;
}

.check-result-ticket__price span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: clamp(11px, 0.75vw, 13px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.check-result-ticket__price strong {
    display: block;
    color: #ff2118;
    font-family: var(--font-display);
    font-size: clamp(19px, 1.2vw, 23px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* =========================
   RIGHT SIDE
   Только текст увеличен, размеры блока не тронуты
========================= */

.check-result-side {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: center;
    padding-top: 0;
}

.check-result-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(5, 5, 5, 0.72);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.check-result-status span {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8a8a8a;
}

.check-result-status--paid span {
    background: #21a64a;
}

.check-result-status--booked span {
    background: #f4aa22;
}

.check-result-status--used span {
    background: #2f80ed;
}

.check-result-status--cancelled span,
.check-result-status--expired span {
    background: #d50000;
}

.check-result-status--refunded span {
    background: #7d7d7d;
}

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

.check-result-info {
    width: 100%;
    padding: 28px 30px 26px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.check-result-info h3 {
    margin: 0 0 22px;
    color: #050505;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.check-result-info__list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.check-result-info__row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
}

.check-result-info__row span {
    color: rgba(5, 5, 5, 0.54);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.check-result-info__row strong {
    min-width: 0;
    color: #050505;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.check-result-info__row--total strong {
    color: #ff2118;
}

/* =========================
   OPEN BUTTON
========================= */

.check-result-open {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 24px;
    border: 1px solid #ff2118;
    background: #ff2118;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.check-result-open::after {
    content: "→";
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.check-result-open:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.check-result-open:hover::after {
    transform: translate(4px, -1px);
}

/* =========================
   EMPTY
========================= */

.check-results-empty {
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.check-results-empty h2 {
    margin: 0 0 12px;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.check-results-empty p {
    margin: 0 0 22px;
    color: rgba(5, 5, 5, 0.58);
    font-weight: 800;
}

.check-results-empty__link {
    width: min(100%, 260px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 1px solid #ff2118;
    background: #ff2118;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none;
}

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

@media (max-width: 1400px) {
    .check-results-wrap {
        width: min(100%, 1280px);
        padding: 24px 48px 54px;
    }

    .check-result-card {
        grid-template-columns: minmax(0, 740px) minmax(340px, 400px);
        gap: 36px;
    }

    .check-result-ticket__inner {
        max-width: 680px;
    }

    .check-result-ticket__poster {
        width: 17.2%;
    }

    .check-result-ticket__content h2 {
        font-size: clamp(21px, 1.45vw, 26px);
    }

    .check-result-ticket__datetime {
        font-size: clamp(12px, 0.88vw, 15px);
    }

    .check-result-ticket__place p {
        font-size: clamp(11px, 0.78vw, 13px);
    }

    .check-result-ticket__price strong {
        font-size: clamp(18px, 1.1vw, 21px);
    }

    .check-result-status {
        font-size: 14px;
    }

    .check-result-info h3 {
        font-size: 21px;
    }

    .check-result-info__row span,
    .check-result-info__row strong {
        font-size: 13px;
    }

    .check-result-open {
        font-size: 11px;
    }
}

@media (max-width: 1180px) {
    .check-results-wrap {
        padding: 24px 26px 46px;
    }

    .check-result-card {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    .check-result-ticket__inner {
        max-width: 720px;
    }

    .check-result-side {
        max-width: 720px;
        padding-top: 0;
        align-self: start;
    }

    .check-result-info {
        padding: 24px 24px 22px;
    }

    .check-result-status {
        font-size: 15px;
    }

    .check-result-info h3 {
        font-size: 22px;
    }

    .check-result-info__row span,
    .check-result-info__row strong {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .check-results-body {
        --check-results-header-height: 84px;
    }

    .check-results-header h1 {
        font-size: clamp(34px, 6vw, 52px);
    }

    .check-result-ticket__inner {
        max-width: 100%;
    }

    .check-result-side {
        max-width: 100%;
    }

    .check-result-ticket__content h2 {
        font-size: clamp(17px, 2vw, 22px);
    }

    .check-result-ticket__datetime {
        font-size: clamp(10px, 1.15vw, 12px);
    }

    .check-result-ticket__place p {
        font-size: clamp(9.5px, 1.05vw, 11px);
    }

    .check-result-ticket__price strong {
        font-size: clamp(14px, 1.25vw, 16px);
    }
}

@media (max-width: 768px) {
    .check-results-body {
        --check-results-header-height: 78px;
    }

    .check-results-wrap {
        padding: 22px 18px 40px;
    }

    .check-results-header {
        margin-bottom: 22px;
    }

    .check-results-header h1 {
        font-size: clamp(30px, 9vw, 44px);
        line-height: 0.9;
    }

    .check-results-header p {
        font-size: 14px;
    }

    .check-result-card {
        gap: 16px;
    }

    .check-result-info {
        padding: 22px 18px;
    }

    .check-result-info__row {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .check-result-status {
        font-size: 14px;
    }

    .check-result-info h3 {
        font-size: 20px;
    }

    .check-result-info__row span,
    .check-result-info__row strong {
        font-size: 13px;
    }

    .check-result-open {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .check-results-body {
        --check-results-header-height: 72px;
    }

    .check-results-wrap {
        padding: 20px 14px 34px;
    }

    .check-results-back {
        margin-bottom: 12px;
        font-size: 10px;
        opacity: 0.95;
    }

    .check-results-header h1 {
        font-size: clamp(28px, 10vw, 38px);
        letter-spacing: -0.07em;
    }

    .check-results-header p {
        font-size: 13px;
    }

    .check-results-list {
        gap: 28px;
    }

    .check-result-card {
        gap: 14px;
    }

    .check-result-ticket {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .check-result-ticket__inner {
        width: 650px;
        max-width: none;
    }

    .check-result-info {
        padding: 18px 14px;
    }

    .check-result-info__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .check-result-status {
        font-size: 13px;
    }

    .check-result-info h3 {
        font-size: 18px;
    }

    .check-result-info__row span,
    .check-result-info__row strong {
        font-size: 12px;
    }

    .check-result-open {
        min-height: 48px;
        padding: 0 16px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .check-results-wrap {
        padding: 18px 12px 30px;
    }

    .check-results-header h1 {
        font-size: 28px;
    }

    .check-result-ticket__inner {
        width: 610px;
    }
}



/* =========================
   ORDER DETAIL PAGE
========================= */

.order-detail-page .check-results-header {
    margin-bottom: clamp(30px, 3vw, 46px);
}

.order-detail-page .check-results-header h1 {
    max-width: 900px;
}

.order-detail-page .check-result-status {
    margin-top: 18px;
}

.order-detail-card {
    align-items: start;
}

.order-detail-ticket {
    padding-top: 8px;
}

.order-detail-side {
    gap: 16px;
}

.order-detail-actions-card {
    padding-bottom: 30px;
}

.order-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-action {
    min-height: 54px;
}

.order-detail-action--ghost {
    border-color: rgba(0, 0, 0, 0.36);
    background: transparent;
    color: #050505;
}

.order-detail-action--ghost:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.order-detail-action--danger {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.order-detail-action--danger:hover {
    border-color: #ff2118;
    background: #ff2118;
    color: #ffffff;
}

.order-detail-message {
    margin: 0;
    color: rgba(5, 5, 5, 0.62);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.order-detail-message--success {
    color: #1f8f46;
}

.order-detail-message--danger {
    color: #d50000;
}

@media (max-width: 1180px) {
    .order-detail-ticket {
        padding-top: 0;
    }
}

@media (max-width: 576px) {
    .order-detail-page .check-result-status {
        margin-top: 12px;
    }

    .order-detail-actions {
        gap: 10px;
    }

    .order-detail-message {
        font-size: 13px;
    }
}

/* =========================
   ORDER DETAIL PAGE
========================= */

.order-detail-card {
    align-items: start;
}

.order-detail-ticket {
    padding-top: 8px;
}

.order-detail-page .check-result-ticket__inner {
    aspect-ratio: 720 / 294;
}

.order-detail-side {
    gap: 16px;
}

.order-detail-actions-card {
    padding-bottom: 30px;
}

.order-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-action {
    min-height: 54px;
}

.order-detail-action--ghost {
    border-color: rgba(0, 0, 0, 0.36);
    background: transparent;
    color: #050505;
}

.order-detail-action--ghost:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.order-detail-action--danger {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.order-detail-action--danger:hover {
    border-color: #ff2118;
    background: #ff2118;
    color: #ffffff;
}

.order-detail-message {
    margin: 0;
    color: rgba(5, 5, 5, 0.62);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.order-detail-message--success {
    color: #1f8f46;
}

.order-detail-message--danger {
    color: #d50000;
}