:root {
    --bg: #050505;
    --panel: #121212;
    --panel-soft: #1c1c1c;
    --panel-accent: #31151a;
    --text: #f4f4f4;
    --muted: #8f8f8f;
    --blue: #5f88ff;
    --red: #d81f28;
    --green: #35c84a;
    --border: #2a2a2a;
    --phone-width: 430px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    width: min(100vw, var(--phone-width));
    min-height: 100dvh;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    background: var(--bg);
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 78px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
}

.topbar-link,
.menu-dot {
    background: none;
    border: 0;
    color: var(--blue);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 4px;
}

.topbar-title {
    text-align: center;
    flex: 1;
}

.brand {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.15;
}

.subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.page {
    padding: 18px 14px 28px;
}

.rules-body .app-shell {
    background: #000;
}

.rules-body .page {
    padding: 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.menu-card {
    min-height: 68px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    cursor: pointer;
}

.page-title h1 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 22px;
    line-height: 1.15;
}

.section-divider {
    height: 2px;
    background: var(--red);
    margin: 14px 0;
}

.ticket-form,
.payment-list {
    display: grid;
    gap: 14px;
}

.code-entry-page {
    width: min(100%, 386px);
    min-height: calc(100dvh - 50px);
    margin: 18px auto 0;
    display: flex;
    flex-direction: column;
}

.code-entry-body .app-shell {
    width: 100%;
    max-width: 100%;
    background: #0f1722;
}

.code-entry-body .page {
    min-height: 100dvh;
    padding: 18px 14px 16px;
}

.code-entry-card {
    background: #1a2430;
    border: 1px solid #17212b;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    padding: 36px 22px 22px;
    flex: 1 1 auto;
}

.code-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
}

.code-box {
    height: 59px;
    border: 1px solid #45515e;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    font-weight: 500;
}

.code-box.is-filled {
    border-color: #8ea0b2;
}

.code-title {
    margin-top: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f6ede3;
    font-size: 19px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: 0;
}

.code-title-icon {
    width: 18px;
    height: 18px;
    color: #f3f3f4;
    flex: 0 0 auto;
}

.code-title-icon svg,
.code-scan-icon svg,
.code-delete-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.code-title-icon svg path,
.code-scan-icon svg path,
.code-delete-icon svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.code-keypad-shell {
    margin-top: 72px;
    border: 1px solid #bcc2ca;
    border-radius: 5px;
    background: #bcc2ca;
    overflow: hidden;
}

.code-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
}

.code-key {
    min-height: 58px;
    border: 0;
    border-radius: 5px;
    background: #f5f5f5;
    color: #000000;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.code-key:active {
    background: #e8e8e8;
}

.code-key-scan {
    font-size: 11px;
    line-height: 1.08;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    text-align: center;
    padding-top: 2px;
}

.code-scan-icon {
    width: 15px;
    height: 15px;
    color: #000000;
}

.code-key-delete {
    color: #000000;
}

.code-delete-icon {
    width: 23px;
    height: 15px;
    color: #000000;
}

.code-entry-footer {
    margin-top: 14px;
    margin-bottom: 2px;
    text-align: center;
    color: #b9c0ca;
    font-size: 12px;
    line-height: 1.2;
}

@media (max-width: 390px) {
    .code-entry-body .page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .code-entry-card {
        padding: 30px 14px 18px;
    }

    .code-box {
        height: 52px;
    }

    .code-title {
        margin-top: 44px;
        font-size: 16px;
    }

    .code-keypad-shell {
        margin-top: 56px;
    }

    .code-key {
        min-height: 54px;
    }

    .code-key-scan {
        font-size: 10px;
    }
}

.sbp-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #132131;
    padding: 18px 12px 12px;
    display: grid;
    gap: 16px;
}

.sbp-title {
    margin: 0;
    text-align: center;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
}

.sbp-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
    letter-spacing: 0.01em;
    color: #f2f5f8;
}

.sbp-add-button {
    margin-top: 12px;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: #0f92d8;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

.ticket-info,
.details-card,
.toggle-card,
.success-card,
.checkout-hero {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.ticket-info,
.details-card,
.toggle-card,
.success-card {
    padding: 16px;
}

.field-label,
.detail-label,
.toggle-note,
.success-note {
    color: var(--muted);
    font-size: 14px;
}

.quantity-panel {
    display: grid;
    gap: 14px;
}

.ticket-counter {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.slider {
    width: 100%;
    accent-color: var(--red);
}

.detail-row {
    display: grid;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.direction-switch {
    display: grid;
    gap: 8px;
}

.direction-option {
    width: 100%;
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0b0b;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.direction-option.is-active {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red) inset;
    background: #1b0c0f;
}

.direction-badge {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.direction-text,
.direction-display {
    font-size: 15px;
    line-height: 1.25;
}

.direction-display {
    margin-top: 6px;
    color: var(--muted);
}

.text-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0b0b0b;
    color: var(--text);
    font-size: 16px;
    appearance: none;
}

.toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--panel-accent);
}

.toggle-title {
    font-size: 18px;
    font-weight: 700;
}

.switch {
    position: relative;
    width: 52px;
    height: 30px;
    display: inline-block;
    flex: 0 0 auto;
}

.switch input {
    display: none;
}

.switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #735158;
}

.switch-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
}

.pay-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    color: white;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.checkout-hero {
    padding: 22px 18px;
    background: linear-gradient(120deg, #4838a8, #1b2f69);
    margin-bottom: 14px;
}

.checkout-price {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.checkout-route {
    margin-top: 8px;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.3;
}

.payment-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #1a2238;
    color: var(--text);
    cursor: pointer;
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f3f3f3;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex: 0 0 auto;
}

.payment-title {
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.payment-note {
    color: #bbc5e8;
    text-align: left;
    font-size: 13px;
    margin-top: 3px;
}

.payment-arrow {
    margin-left: auto;
    font-size: 28px;
    line-height: 1;
}

.success-card {
    text-align: center;
    display: grid;
    gap: 10px;
}

.success-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}

.success-row {
    font-size: 16px;
    line-height: 1.35;
}

.rules-page {
    background: #000;
    min-height: 100dvh;
}

.rules-scroll {
    height: 100dvh;
    overflow-y: auto;
    padding: clamp(28px, 3.6vw, 44px) clamp(18px, 4vw, 52px) clamp(24px, 3.4vw, 40px);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #595959 transparent;
}

.rules-top-icon {
    display: block;
    width: clamp(14px, 1.6vw, 18px);
    height: clamp(14px, 1.6vw, 18px);
    margin: 0 auto clamp(8px, 1.2vw, 12px);
}

.rules-heading {
    color: #fff;
    text-align: center;
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(16px, 1.7vw, 24px);
    line-height: 1.08;
    font-weight: 700;
    max-width: min(92vw, 980px);
    margin: 0 auto clamp(18px, 2vw, 28px);
}

.rules-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #fff;
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.2;
    font-weight: 400;
    max-width: min(92vw, 980px);
    margin-inline: auto;
}

.rules-scroll::-webkit-scrollbar {
    width: 3px;
}

.rules-scroll::-webkit-scrollbar-track {
    background: transparent;
    border: 0;
}

.rules-scroll::-webkit-scrollbar-thumb {
    background: #5a5a5a;
    border-radius: 999px;
    border: 0;
}

.rules-scroll::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

.rules-scroll::-webkit-scrollbar-button,
.rules-scroll::-webkit-scrollbar-corner {
    display: none;
    width: 0;
    height: 0;
}

.rules-scroll::-webkit-scrollbar-button:start:decrement,
.rules-scroll::-webkit-scrollbar-button:end:increment,
.rules-scroll::-webkit-scrollbar-button:single-button,
.rules-scroll::-webkit-scrollbar-button:double-button {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

@media (max-width: 560px) {
    .rules-heading,
    .rules-text {
        max-width: 326px;
    }
}

.route-frame-wrap {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.route-frame {
    width: 100%;
    height: calc(100dvh - 180px);
    min-height: 520px;
    border: 0;
    background: white;
}

.route-note {
    margin-top: 12px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
}

@media (min-width: 431px) {
    body {
        padding: 12px 0;
        background: #000;
    }

    .app-shell {
        border-radius: 22px;
        border: 1px solid #1c1c1c;
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    }
}

.buy-body .app-shell,
.success-body .app-shell,
.present-ticket-body .app-shell {
    background: #212121;
}

.buy-body .page,
.success-body .page,
.present-ticket-body .page {
    padding: 0;
    min-height: 100dvh;
}

.ticket-scene,
.present-scene,
.success-scene {
    min-height: 100dvh;
}

.scene-accent {
    height: 2px;
    background: #ff1b22;
}

.scene-screen {
    min-height: calc(100dvh - 2px);
    background: #000;
    padding: 22px 24px 12px;
    display: flex;
    flex-direction: column;
}

.scene-screen-tight {
    min-height: 100dvh;
}

.scene-bottom {
    margin-top: auto;
    padding-top: 28px;
    width: min(100%, 338px);
    margin-left: auto;
    margin-right: auto;
}

.scene-home-indicator {
    display: none;
}

.scene-icon,
.buy-detail-icon {
    color: #f0f0f0;
}

.scene-icon svg,
.buy-detail-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.scene-icon svg path,
.buy-detail-icon svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.buy-ticket-form {
    min-height: calc(100dvh - 26px);
    display: flex;
    flex-direction: column;
}

.buy-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.buy-title .scene-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.buy-title h1 {
    margin: 0;
    color: #e8e8e8;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.buy-block {
    margin-top: 24px;
}

.buy-label {
    color: #7b7b7b;
    font-size: 13px;
    line-height: 1.3;
}

.buy-quantity-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 8px;
}

.buy-quantity-box {
    width: 28px;
    height: 28px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.buy-range-wrap {
    position: relative;
    padding-top: 6px;
}

.buy-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 22px;
    margin: 0;
    background: transparent;
    --range-progress: 0%;
}

.buy-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(to right, #ff2c32 0 var(--range-progress), #313131 var(--range-progress) 100%);
}

.buy-range::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: #313131;
}

.buy-range::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: #ff2c32;
}

.buy-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border: 2px solid #ff4348;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2b2b2b 0%, #0a0a0a 70%);
    box-shadow: 0 0 0 3px rgba(255, 27, 34, 0.18);
    cursor: pointer;
}

.buy-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #ff4348;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2b2b2b 0%, #0a0a0a 70%);
    box-shadow: 0 0 0 3px rgba(255, 27, 34, 0.18);
    cursor: pointer;
}

.buy-range-points,
.buy-range-labels {
    display: flex;
    justify-content: space-between;
}

.buy-range-points {
    margin-top: -12px;
    padding: 0 2px;
    pointer-events: none;
}

.buy-range-point {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3f3f3f;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.buy-range-point.is-active {
    background: #ff2a31;
    transform: scale(1.15);
}

.buy-range-labels {
    margin-top: 9px;
    color: #9b9b9b;
    font-size: 13px;
    line-height: 1;
}

.buy-direction-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

.buy-direction-tab {
    min-width: 102px;
    min-height: 28px;
    border: 1px solid #303030;
    border-radius: 999px;
    background: #0a0a0a;
    color: #8f8f8f;
    font-size: 13px;
    cursor: pointer;
}

.buy-direction-tab.is-active {
    border-color: #ff1b22;
    color: #ff1b22;
}

.buy-divider {
    height: 1px;
    background: #2a2a2a;
    margin-top: 22px;
}

.buy-detail-row {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 14px;
    align-items: start;
    padding-top: 14px;
}

.buy-detail-icon {
    width: 24px;
    height: 24px;
    margin-top: 4px;
    color: #ececec;
}

.buy-detail-icon-image-wrap {
    width: 100%;
    height: 100%;
    display: block;
}

.buy-detail-icon-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.buy-detail-content {
    min-width: 0;
}

.buy-value,
.buy-route-text,
.buy-detail-input,
.buy-vehicle-select {
    color: #f4f4f4;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
}

.buy-route-text {
    color: #8c8c8c;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 2px;
}

.buy-vehicle-wrap {
    position: relative;
}

.buy-detail-input,
.buy-vehicle-select {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    outline: none;
}

.buy-detail-input::placeholder {
    color: #727272;
}

.buy-subscribe {
    margin-top: 24px;
    padding: 22px 28px;
    border: 1px solid #6b2631;
    background: #461721;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.buy-subscribe-title {
    color: #f5ecee;
    font-size: 16px;
    line-height: 1.25;
}

.buy-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
}

.buy-switch input {
    display: none;
}

.buy-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #7d5357;
}

.buy-switch-track::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
}

.buy-pay-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #35bd41;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.success-body .app-shell {
    background:
        radial-gradient(circle at 20% 10%, rgba(99, 67, 124, 0.28), transparent 22%),
        radial-gradient(circle at 80% 0%, rgba(77, 52, 109, 0.22), transparent 24%),
        #0b0910;
}

.success-body .page {
    padding: 18px 18px 22px;
}

.success-scene {
    min-height: 100dvh;
    display: grid;
    align-content: start;
    gap: 6px;
}

.success-summary {
    background: rgba(65, 50, 66, 0.92);
    border-radius: 18px 18px 10px 10px;
    padding: 12px 16px 10px;
    color: #f5f0f6;
}

.success-summary-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 22px;
    line-height: 1.2;
}

.success-summary-line + .success-summary-line {
    margin-top: 4px;
}

.success-summary-icon {
    flex: 0 0 auto;
}

.success-summary-time {
    margin-left: auto;
    color: #a999ad;
    font-size: 17px;
}

.success-actions {
    display: grid;
    gap: 4px;
}

.success-action {
    width: 100%;
    min-height: 72px;
    padding: 0 18px;
    border: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(65, 50, 66, 0.92);
    color: #f5f0f6;
    font-size: 22px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-align: center;
}

.success-action + .success-action {
    border-radius: 12px;
}

.success-action-primary {
    justify-content: flex-start;
    position: relative;
    padding-left: 20px;
}

.success-action-icon {
    flex: 0 0 auto;
}

.success-action-corner {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 14px;
    height: 14px;
    border: 2px solid #f2eaf4;
    border-radius: 4px;
}

.present-scene {
    min-height: 100dvh;
}

.present-ticket-body {
    overflow: hidden;
}

.present-ticket-body .app-shell {
    width: min(100vw, 372px);
    margin: 0 auto;
}

.present-ticket-body .page {
    overflow: hidden;
}

.present-timer {
    color: #f1f1f1;
    text-align: center;
    font-size: 19px;
    line-height: 1.22;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 16px;
}

.present-tabs {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-bottom: 1px solid #484848;
    margin: 0 -24px;
}

.present-tab {
    min-height: 54px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e7e7e7;
    font-size: 17px;
    line-height: 1.2;
    border-bottom: 2px solid transparent;
}

.present-tab.is-active {
    color: #ff1b22;
    border-bottom-color: #ff1b22;
}

.present-tab-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.present-tab-icon svg,
.present-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.present-tab-icon svg path,
.present-tab-icon svg circle,
.present-icon svg path,
.present-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.present-tab-icon .present-accent-fill {
    fill: currentColor;
    stroke: none;
}

.present-tab:not(.is-active) .present-tab-icon .present-accent-fill {
    fill: #d8d8d8;
}

.present-tab-icon .present-accent-mark {
    stroke: #ffffff;
}

.present-icon-image-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.present-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.present-tab-icon.present-icon-image-wrap {
    width: 23px;
    height: 23px;
}

.present-icon.present-icon-image-wrap {
    width: 30px;
    height: 30px;
}

.present-content {
    padding-top: 18px;
    width: min(100%, 356px);
    margin: 0 auto;
}

.present-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 13px;
    padding: 18px 0;
    border-bottom: 1px solid #343434;
}

.present-icon {
    color: #f2f2f2;
    width: 26px;
    height: 26px;
    margin-top: 3px;
}

.present-label {
    color: #808080;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.present-value {
    color: #f4f4f4;
    font-size: 24px;
    line-height: 1.28;
    font-weight: 500;
}

.present-content-qr {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding-top: 18px;
    width: min(100%, 400px);
    margin: 0 auto;
}

.present-qr-card {
    background: #fff;
    padding: 3px;
}

.present-qr-card img {
    display: block;
    width: min(100%, 384px);
    aspect-ratio: 1 / 1;
    image-rendering: pixelated;
}

.present-qr-number {
    color: #f2f2f2;
    text-align: center;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.present-close-button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: #f21d1d;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

@media (max-width: 390px) {
    .scene-screen {
        padding-left: 16px;
        padding-right: 16px;
    }

    .buy-title h1 {
        font-size: 18px;
    }

    .buy-direction-tab {
        min-width: 92px;
    }

    .buy-subscribe {
        padding-left: 18px;
        padding-right: 18px;
    }

    .success-summary-line,
    .success-action {
        font-size: 18px;
    }

    .present-tabs {
        margin-left: -16px;
        margin-right: -16px;
    }

    .present-tab {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 16px;
    }

    .present-value {
        font-size: 21px;
    }

    .present-qr-number {
        font-size: 28px;
    }

    .present-content,
    .present-content-qr {
        width: min(100%, 360px);
    }
}
