/* ══════════════════════════════════════════════════════════
   UACompany — новини: картки, головна новина, стаття, галереї
   ══════════════════════════════════════════════════════════ */

/* поява при прокрутці */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ── шапка списку */
.news-hero { padding: 64px 0 18px; position: relative; }
.nh-title { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: .2em; }
.nh-sub { max-width: 620px; font-size: 1.05rem; }
.nh-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.nh-stats b { font-family: var(--display); font-size: 1.6rem; color: #fff; margin-right: 6px; }
[data-scramble] { display: inline-block; }

/* ── головна новина */
.feat { position: relative; display: grid; min-height: 460px; border-radius: 26px; overflow: hidden; color: #fff; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--a1) 55%, #000); }
.feat-img { position: absolute; inset: -30px; z-index: -2; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.06); transition: transform .25s ease-out; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.feat-fx { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8,4,6,.94) 0%, rgba(8,4,6,.72) 42%, rgba(8,4,6,.1) 78%),
  radial-gradient(600px 300px at var(--mx, 70%) var(--my, 40%), color-mix(in srgb, var(--a2) 22%, transparent), transparent 70%); }
.feat-body { align-self: end; padding: clamp(24px, 4vw, 48px); max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.feat-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat-lead { color: #eadfd9; font-size: 1.05rem; }
.feat-btn { align-self: flex-start; }
.feat:hover .feat-btn { transform: translateX(6px); }
.btn-gold { background: linear-gradient(90deg, #ffb300, #ffd23f); color: #1a0d00 !important; border: 0; font-weight: 800; box-shadow: 0 10px 30px -10px rgba(255,190,0,.6); }
.btn-gold:hover { filter: brightness(1.08); }

/* ── фільтри */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.chip { font: 700 .9rem var(--font); color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .25s; }
.chip i { font-style: normal; opacity: .6; margin-left: 4px; }
.chip:hover { color: #fff; border-color: var(--line2); }
.chip.on { color: #fff; background: linear-gradient(90deg, rgba(255,46,69,.35), rgba(255,122,26,.25)); border-color: rgba(255,46,69,.6); box-shadow: 0 6px 20px -8px rgba(255,46,69,.6); }

/* ── сітка карток */
.nc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nc-grid.three { grid-template-columns: repeat(3, 1fr); }
.nc { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--line); color: var(--text) !important; transform-style: preserve-3d; will-change: transform;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, opacity .4s; }
.nc.in { transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, opacity .4s; }
.nc:hover { --lift: -6px; border-color: color-mix(in srgb, var(--a1) 60%, transparent); box-shadow: 0 26px 60px -24px color-mix(in srgb, var(--a1) 60%, #000); }
.nc.hide { display: none; }
.nc-media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; display: block; background: #120a0c; }
.nc-media img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.nc:hover .nc-media img { transform: scale(1.07); filter: saturate(1.15); }
.nc-gen { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--a1) 55%, #000), #0d0709 70%); }
.nc-gen b { font-size: 4rem; filter: drop-shadow(0 6px 20px var(--a1)); }
.nc-shine { position: absolute; inset: 0; background: radial-gradient(260px 160px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 70%); opacity: 0; transition: opacity .3s; mix-blend-mode: overlay; }
.nc:hover .nc-shine { opacity: 1; }
.nc-icon { position: absolute; left: 14px; bottom: -18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--a1), var(--a2)); color: #120a00; box-shadow: 0 8px 20px -6px var(--a1); transform: translateZ(30px); }
.nc-new { position: absolute; top: 12px; right: 12px; font: 800 .72rem var(--display); letter-spacing: .08em; padding: 5px 10px; border-radius: 8px; color: #fff;
  background: linear-gradient(90deg, #ff2e45, #ff7a1a); box-shadow: 0 0 0 0 rgba(255,46,69,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,46,69,.6); } 70% { box-shadow: 0 0 0 12px rgba(255,46,69,0); } 100% { box-shadow: 0 0 0 0 rgba(255,46,69,0); } }
.nc-body { display: flex; flex-direction: column; gap: 10px; padding: 30px 18px 18px; flex: 1; }
.nc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.nc-tag { font-weight: 800; color: #120a00; background: linear-gradient(90deg, var(--a1, #ff2e45), var(--a2, #ff7a1a)); padding: 2px 10px; border-radius: 999px; }
.nc-pin { color: #ffd23f; font-weight: 700; }
.nc-title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; color: #fff; }
.nc-lead { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-foot { margin-top: auto; display: flex; gap: 14px; align-items: center; font-size: .85rem; color: var(--dim); padding-top: 6px; border-top: 1px dashed var(--line); }
.nc-go { margin-left: auto; color: var(--a2, #ffd23f); font-weight: 800; }
.nc-go i { font-style: normal; display: inline-block; transition: transform .3s; }
.nc:hover .nc-go i { transform: translateX(5px); }

/* ── хронологія */
.tl { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 14px; }
.tl::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #ff2e45, #ff7a1a 40%, rgba(255,122,26,.1)); }
.tl-i { position: relative; }
.tl-dot { position: absolute; left: -28px; top: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #120a0c; border: 2px solid var(--a1); font-size: .9rem; box-shadow: 0 0 18px -4px var(--a1); }
.tl-card { display: block; margin-left: 14px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: #fff !important; transition: transform .25s, border-color .25s, background .25s; }
.tl-card:hover { transform: translateX(6px); border-color: var(--a1); background: var(--card-h); }
.tl-date { display: block; font-size: .8rem; color: var(--muted); }

/* ══ стаття ══ */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 50; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 0 12px var(--a1); }
.art-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; margin-bottom: 18px; }
.art-hero.no-cover { min-height: 300px; background: radial-gradient(800px 300px at 20% 0%, color-mix(in srgb, var(--a1) 30%, transparent), transparent); }
.art-cover { position: absolute; inset: -40px 0 0; z-index: -2; transform: translate3d(0, var(--sy, 0), 0) scale(1.05); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.art-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,6,7,.25) 0%, rgba(10,6,7,.6) 55%, var(--bg) 100%); }
.art-hero-in { padding-bottom: 26px; padding-top: 90px; width: 100%; }
.art-title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin: 12px 0 10px; background: linear-gradient(90deg, #fff 30%, var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-icon { -webkit-text-fill-color: initial; color: var(--a2); filter: drop-shadow(0 0 14px var(--a1)); }
.art-lead { font-size: 1.15rem; color: #efe2d9; max-width: 760px; }
.art-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.art-body { display: flex; flex-direction: column; gap: 26px; padding-bottom: 20px; }
.blk { margin: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose b { color: #fff; }

/* лічильники */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 16%, transparent), rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent); }
.stat b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.1; color: #fff; }
.stat b small { font-size: .9rem; color: var(--a2); margin-left: 3px; }
.stat > span { color: var(--muted); font-size: .88rem; }

/* кроки */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 16px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps h4 { margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 1.1rem var(--display); color: #120a00; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 20px -8px var(--a1); }

/* колода фото */
.deck { position: relative; }
.deck-stage { position: relative; aspect-ratio: 1200 / 750; perspective: 1400px; touch-action: pan-y; user-select: none; }
.deck-card { position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden; background: #0d0709; border: 1px solid rgba(255,255,255,.1); cursor: grab;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.9); transform-origin: 50% 120%;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s, filter .4s; }
.deck-card.drag { transition: none; cursor: grabbing; }
.deck-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; image-rendering: auto; }
.deck-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.85)); transform: translateY(var(--cap, 0)); transition: transform .4s; }
.deck-ui { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.deck-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: all .25s; }
.deck-btn:hover { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #120a00; transform: scale(1.08); }
.deck-dots { display: flex; gap: 8px; }
.deck-dots i { width: 9px; height: 9px; border-radius: 9px; background: rgba(255,255,255,.2); transition: all .3s; cursor: pointer; }
.deck-dots i.on { width: 26px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.deck-hint { text-align: center; color: var(--dim); font-size: .82rem; margin: 8px 0 0; }

/* картки-перевертні */
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.flip { position: relative; height: 210px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; font: inherit; color: inherit; text-align: left; }
.flip-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.4,.4,1); }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip-f, .flip-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.flip-f { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #140c0e), #0f0809 75%); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.flip-f b { font-family: var(--display); font-size: 1.05rem; color: #fff; margin-top: auto; }
.flip-f small { color: var(--c); font-weight: 700; }
.flip-f em { font-style: normal; font-size: .75rem; color: var(--dim); }
.flip-ic { font-size: 2.2rem; filter: drop-shadow(0 6px 16px var(--c)); transition: transform .4s; }
.flip:hover .flip-ic { transform: scale(1.15) rotate(-6deg); }
.flip-b { transform: rotateY(180deg); background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 40%, #1a0d0d)); color: #120a00; justify-content: center; }
.flip-b b { font-family: var(--display); font-size: 1rem; }
.flip-b span { font-weight: 600; font-size: .92rem; line-height: 1.45; }
.flip:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 18px; }

/* до / після */
.compare { position: relative; aspect-ratio: 1200 / 750; border-radius: 18px; overflow: hidden; --pos: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9); }
.compare > img, .cmp-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 20px rgba(255,255,255,.7); pointer-events: none; }
.cmp-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800;
  background: linear-gradient(135deg, var(--a1), var(--a2)); color: #120a00; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-l, .cmp-r { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); pointer-events: none; }
.cmp-l { left: 14px; } .cmp-r { right: 14px; }

/* таблиця */
.tbl-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.ntable { width: 100%; border-collapse: collapse; }
.ntable th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--a2); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ntable td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
.ntable td.b { font-weight: 800; color: #fff; }
.ntable tr { transition: background .2s; }
.ntable tbody tr:hover { background: color-mix(in srgb, var(--a1) 12%, transparent); }

/* рулетка */
.roul { padding: 18px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 18%, #0f0a14), #0b080c); border: 1px solid color-mix(in srgb, var(--a1) 35%, transparent); }
.roul-win { position: relative; overflow: hidden; border-radius: 12px; background: #08060a; padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.roul-strip { display: flex; gap: 10px; width: max-content; transform: translateX(var(--tx, 0)); }
.roul-it { flex: none; width: 140px; height: 86px; display: grid; place-items: center; text-align: center; padding: 6px; border-radius: 10px; font-weight: 800; font-size: .9rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #141018), #0f0c12); border-bottom: 4px solid var(--c); color: #fff; }
.roul-it.win { box-shadow: 0 0 0 2px var(--c), 0 0 30px var(--c); transform: scale(1.06); transition: all .3s; }
.roul-mark { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #ffd23f; box-shadow: 0 0 14px #ffd23f; }
.roul-ui { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.roul-res { font-weight: 800; color: var(--muted); }

/* наближення */
.zoom { margin: 0; }
.zoom-view { position: relative; aspect-ratio: 1; max-height: 640px; width: 100%; overflow: hidden; border-radius: 18px; background: #0a0607; border: 1px solid rgba(255,255,255,.1); cursor: grab; touch-action: none; }
.zoom-view img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; transform: translate(var(--zx, 0), var(--zy, 0)) scale(var(--zs, 1)); image-rendering: pixelated; }
.zoom-view.drag { cursor: grabbing; }
.zoom { position: relative; }
.zoom-ui { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.zoom-ui button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(10,6,7,.8); color: #fff; font-size: 1.2rem; cursor: pointer; }
.zoom-ui button:hover { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #120a00; }
.zoom figcaption, .deck figcaption { color: #fff; }
.zoom > figcaption { color: var(--muted); text-align: center; margin-top: 10px; font-size: .88rem; }

/* розкрити */
.reveal { border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.reveal-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: none; border: 0; color: #fff; font: 700 1rem var(--font); cursor: pointer; text-align: left; }
.reveal-q i { font-style: normal; font-size: 1.4rem; color: var(--a2); transition: transform .35s; }
.reveal.open .reveal-q i { transform: rotate(45deg); }
.reveal-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.reveal-a > div { overflow: hidden; padding: 0 18px; color: var(--muted); }
.reveal.open .reveal-a { grid-template-rows: 1fr; }
.reveal.open .reveal-a > div { padding-bottom: 14px; }

/* порада */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border-left: 4px solid var(--a1); background: linear-gradient(90deg, color-mix(in srgb, var(--a1) 14%, transparent), transparent); }
.callout-ic { font-size: 1.6rem; }
.callout p { margin: 0; }

/* кнопки-заклики */
.cta { text-align: center; padding: 26px; border-radius: 20px; background: radial-gradient(500px 160px at 50% 0%, color-mix(in srgb, var(--a1) 30%, transparent), transparent), var(--card); border: 1px solid color-mix(in srgb, var(--a1) 35%, transparent); }
.cta-t p { font-size: 1.1rem; font-weight: 700; color: #fff; }
.cta-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* реакції */
.reacts { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.reacts-q { font-weight: 700; color: var(--muted); padding: 0 8px; font-size: .9rem; }
.react { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; background: rgba(255,255,255,.05); color: #fff; font: 700 .95rem var(--font); cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.react:hover { transform: translateY(-2px) scale(1.05); background: rgba(255,255,255,.1); }
.react.on { background: linear-gradient(90deg, color-mix(in srgb, var(--a1) 45%, transparent), color-mix(in srgb, var(--a2) 30%, transparent)); border-color: var(--a1); }
.react-e { font-size: 1.15rem; display: inline-block; }
.react.pop .react-e { animation: popE .5s cubic-bezier(.3,1.6,.4,1); }
@keyframes popE { 0% { transform: scale(1); } 40% { transform: scale(1.7) rotate(-12deg); } 100% { transform: scale(1); } }
.burst { position: fixed; pointer-events: none; z-index: 80; font-size: 1.2rem; animation: burst .9s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--bx), var(--by)) scale(.4) rotate(var(--br)); opacity: 0; } }
.art-end { text-align: center; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.art-end h3 { margin-bottom: 14px; }

/* навігація статтями */
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-nav-a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: #fff !important; transition: border-color .25s, transform .25s; }
.art-nav-a small { color: var(--muted); }
.art-nav-a.r { text-align: right; }
.art-nav-a:hover { border-color: var(--a1); transform: translateY(-3px); }

/* лайтбокс */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5,3,4,.92); backdrop-filter: blur(8px); animation: fadeIn .25s; }
.lb[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lb figure { margin: 0; max-width: min(1300px, 94vw); text-align: center; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.8); animation: zoomIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes zoomIn { from { transform: scale(.92); opacity: 0; } }
.lb figcaption { margin-top: 12px; color: #eadfd9; font-weight: 700; }
.lb-x, .lb-nav { position: absolute; border: 1px solid rgba(255,255,255,.2); background: rgba(20,12,14,.8); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb-x { top: 18px; right: 18px; }
.lb-nav.l { left: 18px; top: 50%; } .lb-nav.r { right: 18px; top: 50%; }

@media (max-width: 900px) {
  .nc-grid, .nc-grid.three { grid-template-columns: 1fr 1fr; }
  .feat { min-height: 420px; }
  .feat-fx { background: linear-gradient(0deg, rgba(8,4,6,.96) 10%, rgba(8,4,6,.55) 60%, rgba(8,4,6,.15)); }
}
@media (max-width: 600px) {
  .nc-grid, .nc-grid.three { grid-template-columns: 1fr; }
  .art-hero { min-height: 420px; }
  .flips { grid-template-columns: 1fr 1fr; }
  .flip { height: 200px; }
  .flip-b span { font-size: .84rem; }
  .art-nav { grid-template-columns: 1fr; }
  .lb-nav { display: none; }
  .roul-it { width: 110px; height: 72px; font-size: .8rem; }
}
