/* =========================
   СТРІЧКА ДОНАТЕРІВ
========================= */

.ticker-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 20px;
    color: #7cff9b;
}

.donor-ticker {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 34px;
    padding: 8px 0;

    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.donor-track {
    display: flex;
    width: max-content;
    animation: donor-scroll var(--dur, 30s) linear infinite;
    will-change: transform;
}

@keyframes donor-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.donor-set {
    display: flex;
    flex: 0 0 auto;
}

.donor-card {
    flex: 0 0 auto;
    min-width: 130px;
    margin-right: 14px;
    padding: 9px 18px;

    text-align: center;

    background: linear-gradient(145deg, rgba(12, 22, 15, 0.95), rgba(7, 14, 9, 0.95));
    border: 1px solid rgba(124, 255, 155, 0.18);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 230, 92, 0.06);
}

.donor-nick {
    color: #7cff9b;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

.donor-amount {
    margin-top: 2px;
    color: #ffd24a;
    font-size: 14px;
    white-space: nowrap;
}

/* якщо в людини вимкнена анімація: стрічка гортається руками */
@media (prefers-reduced-motion: reduce) {
    .donor-ticker {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .donor-track {
        animation: none;
    }
}
/* =========================
   ДОНАТ: ЛІВА ПАНЕЛЬ З УМОВАМИ (sticky sidebar)
========================= */

/* сторінка стає ширшою, щоб помістилась панель збоку */
.rules-section.donate-main {
    max-width: 1240px;
}

.rules-section:has(.donate-layout) {
    max-width: 1240px;
}

/* зліва панель, справа картки */
.donate-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 100%;
}

/* картки справа: по дві в ряд, якщо вистачає місця */
.donate-layout > .donate-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    justify-content: stretch;
    max-width: none;
    margin: 0;
}

/* у вужчій картці правила йдуть в один стовпець */
.donate-layout .donate-rules {
    grid-template-columns: minmax(0, 1fr);
}

/* сама панель: липне зліва, коли сторінку гортають */
.donate-layout > .donate-terms {
    position: sticky;
    top: 110px;
    align-self: start;

    width: auto;
    max-width: none;
    margin: 0;
    max-height: calc(100vh - 130px);
    overflow-y: auto;

    padding: 18px 16px 14px;
    text-align: left;

    background: linear-gradient(145deg, rgba(12, 22, 15, 0.95), rgba(7, 14, 9, 0.95));
    border: 1px solid rgba(124, 255, 155, 0.28);
    border-radius: 14px;
    box-shadow: 0 0 28px rgba(0, 230, 92, 0.07);
}

/* зелена лінія зверху панелі */
.donate-layout > .donate-terms::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #7cff9b, #00e65c, transparent);
}

.donate-terms .donate-terms-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.3;
    color: #7cff9b;
}

/* значок перед заголовком (це не текст, його не треба редагувати) */
.donate-terms .donate-terms-title::before {
    content: "📋 ";
}

.donate-terms .donate-terms-lead {
    margin: 0 0 10px;
    color: #b5beb7;
    font-size: 13px;
    line-height: 1.5;
}

.donate-terms .donate-terms-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.donate-terms .donate-terms-list li {
    position: relative;
    padding: 7px 10px 7px 31px;

    color: #e8eee9;
    font-size: 13px;
    line-height: 1.35;

    background: rgba(124, 255, 155, 0.05);
    border: 1px solid rgba(124, 255, 155, 0.16);
    border-radius: 8px;
}

.donate-terms .donate-terms-list li::before {
    content: "✔";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #7cff9b;
    font-size: 12px;
    font-weight: bold;
}

.donate-terms .donate-terms-note {
    margin: 0;
    padding-top: 10px;

    color: #e6c76a;
    font-size: 12.5px;
    line-height: 1.5;

    border-top: 1px dashed rgba(124, 255, 155, 0.25);
}

/* планшет і телефон: панель стає над картками на всю ширину */
@media (max-width: 960px) {
    .donate-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .donate-layout > .donate-terms {
        position: static;
        max-height: none;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }
}