/* Donor RTB strip: desktop 1000x250 / mobile 320x100 */
.menu-clear {
    clear: both;
    height: 0;
    line-height: 0;
    font-size: 0;
}

.yandex-rtb-wrap {
    position: relative;
    width: 90%;
    max-width: 1000px;
    min-height: 250px;
    margin: 15px auto 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: visible;
}

.yandex-rtb-slot {
    width: 100%;
    min-height: 250px;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    text-align: center;
}

.yandex-rtb-slot iframe {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .yandex-rtb-wrap {
        width: 94%;
        min-height: 100px;
        margin: 8px auto 12px auto;
    }

    .yandex-rtb-slot {
        min-height: 100px;
    }
}

.top-promo-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #fff;
    border: 1px solid #dce8f0;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    overflow: hidden;
}

.top-promo-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.top-promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 10px 52px 10px 12px;
    color: #111;
    text-decoration: none;
    box-sizing: border-box;
}

.top-promo-head {
    text-align: center;
    line-height: 1.05;
    margin-bottom: 8px;
    flex: 0 0 auto;
}

.top-promo-users {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #6f7d86;
}

.top-promo-title {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
}

.top-promo-list {
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
}

.top-promo-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 36px 24px;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 8px;
    border: 1px solid #e7edf2;
    border-radius: 9px;
    background: #fff;
}

.top-promo-rank {
    font-size: 22px;
    font-weight: 800;
    color: #b97814;
    text-align: center;
}

.top-promo-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 700;
}

.top-promo-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce8f0;
    font-size: 13px;
    font-weight: 700;
}

.top-promo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-promo-platform {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2AABEE;
    color: #fff;
    font-size: 11px;
}

.top-promo-platform-vk { background: #0077ff; }
.top-promo-platform-instagram {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 68%, #285AEB 100%);
}

.top-promo-timer {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    text-align: center;
}

.top-promo-ring {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transform-origin: center;
}

.top-promo-overlay--compact .top-promo-card {
    padding: 6px 42px 6px 8px;
}

.top-promo-overlay--compact .top-promo-users {
    font-size: 8px;
    line-height: 1.15;
}

.top-promo-overlay--compact .top-promo-title {
    margin-top: 2px;
    font-size: 13px;
}

.top-promo-overlay--compact .top-promo-head {
    margin-bottom: 4px;
}

.top-promo-overlay--compact .top-promo-list {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.top-promo-overlay--compact .top-promo-item {
    grid-template-columns: 18px minmax(0, 1fr) 22px;
    gap: 4px;
    min-height: 0;
    padding: 2px 4px;
}

.top-promo-overlay--compact .top-promo-rank {
    font-size: 12px;
}

.top-promo-overlay--compact .top-promo-name {
    font-size: 9px;
}

.top-promo-overlay--compact .top-promo-avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
}

.top-promo-overlay--compact .top-promo-platform {
    display: none;
}

.top-promo-overlay--compact .top-promo-ring {
    width: 24px;
    height: 24px;
    font-size: 10px;
}
