/* =========================================================================
   hero-special.css — slajdy specjalne sekcji hero strony głównej (2026-12-02)
   Markup: includes/partials/hero-special.php · JS: assets/js/hero-special.js
   Przesuwanie: assets/js/main.js („3. HERO SLIDER”).
   Prefiks .hsx — własne style (Tailwind jest prekompilowany, nowe klasy
   utility by nie zadziałały). Każdy slajd ma własną paletę w zmiennych:
     --ink / --muted   tekst główny i pomocniczy
     --b1-*            przycisk główny, --b2-* przycisk drugorzędny
     --focus           obwódka fokusu klawiatury, --pill-*  plakietka nad tytułem
   Jedna wyrazista rzecz na slajd: ekran filmu · ekran teledysku z płytą ·
   cenówka „Wspieram” · kartka z oceną. Reszta spokojna.
   Wysokość slajdu = kontener (container-type: size) → jednostki cqh pilnują,
   żeby treść mieściła się bez ucinania także na niskich ekranach.
   ========================================================================= */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url('../vendor/bricolage/bricolage-grotesque-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url('../vendor/bricolage/bricolage-grotesque-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ─── sekcja i tor ─────────────────────────────────────────────────────── */
.hsx { --hsx-cut: 0px; background: #1c0306; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* Sekcja ma 100vh (min 500, max 750) i leży 4rem pod paskiem nawigacji, więc na telefonie i laptopie
   dolne ~4rem jest pod krawędzią ekranu. --hsx-cut = ta niewidoczna część (0–5rem): treść i nawigacja
   slajdów układają się w widocznym obszarze, a pod krawędzią zostaje samo tło. */
@supports (height: 1cqh) {
    .hsx { container-type: size; --hsx-cut: clamp(0px, calc(100cqh - 100vh + 4rem), 5rem); }
    @supports (height: 1svh) { .hsx { --hsx-cut: clamp(0px, calc(100cqh - 100svh + 4rem), 5rem); } }
}
.hsx *, .hsx *::before, .hsx *::after { box-sizing: border-box; }
.hsx-custom-link { flex: 0 0 100%; width: 100%; height: 100%; }          /* własny slajd owinięty w <a> */

.hsx-slide {
    --ink: #fff; --muted: rgba(255, 255, 255, .8); --focus: #FFD500;
    --b1-bg: #FFD500; --b1-fg: #2a0509; --b1-sh: rgba(0, 0, 0, .45);
    --b2-fg: #fff; --b2-line: rgba(255, 255, 255, .38); --b2-hover: rgba(255, 255, 255, .1);
    --pill-bg: rgba(255, 255, 255, .12); --pill-fg: #fff;
    overflow: hidden; isolation: isolate; container-type: size; color: var(--ink);
}
.hsx-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.hsx-in {
    position: relative; height: 100%; max-width: 78rem; margin: 0 auto;
    padding: 2.5rem clamp(1.5rem, 5vw, 4.5rem) calc(6rem + var(--hsx-cut));
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center;
    gap: clamp(2rem, 4.5vw, 5rem);
}
.hsx-copy { min-width: 0; }
.hsx-media { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; }

/* ─── typografia ───────────────────────────────────────────────────────── */
.hsx-kicker {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem;
    padding: .38rem .85rem; border-radius: 999px; background: var(--pill-bg); color: var(--pill-fg);
    font-size: .8125rem; font-weight: 600; line-height: 1.25;
}
.hsx-title {
    margin: 0; max-width: 19ch; color: var(--ink);
    font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; font-weight: 800;
    font-size: clamp(1.75rem, 3.3vw, 3.4rem);
    font-size: clamp(1.6rem, min(3.3vw, 6.6cqh), 3.4rem);
    line-height: 1.03; letter-spacing: -.028em; text-wrap: balance;
}
.hsx-lead {
    margin: 1rem 0 0; max-width: 46ch; color: var(--muted);
    font-size: clamp(.95rem, .82rem + .4vw, 1.0625rem); line-height: 1.55;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}

/* ─── przyciski ────────────────────────────────────────────────────────── */
.hsx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.75rem; }
.hsx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3rem; padding: .7rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
    font: 700 .975rem/1.2 'Inter', system-ui, sans-serif; text-decoration: none; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background-color .15s ease, filter .15s ease;
}
.hsx-btn .bi { font-size: 1.1em; line-height: 1; }
.hsx-btn-1 { background: var(--b1-bg); color: var(--b1-fg); box-shadow: 0 14px 28px -16px var(--b1-sh); }
.hsx-btn-1:hover { color: var(--b1-fg); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 18px 32px -16px var(--b1-sh); }
.hsx-btn-2 { background: transparent; color: var(--b2-fg); box-shadow: inset 0 0 0 1.5px var(--b2-line); }
.hsx-btn-2:hover { color: var(--b2-fg); background: var(--b2-hover); }
.hsx-btn:active { transform: translateY(0); }
.hsx :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hsx-nav :focus-visible { outline-color: #fff; }

/* ─── ekran wideo (film, teledysk) ─────────────────────────────────────── */
.hsx-player { position: relative; width: 100%; }
.hsx-screen {
    position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
    background: #120203; box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
}
.hsx img.hsx-poster, .hsx .hsx-poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.hsx-poster-empty { display: grid !important; place-items: center; font-size: 3rem; color: rgba(255, 255, 255, .25);
    background: radial-gradient(ellipse at 30% 20%, #6a0d17, #22040a 70%); }
.hsx img.is-broken { visibility: hidden; }
.hsx-frame { position: absolute; inset: 0; z-index: 2; }
.hsx-frame:empty { display: none; }
.hsx-frame iframe, .hsx-frame video { display: block; width: 100%; height: 100%; max-width: none; border: 0; background: #000; }
.hsx-bigplay {
    position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; cursor: pointer; color: #fff; text-decoration: none; font: inherit;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .42) 100%);
}
.hsx-bigplay-ico {
    width: clamp(64px, 7.5vw, 92px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    font-size: clamp(2.2rem, 3vw, 3.1rem); padding-left: .12em; color: #fff;
    background: linear-gradient(180deg, #ff2b37, #E30613 60%, #a50812);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .55), 0 0 0 10px rgba(255, 255, 255, .16);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hsx-bigplay:hover .hsx-bigplay-ico { transform: scale(1.06); box-shadow: 0 18px 40px -8px rgba(0, 0, 0, .6), 0 0 0 14px rgba(255, 255, 255, .2); }
.hsx-chip {
    position: absolute; left: .9rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .4rem;
    padding: .38rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff;
    background: rgba(12, 6, 8, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hsx-close {
    position: absolute; top: -.9rem; right: -.9rem; z-index: 4; display: none; place-items: center;
    width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; cursor: pointer;
    background: #fff; color: #1a1a1a; font-size: 1rem; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5);
}
.hsx-close:hover { background: #f1f1f1; }
.hsx-player.is-on .hsx-close { display: grid; }
.hsx-player.is-on .hsx-bigplay, .hsx-player.is-on .hsx-poster { visibility: hidden; }

/* ═════════════════════════════════════════════════════════════════════════
   1. FILM — kino: wino + rozmyty plakat, złoto jako akcent (jak sekcja filmu)
   ═════════════════════════════════════════════════════════════════════════ */
.hsx-s-film { background: linear-gradient(160deg, #3a070d 0%, #5e0a14 46%, #1c0306 100%); }
.hsx-s-film .hsx-bg-img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover;
    filter: blur(34px) saturate(1.25); opacity: .55; }
.hsx-s-film .hsx-bg::after { content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 10% 0%, rgba(255, 70, 80, .28), transparent 55%),
                linear-gradient(90deg, rgba(28, 3, 6, .94) 0%, rgba(28, 3, 6, .72) 48%, rgba(28, 3, 6, .38) 100%); }
.hsx-s-film .hsx-live { width: 8px; height: 8px; border-radius: 50%; background: #ff3b45; box-shadow: 0 0 0 3px rgba(255, 59, 69, .28); }
.hsx-s-film .hsx-screen { box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 213, 0, .28), 0 0 0 6px rgba(255, 213, 0, .07); }
.hsx-s-film .is-gated .hsx-bigplay { background: radial-gradient(ellipse at center, rgba(20, 2, 4, .35), rgba(20, 2, 4, .78)); }
.hsx-s-film .is-gated .hsx-bigplay-ico { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding-left: 0; font-size: clamp(1.8rem, 2.4vw, 2.4rem); }

.hsx-goal { margin-top: 1.4rem; max-width: 26rem; }
.hsx-goal-t { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }
.hsx-goal-t b { color: #fff; font-size: 1.15rem; font-weight: 800; }
.hsx-goal-left { font-weight: 600; color: #FFD500; white-space: nowrap; }
.hsx-goal-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.hsx-goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFD500, #ffb300); }
.hsx-goal.is-done .hsx-goal-left { color: #9be8b0; }

/* ═════════════════════════════════════════════════════════════════════════
   2. MUZYKA — karmazyn #B5122B / grafit #231F20 / róż #F2A7AD (jak muzyka.php)
   ═════════════════════════════════════════════════════════════════════════ */
.hsx-s-music {
    --ink: #231F20; --muted: #6F6668; --focus: #B5122B;
    --b1-bg: #B5122B; --b1-fg: #fff; --b1-sh: rgba(181, 18, 43, .7);
    --b2-fg: #231F20; --b2-line: rgba(35, 31, 32, .26); --b2-hover: rgba(181, 18, 43, .06);
    --pill-bg: #fff; --pill-fg: #7E0D22;
    background: linear-gradient(160deg, #FFF8F5 0%, #FBE6E2 100%);
}
.dark .hsx-s-music {
    --ink: #F3EEEE; --muted: #B9AFB1; --focus: #F2A7AD;
    --b2-fg: #F3EEEE; --b2-line: rgba(243, 238, 238, .3); --b2-hover: rgba(255, 255, 255, .06);
    --pill-bg: rgba(242, 167, 173, .14); --pill-fg: #F2A7AD;
    background: linear-gradient(160deg, #2A2527 0%, #151112 100%);
}
.hsx-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.hsx-w1 { fill: #B5122B; opacity: .09; }
.hsx-w2 { fill: #231F20; opacity: .05; }
.dark .hsx-w1 { opacity: .2; } .dark .hsx-w2 { fill: #000; opacity: .3; }
.hsx-s-music .hsx-kicker { box-shadow: 0 0 0 1px rgba(181, 18, 43, .14); }
.hsx-new { padding: .1rem .5rem; margin-left: -.45rem; border-radius: 999px; background: #B5122B; color: #fff; font-weight: 700; }
.hsx-artist { margin: .75rem 0 0; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.hsx-artist .bi { color: #B5122B; margin-right: .15rem; }
.dark .hsx-artist .bi { color: #F2A7AD; }
.hsx-s-music .hsx-lead { margin-top: .6rem; }
.hsx-more { margin: 1.25rem 0 0; font-size: .875rem; }
.hsx-more a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(181, 18, 43, .3); text-underline-offset: 4px; }
.hsx-more a:hover { color: #B5122B; text-decoration-color: currentColor; }
.dark .hsx-more a:hover { color: #F2A7AD; }
.hsx-more .bi { font-size: .75em; margin-left: .3rem; }

.hsx-s-music .hsx-player { margin-right: 9%; }
.hsx-s-music .hsx-screen { background: #231F20; box-shadow: 0 34px 60px -28px rgba(35, 31, 32, .7), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.dark .hsx-s-music .hsx-screen { box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.hsx-s-music .hsx-bigplay-ico { background: linear-gradient(180deg, #cf1835, #B5122B 60%, #7E0D22); }
/* płyta wysunięta zza ekranu; kręci się tylko podczas odtwarzania */
.hsx-vinyl {
    position: absolute; z-index: 0; top: 50%; right: -15%; width: 64%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 31%, rgba(255, 255, 255, .06) 31.5% 32%, transparent 32.5% 43%, rgba(255, 255, 255, .07) 43.5% 44%, transparent 44.5% 56%, rgba(255, 255, 255, .06) 56.5% 57%, transparent 57.5%),
        conic-gradient(from 30deg, #2A2527, #3C3537 12%, #1B1718 25%, #3C3537 38%, #2A2527 50%, #3C3537 62%, #1B1718 75%, #3C3537 88%, #2A2527);
    box-shadow: 0 24px 50px -24px rgba(35, 31, 32, .8);
}
.hsx-vinyl span { position: absolute; inset: 35%; border-radius: 50%; background: radial-gradient(circle, #231F20 0 9%, #B5122B 10% 62%, #7E0D22 63%); }
.hsx-player.is-on .hsx-vinyl { animation: hsxSpin 6s linear infinite; }
@keyframes hsxSpin { to { rotate: 1turn; } }

/* ═════════════════════════════════════════════════════════════════════════
   3. WSPIERAM — ciepły krem, cenówka na listwie półki (czerwień i złoto portalu)
   ═════════════════════════════════════════════════════════════════════════ */
.hsx-s-wsp {
    --ink: #2B0C10; --muted: #6E5557; --focus: #c10a15;
    --b1-bg: #E30613; --b1-fg: #fff; --b1-sh: rgba(227, 6, 19, .65);
    --b2-fg: #2B0C10; --b2-line: rgba(43, 12, 16, .25); --b2-hover: rgba(227, 6, 19, .05);
    --pill-bg: #FFD500; --pill-fg: #2B0C10;
    background: radial-gradient(ellipse at 85% 20%, rgba(255, 213, 0, .28), transparent 50%),
                radial-gradient(ellipse at 0% 100%, rgba(227, 6, 19, .1), transparent 55%),
                linear-gradient(160deg, #FDF8F1 0%, #F7EADB 100%);
}
.dark .hsx-s-wsp {
    --ink: #FFF4EF; --muted: #C4ADAE; --focus: #FFD500;
    --b2-fg: #FFF4EF; --b2-line: rgba(255, 244, 239, .3); --b2-hover: rgba(255, 255, 255, .06);
    background: radial-gradient(ellipse at 85% 20%, rgba(255, 213, 0, .1), transparent 50%),
                radial-gradient(ellipse at 0% 100%, rgba(227, 6, 19, .2), transparent 55%),
                linear-gradient(160deg, #1d1112 0%, #110a0b 100%);
}
.hsx-perks { list-style: none; margin: 1.35rem 0 0; padding: 0; display: grid; gap: .55rem; }
.hsx-perks li { display: flex; align-items: center; gap: .65rem; font-size: .98rem; font-weight: 600; color: var(--ink); }
.hsx-perks .bi { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: .9rem;
    background: rgba(227, 6, 19, .09); color: #c10a15; }
.dark .hsx-perks .bi { background: rgba(255, 213, 0, .12); color: #FFD500; }
.hsx-note { margin: 0; font-size: .92rem; color: var(--muted); }
.hsx-note b { color: var(--ink); }

.hsx-shelf { position: relative; width: min(100%, 27rem); padding: 1.5rem 0 2.2rem; }
/* krawędź półki: cenówka stoi na listwie (jasna górna krawędź, front, cień pod spodem) */
.hsx-rail {
    position: absolute; z-index: 0; left: -22%; right: -22%; bottom: 1.1rem; height: 1.6rem;
    background: linear-gradient(180deg, #fff 0 2px, #EDE5DB 2px 62%, #D8CCBE 62% 100%);
    box-shadow: 0 22px 26px -18px rgba(43, 12, 16, .5);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.dark .hsx-rail { background: linear-gradient(180deg, #5a4648 0 2px, #33272a 2px 62%, #261c1e 62% 100%); box-shadow: 0 22px 26px -18px rgba(0, 0, 0, .8); }
.hsx-tag {
    position: relative; z-index: 1; rotate: -2.5deg; padding: 1.15rem 1.35rem 1rem; border-radius: 8px;
    background: #fff; color: #1a1a1a; box-shadow: 0 30px 50px -26px rgba(43, 12, 16, .55), 0 0 0 1px rgba(43, 12, 16, .06);
}
.hsx-tag.is-promo { background: #FFD500; }
.hsx-tag-promo {
    position: absolute; top: -.85rem; right: 1rem; max-width: calc(100% - 2rem); rotate: 4deg; padding: .3rem .75rem; border-radius: 6px;
    background: #E30613; color: #fff; font-size: .82rem; font-weight: 800; box-shadow: 0 8px 16px -8px rgba(227, 6, 19, .8);
}
.hsx-tag-name { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.hsx-tag-name small { display: block; margin-top: .15rem; font-size: .82rem; font-weight: 500; color: #5b5152; }
.hsx-tag-price {
    margin: .2rem 0 .3rem; display: flex; justify-content: flex-end; align-items: flex-start; gap: .25rem; color: #E30613;
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; line-height: .9;
}
.hsx-tag-price b { font-weight: 800; font-size: clamp(4.5rem, 8vw, 7rem); letter-spacing: -.05em; }
.hsx-tag-price span { margin-top: .55rem; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.02em; }
.hsx-tag.is-promo .hsx-tag-price { color: #c10a15; }
.hsx-tag-foot { margin: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #3d3536; }
.hsx-tag-unit { font-weight: 700; white-space: nowrap; }
.hsx-barcode {
    width: 5.5rem; height: 1.6rem; flex: none; opacity: .85;
    background: repeating-linear-gradient(90deg, #1a1a1a 0 2px, transparent 2px 3px, #1a1a1a 3px 4px, transparent 4px 7px, #1a1a1a 7px 10px, transparent 10px 11px, #1a1a1a 11px 12px, transparent 12px 15px);
}

/* ═════════════════════════════════════════════════════════════════════════
   4. OCENA — atrament na kartce w kratkę, ocena czerwonym długopisem
   ═════════════════════════════════════════════════════════════════════════ */
.hsx-s-rate {
    --ink: #1B2A4A; --muted: #4F5D76; --focus: #1F3A6E;
    --b1-bg: #1F3A6E; --b1-fg: #fff; --b1-sh: rgba(31, 58, 110, .6);
    --b2-fg: #1F3A6E; --b2-line: rgba(31, 58, 110, .3); --b2-hover: rgba(31, 58, 110, .06);
    background: radial-gradient(ellipse at 90% 10%, rgba(255, 255, 255, .8), transparent 55%), linear-gradient(160deg, #EEF3FA 0%, #D9E3F1 100%);
}
.dark .hsx-s-rate {
    --ink: #E5ECF7; --muted: #A3B3CC; --focus: #9CC0FF;
    --b1-bg: #9CC0FF; --b1-fg: #0E1B33; --b1-sh: rgba(0, 0, 0, .6);
    --b2-fg: #C9D8F2; --b2-line: rgba(201, 216, 242, .32); --b2-hover: rgba(255, 255, 255, .06);
    background: radial-gradient(ellipse at 90% 10%, rgba(156, 192, 255, .1), transparent 55%), linear-gradient(160deg, #15213A 0%, #0B1322 100%);
}
.hsx-sheet {
    position: relative; width: min(100%, 27rem); padding: 1.6rem 1.75rem 1.4rem 3.6rem; border-radius: 6px; rotate: 1.5deg;
    color: #1B2A4A; text-align: center;
    background-color: #FFFEF8;
    background-image: linear-gradient(90deg, transparent 2.35rem, rgba(220, 38, 38, .45) 2.35rem, rgba(220, 38, 38, .45) calc(2.35rem + 2px), transparent calc(2.35rem + 2px)),
                      linear-gradient(rgba(59, 110, 200, .13) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(59, 110, 200, .13) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    box-shadow: 0 30px 50px -28px rgba(27, 42, 74, .55), 0 0 0 1px rgba(27, 42, 74, .06);
}
.dark .hsx-sheet { background-color: #F3F1E8; box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .9); }
.hsx-grade { position: relative; margin: 0 auto; width: fit-content; padding: .2rem 1.8rem 0; line-height: 1; }
.hsx-grade-n {
    position: relative; z-index: 1; display: block; color: #D7263D;
    font-family: 'Caveat', 'Segoe Script', cursive; font-weight: 700; font-size: clamp(5rem, 9.5vw, 8rem); line-height: .95; letter-spacing: -.01em;
}
.hsx-grade-ring { position: absolute; inset: -8% -6% -14% -6%; width: 112%; height: 122%; overflow: visible; }
.hsx-grade-ring path { fill: none; stroke: #D7263D; stroke-width: 3.2; stroke-linecap: round; opacity: .85; }
.hsx-grade.is-empty .hsx-grade-n { color: #9aa7bd; }
.hsx-grade-cap { margin: .55rem 0 0; font-family: 'Caveat', 'Segoe Script', cursive; font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: #1F3A6E; }
.hsx-scale { position: relative; margin-top: 1.1rem; }
.hsx-scale-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.hsx-scale-row li { display: grid; place-items: center; height: 2.1rem; border-radius: 6px; font-weight: 800; font-size: .95rem;
    color: #1B2A4A; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1.5px rgba(27, 42, 74, .18); }
.hsx-scale-mark { position: absolute; top: 2.35rem; width: 0; height: 0; translate: -50% 0;
    border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid #D7263D; }
.hsx-scale-ends { display: flex; justify-content: space-between; margin: .95rem 0 0; font-size: .74rem; font-weight: 600; color: #5b6984; }

/* ═════════════════════════════════════════════════════════════════════════
   NAWIGACJA — strzałki i kropki w jednej „pigułce” (czytelna na każdym tle)
   ═════════════════════════════════════════════════════════════════════════ */
.hsx-nav {
    position: absolute; left: 50%; bottom: calc(1.6rem + var(--hsx-cut)); z-index: 20; translate: -50% 0;
    display: flex; align-items: center; gap: .15rem; padding: .3rem; border-radius: 999px;
    background: rgba(18, 14, 15, .6); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.hsx-arrow {
    width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: transparent; color: #fff; font-size: 1.05rem; transition: background-color .15s;
}
.hsx-arrow:hover { background: rgba(255, 255, 255, .16); }
.hsx-dots { display: flex; align-items: center; padding: 0 .3rem; }
.hsx .hero-dot {
    position: relative; width: 1.6rem; height: 2.5rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: transparent; transition: width .3s ease;
}
.hsx .hero-dot::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; translate: -50% -50%; border-radius: 999px;
    background: rgba(255, 255, 255, .5); transition: width .3s ease, background-color .3s ease;
}
.hsx .hero-dot:hover::before { background: rgba(255, 255, 255, .85); }
.hsx .hero-dot.active { width: 2.4rem; }
.hsx .hero-dot.active::before { width: 1.5rem; background: #fff; }

/* ═════════════════════════════════════════════════════════════════════════
   TABLET (768–1099 px) — dwie kolumny, ciaśniej
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
    .hsx-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-inline: 2rem; }
    .hsx-s-music .hsx-player { margin-right: 6%; }
    .hsx-vinyl { right: -11%; width: 52%; }
    .hsx-sheet { padding-left: 3.3rem; }
}

/* TABLET pionowo (768–1023 px): ekran u góry, treść pod spodem w wyśrodkowanej kolumnie */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .hsx-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; padding: 1.5rem 3rem calc(5.5rem + var(--hsx-cut)); }
    .hsx-media, .hsx-copy { width: min(100%, 36rem); flex: none; }
    .hsx-media { order: -1; }
    .hsx-player { width: min(100%, calc((100cqh - var(--hsx-cut)) * .3 * 16 / 9)); }
    .hsx-s-music .hsx-player { margin-right: 0; }
    .hsx-vinyl { right: -18%; width: 50%; }
    .hsx-title { max-width: none; font-size: clamp(1.9rem, 4.6vw, 2.5rem); }
    .hsx-lead { margin-top: .7rem; -webkit-line-clamp: 2; line-clamp: 2; max-width: none; }
    .hsx-actions { margin-top: 1.25rem; }
    .hsx-goal { margin-top: 1rem; max-width: none; }
    .hsx-shelf, .hsx-sheet { width: min(100%, 24rem); }
    .hsx-tag-price b { font-size: 4.6rem; }
    .hsx-grade-n { font-size: 5.6rem; }
    .hsx-perks { margin-top: .9rem; }
}

/* ═════════════════════════════════════════════════════════════════════════
   TELEFON pionowo (≤ 767 px) — media u góry, tekst pod spodem; wszystko mieści się w slajdzie.
   Telefon poziomo zostaje przy dwóch kolumnach (układ tabletu) — w pionie brakuje miejsca.
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) and (orientation: portrait) {
    .hsx-in { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1.15rem; padding: 1rem 1.25rem calc(4.75rem + var(--hsx-cut)); }
    .hsx-media { order: -1; flex: none; }
    /* ekran 16:9 nie wyższy niż ~1/3 widocznej części slajdu (niski ekran → węższy ekran) */
    .hsx-player { width: min(100%, calc((100cqh - var(--hsx-cut)) * .34 * 16 / 9)); }
    .hsx-s-music .hsx-player { margin-right: 0; }
    .hsx-vinyl { display: none; }
    .hsx-screen { border-radius: 16px; }
    .hsx-close { top: -.6rem; right: -.6rem; width: 2.25rem; height: 2.25rem; }
    .hsx-chip { left: .6rem; bottom: .6rem; font-size: .72rem; padding: .3rem .6rem; }
    .hsx-bigplay-ico { width: 60px; font-size: 2.1rem; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .55), 0 0 0 7px rgba(255, 255, 255, .16); }

    .hsx-kicker { margin-bottom: .6rem; font-size: .75rem; padding: .3rem .7rem; }
    .hsx-title { max-width: none; font-size: clamp(1.4rem, 6.4vw, 1.85rem); font-size: clamp(1.35rem, min(6.4vw, 4.1cqh), 1.85rem); line-height: 1.06;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
    .hsx-lead { margin-top: .5rem; font-size: .92rem; line-height: 1.45; -webkit-line-clamp: 2; line-clamp: 2; }
    .hsx-artist { margin-top: .4rem; font-size: .92rem; }
    .hsx-actions { margin-top: .95rem; gap: .55rem; }
    /* dwa przyciski w rzędzie; gdy się nie mieszczą (wąski ekran) — drugi spada niżej na całą szerokość */
    .hsx-btn { flex: 1 1 auto; min-height: 2.875rem; padding: .6rem .8rem; font-size: .9rem; gap: .4rem; }
    .hsx-more { margin-top: .75rem; font-size: .82rem; }
    .hsx-goal { margin-top: .8rem; max-width: none; }
    .hsx-goal-t { font-size: .82rem; margin-bottom: .35rem; }
    .hsx-goal-t b { font-size: 1rem; }
    .hsx-goal-bar { height: 6px; }

    /* Wspieram: niższa cenówka, korzyści w dwóch kolumnach treści */
    .hsx-s-wsp .hsx-media { padding-top: .5rem; }
    .hsx-shelf { width: min(100%, 21rem); padding: .6rem 0 1.35rem; }
    .hsx-rail { bottom: .4rem; height: 1.2rem; left: -12%; right: -12%; }
    .hsx-tag { padding: .8rem 1rem .7rem; rotate: -1.5deg; }
    .hsx-tag-name { font-size: .95rem; }
    .hsx-tag-name small { font-size: .76rem; }
    .hsx-tag-price { margin: -.6rem 0 .15rem; }
    .hsx-tag-price b { font-size: 3.6rem; }
    .hsx-tag-price span { font-size: 1.25rem; margin-top: .35rem; }
    .hsx-tag-foot { font-size: .76rem; }
    .hsx-barcode { width: 4.2rem; height: 1.2rem; }
    .hsx-tag-promo { top: -.7rem; font-size: .74rem; }
    .hsx-perks { margin-top: .8rem; gap: .35rem; }
    .hsx-perks li { font-size: .86rem; gap: .5rem; }
    .hsx-perks .bi { width: 1.55rem; height: 1.55rem; font-size: .75rem; }
    .hsx-s-wsp .hsx-actions { flex-wrap: wrap; }
    .hsx-s-wsp .hsx-btn { flex: 1 1 100%; }
    .hsx-note { width: 100%; text-align: center; font-size: .84rem; }

    /* Ocena: kartka niższa — ocena i skala obok siebie */
    .hsx-sheet { width: min(100%, 21rem); padding: .9rem 1rem .8rem 2.9rem; rotate: 1deg;
        display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .25rem .9rem; text-align: left;
        background-size: 100% 100%, 18px 18px, 18px 18px;
        background-image: linear-gradient(90deg, transparent 1.9rem, rgba(220, 38, 38, .45) 1.9rem, rgba(220, 38, 38, .45) calc(1.9rem + 2px), transparent calc(1.9rem + 2px)),
                          linear-gradient(rgba(59, 110, 200, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 110, 200, .13) 1px, transparent 1px); }
    .hsx-grade { grid-row: span 2; padding: 0 .6rem; }
    .hsx-grade-n { font-size: 4.2rem; }
    .hsx-grade-cap { margin: 0; font-size: 1.2rem; align-self: end; }
    .hsx-scale { margin-top: 0; align-self: start; grid-column: 2; }
    .hsx-scale-row { gap: .2rem; }
    .hsx-scale-row li { height: 1.6rem; font-size: .78rem; border-radius: 4px; }
    .hsx-scale-mark { top: 1.75rem; border-left-width: 5px; border-right-width: 5px; border-bottom-width: 7px; }
    .hsx-scale-ends { margin-top: .6rem; font-size: .64rem; }

    .hsx-nav { bottom: calc(1rem + var(--hsx-cut)); }
    .hsx-arrow { width: 2.35rem; height: 2.35rem; }
}

/* wąski telefon (360–374 px): dwa przyciski nadal w jednym rzędzie */
@media (max-width: 374px) and (orientation: portrait) {
    .hsx-in { padding-inline: 1rem; }
    .hsx-btn { padding: .55rem .6rem; font-size: .84rem; gap: .3rem; }
}
/* niski telefon pionowo (np. 360×640): mniejszy ekran, bez opisu utworu i apelu — zostają tytuł, korzyści, przyciski */
@media (max-width: 767px) and (orientation: portrait) and (max-height: 680px) {
    .hsx-in { gap: .85rem; padding-top: .75rem; }
    .hsx-player { width: min(100%, calc((100cqh - var(--hsx-cut)) * .3 * 16 / 9)); }
    .hsx-kicker { margin-bottom: .45rem; }
    .hsx-s-music .hsx-lead, .hsx-s-wsp .hsx-lead { display: none; }
    .hsx-actions { margin-top: .8rem; }
    .hsx-goal { margin-top: .6rem; }
    .hsx-tag-price b { font-size: 3rem; }
    .hsx-perks { margin-top: .6rem; }
    .hsx-s-wsp .hsx-actions { flex-wrap: nowrap; }
    .hsx-s-wsp .hsx-btn { flex: 1 1 auto; }
    .hsx-note { width: auto; text-align: left; }
}
/* niski ekran poziomo (laptop 1366×768 z paskami przeglądarki, telefon poziomo) */
@media (orientation: landscape) and (max-height: 640px) {
    .hsx-in { padding-top: 1.5rem; padding-bottom: calc(4.5rem + var(--hsx-cut)); gap: 1.5rem 2rem; }
    .hsx-kicker { margin-bottom: .6rem; }
    .hsx-lead { margin-top: .6rem; -webkit-line-clamp: 2; line-clamp: 2; }
    .hsx-actions { margin-top: 1.1rem; }
    .hsx-goal { margin-top: .8rem; }
    .hsx-perks { margin-top: .7rem; gap: .3rem; }
    .hsx-perks li { font-size: .9rem; }
    .hsx-perks .bi { width: 1.6rem; height: 1.6rem; }
    .hsx-nav { bottom: calc(.9rem + var(--hsx-cut)); }
}
@media (orientation: landscape) and (max-height: 640px) and (max-width: 900px) {
    .hsx-title { font-size: clamp(1.3rem, 3.4vw, 1.9rem); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
    .hsx-lead { font-size: .88rem; }
    .hsx-btn { min-height: 2.6rem; padding: .5rem 1rem; font-size: .88rem; }
    .hsx-tag-price b { font-size: 3.6rem; }
    .hsx-grade-n { font-size: 4.2rem; }
    .hsx-sheet { padding: 1rem 1rem 1rem 3rem; }
    .hsx-vinyl { display: none; }
    .hsx-s-music .hsx-player { margin-right: 0; }
    .hsx-s-wsp .hsx-lead, .hsx-s-music .hsx-lead { display: none; }
}

/* ─── ograniczony ruch: bez przesuwania, wirowania i podskoków ─────────── */
@media (prefers-reduced-motion: reduce) {
    .hsx .hsx-track { transition: none !important; }
    .hsx *, .hsx *::before, .hsx *::after { animation: none !important; transition-duration: .01ms !important; }
    .hsx-btn-1:hover { transform: none; }
}

/* 2026-12-02: 5 korzyści + ramka kosztów utrzymania */
.hsx-s-wsp .hsx-perks { gap: .4rem; }
.hsx-s-wsp .hsx-perks li { line-height: 1.3; }
.hsx-cost {
    display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0 0; padding: .7rem .9rem; max-width: 36rem;
    border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(227, 6, 19, .14);
    font-size: .88rem; line-height: 1.45; color: var(--muted);
}
.hsx-cost .bi { flex: none; font-size: 1.05rem; color: #E30613; margin-top: .1rem; }
.hsx-cost b { color: var(--ink); white-space: nowrap; }
.dark .hsx-cost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 213, 0, .16); }
.dark .hsx-cost .bi { color: #FFD500; }
@media (min-width: 768px) and (max-height: 760px) { .hsx-s-wsp .hsx-lead { display: none; } .hsx-s-wsp .hsx-perks { gap: .3rem; } }
@media (max-width: 767px) {
    /* telefon: zostają 3 główne korzyści + krótsza ramka kosztów — reszta jest na wspieram.php */
    .hsx-s-wsp .hsx-perks li:nth-child(n+4) { display: none; }
    .hsx-s-wsp .hsx-lead { display: none; }      /* bez uciętego zdania — o niezależności mówi ramka kosztów */
    .hsx-cost { margin-top: .7rem; padding: .5rem .7rem; font-size: .8rem; }
}
