/**
 * Sablona 2026-005 Technik - homepage (sekce uvod, artboard 01; ANALYZA kap. 2.10). Linkuje jadro podle sekce
 * (css/sekce/uvod.css) za _core/css/uvod.css. Poradi sekci: manifest uvod_sekce / pruvodce sablonou.
 */
.tpl-uvod { display: flex; flex-direction: column; --tpl-uvod-gap: var(--tpl-grid-gap); }
.tpl-uvod > .tpl-uvod-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tpl-uvod > .tpl-uvod-sekce { margin: var(--tpl-section-gap) 0 0; }
.tpl-uvod > .tk-uvod-kategorie:first-child,
.tpl-uvod > .tpl-uvod-h1 + .tk-uvod-kategorie { margin-top: 4px; }
.tpl-uvod > .tk-uvod-kategorie + .tk-hero,
.tpl-uvod > .tk-hero + .tk-usp,
.tpl-uvod > .tk-hero + .tk-uvod-kategorie { margin-top: 16px; }
.tpl-uvod .tpl-uvod-hlava { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.tpl-uvod .tpl-uvod-nadpis,
#prostredek .tpl-uvod .tpl-uvod-nadpis { margin: 0; font: var(--tpl-head-weight) calc(24px - var(--tpl-head-shrink))/1.25 var(--tpl-font-head); letter-spacing: var(--tpl-head-ls); color: var(--tpl-text); }
.tpl-uvod .tpl-uvod-vse { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--tpl-link); }
.tpl-uvod .tpl-uvod-vse::after { content: ' →'; }

/* --- kategorie s ikonami: 8 dlazdic 160 x 120 --- */
.tk-uvod-kat-nadpis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-uvod-kat { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--tpl-grid-gap); margin: 0; padding: 0; list-style: none; }
.tk-uvod-kat-a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 120px; padding: 8px;
    border: 1px solid var(--tpl-border); border-radius: var(--tpl-card-radius); background: var(--tpl-surface);
    color: var(--tpl-text); text-align: center; text-decoration: none; box-shadow: var(--tpl-shadow);
}
.tk-uvod-kat-a:hover { border-color: var(--tpl-primary); color: var(--tpl-text); text-decoration: none; }
.tk-uvod-kat-a .tk-ikona { width: 40px; height: 40px; color: var(--tpl-primary); }
.tk-uvod-kat-foto { width: 40px; height: 40px; object-fit: contain; border-radius: var(--tpl-thumb-radius); }
.tk-uvod-kat-n { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tk-uvod-kat-c { font-size: 12px; color: var(--tpl-text-light); }

/* --- hero: banner 2/3 + 2 dlazdice 1/3 --- */
.tk-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--tpl-grid-gap); }
.tk-hero-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); height: 360px; border-radius: var(--tpl-area-radius); overflow: hidden; background: var(--tpl-secondary); color: var(--tpl-text); }
.tk-hero-banner--bez-foto { grid-template-columns: minmax(0, 1fr); }
.tk-hero-banner-t { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 36px; }
#prostredek .tk-hero-nadpis,
.tk-hero-nadpis { margin: 0; font: var(--tpl-head-weight) calc(32px - var(--tpl-head-shrink))/1.15 var(--tpl-font-head); letter-spacing: var(--tpl-head-ls); color: var(--tpl-text); }
.tk-hero-perex { margin: 0; color: var(--tpl-text-light); }
.tk-hero-cta { margin: 4px 0 0; }
.tk-hero-foto, .tk-hero-tile-foto { display: block; height: 100%; min-height: 0; }
.tk-hero-foto img, .tk-hero-tile-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-hero-dlazdice { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--tpl-grid-gap); }
.tk-hero-tile { display: grid; grid-template-columns: minmax(0, 1fr) 168px; min-height: 172px; border-radius: var(--tpl-area-radius); overflow: hidden; background: var(--tpl-secondary); color: var(--tpl-text); text-decoration: none; }
.tk-hero-tile--bez-foto { grid-template-columns: minmax(0, 1fr); }
.tk-hero-tile:hover { color: var(--tpl-text); text-decoration: none; }
.tk-hero-tile-t { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 24px; }
.tk-hero-tile-n { font: var(--tpl-head-weight) calc(18px - var(--tpl-head-shrink))/1.3 var(--tpl-font-head); letter-spacing: var(--tpl-head-ls); }
.tk-hero-tile-p { font-size: 13px; color: var(--tpl-text-light); }
.tk-hero-tile-a { font-size: 14px; font-weight: 600; color: var(--tpl-link); }
.tk-hero-tile:hover .tk-hero-tile-a { text-decoration: underline; }

/* --- USP 4 polozky, vyska 64 --- */
.tk-usp-seznam { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--tpl-border); border-radius: var(--tpl-area-radius); background: var(--tpl-surface); }
.tk-usp-i { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 20px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tk-usp-i + .tk-usp-i { border-left: 1px solid var(--tpl-line); }
.tk-usp-i > .tk-ico, .tk-usp-i > .tpl-uvod-ico { color: var(--tpl-primary); flex: none; }
.tk-usp-p { display: block; font-weight: 400; font-size: 13px; color: var(--tpl-text-light); }

/* --- karusel s taby (J-T14): taby jako tlacitka, aktivni primary-fill; 5 karet na 1400 --- */
.tpl-uvod .tpl-uvod-karusel { --tpl-uvod-karet: 5; }
.tpl-uvod-karusel--taby .tpl-uvod-hlava { flex-wrap: wrap; }
.tpl-uvod .tpl-uvod-taby { flex: 0 1 auto; gap: 4px; }
.tpl-uvod .tpl-uvod-tab { min-height: 40px; padding: 0 14px; border: 1px solid var(--tpl-border); border-radius: var(--tpl-radius); background: var(--tpl-surface); color: var(--tpl-text); font: 600 14px/1 var(--tpl-font); }
.tpl-uvod .tpl-uvod-tab:hover { border-color: var(--tpl-primary); }
.tpl-uvod .tpl-uvod-tab--aktivni,
.tpl-uvod .tpl-uvod-tab[aria-selected="true"] { background: var(--tpl-primary-fill); border-color: var(--tpl-primary-fill); color: var(--tpl-primary-fill-text); }
.tpl-uvod .tpl-uvod-karusel-polozka > article.polozka { flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; }
.tpl-uvod .tpl-uvod-karusel-pas { padding-bottom: 8px; }
.tpl-uvod .tpl-uvod-karusel-sipka { border-color: var(--tpl-border); background: var(--tpl-surface); box-shadow: var(--tpl-shadow-hover); }
.tpl-uvod .tpl-uvod-karusel-tecka::before { width: 24px; height: 4px; border-radius: 2px; background: var(--tpl-border); }
.tpl-uvod .tpl-uvod-karusel-tecka[aria-current="true"]::before { background: var(--tpl-primary); transform: none; }

/* --- znacky: 8 log, sede, na hover barevne --- */
.tpl-uvod .tpl-uvod-znacky-seznam { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--tpl-grid-gap); margin: 0; padding: 0; list-style: none; }
.tpl-uvod .tpl-uvod-znacky-polozka a { display: flex; align-items: center; justify-content: center; height: 56px; padding: 6px 12px; border: 1px solid var(--tpl-border); border-radius: var(--tpl-radius); background: var(--tpl-surface); }
.tpl-uvod .tpl-uvod-znacky-polozka a:hover { border-color: var(--tpl-primary); }
.tpl-uvod .tpl-uvod-znacky-polozka img { max-width: 100%; max-height: 40px; width: auto; height: auto; filter: grayscale(1); opacity: .75; transition: filter var(--tpl-transition), opacity var(--tpl-transition); }
.tpl-uvod .tpl-uvod-znacky-polozka a:hover img { filter: none; opacity: 1; }

/* --- clanky (Poradna): 3 karty --- */
.tpl-uvod .tpl-uvod-clanky-seznam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tpl-grid-gap); margin: 0; padding: 0; list-style: none; }
.tpl-uvod .tpl-uvod-clanek { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 0 0 16px; border: 1px solid var(--tpl-border); border-radius: var(--tpl-card-radius); overflow: hidden; background: var(--tpl-surface); }
.tpl-uvod .tpl-uvod-clanek:hover { box-shadow: var(--tpl-shadow-hover); }
.tpl-uvod .tpl-uvod-clanek-foto { display: block; height: 200px; background: var(--tpl-surface-2); }
.tpl-uvod .tpl-uvod-clanek-foto img { width: 100%; height: 100%; object-fit: cover; }
.tpl-uvod .tpl-uvod-clanek > :not(.tpl-uvod-clanek-foto) { margin-left: 16px; margin-right: 16px; }
#prostredek .tpl-uvod .tpl-uvod-clanek-nadpis { margin: 8px 16px 0; font: var(--tpl-head-weight) calc(18px - var(--tpl-head-shrink))/1.3 var(--tpl-font-head); }
.tpl-uvod .tpl-uvod-clanek-nadpis a { color: var(--tpl-text); }
.tpl-uvod .tpl-uvod-clanek-datum { font-size: 13px; color: var(--tpl-text-light); }
.tpl-uvod .tpl-uvod-clanek-perex { margin: 0 16px; font-size: 14px; color: var(--tpl-text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- newsletter: pruh 96 px, pole + tlacitko v radku --- */
.tpl-uvod .tpl-uvod-newsletter { display: flex; align-items: center; gap: 32px; min-height: 96px; padding: 16px 32px; border: 1px solid var(--tpl-border); border-radius: var(--tpl-area-radius); background: var(--tpl-surface-2); }
.tpl-uvod .tpl-uvod-newsletter-text p { margin: 4px 0 0; font-size: 14px; color: var(--tpl-text-light); }
.tpl-uvod .tpl-uvod-newsletter .tpl-uvod-nadpis { font-size: calc(20px - var(--tpl-head-shrink)); }
.tpl-uvod .tpl-uvod-newsletter-formular { margin-left: auto; max-width: 560px; font-size: 13px; }
.tpl-uvod .tpl-uvod-newsletter-formular form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.tpl-uvod .tpl-uvod-newsletter-formular input[type="email"],
.tpl-uvod .tpl-uvod-newsletter-formular input[type="text"] { width: 280px; }

/* --- SEO text: sbaleny na 3 radky (js/technik.js .tk-sbalit) --- */
.tpl-uvod .tpl-uvod-seo { max-width: 960px; font-size: 14px; color: var(--tpl-text); }

/* ---------------- tablet ---------------- */
@media (max-width: 1240px) {
    .tk-uvod-kat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tpl-uvod .tpl-uvod-karusel { --tpl-uvod-karet: 4; }
    .tpl-uvod .tpl-uvod-znacky-seznam { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .tk-hero { grid-template-columns: minmax(0, 1fr); }
    .tk-hero-dlazdice { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .tpl-uvod .tpl-uvod-karusel { --tpl-uvod-karet: 3; }
    .tpl-uvod .tpl-uvod-newsletter { flex-direction: column; align-items: stretch; }
    .tpl-uvod .tpl-uvod-newsletter-formular { margin-left: 0; }
}

/* ---------------- mobil: kategorie POD hero (order), 4 x 2 bez poctu ---------------- */
@media (max-width: 768px) {
    .tpl-uvod > * { order: 3; }
    .tpl-uvod > .tk-hero { order: 1; margin-top: 0; }
    .tpl-uvod > .tk-uvod-kategorie { order: 2; margin-top: var(--tpl-section-gap); }
    .tpl-uvod > .tk-hero + .tk-usp { margin-top: var(--tpl-section-gap); }
    .tk-uvod-kat-nadpis--mobil { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 0 0 12px; }
    .tk-uvod-kat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .tk-uvod-kat-a { height: auto; min-height: 92px; padding: 10px 4px; justify-content: flex-start; box-shadow: none; }
    .tk-uvod-kat-a .tk-ikona { width: 32px; height: 32px; }
    .tk-uvod-kat-n { font-size: 13px; hyphens: auto; overflow-wrap: anywhere; }
    .tk-uvod-kat-c { display: none; }
    .tk-hero-banner { grid-template-columns: minmax(0, 1fr); height: auto; }
    .tk-hero-banner .tk-hero-foto { order: -1; height: 200px; }
    .tk-hero-banner-t { padding: 14px 16px 16px; gap: 8px; }
    .tk-hero-nadpis,
    #prostredek .tk-hero-nadpis { font-size: calc(20px - var(--tpl-head-shrink)); }
    .tk-hero-perex { font-size: 14px; }
    .tk-hero-cta .tk-btn { width: 100%; min-height: 44px; }
    .tk-hero-dlazdice { gap: 8px; }
    .tk-hero-tile { grid-template-columns: minmax(0, 1fr); grid-template-rows: 88px auto; min-height: 0; }
    .tk-hero-tile-foto { grid-row: 1; }
    .tk-hero-tile-t { grid-row: 2; padding: 10px 12px 12px; gap: 2px; }
    .tk-hero-tile-n { font-size: 15px; }
    .tk-hero-tile-p { display: none; }
    .tk-usp-seznam { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tk-usp-i { min-height: 56px; padding: 8px 12px; gap: 8px; }
    .tk-usp-i + .tk-usp-i { border-left: 0; }
    .tk-usp-i:nth-child(2n) { border-left: 1px solid var(--tpl-line); }
    .tk-usp-i:nth-child(n+3) { border-top: 1px solid var(--tpl-line); }
    .tpl-uvod .tpl-uvod-karusel { --tpl-uvod-karet: 2.2; }
    .tpl-uvod .tpl-uvod-hlava { flex-wrap: wrap; }
    .tpl-uvod .tpl-uvod-taby { order: 2; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
    .tpl-uvod .tpl-uvod-tab { min-height: 44px; flex: none; }
    .tpl-uvod .tpl-uvod-znacky-seznam { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .tpl-uvod .tpl-uvod-clanky-seznam { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; }
    .tpl-uvod .tpl-uvod-clanky-polozka { flex: 0 0 80%; scroll-snap-align: start; }
    .tpl-uvod .tpl-uvod-newsletter { padding: 16px; }
    .tpl-uvod .tpl-uvod-newsletter-formular input[type="email"],
    .tpl-uvod .tpl-uvod-newsletter-formular input[type="text"] { width: 100%; }
}

/* --- dodatky: newsletter (jadro ma #sekce .tpl-uvod-newsletter v primary), sipky karuselu po stranach, znacky max 8 --- */
#sekce .tpl-uvod .tpl-uvod-newsletter { background: var(--tpl-surface-2); color: var(--tpl-text); }
#sekce .tpl-uvod .tpl-uvod-newsletter .tpl-uvod-nadpis,
#sekce .tpl-uvod .tpl-uvod-newsletter-text { color: var(--tpl-text); }
#sekce .tpl-uvod .tpl-uvod-newsletter-formular,
#sekce .tpl-uvod .tpl-uvod-newsletter-formular label,
#sekce .tpl-uvod .tpl-uvod-newsletter-formular p { color: var(--tpl-text-light); }
.tpl-uvod .tpl-uvod-karusel,
.tpl-uvod .tpl-uvod-karusel-panel { position: relative; }
.tpl-uvod .tpl-uvod-karusel-sipky {
    position: absolute; left: -20px; right: -20px; top: 150px; z-index: 4;
    display: flex; justify-content: space-between; pointer-events: none;
}
.tpl-uvod .tpl-uvod-karusel:not(.tpl-uvod-karusel--taby) > .tpl-uvod-hlava .tpl-uvod-karusel-sipky { top: 206px; }
.tpl-uvod .tpl-uvod-karusel-sipky[hidden] { display: none; }
.tpl-uvod .tpl-uvod-karusel-sipka { pointer-events: auto; }
.tpl-uvod .tpl-uvod-karusel-sipka:disabled { opacity: 0; }
.tpl-uvod .tpl-uvod-karusel-tecky { margin-top: 8px; }
.tpl-uvod .tpl-uvod-znacky-polozka:nth-child(n+9) { display: none; }
@media (max-width: 768px) {
    .tpl-uvod .tpl-uvod-karusel-sipky { display: none; }
}

/* hero varianta "slider" (customizer uvod_hero_typ; jadrovy slider.latte - styl slideru je jen v 2026-001, J-L30):
   prolinani slidu, sipky a tecky v tokenech Techniku */
.tpl-uvod-hero--slider .tpl-slider { position: relative; overflow: hidden; border-radius: var(--tpl-area-radius); background: var(--tpl-surface-2); }
.tpl-uvod-hero--slider .tpl-slider-track { position: relative; }
.tpl-uvod-hero--slider .tpl-slider-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity var(--tpl-transition); }
.tpl-uvod-hero--slider .tpl-slider-slide.active { position: relative; z-index: 1; opacity: 1; }
.tpl-uvod-hero--slider .tpl-slider-slide a { display: block; }
.tpl-uvod-hero--slider .tpl-slider-slide img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.tpl-uvod-hero--slider .tpl-slider-arrow {
    position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--tpl-border); border-radius: 50%; background: var(--tpl-surface); color: var(--tpl-text); box-shadow: var(--tpl-shadow-card, none); cursor: pointer; transform: translateY(-50%);
}
.tpl-uvod-hero--slider .tpl-slider-arrow:hover { border-color: var(--tpl-primary); color: var(--tpl-link); }
.tpl-uvod-hero--slider .tpl-slider-prev { left: 16px; }
.tpl-uvod-hero--slider .tpl-slider-next { right: 16px; }
.tpl-uvod-hero--slider .tpl-slider-dots { position: absolute; bottom: 12px; left: 50%; z-index: 3; display: flex; gap: 8px; transform: translateX(-50%); }
.tpl-uvod-hero--slider .tpl-slider-dot { flex: 0 0 10px; width: 10px; height: 10px; min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--tpl-primary); border-radius: 50%; background: var(--tpl-surface); cursor: pointer; }
.tpl-uvod-hero--slider .tpl-slider-dot.active { background: var(--tpl-primary); }
.tpl-uvod-hero--slider .tpl-slider-menu { display: none; }
@media (max-width: 768px) {
    .tpl-uvod-hero--slider .tpl-slider-slide img { max-height: 280px; }
    .tpl-uvod-hero--slider .tpl-slider-arrow { display: none; }
}
