/* Block: Logo traka */
.rw-block-logo-strip .rw-lead { max-width: 44em; margin: -16px auto 32px; }
.rw-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rw-logos li { flex: 0 1 calc(50% - 6px); display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 16px; border: 1px solid var(--rw-line); border-radius: 14px; background: #fff; transition: border-color .2s; }
.rw-logos li:hover { border-color: rgba(164, 123, 44, .45); }
.rw-logos a, .rw-logos .rw-ghost-a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; }
.rw-logos img { width: auto; height: auto; max-width: 140px; max-height: 44px; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.rw-logos li:hover img { filter: none; opacity: 1; }
.rw-logo-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: #6b7480; }
.rw-logos li:hover .rw-logo-name { color: var(--rw-dark); }

@media (min-width: 768px) {
    .rw-logos li { flex-basis: calc(25% - 9px); }
}

/* 3 logos in a row on phones, 4 on tablets */
@media (max-width: 767px) {
    .rw-block-logo-strip .rw-lead { margin: -10px auto 20px; }
    .rw-logos { gap: 8px; }
    .rw-logos li { flex-basis: calc(33.333% - 6px); min-height: 60px; padding: 8px 6px; border-radius: 12px; }
    /* 3 in a row; 4 or 7 logos would leave one alone: 2 in a row instead (1.28.0, rule 15) */
    .rw-logos:has(> li:nth-child(3n + 1):last-child) li { flex-basis: calc(50% - 4px); }
    .rw-logos:has(> li:nth-child(3n + 1):last-child):has(> li:nth-child(odd):last-child) li:last-child { flex-basis: 100%; }
    .rw-logos a, .rw-logos .rw-ghost-a { min-height: 44px; }
    .rw-logos img { max-width: 100%; max-height: 30px; }
    .rw-logo-name { font-size: .875rem; text-align: center; overflow-wrap: anywhere; }
}

/* Animacije → Pokretna traka partnera (1.11.0): site.js wraps the list in
   .rw-marquee and repeats the logos once (hidden from screen readers), so
   the row moves on without a seam; it stops on hover and keyboard focus. */
@media screen and (prefers-reduced-motion: no-preference) {
    .rw-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
    .rw-marquee .rw-logos { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: rw-marquee var(--rw-marquee-time, 40s) linear infinite; }
    .rw-marquee .rw-logos li { flex: 0 0 auto; width: 200px; margin-right: 12px; }
    .rw-marquee:hover .rw-logos, .rw-marquee:focus-within .rw-logos { animation-play-state: paused; }
    @media (max-width: 767px) {
        .rw-marquee .rw-logos li { width: 128px; margin-right: 8px; }
    }
}
@keyframes rw-marquee { to { transform: translate3d(-50%, 0, 0); } }
