/* ==========================================================================
   Dendy UC — дизайн-система
   Тёмный «красный» фон + золотой акцент. Один stylesheet на всё приложение.
   ========================================================================== */

:root {
    /* фон и поверхности */
    --background-color: #0B0406;
    --background-soft: #150609;
    --second-background-color: #1E0A0E;
    --second-background-color-opacity: rgba(30, 10, 14, 0.82);
    --surface-color: rgba(38, 14, 18, 0.72);
    --surface-border: rgba(255, 205, 150, 0.10);
    --surface-border-strong: rgba(255, 205, 150, 0.22);

    /* текст */
    --text-color: #FDF3E7;
    --text-soft: rgba(253, 243, 231, 0.72);
    --hint-color: #C79A8E;

    /* акценты */
    --primary-color: #C9A227;
    --primary-color-opacity: rgba(201, 162, 39, 0.45);
    --primary-deep: #8E1B22;
    --primary-deep-opacity: rgba(142, 27, 34, 0.5);

    --button-color: #F0A13C;
    --button-color-opacity: rgba(240, 161, 60, 0.5);

    --positive-color: #3FDD78;
    --negative-color: #FF5A5A;

    --gold-soft: #F6D77A;
    --accent-steel: #7FB2FF;

    --gradient-primary: linear-gradient(135deg, #B3222C 0%, #6E1116 55%, #2A070A 100%);
    --gradient-gold: linear-gradient(135deg, #F6D77A 0%, #E0A32A 45%, #B57A12 100%);

    --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
    --shadow-gold: 0 14px 34px -16px rgba(240, 161, 60, 0.55);

    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;

    /* отступ страницы: используется и в шапках на всю ширину */
    --page-padding: 20px;

    --tg-header-color: #0B0406;
    --tg-bottom-bar-color: #0B0406;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Roboto', system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: var(--background-color);
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    padding: var(--page-padding);
    padding-bottom: calc(var(--page-padding) + env(safe-area-inset-bottom, 0px));

    color: var(--text-color);
    background-color: var(--background-color);

    overflow-x: hidden;
    overscroll-behavior-y: contain;
}

/* фон: отдельная картинка + затемняющий градиент */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(120% 60% at 50% 0%, rgba(179, 34, 44, 0.28) 0%, transparent 65%),
        linear-gradient(180deg, rgba(11, 4, 6, 0.35) 0%, rgba(11, 4, 6, 0.78) 60%, rgba(11, 4, 6, 0.95) 100%);
}

.page-background {
    position: fixed;
    inset: 0;
    z-index: -2;

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;

    pointer-events: none;
    user-select: none;
}

/* контейнер приложения: центрируем и ограничиваем ширину без flex-ловушек */
.app-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.content-area {
    position: relative;
    width: 100%;
}

.page-enter {
    animation: fadeUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ==========================================================================
   Типографика
   ========================================================================== */

h1, h2, h3, h4 {
    line-height: 1.2;
}

.title {
    font-weight: 700;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    font-size: 13px;
    color: var(--hint-color);
    line-height: 1.35;
}

.muted {
    color: var(--hint-color);
}

.small {
    font-size: 11.5px;
}

.divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
    background: linear-gradient(90deg, transparent, var(--surface-border-strong), transparent);
}

/* ==========================================================================
   Раскладка
   ========================================================================== */

.row {
    display: flex;
    flex-direction: row;
}

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

.space-around { justify-content: space-around; }
.space-between { justify-content: space-between; }
.space-evenly { justify-content: space-evenly; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.block {
    padding: 15px;
    border-radius: var(--radius-md);
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.block.transparent {
    background-color: rgba(22, 9, 12, 0.55);
}

.block.accent {
    background-image: linear-gradient(135deg, rgba(179, 34, 44, 0.5) 0%, rgba(60, 14, 18, 0.5) 100%);
    border: 1px solid var(--primary-color-opacity);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 46px;
    padding: 11px 20px;

    border: none;
    border-radius: var(--radius-sm);

    background-image: var(--gradient-gold);
    color: #2A1503;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    box-shadow: var(--shadow-gold);

    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

button:active:not(:disabled),
.btn:active {
    transform: scale(0.97);
}

button:disabled {
    background-image: none;
    background-color: rgba(240, 161, 60, 0.12);
    border: 1px solid rgba(240, 161, 60, 0.22);
    color: var(--hint-color);
    opacity: 0.85;
    box-shadow: none;
    cursor: not-allowed;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
[role='button']:focus-visible {
    outline: 2px solid var(--button-color);
    outline-offset: 2px;
}

.btn-secondary,
button.btn-secondary {
    background-image: none;
    background-color: rgba(240, 161, 60, 0.12);
    border: 1px solid rgba(240, 161, 60, 0.4);
    color: var(--gold-soft);
    box-shadow: none;
}

.btn-ghost,
button.btn-ghost {
    background-image: none;
    background-color: transparent;
    border: 1px solid var(--surface-border-strong);
    color: var(--text-color);
    box-shadow: none;
}

.btn-small,
button.btn-small {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
    width: auto;
}

.btn-inline {
    width: auto;
}

/* ==========================================================================
   Поля ввода
   ========================================================================== */

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;

    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);

    background-color: rgba(12, 5, 7, 0.72);
    color: var(--text-color);

    font-family: inherit;
    font-size: 15px;

    outline: none;
    appearance: none;
}

input::placeholder {
    color: rgba(199, 154, 142, 0.65);
}

input:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(240, 161, 60, 0.14);
}

input:disabled {
    opacity: 0.6;
}

/* убираем стрелки у number, они мешают на мобильных */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 12px;
    color: var(--hint-color);
}

.field-hint {
    font-size: 11px;
    color: var(--hint-color);
    line-height: 1.4;
}

.field-error {
    display: none;
    font-size: 11.5px;
    color: var(--negative-color);
    line-height: 1.4;
}

.field-error.visible {
    display: block;
}

.field-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.field-row input {
    flex: 1 1 auto;
}

.field-row button {
    width: auto;
    flex: 0 0 auto;
    min-width: 118px;
}

.field-ok {
    font-size: 12px;
    color: var(--positive-color);
}

/* ==========================================================================
   Сетка каталога и карточки товаров
   ========================================================================== */

.page-head {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: calc(-1 * var(--page-padding)) calc(-1 * var(--page-padding)) 16px;
    padding: 16px var(--page-padding);

    border-radius: 0 0 22px 22px;
    border-bottom: 1px solid var(--surface-border);

    background-image: linear-gradient(160deg, rgba(179, 34, 44, 0.5) 0%, rgba(60, 10, 14, 0.55) 60%, rgba(11, 4, 6, 0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-head .ph-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    font-size: 22px;
}

.page-head .ph-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-head .ph-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.page-head h2 {
    font-size: 19px;
    font-weight: 700;
}

.page-head .ph-side {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-soft);
    white-space: nowrap;
}

/* карточка товара (UC, коды) */
.product-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;

    width: 100%;
    padding: 10px 8px 12px;

    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);

    background: linear-gradient(165deg, rgba(48, 16, 20, 0.85) 0%, rgba(20, 8, 11, 0.94) 100%);

    color: var(--text-color);
    font-weight: 400;
    box-shadow: var(--shadow-card);

    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.product-card:active {
    transform: scale(0.97);
}

.product-card .pc-art {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 74px;
    margin-bottom: 4px;

    border-radius: var(--radius-sm);
    background-image: linear-gradient(to bottom right, rgba(179, 34, 44, 0.65), rgba(11, 4, 6, 0.35));
}

.product-card .pc-art img {
    max-width: 82%;
    max-height: 66px;
    object-fit: contain;
}

.product-card .pc-title {
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
}

.product-card .pc-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-soft);
}

.product-card .pc-note {
    font-size: 10.5px;
    color: var(--hint-color);
    text-align: center;
}

.product-card .pc-old {
    font-size: 10.5px;
    color: rgba(199, 154, 142, 0.7);
    text-decoration: line-through;
}

.product-card.disabled,
.product-card[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* карточки без картинки (коды G-Coin): место под бейдж у всех,
   чтобы сетка была ровной */
.grid-2.no-art .product-card {
    padding-top: 28px;
}

.badge {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;

    padding: 2px 7px;
    border-radius: 999px;

    background-image: var(--gradient-gold);
    color: #2A1503;

    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge.soft {
    background-image: none;
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-soft);
}

/* карточка товара в детальном экране */
.detail-card {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 16px;
    margin-bottom: 14px;

    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    background-image: linear-gradient(160deg, rgba(179, 34, 44, 0.4) 0%, rgba(24, 9, 12, 0.92) 100%);
}

.detail-art {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 180px;
    max-height: 240px;
}

.detail-art img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.detail-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-soft);
}

.detail-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
}

/* карточка подписки / ПП */
.set-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    padding: 10px 8px 12px;

    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);

    background: linear-gradient(165deg, rgba(48, 16, 20, 0.85) 0%, rgba(20, 8, 11, 0.92) 100%);

    color: var(--text-color);
    font-weight: 400;
    box-shadow: var(--shadow-card);
    cursor: pointer;

    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.set-card:active {
    transform: scale(0.97);
}

.set-card .set-img {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 96px;
    margin-bottom: 4px;
}

.set-card .set-img img {
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
}

.set-card strong {
    font-size: 13px;
    text-align: center;
    line-height: 1.25;
}

.set-card .set-price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-soft);
}

.set-card .set-old {
    font-size: 10.5px;
    color: rgba(199, 154, 142, 0.7);
    text-decoration: line-through;
}

/* кнопка «i» на карточке */
.i-button {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    padding: 0;

    border-radius: 50%;
    border: 1px solid rgba(240, 161, 60, 0.4);

    background-image: none;
    background-color: rgba(240, 161, 60, 0.16);
    color: var(--gold-soft);

    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

/* ==========================================================================
   Главная
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    margin: calc(-1 * var(--page-padding)) calc(-1 * var(--page-padding)) 16px;
    padding: 22px var(--page-padding) 18px;

    border-radius: 0 0 26px 26px;
    border-bottom: 1px solid var(--surface-border);

    background-image: linear-gradient(160deg, rgba(179, 34, 44, 0.55) 0%, rgba(60, 10, 14, 0.6) 45%, rgba(11, 4, 6, 0.2) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: radial-gradient(90% 120% at 50% 0%, rgba(246, 215, 122, 0.16) 0%, transparent 60%);
}

.hero-logo {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    border-radius: 14px;

    background-image: var(--gradient-gold);
    color: #2A1503;

    font-size: 17px;
    font-weight: 800;
    box-shadow: var(--shadow-gold);
}

.hero-logo h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;

    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    position: relative;
    z-index: 1;
    max-width: 320px;

    font-size: 12.5px;
    line-height: 1.4;
    text-align: center;
    color: var(--text-soft);
}

.quick-row {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
    margin-top: 4px;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 42px;
    padding: 9px 6px;

    border: 1px solid var(--surface-border);
    border-radius: 14px;

    background-color: rgba(20, 8, 11, 0.72);
    background-image: none;
    color: var(--text-color);

    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.quick-btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.quick-btn:active {
    transform: scale(0.97);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.section-head h3 {
    font-size: 16px;
    font-weight: 700;
}

.section-head span {
    font-size: 11.5px;
    color: var(--hint-color);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tile {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    min-height: 156px;
    padding: 12px;

    border-radius: 22px;
    border: 1px solid var(--surface-border-strong);

    background-color: rgba(20, 8, 11, 0.85);
    background-image:
        radial-gradient(120% 90% at 50% 0%, rgba(179, 34, 44, 0.34) 0%, rgba(24, 9, 12, 0.9) 65%);

    color: var(--text-color);
    font-weight: 400;
    text-align: left;

    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
}

.tile:active {
    transform: scale(0.98);
}

.tile .tile-art {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 78px;
    margin-bottom: 8px;
}

.tile .tile-art img,
.tile .tile-art svg {
    width: 78px;
    height: 78px;
    max-height: 78px;
    max-width: 100%;

    object-fit: contain;
    object-position: center;
}

.tile .tile-title {
    position: relative;
    z-index: 1;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.22;
}

.tile .tile-hint {
    position: relative;
    z-index: 1;
    margin-top: 3px;

    font-size: 11px;
    line-height: 1.3;
    color: var(--hint-color);
}

/* широкая карточка на всю строку (новый раздел) */
.tile.tile-wide {
    grid-column: 1 / -1;

    flex-direction: row;
    align-items: center;
    gap: 12px;

    min-height: 84px;
    padding: 12px 14px;
}

.tile-wide .tile-art {
    width: 52px;
    height: 52px;
    margin: 0;
    flex: 0 0 52px;
}

.tile-wide .tile-art svg,
.tile-wide .tile-art img {
    width: 52px;
    height: 52px;
    max-height: 52px;

    object-fit: contain;
    object-position: center;
}

.tile-wide .tile-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.tile-wide .tile-title {
    -webkit-line-clamp: 1;
}

.tile-wide .tile-arrow {
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
    color: var(--hint-color);
}

@media (hover: hover) {
    .tile:hover {
        transform: translateY(-3px);
        border-color: rgba(240, 161, 60, 0.48);
    }

    .product-card:hover,
    .set-card:hover {
        transform: translateY(-3px);
        border-color: rgba(240, 161, 60, 0.45);
    }
}

.giveaway {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 96px;
    margin-top: 14px;

    border-radius: 18px;
    border: 1px solid var(--surface-border);

    background-image: url('/static/images/giveaway.webp');
    background-size: cover;
    background-position: center;

    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.giveaway::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 4, 6, 0.15) 0%, rgba(11, 4, 6, 0.5) 100%);
}

.giveaway span {
    position: relative;
    z-index: 1;

    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Заметки и подсказки
   ========================================================================== */

.promo-note,
.checkout-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;

    padding: 12px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(240, 161, 60, 0.26);
    background: rgba(240, 161, 60, 0.08);

    font-size: 12px;
    line-height: 1.45;
}

.promo-note .note-icon,
.checkout-note .note-icon {
    flex: 0 0 auto;
    line-height: 1.3;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 12px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;

    background: rgba(240, 161, 60, 0.12);
    border: 1px solid rgba(240, 161, 60, 0.32);
    color: var(--gold-soft);
}

/* ==========================================================================
   Способы оплаты
   ========================================================================== */

.payment-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;

    width: 100%;
    padding: 13px;

    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);

    background-image: none;
    background-color: rgba(28, 11, 14, 0.78);
    color: var(--text-color);

    font-weight: 400;
    text-align: left;
    box-shadow: none;

    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.payment-tile .pt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.payment-tile .pt-head span {
    font-size: 13.5px;
    font-weight: 600;
}

.payment-tile strong {
    font-size: 15px;
    color: var(--gold-soft);
    white-space: nowrap;
}

.payment-tile .pt-tag {
    font-size: 10.5px;
    line-height: 1.35;
    color: var(--hint-color);
}

.payment-tile.selected {
    border-color: var(--button-color);
    background-color: rgba(240, 161, 60, 0.12);
    box-shadow: 0 0 0 1px rgba(240, 161, 60, 0.35);
}

/* выбор платформы / варианта */
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-tile {
    width: auto;
    flex: 1 1 0;
    min-width: 96px;
    min-height: 42px;
    padding: 8px 14px;

    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);

    background-image: none;
    background-color: rgba(28, 11, 14, 0.78);
    color: var(--text-color);

    font-size: 13.5px;
    font-weight: 600;
    box-shadow: none;
}

.choice-tile.selected {
    border-color: var(--button-color);
    background-color: rgba(240, 161, 60, 0.14);
    color: var(--gold-soft);
}

.subsection-tabs {
    display: flex;
    gap: 8px;

    margin: 12px 0 14px;
    padding-bottom: 2px;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.subsection-tabs::-webkit-scrollbar {
    display: none;
}

.sub-tab {
    flex: 0 0 auto;

    width: auto;
    min-height: 38px;
    padding: 8px 14px;

    border: 1px solid var(--surface-border);
    border-radius: 999px;

    background-image: none;
    background-color: rgba(28, 11, 14, 0.7);
    color: var(--text-color);

    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}

.sub-tab.active {
    border-color: var(--button-color);
    background-color: rgba(240, 161, 60, 0.16);
    color: var(--gold-soft);
}

/* ==========================================================================
   Цифровые разделы (Free Fire, iTunes, PlayStation, Roblox) и Steam
   ========================================================================== */

.tile .tile-art.tile-emoji {
    font-size: 54px;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.digital-regions {
    margin-bottom: 12px;
}

.region-note {
    display: block;
    margin-bottom: 10px;
}

.digital-delivery {
    display: flex;
    gap: 10px;
    align-items: flex-start;

    margin-top: 14px;
    padding: 12px 14px;

    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background-color: rgba(28, 11, 14, 0.55);

    font-size: 12.5px;
    line-height: 1.5;
    color: var(--hint-color);
}

.digital-delivery .note-icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
}

.product-card.is-out {
    opacity: 0.55;
    filter: grayscale(0.5);
}

.product-card.is-out .pc-price {
    display: none;
}

.product-card .pc-out {
    font-size: 12px;
    font-weight: 700;
    color: var(--negative-color);
}

.product-card .pc-subtitle {
    font-size: 11.5px;
    color: var(--hint-color);
    line-height: 1.3;
}

.product-card .pc-old {
    text-decoration: line-through;
    opacity: 0.6;
}

.steam-breakdown {
    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 12px 14px;

    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background-color: rgba(28, 11, 14, 0.5);

    font-size: 13px;
    color: var(--hint-color);
}

.steam-breakdown b {
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
}

.steam-total-row {
    padding-top: 7px;
    border-top: 1px dashed var(--surface-border);

    font-size: 14.5px;
    color: var(--gold-soft);
}

.steam-total-row b {
    color: var(--gold-soft);
}

.subtitle.warn {
    color: var(--negative-color);
}

input.invalid {
    border-color: var(--negative-color) !important;
}

#steam-pay {
    margin-top: 14px;
}

/* состояние загрузки страницы */
.content-area.is-loading {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

/* ==========================================================================
   Шторка (bottom sheet) и модальные окна
   ========================================================================== */

body.sheet-open {
    overflow: hidden;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 120;

    display: none;
    align-items: flex-end;
    justify-content: center;
}

.sheet.open {
    display: flex;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(4, 2, 3, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    opacity: 0;
    transition: opacity 0.25s ease;
}

.sheet.open .sheet-backdrop {
    opacity: 1;
}

.sheet-panel {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 520px;
    max-height: 92vh;

    padding: 16px var(--page-padding);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));

    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-top: 1px solid var(--surface-border-strong);

    background-color: rgba(20, 8, 11, 0.98);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65);

    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet.open .sheet-panel {
    transform: translateY(0);
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-bottom: 12px;
}

.sheet-head h2 {
    font-size: 18px;
    font-weight: 700;
}

.sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    flex: 0 0 38px;

    border-radius: 12px;
    border: 1px solid var(--surface-border);

    background-image: none;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-color);

    font-size: 16px;
    box-shadow: none;
}

.sheet-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding-bottom: 4px;
}

.sheet-body::-webkit-scrollbar {
    width: 6px;
}

.sheet-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.16);
    border-radius: 3px;
}

.sheet-body::-webkit-scrollbar-track {
    background-color: transparent;
}

.sheet-foot {
    padding-top: 12px;
}

/* модальное окно по центру (авторизация) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 140;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 3, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-panel {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
    max-width: 360px;
    max-height: 90vh;
    overflow-y: auto;

    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));

    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border-strong);

    background-color: var(--second-background-color);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.modal-panel h3 {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.modal-panel .modal-text {
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    color: var(--text-soft);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;

    border-radius: 50%;
    border: 1px solid var(--surface-border);

    background-image: none;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-color);

    font-size: 15px;
    box-shadow: none;
}

/* OTP */
.otp-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.otp-input {
    width: 100%;
    height: 58px;
    min-height: 58px;
    padding: 0;

    text-align: center;
    font-size: 26px;
    font-weight: 700;

    background-color: rgba(255, 255, 255, 0.92);
    color: #15070A;
    border-color: transparent;
}

.otp-input:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(240, 161, 60, 0.22);
}

.link-button {
    width: auto;
    min-height: 0;
    padding: 0;

    border: none;
    background: none;
    background-image: none;
    box-shadow: none;

    color: var(--gold-soft);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;

    cursor: pointer;
}

/* ==========================================================================
   Тосты
   ========================================================================== */

.toast-layer {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;

    display: flex;
    flex-direction: column;
    gap: 8px;

    width: calc(100% - 32px);
    max-width: 420px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid var(--surface-border-strong);

    background-color: rgba(24, 10, 13, 0.97);
    color: var(--text-color);

    font-size: 13px;
    line-height: 1.4;

    box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
    animation: toastIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.toast.success {
    border-color: rgba(63, 221, 120, 0.45);
}

.toast.error {
    border-color: rgba(255, 90, 90, 0.5);
}

.toast.leaving {
    animation: toastOut 0.2s ease both;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-8px); }
}

/* ==========================================================================
   Итоговый чек
   ========================================================================== */

.receipt {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(240, 161, 60, 0.3);
    background: rgba(28, 11, 14, 0.85);
}

.receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.receipt-row .subtitle {
    flex: 1 1 auto;
}

.receipt-row strong {
    white-space: nowrap;
}

/* цена рядом с подсказкой не должна переноситься */
#steam-price,
#custom-price {
    white-space: nowrap;
    flex: 0 0 auto;
}

.receipt-total {
    font-size: 17px;
    color: var(--gold-soft);
}

.step-title {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14.5px;
    font-weight: 700;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    flex: 0 0 22px;

    border-radius: 8px;
    background-image: var(--gradient-gold);
    color: #2A1503;

    font-size: 12px;
    font-weight: 700;
}

/* продукт в шторке */
.sheet-product {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    background-color: rgba(12, 5, 7, 0.72);
}

.sheet-product img {
    width: 48px;
    max-height: 48px;
    object-fit: contain;
    flex: 0 0 48px;
}

.sheet-product .sp-name {
    font-size: 15px;
    font-weight: 700;
}

/* ==========================================================================
   Степпер количества
   ========================================================================== */

.amount-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-stepper input {
    flex: 1 1 auto;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 4px;

    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.amount-stepper button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    flex: 0 0 44px;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* ==========================================================================
   Заказы / история
   ========================================================================== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);

    background-image: linear-gradient(150deg, rgba(179, 34, 44, 0.5) 0%, rgba(60, 10, 14, 0.75) 100%);
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
}

.stat-card .stat-label {
    font-size: 11.5px;
    color: var(--text-soft);
}

.order-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    background-color: rgba(24, 10, 13, 0.82);
    overflow: hidden;
}

.order-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 13px 14px;
    cursor: pointer;
    list-style: none;
}

.order-card summary::-webkit-details-marker {
    display: none;
}

.order-card .oc-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.order-card .oc-name {
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card .oc-date {
    font-size: 11px;
    color: var(--hint-color);
}

.order-card .oc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 0 14px 14px;
}

.order-card .oc-arrow {
    flex: 0 0 auto;
    color: var(--hint-color);
    transition: transform 0.2s ease;
}

.order-card[open] .oc-arrow {
    transform: rotate(180deg);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;

    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.status-chip.wait {
    background-color: rgba(240, 161, 60, 0.16);
    color: var(--gold-soft);
}

.status-chip.ok {
    background-color: rgba(63, 221, 120, 0.16);
    color: var(--positive-color);
}

.status-chip.fail {
    background-color: rgba(255, 90, 90, 0.16);
    color: var(--negative-color);
}

/* ==========================================================================
   Состояния
   ========================================================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    padding: 34px 20px;
    text-align: center;
}

.empty-state .es-icon {
    font-size: 34px;
    line-height: 1;
}

.empty-state .es-title {
    font-size: 15px;
    font-weight: 700;
}

.skeleton {
    border-radius: var(--radius-md);
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.04) 60%);
    background-size: 300% 100%;
    animation: shimmer 1.4s linear infinite;
}

.skeleton-card {
    height: 132px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 15.5px;
    font-weight: 700;
}

/* ==========================================================================
   Табы
   ========================================================================== */

.tabs-bar {
    display: flex;
    gap: 6px;

    padding: 6px;
    border-radius: 16px;

    background: rgba(20, 8, 11, 0.7);
    border: 1px solid var(--surface-border);
}

.tab {
    flex: 1 1 0;

    padding: 9px 8px;
    border: none;
    border-radius: 12px;

    background-image: none;
    background-color: transparent;
    color: var(--hint-color);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;

    cursor: pointer;
    box-shadow: none;
}

.tab.active {
    color: #2A1503;
    background-image: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
}

.tab-frame {
    display: none;
}

.tab-frame.active {
    display: block;
    animation: fadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ==========================================================================
   Анимации
   ========================================================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.92); }
    60% { transform: scale(1.015); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: 160% 0; }
    100% { background-position: -60% 0; }
}

.pop-in {
    animation: popIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 380px) {
    :root {
        --page-padding: 14px;
    }
    .hero-logo h1 { font-size: 24px; }
    .quick-btn { font-size: 11.5px; }
    .tile { min-height: 146px; padding: 10px; }
    .tile .tile-title { font-size: 13.5px; }
    .grid-3 { gap: 8px; }
}

@media (max-width: 330px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* сайт: снизу висит виджет поддержки jivo — оставляем место */
body[data-site='1'] {
    padding-bottom: calc(var(--page-padding) + 76px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   Карточка статуса заказа (HTML-виджет Telegram + приложение)
   ========================================================================== */

.os-dock,
.os-card,
.os-mini {
    --os-accent: #F14247;
    --os-soft: #7D2A26;
    --os-title: #F7F6F2;
    --os-border: rgba(255, 255, 255, 0.05);
    --os-glow: rgba(241, 66, 71, 0.28);
    --os-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.os-card[data-st="accepted"],
.os-mini[data-st="accepted"] {
    --os-accent: #F14247;
    --os-soft: #7D2A26;
    --os-glow: rgba(241, 66, 71, 0.28);
}

.os-card[data-st="credited"],
.os-mini[data-st="credited"] {
    --os-accent: #F14247;
    --os-soft: #F14247;
    --os-glow: rgba(241, 66, 71, 0.28);
}

.os-card[data-st="delay"],
.os-mini[data-st="delay"] {
    --os-accent: #F87117;
    --os-soft: #E96B14;
    --os-glow: rgba(248, 113, 23, 0.28);
}

.os-card[data-st="done"],
.os-mini[data-st="done"] {
    --os-accent: #24C65F;
    --os-soft: #24C65F;
    --os-glow: rgba(36, 198, 95, 0.26);
}

.os-card[data-st="declined"],
.os-mini[data-st="declined"] {
    --os-accent: #EE4444;
    --os-soft: #EE4444;
    --os-glow: rgba(238, 68, 68, 0.2);
}

.os-card[data-st="inwork"],
.os-mini[data-st="inwork"] {
    --os-accent: #9B2F2D;
    --os-soft: #9B2F2D;
    --os-glow: rgba(155, 47, 45, 0.22);
    --os-border: rgba(255, 255, 255, 0.09);
}

.os-card[data-st="delay"] .os-title,
.os-card[data-st="done"] .os-title,
.os-mini[data-st="delay"] .os-mini-title,
.os-mini[data-st="done"] .os-mini-title {
    color: var(--os-accent);
}

.os-card[data-st="declined"] .os-title,
.os-mini[data-st="declined"] .os-mini-title {
    color: #6F6F6F;
}

/* --------------------------------------------------------------------------
   полная карточка
   -------------------------------------------------------------------------- */

.os-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;

    padding: clamp(20px, 7.9vw, 42px) clamp(18px, 8.2vw, 44px) clamp(20px, 7.2vw, 40px);

    background: #0F0F0F;
    border: 1px solid var(--os-border);
    border-radius: 3px;
    color: #F7F6F2;

    box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.9);

    transition: background 0.55s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-card[data-st="inwork"] {
    padding-top: clamp(30px, 9vw, 54px);
}

.os-eyebrow {
    display: block;
    margin: 0 0 clamp(6px, 2vw, 10px);

    font-family: var(--os-mono);
    font-size: clamp(7px, 2.05vw, 11px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--os-accent);

    transition: color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-card[data-st="inwork"] .os-eyebrow {
    color: #6B6B6B;
}

.os-card[data-st="declined"] .os-eyebrow {
    color: #4A4A4A;
}

.os-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 14px);
}

.os-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.os-title {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0;

    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(19px, 9vw, 48px);
    line-height: 0.94;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: var(--os-title);

    transition: color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-card[data-st="inwork"] .os-title {
    font-size: clamp(19px, 9.6vw, 58px);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.os-title::after {
    content: '';
    position: absolute;
    left: -2%;
    top: 53%;
    width: 104%;
    height: 3px;

    background: #EE4444;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
    pointer-events: none;
}

.os-card[data-st="declined"] .os-title::after {
    transform: scaleX(1);
}

.os-right {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: clamp(28px, 8vw, 42px);
    min-height: clamp(28px, 8vw, 42px);
}

.os-mark {
    position: relative;
    width: clamp(28px, 8vw, 42px);
    height: clamp(28px, 8vw, 42px);
    color: var(--os-soft);
    transition: color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.35s ease, transform 0.35s ease;
}

.os-mark svg,
.os-mini-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.os-ico {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.55);
    transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

.os-card[data-st="accepted"] .os-ico[data-os-ico="accepted"],
.os-card[data-st="delay"] .os-ico[data-os-ico="delay"],
.os-card[data-st="credited"] .os-ico[data-os-ico="credited"],
.os-card[data-st="done"] .os-ico[data-os-ico="done"],
.os-card[data-st="declined"] .os-ico[data-os-ico="declined"] {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.os-card[data-st="inwork"] .os-mark {
    opacity: 0;
    transform: scale(0.7);
    visibility: hidden;
}

.os-price {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    text-align: right;
    transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

.os-price b {
    display: block;
    font-size: clamp(14px, 5.4vw, 30px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.045em;
    color: #F7F6F2;
}

.os-price span {
    display: block;
    margin-top: 4px;
    font-family: var(--os-mono);
    font-size: clamp(7px, 1.8vw, 10px);
    letter-spacing: 0.22em;
    color: #5A5A5A;
}

.os-card[data-st="inwork"] .os-price {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
}

.os-track {
    position: relative;
    height: 1.5px;
    margin: clamp(24px, 6.6vw, 38px) 0 clamp(22px, 6.4vw, 34px);
    background: #191919;
}

.os-track i {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    height: 100%;
    width: 15%;

    background: var(--os-accent);
    box-shadow: 0 0 9px var(--os-glow);

    transition: background 0.55s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(14px, 4vw, 28px);
}

.os-col {
    min-width: 0;
    flex: 0 1 auto;
    max-width: 62%;
}

.os-col-right {
    max-width: 48%;
    text-align: right;
}

.os-lbl {
    display: block;
    margin: 0 0 clamp(5px, 1.4vw, 8px);

    font-family: var(--os-mono);
    font-size: clamp(7px, 1.9vw, 10px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #333;

    transition: color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-val {
    display: block;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(13px, 3.9vw, 21px);
    line-height: 1.25;
    font-weight: 500;
    color: #F7F6F2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-sub {
    display: block;
    margin-top: clamp(4px, 1.1vw, 7px);

    font-family: var(--os-mono);
    font-size: clamp(8px, 2.2vw, 12px);
    line-height: 1.35;
    letter-spacing: 0.05em;
    color: #4A4A4A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-sub-accent {
    color: var(--os-accent);
    font-weight: 500;
}

.os-card[data-st="inwork"] .os-sub-accent {
    color: #B33735;
}

.os-card[data-st="declined"] .os-val {
    color: #5E5E5E;
}

.os-card[data-st="declined"] .os-sub {
    color: #3E3E3E;
}

.os-card[data-st="declined"] .os-sub-accent {
    color: #8A3A3A;
}

.os-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(7px, 2vw, 10px);
    margin-top: clamp(28px, 9.8vw, 54px);
}

.os-dots i {
    display: block;
    width: clamp(3px, 1vw, 4px);
    height: clamp(3px, 1vw, 4px);
    border-radius: 50%;
    background: #242424;
    transition: background 0.55s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-dots i.on {
    background: var(--os-accent);
    transform: scale(1.15);
    box-shadow: 0 0 7px var(--os-glow);
}

/* --------------------------------------------------------------------------
   миниатюра снизу
   -------------------------------------------------------------------------- */

.os-dock {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 95;

    width: min(480px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.os-dock[hidden] {
    display: none !important;
}

body.has-order-dock {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.os-mini {
    pointer-events: auto;
    position: relative;
    display: block;
    overflow: hidden;

    width: 100%;
    min-height: 0;
    padding: 13px 16px 16px;

    border: 1px solid var(--os-border);
    border-radius: 14px;

    background: #0F0F0F;
    background-image: none;
    color: var(--os-title);

    text-align: left;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75);
}

.os-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.os-mini-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.os-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.os-mini-eye {
    font-family: var(--os-mono);
    font-size: 8px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--os-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-mini-ref {
    font-family: var(--os-mono);
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #5A5A5A;
    white-space: nowrap;
}

.os-mini-title {
    display: block;
    margin-top: 2px;

    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 21px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--os-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-mini[data-st="declined"] .os-mini-title {
    text-decoration: line-through;
    text-decoration-color: #EE4444;
    text-decoration-thickness: 2px;
}

.os-mini-sub {
    display: block;
    margin-top: 2px;

    font-family: var(--os-mono);
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4A4A4A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--os-soft);
    transition: color 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.os-mini[data-st="inwork"] .os-mini-icon {
    flex: 0 0 auto;
    width: auto;
    height: auto;
}

.os-mini-price {
    display: block;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.045em;
    color: #F7F6F2;
    text-align: right;
    white-space: nowrap;
}

.os-mini-price span {
    display: block;
    margin-top: 4px;
    font-family: var(--os-mono);
    font-size: 7px;
    letter-spacing: 0.22em;
    color: #5A5A5A;
}

.os-mini-track {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 7px;

    display: block;
    height: 2px;
    background: #191919;
}

.os-mini-track i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--os-accent);
    box-shadow: 0 0 8px var(--os-glow);
    transition: background 0.55s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body.sheet-open .os-dock {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.sheet-open .os-mini {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   раскрытая карточка
   -------------------------------------------------------------------------- */

.os-sheet {
    z-index: 130;

    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.os-sheet.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.os-sheet .sheet-backdrop {
    background: rgba(4, 2, 3, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.os-sheet .sheet-panel {
    max-width: 552px;
    max-height: 100vh;
    overflow-y: auto;

    padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));

    background: transparent;
    border-top: none;
    box-shadow: none;

    transform: none !important;
    transition: none !important;
}

.os-sheet .os-card {
    max-width: 520px;
}

.os-close {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 14px;
    z-index: 132;

    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;

    border: 1px solid var(--surface-border-strong);
    border-radius: 50%;
    background: rgba(20, 8, 11, 0.9);
    background-image: none;
    color: var(--text-color);
    box-shadow: none;
    font-size: 16px;
}

/* когда работает GSAP, color/width/background ведёт он — CSS-транзишены
   оставляем только там, где GSAP не вмешивается (иконки, цена, точки) */
.os-gsap .os-card,
.os-gsap .os-mini {
    transition: none !important;
}

.os-gsap .os-eyebrow,
.os-gsap .os-title,
.os-gsap .os-track i,
.os-gsap .os-val,
.os-gsap .os-sub,
.os-gsap .os-mini-icon,
.os-gsap .os-mini-track i,
.os-gsap .os-mini-title {
    transition: none !important;
}

.os-gsap .os-mark {
    transition: opacity 0.35s ease !important;
}

.os-gsap .os-dots i {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@media (max-width: 380px) {
    .os-mini-title {
        font-size: 19px;
    }

    .os-mini-sub {
        font-size: 8.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .os-title,
    .os-mark,
    .os-ico,
    .os-price,
    .os-dots i,
    .os-mini-icon,
    .os-mini-track i,
    .os-dock {
        transition: none !important;
    }

    .os-title::after {
        transition: none !important;
    }
}

/* ==========================================================================
   Проверка доступных наборов по PUBG ID
   ========================================================================== */

.pubg-check {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-bottom: 14px;
    padding: 14px;

    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    background: linear-gradient(165deg, rgba(48, 16, 20, 0.85) 0%, rgba(20, 8, 11, 0.92) 100%);
}

.pubg-check-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    font-size: 14px;
    font-weight: 600;
}

.i-button--small {
    position: static;
    top: auto;
    right: auto;

    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    flex: 0 0 26px;

    align-self: center;

    font-size: 12px;
}

.check-result {
    margin-bottom: 14px;
}

.check-note {
    margin-bottom: 8px;
}

.check-reset {
    margin-top: 2px;
}

.detail-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    margin-top: 12px;
    padding: 18px 14px;

    text-align: center;

    border-radius: var(--radius-md);
    border: 1px solid rgba(240, 161, 60, 0.35);
    background: rgba(240, 161, 60, 0.08);
}

.detail-locked strong {
    font-size: 15px;
}

.detail-locked-icon {
    font-size: 26px;
    line-height: 1;
}

.detail-locked .btn-ghost {
    margin-top: 4px;
}

/* переносы строк в модалке «как это работает» */
.modal-panel .modal-text {
    white-space: pre-line;
}

/* ==========================================================================
   PWA: кнопка «Назад» в установленном приложении
   ========================================================================== */

.pwa-back {
    position: sticky;
    top: calc(8px + env(safe-area-inset-top, 0px));
    z-index: 60;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    align-self: flex-start;

    width: auto;
    min-height: 0;
    margin: 0 auto 12px 0;
    padding: 8px 14px 8px 9px;

    border-radius: 999px;
    border: 1px solid rgba(246, 215, 122, 0.28);

    background: rgba(24, 10, 13, 0.82);
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 60%);
    color: var(--gold-soft);

    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1px;

    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    cursor: pointer;
    animation: pwaBackIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pwa-back[hidden] {
    display: none;
}

.pwa-back svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.pwa-back:active {
    transform: scale(0.96);
    border-color: rgba(246, 215, 122, 0.48);
}

@keyframes pwaBackIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 359px) {
    .pwa-back {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .pwa-back span {
        display: none;
    }
}

/* ==========================================================================
   PWA: нижний попап запроса push-уведомлений
   ========================================================================== */

.push-prompt {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;

    display: flex;
    justify-content: center;

    /* поднимаем над виджетом поддержки Jivo */
    padding: 12px 14px calc(68px + env(safe-area-inset-bottom, 0px));

    pointer-events: none;
}

.push-prompt-card {
    position: relative;
    pointer-events: auto;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px 12px;
    align-items: center;

    width: 100%;
    max-width: 520px;
    padding: 14px;

    border-radius: 22px;
    border: 1px solid rgba(246, 215, 122, 0.24);

    background:
        radial-gradient(90% 130% at 0% 0%, rgba(179, 34, 44, 0.32) 0%, transparent 58%),
        rgba(24, 10, 13, 0.97);

    box-shadow: 0 26px 64px -22px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.push-prompt.visible .push-prompt-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.push-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    border-radius: 14px;

    background-image: var(--gradient-gold);
    color: #2A1503;
    box-shadow: var(--shadow-gold);
}

.push-prompt-icon svg {
    width: 22px;
    height: 22px;
}

.push-prompt-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-right: 18px;
    text-align: left;
}

.push-prompt-body strong {
    font-size: 13px;
    line-height: 1.3;
}

.push-prompt-body span {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text-soft);
}

.push-prompt-actions {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    gap: 8px;
}

.push-prompt-actions .btn {
    flex: 1 1 auto;
}

.push-prompt-later {
    flex: 0 0 auto;

    min-height: 0;
    padding: 8px 6px;

    border: none;
    background: none;
    background-image: none;
    box-shadow: none;

    color: var(--hint-color);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.push-prompt-close {
    position: absolute;
    top: 8px;
    right: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
    background-image: none;
    color: var(--text-soft);

    font-family: inherit;
    font-size: 12px;
    box-shadow: none;

    cursor: pointer;
}

.push-prompt-close:active {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.12);
}

