/* WHAT THIS IS: vrstva pre varianty spoločnej homepage (web/hp-a, hp-b, hp-c), nad pegas-web.css a web-b2c.css.
   HOW TO USE: generuje homepage_varianty/gen.py. Svet domácností = trieda hp-b2c (modrý akcent), firmy = zelená z tokenov. */

.hp-b2c { --accent: #00A1E4; --accent-text: #0073AD; --accent-soft: #E4F4FC; --accent-rgb: 0, 161, 228; }
.p-base .hp-b2c .p-btn:not(.p-btn--secondary) { --_bg: #0073AD; --_bd: #0073AD; --_fg: #FFFFFF; }
.p-base .hp-b2c .p-btn:not(.p-btn--secondary):hover { --_bg: #005F8F; --_bd: #005F8F; }

.hp-pill { display: inline-flex; justify-self: start; align-self: start; margin: 0; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }

.hp-links { list-style: none; margin: 0; padding: 0; display: grid; }
.hp-links a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; }
.hp-links li:last-child a { border-bottom: 1px solid var(--line); }
.hp-links svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1); }
.hp-links a:hover { color: var(--accent-text); }
.hp-links a:hover svg { transform: translateX(4px); }

.hp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.hp-facts li { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.hp-facts strong { font-size: 1.375rem; line-height: 1.2; }
.hp-facts span { color: var(--ink-2); line-height: 1.5; }

/* ---------- A: dve polovice ---------- */
.hpa-top { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: end; padding-block: var(--s-7) var(--s-6); }
.hpa-h1 { margin: 0; font-size: clamp(1.75rem, 0.9rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.08; max-width: 18ch; text-wrap: balance; }
.hpa-lead { margin: 0; font-size: 1.125rem; font-weight: 500; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hpa-split { display: flex; gap: 4px; height: min(72svh, 720px); min-height: 480px; padding-inline: 4px; }
.hpa-panel { position: relative; flex: 1 1 0; overflow: hidden; border-radius: var(--r-ui); color: #FFFFFF; text-decoration: none; transition: flex-grow .6s cubic-bezier(0.16, 1, 0.3, 1); }
.hpa-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1); }
.hpa-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,14,0) 30%, rgba(11,13,14,.55) 55%, rgba(11,13,14,.88) 100%); }
.hpa-panel__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: var(--s-4); padding: clamp(24px, 3vw, 48px); max-width: 620px; }
.hpa-panel .hp-pill { background: #FFFFFF; }
.hpa-panel__title { margin: 0; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.12; font-weight: 700; text-wrap: balance; }
.hpa-panel__text { margin: 0; color: rgba(255,255,255,.86); line-height: 1.5; max-width: 46ch; }
.hpa-panel .p-btn { justify-self: start; }
@media (hover: hover) and (min-width: 961px) {
  .hpa-split:hover .hpa-panel { flex-grow: .8; }
  .hpa-split .hpa-panel:hover { flex-grow: 1.25; }
  .hpa-panel:hover img { transform: scale(1.03); }
}
.hpa-quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); padding-block: var(--s-7) var(--s-8); }
.hpa-quick__h { margin: 0 0 var(--s-3); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; color: var(--accent-text); }
.hp-links--row a { padding: 12px 0; }

/* ---------- B: dve karty ---------- */
.hpb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); padding-bottom: var(--s-9); }
.hpb-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-lg); background: #FFFFFF; border: 1px solid var(--line); }
.hpb-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.hpb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1); }
.hpb-card:hover .hpb-card__img img { transform: scale(1.03); }
.hpb-card__body { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); }
.hpb-card__title { margin: 0; font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1.15; text-wrap: balance; }
.hpb-card__title a { color: inherit; text-decoration: none; }
.hpb-card__text { margin: 0; color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
.hpb-card .hp-links { margin-top: var(--s-2); }
.hpb-card .p-btn { justify-self: start; margin-top: var(--s-3); }

/* ---------- C: prepínač v úvode ---------- */
.hpc-top { padding-bottom: var(--s-6); }
.hpc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: 6px; margin-bottom: var(--s-6); border-radius: 14px; background: #E4E7E9; }
.hpc-tab { display: grid; gap: 2px; text-align: left; padding: 14px 20px; border: 0; border-radius: var(--r-ui); background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; transition: background .3s cubic-bezier(0.16, 1, 0.3, 1); }
.hpc-tab strong { font-size: 1.0625rem; text-transform: uppercase; color: var(--ink); }
.hpc-tab span { font-size: 0.875rem; }
.hpc-tab:hover { background: rgba(255,255,255,.55); }
.hpc-tab[aria-selected="true"] { background: #FFFFFF; box-shadow: inset 0 -3px 0 var(--accent); }
.hpc-tab:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.hpc-more { margin: var(--s-6) 0 0; display: flex; justify-content: center; }
.hp-c .hpc-panel .c2-cards { padding-bottom: var(--s-8); }
html:not(.js) .hpc-tabs { display: none; }

@media (max-width: 960px) {
  .hpa-top { grid-template-columns: 1fr; gap: var(--s-4); }
  .hpa-split { flex-direction: column; height: auto; min-height: 0; }
  .hpa-panel { min-height: 460px; }
  .hpa-quick, .hpb-grid { grid-template-columns: 1fr; }
  .hp-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hp-facts { grid-template-columns: 1fr; }
  .hpc-tab { padding: 12px; }
  .hpc-tab span { display: none; }
  .hpb-card__body { padding: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) {
  .hpa-panel, .hpa-panel img, .hpb-card__img img, .hp-links svg, .hpc-tab { transition: none; }
}
