/* ===== MIPA HABRY ===== */

.icon-sprite { display: none; }

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --cream: #fffaf5;
  --cream-2: #fff2e8;
  --peach: #ffe3d3;
  --sage: #e6efe4;
  --sky: #e3edf6;
  --brown: #3a2a20;
  --muted: #7d6a5d;
  --accent: #e2572f;
  --accent-dark: #b8401e;
  --white: #ffffff;
  --line: rgba(58, 42, 32, 0.1);
  --shadow: 0 18px 50px rgba(91, 63, 45, 0.12);

  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 1.5rem;
  --r-lg: 2.25rem;
  --max: 74rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 5rem; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open,
body.dialog-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* Zalamování: nadpisy do vyvážených řádků, u textu bez osamocených slov. */
p, li, figcaption { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 60;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid rgba(226, 87, 47, 0.35);
  outline-offset: 4px;
}

.pill {
  display: inline-block;
  background: var(--peach);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-soft { background: var(--white); color: var(--brown); border-color: var(--peach); }
.btn-soft:hover { border-color: var(--accent); }

/* ===== HEADER ===== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 245, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58, 42, 32, 0.06);
}
.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: calc(5rem + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}
.hdr-logo img { height: 2.6rem; width: auto; }
.hdr .nav { display: flex; align-items: center; gap: 2rem; font-weight: 700; }
.hdr .nav a:not(.btn) { font-size: 0.95rem; color: var(--muted); transition: color 0.15s; }
.hdr .nav a:not(.btn):hover,
.hdr .nav a:not(.btn).active { color: var(--accent); }
.hdr .btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--peach);
  color: var(--brown);
  cursor: pointer;
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }
.nav-backdrop {
  position: fixed;
  z-index: 35;
  inset: calc(5rem + env(safe-area-inset-top)) 0 0;
  width: 100%;
  border: 0;
  background: rgba(42,30,23,.42);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

/* ===== HERO ===== */

.hero { padding: 2rem 0 3rem; }
.hero-inner {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.72), transparent 24rem),
    var(--cream-2);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner::after {
  content: "";
  position: absolute;
  width: 26rem; height: 26rem;
  border-radius: 50%;
  background: var(--peach);
  right: -9rem; top: -11rem;
  opacity: 0.75;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.65rem, 5.2vw, 4.35rem); font-weight: 800; margin: 1rem 0 1.25rem; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 42ch; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-products {
  position: relative;
  z-index: 1;
  min-height: 34rem;
}

.hero-product {
  position: absolute;
  overflow: hidden;
  background: var(--peach);
  box-shadow: 0 24px 45px rgba(58, 42, 32, 0.18);
}
.hero-product-top { background: var(--sky); }
.hero-product-bottom { background: var(--sage); }
.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem 0.5rem 3.25rem;
  mix-blend-mode: multiply;
  filter: contrast(1.02);
  transition: transform 0.6s ease;
}
.hero-product:hover img { transform: scale(1.035); }
.hero-product figcaption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
}
.hero-product figcaption span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}
.hero-product-main {
  width: 55%;
  height: 30rem;
  left: 7%;
  top: 1rem;
  border-radius: 8rem 8rem 1.5rem 1.5rem;
}
.hero-product-top {
  width: 39%;
  height: 14.5rem;
  right: 0;
  top: 0;
  border-radius: 1.5rem 1.5rem 5rem 1.5rem;
}
.hero-product-bottom {
  width: 39%;
  height: 15.5rem;
  right: 0;
  bottom: 1rem;
  border-radius: 1.5rem 5rem 1.5rem 1.5rem;
}
.hero-seal {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transform: rotate(-7deg);
  box-shadow: 0 12px 28px rgba(184, 64, 30, 0.28);
}
.hero-seal strong { font-size: 2.15rem; line-height: 1; }
.hero-seal span { font-size: 0.72rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; }

/* ===== TRUST BAR ===== */

.trust { padding: 0 0 2rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid div { padding: 1.25rem 1.5rem; border-right: 1px solid var(--line); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong { display: block; font-size: 1rem; }
.trust-grid span { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.1rem; }

@supports (animation-timeline: view()) {
  .hero-products {
    animation: hero-reveal 0.7s ease both;
  }
  @keyframes hero-reveal {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: none; }
  }
}

/* ===== SECTIONS ===== */

.sec { padding: clamp(3.75rem, 7vw, 5.75rem) 0; }
.sec-tinted { background: var(--cream-2); }
.sec:nth-of-type(4) { background: linear-gradient(180deg, rgba(230, 239, 228, 0.55), transparent 32rem); }
.sec-head { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 0.85rem 0 0.75rem; text-wrap: balance; }
/* delší nadpis smí využít celou šířku, odstavec zůstává úzký kvůli čtivosti */
.sec-head p { color: var(--muted); max-width: 40rem; margin-inline: auto; }

/* ===== STEPS ===== */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--white); border-radius: var(--r); padding: 2rem; text-align: center; }
.step:nth-child(1) { background: var(--peach); }
.step:nth-child(2) { background: var(--sky); }
.step:nth-child(3) { background: var(--sage); }
.step .num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  display: grid; place-content: center;
  margin: 0 auto 1rem;
  font-weight: 800; font-size: 1.2rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== PRODUCTS ===== */

.prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: product; }
.prod {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(58, 42, 32, 0.07);
  box-shadow: 0 8px 24px rgba(91, 63, 45, 0.055);
  counter-increment: product;
  transition: transform 0.22s, box-shadow 0.22s;
}
.prod::before {
  content: counter(product, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(7px);
  display: grid;
  place-content: center;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
}
.prod::after {
  content: attr(data-kind);
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(58, 42, 32, 0.78);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prod-media {
  position: relative;
  height: 17rem;
  overflow: hidden;
  background: var(--cream-2);
}
.prod:nth-child(3n+2) .prod-media { background: var(--sky); }
.prod:nth-child(3n) .prod-media { background: var(--sage); }
.prod-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58, 42, 32, 0.13), transparent 45%);
  pointer-events: none;
}
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  mix-blend-mode: multiply;
  filter: contrast(1.015);
  transition: transform 0.55s ease, filter 0.3s;
}
.prod:hover .prod-media img { transform: scale(1.035); filter: contrast(1.03) saturate(1.04); }
.prod-body { padding: 1.5rem; flex: 1; }
.prod-body h2,
.prod-body h3 { font-size: 1.38rem; margin-bottom: 0.45rem; }
.prod:not([data-kind])::after { display: none; }
.prod-body .chem { font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; }
.prod-body p { color: var(--muted); font-size: 0.95rem; }
.prod-packs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.prod-packs span { background: var(--cream-2); border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.8rem; font-weight: 800; }
.prod-foot { padding: 0 1.5rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.prod-foot .btn { padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.detail-btn { color: var(--accent); }


.catalog-cta {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r);
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.catalog-cta strong { display: block; font-size: 1.08rem; }
.catalog-cta span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.catalog-cta .btn { flex-shrink: 0; }

/* ===== STORY ===== */

.story {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 14px 38px rgba(91, 63, 45, 0.07);
}
.story-photo { position: relative; }
.story-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  filter: saturate(0.82) contrast(1.02);
}
.story-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}
.story-photo figcaption span { color: var(--muted); font-weight: 700; }
.story p { color: var(--muted); margin-bottom: 1rem; }
.story p strong { color: var(--brown); }
.story-title { margin: 0.85rem 0 1rem; font-size: clamp(1.8rem, 3.5vw, 2.5rem); text-wrap: balance; }
.story-title-lg { margin: 1rem 0 1.25rem; font-size: clamp(2rem, 4vw, 3rem); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chips span { background: var(--cream-2); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 700; }
.chips b { color: var(--accent); }

/* ===== DOCS ===== */

.docs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.docs a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border-radius: 1rem;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.15s;
}
.docs a:hover { background: var(--peach); transform: translateY(-3px); }
.docs svg { width: 1rem; height: 1rem; color: var(--accent); }

/* ===== CONTACT ===== */

.contact {
  background: var(--brown);
  color: #f3e7dd;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}
.contact h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.contact p { color: #c8b3a4; margin-top: 0.6rem; }
.contact .col-head { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c8b3a4; margin-bottom: 0.9rem; }
.contact li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.contact .big { font-size: 1.4rem; font-weight: 800; color: #fff; display: block; margin-bottom: 0.3rem; }
.contact a:hover { color: #ffb094; }
.contact .btn { margin-top: 1.5rem; }

/* ===== SUBPAGES ===== */

.page-hero { padding: 2rem 0 0; }
.page-hero-inner {
  min-height: 19rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.8), transparent 20rem),
    var(--cream-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.page-hero-inner::after {
  content: "";
  position: absolute;
  width: 17rem; height: 17rem;
  border-radius: 50%;
  right: -5rem; top: -8rem;
  background: var(--peach);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; text-wrap: balance; }
.page-hero p { color: var(--muted); font-size: 1.05rem; margin-top: .75rem; }
.page-hero .pill, .page-hero h1, .page-hero p { position: relative; z-index: 1; align-self: flex-start; }

/* Catalog search and filters */
.catalog-tools {
  position: sticky;
  top: calc(5.75rem + env(safe-area-inset-top));
  z-index: 15;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,250,245,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(91,63,45,.08);
}
.search-row { display: flex; gap: .75rem; align-items: center; }
.search-field { flex: 1; position: relative; }
.search-field svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.1rem; height: 1.1rem; color: var(--muted); pointer-events: none;
}
.search-field input {
  width: 100%;
  height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brown);
  font: 700 1rem var(--sans);
  padding: 0 1.1rem 0 3rem;
  -webkit-appearance: none;
  appearance: none;
}
.search-field input::placeholder { color: #6f6058; }
.search-clear {
  display: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 800 .85rem var(--sans);
  cursor: pointer;
  padding: .75rem;
}
.search-clear.visible { display: inline-block; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  min-height: 2.75rem;
  padding: .7rem 1rem;
  font: 800 .8rem var(--sans);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { border-color: var(--brown); background: var(--brown); color: var(--white); }
.catalog-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.catalog-meta strong { color: var(--brown); }
.no-results {
  grid-column: 1 / -1;
  padding: 3.5rem 1.5rem;
  border-radius: var(--r);
  background: var(--white);
  text-align: center;
}
.no-results h2 { font-size: 1.5rem; }
.no-results p { color: var(--muted); margin-top: .5rem; }
[hidden] { display: none !important; }

/* Product detail dialog */
.product-dialog {
  width: min(70rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(90vh, 56rem);
  max-height: min(90dvh, 56rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--brown);
  box-shadow: 0 30px 90px rgba(58,42,32,.32);
  overflow: auto;
}
.product-dialog::backdrop {
  background: rgba(42,30,23,.68);
  backdrop-filter: blur(5px);
}
.product-dialog-shell { position: relative; }
.dialog-close {
  position: sticky;
  z-index: 5;
  top: 1rem;
  width: 2.75rem; height: 2.75rem;
  margin: 1rem 1rem -3.75rem auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--brown);
  box-shadow: 0 6px 18px rgba(58,42,32,.13);
  cursor: pointer;
  display: grid;
  place-content: center;
}
.dialog-close svg { width: 1.1rem; height: 1.1rem; }
.detail-layout { display: grid; grid-template-columns: minmax(20rem,.9fr) minmax(0,1.1fr); min-height: 38rem; }
.detail-visual {
  min-height: 38rem;
  padding: 3rem;
  background: var(--cream-2);
  display: grid;
  place-content: center;
  overflow: hidden;
}
.detail-photo {
  width: 100%;
  height: 31rem;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.02);
}
.detail-copy { padding: clamp(2rem,5vw,4rem); align-self: center; }
.detail-copy h2 { font-size: clamp(2rem,4vw,3.25rem); margin: .85rem 0 .35rem; }
.detail-chemical { color: var(--accent); font-weight: 800; }
.detail-section { margin-top: 1.6rem; }
.detail-section h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .65rem; }
.detail-section ul { padding-left: 1.15rem; }
.detail-section li { color: var(--muted); margin-bottom: .35rem; }
.detail-known-note { color: var(--muted); font-size: .8rem; margin-top: .55rem; padding-left: 1.15rem; border-left: 2px solid var(--line); }
.detail-packs { display: flex; flex-wrap: wrap; gap: .45rem; }
.detail-packs span,
.detail-pack-btn { padding: .35rem .8rem; border-radius: 999px; background: var(--white); font-size: .85rem; font-weight: 800; }
.detail-pack-btn {
  border: 1px solid var(--line);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.detail-pack-btn:hover { border-color: var(--accent); color: var(--accent); }
.detail-pack-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* EAN kódy pod balením, kvůli vyhledávání podle čárového kódu */
.detail-eans {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .1rem .7rem;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .78rem;
}
.detail-eans dt { font-weight: 800; }
.detail-eans dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Galerie fotek podle velikosti balení */
.detail-gallery { display: grid; justify-items: center; gap: .75rem; width: 100%; }
.detail-gallery-caption { color: var(--muted); font-size: .82rem; font-weight: 700; }
.detail-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.detail-thumb {
  display: grid;
  justify-items: center;
  gap: .15rem;
  width: 4.5rem;
  padding: .4rem .3rem .3rem;
  border: 2px solid transparent;
  border-radius: .9rem;
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.detail-thumb img { height: 2.6rem; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.detail-thumb:hover { border-color: var(--peach); }
.detail-thumb.active { border-color: var(--accent); color: var(--accent); }
.detail-notice { margin-top: 1.6rem; padding: 1rem 1.1rem; border-left: 4px solid var(--accent); border-radius: .6rem; background: var(--peach); }
.detail-notice strong { font-size: .85rem; }
.detail-notice p { color: var(--muted); font-size: .86rem; margin-top: .2rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }

/* Safety sheets */
.docs-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.doc-card {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--white);
  transition: transform .18s, box-shadow .18s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(91,63,45,.1); }
.doc-icon { width: 3rem; height: 3rem; border-radius: 50%; background: var(--peach); color: var(--accent); display: grid; place-content: center; }
.doc-icon svg { width: 1.2rem; height: 1.2rem; }
.doc-card h3 { font-size: 1.05rem; }
.doc-card p { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.doc-card .download { color: var(--accent); font-weight: 800; font-size: .82rem; }
.doc-langs { display: grid; gap: .35rem; justify-items: end; text-align: right; }
.doc-langs a:hover { text-decoration: underline; }
.doc-langs .lang-en { color: var(--muted); }

/* About */
.about-lead { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.about-lead .story-photo { position: sticky; top: 7.5rem; }
.about-copy p { color: var(--muted); margin-bottom: 1.1rem; }
.about-copy p a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.about-copy-narrow { max-width: 52rem; margin: 0 auto; }
.about-copy .intro { color: var(--brown); font-size: 1.15rem; font-weight: 700; }
.timeline { max-width: 52rem; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.4rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--peach); }
.timeline-item { display: grid; grid-template-columns: 4rem 1fr; gap: 3rem; position: relative; padding: 0 0 2rem; }
.timeline-year { color: var(--accent); font-size: 1.1rem; font-weight: 800; text-align: right; }
.timeline-text { position: relative; padding: 1.25rem 1.4rem; border-radius: 1.15rem; background: var(--white); }
.timeline-text::before { content: ""; position: absolute; left: -2.1rem; top: 1.5rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .35rem var(--cream); }
.timeline-text h3 { font-size: 1.05rem; }
.timeline-text p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }

/* Contact */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.info-card { padding: 2rem; border-radius: var(--r); background: var(--white); box-shadow: 0 10px 30px rgba(91,63,45,.07); }
.info-card h2 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.info-row { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.info-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--cream-2); color: var(--accent); display: grid; place-content: center; }
.info-icon svg { width: 1.1rem; height: 1.1rem; }
.info-row strong { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .15rem; }
.info-row a { color: var(--accent); font-weight: 800; }
.map { margin-top: 1.5rem; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 7; background: var(--sage); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-static {
  min-height: 19rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.map-static h2 { font-size: clamp(1.6rem,3vw,2.3rem); }
.map-static p { color: var(--muted); margin-top: .25rem; }
.map-static small { color: var(--muted); }
.map-pin {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--white);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.map-pin svg { width: 1.8rem; height: 1.8rem; }

/* Legal */
.legal { max-width: 48rem; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 .75rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { color: var(--muted); margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--accent); font-weight: 700; }

/* Souvislé texty se sázejí do bloku až od šířky, kde je řádek dost dlouhý;
   dělení slov drží mezislovní mezery v klidu. */
@media (min-width: 46.0625rem) {
  .about-copy p,
  .story p,
  .legal p,
  .legal li {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }
  .about-copy .intro { text-align: left; hyphens: manual; }
}

/* ===== FOOTER ===== */

.ftr {
  padding: 4rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--brown);
  color: #d9c8bc;
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 3rem; }
.footer-logo { width: 8rem; filter: saturate(.9); margin-bottom: 1rem; }
.footer-grid p { max-width: 34ch; color: #c8b3a4; }
.footer-grid h3 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-grid .footer-tm { margin-top: .9rem; max-width: 38ch; font-size: .78rem; line-height: 1.6; color: #a99384; }
.footer-grid .footer-tm a { display: inline; margin: 0; text-decoration: underline; text-underline-offset: .15em; }
.footer-grid .footer-tm sup { font-size: .7em; }
.footer-grid a, .footer-grid span { display: block; margin-bottom: .5rem; }
.ftr a:hover { color: #ffb094; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; color: #a99384; }

.contact a,
.info-row a,
.footer-grid a,
.legal a,
.legal code { overflow-wrap: anywhere; word-break: break-word; }

/* ===== RESPONSIVE ===== */

@media (max-width: 62rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-products { min-height: 30rem; max-width: 36rem; width: 100%; margin: 0 auto; }
  .prods { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 2rem; }
  .contact { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .trust-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-lead { grid-template-columns: 1fr; }
  .about-lead .story-photo { position: relative; top: auto; }
}

@media (max-width: 56rem) {
  .detail-layout { grid-template-columns: 1fr; min-height: 0; }
  .detail-visual { min-height: 22rem; padding: 1.5rem; }
  .detail-photo { height: 20rem; }
}

@media (max-width: 46rem) {
  .nav-toggle { display: grid; place-content: center; }
  .hdr .nav {
    position: fixed;
    top: calc(5rem + env(safe-area-inset-top)); left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 5rem - env(safe-area-inset-top));
    max-height: calc(100dvh - 5rem - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    background: rgba(255,250,245,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(58,42,32,.12);
    transform: translateY(-125%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .hdr .nav.open { transform: none; opacity: 1; visibility: visible; }
  .hdr .nav a { padding: .85rem 0; }
  .hdr .nav .btn { justify-content: center; margin-top: .5rem; }
  .sec { padding: 3rem 0; }
  .prods { grid-template-columns: 1fr; }
  .prod-media { height: 21rem; }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .catalog-cta { align-items: flex-start; flex-direction: column; }
  .hero-products { min-height: 25rem; }
  .hero-product-main { height: 23rem; width: 58%; left: 4%; }
  .hero-product-top { height: 10.5rem; width: 40%; }
  .hero-product-bottom { height: 11.5rem; width: 40%; }
  .hero-product figcaption { font-size: 0.72rem; padding: 0.5rem 0.65rem; left: 0.55rem; right: 0.55rem; bottom: 0.55rem; }
  .hero-seal { width: 5.5rem; height: 5.5rem; }
  .hero-seal strong { font-size: 1.7rem; }
  .hero-seal span { font-size: 0.68rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid div:last-child { border-bottom: 0; }
  .docs { grid-template-columns: 1fr; }
  .catalog-tools { position: static; }
  .search-row { align-items: stretch; }
  .search-clear { min-width: 2.75rem; min-height: 2.75rem; padding: .65rem; }
  .catalog-meta { flex-direction: column; gap: .25rem; }
  .docs-list { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 2.75rem 1fr; }
  .doc-card .download { grid-column: 2; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 5; }
  .timeline::before { left: .4rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .5rem; padding-left: 2rem; }
  .timeline-year { text-align: left; }
  .timeline-text::before { left: -2rem; top: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .product-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .product-dialog-shell {
    min-height: 100%;
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }
  .dialog-close { top: calc(1rem + env(safe-area-inset-top)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { min-height: 22rem; padding: 1.5rem; }
  .detail-photo { height: 20rem; }
  .detail-copy { padding: 2rem 1.5rem max(2.5rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 46rem) and (orientation: landscape) and (max-height: 32rem) {
  .page-hero-inner { min-height: 12rem; }
  .hero-products { min-height: 18rem; }
  .hero-product-main { height: 17rem; }
  .hero-product-top { height: 8rem; }
  .hero-product-bottom { height: 8.5rem; }
  .detail-visual { min-height: 14rem; }
  .detail-photo { height: 13rem; }
}

@media (max-width: 24rem) {
  .wrap {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .hero-inner { padding: 2rem 1.25rem; }
  .hero h1 { font-size: 2.35rem; }
  .page-hero-inner { padding: 2rem 1.25rem; }
  .info-card { padding: 1.25rem; }
  .catalog-tools { padding: .75rem; }
}

@media (hover: none) {
  .btn:hover,
  .prod:hover,
  .docs a:hover,
  .doc-card:hover { transform: none; }
  .hero-product:hover img,
  .prod:hover .prod-media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
