/* ==========================================================================
   maps_guide — каталог и гайды по картам CS 1.6 (шаблон SLIM)
   Палитра шаблона: акцент rgb(251, 71, 75), строки rgb(36, 39, 49)
   ========================================================================== */

:root {
    --mg-primary: rgb(251, 71, 75);
    --mg-primary-soft: rgba(251, 71, 75, 0.10);
    --mg-card: rgb(36, 39, 49);
    --mg-card-hover: rgb(44, 48, 60);
    --mg-text: rgb(165, 169, 180);
    --mg-text-dim: rgba(165, 169, 180, 0.55);
    --mg-bright: #ffffff;
    --mg-de: #ffb547;
    --mg-cs: #5d9eff;
    --mg-fun: #b682ff;
    --mg-t: #e8a33d;
    --mg-ct: #5d9eff;
    --mg-live: #24e34d;
}

.mg-hidden {
    display: none !important;
}

/* ------------------------------- Подложка -------------------------------- */

.mg-page {
    position: relative;
    background: rgba(24, 26, 33, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 4px 20px 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.mg-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mg-primary), transparent);
    opacity: 0.85;
}

.mg-page .section-title {
    flex-wrap: wrap;
    gap: 8px 14px;
}

.mg-title-icon {
    margin-right: 8px;
    color: var(--mg-primary);
}

.mg-intro {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--mg-text);
    background: var(--mg-primary-soft);
    border-left: 3px solid var(--mg-primary);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 0;
}

/* --------------------------- Играет сейчас ------------------------------- */

.mg-now {
    margin-top: 16px;
}

.mg-now:empty {
    display: none;
}

.mg-now__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mg-text-dim);
}

.mg-now__head i {
    color: var(--mg-live);
}

.mg-now__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 10px;
}

.mg-now__card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--mg-text);
    background: linear-gradient(120deg, rgba(36, 227, 77, 0.08), var(--mg-card) 60%);
    border: 1px solid rgba(36, 227, 77, 0.18);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.mg-now__card:hover {
    color: var(--mg-text);
    border-color: rgba(36, 227, 77, 0.4);
    transform: translateY(-2px);
}

.mg-now__card img {
    flex: 0 0 auto;
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.mg-now__card > div {
    min-width: 0;
}

.mg-now__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 0.8125rem;
}

.mg-now__row b {
    color: var(--mg-bright);
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mg-now__map {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.75rem;
    color: var(--mg-text-dim);
}

.mg-now__online i {
    margin-right: 5px;
    color: var(--mg-live);
}

.mg-now__more {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mg-primary);
}

.mg-now--single {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px;
}

.mg-now--single .mg-now__row {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(36, 227, 77, 0.06);
    border: 1px solid rgba(36, 227, 77, 0.18);
}

/* Пульсирующая точка «в эфире» */
.mg-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mg-live);
}

.mg-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: mg-pulse 1.8s ease-out infinite;
}

@keyframes mg-pulse {
    0% { box-shadow: 0 0 0 0 rgba(36, 227, 77, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(36, 227, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(36, 227, 77, 0); }
}

/* ------------------------------ Фильтры ---------------------------------- */

.mg-toolbar {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    margin-bottom: 18px;
}

.mg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mg-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--mg-card);
    color: var(--mg-text);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mg-chip b {
    font-weight: 600;
    color: var(--mg-text-dim);
}

.mg-chip:hover {
    background: var(--mg-card-hover);
    color: var(--mg-bright);
}

.mg-chip.is-active {
    background: var(--mg-primary);
    border-color: var(--mg-primary);
    color: #fff;
}

.mg-chip.is-active b {
    color: rgba(255, 255, 255, 0.75);
}

.mg-search {
    position: relative;
    flex: 0 1 280px;
    margin: 0;
}

.mg-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    color: var(--mg-text-dim);
}

.mg-search input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--mg-card);
    color: var(--mg-bright);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.18s ease;
}

.mg-search input:focus {
    border-color: rgba(251, 71, 75, 0.55);
}

/* ------------------------------- Карточки -------------------------------- */

.mg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
    gap: 16px;
}

.mg-card {
    --mg-accent: var(--mg-de);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    color: var(--mg-text);
    background: var(--mg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mg-card--cs { --mg-accent: var(--mg-cs); }
.mg-card--fun { --mg-accent: var(--mg-fun); }

.mg-card:hover {
    color: var(--mg-text);
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--mg-accent) 45%, transparent);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.mg-card.is-live {
    border-color: rgba(36, 227, 77, 0.35);
}

.mg-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #15171d;
}

.mg-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mg-card:hover .mg-card__media img {
    transform: scale(1.06);
}

/* Затемнение снизу, чтобы бейджи читались на любой картинке */
.mg-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 35%, transparent 60%, rgba(36, 39, 49, 0.95) 100%);
}

.mg-card__badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--mg-accent);
    background: rgba(15, 16, 21, 0.75);
    backdrop-filter: blur(4px);
}

.mg-card__media .mg-live {
    position: absolute;
    z-index: 1;
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(15, 16, 21, 0.75);
}

.mg-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    padding: 2px 14px 14px;
}

.mg-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.mg-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--mg-bright);
}

.mg-card__code {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
    font-size: 0.6875rem;
    color: var(--mg-text-dim);
    background: none;
}

.mg-card__tagline {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--mg-text);
}

.mg-card__more {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mg-accent);
}

.mg-card__more i {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.mg-card:hover .mg-card__more i {
    transform: translateX(4px);
}

.mg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 12px;
    color: var(--mg-text-dim);
    font-size: 0.875rem;
}

.mg-empty i {
    font-size: 1.5rem;
    opacity: 0.4;
}

/* ------------------------------ Гайд карты ------------------------------- */

.mg-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mg-text);
    text-decoration: none;
}

.mg-back:hover {
    color: var(--mg-primary);
}

.mg-hero {
    --mg-accent: var(--mg-de);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.mg-hero--cs { --mg-accent: var(--mg-cs); }
.mg-hero--fun { --mg-accent: var(--mg-fun); }

/* Размытая картинка карты на весь фон шапки */
.mg-hero__bg {
    position: absolute;
    inset: -30px;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.2);
    opacity: 0.55;
}

.mg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(20, 22, 28, 0.92) 30%, rgba(20, 22, 28, 0.55));
}

.mg-hero__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 26px;
}

.mg-hero__shot {
    flex: 0 0 auto;
    width: 300px;
    max-width: 42%;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid color-mix(in srgb, var(--mg-accent) 55%, transparent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transform: rotate(-2deg);
}

.mg-hero__shot img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mg-hero__text {
    min-width: 0;
}

.mg-hero__mode {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mg-accent);
}

.mg-hero__title {
    margin: 6px 0 4px;
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--mg-bright);
}

.mg-hero__code {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--mg-bright);
    background: rgba(255, 255, 255, 0.08);
}

.mg-hero__tagline {
    margin: 12px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.mg-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mg-fact {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--mg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mg-fact i {
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--mg-primary);
    background: var(--mg-primary-soft);
}

.mg-fact span {
    font-size: 0.6875rem;
    color: var(--mg-text-dim);
}

.mg-fact b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mg-bright);
}

.mg-about {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mg-text);
}

.mg-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mg-zone {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--mg-bright);
    background: var(--mg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.mg-tips__col {
    --mg-side: var(--mg-t);
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(140deg, color-mix(in srgb, var(--mg-side) 10%, transparent), var(--mg-card) 55%);
    border: 1px solid color-mix(in srgb, var(--mg-side) 22%, transparent);
}

.mg-tips__col--ct { --mg-side: var(--mg-ct); }

.mg-tips__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mg-bright);
}

.mg-tips__head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #15171d;
    background: var(--mg-side);
}

.mg-tips ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mg-tips li {
    position: relative;
    padding: 6px 0 6px 18px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--mg-text);
}

.mg-tips li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mg-side);
}

/* История создания: абзацы на «временной линии» */
.mg-history {
    position: relative;
    padding-left: 22px;
}

.mg-history::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--mg-primary), rgba(251, 71, 75, 0.05));
}

.mg-history p {
    position: relative;
    margin: 0 0 14px;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--mg-text);
}

.mg-history p:last-child {
    margin-bottom: 0;
}

.mg-history p::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 9px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(24, 26, 33);
    border: 2px solid var(--mg-primary);
}

/* Интересные факты: нумерованные карточки */
.mg-trivia {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mg-trivia__item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--mg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mg-trivia__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #1b1d24;
    background: linear-gradient(135deg, #ffd27a, #ffb547);
}

.mg-trivia__item p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--mg-text);
}

/* Общий совет под колонками T/CT */
.mg-tips__all {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--mg-text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.mg-tips__all i {
    margin-top: 3px;
    color: #ffb547;
}

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

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

    .mg-hero__title {
        font-size: 1.875rem;
    }
}

@media (max-width: 767.98px) {
    .mg-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mg-search {
        flex-basis: auto;
    }

    /* Фильтры — горизонтальная лента без переноса */
    /* min-width: 0 — иначе лента растягивается по содержимому и ломает ширину страницы */
    .mg-filters {
        min-width: 0;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -2px;
        padding: 0 2px 4px;
        scrollbar-width: none;
    }

    .mg-filters::-webkit-scrollbar {
        display: none;
    }

    .mg-chip {
        flex: 0 0 auto;
    }

    .mg-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 18px;
    }

    .mg-hero__shot {
        width: 100%;
        max-width: none;
        transform: none;
    }

    .mg-tips,
    .mg-trivia {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .mg-page {
        padding: 2px 12px 8px;
        border-radius: 12px;
    }

    .mg-page .section-title {
        padding: 14px 0;
    }

    .mg-intro {
        font-size: 0.875rem;
        padding: 10px 12px;
    }

    /* Две карточки в ряд на телефоне */
    .mg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mg-card {
        border-radius: 12px;
    }

    .mg-card__badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 0.625rem;
    }

    .mg-card__badge i {
        display: none;
    }

    .mg-card__media .mg-live {
        bottom: 6px;
        right: 6px;
        font-size: 0.5625rem;
    }

    .mg-card__body {
        padding: 0 10px 10px;
        gap: 4px;
    }

    .mg-card__head {
        flex-direction: column;
        gap: 0;
    }

    .mg-card__title {
        font-size: 0.9375rem;
    }

    .mg-card__tagline {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mg-card__more {
        display: none;
    }

    .mg-now__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .mg-now__card img {
        width: 80px;
        height: 56px;
    }

    .mg-hero__title {
        font-size: 1.625rem;
    }

    .mg-hero__tagline {
        font-size: 0.875rem;
    }

    .mg-facts {
        gap: 8px;
    }

    .mg-fact {
        padding: 10px;
        column-gap: 8px;
    }

    .mg-fact i {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .mg-fact b {
        font-size: 0.8125rem;
        white-space: normal;
    }

    .mg-about {
        font-size: 0.875rem;
    }

    .mg-tips__col {
        padding: 14px;
    }

    .mg-history {
        padding-left: 18px;
    }

    .mg-history p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .mg-history p::before {
        left: -18px;
        width: 10px;
        height: 10px;
    }

    .mg-trivia__item {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mg-card,
    .mg-card__media img,
    .mg-live i {
        transition: none;
        animation: none;
    }
}

/* ==========================================================================
   Промо-баннер гайдов на главной: веер картинок карт + переход к гайдам.
   Подключается на всех страницах (modules.files), поэтому стили изолированы
   префиксом .mg-promo
   ========================================================================== */

.mg-promo {
    --mg-amber: #ffb547;
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    margin-bottom: 24px;
    padding: 22px 26px 22px 22px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    background:
        radial-gradient(90% 140% at 100% 0%, rgba(255, 181, 71, 0.16), transparent 55%),
        linear-gradient(110deg, rgb(28, 30, 38) 0%, rgb(36, 39, 49) 55%, rgb(40, 36, 32) 100%);
    border: 1px solid rgba(255, 181, 71, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mg-promo:hover {
    border-color: rgba(255, 181, 71, 0.42);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 181, 71, 0.05);
}

/* Тактическая сетка-радар на фоне */
.mg-promo__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 181, 71, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 181, 71, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
    pointer-events: none;
}

/* Веер из трёх скриншотов карт */
.mg-promo__fan {
    position: relative;
    flex: 0 0 auto;
    width: 210px;
    height: 128px;
}

.mg-promo__shot {
    position: absolute;
    top: 14px;
    left: 40px;
    width: 140px;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s ease;
}

.mg-promo__shot img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mg-promo__shot span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 8px 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

.mg-promo__shot--1 {
    z-index: 3;
    border-color: rgba(255, 181, 71, 0.65);
}

.mg-promo__shot--2 {
    z-index: 2;
    transform: translateX(-38px) rotate(-11deg) scale(0.9);
}

.mg-promo__shot--3 {
    z-index: 1;
    transform: translateX(38px) rotate(11deg) scale(0.9);
}

.mg-promo:hover .mg-promo__shot--1 {
    transform: translateY(-4px);
}

.mg-promo:hover .mg-promo__shot--2 {
    transform: translateX(-50px) rotate(-15deg) scale(0.9);
}

.mg-promo:hover .mg-promo__shot--3 {
    transform: translateX(50px) rotate(15deg) scale(0.9);
}

.mg-promo__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.mg-promo__kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mg-amber);
}

/* Заголовок — главная ссылка; ::after растягивает клик на весь баннер */
.mg-promo__title {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.mg-promo__title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mg-promo__title:hover {
    color: #fff;
}

.mg-promo__text {
    max-width: 520px;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(165, 169, 180, 0.9);
}

.mg-promo__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mg-promo__tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(165, 169, 180, 0.95);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mg-promo__tags i {
    font-size: 0.6875rem;
    color: var(--mg-amber);
}

.mg-promo__side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

/* Карта, которая сейчас на сервере — отдельная ссылка поверх баннера */
.mg-promo__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-decoration: none;
    color: rgba(165, 169, 180, 0.95);
    background: rgba(36, 227, 77, 0.07);
    border: 1px solid rgba(36, 227, 77, 0.22);
    transition: border-color 0.2s ease;
}

.mg-promo__live:hover {
    color: #fff;
    border-color: rgba(36, 227, 77, 0.5);
}

.mg-promo__live code {
    padding: 0;
    font-size: 0.75rem;
    color: #fff;
    background: none;
}

.mg-promo__live-go i {
    margin-left: 3px;
    font-size: 0.625rem;
}

.mg-promo .mg-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #24e34d;
}

.mg-promo .mg-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: mg-pulse 1.8s ease-out infinite;
}

.mg-promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: #1b1d24;
    background: linear-gradient(135deg, #ffd27a, var(--mg-amber));
    box-shadow: 0 10px 24px rgba(255, 181, 71, 0.25);
    transition: box-shadow 0.25s ease;
}

.mg-promo__btn:hover {
    color: #1b1d24;
    box-shadow: 0 12px 30px rgba(255, 181, 71, 0.45);
}

.mg-promo__btn i {
    font-size: 0.8125rem;
    transition: transform 0.25s ease;
}

.mg-promo:hover .mg-promo__btn i {
    transform: translateX(4px);
}

/* Планшеты: кнопка и метка уходят вниз одной строкой */
@media (max-width: 991.98px) {
    .mg-promo {
        flex-wrap: wrap;
        gap: 16px 20px;
    }

    .mg-promo__content {
        flex: 1 1 0;
    }

    .mg-promo__side {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

/* Телефоны: веер над текстом по центру, кнопка на всю ширину */
@media (max-width: 575.98px) {
    .mg-promo {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
        border-radius: 14px;
    }

    .mg-promo__fan {
        align-self: center;
        width: 190px;
        height: 112px;
    }

    .mg-promo__shot {
        top: 8px;
        left: 40px;
        width: 110px;
    }

    .mg-promo__content {
        align-items: center;
        text-align: center;
    }

    .mg-promo__title {
        font-size: 1.25rem;
    }

    .mg-promo__text {
        font-size: 0.8125rem;
    }

    .mg-promo__tags {
        justify-content: center;
    }

    .mg-promo__side {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mg-promo__live {
        justify-content: center;
    }

    .mg-promo__btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mg-promo__shot,
    .mg-promo__btn i,
    .mg-promo .mg-live i {
        transition: none;
        animation: none;
    }
}
