@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ---------- scoped reset & tokeny ---------- */
.tg-brand{
  --tg-red:#E30613;
  --tg-ink:#0F1111;
  --tg-grey:#F3F3F3;
  --tg-line:#DDD;
  font-family:'Roboto',Arial,sans-serif;
  color:var(--tg-ink);
  font-size:15px;
  line-height:1.6;
  max-width:1400px;
  margin:0 auto;
  background:#fff;
}
.tg-brand *,.tg-brand *::before,.tg-brand *::after{box-sizing:border-box;margin:0;padding:0;}
.tg-brand img{max-width:100%;height:auto;display:block;}
.tg-brand a{text-decoration:none;color:inherit;}

/* ---------- typografie ---------- */
.tg-brand .tg-h{font-family:'Roboto',Arial,sans-serif;font-weight:700;font-size:26px;text-transform:uppercase;letter-spacing:.02em;line-height:1.2;color:var(--tg-ink);}
.tg-brand .tg-btn{
  display:inline-block;background:var(--tg-red);color:#fff;border-radius:4px;
  font-weight:500;font-size:14px;text-transform:uppercase;letter-spacing:.04em;
  padding:12px 26px;transition:background .2s;
}
.tg-brand .tg-btn:hover{background:#b8050f;}
.tg-brand .tg-btn-ghost{background:transparent;color:var(--tg-ink);border:1px solid var(--tg-ink);}
.tg-brand .tg-btn-ghost:hover{background:var(--tg-ink);color:#fff;}

/* ---------- hlavička s logem + záložky kategorií (jako navigace storu) ---------- */
.tg-brand .tg-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:16px 30px 0;}
.tg-brand .tg-header img{width:125px;}
.tg-brand .tg-tabs{display:flex;flex-wrap:wrap;gap:0 28px;border-bottom:1px solid var(--tg-line);width:100%;padding:12px 30px 0;}
.tg-brand .tg-tabs a{
  font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:#444;
  padding:10px 0 12px;border-bottom:3px solid transparent;margin-bottom:-1px;
}
.tg-brand .tg-tabs a:hover,.tg-brand .tg-tabs a.tg-active{color:var(--tg-ink);border-bottom-color:var(--tg-red);}

/* ---------- široké bannery (1903 × 401 jako ve storu) ---------- */
.tg-brand .tg-banner{width:100%;aspect-ratio:1903/401;background-size:cover;background-position:center;background-color:var(--tg-grey);}
.tg-brand .tg-banner-lead{position:relative;}
.tg-brand .tg-banner-lead .tg-lead{
  position:absolute;left:30px;bottom:24px;background:rgba(255,255,255,.92);padding:14px 20px;max-width:440px;
}
.tg-brand .tg-lead h1{font-size:22px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;line-height:1.2;margin-bottom:4px;}
.tg-brand .tg-lead p{font-size:14px;color:#444;}

/* ---------- dvě dlaždice Škola / Urban (celá fotka 3:2 bez ořezu, aby seděly kryjící panely) ---------- */
.tg-brand .tg-duo{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:28px 30px;}
.tg-brand .tg-tile{position:relative;display:block;aspect-ratio:3/2;overflow:hidden;background-size:100% 100%;background-position:center;}
/* překrytí vypáleného německého štítku a vlastní český štítek ve stejném stylu */
.tg-brand .tg-tile-cover{
  position:absolute;display:flex;align-items:center;justify-content:center;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);background:rgba(20,20,20,.55);
}
.tg-brand .tg-tile-label{
  border:3px solid #fff;color:#fff;font-weight:700;font-size:clamp(14px,2.2vw,30px);
  text-transform:uppercase;letter-spacing:.04em;padding:.35em .6em;line-height:1;white-space:nowrap;
  text-shadow:0 1px 4px rgba(0,0,0,.4);
}
.tg-brand .tg-tile-skola .tg-tile-cover{left:53%;top:75.5%;width:37%;height:15%;}
.tg-brand .tg-tile-urban .tg-tile-cover{left:19%;top:75.5%;width:39%;height:15%;}

/* ---------- produktové mřížky (jako store) ---------- */
.tg-brand .tg-section{padding:34px 30px 40px;}
.tg-brand .tg-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px;}
.tg-brand .tg-section-head p{color:#555;font-size:14px;}
.tg-brand .tg-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.tg-brand .tg-card{display:block;border:1px solid var(--tg-line);border-radius:6px;padding:12px;transition:box-shadow .2s;}
.tg-brand .tg-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.1);}
.tg-brand .tg-card-img{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.tg-brand .tg-card-img img{width:100%;height:100%;object-fit:contain;transition:transform .3s;}
.tg-brand .tg-card:hover .tg-card-img img{transform:scale(1.04);}
.tg-brand .tg-card h3{font-size:14px;font-weight:500;line-height:1.4;margin:10px 0 2px;color:var(--tg-ink);}
.tg-brand .tg-card span{font-size:12px;color:#666;display:block;}

/* ---------- příběh značky ---------- */
.tg-brand .tg-story{background:var(--tg-grey);padding:56px 30px;display:flex;gap:48px;align-items:flex-start;}
.tg-brand .tg-story .tg-h{flex:0 0 34%;font-size:30px;}
.tg-brand .tg-story .tg-h span{color:var(--tg-red);}
.tg-brand .tg-story-text{flex:1;}
.tg-brand .tg-story-text p{margin-bottom:12px;max-width:640px;color:#333;}
.tg-brand .tg-facts{display:flex;flex-wrap:wrap;gap:28px 40px;margin-top:22px;}
.tg-brand .tg-fact b{display:block;font-size:30px;font-weight:700;color:var(--tg-red);line-height:1;}
.tg-brand .tg-fact span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#555;}

/* ---------- CTA ---------- */
.tg-brand .tg-cta{text-align:center;padding:52px 28px;}
.tg-brand .tg-cta .tg-h{margin-bottom:8px;}
.tg-brand .tg-cta p{color:#555;margin-bottom:22px;}

/* ---------- responzivita ---------- */
@media (max-width:900px){
  .tg-brand .tg-cards{grid-template-columns:repeat(2,1fr);}
  .tg-brand .tg-story{flex-direction:column;gap:20px;padding:40px 24px;}
  .tg-brand .tg-story .tg-h{flex:0 0 auto;}
  .tg-brand .tg-header{justify-content:center;}
  .tg-brand .tg-tabs{justify-content:center;gap:0 18px;padding:12px 16px 0;}
  .tg-brand .tg-banner-lead .tg-lead{left:16px;bottom:16px;padding:10px 14px;}
  .tg-brand .tg-lead h1{font-size:16px;}
  .tg-brand .tg-lead p{display:none;}
}
@media (max-width:520px){
  .tg-brand .tg-cards,.tg-brand .tg-duo{grid-template-columns:1fr;}
  .tg-brand .tg-banner{aspect-ratio:16/7;}
}

/* ---------- záplaty proti chybám v balíčku ---------- */
/* Štítek musí vždy zůstat uvnitř panelu, který kryje německý text na fotce. */
.tg-brand .tg-tile-cover { container-type: size; }
.tg-brand .tg-tile-label { font-size: clamp(9px, 10cqw, 30px); }

/* ---------- guardy šablony Upgates (stejné jako u ostatních brand pages) ---------- */
/* Šablona kategorie vykresluje nad obsahem vlastní H1 s názvem stránky; banner má svůj
   vlastní titulek, takže duplicitní nadpis skryjeme. */
body:has(.tg-brand-wrapper) h1.ph-main,
body:has(.tg-brand-wrapper) h1.ph-page { display: none; }
/* Obsahový sloupec šablony je omezený na 640 px, brand page potřebuje plnou šířku. */
.max-w-xl:has(.tg-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 Roboto i pro nadpisy uvnitř brand page. */
.tg-brand :where(h1, h2, h3, h4, h5, h6) { font-family: 'Roboto', Arial, sans-serif; }
