/* ===== MOVING ADS 4 SLOTS FINAL (DARK PREMIUM BORDER) ===== */

.ads4 {
    --card-w: 360px;
    --gap: 18px;
    --speed: 40s;

    max-width: 1100px;
    margin: 24px auto;
    padding: 0 24px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ads4__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ads4__title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.ads4__hint {
    font-size: 13px;
    color: #6b7280;
}

/* VIEWPORT */

.ads4__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

/* TRACK */

.ads4__track {
    display: inline-flex;
    gap: var(--gap);
    padding: 6px;
    width: max-content;
    animation: ads4Move var(--speed) linear infinite;
    will-change: transform;
}

.ads4:hover .ads4__track {
    animation-play-state: paused;
}

@keyframes ads4Move {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* CARD BASE */

.ads4__card {
    flex: 0 0 var(--card-w);
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: #f6f7f9;
    text-decoration: none;
    color: #111;
    position: relative;
    transition:
        transform .22s cubic-bezier(.4,0,.2,1),
        box-shadow .22s cubic-bezier(.4,0,.2,1),
        border-color .22s ease;
}

.ads4__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.ads4__ava {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ads4__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ads4__title-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.ads4__sub {
    font-size: 13px;
    color: #6b7280;
}

.ads4__btn {
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(0,0,0,.06);
    color: #111;
    align-self: flex-start;
}

/* ===== PREMIUM ===== */

.ads4__card--prem {
    background: linear-gradient(180deg, #ffffff, #f1f3f5);
    border: 2px solid #111;              /* тёмная рамка */
}

.ads4__card--prem:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
    border-color: #000;                  /* чуть плотнее на hover */
}

.ads4__card--prem .ads4__btn {
    background: #111;
    color: #fff;
}

/* BADGE (спокойный, системный) */

.ads4__badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #111;
    border: 1px solid rgba(0,0,0,.1);
    font-weight: 500;
}

/* MOBILE */

@media (max-width: 700px) {
    .ads4 {
        --card-w: 300px;
        padding: 0 16px;
    }
}
