@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700&display=swap');

/* ---------- scoped reset & tokeny (dle originálu) ---------- */
.dw-brand{
  --dw-blue:#0064AF;
  --dw-slate:#303C43;
  --dw-dark:#2C2D2E;
  --dw-light:#F5F5F5;
  font-family:'League Spartan',sans-serif;
  color:var(--dw-dark);
  line-height:1.55;
  max-width:1400px;
  margin:0 auto;
  background:#fff;
}
.dw-brand *,.dw-brand *::before,.dw-brand *::after{box-sizing:border-box;margin:0;padding:0;}
.dw-brand img{max-width:100%;height:auto;display:block;}
.dw-brand a{text-decoration:none;color:inherit;}

/* ---------- hlavička značky ---------- */
.dw-brand .dw-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 28px;flex-wrap:wrap;gap:14px;border-bottom:1px solid #ececec;
}
.dw-brand .dw-header img{width:150px;height:auto;}
.dw-brand .dw-header-note{font-size:13px;color:#999;letter-spacing:.02em;}

/* ---------- hero slideshow (text uprostřed jako na originálu) ---------- */
.dw-brand .dw-slider{position:relative;width:100%;padding-top:56.3%;overflow:hidden;background:var(--dw-light);container-type:inline-size;}
.dw-brand .dw-slide{
  position:absolute;inset:0;opacity:0;visibility:hidden;
  background-size:cover;background-position:center;background-repeat:no-repeat;
  animation:dwFade 21s infinite;
}
.dw-brand .dw-slide::before{
  content:"";position:absolute;inset:0;background:rgba(0,0,0,.16);
}
.dw-brand .dw-slide:nth-child(1){animation-delay:0s;}
.dw-brand .dw-slide:nth-child(2){animation-delay:7s;}
.dw-brand .dw-slide:nth-child(3){animation-delay:14s;}
@keyframes dwFade{
  0%{opacity:0;visibility:hidden}
  5%{opacity:1;visibility:visible}
  29%{opacity:1;visibility:visible}
  34%{opacity:0;visibility:hidden}
  100%{opacity:0;visibility:hidden}
}
.dw-brand .dw-sl1{background-image:url('/shop-data/campaign/daewoo/dw-hero-ref.jpg');}
.dw-brand .dw-sl2{background-image:url('/shop-data/campaign/daewoo/dw-hero-cook.jpg');}
.dw-brand .dw-sl3{background-image:url('/shop-data/campaign/daewoo/dw-hero-wash.jpg');}
.dw-brand .dw-slide-inner{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;padding:0 8%;
}
.dw-brand .dw-slide-inner h2{
  font-size:26px;font-size:3.3cqw;font-weight:600;line-height:1.2;
  color:var(--dw-light);letter-spacing:.01em;margin-bottom:2cqw;
  text-shadow:0 2px 18px rgba(0,0,0,.35);
}
.dw-brand .dw-slide-inner .dw-discover{
  display:inline-block;background:var(--dw-light);color:var(--dw-dark);
  font-weight:600;font-size:12px;font-size:1.15cqw;letter-spacing:.08em;
  text-transform:uppercase;padding:1cqw 2.8cqw;transition:background .3s,color .3s;
}
.dw-brand .dw-slide-inner .dw-discover:hover{background:var(--dw-slate);color:#fff;}

/* ---------- hlavičky sekcí (vlevo, jako na originálu) ---------- */
.dw-brand .dw-section{padding:46px 28px 52px;}
.dw-brand .dw-sec-title{
  font-size:21px;font-weight:700;letter-spacing:.01em;margin-bottom:22px;
}

/* ---------- Vybrané kategorie (foto, tmavý překryv, světlý text uprostřed) ---------- */
.dw-brand .dw-cats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;
}
.dw-brand .dw-cat{position:relative;display:block;overflow:hidden;aspect-ratio:3/4;}
.dw-brand .dw-cat img{width:100%;height:100%;object-fit:cover;transition:transform .5s;}
.dw-brand .dw-cat::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.16);transition:background .3s;}
.dw-brand .dw-cat:hover img{transform:scale(1.05);}
.dw-brand .dw-cat:hover::after{background:rgba(0,0,0,.35);}
.dw-brand .dw-cat span{
  position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;
  color:var(--dw-light);font-weight:600;font-size:16px;letter-spacing:.12em;
  text-transform:uppercase;text-align:center;padding:0 10px;
}

/* ---------- Vybrané produkty (ploché šedé karty bez zaoblení) ---------- */
.dw-brand .dw-products{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
.dw-brand .dw-product{
  display:flex;flex-direction:column;background:var(--dw-light);
}
.dw-brand .dw-product-img{aspect-ratio:1/1;padding:26px;display:flex;align-items:center;justify-content:center;background:var(--dw-light);}
.dw-brand .dw-product-img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;mix-blend-mode:multiply;transition:transform .35s;}
.dw-brand .dw-product:hover .dw-product-img img{transform:scale(1.05);}
.dw-brand .dw-product-body{padding:0 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1;}
.dw-brand .dw-product-body h3{font-size:14.5px;font-weight:600;line-height:1.4;color:var(--dw-dark);}
.dw-brand .dw-product-link{
  margin-top:auto;font-size:13px;font-weight:600;color:var(--dw-blue);
  letter-spacing:.03em;transition:color .3s;
}
.dw-brand .dw-product:hover .dw-product-link{color:var(--dw-slate);}

/* ---------- Objevte svět produktů (centrovaný rich text) ---------- */
.dw-brand .dw-world{
  text-align:center;padding:56px 28px 30px;
}
.dw-brand .dw-world h2{font-size:34px;font-weight:700;color:#252F35;margin-bottom:12px;}
.dw-brand .dw-world p{font-size:16px;color:#303C43;max-width:640px;margin:0 auto;}

/* ---------- Chytrá jednoduchost (CSS záložky jako na originálu) ---------- */
.dw-brand .dw-smart{padding:30px 28px 56px;}
.dw-brand .dw-smart-eyebrow{
  text-align:center;font-size:13px;font-weight:600;letter-spacing:.2em;
  text-transform:uppercase;color:var(--dw-blue);margin-bottom:6px;
}
.dw-brand .dw-smart-title{text-align:center;font-size:26px;font-weight:700;margin-bottom:26px;}
.dw-brand .dw-tabs input{display:none;}
.dw-brand .dw-tab-labels{
  display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-bottom:0;
}
.dw-brand .dw-tab-labels label{
  padding:12px 22px;background:var(--dw-light);font-weight:600;font-size:14px;
  cursor:pointer;color:#666;transition:background .25s,color .25s;letter-spacing:.02em;
}
.dw-brand .dw-tab-labels label:hover{color:var(--dw-dark);}
.dw-brand .dw-panel{display:none;background:var(--dw-light);padding:36px;margin-top:6px;}
.dw-brand .dw-panel-flex{display:flex;align-items:center;gap:5%;}
.dw-brand .dw-panel-text{flex:1 1 55%;}
.dw-brand .dw-panel-text h3{font-size:22px;font-weight:700;margin-bottom:12px;}
.dw-brand .dw-panel-text p{font-size:15px;color:#4a4a4a;}
.dw-brand .dw-panel-img{flex:1 1 40%;display:flex;align-items:center;justify-content:center;}
.dw-brand .dw-panel-img img{max-height:280px;width:auto;mix-blend-mode:multiply;}
.dw-brand .dw-t1:checked ~ .dw-tab-labels .dw-l1,
.dw-brand .dw-t2:checked ~ .dw-tab-labels .dw-l2,
.dw-brand .dw-t3:checked ~ .dw-tab-labels .dw-l3,
.dw-brand .dw-t4:checked ~ .dw-tab-labels .dw-l4{background:var(--dw-slate);color:#fff;}
.dw-brand .dw-t1:checked ~ .dw-p1,
.dw-brand .dw-t2:checked ~ .dw-p2,
.dw-brand .dw-t3:checked ~ .dw-p3,
.dw-brand .dw-t4:checked ~ .dw-p4{display:block;}
/* pojistka: pokud by editor odstranil radio inputy, zobrazí se všechny panely pod sebou */
.dw-brand .dw-tabs:not(:has(input)) .dw-panel{display:block;}

/* ---------- O značce Daewoo ---------- */
.dw-brand .dw-about{background:var(--dw-slate);color:#cfd6da;padding:60px 28px;}
.dw-brand .dw-about-inner{max-width:880px;margin:0 auto;text-align:center;}
.dw-brand .dw-about-inner h2{color:#fff;font-size:30px;font-weight:700;margin-bottom:8px;}
.dw-brand .dw-about-sub{font-size:15.5px;color:#9fb0ba;margin-bottom:26px;}
.dw-brand .dw-about-inner .dw-about-text{font-size:15px;text-align:left;margin-bottom:14px;}
.dw-brand .dw-values{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:30px;}
.dw-brand .dw-value{background:rgba(255,255,255,.07);padding:24px 18px;text-align:center;}
.dw-brand .dw-value strong{
  display:block;font-size:15px;font-weight:700;color:#fff;margin-bottom:8px;
  letter-spacing:.06em;text-transform:uppercase;
}
.dw-brand .dw-value span{font-size:13.5px;color:#aebbc3;}

/* ---------- CTA ---------- */
.dw-brand .dw-cta{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  flex-wrap:wrap;background:var(--dw-blue);color:#fff;padding:34px 40px;
}
.dw-brand .dw-cta h2{color:#fff;font-size:23px;font-weight:700;}
.dw-brand .dw-cta a{
  display:inline-block;background:#fff;color:var(--dw-blue);
  font-weight:600;font-size:13.5px;text-transform:uppercase;letter-spacing:.08em;
  padding:14px 36px;transition:background .3s,color .3s;
}
.dw-brand .dw-cta a:hover{background:var(--dw-slate);color:#fff;}

/* ---------- responzivita ---------- */
@media (max-width:1000px){
  .dw-brand .dw-cats{grid-template-columns:repeat(3,1fr);}
  .dw-brand .dw-values{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .dw-brand .dw-products{grid-template-columns:repeat(2,1fr);}
  .dw-brand .dw-panel-flex{flex-direction:column;}
  .dw-brand .dw-panel{padding:26px;}
}
@media (max-width:768px){
  .dw-brand .dw-cats{grid-template-columns:repeat(2,1fr);}
  .dw-brand .dw-world h2{font-size:26px;}
}
@media (max-width:520px){
  .dw-brand .dw-cats{grid-template-columns:1fr;}
  .dw-brand .dw-products{grid-template-columns:1fr;}
  .dw-brand .dw-values{grid-template-columns:1fr;}
  .dw-brand .dw-cta{justify-content:center;text-align:center;}
}

/* ---------- guardy šablony Upgates (stejné jako u ostatních brand pages) ---------- */
/* Šablona kategorie vykresluje nad obsahem vlastní H1 s názvem stránky. Hero má svůj
   vlastní titulek, takže duplicitní nadpis skryjeme. */
body:has(.dw-brand-wrapper) h1.ph-main,
body:has(.dw-brand-wrapper) h1.ph-page { display: none; }
/* vlastní H1 skrytý jen vizuálně (fragment ho jinak nemá) — brand_nadpis.py */
.dw-brand .dw-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Obsahový sloupec šablony je omezený na 640 px, brand page potřebuje plnou šířku. */
.max-w-xl:has(.dw-brand-wrapper) { max-width: none; }
/* Nadpisy: šablona tlačí vlastní font a u diakritiky pak padá na tučný fallback
   (řešeno u Tesly). Vynutíme League Spartan i pro nadpisy uvnitř brand page. */
.dw-brand :where(h1, h2, h3, h4, h5, h6) { font-family: 'League Spartan', system-ui, sans-serif; }

/* ===== mobil: čitelné písmo a text pod fotkou (scripts/mobil_css.py) ===== */
/* Daewoo na telefonu (do 768 px). Písmo hero bylo v `cqw` bez spodní meze a na
   360 px vycházelo pod 8 px (kontrola_mobil.py, 2026-09-24). Fotka se nahoře ukáže
   v pásu 56,25 % šířky (dvě fotky 16:9 celé, třetí širší se po stranách mírně ořízne), text jde pod ni na plnou plochu s pevným písmem.
   `cqw` v pravidlech níž je bezpečné: měří šířku slideru, ne písmo. */
@media (max-width:768px){
  .dw-brand .dw-slider{padding-top:calc(56.25% + 170px);background:var(--dw-slate);}
  .dw-brand .dw-slide{background-size:auto 56.25cqw;background-position:center top;}
  .dw-brand .dw-slide .dw-slide-inner{inset:auto;top:56.25cqw;bottom:0;left:0;right:0;
    padding:18px 20px 22px;background:var(--dw-slate);}
  .dw-brand .dw-slide-inner h2{font-size:21px;line-height:1.25;margin-bottom:16px;text-shadow:none;}
  .dw-brand .dw-slide-inner .dw-discover{font-size:12.5px;padding:12px 26px;}
}
/* ===== konec bloku pro mobil ===== */
