/* ============================================================
   Keramika Kampanela — základní styly
   Barvy, fonty a rozestupy řídí CSS proměnné, které nastavuje
   editor (app.js → applyTheme).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #faf8f5;
  --surface: #f2ede6;
  --ink: #221f1c;
  --muted: #7a736b;
  --accent: #8a6f4e;
  --line: #e0d8cd;
  --radius: 2px;
  --img-radius: 2px;
  --maxw: 1240px;
  --space: 128px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs: 17px;
  --scale: 1.24;
  --ls-display: 0em;
  --ls-nav: 0.14em;

  --fs-sm: calc(var(--fs) / var(--scale));
  --fs-h4: calc(var(--fs) * var(--scale));
  --fs-h3: calc(var(--fs) * var(--scale) * var(--scale));
  --fs-h2: calc(var(--fs) * var(--scale) * var(--scale) * var(--scale));
  --fs-h1: calc(var(--fs) * var(--scale) * var(--scale) * var(--scale) * var(--scale));
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--ls-display);
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}

.lead { color: var(--muted); font-size: calc(var(--fs) * 1.02); max-width: 56ch; }

/* Mezery: hodnota z editoru (--sp-top/--sp-bottom), jinak výchozí --space. */
section {
  padding-top: calc(var(--sp-top, var(--space)) * var(--space-scale, 1));
  padding-bottom: calc(var(--sp-bottom, var(--space)) * var(--space-scale, 1));
}
section.tight {
  padding-top: calc(var(--sp-top, calc(var(--space) * 0.62)) * var(--space-scale, 1));
  padding-bottom: calc(var(--sp-bottom, calc(var(--space) * 0.62)) * var(--space-scale, 1));
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-static { position: relative; }
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.header-inner[data-align="left"]   { grid-template-columns: auto 1fr auto; }
.header-inner[data-align="left"] .site-nav { justify-content: flex-start; }

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: calc(var(--fs) * 1.32);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-top: 4px;
}

.site-nav { display: flex; gap: 30px; justify-content: center; }
.site-nav a {
  font-size: var(--nav-size, 12.5px);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav[data-style="underline"] a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav[data-style="underline"] a:hover::after,
.site-nav[data-style="underline"] a.active::after { transform: scaleX(1); }
.site-nav[data-style="pill"] a { padding: 7px 14px; border-radius: 999px; }
.site-nav[data-style="pill"] a:hover,
.site-nav[data-style="pill"] a.active { background: var(--surface); }

.header-side { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}

/* ---------- Sociální ikony ---------- */
.social { display: flex; align-items: center; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.social a:hover { color: var(--ink); }
.social svg { display: block; }
.social .s-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.social[data-shape="circle"] a,
.social[data-shape="square"] a,
.social[data-shape="soft"] a,
.social[data-shape="filled"] a { padding: var(--icon-pad, 9px); }
.social[data-shape="circle"] a,
.social[data-shape="square"] a { border: 1px solid var(--line); }
.social[data-shape="circle"] a { border-radius: 999px; }
.social[data-shape="square"] a { border-radius: var(--radius); }
.social[data-shape="circle"] a:hover,
.social[data-shape="square"] a:hover { border-color: var(--ink); }
.social[data-shape="soft"] a {
  border-radius: 999px; background: var(--surface); color: var(--ink);
}
.social[data-shape="soft"] a:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.social[data-shape="filled"] a {
  border-radius: 999px; background: var(--accent); color: var(--bg);
}
.social[data-shape="filled"] a:hover { background: var(--ink); color: var(--bg); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  cursor: pointer; transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { opacity: .86; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.on-image { border-color: currentColor; background: transparent; color: inherit; }
.btn.on-image.solid { background: #fff; color: #1a1a1a; border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Obrázky ---------- */
.figure { position: relative; overflow: hidden; border-radius: var(--img-radius); background: var(--surface); }
.figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { padding-block: 0; }
.hero-split {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; padding-block: clamp(64px, 9vw, 130px);
}
.hero-copy h1 { margin-bottom: 26px; white-space: pre-line; }
.hero-copy .lead { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-overlay { position: relative; display: grid; align-items: end; }
.hero-overlay .figure { position: absolute; inset: 0; border-radius: 0; }
.hero-overlay .hero-copy {
  position: relative; z-index: 2;
  padding-block: clamp(60px, 10vw, 120px);
}
.hero-overlay .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,var(--scrim)) 0%, rgba(0,0,0,calc(var(--scrim) * .45)) 55%, rgba(0,0,0,0) 100%);
}
.hero-overlay .lead { color: inherit; opacity: .88; }
.hero-overlay .eyebrow { color: inherit; opacity: .8; }
.hero[data-align="center"] .hero-copy { text-align: center; margin-inline: auto; }
.hero[data-align="center"] .lead { margin-inline: auto; }
.hero[data-align="center"] .hero-actions { justify-content: center; }

/* ---------- Intro pruh ---------- */
.intro { background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.intro h2 { font-size: var(--fs-h3); }

/* ---------- Sekce head ---------- */
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 14px; }

/* ---------- Kategorie ---------- */
.cat-grid { display: grid; gap: clamp(20px, 2.6vw, 34px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cat { display: block; position: relative; }
.cat .figure { aspect-ratio: var(--ratio, 4 / 5); }
.cat img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.cat:hover img { transform: scale(1.035); }
.cat-body { padding-top: 18px; }
.cat-name { font-family: var(--font-display); font-size: var(--fs-h4); }
.cat-desc { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; }
.cat-index { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.cat[data-caption="over"] .cat-body {
  position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.cat[data-caption="over"] .cat-desc,
.cat[data-caption="over"] .cat-index { color: rgba(255,255,255,.82); }

/* ---------- Feature ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Fotka drží levý sloupec přes obě řady, vpravo je nad textem nadpis
   s přepínačem — na počítači to vypadá stejně jako dřív. */
.feature-grid .feature-media { grid-column: 1; grid-row: 1 / span 2; }
.feature-grid .feature-head { grid-column: 2; grid-row: 1; align-self: end; }
.feature-grid .feature-body { grid-column: 2; grid-row: 2; align-self: start; }
.feature-grid.reverse .feature-media { grid-column: 2; }
.feature-grid.reverse .feature-head,
.feature-grid.reverse .feature-body { grid-column: 1; }
.feature-head h2 { margin-top: 10px; }
.feature-head .feat-tabs { margin-top: 18px; margin-bottom: 0; }
.feature-body .lead { margin-top: 0; }
.feature-list { list-style: none; padding: 0; margin: 30px 0 38px; }
.feature-list li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- O dílně ---------- */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text { white-space: pre-line; }
.stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 44px; }
.stat-value { font-family: var(--font-display); font-size: var(--fs-h3); }
.stat-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- Galerie ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap, 14px); }
.gal-item { position: relative; }
.gal-item .figure { aspect-ratio: 1 / 1; }
.gal-item[data-span="2"] { grid-column: span 2; }
.gal-item[data-span="2"] .figure { aspect-ratio: 2 / 1; height: 100%; }
.gal-grid { grid-auto-rows: 1fr; }
.gal-item { display: block; }
.gal-item .figure { height: 100%; }
.gal-cap {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 16px 18px; color: #fff;
  font-size: var(--fs-sm);
  background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0));
  opacity: 0; transition: opacity .35s ease;
}
.gal-item:hover .gal-cap { opacity: 1; }

/* ---------- Kontakt ---------- */
/* Kontakt se vytahuje nahoru za galerii, aby pod ním prosvítala fotka.
   Násobí se stejným měřítkem jako mezery — na mobilu by jinak zůstal
   plný posun a sekce by si vlezla na text galerie. */
#kontakt { margin-top: calc(-1 * var(--pull-up, 0px) * var(--pull-scale, 1)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact-rows { border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-row dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-h4); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 54px 16px; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.footer-note { color: var(--muted); font-size: var(--fs-sm); }
.footer-meta { color: var(--muted); font-size: 12px; letter-spacing: .06em; }

/* ---------- Reveal animace ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(20,18,16,.94); align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- Responsivita ---------- */
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  :root { --space: 84px; }
  .header-inner,
  .header-inner[data-align="left"] { grid-template-columns: 1fr auto; min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .header-side { display: none; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: center; gap: 6px; padding: 26px 0 34px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; z-index: 70; }

  /* Otevřené mobilní menu má vždy plné pozadí a tmavý text —
     v režimu „menu přes fotku“ bylo bílé písmo na bílém pruhu neviditelné. */
  body.nav-open .site-header,
  body[data-header="over"].nav-open .site-header {
    background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--line);
  }
  body[data-header="over"].nav-open .site-header .brand-name { color: var(--display-color); }
  body[data-header="over"].nav-open .site-header .brand-sub { color: var(--muted); }
  body[data-header="over"].nav-open .site-header .nav-toggle { color: var(--ink); }
  body[data-header="over"] .site-header .site-nav.open a,
  body[data-header="over"] .site-header.scrolled .site-nav.open a { color: var(--muted); }
  body[data-header="over"] .site-header .site-nav.open a:hover,
  body[data-header="over"] .site-header .site-nav.open a.active { color: var(--display-color); }
  .site-nav a { font-size: 15px; padding: 10px 0; }
  .hero-split, .feature-grid, .about-grid, .contact-grid, .intro-grid { grid-template-columns: 1fr; }
  /* Na výšku jde nadpis s přepínačem nad fotku a text až pod ni. */
  .feature-grid .feature-head,
  .feature-grid .feature-media,
  .feature-grid .feature-body,
  .feature-grid.reverse .feature-head,
  .feature-grid.reverse .feature-media,
  .feature-grid.reverse .feature-body { grid-column: 1; grid-row: auto; }
  .feature-grid { gap: 26px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  h1 { font-size: clamp(38px, 11vw, 62px); }
  h2 { font-size: clamp(30px, 8vw, 46px); }
  :root { --space-scale: .6; --pull-scale: .25; }
}
@media (max-width: 560px) {
  .cat-grid, .gal-grid { grid-template-columns: 1fr; }
  .gal-item[data-span="2"] { grid-column: span 1; }
  .wrap { width: calc(100% - 36px); }

  /* Kontakt: pevný sloupec popisků (130 px) plus nezalomitelný e-mail
     přetahoval stránku přes okraj displeje — proto vpravo svítil pruh.
     Popisek jde nad hodnotu a mezery se stáhnou, ať se to vejde. */
  /* Mezery mezi sekcemi se na mobilu stáhnou na necelou polovinu —
     hodnoty z editoru jsou laděné na velkou obrazovku a na telefonu
     z nich byly prázdné obrazovky mezi sekcemi. */
  :root { --space-scale: .42; --pull-scale: 0; }     /* na telefonu žádné přisunutí — není kam */

  .contact-row { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .contact-row dt { padding-top: 0; line-height: 1.4; }
  .contact-row dd { font-size: clamp(17px, 4.6vw, 21px); line-height: 1.35; }
}

/* E-mail je jedno dlouhé slovo — bez tohohle rozšíří stránku na každém
   displeji, na který se nevejde. */
.contact-row dd { overflow-wrap: anywhere; min-width: 0; }
.contact-grid > *, .feature-grid > *, .about-grid > * { min-width: 0; }

/* ---------- Logo ---------- */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { display: inline-flex; flex: none; }
.brand-mark svg { display: block; }

/* ---------- Péče o výrobek ---------- */
.care { margin: 34px 0 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.care-title { font-size: var(--fs-h4); margin-bottom: 18px; }
.care-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.care-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.care-num {
  font-family: var(--font-display); font-size: calc(var(--fs) * 1.05); line-height: 1.5;
  color: var(--accent); border-bottom: 1px solid var(--line); text-align: center;
}
.care-list strong { font-weight: 600; }
.care-list strong::after { content: ": "; font-weight: 400; }
.care-list li div { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.care-list strong { color: var(--ink); }
.care-note { margin-top: 20px; font-style: italic; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Kde nás potkáte ---------- */
.markets { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.markets-title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.markets-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.markets-list li {
  font-size: var(--fs-sm); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--bg);
}

/* ---------- Patička s fotkou ---------- */
.site-footer { position: relative; }
.site-footer.has-bg {
  padding-bottom: 14px;
  border-top: 0;                   /* linka přesně v místě přechodu tvořila viditelný zub */
  background: transparent;
}

/* Fotka na spodku stránky — leží pod obsahem a může sahat i za kontakt. */
#app { position: relative; }          /* bez overflow — jinak přestane fungovat přilepené menu */
#app > section, #app > footer { position: relative; z-index: 1; }
.page-bg {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: var(--fbg); pointer-events: auto;
}
.page-bg .figure { position: absolute; inset: 0; border-radius: 0; background: transparent; }
.footer-inner { position: relative; z-index: 2; }
.footer-sep { opacity: .45; margin: 0 6px; }
@media (max-width: 820px) {
  .page-bg { height: min(var(--fbg), 60vh); }
  .care-list li { grid-template-columns: 22px 1fr; gap: 10px; }
}

/* Patička na telefonu: na šířku displeje se z fotky vejde jen výřez, a ten
   výchozí trefil prázdný střed talíře. Přiblížíme na razítko a necháme
   vykouknout jen horní část talíře — jako náznak, ne celá fotka. */
@media (max-width: 560px) {
  .page-bg { height: min(var(--fbg), 42vh); }
  .page-bg .figure img {
    object-position: 44% 38% !important;
    transform: scale(1.55) !important;
  }
}

/* ---------- Modrá varianta (barva loga) ---------- */
:root { --brand: #3a82b8; --display-color: var(--ink); }
h1, h2, h3, .brand-name, .stat-value, .cat-name, .care-title, .contact-row dd { color: var(--display-color); }
.link-arrow:hover, .site-nav a:hover, .site-nav a.active { color: var(--display-color); }

/* ---------- Prolnutí fotky v patičce ---------- */
.page-bg .figure {
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.logo-img { width: auto; display: block; }

/* ============================================================
   STYLY WEBU — [data-style] na <body>
   ============================================================ */

/* sekundární barva textu (výchozí modrá z loga) */
:root { --secondary-text: var(--muted); }
.eyebrow, .stat-label, .cat-index, .markets-title, .contact-row dt, .care-num { color: var(--secondary-text); }

/* --- video v úvodu --- */
.hero-video { position: absolute; inset: 0; overflow: hidden; background: #000; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- menu přes fotku (styl Galerie a Studio) --- */
body[data-header="over"] .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; backdrop-filter: none; border-bottom: 0; color: #fff;
}
body[data-header="over"] .site-header .site-nav a,
body[data-header="over"] .site-header .brand-sub,
body[data-header="over"] .site-header .social a { color: rgba(255,255,255,.82); }
body[data-header="over"] .site-header .brand-name { color: #fff; }
body[data-header="over"] .site-header .site-nav a:hover,
body[data-header="over"] .site-header .site-nav a.active,
body[data-header="over"] .site-header .social a:hover { color: #fff; }
body[data-header="over"] .site-header.scrolled {
  background: var(--bg);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
body[data-header="over"] .site-header.scrolled .brand-name,
body[data-header="over"] .site-header.scrolled .site-nav a.active { color: var(--display-color); }
body[data-header="over"] .site-header.scrolled .site-nav a,
body[data-header="over"] .site-header.scrolled .social a,
body[data-header="over"] .site-header.scrolled .brand-sub { color: var(--muted); }
body[data-header="over"] .site-header.scrolled .nav-toggle { color: var(--ink); }
body[data-header="over"] .nav-toggle { color: #fff; }
body[data-header="over"] .hero-overlay { margin-top: 0; }

/* --- tmavý režim (Studio) --- */
body.theme-dark .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.theme-dark .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
body.theme-dark .figure { background: #1c1a18; }
body.theme-dark .markets-list li { background: transparent; }

/* ---------- GALERIE ---------- */
body[data-style="galerie"] .hero-overlay .hero-copy { max-width: 720px; }
body[data-style="galerie"] h1 { font-size: clamp(46px, 6.4vw, 96px); }
body[data-style="galerie"] .section-head { margin-bottom: 40px; }
body[data-style="galerie"] .cat-grid { gap: 4px; }
body[data-style="galerie"] .cat[data-caption="over"] .cat-body { padding: 26px; }
body[data-style="galerie"] .gal-grid { gap: 4px; }
body[data-style="galerie"] .gal-cap { opacity: 0; }
body[data-style="galerie"] .wrap { width: min(100% - 32px, var(--maxw)); }
body[data-style="galerie"] .eyebrow { letter-spacing: .3em; }

/* ---------- EDITORIAL ---------- */
body[data-style="editorial"] .header-inner { min-height: 92px; }
body[data-style="editorial"] h1 { font-size: clamp(46px, 6.6vw, 104px); line-height: 1; }
body[data-style="editorial"] h2 { line-height: 1.02; }
body[data-style="editorial"] .hero-split { grid-template-columns: 1.25fr 1fr; align-items: end; }
body[data-style="editorial"] .lead { font-size: calc(var(--fs) * 1.08); max-width: 46ch; }
body[data-style="editorial"] .section-head { border-top: 2px solid var(--ink); padding-top: 22px; }
body[data-style="editorial"] .cat-name { font-size: var(--fs-h3); }
body[data-style="editorial"] .cat-index { display: none; }
body[data-style="editorial"] .intro-grid { grid-template-columns: 1fr 1.4fr; }
body[data-style="editorial"] .feature-list li { border-top-width: 2px; }
body[data-style="editorial"] .gal-item:nth-child(3n) { margin-top: 46px; }

/* ---------- STUDIO ---------- */
body[data-style="studio"] h1 { font-size: clamp(42px, 5.6vw, 84px); letter-spacing: .01em; }
body[data-style="studio"] .site-nav a { font-weight: 300; }
body[data-style="studio"] .hero-overlay .hero-copy { max-width: 640px; }
body[data-style="studio"] .cat[data-caption="over"] .cat-body {
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}
body[data-style="studio"] .section-head h2 { font-weight: 400; }
body[data-style="studio"] .btn { letter-spacing: .2em; }

/* ---------- MINIMAL ---------- */
body[data-style="minimal"] .header-inner { min-height: 96px; }
body[data-style="minimal"] .site-nav { gap: 44px; }
body[data-style="minimal"] h1 { font-size: clamp(34px, 4.2vw, 62px); font-weight: 300; letter-spacing: .02em; }
body[data-style="minimal"] h2 { font-weight: 300; }
body[data-style="minimal"] .lead { max-width: 44ch; }
body[data-style="minimal"] .cat-body { padding-top: 14px; }
body[data-style="minimal"] .cat-name { font-size: calc(var(--fs) * 1.05); letter-spacing: .04em; }
body[data-style="minimal"] .cat-desc { display: none; }
body[data-style="minimal"] .section-head { margin-bottom: 70px; }
body[data-style="minimal"] .btn { border-radius: 0; padding: 16px 34px; letter-spacing: .2em; }

/* ---------- HLÍNA ---------- */
body[data-style="keramika"] .figure { box-shadow: 0 24px 48px -32px rgba(70,45,25,.55); }
body[data-style="keramika"] .btn { border-radius: 999px; padding: 16px 32px; }
body[data-style="keramika"] .markets-list li { border-radius: 999px; }
body[data-style="keramika"] .cat-body { padding-top: 20px; }
body[data-style="keramika"] .intro { border-radius: 40px; margin-inline: 16px; }
body[data-style="keramika"] .about { border-radius: 40px; margin-inline: 16px; }

/* text přes fotku/video vždy dědí barvu z hero bloku */
.hero-overlay h1, .hero-overlay h2, .hero-overlay h3,
.hero-overlay .lead, .hero-overlay .eyebrow { color: inherit; }
.hero-overlay .hero-copy { text-shadow: 0 1px 26px rgba(0,0,0,.28); }
.cat[data-caption="over"] .cat-name { color: #fff; }

/* ---------- Přepínač světlý / tmavý ---------- */
.mode-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.mode-toggle:hover { color: var(--ink); border-color: var(--ink); }
body[data-header="over"] .site-header:not(.scrolled) .mode-toggle {
  color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.42);
}
body[data-header="over"] .site-header:not(.scrolled) .mode-toggle:hover {
  color: #fff; border-color: #fff; background: rgba(255,255,255,.12);
}

/* tmavý režim — jemné doladění */
body.theme-dark .figure { background: color-mix(in srgb, var(--surface) 70%, #000); }
body.theme-dark .site-header { background: var(--bg); }
body.theme-dark .markets-list li { background: transparent; }
body.theme-dark .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.theme-dark .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
body.theme-dark .btn.on-image.solid { background: #fff; color: #16150f; border-color: #fff; }
body.theme-dark .lightbox { background: rgba(6,6,6,.96); }
body.theme-dark[data-style="keramika"] .figure { box-shadow: 0 24px 48px -32px rgba(0,0,0,.8); }

/* ---------- Více fotek na jednom místě (přepínání) ---------- */
.figure.has-slides .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease;
}
.figure.has-slides .slide.is-on { opacity: 1; position: relative; }
.figure.has-slides .slide:not(.is-on) { position: absolute; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.45); background: rgba(20,18,16,.28);
  color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease, background .2s ease;
  backdrop-filter: blur(6px);
}
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }
.figure.has-slides:hover .slide-nav { opacity: 1; }
.slide-nav:hover { background: rgba(20,18,16,.55); }
.slide-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; justify-content: center; gap: 7px;
}
.slide-dot {
  width: 7px; height: 7px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(255,255,255,.5); transition: background .2s ease, transform .2s ease;
}
.slide-dot.is-on { background: #fff; transform: scale(1.35); }
@media (max-width: 820px) { .slide-nav { opacity: 1; width: 34px; height: 34px; } }

/* otočená fotka vyplní rám (bez prázdných rohů) */
.figure img { transform-origin: center; }
.figure { isolation: isolate; }

/* ---------- Vybíráme — přepínání položek ---------- */
.feat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px;
}
.feat-tab {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font: 500 11.5px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.feat-tab:hover { color: var(--ink); border-color: var(--ink); }
.feat-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
#vybirame.feat-swap .feature-media,
#vybirame.feat-swap .feature-grid > .reveal { animation: featIn .45s ease both; }
@keyframes featIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .feat-tab { padding: 7px 12px; font-size: 10.5px; }
}

/* ---------- Kytičkový pás (ruční dekor z nádobí) ---------- */
.motif-band {
  position: relative; z-index: 2;      /* nad sekcemi — jinak by ho překryly a nešel chytit */
  display: flex; justify-content: center; align-items: center;
  gap: var(--gap, 46px); flex-wrap: wrap;
  padding: 6px 24px;
}
.motif-band .flower { display: inline-flex; line-height: 0; }
.motif-band svg { display: block; overflow: visible; }

/* výchozí (bez animace nebo bez JS) — kytičky jsou prostě vidět */
.motif-band .pet, .motif-band .mid { transform-origin: 12px 12px; }

/* animace: okvětní tečky naskakují po jedné, jako když se malují štětcem */
.motif-band.animated .pet,
.motif-band.animated .mid { opacity: 0; transform: scale(.2); }
.motif-band.animated.in .pet {
  animation: petalIn .42s cubic-bezier(.22,1.2,.36,1) forwards;
  animation-delay: calc(var(--i) * var(--speed, 90ms) + var(--p) * 55ms);
}
.motif-band.animated.in .mid {
  animation: petalIn .4s cubic-bezier(.22,1.4,.36,1) forwards;
  animation-delay: calc(var(--i) * var(--speed, 90ms) + 300ms);
}
@keyframes petalIn {
  0%   { opacity: 0; transform: scale(.2) rotate(-25deg); }
  70%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* celý pás ještě jemně „přijede“ */
.motif-band.reveal { transform: none; }
.motif-band.animated.in { animation: bandIn .6s ease both; }
@keyframes bandIn { from { letter-spacing: .4em; } to { letter-spacing: 0; } }

@media (max-width: 820px) {
  .motif-band { gap: calc(var(--gap, 46px) * .6); }
}
@media (prefers-reduced-motion: reduce) {
  .motif-band.animated .pet, .motif-band.animated .mid { opacity: 1; transform: none; animation: none; }
}

/* kytičky v patičce sedí těsně nad copyrightem */
.footer-inner .motif-band { padding: 0 0 14px; }

/* ---------- Stopa kytiček za myší (pruh pod úvodem) ---------- */
.intro { position: relative; overflow: hidden; }
.trail-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.intro .wrap { position: relative; z-index: 1; }
