/*
 * Homepage - hero s konfigurátorem (3D skříň) a karty doporučených sestav.
 * Barvy navazují na proměnné z themes/slagcz/assets/css/layout.css (--sn-*).
 */
.hp-hero, .hp-builds, .hp-value, .hp-cats {
    --hp-bg: #f4f6f8;
    --hp-card: #fff;
    --hp-ink: var(--sn-ink, #1c2429);
    --hp-ink-2: #3d4a52;
    --hp-muted: var(--sn-muted, #6b7a84);
    --hp-line: var(--sn-line, #e3e8ec);
    --hp-tint: var(--sn-tint, #e8eff3);
    --hp-navy: var(--sn-bar, #1f3f50);
    --hp-orange: var(--sn-orange, #e46305);
    --hp-orange-600: var(--sn-orange-600, #c95604);
    --hp-orange-50: var(--sn-orange-50, #fff3ea);
    --hp-good: #1f8a4c;
    --hp-glow: #4fb3ff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--hp-ink);
}
:where(.hp-hero, .hp-builds, .hp-value, .hp-cats) * { box-sizing: border-box; }
:where(.hp-hero, .hp-builds, .hp-value, .hp-cats) :where(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.hp-hero, .hp-builds, .hp-value, .hp-cats) :where(ul, ol) { list-style: none; padding: 0; }
:where(.hp-hero, .hp-builds, .hp-value, .hp-cats) a, :where(.hp-hero, .hp-builds, .hp-value, .hp-cats) a:hover, :where(.hp-hero, .hp-builds, .hp-value, .hp-cats) a:focus { text-decoration: none; }
.hp-i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tlačítka ---------- */
.hp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: 99px; border: 0;
    background: var(--hp-orange); color: #fff; font: inherit; font-weight: 600; font-size: 15.5px;
    white-space: nowrap; cursor: pointer;
    box-shadow: 0 6px 18px rgba(228, 99, 5, .3);
    transition: background .15s, transform .15s, border-color .15s;
}
a.hp-btn, a.hp-btn:hover, a.hp-btn:focus { color: #fff; }
.hp-btn:hover { background: var(--hp-orange-600); transform: translateY(-1px); }
.hp-btn-line, a.hp-btn-line, a.hp-btn-line:hover, a.hp-btn-line:focus { background: #fff; color: var(--hp-ink); border: 1px solid var(--hp-line); box-shadow: none; }
.hp-btn-line:hover { background: #fafbfc; border-color: #c5ced5; }

/* =========================================================
   HERO
   ========================================================= */
.hp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(620px 420px at 72% 46%, #fff 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(500px 300px at 90% 90%, rgba(228, 99, 5, .07), transparent 70%),
        var(--hp-bg);
    border-bottom: 1px solid var(--hp-line);
}
.hp-hero-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-rows: auto;
    gap: 20px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}
.hp-hero-in::before, .hp-hero-in::after { display: none; } /* bootstrap clearfix */

.hp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--hp-orange-600); background: var(--hp-orange-50); border: 1px solid #ffd9bd;
    padding: 5px 12px; border-radius: 99px;
    margin-bottom: 18px;
}
.hp-eyebrow .hp-i { width: 15px; height: 15px; }
.hp-hero h1 { text-align: left; font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -.5px; margin: 0 0 16px; color: var(--hp-ink); font-family: inherit; }
.hp-hero h1 em { display: block; font-style: normal; color: var(--hp-orange); } /* „rozjede tvoje hry“ vždy celé na vlastním řádku */
.hp-lead { font-size: 17px; line-height: 1.55; color: var(--hp-ink-2); max-width: 520px; margin-bottom: 26px; }

.hp-panel { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: 18px; padding: 20px 22px 22px; max-width: 540px; box-shadow: 0 12px 32px rgba(21, 48, 62, .08); }
.hp-budget-head { display: flex; justify-content: space-between; align-items: baseline; }
.hp-budget-head label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-muted); }
.hp-budget-val { font-size: 30px; font-weight: 800; letter-spacing: -.3px; color: var(--hp-ink); font-variant-numeric: tabular-nums; }
.hp-budget-val small { font-size: 15px; font-weight: 600; color: var(--hp-muted); }

.hp-panel input[type=range] {
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; height: 6px; margin: 16px 0 8px; border-radius: 6px; outline: 0; cursor: pointer;
    background: linear-gradient(90deg, var(--hp-orange) 0 var(--hp-p, 18%), var(--hp-line) var(--hp-p, 18%) 100%);
}
.hp-panel input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 6px solid var(--hp-orange); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); cursor: grab;
}
.hp-panel input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--hp-orange); cursor: grab; }
.hp-panel input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(228, 99, 5, .25); }
.hp-ticks { position: relative; height: 18px; font-size: 12px; color: var(--hp-muted); }
.hp-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hp-ticks span:first-child { transform: none; }
.hp-ticks span:last-child { transform: translateX(-100%); }
.hp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.hp-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 14px; color: var(--hp-ink-2); }
.hp-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hp-trust .hp-i { color: var(--hp-good); width: 17px; height: 17px; }

/* ---------- karta doporučené sestavy ---------- */
.hp-card {
    position: absolute;
    right: 15px;
    bottom: 34px;
    width: 280px;
    min-height: 238px;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 22px 44px rgba(21, 48, 62, .16);
    z-index: 2;
    transition: opacity .2s;
}
.hp-card.is-loading { opacity: .55; }
.hp-card-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-muted); margin-bottom: 8px; }
.hp-card ul { font-size: 13.5px; }
.hp-card li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.hp-card li span:first-child { color: var(--hp-muted); flex: none; }
.hp-card li span:last-child { text-align: right; font-weight: 600; }
.hp-card-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--hp-line); margin-top: 8px; padding-top: 8px; }
.hp-card-total b { font-size: 22px; letter-spacing: -.3px; }
.hp-card-use { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--hp-good); }
.hp-card-use .hp-i { width: 16px; height: 16px; }
.hp-card-note { margin-top: 8px; font-size: 13px; color: var(--hp-ink-2); }

/* =========================================================
   3D SKŘÍŇ (tvar podle midi-toweru s mesh předkem a 2× 140mm
   ventilátorem - Lian Li Lancool 216). Model skládá homepage.js
   z rovin (.hp-p) - viz buildCase().
   ========================================================= */
.hp-stage { position: relative; height: 600px; display: grid; place-items: center; }
/* štítek nad skříní - vodorovně nad jejím středem (scéna je posunutá doleva, viz .hp-scene) */
.hp-stage .hp-eyebrow { position: absolute; top: 44px; left: calc(50% - 70px); transform: translateX(-50%); margin: 0; z-index: 2; white-space: nowrap; box-shadow: 0 6px 16px rgba(228, 99, 5, .12); }
.hp-shadow { position: absolute; left: 50%; bottom: 70px; width: 380px; height: 60px; margin-left: -290px; border-radius: 50%; background: radial-gradient(ellipse, rgba(21, 30, 36, .38), rgba(21, 30, 36, 0) 68%); filter: blur(6px); }
.hp-scene { position: relative; width: 0; height: 0; margin: -30px 0 0 -120px; perspective: 1800px; transform-style: preserve-3d; transform: scale(.8); }
.hp-case { position: absolute; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(50deg); }
.hp-p { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* plášť */
.hp-glass {
    border-radius: 4px;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .04) 22%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .1) 100%),
        rgba(40, 60, 75, .08);
    box-shadow: inset 0 0 0 6px #111518, inset 0 0 0 7px rgba(255, 255, 255, .25);
}
.hp-front { border-radius: 4px; background: #121518; box-shadow: inset 0 0 0 2px #262c31; overflow: hidden; }
.hp-front .hp-fan { width: 168px; height: 168px; left: 26px; }
.hp-front .hp-fan:nth-of-type(1) { top: 26px; }
.hp-front .hp-fan:nth-of-type(2) { top: 206px; }
.hp-mesh {
    position: absolute; inset: 14px 10px 64px;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0) 1.2px, rgba(14, 17, 20, .62) 1.7px);
    background-size: 6px 6px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.hp-badge-logo { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-family: Impact, Charcoal, "Arial Narrow", sans-serif; font-size: 19px; letter-spacing: 2px; color: #59656d; }
.hp-badge-logo span { color: var(--hp-orange); }
.hp-top { border-radius: 4px; background: #16191c; box-shadow: inset 0 0 0 2px #262c31; }
.hp-top-mesh { position: absolute; left: 18px; right: 18px; top: 30px; bottom: 80px; border-radius: 3px; background-image: repeating-linear-gradient(90deg, #22282c 0 3px, #111416 3px 8px); }
.hp-io { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; }
.hp-io i { display: block; width: 14px; height: 6px; border-radius: 1px; background: #2b3136; box-shadow: inset 0 0 0 1px #3a4247; }
.hp-io i.pwr { width: 16px; height: 16px; border-radius: 50%; background: #1b1f22; box-shadow: 0 0 0 2px #fff, 0 0 10px 2px var(--hp-glow); }
.hp-io i.c { width: 9px; }
.hp-tray { background: radial-gradient(circle at 42% 38%, rgba(79, 179, 255, .16), transparent 62%), linear-gradient(180deg, #14191d, #0e1215); }
.hp-grommet { position: absolute; width: 12px; height: 46px; border-radius: 6px; background: #07090a; box-shadow: inset 0 0 0 2px #1d2327; }
.hp-back { background: linear-gradient(180deg, #121619, #0c0f11); }
.hp-slotcover { position: absolute; left: 34px; width: 150px; height: 8px; border-radius: 1px; background: #1c2226; }
.hp-foot { background: #0b0d0f; border-radius: 2px; }

/* základní deska */
.hp-mb { border-radius: 5px; background: linear-gradient(160deg, #1f2a31, #151c21); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.hp-mb > i { position: absolute; display: block; }
.hp-mb .io { left: 0; top: 6px; width: 30px; height: 100px; border-radius: 3px; background: linear-gradient(90deg, #2b353c, #232b31); box-shadow: inset -2px 0 0 var(--hp-orange); }
.hp-mb .vrm { left: 34px; top: 6px; width: 84px; height: 20px; border-radius: 3px; background: repeating-linear-gradient(90deg, #36424a 0 4px, #28323a 4px 7px); }
.hp-mb .sock { left: 54px; top: 44px; width: 56px; height: 56px; border-radius: 3px; background: #2e373e; }
.hp-mb .dimm { top: 30px; width: 5px; height: 112px; border-radius: 1px; background: #0c1013; }
.hp-mb .atx { left: 190px; top: 70px; width: 11px; height: 50px; border-radius: 2px; background: #d8dde0; }
.hp-mb .m2 { left: 38px; top: 120px; width: 92px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(115deg, #3a464e 0 3px, #2a333a 3px 7px); }
.hp-mb .pcie { left: 30px; width: 132px; height: 7px; border-radius: 1px; background: #0b0e10; box-shadow: inset 0 0 0 1px #8d989f; }
.hp-mb .chip { left: 140px; top: 210px; width: 44px; height: 30px; border-radius: 4px; background: linear-gradient(135deg, #3b4850, #28323a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.hp-cable { position: absolute; height: 40px; border-radius: 4px; background: repeating-linear-gradient(180deg, #e5e9eb 0 3px, #a9b3b9 3px 5px); }

/* chladič CPU (věž) */
.hp-cooler-l { background: repeating-linear-gradient(180deg, #aab4ba 0 2px, #4a555c 2px 5px); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.hp-cooler-t { background: #2b3338; box-shadow: inset 0 0 0 2px #3b454b; border-radius: 2px; }
.hp-cooler-f { background: #14181b; border-radius: 3px; }
.hp-cooler-f .hp-fan { width: 104px; height: 104px; left: 4px; top: 23px; }

/* RAM */
.hp-ram-l { background: linear-gradient(180deg, #ff7a18, #ff2d95, #4fb3ff, #37e2a0, #ff7a18); background-size: 100% 300%; border-radius: 1px; box-shadow: 0 0 10px rgba(255, 90, 140, .7); animation: hp-rgb 5s linear infinite; }
.hp-ram-f { background: linear-gradient(90deg, #ff4f9a 0 4px, #1a1f23 4px); border-radius: 2px; box-shadow: inset 0 0 0 1px #2c343a; }
.hp-ram-t { background: #262d32; }
@keyframes hp-rgb { to { background-position: 0 300%; } }

/* grafika */
.hp-gpu-l { border-radius: 4px; background: linear-gradient(180deg, #2d353b, #171c20); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.hp-gpu-l .strip { position: absolute; left: 18px; top: 9px; width: 150px; height: 3px; border-radius: 2px; background: var(--hp-glow); box-shadow: 0 0 10px var(--hp-glow); }
.hp-gpu-l .brand { position: absolute; right: 16px; top: 20px; font: 800 13px/1 system-ui, sans-serif; letter-spacing: .14em; color: #8ea3b0; text-transform: uppercase; }
.hp-gpu-t { border-radius: 4px; background: repeating-linear-gradient(90deg, #2a3136 0 10px, #252b30 10px 12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.hp-gpu-t .pwr16 { position: absolute; left: 44px; bottom: 30px; width: 34px; height: 12px; border-radius: 2px; background: #0b0d0f; box-shadow: 0 0 0 2px #1a1f22; }
.hp-gpu-f { background: #1b2126; border-radius: 3px; }

/* zdroj - kryt dole */
.hp-psu-l { background: linear-gradient(180deg, #1a1f23, #111417); box-shadow: inset 0 2px 0 #2c343a; }
.hp-psu-l .vent { position: absolute; left: 24px; top: 20px; width: 150px; height: 40px; background-image: radial-gradient(circle, #050607 1.6px, transparent 2px); background-size: 7px 7px; }
.hp-psu-l .brand { position: absolute; right: 26px; top: 32px; font: 700 11px/1 system-ui, sans-serif; letter-spacing: .24em; color: #4c5961; }
.hp-psu-t { background: #1a1f23; box-shadow: inset 0 0 0 1px #2c343a; }
.hp-psu-f { background: #15191c; }

/* ventilátory */
.hp-fan { position: absolute; border-radius: 50%; background: #0c0f11; box-shadow: inset 0 0 0 3px #22292e, 0 0 18px rgba(228, 99, 5, .35); }
.hp-fan::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255, 138, 51, .9); box-shadow: 0 0 12px rgba(228, 99, 5, .75), inset 0 0 10px rgba(228, 99, 5, .35); }
.hp-fan::after {
    content: ""; position: absolute; inset: 11%; border-radius: 50%;
    background:
        radial-gradient(circle, #20272c 0 17%, transparent 18%),
        conic-gradient(from 0deg, #333c42 0 22deg, transparent 22deg 51deg, #333c42 51deg 73deg, transparent 73deg 102deg, #333c42 102deg 124deg, transparent 124deg 153deg, #333c42 153deg 175deg, transparent 175deg 204deg, #333c42 204deg 226deg, transparent 226deg 255deg, #333c42 255deg 277deg, transparent 277deg 306deg, #333c42 306deg 328deg, transparent 328deg);
    animation: hp-spin .9s linear infinite;
}
.hp-fan-edge { border-radius: 3px; background: #0d1012; box-shadow: inset 0 0 0 2px rgba(255, 138, 51, .8), 0 0 16px rgba(228, 99, 5, .55); }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* body u komponent (ve 3D) a jejich popisky (2D vrstva nad skříní, viz placeLabels() v homepage.js) */
.hp-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; animation: hp-pulse 1.8s ease-out infinite; }
.hp-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hp-lbl {
    position: absolute; white-space: nowrap;
    background: rgba(15, 20, 24, .9); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
    border-radius: 8px; padding: 4px 9px; font: 600 12.5px/1.25 system-ui, sans-serif;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.hp-lbl small { display: block; color: #9fb9c7; font-weight: 500; font-size: 10.5px; letter-spacing: .03em; }
.hp-lbl-right { transform: translate(14px, -50%); }
.hp-lbl-left { transform: translate(calc(-100% - 14px), -50%); }
.hp-dot.is-off, .hp-lbl.is-off, .hp-lbl:empty { display: none; }
@keyframes hp-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }

@media (prefers-reduced-motion: reduce) {
    .hp-fan::after, .hp-dot, .hp-ram-l { animation: none; }
}

/* ---------- hero – menší obrazovky ---------- */
@media (max-width: 1199px) {
    .hp-hero h1 { font-size: 40px; }
    .hp-scene { transform: scale(.72); }
}
@media (max-width: 991px) {
    .hp-hero-in { grid-template-columns: 1fr; padding-top: 36px; }
    .hp-stage { height: 560px; }
    .hp-card { right: 50%; transform: translateX(50%); bottom: 10px; }
    .hp-scene { margin-top: -80px; }
    .hp-stage .hp-eyebrow { top: 4px; }
}
@media (max-width: 767px) {
    .hp-hero-in { display: block; padding-top: 28px; padding-bottom: 36px; }
    .hp-stage { display: none; }
    /* co největší, ale oba řádky se musí vejít - delší „Postav si PC, které“ je ≈ 10,4× velikost písma (DejaVu; Roboto/SF užší) */
    .hp-hero h1 { font-size: clamp(28px, calc((100vw - 30px) / 10.5), 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
    .hp-lead { font-size: 15.5px; line-height: 1.6; margin-bottom: 22px; }
    .hp-panel { padding: 18px 18px 20px; max-width: none; }
    .hp-budget-val { font-size: 26px; }
    .hp-panel input[type=range] { margin: 18px 0 10px; }
    .hp-ticks span:nth-child(2), .hp-ticks span:nth-child(3) { display: none; }
    .hp-actions { flex-direction: column; gap: 10px; margin-top: 22px; }
    .hp-actions .hp-btn { width: 100%; }
    .hp-card { position: relative; right: auto; bottom: auto; transform: none; width: 100%; min-height: 0; margin-top: 12px; box-shadow: 0 8px 24px rgba(21, 48, 62, .1); }
    .hp-trust { flex-direction: column; gap: 8px; margin-top: 20px; }
}

/* =========================================================
   SESTAVY PODLE ROZPOČTU
   ========================================================= */
.hp-builds { background: #fff; padding: 64px 0 70px; }
.hp-sh { margin-bottom: 26px; max-width: 680px; }
.hp-k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hp-orange); }
.hp-sh h2 { text-align: left; font-family: inherit; font-size: 30px; font-weight: 800; letter-spacing: -.3px; line-height: 1.15; margin: 6px 0 6px; color: var(--hp-ink); }
.hp-sh p { color: var(--hp-muted); font-size: 15.5px; }

.hp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.hp-bc {
    position: relative; display: flex; flex-direction: column;
    background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: 14px;
    padding: 16px 18px 16px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.hp-bc:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(21, 48, 62, .12); border-color: #d3dce2; }
.hp-bc.is-featured { border: 2px solid var(--hp-orange); box-shadow: 0 16px 36px rgba(228, 99, 5, .13); }
.hp-badge { position: absolute; top: -12px; left: 18px; z-index: 1; background: var(--hp-orange); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; }
.hp-bc-img { height: 150px; margin: 0 -6px 12px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.hp-bc-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hp-bc-img .hp-i { width: 64px; height: 64px; stroke-width: 1.2; color: #b7c4cc; }
.hp-bc-img:has(> .hp-i) { background: linear-gradient(145deg, #f1f4f6, #e4eaee); }
.hp-bc-tier { font-size: 13px; font-weight: 600; color: var(--hp-muted); }
.hp-bc-price { font-size: 28px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.hp-use { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--hp-navy); background: var(--hp-tint); padding: 4px 10px; border-radius: 99px; }
.hp-comp { margin: 14px 0 16px !important; font-size: 13.5px; }
.hp-comp li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--hp-line); }
.hp-comp li:last-child { border-bottom: 0; }
.hp-ci { width: 28px; height: 28px; border-radius: 7px; background: var(--hp-tint); color: var(--hp-navy); display: grid; place-items: center; flex: none; }
.hp-ci .hp-i { width: 16px; height: 16px; }
.hp-comp b { display: block; font-weight: 600; line-height: 1.25; }
.hp-comp small { display: block; color: var(--hp-muted); font-size: 12px; line-height: 1.25; }
.hp-bc .hp-btn { margin-top: auto; width: 100%; height: 42px; font-size: 15px; }
.hp-fresh { margin-top: 10px; font-size: 12px; color: var(--hp-muted); text-align: center; }

.hp-upgrade { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px dashed #c9d3da; border-radius: 14px; padding: 16px 18px; }
.hp-upgrade-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--hp-orange-50); color: var(--hp-orange); display: grid; place-items: center; flex: none; }
.hp-upgrade > div { flex: 1; min-width: 220px; }
.hp-upgrade b { display: block; font-size: 15.5px; }
.hp-upgrade span { color: var(--hp-muted); font-size: 14px; }
.hp-upgrade .hp-btn { height: 40px; font-size: 14.5px; }

@media (max-width: 1199px) { .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp-tabs { display: none; }
@media (max-width: 600px) {
    .hp-builds { padding: 44px 0 50px; }
    .hp-sh h2 { font-size: 25px; }
    .hp-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--hp-bg); border-radius: 12px; }
    .hp-tabs button { flex: 1 1 0; min-width: 0; height: 40px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--hp-ink-2); cursor: pointer; white-space: nowrap; }
    .hp-tabs button.is-on { background: #fff; color: var(--hp-navy); box-shadow: 0 2px 8px rgba(21, 48, 62, .12); }
    .hp-grid { display: block; }
    .hp-bc { display: none; }
    .hp-bc.is-on { display: flex; }
    .hp-bc:hover { transform: none; }
    .hp-bc-img { height: 130px; }
}

/* =========================================================
   KDE DOSTANEŠ NEJVÍC ZA SVÉ PENÍZE (partial value)
   ========================================================= */
.hp-value { background: #fff; padding: 64px 0 70px; }
.hp-value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hp-vbox { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 20px 22px 18px; }
.hp-vbox h3 { font-family: inherit; font-size: 18px; font-weight: 700; margin: 0 0 12px; color: var(--hp-ink); }
.hp-vlist { list-style: none; margin: 0 0 12px; padding: 0; }
.hp-vr { display: grid; grid-template-columns: 22px minmax(0, 1.25fr) minmax(0, 1fr) 46px; gap: 12px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; transition: background .15s; }
a.hp-vr, a.hp-vr:hover, a.hp-vr:focus { color: var(--hp-ink); }
.hp-vr:hover { background: #f5f8fa; }
.hp-vr-n { font-weight: 700; color: var(--hp-muted); text-align: center; font-size: 13.5px; }
.hp-vr-nm { min-width: 0; }
.hp-vr-nm b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-vr-nm small { display: block; color: var(--hp-muted); font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-vr-best { margin-left: 8px; font-size: 10.5px; font-weight: 700; color: var(--hp-good); background: #e7f5ec; padding: 2px 6px; border-radius: 4px; vertical-align: 1px; }
.hp-vr-bar { height: 10px; background: #eef2f5; border-radius: 4px; overflow: hidden; }
.hp-vr-bar i { display: block; height: 100%; background: var(--hp-navy); border-radius: 0 4px 4px 0; }
.hp-vr:hover .hp-vr-bar i { background: #15303e; }
.hp-vr-v { text-align: right; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.hp-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
a.hp-more, a.hp-more:focus { color: var(--hp-navy); }
a.hp-more:hover { color: var(--hp-orange); }

/* =========================================================
   VŠECHNY KATEGORIE (partial categories)
   ========================================================= */
.hp-cats { background: #f4f6f8; border-top: 1px solid var(--hp-line); padding: 60px 0 70px; }
.hp-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hp-cat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; padding: 14px 16px; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.hp-cat, a.hp-cat:hover, a.hp-cat:focus { color: var(--hp-ink); }
.hp-cat:hover { border-color: var(--hp-navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 48, 62, .08); }
.hp-cat-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--hp-tint); color: var(--hp-navy); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.hp-cat:hover .hp-cat-ic { background: var(--hp-navy); color: #fff; }
.hp-cat b { display: block; font-weight: 700; font-size: 15px; }
.hp-cat small { display: block; color: var(--hp-muted); font-size: 12.5px; }

@media (max-width: 991px) {
    .hp-value-grid { grid-template-columns: 1fr; }
    .hp-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .hp-value, .hp-cats { padding: 44px 0 50px; }
    .hp-vbox { padding: 16px 14px; }
    .hp-vr { grid-template-columns: 18px minmax(0, 1fr) clamp(44px, 16vw, 70px) 40px; gap: 8px; }
    .hp-vr-d { display: none; }
    /* štítek „Nejlepší poměr“ zůstává - když se k názvu nevejde, zalomí se pod něj */
    .hp-vr-nm b { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; white-space: normal; }
    .hp-vr-best { display: inline-block; margin: 2px 0 1px; }
    .hp-vr-name { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hp-vbox { display: none; }
    .hp-vbox.is-on { display: block; }
    /* název žebříčku je v přepínači - v boxu jen „Výkon za 1 000 Kč“ */
    .hp-vbox-name { display: none; }
    .hp-vbox h3::first-letter { text-transform: uppercase; }
    .hp-cat-grid { grid-template-columns: 1fr; }
}
