/* --- TRUST BAR — клиенты: премиальная лента логотипов --- */
.trust-bar {
    position: relative;
    z-index: 10;
    padding: clamp(40px, 6vw, 56px) 0 clamp(36px, 5vw, 48px);
    overflow: hidden;
    user-select: none;
    isolation: isolate;
    border-top: 1px solid rgba(255, 215, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background:
        radial-gradient(ellipse 85% 95% at 50% -35%, rgba(251, 191, 36, 0.11), transparent 52%),
        radial-gradient(ellipse 50% 70% at 100% 50%, rgba(251, 191, 36, 0.04), transparent 45%),
        radial-gradient(ellipse 45% 65% at 0% 55%, rgba(120, 140, 200, 0.05), transparent 42%),
        linear-gradient(180deg, #070708 0%, #050506 48%, #070708 100%);
}

/* Тонкая сетка + верхний «архитектурный» акцент */
.trust-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 8%, rgba(251, 191, 36, 0.55) 50%, transparent 92%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 3;
}

.trust-bar-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

/* --- Заголовок --- */
.trust-bar-header {
    text-align: center;
    margin-bottom: clamp(22px, 4vw, 34px);
    position: relative;
    z-index: 2;
}

.trust-bar-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(251, 191, 36, 0.88);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.trust-bar-title {
    font-family: var(--font-h);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1.15;
}

.trust-bar-title span {
    color: var(--accent);
}

.trust-bar-header::after {
    content: '';
    display: block;
    width: min(72px, 18vw);
    height: 2px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.65), transparent);
    opacity: 0.9;
}

/* --- Рамка ленты + fade по краям --- */
.trust-bar-marquee {
    position: relative;
    z-index: 2;
    margin: 0 clamp(-12px, -2vw, 0);
}

.trust-bar-marquee::before,
.trust-bar-marquee::after {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    width: clamp(48px, 10vw, 120px);
    z-index: 4;
    pointer-events: none;
}

.trust-bar-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #070708 0%, rgba(7, 7, 8, 0.92) 35%, transparent 100%);
}

.trust-bar-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, #070708 0%, rgba(7, 7, 8, 0.92) 35%, transparent 100%);
}

/* --- Marquee --- */
.trust-bar-track {
    display: flex;
    width: max-content;
    animation: trustMarquee 52s linear infinite;
    will-change: transform;
}

.trust-bar-track:hover {
    animation-play-state: paused;
}

.trust-bar-slide {
    display: flex;
    align-items: center;
    gap: clamp(32px, 4.5vw, 56px);
    padding: 6px clamp(14px, 2.5vw, 28px);
    flex-shrink: 0;
}

/* Карточка: тёмное стекло + золотая кайма + светлая «матрица» только под логотипом */
.trust-bar-logo {
    position: relative;
    flex-shrink: 0;
    isolation: isolate;
    width: clamp(198px, 21vw, 292px);
    height: clamp(72px, 7.8vw, 96px);
    padding: 8px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.15) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 36px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.45s ease;
    overflow: visible;
}

.trust-bar-logo::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    z-index: 0;
    background: linear-gradient(185deg, #fcfcfa 0%, #ebe9e4 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.trust-bar-logo:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 16px 48px rgba(0, 0, 0, 0.48),
        0 0 36px -8px rgba(255, 215, 0, 0.22);
}

.trust-bar-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 4px 10px;
    object-fit: contain;
    display: block;
    filter: saturate(0.72) contrast(1.05);
    transition: filter 0.35s ease;
}

.trust-bar-logo:hover img {
    filter: saturate(0.88) contrast(1.06);
}

/* Тёмный клиент — приглушённая тёмная подложка вместо белой */
.trust-bar-logo--dark::before {
    background: linear-gradient(165deg, #1e2a1f 0%, #152018 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -2px 12px rgba(0, 0, 0, 0.35);
}

.trust-bar-logo--dark img {
    filter: saturate(0.85) contrast(1.08) brightness(1.05);
}

.trust-bar-logo--dark:hover img {
    filter: saturate(1) contrast(1.08) brightness(1.08);
}

/* PNG с цветом — чуть мягче на светлой подложке */
.trust-bar-logo--blend img {
    filter: saturate(0.68) contrast(1.07);
}

.trust-bar-logo--blend:hover img {
    filter: saturate(0.82) contrast(1.07);
}

@keyframes trustMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-bar-track {
        animation: none;
    }

    .trust-bar-logo:hover {
        transform: none;
    }
}

@media (max-width: 992px) {
    .trust-bar-header {
        margin-bottom: 22px;
    }
}

@media (max-width: 768px) {
    .trust-bar-logo {
        width: 172px;
        height: 62px;
        padding: 7px;
        border-radius: 13px;
    }

    .trust-bar-logo::before {
        inset: 7px;
        border-radius: 9px;
    }

    .trust-bar-slide {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .trust-bar-logo {
        width: 148px;
        height: 54px;
        padding: 6px;
    }

    .trust-bar-logo::before {
        inset: 6px;
        border-radius: 8px;
    }

    .trust-bar-slide {
        gap: 20px;
    }
}
