body.merch-body {
    margin: 0;
    background: #020202;
    color: #ffffff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

body.merch-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(130, 96, 45, 0.16), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(130, 96, 45, 0.10), transparent 24%),
        linear-gradient(to bottom, #050505, #000000);
    pointer-events: none;
    z-index: -2;
}

body.merch-body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(178, 127, 54, 0.36) 1px, transparent 2px);
    background-size: 120px 120px;
    opacity: 0.26;
    pointer-events: none;
    z-index: -1;
}

.merch-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 90px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.back-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

.merch-page h1 {
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.95;
    margin: 0 0 18px;
    letter-spacing: 0.04em;
    text-shadow:
        0 0 30px rgba(255,255,255,0.16),
        0 0 70px rgba(255,255,255,0.08);
}

.merch-text {
    max-width: 720px;
    color: rgba(255,255,255,0.72);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.merch-page h2 {
    margin-top: 62px;
    margin-bottom: 22px;
    font-size: 28px;
    letter-spacing: 0.02em;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.merch-card {
    min-height: 310px;
    border: 1px solid rgba(255,255,255,0.16);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
        rgba(10,10,10,0.72);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease,
        box-shadow 0.28s ease;
}

.merch-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.32);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
        rgba(14,14,14,0.84);
    box-shadow: 0 22px 55px rgba(0,0,0,0.45);
}

.merch-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    margin-bottom: 18px;
    opacity: 0.92;
    filter: saturate(0.9) contrast(1.08);
}

.merch-card-content h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.25;
}

.merch-card-content p {
    margin: 0 0 17px;
    color: rgba(255,255,255,0.62);
    font-size: 14px;
    line-height: 1.45;
}

.merch-card button,
.btn-disabled {
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.38);
    background: transparent;
    color: #ffffff;
    padding: 9px 15px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: default;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.merch-card:hover button,
.merch-card:hover .btn-disabled {
    border-color: rgba(255,255,255,0.58);
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
}

.merch-contact {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 32px;
}

.merch-contact a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 15px 24px;
    font-size: 13px;
    letter-spacing: 1px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.merch-contact a:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
}

@media (max-width: 900px) {
    .merch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .merch-page {
        padding: 34px 14px 70px;
    }

    .merch-grid {
        grid-template-columns: 1fr;
    }

    .merch-card {
        min-height: 280px;
    }

    .merch-card img {
        height: 175px;
    }
}
/* СТАТУСЫ */

/* В разработке */
.btn-dev {
    border-color: rgba(255, 180, 80, 0.7);
    color: #ffcc80;
}

/* Скоро */
.btn-soon {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

/* Позже */
.btn-later {
    border-color: rgba(120,120,120,0.6);
    color: rgba(200,200,200,0.6);
}
/* STATUS BUTTON FINAL */

.merch-card .btn-dev {
    border-color: rgba(190, 135, 55, 0.55);
    color: rgba(210, 170, 100, 0.85);
    background: rgba(190, 135, 55, 0.04);
}
.merch-card .btn-soon {
    border-color: rgba(255,255,255,0.55);
    color: #ffffff;
    background: rgba(255,255,255,0.035);
}

.merch-card .btn-later {
    border-color: rgba(120,120,120,0.6);
    color: rgba(180,180,180,0.72);
    background: rgba(120,120,120,0.045);
}

.merch-card button {
    font-weight: 700;
    letter-spacing: 1.4px;
}
/* LINKS AS BUTTONS */

.merch-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.merch-btn {
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.38);
    background: transparent;
    color: #ffffff;
    padding: 9px 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.merch-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
}

.merch-card .btn-view {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

.merch-card .btn-dev {
    border-color: rgba(190, 135, 55, 0.55);
    color: rgba(210, 170, 100, 0.85);
    background: rgba(190, 135, 55, 0.04);
}

.merch-card .btn-soon {
    border-color: rgba(255,255,255,0.55);
    color: #ffffff;
    background: rgba(255,255,255,0.035);
}

.merch-card .btn-later {
    border-color: rgba(120,120,120,0.6);
    color: rgba(180,180,180,0.72);
    background: rgba(120,120,120,0.045);
}
/* CARD BUTTON ALIGN FIX */

.merch-card-actions {
    flex-direction: column;
    align-items: flex-start;
}

.merch-btn {
    min-width: 106px;
    text-align: center;
}
/* CARD BUTTON ALIGN FIX 2 */

.merch-card-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.merch-btn {
    min-width: auto;
    white-space: nowrap;
    text-align: center;
}
/* TABS LOGIC */

.merch-section {
    display: none;
}

.merch-section.active {
    display: block;
}
/* TABS STYLE */

.merch-tabs {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 40px;
}

.merch-tab {
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: rgba(255,255,255,0.7);
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.merch-tab:hover {
    border-color: rgba(255,255,255,0.6);
    color: #ffffff;
}

.merch-tab.active {
    border-color: rgba(190, 135, 55, 0.7);
    color: #d6a85a;
    background: rgba(190, 135, 55, 0.06);
}
/* TABS SIZE BOOST */

.merch-tabs {
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 52px;
}

.merch-tab {
    min-width: 185px;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
/* TABS LIKE HERO BUTTONS */

.merch-tab {
    position: relative;
    overflow: hidden;
    background: transparent;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.merch-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.merch-tab:hover::before {
    opacity: 1;
}

.merch-tab:hover {
    transform: translateY(-2px);
}

.merch-tab.active {
    transform: translateY(-1px);
}
/* TABS LIVE SHIMMER */

.merch-tab::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.16),
        transparent
    );
    transform: skewX(-18deg);
    transition: left 0.75s ease;
    pointer-events: none;
}

.merch-tab:hover::after {
    left: 140%;
}
/* CONTACT BLOCK */

.merch-contact-block {
    margin-top: 80px;
}

.merch-contact-block h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.merch-contact-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

.merch-contact-box {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 30px;
    background: rgba(10,10,10,0.6);
}

.merch-contact-box p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.merch-contact-btn {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 20px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

.merch-contact-btn:hover {
    border-color: rgba(190,135,55,0.7);
    color: #d6a85a;
}
/* MOBILE TABS FIX */

@media (max-width: 700px) {
    .merch-tabs {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
        margin-bottom: 34px;
        width: 100%;
    }

    .merch-tab {
        width: 100%;
        min-width: 0;
        padding: 14px 12px;
        font-size: 12px;
        letter-spacing: 1px;
        text-align: center;
    }
}
/* MODAL */

.merch-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999;
}

.merch-modal.active {
    display: block;
}

.merch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
}

.merch-modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 20px;
}

.merch-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.merch-modal img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.merch-modal-content h3 {
    margin: 0 0 10px;
}

.merch-modal-content p {
    color: rgba(255,255,255,0.7);
}
/* ==== PATCHES GRID 4 IN ROW ==== */

.merch-section[data-content="patches"] .merch-grid {
    grid-template-columns: repeat(4, 1fr);
}

.merch-section[data-content="patches"] .merch-card {
    min-height: 520px;
    padding: 18px;
}

.merch-section[data-content="patches"] .merch-card img {
    height: 260px;
    object-fit: cover;
}

.merch-section[data-content="patches"] .merch-card-content {
    text-align: center;
}

.merch-section[data-content="patches"] .buttons {
    justify-content: center;
}
/* PATCHES FINAL FIXED STYLE */

.merch-section[data-content="patches"] .merch-card {
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    min-height: auto;
}

.merch-section[data-content="patches"] .merch-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;      /* 🔥 делаем квадрат */
    height: auto;
    object-fit: cover;      /* 🔥 без искажений */
    margin: 0;
    border-radius: 0;
}

.merch-section[data-content="patches"] .merch-card-content {
    padding: 12px 14px 14px;
}

.merch-section[data-content="patches"] .merch-card-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.merch-section[data-content="patches"] .merch-card-content p {
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.merch-section[data-content="patches"] .price {
    font-size: 18px;
    margin-bottom: 10px;
    color: #d6a85f;
}

.merch-section[data-content="patches"] .buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}
/* PATCHES MOBILE FIX */

@media (max-width: 700px) {
    .merch-section[data-content="patches"] .merch-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .merch-section[data-content="patches"] .merch-card {
        width: 100%;
        max-width: 100%;
    }

    .merch-section[data-content="patches"] .merch-card img {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: cover;
    }

    .merch-section[data-content="patches"] .merch-card-content h3 {
        font-size: 22px;
    }

    .merch-section[data-content="patches"] .merch-card-content p {
        font-size: 15px;
    }

    .merch-section[data-content="patches"] .price {
        font-size: 24px;
    }

    .merch-section[data-content="patches"] .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .merch-section[data-content="patches"] .buttons .btn,
    .merch-section[data-content="patches"] .buttons .gold {
        width: 100%;
    }
}
/* MODAL SPECS STYLE */

.merch-modal-specs {
    margin-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 14px;
}

.spec-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.spec-row span {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

.spec-row b {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

/* ==== MIGAERIS PREMIUM PRODUCT MODAL — DESKTOP ==== */

@media (min-width: 901px) {

    .merch-modal-window {
        width: min(92vw, 1040px);
        max-width: 1040px;
        min-height: 520px;
        padding: 34px;
        background:
            linear-gradient(135deg, rgba(255,255,255,0.035), transparent 38%),
            #070707;
        border: 1px solid rgba(214,168,95,0.28);
        box-shadow: 0 32px 90px rgba(0,0,0,0.75);
        display: grid;
        grid-template-columns: 48% 1fr;
        gap: 34px;
        align-items: stretch;
    }

    .merch-modal-close {
        top: 18px;
        right: 20px;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(255,255,255,0.14);
        color: rgba(255,255,255,0.75);
        font-size: 24px;
        line-height: 30px;
        transition: 0.2s ease;
    }

    .merch-modal-close:hover {
        color: #d6a85f;
        border-color: rgba(214,168,95,0.45);
    }

    .merch-modal img {
        width: 100%;
        height: 100%;
        max-height: 520px;
        object-fit: cover;
        margin: 0;
        border: 1px solid rgba(255,255,255,0.10);
        background: #050505;
    }

    .merch-modal-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 22px 18px 22px 0;
    }

    .merch-modal-content h3 {
        margin: 0 0 10px;
        font-size: 34px;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #f2f2f2;
    }

    .merch-modal-content p {
        margin: 0;
        max-width: 360px;
        color: rgba(255,255,255,0.68);
        font-size: 15px;
        line-height: 1.65;
    }

    .merch-modal-specs {
        margin-top: 28px;
        padding-top: 20px;
        border-top: 1px solid rgba(214,168,95,0.22);
    }

    .spec-row {
        grid-template-columns: 130px 1fr;
        gap: 18px;
        padding: 11px 0;
        border-bottom: 1px solid rgba(255,255,255,0.075);
    }

    .spec-row span {
        color: rgba(255,255,255,0.42);
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .spec-row strong {
        color: rgba(255,255,255,0.88);
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.03em;
    }
}


/* ==== MIGAERIS PREMIUM MODAL — DESKTOP PROPORTION FIX ==== */

@media (min-width: 901px) {

    .merch-modal-window {
        width: min(88vw, 960px);
        max-width: 960px;
        min-height: auto;
        padding: 28px 32px;
        grid-template-columns: 46% 1fr;
        gap: 32px;
        align-items: center;
    }

    .merch-modal img {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: 430px;
        object-fit: cover;
    }

    .merch-modal-content {
        height: 100%;
        min-height: 430px;
        justify-content: center;
        padding: 0 12px 0 0;
    }

    .merch-modal-content h3 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .merch-modal-content p {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 0;
    }

    .merch-modal-specs {
        margin-top: 24px;
        padding-top: 20px;
    }

    .spec-row {
        padding: 9px 0;
        grid-template-columns: 115px 1fr;
    }
}


/* ==== MIGAERIS PREMIUM MODAL — WIDTH BALANCE FIX ==== */

@media (min-width: 901px) {

    .merch-modal-window {
        width: min(82vw, 860px);
        max-width: 860px;
        grid-template-columns: 370px 1fr;
        gap: 28px;
        padding: 28px;
    }

    .merch-modal img {
        width: 370px;
        height: 370px;
        max-height: none;
    }

    .merch-modal-content {
        min-height: 370px;
        max-width: 360px;
        padding: 0;
    }

    .merch-modal-content h3 {
        font-size: 30px;
    }

    .merch-modal-specs {
        margin-top: 22px;
    }

    .spec-row {
        grid-template-columns: 105px 1fr;
    }
}


/* ==== FINAL BALANCE FIX — IMAGE PRIORITY ==== */

@media (min-width: 901px) {

    .merch-modal-window {
        width: fit-content;
        max-width: 920px;
        padding: 26px 28px;

        grid-template-columns: auto 320px; /* 🔥 ключ */
        gap: 24px;

        justify-content: center;
    }

    .merch-modal img {
        width: 420px;
        height: 420px;
        object-fit: cover;
    }

    .merch-modal-content {
        width: 320px; /* 🔥 жесткое ограничение */
        min-height: 420px;
        justify-content: center;
    }

    .merch-modal-content h3 {
        font-size: 30px;
    }

    .merch-modal-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .merch-modal-specs {
        margin-top: 20px;
    }

    .spec-row {
        grid-template-columns: 100px 1fr;
        padding: 8px 0;
    }
}


/* ==== FINAL TIGHT TEXT BLOCK ==== */

@media (min-width: 901px) {

    .merch-modal-window {
        grid-template-columns: auto 260px; /* 🔥 ещё уже */
        gap: 20px;
        max-width: 820px;
    }

    .merch-modal img {
        width: 420px;
        height: 420px;
    }

    .merch-modal-content {
        width: 260px;
        min-height: 420px;
    }

    .merch-modal-content h3 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .merch-modal-content p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .merch-modal-specs {
        margin-top: 18px;
    }

    .spec-row {
        grid-template-columns: 90px 1fr;
        gap: 10px;
        padding: 7px 0;
    }

    .spec-row span {
        font-size: 11px;
    }

    .spec-row strong {
        font-size: 13px;
    }
}


/* ==== MODAL ORDER BUTTON + TIGHTER RIGHT SIDE ==== */

@media (min-width: 901px) {

    .merch-modal-window {
        grid-template-columns: auto 240px;
        gap: 18px;
        max-width: 790px;
    }

    .merch-modal-content {
        width: 240px;
    }

    .merch-modal-order {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 18px;
        height: 38px;
        border: 1px solid rgba(214,168,95,0.45);
        color: #d6a85f;
        text-decoration: none;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        background: rgba(214,168,95,0.04);
        transition: 0.2s ease;
    }

    .merch-modal-order:hover {
        background: rgba(214,168,95,0.12);
        border-color: rgba(214,168,95,0.75);
        color: #f0c982;
    }
}


/* ==== MODAL BUTTON USES GLOBAL SITE BUTTON STYLE ==== */

@media (min-width: 901px) {

    .merch-modal-order.btn {
        min-width: 0;
        width: 100%;
        margin-top: 18px;
        padding: 12px 18px;
        font-size: 11px;
        letter-spacing: 1.4px;
        border-color: rgba(255,255,255,0.45);
        color: #fff;
        background: rgba(0,0,0,0.25);
    }
}


@media (min-width: 901px) {

    .merch-modal-content p {
        position: relative;
        padding-bottom: 14px;
    }

    .merch-modal-content p::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.12);
        margin-top: 14px;
    }
}


@media (min-width: 901px) {

    .merch-modal img {
        filter: brightness(0.92) contrast(1.05);
    }
}


@media (min-width: 901px) {

    .merch-modal-content h3 {
        letter-spacing: 0.12em;
    }
}


/* ==== MOBILE MODAL FIX AFTER GLOBAL BUTTON ==== */

@media (max-width: 900px) {

    .merch-modal-window {
        width: calc(100vw - 32px);
        max-width: none;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        padding: 42px 22px 22px;
    }

    .merch-modal img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin-bottom: 28px;
    }

    .merch-modal-content h3 {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .merch-modal-content p {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 26px;
    }

    .merch-modal-specs {
        margin-top: 0;
        padding-top: 18px;
    }

    .spec-row {
        grid-template-columns: 1fr 1.15fr;
        gap: 14px;
        padding: 13px 0;
    }

    .spec-row span {
        font-size: 20px;
    }

    .spec-row b,
    .spec-row strong {
        font-size: 20px;
    }

    .merch-modal-order.btn {
        display: flex;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin-top: 26px;
        padding: 18px 20px;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        letter-spacing: 2px;
    }
}


/* ==== MOBILE MODAL COMPACT FIX ==== */

@media (max-width: 900px) {

    .merch-modal-window {
        width: calc(100vw - 28px);
        max-height: calc(100vh - 70px);
        padding: 34px 18px 18px;
    }

    .merch-modal img {
        width: 100%;
        max-height: 300px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin-bottom: 18px;
    }

    .merch-modal-content h3 {
        font-size: 24px;
        margin-bottom: 8px;
        line-height: 1.1;
    }

    .merch-modal-content p {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .merch-modal-specs {
        padding-top: 10px;
    }

    .spec-row {
        grid-template-columns: 95px 1fr;
        gap: 10px;
        padding: 8px 0;
    }

    .spec-row span {
        font-size: 14px;
    }

    .spec-row b,
    .spec-row strong {
        font-size: 14px;
    }

    .merch-modal-order.btn {
        margin-top: 14px;
        padding: 13px 16px;
        font-size: 13px;
        letter-spacing: 1.6px;
    }
}


/* ==== PREMIUM MODAL IMAGE HOVER ==== */

@media (min-width: 901px) {

    .merch-modal img {
        transition:
            transform 0.45s ease,
            filter 0.45s ease;
    }

    .merch-modal img:hover {
        transform: scale(1.025);
        filter: brightness(0.98) contrast(1.08);
    }
}


/* ==== MIGAERIS PREMIUM IMAGE EFFECT ==== */

@media (min-width: 901px) {

    .merch-modal img {
        position: relative;
        transition:
            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.45s ease;
    }

    .merch-modal-window:hover img {
        transform: scale(1.035) translateY(-4px);
        filter: brightness(1.02) contrast(1.08);
    }

    /* мягкое свечение снизу */
    .merch-modal-window::after {
        content: "";
        position: absolute;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 40px;
        background: radial-gradient(
            ellipse at center,
            rgba(214,168,95,0.18),
            transparent 70%
        );
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .merch-modal-window:hover::after {
        opacity: 1;
    }
}


/* ==== MIGAERIS MODAL — OBJECT PASSPORT STYLE ==== */

.merch-object-label {
    margin-bottom: 14px;
    color: rgba(214,168,95,0.62);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.merch-passport-title {
    margin-top: 18px;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.52);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.merch-order-note {
    margin-top: 10px;
    color: rgba(255,255,255,0.38);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .merch-object-label {
        margin-bottom: 10px;
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .merch-passport-title {
        margin-top: 12px;
        font-size: 9px;
    }

    .merch-order-note {
        margin-top: 8px;
        font-size: 9px;
    }
}


/* ==== MODAL CLOSE BUTTON SAFE ZONE ==== */

@media (min-width: 901px) {

    .merch-modal-content {
        padding-top: 18px;
        padding-right: 18px;
    }

    .merch-modal-close {
        z-index: 5;
    }
}


/* ==== FINAL MOBILE COMPACT — FIT SCREEN ==== */

@media (max-width: 900px) {

    .merch-modal-window {
        padding: 26px 16px 16px;
        max-height: calc(100vh - 60px);
    }

    .merch-modal img {
        max-height: 260px;
        margin-bottom: 14px;
    }

    .merch-object-label {
        margin-bottom: 6px;
        font-size: 8px;
    }

    .merch-modal-content h3 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .merch-modal-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .merch-passport-title {
        margin-top: 8px;
        margin-bottom: 2px;
        font-size: 8px;
    }

    .merch-modal-specs {
        padding-top: 6px;
    }

    .spec-row {
        padding: 6px 0;
    }

    .spec-row span,
    .spec-row b,
    .spec-row strong {
        font-size: 13px;
    }

    .merch-modal-order.btn {
        margin-top: 10px;
        padding: 11px;
        font-size: 12px;
    }

    .merch-order-note {
        margin-top: 6px;
        font-size: 8px;
    }
}


/* ==== MOBILE IMAGE FIX — RETURN PREMIUM LOOK ==== */

@media (max-width: 900px) {

    .merch-modal img {
        max-height: none; /* ❗ убираем обрезку */
        height: auto;
        margin-bottom: 22px;
    }

    .merch-modal-window {
        max-height: calc(100vh - 60px);
        overflow-y: auto; /* ❗ пусть скроллится, это нормально */
    }
}


/* ==== MIGAERIS DESCRIPTION (LEGEND STYLE) ==== */

.merch-modal-content p {
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.78);
    max-width: 280px;
}

/* ПК — делаем плотнее */
@media (min-width: 901px) {
    .merch-modal-content p {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
}

/* Мобилка — чуть легче */
@media (max-width: 900px) {
    .merch-modal-content p {
        font-size: 15px;
        line-height: 1.4;
    }
}


/* ==== MIGAERIS MODAL OPEN ANIMATION ==== */

.merch-modal.active .merch-modal-backdrop {
    animation: merchBackdropFade 0.35s ease forwards;
}

.merch-modal.active .merch-modal-window {
    animation: merchModalReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.merch-modal.active .merch-modal img {
    animation: merchImageReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.merch-modal.active .merch-modal-content {
    animation: merchTextReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes merchBackdropFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes merchModalReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes merchImageReveal {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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


/* ==== MODAL OPEN ANIMATION — SOFTER TEXT FIX ==== */

.merch-modal.active .merch-modal-content {
    animation: merchTextRevealSoft 0.75s ease-out 0.08s both;
}

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


/* ==== MODAL TEXT FADE ONLY — NO JUMP ==== */

.merch-modal.active .merch-modal-content {
    animation: merchTextFadeOnly 0.65s ease both;
}

@keyframes merchTextFadeOnly {
    from {
        opacity: 0;
        transform: none;
    }
    to {
        opacity: 1;
        transform: none;
    }
}

