/**
 * 2026-004 Linka – homepage (sekce uvod; jadro linkuje css/sekce/{sekce}.css samo). Navrh 01-Homepage-desktop/-mobil.
 * Sekce: sekce/uvod/{hero,kategorie,karusel,usp,o_nas,clanky,seo}.latte.
 */
body.sekce_uvod div#in_body { padding-top: 32px; }
.lk-uvod > .tpl-uvod-sekce:first-child { margin-top: 0; }
.lk-uvod-h1 { margin: 0 0 24px; font-size: calc(40px - var(--tpl-head-shrink)); }

/* --- hero --- */
.lk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--tpl-hero-radius);
    background: var(--tpl-secondary);
}
.lk-hero--bez-foto { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.lk-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 64px 56px;
}
.lk-hero .lk-eyebrow { margin-bottom: 16px; }
.lk-hero-h,
#prostredek .lk-hero-h {
    margin: 0;
    max-width: 520px;
    font-size: calc(44px - var(--tpl-head-shrink));
    line-height: 1.1;
}
.lk-hero-perex { max-width: 380px; margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--tpl-text); }
.lk-hero-tl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lk-hero-foto { position: relative; display: block; min-height: 100%; background: var(--tpl-surface-2); }
.lk-hero-foto picture,
.lk-hero-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* hero video: medium pres celou pravou pulku (YouTube iframe zvetseny na vyplneni 16:9 -> cover) */
.lk-hero-video { overflow: hidden; background: var(--tpl-primary); }
.lk-hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lk-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, calc(460px * 16 / 9));
    height: max(100%, calc(100% * 9 / 16));
    aspect-ratio: 16 / 9;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* hero formular: hledani (pilulka + cerne tlacitko) / newsletter jadra */
.lk-hero-form { width: 100%; max-width: 440px; margin-top: 28px; }
.lk-hero-hledani { display: flex; gap: 8px; }
.lk-hero-hledani input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 22px;
    border: 1px solid var(--tpl-primary);
    border-radius: var(--tpl-pill);
    background: var(--tpl-content-bg);
    color: var(--tpl-text);
    font: inherit;
    font-size: 15px;
}
.lk-hero-hledani .lk-btn { flex: 0 0 auto; }
.lk-hero-form--newsletter form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lk-hero-form--newsletter input[type="email"],
.lk-hero-form--newsletter input[type="text"] {
    flex: 1 1 220px;
    min-width: 0;
    height: 52px;
    padding: 0 22px;
    border: 1px solid var(--tpl-primary);
    border-radius: var(--tpl-pill);
    background: var(--tpl-content-bg);
    font: inherit;
    font-size: 15px;
}
.lk-hero-form--newsletter input[type="submit"],
.lk-hero-form--newsletter button { height: 52px; padding: 0 28px; border-radius: var(--tpl-pill); }
.lk-hero-form--newsletter label,
.lk-hero-form--newsletter p { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--tpl-text-light); }
.lk-hero--formular .lk-hero-tl { margin-top: 16px; }

/* hero slider (jadrovy slider.latte; Linka: radius, bez stinu, cerne tecky, bile pilulkove sipky) */
.lk-hero-slider .tpl-slider { position: relative; overflow: hidden; border-radius: var(--tpl-hero-radius); background: var(--tpl-secondary); }
.lk-hero-slider .tpl-slider-track { position: relative; }
.lk-hero-slider .tpl-slider-slide { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; transition: opacity .6s ease; }
.lk-hero-slider .tpl-slider-slide.active { position: relative; opacity: 1; z-index: 1; }
.lk-hero-slider .tpl-slider-slide a { display: block; }
.lk-hero-slider .tpl-slider-slide img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.lk-hero-slider .tpl-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--tpl-primary);
    border-radius: var(--tpl-pill);
    background: var(--tpl-content-bg);
    color: var(--tpl-primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}
.lk-hero-slider .tpl-slider-arrow:hover { background: var(--tpl-primary); color: var(--tpl-primary-text); }
.lk-hero-slider .tpl-slider-prev { left: 16px; }
.lk-hero-slider .tpl-slider-next { right: 16px; }
.lk-hero-slider .tpl-slider-dots { position: absolute; bottom: 16px; left: 50%; z-index: 3; display: flex; gap: 8px; transform: translateX(-50%); }
.lk-hero-slider .tpl-slider-dot { flex: 0 0 8px; width: 8px; height: 8px; min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--tpl-primary); border-radius: 50%; background: var(--tpl-content-bg); cursor: pointer; }
.lk-hero-slider .tpl-slider-dot.active { background: var(--tpl-primary); }
.lk-hero-slider .tpl-slider-menu { display: none; }

/* --- zbozi (Novinky) --- */
.lk-uvod-zbozi .lk-mrizka { row-gap: 36px; }

/* --- benefity mezi linkami --- */
.lk-usp-seznam {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--tpl-line);
    border-bottom: 1px solid var(--tpl-line);
}
.lk-usp-polozka { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; }
.lk-usp-polozka + .lk-usp-polozka { border-left: 1px solid var(--tpl-line); }
.lk-usp-nadpis { font-size: 15px; font-weight: 600; color: var(--tpl-text); }
.lk-usp-popis { font-size: 13px; line-height: 1.55; color: var(--tpl-text-light); }

/* --- o nas / prodejna --- */
.lk-onas { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 56px; }
.lk-onas--foto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lk-onas-foto { display: block; height: 360px; overflow: hidden; border-radius: var(--tpl-area-radius); background: var(--tpl-secondary); }
.lk-onas-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lk-onas-text { max-width: 520px; }
.lk-onas .lk-eyebrow { margin-bottom: 12px; }
.lk-onas-h,
#prostredek .lk-onas-h { margin: 0 0 16px; font-size: calc(32px - var(--tpl-head-shrink)); line-height: 1.2; }
.lk-onas-p { font-size: 15px; line-height: 1.6; }
.lk-onas-kontakt { margin: 14px 0 0; font-size: 14px; color: var(--tpl-text-light); }
.lk-onas .lk-ulink { margin-top: 18px; }
.lk-onas:not(.lk-onas--foto) { padding: 40px 48px; border-radius: var(--tpl-area-radius); background: var(--tpl-secondary); }

/* --- SEO text sbaleny na 4 radky --- */
.lk-seo { max-width: 720px; }
.lk-seo-text { font-size: 15px; line-height: 1.6; color: var(--tpl-text-light); }
.lk-seo-text h1, .lk-seo-text h2, .lk-seo-text h3,
#prostredek .lk-seo-text h1, #prostredek .lk-seo-text h2, #prostredek .lk-seo-text h3 {
    margin: 0 0 12px;
    font-size: calc(20px - var(--tpl-head-shrink));
    color: var(--tpl-primary);
}
.lk-seo-text p { margin: 0 0 .8em; }

/* --- tablet --- */
@media (max-width: 1000px) {
    .lk-hero-text { padding: 48px 40px; }
}

/* --- mobil (01-Homepage-mobil) --- */
@media (max-width: 768px) {
    body.sekce_uvod div#in_body { padding-top: 16px; }
    .lk-hero { display: flex; flex-direction: column-reverse; min-height: 0; }
    .lk-hero-foto { aspect-ratio: 4 / 5; min-height: 0; }
    .lk-hero-text { padding: 24px 20px 28px; }
    .lk-hero-h,
    #prostredek .lk-hero-h { font-size: calc(26px - var(--tpl-head-shrink)); }
    .lk-hero-perex { font-size: 15px; }
    .lk-hero-tl { flex-direction: column; align-self: stretch; }
    .lk-hero-tl .lk-btn { width: 100%; }
    .lk-hero-video { aspect-ratio: 16 / 9; }
    .lk-hero-video iframe { width: 100%; height: 100%; }
    .lk-hero-form { margin-top: 20px; }
    .lk-hero-hledani { flex-direction: column; }
    .lk-hero-hledani .lk-btn { width: 100%; }
    .lk-hero-slider .tpl-slider-slide img { max-height: none; aspect-ratio: 4 / 5; }
    .lk-hero-slider .tpl-slider-arrow { display: none; }

    .lk-usp-seznam { grid-template-columns: 1fr; }
    .lk-usp-polozka { position: relative; padding: 16px 28px 16px 0; }
    .lk-usp-polozka + .lk-usp-polozka { border-left: 0; border-top: 1px solid var(--tpl-line); }
    .lk-usp-polozka::after { content: '\203A'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--tpl-text-light); }

    .lk-onas,
    .lk-onas--foto { grid-template-columns: 1fr; gap: 0; padding: 28px 20px; border-radius: var(--tpl-area-radius); background: var(--tpl-secondary); }
    .lk-onas-foto { display: none; }
    .lk-onas-h,
    #prostredek .lk-onas-h { font-size: calc(24px - var(--tpl-head-shrink)); }

}

/* --- tablet na vysku (601-768 px, mobilni rozvrzeni): fotka hero 4:5 pres celou sirku by mela ~900 px (za blokem mobilu) --- */
@media (min-width: 601px) and (max-width: 768px) {
    .lk-hero-foto:not(.lk-hero-video) { aspect-ratio: 4 / 3; }
}
