/* ═══════════════════════════════════════════════════════════════════════
   LAB — DESKTOP VRSTVA (16.9.2026). Načítá se JEN v labu, po style.css.
   Mobil (< 900 px) se nemění vůbec. Nad 900 px dostává web vlastní rozvržení:
   horní navigace, hustší katalog, recenze jako mřížka, doručení a platba jako
   centrovaný dialog místo pruhu přes celou šířku. Tokeny (lime, Space Grotesk,
   off-white) zůstávají — mění se jen uspořádání.
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

  /* ── Horní lišta: TMAVÁ (logo wordmark.png má bílý text → 1:1, nepřekreslujeme), navigace ── */
  #header, #header.scrolled {
    background: rgba(10,10,12,0.94);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: rgba(255,255,255,.08);
    padding: 0 32px;
    height: 64px;
    gap: 24px;
  }
  .lab-brand { display: flex; align-items: center; text-decoration: none; }
  .lab-wordmark { height: 36px; width: auto; display: block; }
  .lab-nav { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
  .lab-nav a, .lab-nav button {
    font: inherit; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.72);
    background: transparent; border: 0; padding: 9px 12px; border-radius: 999px;
    cursor: pointer; text-decoration: none; transition: background .15s, color .15s;
  }
  .lab-nav a:hover, .lab-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
  #reviews-btn { display: none; }           /* recenze jsou v navigaci */
  .acct-btn { order: 9; margin-left: auto; color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
  .acct-btn + .cart-btn { margin-left: 8px; }
  .acct-dot { border-color: #1a1b1d; }
  .cart-btn { order: 10; color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

  /* ── Sekce pod hero (jen desktop) ───────────────────────────────────── */
  .lab-eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
  .lab-h2 { max-width: 1120px; margin: 48px auto 0; padding: 0 24px; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
  .lab-trust {
    max-width: 1200px; margin: 0 auto; padding: 56px 24px 8px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  }
  .lab-trust-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
  .lab-trust-item p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
  .lab-band {
    background: var(--lime); color: var(--lime-ink); margin: 48px 0 0;
    padding: 44px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  }
  .lab-band-item { max-width: 340px; margin: 0 auto; text-align: center; }
  .lab-band-ic { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(26,27,29,.55); display: grid; place-items: center; margin: 0 auto 12px; font-size: 20px; font-weight: 700; }
  .lab-band-item h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; letter-spacing: .02em; text-transform: uppercase; }
  .lab-band-item p { font-size: 13.5px; line-height: 1.55; margin: 0; color: rgba(26,27,29,.82); }
  .lab-about {
    max-width: 1200px; margin: 64px auto 0; padding: 0 24px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  }
  .lab-about h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 18px; }
  .lab-about p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
  .lab-about-img img { width: 100%; height: 420px; object-fit: cover; object-position: center 70%; border-radius: 20px; display: block; }
  .lab-footer { background: #0b0b0e; color: rgba(255,255,255,.7); margin-top: 72px; padding: 44px 24px; }
  .lab-footer-in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
  .lab-footer .lab-wordmark { height: 26px; }
  .lab-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
  .lab-footer-nav a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 600; }
  .lab-footer-nav a:hover { color: #fff; }
  .lab-footer-legal { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 720px; }
  .ruo-disclaimer { display: none; }          /* na desktopu nahrazeno patičkou */
  .marquee:not(.lab-topbar) { display: none; }   /* ticker pod hero pryč; nahoře je .lab-topbar */

  body { padding-top: 96px; }
  /* horní lime pruh (posuvný) nad lištou */
  .lab-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 51; height: 32px; display: flex; align-items: center; overflow: hidden; }
  .lab-topbar .marquee-track { animation-timing-function: linear; will-change: transform; }
  .lab-topbar .marquee-track span { font-size: 11.5px; letter-spacing: 2px; padding: 0; white-space: nowrap; }
  #header, #header.scrolled { top: 32px; }

  /* ── Hero: čistá fotka (bez napečeného textu) + text v HTML ────────────
     Base pro ≥900 px používá hero-desktop2.jpg s textem v obrázku a skrývá HTML text.
     Tady to otáčíme: fotka je jen pozadí, titulek/podtitulek/odznaky jsou skutečný text
     (ostrý na každé šířce, jde měnit bez grafika). Dočasně portrétní hero.jpg oříznuté
     na pás; široká verze se doplní později. */
  .hero-photo {
    /* FULL-BLEED HERO (16.9.): render lpuvod.png (bez textu) přes celou šířku, kotva dole; text vlevo. */
    aspect-ratio: auto; min-height: 640px; max-height: 820px; height: 48vw;
    background-image: url('assets/hero-web.jpg?v=8');
    background-position: center bottom; background-size: cover;
    display: flex; align-items: flex-start; justify-content: flex-start;
    position: relative;
  }
  .hero-photo::before { background: linear-gradient(180deg, rgba(6,8,12,.55) 0%, rgba(6,8,12,.2) 45%, rgba(6,8,12,0) 100%); }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(6,8,12,.8) 0%, rgba(6,8,12,.55) 30%, rgba(6,8,12,.1) 55%, rgba(6,8,12,0) 65%);
  }
  .hero-photo-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 52px 32px 0;
  }
  .hero-eyebrow { font-size: 12px; letter-spacing: 4px; margin-bottom: 16px; }
  .hero-h1 { font-size: clamp(46px, 4.4vw, 66px); line-height: 1.02; text-shadow: 0 6px 30px rgba(0,0,0,.35); max-width: 640px; }
  .hero-photo-sub { font-size: 18px; margin-top: 16px; max-width: 520px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
  .hero-badges { display: none; }
  .lab-hero-cta { margin-top: 26px; padding: 15px 26px; font-size: 15px; box-shadow: 0 10px 30px rgba(200,255,0,.28); }
  .hero-p-wm { display: none; }

  /* ── Katalog: 4 sloupce od 1200 px, širší kontejner ───────────────── */
  /* 9 produktů → 3×3 (čtyři sloupce nechávaly poslední kartu samotnou) */
  .category-bar { max-width: 1120px; padding-top: 34px; }
  .lab-h2 { max-width: 1120px; }
  .products { max-width: 1120px; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card-body { padding: 14px 16px 16px; }
  .card-name { font-size: 16px; }

  /* ── Recenze: mřížka místo vodorovného pásu ─────────────────────────── */
  .rv-showcase { max-width: 1200px; margin: 0 auto; padding: 44px 24px 12px; }
  .rv-showcase-head { padding: 0; }
  .rv-showcase-title { font-size: 26px; }
  /* recenze = JEDEN posuvný řádek se šipkami (16.9.) */
  .rv-showcase-wrap { position: relative; }
  .rv-showcase-track {
    display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 8px;
    scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
  }
  .rv-showcase-track::-webkit-scrollbar { display: none; }
  .rv-sc-card { flex: 0 0 262px; scroll-snap-align: start; }
  .rv-arr {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--card); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.14); display: grid; place-items: center; font-family: inherit;
    transition: transform .12s, background .12s;
  }
  .rv-arr:hover { background: var(--lime); }
  .rv-arr:active { transform: translateY(-50%) scale(.94); }
  .rv-arr-l { left: -22px; } .rv-arr-r { right: -22px; }
  .rv-showcase-all { max-width: 320px; margin: 18px auto 0; }

  .ruo-disclaimer { padding: 40px 24px 60px; }

  /* zavřené pravé panely (košík, recenze, podstránky) jsou vysunuté mimo obrazovku — jejich stín NESMÍ prosakovat na stránku */
  .cart-panel:not(.open) { box-shadow: none; }

  /* ── Podstránky v pravém panelu (Doručení, Jak platit, COA, Kalkulačka) ── */
  #page-panel { width: 560px; padding: 18px 18px 18px; }
  /* Nadpis panelu pryč — každá podstránka má svůj vlastní nadpis uprostřed (jinak byl dvakrát, 21.9.).
     Zůstává jen křížek, plave vpravo nahoře nad obsahem. */
  #page-panel .cart-header { position: absolute; top: 26px; right: 26px; margin: 0; z-index: 3; }
  #page-panel .cart-header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #page-panel .cart-close { background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(0,0,0,.14); width: 34px; height: 34px; }

  /* ── Doručovací údaje + platba: centrovaný dialog místo spodního pruhu ── */
  .contact-panel {
    top: 50%; left: 50%; right: auto; bottom: auto;
    width: 600px; max-width: 94vw; max-height: 88vh;
    border: 1px solid var(--border); border-radius: 22px;
    padding: 22px 26px 28px;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0; pointer-events: none;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    transition: transform .3s cubic-bezier(.32,.72,0,1), opacity .25s ease;
  }
  .contact-panel.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
  .contact-panel .cart-header h2, .contact-panel h2 { font-size: 22px; }
  .cf-input { font-size: 15px; padding: 14px 16px; }

  /* platba = užší, taky centrovaná (base ji má full-screen) */
  #pay-panel.contact-panel {
    top: 50%; width: 540px; max-height: 90vh; border-radius: 22px;
    padding: 22px 26px 26px;
  }
  .contact-overlay { background: rgba(10,12,8,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

  /* Náhradní hlavní tlačítko (shim): na desktopu ať sedí pod dialogem, ne na okraji obrazovky */
  #lab-mainbtn { bottom: calc(50% - 44vh - 8px) !important; width: 600px !important; max-width: 94vw; border-radius: 0 0 22px 22px !important; }   /* !important: tg-shim nastavuje inline */

  /* ── Spodní pruh košíku: na desktopu jako plovoucí pilulka vpravo dole ── */
  .cart-bar { left: auto; right: 28px; bottom: 28px; width: auto; min-width: 180px; transform: none; }
  body:has(.contact-overlay.visible) .cart-bar,
  body:has(.cart-overlay.visible) .cart-bar { display: none !important; }   /* pod dialogem nemá co dělat */
}


/* ═══════════════════ DESIGN PASS 2 (16.9. 17:00) — desktop ≥ 900 px ═══════════════════ */
@media (min-width: 900px) {
  :root { --lab-w: 1120px; }
  /* systém sekcí */
  .lab-sec { max-width: var(--lab-w); margin: 88px auto 0; padding: 0 24px; }
  .lab-sec-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
  .lab-sec-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
  .lab-sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .lab-sec h2, .rv-showcase-title, .lab-about h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
  .lab-sec-lead { font-size: 14px; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }
  .lab-h2 { display: none; }

  /* hero: plynulý přechod do stránky */
  .hero-photo { max-height: 760px; }
  .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,255,0,.14); border: 1px solid rgba(200,255,0,.35); color: var(--lime); padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .18em; }
  .hero-photo-sub { font-weight: 500; opacity: .92; }

  /* důvěra: 3 plovoucí karty přes spodní hranu hera */
  .lab-trust { max-width: var(--lab-w); margin: -56px auto 0; padding: 0 24px; position: relative; z-index: 3; gap: 20px; }
  .lab-trust-item { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px 22px 22px; box-shadow: 0 18px 44px rgba(0,0,0,.10); }
  .lab-trust-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
  .lab-trust-item h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
  .lab-trust-item p { font-size: 14.5px; line-height: 1.6; }

  /* katalog: chipy vlevo, větší popisky karet */
  .category-bar { max-width: var(--lab-w); margin: 22px auto 0; padding: 0 24px 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .cat-btn { font-size: 13.5px; padding: 10px 16px; border-radius: 999px; }
  .products { padding: 0 24px; }
  .product-card { border-radius: 20px; }
  .card-img-wrap::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.10)); pointer-events: none; }
  .card-category-badge { top: 12px; left: 12px; background: rgba(255,255,255,.88); color: var(--lime-ink); border: 0; font-size: 10.5px; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
  .card-body { padding: 16px 18px 18px; }
  .card-name { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 3px; }
  .card-variant { font-size: 13px; margin-bottom: 12px; }
  .card-price, .card-price-hint { font-size: 17px; font-weight: 700; }
  .btn-add { width: 42px; height: 42px; font-size: 24px; box-shadow: 0 6px 16px rgba(200,255,0,.35); }

  /* lime pás */
  .lab-band { margin-top: 88px; padding: 56px 24px; }
  .lab-band-ic { width: 52px; height: 52px; border: 0; background: rgba(26,27,29,.92); color: var(--lime); font-size: 22px; }
  .lab-band-item h3 { font-size: 17px; letter-spacing: .04em; }
  .lab-band-item p { font-size: 14.5px; }

  /* recenze */
  .rv-showcase { max-width: var(--lab-w); padding: 88px 24px 0; }
  .rv-showcase-head { align-items: flex-end; margin-bottom: 22px; }
  .rv-showcase-agg { font-size: 14px; } .rv-showcase-agg b { font-size: 18px; }
  .rv-sc-card { border-radius: 18px; padding: 14px; }
  .rv-sc-photo { height: 210px; border-radius: 12px; }
  .rv-showcase-all { max-width: 300px; margin-top: 26px; padding: 14px; }

  /* o nás */
  .lab-about { max-width: var(--lab-w); margin-top: 96px; gap: 56px; }
  .lab-eyebrow { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; margin-bottom: 14px; }
  .lab-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
  .lab-about p { font-size: 16px; }
  .lab-about-img img { height: 460px; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.14); }

  /* patička: 3 sloupce */
  .lab-footer { margin-top: 96px; padding: 56px 24px 40px; }
  .lab-footer-in { max-width: var(--lab-w); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; }
  .lab-footer-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 320px; }
  .lab-footer-nav { flex-direction: column; gap: 10px; }
  .lab-footer-nav a { font-size: 14.5px; }
  .lab-footer-legal { font-size: 13px; line-height: 1.7; }
  .lab-footer-legal b { color: rgba(255,255,255,.85); }
  .lab-footer-copy { display: inline-block; margin-top: 10px; color: rgba(255,255,255,.35); }
}


/* ═══════════════════ SCROLL-REVEAL (reveal.js) ═══════════════════ */
.ap-pre { opacity: 0; transform: translateY(22px); }
.ap-pre.ap-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.lab-trust > .ap-pre { transform: translateY(34px); }
.lab-about > .ap-pre:first-child { transform: translateX(-28px); }
.lab-about > .ap-pre:last-child { transform: translateX(28px); }
.lab-band > .ap-pre { transform: translateY(18px); }
html.ap-static .ap-pre { opacity: 1; transform: none; }


/* ═══════════════════ LIME PÁS = TŘI TMAVÉ KARTY (16.9.) ═══════════════════ */
@media (min-width: 900px) {
  .lab-band { padding: 56px max(24px, calc((100% - 1120px) / 2)); gap: 22px; max-width: none; }
  .lab-band-item {
    max-width: none; text-align: left; margin: 0;
    background: rgba(26,27,29,.96); color: #fff; border-radius: 20px; padding: 26px 24px 24px;
    box-shadow: 0 18px 44px rgba(0,0,0,.18); transition: transform .18s ease, box-shadow .18s ease;
  }
  .lab-band-item:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(0,0,0,.24); }
  .lab-band-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); font-size: 21px; margin: 0 0 14px; border: 0; }
  .lab-band-item h3 { font-size: 18px; text-transform: none; letter-spacing: -0.01em; margin: 0 0 6px; color: #fff; }
  .lab-band-item p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.72); }
  .lab-band { display: grid; grid-template-columns: repeat(3, 1fr); }
  .lab-band > .ap-pre { transform: translateY(34px) scale(.98); }
}


/* ═══════════════════ ZÁMEK SCROLLU POD PŘEKRYVEM (desktop, 16.9.) ═══════════════════ */
@media (min-width: 900px) {
  body:has(.product-modal.open), body:has(.cart-panel.open), body:has(.contact-panel.open) { overflow: hidden !important; }
  .product-modal, .cart-panel, .contact-panel, #page-frame { overscroll-behavior: contain; }   /* kolečko na konci nepřeteče do stránky */
  .product-modal.open { overflow-y: auto; }
}

/* ═══════════════════ PÁS BEZ LIME POZADÍ = EDITORIAL 3 SLOUPCE (16.9. večer) ═══════════════════
   Zelený panel s tmavými boxy pryč. Sekce na pozadí stránky: eyebrow + h2 vlevo,
   pod tím tři sloupce oddělené tenkými linkami, ikona jako malá lime dlaždice. */
@media (min-width: 900px) {
  .lab-band { background: transparent; color: var(--text); margin: 96px auto 0; padding: 0 24px; max-width: var(--lab-w); display: block; }
  .lab-band-head { margin-bottom: 30px; }
  .lab-band-head h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
  .lab-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
  .lab-band-item {
    max-width: none; text-align: left; margin: 0; background: transparent; color: var(--text);
    border-radius: 0; padding: 30px 28px 8px 0; box-shadow: none; border-left: 0; transition: none;
  }
  .lab-band-item + .lab-band-item { border-left: 1px solid var(--border); padding-left: 28px; }
  .lab-band-item:hover { transform: none; box-shadow: none; }
  .lab-band-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--lime); color: var(--lime-ink); font-size: 19px; margin: 0 0 18px; border: 0; }
  .lab-band-item h3 { font-size: 19px; text-transform: none; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--text); }
  .lab-band-item p { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 320px; }
  .lab-band > .ap-pre, .lab-band-grid > .ap-pre { transform: translateY(22px); }
}

/* Lišta: položky se nikdy nelámou, odkazy a tlačítka ve stejné výšce; pod 1180 px těsnější (17.9.) */
@media (min-width: 900px) {
  .lab-nav { align-items: center; }
  .lab-nav a, .lab-nav button { white-space: nowrap; display: inline-flex; align-items: center; line-height: 1; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .lab-nav { gap: 0; }
  .lab-nav a, .lab-nav button { font-size: 12.5px; padding-left: 9px; padding-right: 9px; }
}

/* Sloučená sekce „Proč LongevityPeps" = 4 sloupce (17.9.); karty pod hero zrušeny */
@media (min-width: 900px) {
  .lab-band-grid { grid-template-columns: repeat(4, 1fr); }
  .lab-band-item { padding: 28px 22px 8px 0; }
  .lab-band-item + .lab-band-item { padding-left: 22px; }
  .lab-band-item h3 { font-size: 17.5px; line-height: 1.25; min-height: 2.5em; }
  .lab-band-item p { font-size: 14.5px; max-width: none; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .lab-band-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-band-item h3 { min-height: 0; }
  .lab-band-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .lab-band-item:nth-child(n+3) { border-top: 1px solid var(--border); margin-top: 22px; }
}

@media (min-width: 900px) { .lab-band-item h3 { text-wrap: balance; } }

/* Košík na desktopu doprostřed dole (17.9.) — v pravém rohu je bublina chatu. Bez transform (ten používá animace a :active). */
@media (min-width: 900px) {
  .cart-bar { left: 0; right: 0; margin: 0 auto; width: fit-content; min-width: 240px; bottom: 26px; padding: 16px 30px; border-radius: 999px; }
}

/* Patička: 4 sloupce (značka · Obchod · Informace · prohlášení) — 17.9. právní stránky */
@media (min-width: 900px) {
  .lab-footer-in { grid-template-columns: 1.25fr .8fr .95fr 1.2fr; gap: 36px; }
  .lab-footer-h { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 6px; }
}
@media (min-width: 900px) {
  #page-overlay { z-index: 310; }   /* panel podstránek i nad formulářem doručení / platbou (odkaz na podmínky) */
  #page-panel { z-index: 320; }
}

/* Lime pruh zpátky POD úvodní obrázek, stejně jako na mobilu (17.9.). Horní pevný pruh zrušen. */
@media (min-width: 900px) {
  .lab-topbar { display: none !important; }
  .marquee:not(.lab-topbar) { display: block; }
  body { padding-top: 64px; }
  #header, #header.scrolled { top: 0; }
  .marquee-track span { font-size: 12.5px; letter-spacing: 2px; padding: 12px 0; }
}

/* „Na co se u nás dá spolehnout" (17.9.): ikony bez lime dlaždice + výraznější scroll animace karet.
   Karta vyjede zdola, ikona vyskočí s překmitem, nadpis a text doběhnou po ní, dělicí linka se „nakreslí" shora,
   horní linka zleva. Zpoždění mezi kartami dává reveal.js přes --ap-d. */
@media (min-width: 900px) {
  .lab-band-ic { background: transparent; width: auto; height: auto; border-radius: 0; font-size: 32px; line-height: 1; display: block; margin: 0 0 16px; }
  .lab-band-grid { border-top: 0; position: relative; }
  .lab-band-grid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--border); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
  .lab-band-grid:has(.ap-in)::before { transform: scaleX(1); }
  .lab-band-item { position: relative; }
  .lab-band-item + .lab-band-item { border-left: 0; }
  .lab-band-item + .lab-band-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); transform: scaleY(0); transform-origin: top; transition: transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--ap-d, 0ms) + 120ms); }
  .lab-band-item.ap-in::before { transform: scaleY(1); }

  .lab-band-grid > .ap-pre { transform: translateY(48px); }
  .lab-band-grid > .ap-pre.ap-in { transition: opacity .8s ease, transform .9s cubic-bezier(.16,.8,.2,1); }
  .lab-band-item .lab-band-ic { opacity: 0; transform: scale(.35) rotate(-14deg); transform-origin: left bottom; transition: opacity .4s ease, transform .75s cubic-bezier(.2,1.5,.4,1); transition-delay: calc(var(--ap-d, 0ms) + 180ms); }
  .lab-band-item h3, .lab-band-item p { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .lab-band-item h3 { transition-delay: calc(var(--ap-d, 0ms) + 260ms); }
  .lab-band-item p { transition-delay: calc(var(--ap-d, 0ms) + 360ms); }
  .lab-band-item.ap-in .lab-band-ic, .lab-band-item.ap-in h3, .lab-band-item.ap-in p { opacity: 1; transform: none; }
  html.ap-static .lab-band-ic, html.ap-static .lab-band-item h3, html.ap-static .lab-band-item p { opacity: 1; transform: none; }
  html.ap-static .lab-band-grid::before { transform: scaleX(1); } html.ap-static .lab-band-item::before { transform: scaleY(1); }
  .lab-band-item:hover .lab-band-ic { transform: translateY(-3px) scale(1.08); transition-delay: 0ms; transition-duration: .3s; }
}

/* Karty sekce „Na co se u nás dá spolehnout" jsou klikací (17.9.): COA · Doručení · Podmínky · Podpora */
@media (min-width: 900px) {
  a.lab-band-item { display: block; text-decoration: none; color: var(--text); cursor: pointer; padding-bottom: 22px; }
  .lab-band-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--text);
    opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--ap-d, 0ms) + 460ms); }
  .lab-band-item.ap-in .lab-band-more, html.ap-static .lab-band-more { opacity: 1; transform: none; }
  .lab-band-more i { font-style: normal; display: inline-block; transition: transform .25s ease; }
  .lab-band-more::after { content: ""; position: absolute; }
  a.lab-band-item .lab-band-more { border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
  a.lab-band-item:hover .lab-band-more i { transform: translateX(5px); }
  a.lab-band-item:hover h3 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
  a.lab-band-item:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 4px; border-radius: 8px; }
  /* karta bez odkazu (21.9.): stejné rozvržení, ale nic se neděje po najetí ani ťuknutí */
  a.lab-band-item.lab-band-static { cursor: default; pointer-events: none; }
}
@media (min-width: 900px) {   /* odkazy karet zarovnané na stejnou linku dole */
  a.lab-band-item { display: flex; flex-direction: column; align-items: flex-start; }
  a.lab-band-item p { margin-bottom: 16px; }
  a.lab-band-item .lab-band-more { margin-top: auto; }
}

/* O nás (17.9.): tři textové bloky + místo fotky dva skutečné protokoly Janoshik přes sebe (klik = COA) */
@media (min-width: 900px) {
  .lab-about { align-items: center; grid-template-columns: 1.05fr .95fr; }
  .lab-about h2 { margin-bottom: 18px; }
  .lab-about-blk { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
  .lab-about-blk h3 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 8px; }
  .lab-about-blk p { font-size: 15px; margin: 0; }
  .lab-about-coa { position: relative; display: block; height: 560px; border-radius: 28px; text-decoration: none; overflow: hidden;
    background: radial-gradient(120% 90% at 70% 20%, #2a2d33 0%, #15161a 60%); box-shadow: 0 24px 60px rgba(0,0,0,.16); }
  .lab-about-coa img { position: absolute; width: 58%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 22px 50px rgba(0,0,0,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .lab-about-coa .coa-back  { left: 8%;  top: 9%;  transform: rotate(-7deg); filter: brightness(.92); }
  .lab-about-coa .coa-front { right: 8%; top: 15%; transform: rotate(4deg); }
  .lab-about-coa:hover .coa-back  { transform: rotate(-9deg) translate(-6px, -4px); }
  .lab-about-coa:hover .coa-front { transform: rotate(2deg) translate(4px, -8px); }
  .coa-badge { position: absolute; left: 22px; bottom: 22px; background: var(--lime); color: var(--lime-ink); font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
  .coa-badge b { font-weight: 700; font-size: 15px; margin-right: 4px; }
  .coa-cta { position: absolute; right: 22px; bottom: 22px; color: #fff; font-size: 13.5px; font-weight: 700; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); padding: 9px 14px; border-radius: 999px; }
  .coa-cta i { font-style: normal; display: inline-block; transition: transform .25s ease; }
  .lab-about-coa:hover .coa-cta i { transform: translateX(4px); }
}

/* O nás: fotka výzkumnice v laboratoři (AI, ilustrační) místo koláže protokolů — 17.9. */
@media (min-width: 900px) {
  .lab-about-coa { height: 600px; background: #15161a; }
  .lab-about-coa img.about-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; border-radius: 0; box-shadow: none; background: none; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .lab-about-coa:hover img.about-photo { transform: scale(1.03); }
  .lab-about-coa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,18,0) 78%, rgba(8,12,18,.22) 100%); pointer-events: none; }
  .lab-about-coa .coa-badge, .lab-about-coa .coa-cta { z-index: 2; }
}

@media (min-width: 900px) {   /* bílý stůl na fotce → tlačítko „Ověřit" tmavé, ať je čitelné */
  .lab-about-coa .coa-cta { background: rgba(26,27,29,.82); border-color: rgba(26,27,29,.82); color: #fff; }
}

/* O nás: carousel 4 čtvercových fotek z laboratoře (17.9.) */
@media (min-width: 900px) {
  .lab-about-car { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 28px; overflow: hidden; background: #dfe6f1; box-shadow: 0 24px 60px rgba(0,0,0,.16); }
  .car-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 5s ease-out; }
  .car-slides img.on { opacity: 1; transform: scale(1); }
  .lab-about-car::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,18,0) 76%, rgba(8,12,18,.26) 100%); pointer-events: none; }
  .car-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.9); color: var(--text); font-size: 24px; line-height: 1; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
  .car-prev { left: 14px; } .car-next { right: 14px; }
  .lab-about-car:hover .car-arr, .car-arr:focus-visible { opacity: 1; }
  .car-arr:hover { transform: translateY(-50%) scale(1.08); }
  .car-dots { position: absolute; left: 0; right: 0; top: 16px; z-index: 3; display: flex; justify-content: center; gap: 7px; }
  .car-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.6); transition: width .3s ease, background .3s ease; }
  .car-dots button.on { width: 26px; background: var(--lime); }
  .lab-about-car .coa-badge, .lab-about-car .coa-cta { z-index: 3; text-decoration: none; }
  .lab-about-car .coa-cta { background: rgba(26,27,29,.82); border: 1px solid rgba(26,27,29,.82); color: #fff; }
  .lab-about-car .coa-cta:hover i { transform: translateX(4px); }
}
@media (min-width: 900px) {   /* štítek + tlačítko nahoru (strop), tečky dolů → vialky s etiketou zůstanou vidět */
  .lab-about-car .coa-badge { top: 18px; bottom: auto; left: 18px; }
  .lab-about-car .coa-cta { top: 18px; bottom: auto; right: 18px; }
  .car-dots { top: auto; bottom: 16px; }
  .lab-about-car::after { background: linear-gradient(180deg, rgba(8,12,18,.18) 0%, rgba(8,12,18,0) 22%); }
}

/* ═══════════ MOBIL (< 900 px): sekce „Proč", „O nás" s carouselem a patička (17.9.) ═══════════ */
@media (max-width: 899px) {
  .lab-band { display: block; background: transparent; color: var(--text); margin: 30px 0 0; padding: 0 16px; }
  .lab-band-head { margin-bottom: 16px; }
  .lab-band-head .lab-sec-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .lab-band-head .lab-sec-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
  .lab-band-head h2 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0; text-wrap: balance; }
  .lab-band-grid { display: block; border-top: 1px solid var(--border); }
  a.lab-band-item { display: grid; grid-template-columns: 34px 1fr; column-gap: 13px; align-items: start; padding: 15px 0; margin: 0; max-width: none; text-align: left;
    background: transparent; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; text-decoration: none; color: var(--text); }
  .lab-band-item .lab-band-ic { grid-column: 1; grid-row: 1 / span 3; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(200,255,0,.18);
    display: grid; place-items: center; font-size: 17px; margin: 2px 0 0; }
  .lab-band-item h3, .lab-band-item p, .lab-band-item .lab-band-more { grid-column: 2; }
  .lab-band-item h3 { font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-transform: none; margin: 0 0 3px; color: var(--text); }
  .lab-band-item p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; max-width: none; }
  .lab-band-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 12.5px; font-weight: 700; color: var(--text); border-bottom: 2px solid var(--lime); padding-bottom: 1px; }
  .lab-band-item::before, .lab-band-grid::before { display: none; }

  /* O nás: carousel nahoře, text pod ním */
  .lab-about { display: flex; flex-direction: column; margin: 34px 0 0; padding: 0 16px; }
  .lab-about-text { order: 2; }
  .lab-about-car { order: 1; }
  .lab-about .lab-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .lab-about .lab-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
  .lab-about h2 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
  .lab-about p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
  .lab-about-blk { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border); }
  .lab-about-blk h3 { font-size: 15.5px; letter-spacing: -0.01em; margin: 0 0 6px; }
  .lab-about-blk p { font-size: 13.5px; margin: 0; }
  .lab-about-car { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 20px; overflow: hidden; background: #dfe6f1; margin-bottom: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
  .lab-about-car .car-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
  .lab-about-car .car-slides img.on { opacity: 1; transform: none; }
  .lab-about-car .car-arr { display: none; }                      /* na mobilu se přejíždí samo + tečky */
  .lab-about-car .car-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
  .lab-about-car .car-dots button { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.65); transition: width .3s, background .3s; }
  .lab-about-car .car-dots button.on { width: 22px; background: var(--lime); }
  .lab-about-car .coa-badge { position: absolute; left: 12px; top: 12px; z-index: 3; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
  .lab-about-car .coa-cta { position: absolute; right: 12px; top: 12px; z-index: 3; background: rgba(26,27,29,.82); color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; text-decoration: none; }
  .lab-about-car::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,18,.2) 0%, rgba(8,12,18,0) 26%, rgba(8,12,18,0) 74%, rgba(8,12,18,.22) 100%); pointer-events: none; }

  /* Patička */
  .lab-footer { display: block; background: #0b0b0e; color: rgba(255,255,255,.7); margin-top: 34px; padding: 30px 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .lab-footer-in { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .lab-footer-brand { grid-column: 1 / -1; }
  .lab-footer-legal { grid-column: 1 / -1; }
  .lab-footer .lab-wordmark { height: 22px; width: auto; display: block; }
  .lab-footer-brand p { margin: 12px 0 22px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.6); }
  .lab-footer-nav { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; align-content: start; }
  .lab-footer-nav a { font-size: 13.5px; }
  .lab-footer-h { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 2px; }
  .lab-footer-nav a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 600; }
  .lab-footer-legal { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.45); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
  .lab-footer-legal b { color: rgba(255,255,255,.8); }
  .lab-footer-copy { display: inline-block; margin-top: 8px; color: rgba(255,255,255,.32); }

  .marquee:not(.lab-topbar) { display: block; }
  .ap-pre { opacity: 1; transform: none; }                        /* na mobilu bez nájezdů (ať to nepůsobí zmateně) */
}

/* Oprava mobilu (17.9.): scroll-reveal posouval „O nás" o 28 px doleva → ořezaný text.
   Specifičtější pravidla z desktopu přebíjíme stejně specificky. Carousel bez štítku a tlačítka. */
@media (max-width: 899px) {
  .ap-pre, .lab-about > .ap-pre, .lab-about > .ap-pre:first-child, .lab-about > .ap-pre:last-child,
  .lab-band > .ap-pre, .lab-band-grid > .ap-pre, .lab-trust > .ap-pre, .lab-band-item.ap-in .lab-band-ic,
  .lab-band-item h3, .lab-band-item p, .lab-band-more { opacity: 1 !important; transform: none !important; }
  .lab-about-car .car-arr { display: none; }
  .lab-about-car .car-dots { bottom: 12px; }
}
@media (min-width: 900px) {
  .lab-about-car .car-arr { opacity: 1; }        /* šipky vždy vidět, když se nepřepíná samo */
  .lab-about-car::after { display: none; }        /* přechod byl kvůli štítku a tlačítku, ty jsou pryč */
}

/* 23.9.: nadpis katalogu blíž k jezdící liště a s mezerou nad produkty (dřív 88 px nad, 0 px pod — mezeru dělaly skryté filtry kategorií) */
#lab-katalog { margin-top: 56px; margin-bottom: 40px; }

/* 23.9.: „O nás" na mobilu = nadpis a úvodní odstavec NAD fotkami, bloky „Kvalita. Podpora. Dostupnost." a „Pro koho" POD nimi.
   Textový obal se rozpustí (display: contents) a pořadí řídí order. Desktop beze změny. */
@media (max-width: 899px) {
  .lab-about-text { display: contents; }
  .lab-about .lab-eyebrow, .lab-about h2, .lab-about-text > p { order: 1; }
  .lab-about .lab-eyebrow { align-self: flex-start; }
  .lab-about-car { order: 2; margin: 6px 0 4px; }
  .lab-about-blk { order: 3; }
  .lab-about-text > p + .lab-about-blk { border-top: 0; padding-top: 0; }
}

/* 23.9.: právní text v patičce přes celou šířku pod sloupci (jako na mobilu) → tučné „Pouze pro výzkumné účely…“ na jednom řádku */
@media (min-width: 900px) {
  .lab-footer-in { grid-template-columns: 1.4fr 1fr 1fr; }
  .lab-footer-legal { grid-column: 1 / -1; max-width: none; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
}

/* 23.9.: po odhalení (scroll-reveal) vždy na svém místě — výchozí posuny výše (.lab-about > .ap-pre:first-child …)
   jsou specifičtější než .ap-pre.ap-in, takže „O nás“ zůstávalo posunuté o 28 px (uříznutý text při 900–1130 px) */
.lab-about > .ap-pre.ap-in:first-child, .lab-about > .ap-pre.ap-in:last-child, .lab-trust > .ap-pre.ap-in,
.lab-band > .ap-pre.ap-in, .lab-band-grid > .ap-pre.ap-in { transform: none; }
/* 23.9.: dialog doručení s přichyceným POKRAČOVAT (lab-ui.js) — místo dole, ať tlačítko nezakryje poslední pole */
@media (min-width: 900px) { .contact-panel.lab-docked { padding-bottom: 80px; } }
