/* [nexora] Витрина платформ и технологий на главной (блок «Разработка под ключ»). Только .nx-tech. */
.nx-tech {
    position: relative; margin: 28px auto 30px; padding: 18px 0; max-width: 1080px;
    display: flex; flex-direction: column; gap: 14px; isolation: isolate;
}
/* мягкие цветные пятна за стеклом — чтобы был виден эффект матового стекла */
.nx-tech::before, .nx-tech::after {
    content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(48px); opacity: .55; pointer-events: none;
}
.nx-tech::before { width: 46%; height: 70%; left: 6%; top: 8%; background: radial-gradient(circle, rgba(103, 114, 229, .45), transparent 70%); }
.nx-tech::after { width: 40%; height: 70%; right: 6%; bottom: 4%; background: radial-gradient(circle, rgba(192, 139, 255, .42), transparent 70%); }

.nx-tech__row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.nx-tech__track { display: flex; width: max-content; animation: nx-tech-marquee 48s linear infinite; will-change: transform; }
.nx-tech__row--rev .nx-tech__track { animation-duration: 56s; animation-direction: reverse; }
.nx-tech__row:hover .nx-tech__track, .nx-tech__row:focus-within .nx-tech__track { animation-play-state: paused; }
.nx-tech__list { display: flex; gap: 12px; margin: 0; padding: 6px 6px; list-style: none; }

.nx-tech__item {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    width: 128px; height: 92px; padding: 10px 8px; border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 8px 24px -14px rgba(48, 52, 120, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    color: #8a8fa8;
    transition: color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    animation: nx-tech-float 6s ease-in-out infinite;
}
.nx-tech__item:nth-child(3n+2) { animation-delay: -2s; }
.nx-tech__item:nth-child(3n+3) { animation-delay: -4s; }
.nx-tech__item svg { width: 30px; height: 30px; display: block; fill: currentColor; transition: transform .3s ease; }
.nx-tech__item span { font-size: 12px; line-height: 1.2; font-weight: 500; color: #6b7090; text-align: center; white-space: nowrap; letter-spacing: .01em; max-width: 100%; text-wrap: balance; }
.nx-tech__item:hover {
    color: var(--c, #6772e5); transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--c, #6772e5) 55%, transparent), inset 0 1px 0 #fff;
}
.nx-tech__item:hover svg { transform: scale(1.08); }
.nx-tech__item:hover span { color: #3d4160; }

@keyframes nx-tech-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nx-tech-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

@media (max-width: 767px) {
    .nx-tech { margin: 22px -12px 24px; padding: 12px 0; gap: 10px; }
    .nx-tech__item { width: 104px; height: 80px; border-radius: 14px; gap: 6px; }
    .nx-tech__item svg { width: 26px; height: 26px; }
    .nx-tech__item span { font-size: 11px; white-space: normal; }
    .nx-tech__list { gap: 10px; }
    .nx-tech__track { animation-duration: 40s; }
    .nx-tech__row--rev .nx-tech__track { animation-duration: 46s; }
}
/* касание: цвет брендов сразу (нет hover) */
@media (hover: none) { .nx-tech__item { color: var(--c, #6772e5); } }
/* без анимации: статичная сетка, без дублей */
@media (prefers-reduced-motion: reduce) {
    .nx-tech__row { -webkit-mask-image: none; mask-image: none; }
    .nx-tech__track { animation: none; width: auto; justify-content: center; }
    .nx-tech__list { flex-wrap: wrap; justify-content: center; }
    .nx-tech__list--dup { display: none; }
    .nx-tech__item { animation: none; transition: none; }
}
