/* === PROMO BANNER — В СТИЛЕ САЙТА === */

.promo-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    padding: 18px 28px;
    margin-bottom: 32px;

    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* общие секции */

.promo-section-left,
.promo-section-center,
.promo-section-right {
    display: flex;
    align-items: center;
}

/* LEFT: +XX% */

.promo-section-left {
    flex-direction: column;
    justify-content: center;
    min-width: 180px;
}

.bonus-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.bonus-label {
    margin-top: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

/* CENTER: промокод */

.promo-section-center {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding: 10px 16px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;

    transition: background 0.12s ease, transform 0.12s ease;
}

.promo-section-center:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.promo-code-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.promo-code {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}

.promo-apply {
    margin-top: 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

/* RIGHT: таймер */

.promo-section-right {
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
}

.timer-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.timer-value {
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 10px;

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;

    border: 1px solid var(--border-soft);
}

/* === MOBILE === */

@media (max-width: 900px) {
    .promo-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 18px;
    }

    .promo-section-left,
    .promo-section-right {
        flex-direction: row;
        justify-content: space-between;
        min-width: 0;
    }

    .promo-section-center {
        order: -1;
    }

    .bonus-value {
        font-size: 26px;
    }

    .promo-code {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    .timer-value {
        font-size: 14px;
    }
}

/* === END PROMO BANNER === */

/* ======= GRID ======= */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* ======= CARD ======= */
.case-card-new {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: var(--bg-card);
    border-radius: 0;
    padding: 14px 14px 12px;

    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);

    box-sizing: border-box;
    transition: 0.16s ease;
}

.case-card-new:hover {
    transform: translateY(-2px);
}

/* ======= BORDER ANIMATION ======= */
.case-card-new .border-anim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.case-card-new::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    width: 0%;
    height: 2px;

    background: var(--accent);
    transform-origin: right;

    transition: width 0.25s ease;
}

.case-card-new::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 0%;
    height: 2px;

    background: var(--accent);
    transform-origin: left;

    transition: width 0.25s ease;
}

.case-card-new .border-anim::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;

    width: 2px;
    height: 0%;

    background: var(--accent);
    transform-origin: top;

    transition: height 0.25s ease 0.25s;
}

.case-card-new .border-anim::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;

    width: 2px;
    height: 0%;

    background: var(--accent);
    transform-origin: bottom;

    transition: height 0.25s ease 0.25s;
}

/* — АКТИВАЦИЯ АНИМАЦИИ — */
.case-card-new:hover::before,
.case-card-new:hover::after {
    width: 100%;
}

.case-card-new:hover .border-anim::before,
.case-card-new:hover .border-anim::after {
    height: 100%;
}

/* ======= CARD CONTENT ======= */
.case-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.case-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.case-count {
    font-size: 13px;
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

/* CASE IMAGE */
.case-img {
    width: 100%;
    height: 200px;
    margin: 10px 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: visible !important;
    z-index: 1;
}

.case-img .case-bg {
    position: absolute;
    inset: 0;
    margin: auto;

    width: 70%;
    height: 100%;
    object-fit: contain;

    transform: scale(2);
    transform-origin: center;

    z-index: 1;
}

.case-img .case-weapon {
    position: absolute;
    inset: 0;
    margin: auto;

    width: 75%;
    height: 100%;
    object-fit: contain;

    z-index: 9999 !important;
    pointer-events: none;

    filter: drop-shadow(0 0 2px rgba(255,255,255,0.85));

    transform: translateY(-10%);
}

/* BOTTOM INFO */
.case-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-price {
    font-size: 16px;
    font-weight: 700;
}

.case-open-btn {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* =============== MOBILE / PHONE ADAPTATION =============== */
@media (max-width: 600px) {

    .promo-banner {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        gap: 10px;
    }

    /* ==== ПРАВИЛЬНЫЙ ПОРЯДОК ==== */
    .promo-section-left {
        order: 1; /* слева */
        min-width: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-section-center {
        order: 2; /* центр */
        flex: 1;
        padding: 6px 8px;
    }

    .promo-section-right {
        order: 3; /* справа */
        min-width: auto;
        flex-direction: column;
        align-items: flex-end;
    }

    /* ==== УМЕНЬШЕННЫЕ РАЗМЕРЫ ==== */

    .bonus-value {
        font-size: 18px;
    }

    .bonus-label {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .promo-code-title {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .promo-code {
        font-size: 13px;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }

    .promo-apply {
        font-size: 8px;
    }

    .timer-label {
        font-size: 9px;
    }

    .timer-value {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* ===== GRID ===== */
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    /* ===== CARD ===== */
    .case-card-new {
        padding: 12px 12px 10px;
    }

    .case-name {
        font-size: 15px;
    }

    .case-count {
        font-size: 12px;
    }

    /* ===== CARD IMAGE ===== */
    .case-img {
        height: 150px;
        margin: 6px 0 8px;
    }

    .case-img .case-bg {
        width: 80%;
        transform: scale(1.6);
    }

    .case-img .case-weapon {
        width: 85%;
        transform: translateY(-6%);
    }

    /* ===== BOTTOM INFO ===== */
    .case-price {
        font-size: 15px;
    }

    .case-open-btn {
        padding: 5px 8px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }
}

.case-section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    margin: 50px 0 25px;
    position: relative;
}

.case-section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #007bff);
    margin: 10px auto 0;
    border-radius: 3px;
}
