.dyor-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow: hidden;
    color: #fff;
    font-family: "Nunito", sans-serif;
    background: linear-gradient(115deg, #161512 0%, #1c1b17 42%, #23262b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, 0.6);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1), opacity 0.4s;
}

.dyor-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ---------- декоративный свет + график ---------- */
.dyor-banner__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 540px;
    height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(52, 211, 153, 0.16), transparent 65%);
    pointer-events: none;
}

.dyor-banner__candles {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dyor-banner__base {
    stroke: #fff;
    stroke-opacity: 0.1;
    stroke-width: 2;
}

.dyor-banner__candle {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: dyor-candle-grow 5s cubic-bezier(0.34, 1.2, 0.5, 1) infinite both;
}

.dyor-banner__candle rect {
    fill: #34d399;
    fill-opacity: 0.22;
}

.dyor-banner__candle line {
    stroke: #34d399;
    stroke-opacity: 0.55;
    stroke-width: 2;
}

.dyor-banner__candle--red rect {
    fill: #f87171;
}

.dyor-banner__candle--red line {
    stroke: #f87171;
}

@keyframes dyor-candle-grow {
    0%   { transform: scaleY(0); opacity: 0; }
    7%   { opacity: 1; }
    20%  { transform: scaleY(1); opacity: 1; }
    84%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- затемнение для читаемости текста ---------- */
.dyor-banner__scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
            90deg,
            rgba(20, 19, 16, 0.96) 0%,
            rgba(20, 19, 16, 0.86) 32%,
            rgba(20, 19, 16, 0.32) 56%,
            rgba(20, 19, 16, 0) 72%
    );
}

/* ---------- контент (кликабельная ссылка на весь баннер) ---------- */
.dyor-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 40px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
a.dyor-banner__cta-link:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 8;
}
.dyor-banner__copy {
    position: relative;
    z-index: 5;
    max-width: 600px;
}

.dyor-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #34d399;
}

.dyor-banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: dyor-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dyor-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #34d399; }
    50%      { opacity: 0.55; box-shadow: 0 0 16px #34d399; }
}

.dyor-banner__title {
    display: block;
    margin: 0 0 9px;
    font-weight: 800;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.dyor-banner__subtitle {
    max-width: 540px;
    margin: 0;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    text-wrap: pretty;
}

/* ---------- CTA (визуальная кнопка внутри ссылки) ---------- */
.dyor-banner__cta {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
    padding: 15px 26px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(180deg, #39b3f5, #1f8fe0);
    animation: dyor-cta-glow 2.6s ease-in-out infinite;
}

@keyframes dyor-cta-glow {
    0%, 100% {
        box-shadow: 0 10px 22px -10px rgba(53, 172, 241, 0.65);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 16px 34px -8px rgba(53, 172, 241, 1);
        transform: translateY(-2px);
    }
}

.dyor-banner__cta::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    animation: dyor-sheen 3.4s ease-in-out infinite;
}

@keyframes dyor-sheen {
    0%   { left: -60%; }
    55%  { left: 140%; }
    100% { left: 140%; }
}

.dyor-banner__cta-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex: none;
}

.dyor-banner__cta-icon img,
.dyor-banner__cta-icon svg {
    position: relative;
    z-index: 2;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.dyor-banner__cta-icon::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: dyor-ring 2.6s ease-out infinite;
}

@keyframes dyor-ring {
    0%       { transform: scale(0.7); opacity: 0.8; }
    70%, 100% { transform: scale(1.6); opacity: 0; }
}

.dyor-banner__cta-text {
    position: relative;
    z-index: 2;
}

/* ---------- кнопка закрытия ---------- */
.dyor-banner__close {
    position: absolute;
    top: 14px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: 0.18s;
}

.dyor-banner__close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ============================================================
   Адаптив: единый баннер сам перестраивается в столбец.
   Никаких отдельных классов-модификаторов не требуется.
   ============================================================ */
@media (max-width: 720px) {
    .dyor-banner__scrim {
        background: linear-gradient(
                180deg,
                rgba(20, 19, 16, 0.4) 0%,
                rgba(20, 19, 16, 0.74) 48%,
                rgba(20, 19, 16, 0.92) 100%
        );
    }

    .dyor-banner__candles {
        top: 42%;
        transform: translate(-50%, -50%) scale(0.82);
        opacity: 0.7;
        filter: blur(1.5px);
    }

    .dyor-banner__glow {
        top: 38%;
        width: 360px;
        height: 300px;
    }

    .dyor-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 30px 22px 24px;
    }

    .dyor-banner__copy {
        max-width: none;
    }

    .dyor-banner__title {
        font-size: 21px;
        line-height: 1.2;
    }

    .dyor-banner__subtitle {
        max-width: none;
        font-size: 13.5px;
    }

    .dyor-banner__cta {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dyor-banner__candle,
    .dyor-banner__cta,
    .dyor-banner__dot,
    .dyor-banner__cta::after,
    .dyor-banner__cta-icon::before {
        animation: none !important;
    }

    .dyor-banner__candle {
        transform: scaleY(1);
        opacity: 1;
    }
}
