/* BTNZ — vygenerováno z prototype/build_html.py. Needitovat ručně.
 * Změna vzhledu = změna v prototypu + `python3 wp/tools/extract_css.py`.
 * Odchylky od prototypu: fonty jako soubory místo base64, patterny hlaviček
 * jako CSS proměnné (--ph-pattern), a na konci souboru krátký doplněk
 * z wp/tools/wp-extra.css — ten jediný je psaný ručně.
 */
@font-face { font-family:'sandwich_regular'; src:url('../fonts/sandwich-regular.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Avenir_Next'; src:url('../fonts/avenir-next-400.woff2') format('woff2'); font-weight:normal; font-display:swap; }
@font-face { font-family:'Avenir_Next'; src:url('../fonts/avenir-next-600.woff2') format('woff2'); font-weight:600; font-display:swap; }

:root {
  /* Main palette (logomanuál Benešovská továrna na zmrzlinu v1.0) */
  --br:#784312;       /* Pantone 731 — dark brown */
  --cr:#E0D0A6;       /* Pantone 7500 — cream/tan */
  --w:#FFFFFF;
  /* Accent palette — fruit flavor colors */
  --y:#FAB527;        /* Pantone 1235 — brand yellow */
  --orange:#EC6533;   /* Pantone 1645 */
  --crimson:#AB182D;  /* Pantone 187 */
  --wine:#97134B;     /* Pantone 221 */
  --orange-lt:#F28B2D; /* Pantone 715 */
  --red:#E83443;      /* Pantone Red 032 */
  --magenta:#CC3063;  /* Pantone 7635 */
  --pink-lt:#EB5C5D;  /* Pantone 178 */
  --pink:#EB5574;     /* Pantone 184 */
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Avenir_Next',system-ui,sans-serif; color:var(--br); background:var(--cr); font-size:18px; line-height:1.6; }
::selection { background:var(--y); color:var(--br); }
.dsp { font-family:'sandwich_regular',cursive; text-transform:uppercase; }

/* Piktogramy formátů (nanuk/kelímek z živého webu) — velikost dle okolního
   textu přes em, barva přes currentColor */
.fmt-ic { width:auto; vertical-align:-.08em; }
.ic-nanuk { height:.72em; }
.ic-kelimek { height:.95em; vertical-align:-.12em; }

/* REVEAL mikroanimace — skrytý stav jen s .js na <html> (no-JS fallback:
   text zůstane viditelný). IntersectionObserver přidává .is-visible. */
.js .reveal { opacity:0; transform:translateY(28px); transition:opacity .7s ease-out, transform .7s cubic-bezier(0.16,1,0.3,1); }
.js .reveal.is-visible { opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity:1 !important; transform:none !important; transition:none !important; }
}

/* PAGE TRANSITIONS */
.page { display:none; animation:fadeIn .4s ease; }
.page.active { display:block; }
[id^="p-"] { scroll-margin-top:100px; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* NAV */
nav { position:fixed; top:0; left:0; right:0; z-index:160; height:108px; display:flex; align-items:center; justify-content:space-between; padding:0 32px; transition:all .3s; background:rgba(255,248,231,.96); backdrop-filter:blur(10px); border-bottom:1px solid rgba(120,66,19,.08); }
nav .logo { display:flex; align-items:center; gap:12px; cursor:pointer; }
nav .logo svg { width:96px; height:96px; color:var(--br); display:block; }
nav .links { display:flex; gap:24px; }
nav .links a { font-family:'sandwich_regular'; text-transform:uppercase; font-size:16px; color:var(--br); text-decoration:none; letter-spacing:.02em; position:relative; padding:6px 0; cursor:pointer; }
nav .links a:hover { opacity:.7; }
nav .links a.active::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:3px; background:var(--y); }

/* HAMBURGER — hidden on desktop */
nav .hamburger { display:none; background:none; border:none; cursor:pointer; padding:10px; margin-left:12px; }
nav .hamburger span { display:block; width:28px; height:3px; background:var(--br); margin:5px 0; transition:transform .3s, opacity .3s; }
nav .hamburger.open span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
nav .hamburger.open span:nth-child(2) { opacity:0; }
nav .hamburger.open span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.mobile-menu { display:none; position:fixed; top:0; left:0; right:0; bottom:0; z-index:150; background:var(--cr); padding:120px 32px 40px; flex-direction:column; gap:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.mobile-menu.open { display:flex; }
.mobile-menu a { font-family:'sandwich_regular'; text-transform:uppercase; font-size:28px; color:var(--br); text-decoration:none; letter-spacing:.02em; padding:20px 0; border-bottom:1px solid rgba(120,66,19,.15); cursor:pointer; display:block; }
.mobile-menu a:last-child { border-bottom:none; }

/* HERO with tile composition background */
.hero { height:520px; margin-top:108px; display:flex; align-items:center; padding:0 32px; position:relative; overflow:hidden; background:#FAB527 var(--ph-pattern) top left / 520px auto repeat; }
.hero-inner { max-width:1200px; margin:0 auto; width:100%; position:relative; z-index:2; display:flex; }
.hero-text { flex:0 1 auto; max-width:700px; background:rgba(250, 181, 39, .96); padding:48px 52px; }
.hero-text .sub { font-size:19px; color:var(--br); opacity:.75; margin-bottom:18px; line-height:1.6; }
.hero-text h1 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(52px,6.5vw,88px); line-height:1.04; color:var(--br); margin-bottom:26px; }
.hero-btns { display:flex; gap:12px; flex-wrap:wrap; }
.hero-btns a { font-family:'sandwich_regular'; text-transform:uppercase; padding:14px 28px; font-size:15px; text-decoration:none; letter-spacing:.02em; cursor:pointer; }
.hero-btns .primary { background:var(--br); color:var(--w); }
.hero-btns .secondary { background:transparent; color:var(--br); border:2px solid var(--br); }

/* PAGE HEADER with tile composition backgrounds */
.page-header { height:520px; margin-top:108px; display:flex; align-items:center; padding:0 32px; color:var(--w); position:relative; overflow:hidden; background:#FAB527 top left / 520px auto repeat; }
.page-header.h-pribeh { background-image:var(--ph-pattern); }
.page-header.h-produkty { background-image:var(--ph-pattern); }
.page-header.h-kde { background-image:var(--ph-pattern); }
.page-header.h-b2b { background-image:var(--ph-pattern); }
.page-header .inner { max-width:1200px; margin:0 auto; position:relative; z-index:2; width:100%; }
.page-header .ph-box { background:rgba(250, 181, 39, .96); padding:32px 40px; max-width:680px; }
.page-header .breadcrumb { font-size:14px; color:var(--br); opacity:.7; margin-bottom:10px; }
.page-header .breadcrumb a { color:var(--br); text-decoration:none; cursor:pointer; }
.page-header h1 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(46px,5.8vw,76px); line-height:1.08; color:var(--br); }
.page-header .lead { font-size:18px; color:var(--br); opacity:.8; margin-top:14px; line-height:1.5; }

/* VALUES */
.vals { padding:80px 32px; background:var(--w); }
.vals-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:48px; }
.vals-inner h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:28px; color:var(--br); margin-bottom:16px; line-height:1.2; }
.vals-inner p { color:var(--br); opacity:.75; line-height:1.8; font-size:17px; }

/* PRODUCTS */
.product-strip { padding:64px 32px; color:var(--w); }
.product-strip .inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:48px; }
.product-strip.reverse .inner { flex-direction:row-reverse; }
.product-strip .text { flex:1 1 320px; }
.product-strip .tag { display:block; font-family:'sandwich_regular'; font-size:18px; opacity:.85; letter-spacing:.05em; text-transform:uppercase; }
.product-strip .novinka-badge { margin-right:10px; }
.product-strip h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(32px,4.5vw,48px); margin:8px 0 16px; line-height:1.1; }
.product-strip .desc { font-size:18px; line-height:1.7; opacity:.9; margin-bottom:20px; max-width:440px; }
.product-strip .sizes { font-family:'sandwich_regular'; text-transform:uppercase; font-size:17px; letter-spacing:.03em; opacity:.9; margin-bottom:20px; }
.product-strip .btn { font-family:'sandwich_regular'; text-transform:uppercase; display:inline-block; background:var(--w); padding:14px 28px; font-size:15px; text-decoration:none; letter-spacing:.02em; cursor:pointer; }
.product-strip .visual { flex:1 1 340px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
/* Jednotné render výšky per kategorie: zdrojové PNG nejsou v jednotném scale.
   Transparentní RGBA produkt leží přímo na barevné ploše — žádný bg box. */
.product-strip .vimg { display:none; height:380px; max-width:100%; object-fit:contain; background:none; }
.product-strip .vimg-kelimek { height:300px; }
.product-strip .vimg.active { display:block; }
/* Strip s obrázkovým pozadím (pistácie): textbox jako u page headerů;
   za produktem krémový panel (ostré rohy), aby na patternu vystoupil */
.product-strip.has-bgimg .text { background:rgba(255,248,231,.95); padding:32px 36px; }
.product-strip.has-bgimg .v-imgs { width:auto; align-self:center; background:#FFF8E7; padding:44px 56px; box-shadow:0 14px 36px rgba(120,66,19,.16); }

/* A/B/C TEST LAYOUTŮ VIZUÁLU (FLAVORS[].layout) */
.product-strip .v-imgs { display:flex; align-items:center; justify-content:center; width:100%; }
.product-strip .vimg { transform:var(--lay,none); }
/* horizontal: rozbalený nanuk naležato (rotace 90°), přepínač zůstává */
.product-strip.layout-horizontal .vimg-nanuk, .product-strip.layout-horizontal .vimg-obal { --lay:rotate(90deg); height:440px; margin:-134px 0; }
/* sideBySide: obal + rozbalený nanuk vedle sebe */
.product-strip.layout-sbs .v-imgs { gap:22px; }
.product-strip.layout-sbs .v-imgs .vimg { display:block; height:340px; }
/* crossed: obal a nanuk zkřížené přes sebe, nanuk vykukuje vedle obalu */
.product-strip.layout-crossed .v-imgs { position:relative; }
.product-strip.layout-crossed .v-imgs .vimg { display:block; }
.product-strip.layout-crossed .vimg-obal { --lay:rotate(-5deg); position:relative; z-index:2; margin-right:120px; }
.product-strip.layout-crossed .vimg-nanuk { --lay:rotate(20deg); position:absolute; left:52%; top:6%; height:340px; z-index:1; }

/* ANIMACE NANUKŮ: reveal vizuálu fade + scale, hover jen desktop s myší */
.js .reveal.reveal-visual { transform:scale(.94); }
.js .reveal-visual.is-visible { transform:scale(1); }
@media (hover: hover) and (pointer: fine) {
  .product-strip .vimg { transition:transform .4s ease; }
  .product-strip .vimg:hover { transform:var(--lay,none) translateY(-8px) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .product-strip .vimg { transition:none; }
  .product-strip .vimg:hover { transform:var(--lay,none); }
}
.product-strip.on-light { color:var(--br); }
.product-strip.on-light .desc, .product-strip.on-light .tag { opacity:.85; }

/* NOVINKA badge */
.novinka-badge { display:inline-block; font-family:'sandwich_regular'; text-transform:uppercase; background:var(--y); color:var(--br); font-size:14px; letter-spacing:.08em; padding:6px 14px; margin-bottom:14px; }

/* PRODUCT GROUP grids (kelímky, multipacky) */
.pgroup { padding:72px 32px; }
.pgroup .head { max-width:1100px; margin:0 auto 36px; }
.pgroup .head h2 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(28px,4vw,42px); color:var(--br); margin-bottom:10px; }
.pgroup .head p { font-size:17px; color:var(--br); opacity:.7; max-width:640px; }
.pgroup .grid { max-width:1100px; margin:0 auto; display:grid; gap:20px; }
.pgroup .grid.cols4 { grid-template-columns:repeat(4,1fr); }
.pgroup .grid.cols3 { grid-template-columns:repeat(3,1fr); }
.pgroup .grid.cols2 { grid-template-columns:repeat(2,1fr); }
.pcard2 { position:relative; color:var(--w); display:flex; flex-direction:column; min-height:280px; }
.pcard2.on-light { color:var(--br); }
.pcard2 .pc-img { flex:1; display:flex; align-items:center; justify-content:center; padding:26px 20px; }
.pcard2 .pc-img img { height:180px; max-width:90%; object-fit:contain; background:none; }
.pcard2 .pc-body { padding:16px 20px 22px; }
.pcard2 .pc-body h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:19px; margin-bottom:6px; line-height:1.15; }
.pcard2 .pc-body .sz { font-family:'sandwich_regular'; text-transform:uppercase; font-size:13px; opacity:.85; }
.pcard2 .pc-badge { position:absolute; top:12px; right:12px; font-family:'sandwich_regular'; text-transform:uppercase; background:var(--y); color:var(--br); font-size:12px; letter-spacing:.06em; padding:5px 10px; z-index:2; }

/* PRODUCT PREVIEW (homepage) */
.products-preview { padding:80px 32px; background:var(--cr); }
.products-preview .head { max-width:1100px; margin:0 auto 40px; text-align:center; }
.products-preview h2 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(32px,4vw,44px); color:var(--br); margin-bottom:12px; }
.products-preview .head p { color:var(--br); opacity:.7; font-size:17px; }
.products-preview .grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
/* 5.1: each tile is ONE continuous product colour, image + label share the same field */
.products-preview .pcard { cursor:pointer; color:var(--w); transition:transform .3s ease, box-shadow .3s ease; }
.products-preview .pcard:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(120,66,19,.18); }
.products-preview .pcard .img { height:240px; display:flex; align-items:center; justify-content:center; }
.products-preview .pcard .img img { height:200px; max-width:80%; object-fit:contain; background:none; }
.products-preview .pcard .body { padding:20px; }
.products-preview .pcard h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:20px; color:inherit; margin-bottom:6px; }
.products-preview .pcard .sizes { font-family:'sandwich_regular'; text-transform:uppercase; font-size:14px; color:inherit; opacity:.85; }
.products-preview .more { text-align:center; margin-top:32px; }
.products-preview .more a { font-family:'sandwich_regular'; text-transform:uppercase; color:var(--y); font-size:16px; text-decoration:none; cursor:pointer; }

/* STORY */
.story { padding:80px 32px; background:var(--w); }
.story .inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.story .tag { font-family:'sandwich_regular'; text-transform:uppercase; font-size:14px; color:var(--y); letter-spacing:.08em; margin-bottom:12px; }
.story h2 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(28px,4vw,40px); color:var(--br); margin-bottom:20px; line-height:1.15; }
.story p { color:var(--br); opacity:.75; line-height:1.8; font-size:16px; margin-bottom:16px; }
.story .stats { display:flex; gap:40px; margin-top:24px; }
.story .stats .num { font-family:'sandwich_regular'; font-size:42px; color:var(--y); }
.story .stats .lbl { font-size:14px; color:var(--br); opacity:.5; margin-top:2px; }
.story .photo { background:var(--cr); height:400px; display:flex; align-items:center; justify-content:center; }
.export-map { margin-top:28px; max-width:520px; }
.export-map svg { width:100%; height:auto; display:block; }
.story .photo.has-img { border:none; background:none; padding:0; overflow:hidden; }
.timeline { max-width:1100px; margin:60px auto 0; padding:0 32px; }
.timeline h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:24px; color:var(--br); margin-bottom:24px; text-align:center; }
.timeline .items { display:flex; gap:0; }
.timeline .item { flex:1; padding:16px 20px; border-left:3px solid var(--y); }
.timeline .item .year { font-family:'sandwich_regular'; font-size:24px; color:var(--y); }
.timeline .item .text { font-size:14px; color:var(--br); opacity:.7; margin-top:6px; line-height:1.5; }

/* BUY — Kde koupit: tři rovnocenné bloky (vzor oddělení sekcí Naše zmrzliny):
   stejný pgroup head (h2 + intro), každý blok vlastní barva plochy. */
.buy-blk.on-dark { color:var(--w); }
.buy-blk.on-dark .head h2 { color:var(--w); }
.buy-blk.on-dark .head p { color:var(--w); opacity:.85; }
.buy-blk .shops { max-width:1100px; margin:0 auto; display:flex; gap:16px; flex-wrap:wrap; }
.buy-blk .shops a { font-family:'sandwich_regular'; text-transform:uppercase; background:var(--w); border:2px solid rgba(120,66,19,.1); color:var(--br); padding:24px 48px; font-size:17px; text-decoration:none; transition:border-color .2s; cursor:pointer; }
.buy-blk .shops a:hover { border-color:var(--y); }
.buy-prodejna-info { max-width:1100px; margin:0 auto; font-size:17px; line-height:1.7; }
.buy-prodejna-info h4 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:19px; margin:20px 0 6px; }

/* B2B */
.b2b { padding:80px 32px; background:var(--br); color:var(--cr); }
.b2b .inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:start; }
.b2b h2 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(32px,4.5vw,48px); margin-bottom:20px; line-height:1.1; color:var(--w); }
.b2b p { opacity:.7; line-height:1.8; font-size:17px; margin-bottom:14px; }
.b2b .features { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; }
.b2b .feat { padding:20px; border:1px solid rgba(255,248,231,.12); }
.b2b .feat h4 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:17px; color:var(--y); margin-bottom:8px; }
.b2b .feat p { font-size:14px; opacity:.6; margin-bottom:0; line-height:1.5; }
.b2b .cta-box { background:rgba(255,248,231,.06); padding:36px; }
.b2b .cta-box h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:24px; color:var(--y); margin-bottom:12px; }
.b2b .cta-box p { font-size:15px; opacity:.7; margin-bottom:8px; }
.b2b .cta-box .contact { font-size:18px; margin-top:20px; opacity:1; }
.b2b .cta-box .contact strong { color:var(--w); }
.b2b .cta-box a { font-family:'sandwich_regular'; text-transform:uppercase; display:inline-block; background:var(--y); color:var(--br); padding:14px 32px; font-size:16px; text-decoration:none; margin-top:16px; cursor:pointer; }

/* FOOTER */
footer { padding:56px 32px 24px; background:var(--br); color:var(--cr); }
footer .inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; font-size:15px; }
footer h4 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:17px; margin-bottom:12px; }
footer .info { opacity:.7; line-height:1.7; font-size:14px; }
footer .col-links { display:flex; flex-direction:column; gap:8px; }
footer .col-links a { color:var(--cr); opacity:.7; text-decoration:none; cursor:pointer; font-size:14px; }
footer .col-links a:hover { opacity:1; }
footer .bottom { max-width:1100px; margin:32px auto 0; padding-top:20px; border-top:1px solid rgba(255,248,231,.1); display:flex; justify-content:space-between; font-size:13px; opacity:.4; flex-wrap:wrap; gap:8px; }
footer .bottom a { color:var(--cr); text-decoration:none; }

/* ===== BANNER / VIDEO CAROUSEL (novinky, akce) ===== */
.banner-sec { padding:72px 32px; background:var(--w); }
.banner-sec .head { max-width:1200px; margin:0 auto 28px; text-align:center; }
.banner-sec .head h2 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(28px,4vw,42px); color:var(--br); }
.bcar { position:relative; max-width:1200px; margin:0 auto; }
.bcar .frame { position:relative; height:440px; overflow:hidden; }
.bcar .bslide { position:absolute; inset:0; opacity:0; transition:opacity .5s ease; display:flex; align-items:flex-end; padding:44px; color:var(--w); pointer-events:none; }
.bcar .bslide.active { opacity:1; pointer-events:auto; }
.bcar .bslide.on-light { color:var(--br); }
.bcar .bcontent { position:relative; z-index:3; max-width:620px; }
.bcar .bslide .eyebrow { font-family:'sandwich_regular'; text-transform:uppercase; font-size:14px; letter-spacing:.08em; margin-bottom:10px; opacity:.9; }
.bcar .bslide h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(26px,3.6vw,40px); line-height:1.1; margin-bottom:10px; }
.bcar .bslide p { font-size:17px; opacity:.92; line-height:1.5; }
.bcar .play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:84px; height:84px; border-radius:50%; background:rgba(255,248,231,.92); display:flex; align-items:center; justify-content:center; z-index:2; }
.bcar .play::after { content:''; border-style:solid; border-width:15px 0 15px 25px; border-color:transparent transparent transparent #784312; margin-left:6px; }
.bcar .b-img { position:absolute; right:40px; bottom:0; height:96%; z-index:1; object-fit:contain; }
.bcar .vtag { position:absolute; top:20px; left:20px; z-index:3; font-family:'sandwich_regular'; text-transform:uppercase; font-size:12px; letter-spacing:.06em; background:rgba(120,66,19,.55); color:#fff; padding:5px 10px; display:flex; align-items:center; gap:6px; }
.bcar .arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:48px; height:48px; background:rgba(255,248,231,.9); border:none; cursor:pointer; font-family:'sandwich_regular'; font-size:22px; color:var(--br); line-height:1; }
.bcar .arrow.prev { left:14px; }
.bcar .arrow.next { right:14px; }
.bcar .dots { display:flex; gap:8px; justify-content:center; margin-top:18px; }
.bcar .dots button { width:12px; height:12px; background:rgba(120,66,19,.2); border:none; cursor:pointer; padding:0; }
.bcar .dots button.active { background:var(--y); }

/* ===== INSTAGRAM CAROUSEL ===== */
.ig-sec { padding:72px 32px; background:var(--cr); }
.ig-sec .head { max-width:1200px; margin:0 auto 28px; text-align:center; }
.ig-sec .head h2 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(28px,4vw,42px); color:var(--br); margin-bottom:8px; }
.ig-sec .head a { font-family:'sandwich_regular'; text-transform:uppercase; color:var(--y); font-size:17px; text-decoration:none; cursor:pointer; }
.ig-track { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 4px 16px; -webkit-overflow-scrolling:touch; max-width:1200px; margin:0 auto; }
.ig-track::-webkit-scrollbar { height:6px; }
.ig-track::-webkit-scrollbar-thumb { background:rgba(120,66,19,.2); }
.ig-tile { flex:0 0 auto; width:auto; height:300px; scroll-snap-align:start; position:relative; display:flex; align-items:flex-end; padding:16px; color:var(--w); cursor:pointer; }
.ig-tile.on-light { color:var(--br); }
.ig-tile .ig-cap { position:relative; z-index:2; font-size:14px; line-height:1.4; font-weight:600; }
.ig-tile .ig-ic { position:absolute; top:12px; right:14px; z-index:2; font-size:13px; font-family:'sandwich_regular'; opacity:.85; }
a.ig-tile { text-decoration:none; }
.ig-tile > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.ig-tile:has(> img)::after { content:''; position:absolute; left:0; right:0; bottom:0; height:60%; background:linear-gradient(to top, rgba(0,0,0,.55), transparent); z-index:1; }
.ig-tile.on-light:has(> img)::after { background:linear-gradient(to top, rgba(255,248,231,.8), transparent); }

@media(max-width:640px) {
  .ig-tile { height:240px; }
}
@media(max-width:768px) {
  .hero-inner { flex-direction:column; }
  .bcar .frame { height:380px; }
  .bcar .bslide { padding:26px; }
  .vals-inner { grid-template-columns:1fr; }
  .product-strip .inner, .product-strip.reverse .inner { flex-direction:column; }
  .story .inner, .b2b .inner, .b2b .features, .products-preview .grid { grid-template-columns:1fr; }
  /* Statistiky 35 / 30 / AŽ 70 % se od kola 3 (prefix AŽ) nevejdou na 390 px
     do jedné řady — povolit zalomení, jinak přetečou a oříznou sloupec */
  .story .stats { flex-wrap:wrap; gap:20px 32px; }
  .pgroup .grid.cols4 { grid-template-columns:1fr 1fr; }
  .pgroup .grid.cols3, .pgroup .grid.cols2 { grid-template-columns:1fr; }
  .pgroup { padding:48px 20px; }
  .bcar .b-img { opacity:.25; right:0; }
  .product-strip .vimg { height:300px; }
  .product-strip .vimg-kelimek { height:240px; }
  .product-strip.layout-horizontal .vimg-nanuk, .product-strip.layout-horizontal .vimg-obal { height:300px; margin:-91px 0; }
  .product-strip.layout-sbs .v-imgs .vimg { height:240px; }
  .product-strip.layout-crossed .vimg-obal { margin-right:80px; }
  .product-strip.layout-crossed .vimg-nanuk { height:250px; }
  footer .inner { grid-template-columns:1fr; }
  nav .links { display:none; }
  nav .hamburger { display:block; }
  .timeline .items { flex-direction:column; }
  nav { padding:0 16px; height:84px; }
  nav .logo svg { width:58px; height:58px; }
  /* Hero/page-header: auto height + generous padding on mobile so text always fits */
  .hero { height:auto; min-height:390px; margin-top:84px; padding:32px 20px; }
  .hero-text { padding:30px 26px; }
  .hero-text .sub { font-size:16px; margin-bottom:14px; }
  .hero-text h1 { font-size:clamp(38px,10vw,52px); margin-bottom:22px; }
  .hero-btns a { padding:12px 20px; font-size:14px; }
  .page-header { height:auto; min-height:390px; margin-top:84px; padding:32px 20px; }
  .page-header .ph-box { padding:26px 24px; }
  .page-header h1 { font-size:clamp(34px,8.5vw,48px); }
  .page-header .lead { font-size:16px; }
}

/* ── Doplněk pro WordPress ───────────────────────────────────────────────
 * Ruční, krátký a odůvodněný. Všechno nad touto čarou je generované
 * z prototypu; sem patří jen to, co musí být jinak proto, že WordPress
 * vykresluje markup jinak než statický build.
 */

/* WordPress přidává k <img> atributy width a height. Prototyp ale velikost
 * obrázků řídí výškou a šířku nechává dopočítat z poměru stran. Atribut
 * width je prezentační hint, který by jinak vyhrál a obrázek roztáhl —
 * u nanuků na mobilu to dělalo vodorovné přetečení stránky.
 * width:auto hint přebije; poměr stran si prohlížeč pořád vezme z atributů,
 * takže nepřibude poskakování layoutu při načítání. */
.product-strip .vimg,
.pcard2 .pc-img img,
.products-preview .pcard .img img { width: auto; }

/* Totéž zrcadlově: kde prototyp řídí šířku a výšku nechává dopočítat
 * (packshot pod textem má aspect-ratio 560/300), přebíjel hint height.
 * Všechna pravidla z prototypu mají vyšší specifičnost, takže si svoje
 * pevné výšky udrží; tohle chytne jen obrázky bez explicitní výšky,
 * včetně těch, které klient teprve nahraje. */
img { height: auto; }

/* Dlaždice náhledu produktů je v prototypu klikatelný <div> s onclick.
 * Ve WP je uvnitř skutečný odkaz, ať jde stránka projít klávesnicí
 * a najít vyhledávačem. Vizuálně musí zůstat jako text. */
.products-preview .pcard h3 a { color: inherit; text-decoration: none; }

/* Textová stránka (Ochrana osobních údajů) a Obecný blok — ve schváleném
 * buildu nejsou, proto se skládají z hotových dílů prototypu: záhlaví jako
 * ostatní podstránky, sekce a typografie jako .story na Našem příběhu
 * (padding 80/32, odstavce 16 px / 1,8, nadpisy Sandwich verzálkami).
 * Užší sloupec kvůli délce řádku u dlouhého textu. Typografie je na .btnz-text,
 * aby ji sdílely obě místa. */
.page-header.h-text { background-image:var(--ph-pattern); }
.textova, .obecny { padding:80px 32px; background:var(--w); }
.textova .inner, .obecny .inner { max-width:760px; margin:0 auto; }
.btnz-text h2 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(24px,3vw,32px); color:var(--br); line-height:1.15; margin:48px 0 16px; }
.btnz-text h3 { font-family:'sandwich_regular'; text-transform:uppercase; font-size:clamp(19px,2.2vw,22px); color:var(--br); line-height:1.2; margin:32px 0 12px; }
.btnz-text > :first-child { margin-top:0; }
.btnz-text p, .btnz-text li { color:var(--br); opacity:.75; line-height:1.8; font-size:16px; }
.btnz-text p { margin-bottom:16px; }
.btnz-text ul, .btnz-text ol { margin:0 0 16px 22px; }
.btnz-text li { margin-bottom:6px; }
.btnz-text strong { font-weight:600; }
.btnz-text a { color:var(--br); }
.btnz-text blockquote { border-left:3px solid var(--y); padding:4px 0 4px 20px; margin:24px 0; }
.btnz-text img { max-width:100%; height:auto; display:block; border-radius:0; }
.btnz-text p > img, .btnz-text .wp-caption { margin:8px 0 24px; }
.btnz-text .wp-caption { max-width:100%; }
.btnz-text .wp-caption-text { font-size:13px; opacity:.6; margin-top:8px; }
.btnz-text .aligncenter { margin-left:auto; margin-right:auto; }
.btnz-text .alignleft { float:left; margin:6px 24px 16px 0; max-width:50%; }
.btnz-text .alignright { float:right; margin:6px 0 16px 24px; max-width:50%; }
.btnz-text::after { content:''; display:block; clear:both; }
.obecny.on-dark .btnz-text h2, .obecny.on-dark .btnz-text h3,
.obecny.on-dark .btnz-text p, .obecny.on-dark .btnz-text li, .obecny.on-dark .btnz-text a { color:var(--cr); }
@media(max-width:768px) {
  .textova, .obecny { padding:48px 20px; }
  .btnz-text .alignleft, .btnz-text .alignright { float:none; margin:8px 0 24px; max-width:100%; }
}

/* Cookie lišta (jen při vyplněném GTM ID, inc/cookies.php). Ve schváleném
 * buildu není; barvy a písmo jako patička (hnědá plocha, krémový text)
 * a tlačítko jako CTA v Pro partnery (Sandwich verzálkami, žlutá).
 * Border-radius 0 podle logomanuálu, i u tlačítek a zaškrtávátek. */
.btnz-cookies { position:fixed; left:0; right:0; bottom:0; z-index:1000; background:var(--br); color:var(--cr); padding:20px 32px; box-shadow:0 -8px 24px rgba(0,0,0,.15); }
.btnz-cookies[hidden] { display:none; }
.btnz-cookies .bc-inner { max-width:1100px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; gap:16px 32px; }
.btnz-cookies .bc-text { flex:1 1 380px; font-size:15px; line-height:1.6; opacity:.85; }
.btnz-cookies .bc-text a { color:var(--cr); }
.btnz-cookies .bc-volby { display:none; flex-basis:100%; gap:24px; flex-wrap:wrap; font-size:15px; }
.btnz-cookies.is-nastaveni .bc-volby { display:flex; }
.btnz-cookies .bc-volby label { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.btnz-cookies .bc-volby input { appearance:none; -webkit-appearance:none; width:16px; height:16px; margin:0; border:1px solid var(--cr); border-radius:0; background:transparent; cursor:pointer; }
.btnz-cookies .bc-volby input:checked { background:var(--y); border-color:var(--y); box-shadow:inset 0 0 0 3px var(--br); }
.btnz-cookies .bc-volby input:disabled { opacity:.5; cursor:default; }
.btnz-cookies .bc-volby input:focus-visible, .btnz-cookies button:focus-visible { outline:2px solid var(--y); outline-offset:2px; }
.btnz-cookies .bc-btns { display:flex; flex-wrap:wrap; gap:8px; }
.btnz-cookies button { font-family:'sandwich_regular'; text-transform:uppercase; font-size:14px; padding:12px 20px; border:1px solid var(--y); border-radius:0; background:transparent; color:var(--cr); cursor:pointer; }
.btnz-cookies button.bc-hl { background:var(--y); color:var(--br); }
.btnz-cookies .bc-nast, .btnz-cookies.is-nastaveni .bc-lista { display:none; }
.btnz-cookies.is-nastaveni .bc-nast { display:inline-block; }
@media(max-width:768px) { .btnz-cookies { padding:16px 20px; } .btnz-cookies .bc-btns { width:100%; } .btnz-cookies button { flex:1 1 auto; } }

/* Vypnutá hlavička nebo úvodní pruh (Zobrazit na webu = Ne): navigace je
 * fixní, obsah pod ní potřebuje stejné odsazení, jaké dávala hlavička
 * (margin-top 108 px, na mobilu 84 px). */
.nav-mezera { height:108px; }
@media(max-width:768px) { .nav-mezera { height:84px; } }

/* Časová osa od 7 bodů (btnz_osa_trida): vodorovný posuvný pás jako
 * Instagram, místo mačkání bodů do šířky. Bod je o něco širší než při šesti
 * bodech vedle sebe (188 vs 172 px), aby poslední viditelný vykukoval jen
 * zčásti a bylo poznat, že pás jde posunout; na mobilu, kde se do 6 bodů osa
 * skládá pod sebe, je pás karet se 72 % šířky, ať je vidět další bod. */
.timeline .items.pas { flex-direction:row; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; padding-bottom:16px; }
.timeline .items.pas .item { flex:0 0 188px; scroll-snap-align:start; }
.timeline .items.pas::-webkit-scrollbar { height:6px; }
.timeline .items.pas::-webkit-scrollbar-thumb { background:rgba(120,66,19,.2); }
@media(max-width:768px) {
  .timeline .items.pas { flex-direction:row; }
  .timeline .items.pas .item { flex:0 0 72%; }
}
