/* Оформление ограничено блоком кейсов; остальные слайдеры используют прежние стили. */
.cases--showcase { --cases-tool:#0d99ff; --cases-brand:#f0531c; --cases-ink:#14202b; overflow:hidden; position:relative; isolation:isolate; background-color:#142b46; }
.cases--showcase > .container { width:100%; max-width:none; padding:0; position:relative; z-index:1; }
.cases--showcase .title h2,.cases--showcase .title h3,.cases--showcase .line-btn,.cases--showcase .line-btn p,.cases--showcase .line-btn a,.cases--showcase .line-btn a span { color:#f5f9ff; }
.cases--showcase .title p { color:#c5d6e8; }
.cases--showcase .line-btn a span { border-color:currentColor; }
.cases--showcase .line-btn svg path { stroke:currentColor; }
.cases--showcase .line-btn a:hover { color:#9cd5ff; }
.cases--showcase .line-btn a:hover span { color:#9cd5ff; }
.cases--showcase .line-btn a span::before { background:currentColor; }
/* Перспективная галерея: дальние элементы меньше, спокойнее и медленнее ближних. */
.cases-field { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; background:url("cases-depth.svg") center / 100% 100% no-repeat; }
.cases-field__item { position:absolute; left:-280px; top:var(--y); width:180px; height:80px; opacity:var(--alpha,.8); animation:cases-field-flow var(--duration,50s) linear var(--delay,0s) infinite paused; }
.cases-field__item::before,.cases-field__item::after { content:""; position:absolute; box-sizing:border-box; }
.cases-field__item--frame::before { inset:0; border:1px solid rgba(134,202,246,.4); border-radius:8px; background:linear-gradient(135deg,rgba(103,181,234,.09),rgba(103,181,234,.015)); box-shadow:12px 16px 30px rgba(2,12,25,.18),inset 0 1px 0 rgba(185,225,255,.08); }
.cases-field__item--frame::after { left:14px; top:16px; width:46px; height:3px; background:rgba(134,202,246,.27); box-shadow:0 12px 0 rgba(134,202,246,.13); }
.cases-field__item--strokes { width:220px; height:30px; }
.cases-field__item--strokes::before { left:0; top:12px; width:180px; height:1px; background:linear-gradient(90deg,transparent,rgba(134,202,246,.48)); }
.cases-field__item--strokes::after { right:24px; top:8px; width:9px; height:9px; border:1px solid rgba(134,202,246,.48); background:#203d59; }
.cases-field__item--diamond { width:40px; height:40px; }
.cases-field__item--diamond::before { inset:6px; transform:rotate(45deg); border:1px solid rgba(134,202,246,.4); background:rgba(103,181,234,.04); }
.cases-field__item:nth-child(1) { --y:9%; --duration:72s; --delay:-18s; --offset:12vw; --depth:-280px; --turn:-22deg; --alpha:.65; }
.cases-field__item:nth-child(2) { --y:24%; --duration:96s; --delay:-66s; --offset:62vw; --depth:-650px; --turn:18deg; --alpha:.4; }
.cases-field__item:nth-child(3) { --y:40%; --duration:110s; --delay:-24s; --offset:33vw; --depth:-800px; --turn:-16deg; --alpha:.35; }
.cases-field__item:nth-child(4) { --y:63%; --duration:82s; --delay:-59s; --offset:75vw; --depth:-400px; --turn:26deg; --alpha:.55; width:150px; height:86px; }
.cases-field__item:nth-child(5) { --y:79%; --duration:58s; --delay:-24s; --offset:20vw; --depth:-120px; --turn:-18deg; --alpha:.8; }
.cases-field__item:nth-child(6) { --y:83%; --duration:52s; --delay:-39s; --offset:65vw; --depth:0px; --turn:-28deg; --alpha:.85; width:220px; height:110px; }
.cases-field__item:nth-child(7) { --y:92%; --duration:48s; --delay:-12s; --offset:8vw; --depth:0px; --turn:20deg; --alpha:.8; }
.cases-field__item:nth-child(8) { --y:13%; --duration:88s; --delay:-68s; --offset:80vw; --depth:-500px; --turn:16deg; --alpha:.5; }
/* Всего семь квадратов с хвостом; каждый проходит свою горизонтальную траекторию. */
.cases-field__item:nth-child(9) { --y:6%; --duration:60s; --delay:-12s; --offset:16vw; --depth:-180px; --turn:-12deg; --alpha:.8; }
.cases-field__item:nth-child(10) { --y:37%; --duration:72s; --delay:-31s; --offset:38vw; --depth:-80px; --turn:14deg; --alpha:.75; }
.cases-field__item:nth-child(11) { --y:64%; --duration:64s; --delay:-42s; --offset:58vw; --depth:-350px; --turn:-16deg; --alpha:.65; }
.cases-field__item:nth-child(12) { --y:92%; --duration:54s; --delay:-47s; --offset:78vw; --depth:0px; --turn:12deg; --alpha:.85; }
.cases--showcase.is-background-running .cases-field__item { animation-play-state:running; }
@keyframes cases-field-flow { from { transform:translateX(0) perspective(900px) translateZ(var(--depth,0px)) rotateY(var(--turn,0deg)); } to { transform:translateX(calc(100vw + 560px)) perspective(900px) translateZ(var(--depth,0px)) rotateY(var(--turn,0deg)); } }
.cases--showcase > .container > .title,.cases--showcase > .container > .line-btn { padding-left:15px; padding-right:15px; }
.cases--showcase > .container > .title { margin-bottom:20px; }
.cases--showcase .cases-showcase { margin:0; position:relative; min-width:0; }
.cases--showcase .cases-showcase__viewport { overflow-x:auto; overflow-y:hidden; padding:26px 0 52px; touch-action:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.cases--showcase .cases-showcase__viewport::-webkit-scrollbar { display:none; }
/* Нативная прокрутка остаётся резервным режимом, но её полоса не мелькает при загрузке. */
.cases--showcase .is-slider-loading .cases-showcase__viewport { overflow:hidden; }
.cases--showcase .is-slider-loading:not(.is-slider-ready) .cases-showcase__slide:not(:first-child) { visibility:hidden; }
.cases--showcase .is-slider-loading .cases-shell { transition:none; }
.cases--showcase .has-slider-controls .cases-showcase__controls[hidden] { display:block; visibility:hidden; }
.cases--showcase .has-slider-controls .cases-dots { min-height:28px; }
.cases--showcase .is-slider-ready .cases-showcase__viewport { overflow:hidden; scroll-snap-type:none; touch-action:pan-y; }
.cases--showcase .cases-showcase__track { display:flex; align-items:center; height:auto; box-sizing:content-box; transition-timing-function:cubic-bezier(.22,.9,.24,1); }
.cases--showcase .cases-showcase__slide { width:42.4vw; flex:0 0 auto; height:auto; padding:0; box-sizing:border-box; scroll-snap-align:center; }
.cases--showcase .cases-showcase:not(.is-slider-ready) .cases-showcase__track { gap:20px; padding:0 max(15px,calc((100% - 42.4vw)/2)); }
.cases--showcase .cases-shell { position:relative; padding:1.38%; border:0; border-radius:20px; background:rgba(255,255,255,.42); box-shadow:0 26px 48px -30px rgba(20,32,43,.3); transform:scale(.86); opacity:.94; filter:saturate(.85); transition:transform .72s cubic-bezier(.22,.9,.24,1),opacity .5s,filter .5s; }
.cases--showcase .is-active .cases-shell,.cases--showcase .cases-showcase:not(.is-slider-ready) .cases-shell { transform:scale(1); opacity:1; filter:none; background:rgba(255,255,255,.55); box-shadow:0 32px 58px -32px rgba(20,32,43,.36); }
.cases--showcase .cases-shell::before { content:""; position:absolute; inset:-2px; border:2px solid var(--cases-tool); border-radius:22px; opacity:0; transition:opacity .35s; pointer-events:none; z-index:6; }
.cases--showcase .is-active .cases-shell::before,.cases--showcase .is-active .cases-handle,.cases--showcase .is-active .cases-label { opacity:1; }
.cases--showcase .cases-handle { position:absolute; width:9px; height:9px; box-sizing:border-box; background:#fff; border:2px solid var(--cases-tool); border-radius:2px; z-index:7; opacity:0; transition:opacity .35s; pointer-events:none; }
.cases--showcase .cases-handle--tl { top:-6px; left:-6px; }.cases--showcase .cases-handle--tr { top:-6px; right:-6px; }.cases--showcase .cases-handle--bl { bottom:-6px; left:-6px; }.cases--showcase .cases-handle--br { bottom:-6px; right:-6px; }
.cases--showcase .cases-label { position:absolute; top:-24px; left:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:700 10px/1.45 ui-monospace,monospace; color:#fff; background:var(--cases-tool); padding:2px 8px; border-radius:5px 5px 5px 1px; opacity:0; transition:opacity .35s; z-index:7; }
.cases--showcase .cases-card { background:#fff; border-radius:14px; padding:1.38% 1.38% 0; }
.cases--showcase .cases-card__image { position:relative; border-radius:9px; overflow:hidden; aspect-ratio:23/16; background:#e7ebee; width:100%; max-width:none; height:auto; box-shadow:none; }
.cases--showcase .cases-card__image img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.cases--showcase .cases-card__image img[hidden] { display:none; }
.cases--showcase .cases-card__caption { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:2.1% 1% 2.3%; flex-wrap:wrap; width:100%; max-width:none; min-width:0; }
.cases--showcase .cases-card__name { display:flex; align-items:center; gap:9px; color:var(--cases-ink); font-size:16px; line-height:1.15; font-weight:700; letter-spacing:-.022em; margin:0; min-width:0; overflow-wrap:anywhere; flex:1 1 auto; }
.cases--showcase .cases-card__name::before { content:""; width:7px; height:7px; flex:0 0 7px; border-radius:2px; background:var(--case-accent); }
.cases--showcase .cases-card__tags { display:flex; flex-wrap:wrap; gap:6px; min-width:0; max-width:100%; }
.cases--showcase .cases-card__tags span { font:700 9px/1.45 ui-monospace,monospace; letter-spacing:.09em; text-transform:uppercase; color:#4a6173; background:rgba(20,32,43,.043); border:1px solid rgba(20,32,43,.08); padding:4px 9px; border-radius:20px; overflow-wrap:anywhere; max-width:100%; }
.cases--showcase .is-active .cases-card__tags span:first-child { color:#a9320d; background:rgba(240,83,28,.07); border-color:rgba(240,83,28,.2); }
.cases--showcase .cases-showcase__controls[hidden] { display:none; }
.cases--showcase .cases-dots { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:10px; padding:0 15px; }
.cases--showcase .cases-dot { display:grid; place-items:center; width:30px; height:28px; padding:0; border:0; background:transparent; cursor:pointer; transition:width .32s; }
.cases--showcase .cases-dot::before { content:""; width:100%; height:7px; border-radius:4px; background:#8196ad; }
.cases--showcase .cases-dot[aria-current=true] { width:36px; }.cases--showcase .cases-dot[aria-current=true]::before { background:var(--cases-brand); }
.cases--showcase .cases-arrows { display:flex; gap:13px; justify-content:center; margin-top:10px; }
.cases--showcase .cases-arrows button { display:grid; place-items:center; width:37px; height:37px; padding:0; position:relative; border-radius:12px; border:0; background:#fff; color:var(--cases-ink); box-shadow:0 8px 18px -12px rgba(20,32,43,.5); cursor:pointer; transition:background .22s,color .22s,transform .22s; }
.cases--showcase .cases-arrows button::before { content:""; position:absolute; inset:-4px; }
.cases--showcase .cases-arrows button:hover { background:var(--cases-ink); color:#fff; transform:translateY(-2px); }
.cases--showcase .cases-arrows svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2.1; }
.cases--showcase .cases-showcase.is-slider-ready .cases-showcase__viewport { cursor:grab; }.cases--showcase .cases-showcase.is-grabbing .cases-showcase__viewport { cursor:grabbing; }
.cases--showcase .cases-drag { display:none; position:absolute; top:0; left:0; z-index:10; padding:8px 14px; border-radius:30px; background:rgba(32,42,53,.9); color:#fff; font:700 10px/1.45 ui-monospace,monospace; pointer-events:none; }
@media(hover:hover) and (pointer:fine) { .cases--showcase .is-pointer-over.is-slider-ready .cases-drag { display:block; } }
@media(max-width:900px) { .cases--showcase .cases-showcase__slide { width:62.4vw; }.cases--showcase .cases-shell { transform:scale(.9); }.cases--showcase .cases-card__image { aspect-ratio:4/3.2; }.cases--showcase .cases-showcase:not(.is-slider-ready) .cases-showcase__track { padding-inline:calc((100% - 62.4vw)/2); } }
@media(max-width:760px) { .cases--showcase .cases-showcase__slide { width:86vw; }.cases--showcase .cases-shell { transform:scale(.94); }.cases--showcase .cases-shell,.cases--showcase .is-active .cases-shell { box-shadow:none; }.cases--showcase .cases-card__image { aspect-ratio:3/3.5; }.cases--showcase .cases-card__caption { padding:14px 6px; }.cases--showcase .cases-showcase__viewport { padding:26px 0 14px; }.cases--showcase .cases-dots { margin-top:4px; }.cases--showcase .cases-arrows { margin-top:2px; }.cases--showcase .cases-showcase:not(.is-slider-ready) .cases-showcase__track { padding-inline:calc((100% - 86vw)/2); } }
@media(prefers-reduced-motion:reduce) { .cases--showcase .cases-shell,.cases--showcase .cases-shell::before,.cases--showcase .cases-handle,.cases--showcase .cases-label,.cases--showcase .cases-dot,.cases--showcase .cases-arrows button { transition:none; }.cases--showcase .cases-drag { display:none !important; } }

/* Контраст фокуса на тёмном поле. Движение фона управляется видимостью секции. */
.cases--showcase button:focus-visible,.cases--showcase .line-btn a:focus-visible { outline:3px solid #9cd5ff; outline-offset:4px; }
