/* Parhelion — samostatná stránka produktu: tmavý viewport, textura, grafy.
   Načítá se za styles.css (hlavička, patička, tlačítka, simulátor). */
.page-parhelion {
  --bg: #141518; --bg-2: #1a1b1e; --bg-3: #202125; --bg-4: #26272b;
  --tx: #f4f4f4; --tx-2: #a9acb0; --tx-3: #6f7277; --hair: rgba(255, 255, 255, .1); --hair-2: rgba(255, 255, 255, .18);
  --alert: #e0625a; --ok: #58b48a;
  background: var(--bg); color: var(--tx);
}
.page-parhelion main { overflow-x: clip; }
.page-parhelion.is-scrolled .header { background-color: #0d0e11 !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.page-parhelion.is-scrolled .header a, .page-parhelion.is-scrolled .header button { color: #fff; }
.page-parhelion.is-scrolled .logo img { filter: invert(1); }
.page-parhelion.is-scrolled .nav > li > a:hover, .page-parhelion.is-scrolled .nav > li > button:hover,
.page-parhelion.is-scrolled .nav > li.is-open > a, .page-parhelion.is-scrolled .nav > li.is-open > button,
.page-parhelion.is-scrolled .tool-link:hover, .page-parhelion.is-scrolled .nav > li > a[aria-current],
.page-parhelion.is-scrolled .menu-btn { background: rgba(255, 255, 255, .12); }
/* Rozbalený panel v menu je bílý, takže i hlavička nad ním zbělá – jinak by nahoře zůstal tmavý pruh. */
.page-parhelion.is-mega .header { background-color: #fff !important; box-shadow: none; transition: none; }
.page-parhelion.is-mega .header a, .page-parhelion.is-mega .header button { color: var(--ink); }
.page-parhelion.is-mega .logo img { filter: none; }
.page-parhelion.is-mega .nav > li > a:hover, .page-parhelion.is-mega .nav > li > button:hover,
.page-parhelion.is-mega .nav > li.is-open > a, .page-parhelion.is-mega .nav > li.is-open > button,
.page-parhelion.is-mega .tool-link:hover, .page-parhelion.is-mega .nav > li > a[aria-current],
.page-parhelion.is-mega .menu-btn { background: rgba(23, 26, 32, .06); }


/* ---------- Typografie sekcí ---------- */
.ph-sec { position: relative; padding: clamp(72px, 8vw, 120px) clamp(24px, 4vw, 64px); }
.ph-sec--tight { padding-top: clamp(64px, 7vw, 104px); }
.ph-wrap { max-width: 1480px; margin: 0 auto; }
.ph-wrap--narrow { max-width: 880px; margin: 0 auto; }
.ph-eyebrow { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); }
.ph-h2 { margin: 0; max-width: 24ch; font-size: clamp(28px, 3vw, 44px); line-height: 1.06; font-weight: 500; letter-spacing: -.025em; color: #fff; }
.ph-h2 .dim { color: var(--tx-3); }
.ph-lead { max-width: 58ch; margin: 18px 0 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: var(--tx-2); }
.ph-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.ph-head .ph-lead { margin-top: 0; }
.ph-head--center { display: block; max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.ph-head--center .ph-h2, .ph-head--center .ph-lead { margin-left: auto; margin-right: auto; }
.ph-note { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--tx-3); }
.ph-sep { height: 1px; background: linear-gradient(90deg, transparent, var(--hair-2), transparent); }
.ph-dots::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 46% 64% at 100% 0%, #000, transparent 74%); mask-image: radial-gradient(ellipse 46% 64% at 100% 0%, #000, transparent 74%); pointer-events: none; }
.ph-dots--left::before { -webkit-mask-image: radial-gradient(ellipse 46% 64% at 0% 100%, #000, transparent 74%); mask-image: radial-gradient(ellipse 46% 64% at 0% 100%, #000, transparent 74%); }
.ph-blue::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); pointer-events: none; }
.ph-sec > * { position: relative; }

/* ---------- Hero: 3D viewport ---------- */
.hero--model { background: #1b1c1f; }
.model-hero { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.model-hero.is-ready, .model-hero.is-flat { opacity: 1; }
.model-hero.is-flat { background: #1b1c1f url("assets/photos/hala-letecky-1600.jpg") center / cover; }
.model-hero canvas { display: block; width: 100% !important; height: 100% !important; }
.hero--model::after { background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, .34) 100%); pointer-events: none; }
.hero--model .hero-text { top: 11%; }
.hero--model .hero-text h1 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.02em; }
.hero--model .hero-text p { margin-top: 8px; font-size: 16px; }
.hero--model .hero-actions { position: static; display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.hero--model .hero-actions .btn { min-width: 168px; height: 40px; font-size: 13px; }
.hero--model .btn-ghost { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); color: #fff; }
.hero--model .btn-ghost:hover { background: #fff; color: var(--ink); }
.ph-hud { position: absolute; z-index: 2; right: 24px; bottom: 24px; display: grid; gap: 2px; font-size: 11px; line-height: 1.5; letter-spacing: .02em; color: rgba(255, 255, 255, .5); text-align: right; pointer-events: none; font-variant-numeric: tabular-nums; }
.ph-hud b { font-weight: 500; color: rgba(255, 255, 255, .8); }
.hero--model .hero-stats { bottom: 9%; max-width: 980px; }
.hero--model .hero-stats span { color: rgba(255, 255, 255, .72); }
/* Pod 1500 px by se popis modelu vpravo dole překrýval se statistikami, proto jde do pravého horního rohu pod hlavičku;
   pod 1100 px by tam narazil do podtitulku, a tak se skryje jako na mobilu. */
@media (max-width: 1500px) { .ph-hud { top: 84px; bottom: auto; } }
@media (max-width: 1100px) { .ph-hud { display: none; } }
@media (max-width: 860px) { .ph-hud { display: none; } .hero--model .hero-stats { display: none; } .hero--model .hero-actions { flex-direction: column; align-items: center; } }

/* ---------- Prohlášení ---------- */
.ph-state { background: var(--bg-3); }
.ph-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); }
.ph-cols > div { position: relative; padding-top: 22px; border-top: 1px solid var(--hair-2); }
.ph-cols > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: #fff; }
.ph-cols h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .01em; color: #fff; }
.ph-cols p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--tx-2); }

/* ---------- Vznik dvojčete: animace ---------- */
.ph-build { background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%); }
.ph-build-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.ph-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #141518; box-shadow: 0 0 0 1px var(--hair); }
.ph-stage canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; opacity: var(--fade, 1); }
.ph-stage.is-flat { background: #141518 url("assets/photos/hala-letecky-1600.jpg") center / cover; }
.ph-stage-hud { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none; }
.ph-stage-hud b { display: block; font-size: 13px; font-weight: 500; color: #fff; }
.ph-stage-hud span { display: block; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.ph-stage-hud .t { font-size: 26px; font-weight: 500; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ph-stage-tag { position: absolute; z-index: 2; left: 22px; top: 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); pointer-events: none; }
.ph-steps { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.ph-steps li { position: relative; padding: 18px 0 18px 22px; border-bottom: 1px solid var(--hair); cursor: pointer; transition: color .25s; }
.ph-steps li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: #fff; opacity: 0; transition: opacity .3s; }
.ph-steps li.is-on::before { opacity: 1; }
.ph-steps b { display: block; font-size: 15px; font-weight: 500; color: var(--tx-3); transition: color .3s; }
.ph-steps li.is-on b, .ph-steps li:hover b { color: #fff; }
.ph-steps p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: var(--tx-3); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s ease, margin .3s; }
.ph-steps li.is-on p { max-height: 90px; opacity: 1; color: var(--tx-2); }
@media (max-width: 1000px) { .ph-build-grid { grid-template-columns: 1fr; } .ph-steps { flex-direction: row; border-top: 0; } .ph-steps li { flex: 1; padding: 14px 0 0 0; border-bottom: 0; border-top: 1px solid var(--hair); } .ph-steps li::before { left: 0; right: auto; top: -1px; bottom: auto; height: 1px; width: 100%; } .ph-steps p { display: none; } }
@media (max-width: 600px) { .ph-steps b { font-size: 13px; } .ph-stage-hud .t { font-size: 20px; } .ph-stage-hud span { display: none; } }

/* ---------- Snímek a model (twin) ---------- */
.ph-twin { background: var(--bg); }
.ph-twin .twin { border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); }
.ph-twin .twin-spec, .ph-twin .twin-tag, .ph-twin .twin-full, .ph-twin .twin-reset, .ph-twin .twin-sun, .ph-twin .twin-3d, .ph-twin .twin-hint { display: none !important; }

/* ---------- Vstupní data: dlaždice ---------- */
.ph-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ph-tile { position: relative; overflow: hidden; border-radius: 14px; background: var(--bg-3); box-shadow: 0 0 0 1px var(--hair); }
.ph-tile-vis { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0f1013; }
.ph-tile-vis canvas, .ph-tile-vis img, .ph-tile-vis svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-tile-vis img { object-position: 46% 50%; filter: saturate(.8) brightness(.92) contrast(1.05); }
.ph-tile-vis .scale { position: absolute; left: 12px; bottom: 10px; font-size: 10px; letter-spacing: .04em; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.ph-tile-vis .scale::before { content: ""; display: block; width: 33%; min-width: 48px; height: 2px; margin-bottom: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.ph-tile-vis .credit { position: absolute; right: 12px; top: 10px; font-size: 10px; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.ph-tile-vis .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 25% 25%; pointer-events: none; }
.ph-tile-vis .cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 50%; }
.ph-tile-vis .cross::before, .ph-tile-vis .cross::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, .9); }
.ph-tile-vis .cross::before { width: 30px; height: 1px; margin: 0 0 0 -15px; }
.ph-tile-vis .cross::after { width: 1px; height: 30px; margin: -15px 0 0 0; }
.ph-tile-vis .doc { position: absolute; inset: 0; padding: 18px 18px 0; display: flex; flex-direction: column; justify-content: center; }
.ph-tile-vis .doc div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--tx-3); }
.ph-tile-vis .doc div b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.ph-tile-meta { padding: 16px 18px 18px; }
.ph-tile-meta b { display: block; font-size: 14px; font-weight: 500; color: #fff; }
.ph-tile-meta .val { display: block; margin-top: 8px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ph-tile-meta .val small { font-size: 13px; color: var(--tx-3); letter-spacing: 0; margin-left: 6px; }
.ph-tile-meta span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--tx-3); }
.ph-legend { position: absolute; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: rgba(255, 255, 255, .75); }
.ph-legend i { display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--ramp); }
@media (max-width: 1080px) { .ph-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ph-tiles { grid-template-columns: 1fr; } }

/* ---------- Fyzika ---------- */
.ph-phys { background: var(--bg); }
.ph-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph-cards { gap: 32px clamp(20px, 2.5vw, 40px); }
.ph-card { position: relative; padding-top: 18px; border-top: 1px solid var(--hair-2); }
.ph-card::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: #fff; }
.ph-card-vis { aspect-ratio: 16 / 9; }
.ph-card-vis svg { display: block; width: 100%; height: 100%; }
.ph-card-body { padding: 14px 0 0; }
.ph-card-body b { display: block; font-size: 15px; font-weight: 500; color: #fff; }
.ph-card-body p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--tx-2); }
.ph-card-body small { display: block; margin-top: 10px; font-size: 12px; color: var(--tx-3); }
@media (max-width: 1000px) { .ph-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ph-cards { grid-template-columns: 1fr; } }

/* Grafy (SVG generované skriptem) */
.ch text { font-family: var(--font); font-size: 11px; fill: var(--tx-3); }
.ch .ax { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.ch .gr { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.ch .mod { fill: none; stroke: #8e9195; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ch .real { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch .area { fill: rgba(255, 255, 255, .06); }
.ch .loss { fill: rgba(224, 98, 90, .28); }
.ch .alert { stroke: var(--alert); }
.ch .blue { stroke: #3e6ae1; }
.ch .lbl { fill: #fff; font-weight: 500; }
.ch .dimf { fill: rgba(255, 255, 255, .5); }
.ch .dot { fill: #fff; }
.ch .thin { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.ch .faint { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1; }

/* ---------- Model proti skutečnosti ---------- */
.ph-cmp { background: var(--bg-2); }
.ph-cmp-stage { padding: 0; }
.ph-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; padding: 22px 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair); }
.ph-kpis span { display: block; font-size: 12px; color: var(--tx-3); }
.ph-kpis b { display: block; margin-top: 6px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ph-kpis b.neg { color: var(--alert); }
.ph-kpis small { display: block; margin-top: 4px; font-size: 12px; color: var(--tx-3); }
.ph-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 6px; }
.ph-chart-head .ttl { font-size: 14px; font-weight: 500; color: #fff; }
.ph-chart-head .leg { display: flex; gap: 18px; font-size: 12px; color: var(--tx-3); }
.ph-chart-head .leg i { display: inline-block; width: 18px; height: 0; margin: 0 8px 3px 0; border-top: 2px solid #fff; vertical-align: middle; }
.ph-chart-head .leg i.m { border-top: 1.5px dashed #8e9195; }
.ph-chart-head .leg i.l { height: 8px; border: 0; background: rgba(224, 98, 90, .4); }
.ph-chart { position: relative; }
.ph-chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.ph-chart .ro { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: rgba(15, 16, 19, .94); box-shadow: 0 0 0 1px var(--hair-2); font-size: 12px; color: var(--tx-3); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.ph-chart .ro.is-on { opacity: 1; }
.ph-chart .ro b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.ph-chart .ro div { display: flex; justify-content: space-between; gap: 18px; }
.ph-chart .ro .d { color: var(--alert); }
.ph-chart--res { margin-top: 4px; }
@media (max-width: 860px) { .ph-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ph-chart-head .leg { display: none; } .ph-chart { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; } .ph-chart svg { min-width: 820px; } .ph-chart .ro { display: none; } }

/* ---------- Otisky poruch ---------- */
.ph-sigs { background: var(--bg); }
.ph-sig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ph-sig-grid { gap: 32px clamp(20px, 2.5vw, 40px); }
.ph-sig { position: relative; padding-top: 18px; border-top: 1px solid var(--hair-2); }
.ph-sig::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: #fff; }
.ph-sig svg { display: block; width: 100%; height: auto; }
.ph-sig b { display: block; margin-top: 14px; font-size: 15px; font-weight: 500; color: #fff; }
.ph-sig p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--tx-2); }
.ph-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.ph-facts > div { padding-top: 18px; border-top: 1px solid var(--hair-2); }
.ph-facts b { display: block; font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ph-facts span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--tx-2); }
@media (max-width: 1000px) { .ph-sig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ph-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ph-sig-grid { grid-template-columns: 1fr; } }

/* ---------- Interaktivní model ---------- */
.ph-model { background: var(--bg); }
.ph-model .twin--solo { border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); }
.ph-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(28px, 3vw, 44px) 0 0; }
.ph-specs div { padding-top: 16px; border-top: 1px solid var(--hair-2); }
.ph-specs dt { font-size: 13px; color: var(--tx-3); }
.ph-specs dd { margin: 6px 0 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.015em; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .ph-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Problém: čísla ---------- */
.ph-problem { background: var(--bg-3); }
.ph-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: clamp(40px, 5vw, 64px); }
.ph-metrics > div { padding-top: 22px; border-top: 1px solid var(--hair-2); }
.ph-metrics b { display: block; font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.035em; color: #fff; font-variant-numeric: tabular-nums; }
.ph-metrics span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--tx-2); }
.ph-metrics small { display: block; margin-top: 10px; font-size: 12px; color: var(--tx-3); }
.ph-money { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: clamp(40px, 5vw, 64px); padding: 24px 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.ph-money p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); color: #fff; }
.ph-money p b { font-weight: 500; }
.ph-money .link { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .ph-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }

/* ---------- Simulátor (tmavá varianta sdílené komponenty) ---------- */
.ph-sim { background: var(--bg-2); }
.page-parhelion .sim { background: none; box-shadow: none; border-radius: 0; gap: clamp(32px, 4vw, 64px); }
.page-parhelion .sim, .page-parhelion .sim h3, .page-parhelion .sim-toggle b, .page-parhelion .lc-label, .page-parhelion .sim-kpis b { color: #fff; }
.page-parhelion .sim p, .page-parhelion .sim-toggle span, .page-parhelion .sim-kpis span, .page-parhelion .sim-kpis small, .page-parhelion .sim-note, .page-parhelion .growth-head { color: var(--tx-3); }
.page-parhelion .sim-panel { padding: 0; background: none; }
.page-parhelion .sim-out { padding: 0; background: none; }
.page-parhelion .sim-toggle { border-color: var(--hair-2); background: none; }
.page-parhelion .sim-toggle:has(input:checked) { background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--hair-2); }
.page-parhelion .sim-kpis > div { border-color: var(--hair); }
.page-parhelion .sim-chart, .page-parhelion .growth { background: transparent; box-shadow: none; }
.page-parhelion .sim-chart .growth-head b { color: #fff; }
.page-parhelion .range::-webkit-slider-runnable-track { background: linear-gradient(to right, #fff 0 var(--fill), rgba(255, 255, 255, .18) var(--fill) 100%); }
.page-parhelion .range::-moz-range-track { background: rgba(255, 255, 255, .18); }
.page-parhelion .range::-moz-range-progress { background: #fff; }
.page-parhelion #sim-chart text { fill: var(--tx-3); }
.page-parhelion #sim-chart line, .page-parhelion #sim-chart path[stroke="#ececec"], .page-parhelion #sim-chart path[stroke="#c9c9c9"] { stroke: rgba(255, 255, 255, .12); }

/* ---------- Tři kroky ---------- */
.ph-plan { background: var(--bg); }
.ph-plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); margin: 0; padding: 0; counter-reset: krok; }
.ph-plan-list li { position: relative; padding-top: 22px; border-top: 1px solid var(--hair-2); }
.ph-plan-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: #fff; }
.ph-plan-list small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.ph-plan-list h3 { margin: 10px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.ph-plan-list p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--tx-2); }
.ph-sources { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair-2); }
.ph-sources div { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.ph-sources div span:first-child { color: #fff; font-weight: 500; }
.ph-sources div span:last-child { color: var(--tx-2); }
@media (max-width: 860px) { .ph-plan-list { grid-template-columns: 1fr; } .ph-sources div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Funkce ---------- */
.ph-caps { background: var(--bg-2); }
.ph-cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.ph-cap-grid h3 { margin: 0 0 6px; padding-top: 18px; border-top: 1px solid var(--hair-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); }
.ph-cap-grid > div > div { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.ph-cap-grid b { display: block; font-size: 15px; font-weight: 500; color: #fff; }
.ph-cap-grid span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; color: var(--tx-2); }
@media (max-width: 1000px) { .ph-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ph-cap-grid { grid-template-columns: 1fr; } }

/* ---------- Srovnání ---------- */
.ph-compare { background: var(--bg); }
.page-parhelion .compare::before { background: var(--bg-3); }
.page-parhelion .compare-row { border-bottom-color: var(--hair); }
.page-parhelion .compare-row > * { color: var(--tx-2); }
.page-parhelion .compare-row > :first-child { color: #fff; }
.page-parhelion .compare-head { border-bottom-color: var(--hair-2); }
.page-parhelion .compare-head > * { color: var(--tx-3); }
.page-parhelion .compare-head .compare-us { color: #fff; }
.page-parhelion .c-yes, .page-parhelion .c-no, .page-parhelion .c-part { color: var(--tx-2); }
.page-parhelion .compare-us.c-yes { color: #fff; }
.page-parhelion .c-yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.6' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.page-parhelion .c-no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='none' stroke='%236f7277' stroke-width='1.5'/%3E%3Cpath d='M6.5 10h7' stroke='%236f7277' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-parhelion .compare-us.c-part::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cpath d='M10 1.5a8.5 8.5 0 0 1 0 17z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.page-parhelion .c-part::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='none' stroke='%23a9acb0' stroke-width='1.5'/%3E%3Cpath d='M10 1.5a8.5 8.5 0 0 1 0 17z' fill='%23a9acb0'/%3E%3C/svg%3E"); }

/* ---------- Otázky ---------- */
.ph-faq { background: var(--bg-2); }
.page-parhelion .faq { border-top-color: var(--hair-2); }
.page-parhelion .faq details { border-bottom-color: var(--hair); }
.page-parhelion .faq summary { color: #fff; }
.page-parhelion .faq summary:hover { color: var(--tx-2); }
.page-parhelion .faq summary::after { filter: invert(1); }
.page-parhelion .faq details p { color: var(--tx-2); }
.page-parhelion .faq .link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Závěr ---------- */
.ph-close { background: var(--bg); }
.ph-close .statement p { color: var(--tx-2); }
.ph-close .product-name { color: var(--tx-3); }
.ph-close .risk-row li { color: var(--tx-2); }
.ph-close .btn-ghost { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); color: #fff; }
.ph-close .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Nástup ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
@media (max-width: 860px) { .ph-head { grid-template-columns: 1fr; } .ph-cols { grid-template-columns: 1fr; } }

/* ---------- Jedno pozadí pro celou stránku, sekce dělí jen rytmus a textura ---------- */
.ph-state, .ph-build, .ph-twin, .ph-data, .ph-phys, .ph-cmp, .ph-sigs, .ph-model, .ph-problem, .ph-sim, .ph-plan, .ph-caps, .ph-compare, .ph-faq, .ph-close { background: var(--bg); }
.page-parhelion .compare::before { background: rgba(255, 255, 255, .04); }
.ph-sec + .ph-sec { padding-top: clamp(56px, 6vw, 88px); }

/* ---------- Patička Parhelionu: plná šířka, dva stupně do hloubky, blueprint modulu ---------- */
/* Patička: stejný pruh jako na zbytku webu, jen tmavý a s modrotiskem panelu */
.sfx--dark { background: linear-gradient(180deg, var(--bg) 0%, #0f1013 100%); }
.sfx--dark .sfx-in { position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1a1b1e 0%, #141518 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--hair-2); }
.sfx--dark .sfx-in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000); mask-image: linear-gradient(90deg, transparent 55%, #000); }
/* Rozměry patičky Parhelionu zůstávají beze změny proti původnímu návrhu */
.sfx--dark { padding: 0 clamp(16px, 4vw, 72px) clamp(24px, 4vw, 40px) clamp(24px, 5vw, 88px); }
.sfx--dark .sfx-in { padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 44px) 20px; }
.sfx--dark .sfx-top { position: relative; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) clamp(150px, 14vw, 210px); gap: 32px clamp(32px, 6vw, 88px); }
.sfx--dark .sfx-brand { gap: 14px; }
.sfx--dark .sfx-mark svg { width: 22px; height: 22px; }
.sfx--dark .sfx-claim { max-width: 28ch; line-height: 1.55; }
.sfx--dark .sfx-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 4vw, 64px); }
.sfx--dark .sfx-cols h4 { margin-bottom: 14px; font-size: 14px; }
.sfx--dark .sfx-cols a { margin-bottom: 10px; }
.sfx--dark .sfx-base { margin-top: clamp(24px, 3vw, 36px); }
.sfx--dark .sfx-mark { color: #fff; }
.sfx--dark .sfx-claim { color: var(--tx-2); }
.sfx--dark .sfx-cta { min-width: 0; height: 36px; padding: 0 18px; font-size: 13px; justify-self: start; }
.sfx--dark .sfx-region { color: var(--tx-2); }
.sfx--dark .sfx-region:hover { color: #fff; }
.sfx--dark .sfx-cols h4 { color: #fff; }
.sfx--dark .sfx-cols a { color: var(--tx-2); }
.sfx--dark .sfx-cols a:hover { color: #fff; }
.sfx--dark .sfx-base { position: relative; border-top-color: var(--hair); color: var(--tx-3); }
.sfx--dark .sfx-legal a { color: var(--tx-3); }
.sfx--dark .sfx-legal a:hover { color: #fff; }
.sfx--dark .ph-footer-bp { align-self: start; }
.ph-footer-bp { position: relative; justify-self: end; width: 100%; }
.ph-footer-bp svg { display: block; width: 100%; height: auto; }
.ph-footer-bp svg * { fill: none; vector-effect: non-scaling-stroke; }
.ph-footer-bp .bp-frame { stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; }
.ph-footer-bp .bp-glass { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.ph-footer-bp .bp-cells { stroke: rgba(255, 255, 255, .4); stroke-width: .8; }
.ph-footer-bp .bp-bus { stroke: rgba(255, 255, 255, .2); stroke-width: .6; }
.ph-footer-bp .bp-fingers { stroke: rgba(255, 255, 255, .05); stroke-width: .5; }
.ph-footer-bp .bp-dim { stroke: rgba(255, 255, 255, .3); stroke-width: .8; }
.ph-footer-bp-tag { display: block; margin-top: 14px; font-size: 11px; line-height: 1.5; color: var(--tx-3); text-align: right; }
.ph-footer-bp-tag b { display: block; font-weight: 500; color: var(--tx-2); }
@media (max-width: 1100px) { .sfx--dark .sfx-top { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); } .sfx--dark .ph-footer-bp { display: none; } }
@media (max-width: 860px) { .sfx--dark .sfx-top { grid-template-columns: 1fr; } .sfx--dark .sfx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sfx--dark .sfx-cols { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .page-parhelion .ph-footer .sf-cols { grid-template-columns: 1fr; } }

/* ---------- Výběr regionu na tmavé stránce: zachovat světlou kartu ---------- */
.page-parhelion .region-panel { color: var(--ink); }
.page-parhelion .region-panel h2, .page-parhelion .region-panel h3, .page-parhelion .region-panel b, .page-parhelion .region-panel a { color: var(--ink); }
.page-parhelion .region-panel .region-current, .page-parhelion .region-panel .region-note, .page-parhelion .region-panel .region-intl { color: var(--muted); }
.page-parhelion .region-panel [role="tab"] { color: var(--ink-2); }

/* ---------- Výsledky ověření (čísla z dokumentace Parhelion v1.0) ----------
   Velká čísla v řadě, dvě srovnání s klasickými metodami (zvýrazněný Parhelion, ostatní šedě,
   hodnota u konce sloupce) a blok první reálné elektrárny. */
.ph-res-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.ph-res-kpis > div { padding-top: 22px; border-top: 1px solid var(--hair-2); }
.ph-res-kpis b { display: block; font-size: clamp(40px, 4.6vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.ph-res-kpis span { display: block; margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--tx); }
.ph-res-kpis small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--tx-3); }

.ph-res-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.ph-res-chart { margin: 0; padding: clamp(24px, 3vw, 40px); border-radius: 16px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--hair); }
.ph-res-chart figcaption b { display: block; font-size: 20px; font-weight: 500; color: #fff; }
.ph-res-chart figcaption span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--tx-2); }
.ph-bars { display: grid; gap: 16px; margin-top: 28px; }
.ph-bars li { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 64px; align-items: center; gap: 16px; font-size: 14px; color: var(--tx-2); }
.ph-bars .bar { position: relative; height: 20px; }
.ph-bars .bar::before { content: ""; position: absolute; left: 0; top: -4px; bottom: -4px; width: 1px; background: var(--hair-2); }
.ph-bars .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); min-width: 3px; border-radius: 0 4px 4px 0; background: #6b6e75; }
.ph-bars .is-us { color: #fff; }
.ph-bars .is-us .bar i { background: #5b86f0; }
.ph-bars b { font-weight: 500; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

.ph-res-real { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px clamp(40px, 6vw, 96px); margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair-2); }
.ph-res-real-head .ph-eyebrow { margin-bottom: 14px; }
.ph-res-real-head h3 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; color: #fff; }
.ph-res-real-head p { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--tx-2); }
.ph-res-real-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 0; }
.ph-res-real-grid > div { padding-top: 16px; border-top: 1px solid var(--hair); }
.ph-res-real-grid dt { font-size: clamp(26px, 2.4vw, 38px); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.ph-res-real-grid dd { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--tx-2); }

@media (max-width: 960px) {
  .ph-res-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .ph-res-cmp, .ph-res-real { grid-template-columns: 1fr; }
  .ph-res-real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ph-bars li { grid-template-columns: 1fr 56px; row-gap: 6px; }
  .ph-bars .lbl { grid-column: 1 / -1; }
  .ph-res-real-grid { grid-template-columns: 1fr; }
}
