/* Suško – veřejný web */
:root {
  --bg: #F3ECE1;
  --paper: #FAF6EF;
  --card: #FCFAF5;
  --ink: #2A2118;
  --ink-2: #43392D;
  --muted: #5E5244;
  --brown: #7B5737;
  --accent: #745132;
  --tan: #E6CFA8;
  --line: rgba(42, 33, 24, .35);
  --label-line: #C7B48F;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --brush: 'Caveat Brush', 'Caveat', 'Segoe Print', cursive;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1184px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }

.page { position: relative; overflow: clip; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
main, .top, .foot { position: relative; z-index: 1; }

/* ---------- nadpisy ---------- */
.display {
  overflow-wrap: break-word;
  font-family: var(--hand);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -.005em;
  font-size: clamp(46px, 3.2rem + 3vw, 94px);
  text-wrap: balance;
}
.display em { font-family: var(--brush); font-style: normal; color: var(--accent); }

/* ---------- tlačítka (ostré rohy) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 0;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn--brush { font: 400 20px/1 var(--brush); }
.btn--sm { min-height: 48px; padding: 0 18px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--brown { background: var(--brown); color: #fff; }
.btn--paper { background: var(--card); color: var(--ink); box-shadow: 0 6px 16px rgba(90, 60, 30, .18); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
@media (hover: hover) {
  .btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
  .btn--dark:hover, .btn--brown:hover { box-shadow: 3px 3px 0 var(--brown); }
  .btn--brown:hover { box-shadow: 3px 3px 0 var(--ink); }
}
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- kolečka v pozadí ---------- */
.slices { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.slice {
  position: absolute; left: var(--l); top: var(--t);
  width: var(--s);
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r));
  filter: blur(var(--b)) drop-shadow(0 calc(var(--s) * .07) calc(var(--s) * .07) rgba(90, 60, 30, .28));
  will-change: transform;
}
.slice img { width: 100%; height: auto; animation: float var(--dur) ease-in-out var(--del) infinite; }
.slice.is-off { display: none; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -18px; rotate: 6deg; }
}

/* ---------- hlavička ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 236, 225, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top__in { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo__img { width: auto; height: 42px; fill: var(--ink); }
.logo__text { font: 800 26px/1 var(--sans); letter-spacing: .1em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font: 400 24px/1 var(--brush); text-decoration: none; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brown);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav__tel { min-height: 44px; padding: 0 20px; }
.menu-btn { display: none; }

/* ---------- úvod ---------- */
.hero { padding: clamp(32px, 6vw, 56px) 0 clamp(24px, 4vw, 40px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.hero__title { font-size: clamp(54px, 2.6rem + 5vw, 100px); line-height: 1.12; letter-spacing: -.01em; max-width: 12ch; }
.hero__text { display: flex; flex-direction: column; gap: 32px; }
.hero__lead { max-width: 44ch; font-size: 19px; color: var(--ink-2); }

.hero__stage { position: relative; height: clamp(440px, 52vw, 720px); display: grid; place-items: center; perspective: 1400px; }
.bag {
  position: absolute; top: 2%; left: 50%; height: 94%; aspect-ratio: 672 / 1082; z-index: 2;
  translate: -50% 0;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) rotate(-12deg);
  transform-style: preserve-3d; transition: transform .6s var(--ease);
}
.bag__sway { position: relative; width: 100%; height: 100%; animation: sway 7s ease-in-out infinite; transform-origin: 50% 85%; }
.bag__img { width: 100%; height: 100%; object-fit: contain; animation: bag-in 1.2s var(--ease) both; filter: drop-shadow(18px 30px 26px rgba(90, 60, 30, .3)) drop-shadow(3px 6px 5px rgba(90, 60, 30, .2)); }
.bag__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 62%);
  background-size: 260% 100%; background-repeat: no-repeat;
  -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat;
  animation: sheen 7s ease-in-out infinite; mix-blend-mode: soft-light;
}
.bag__floor {
  position: absolute; bottom: 2%; left: 50%; width: 58%; height: 38px; translate: -50% 0;
  border-radius: 50%; background: rgba(90, 60, 30, .32); filter: blur(16px);
  animation: floor 7s ease-in-out infinite; z-index: 1;
}
@keyframes sway {
  0%, 100% { transform: translateY(0) rotateY(-9deg) rotateX(4deg) rotate(1deg); }
  50% { transform: translateY(-16px) rotateY(-2deg) rotateX(1deg) rotate(-1.5deg); }
}
@keyframes floor { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.84); opacity: .65; } }
@keyframes sheen { 0% { background-position: 170% 0; } 55%, 100% { background-position: -70% 0; } }
@keyframes bag-in { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }

/* ---------- pruh ---------- */
.facts { background: var(--tan); position: relative; z-index: 2; }
.facts__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-top: 28px; padding-bottom: 28px; font: 400 20px/1.25 var(--brush); }
.facts__title { font: 400 28px/1.1 var(--brush); }

/* ---------- produkty ---------- */
.products { padding: clamp(72px, 9vw, 110px) 0 clamp(56px, 7vw, 80px); }
.products__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); background: transparent;
  font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s;
}
.chip.is-on { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.card { display: flex; flex-direction: column; gap: 12px; transition: opacity .35s, transform .35s var(--ease); }
.card[hidden] { display: none; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; background: var(--paper); border-bottom: 4px solid var(--brown);
  display: grid; place-items: center; overflow: hidden; perspective: 900px;
}
.card__media img {
  width: 86%; height: 90%; object-fit: contain;
  transform: rotateX(var(--cx, 0deg)) rotateY(var(--cy, 0deg)) translateZ(0);
  transition: transform .5s var(--ease); filter: drop-shadow(8px 14px 14px rgba(90, 60, 30, .22));
}
.card__media .card__ph { width: 46%; height: auto; opacity: .5; rotate: 20deg; filter: none; }
.card:hover .card__media img:not(.card__ph) { transform: rotateX(var(--cx, 0deg)) rotateY(var(--cy, 0deg)) translateY(-8px) scale(1.04); }
.card__row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 2px; }
.card__name { font: 400 clamp(26px, 1.4rem + .6vw, 32px)/1.1 var(--brush); }
.card__price { font: 400 24px/1.1 var(--brush); color: var(--accent); white-space: nowrap; }
.card__meta { font: 600 13px/1.4 var(--sans); color: var(--muted); letter-spacing: .02em; }
.card__desc { font: 400 21px/1.35 var(--hand); color: var(--ink-2); }
.card__btn { margin-top: auto; width: 100%; min-height: 52px; }
.l-short { display: none; }
.empty { font-size: 18px; }

/* ---------- jak objednat ---------- */
.order { background: var(--brown); color: #fff; position: relative; z-index: 2; }
.order__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.order .display { color: var(--ink); font-size: clamp(42px, 2.6rem + 3vw, 88px); }
.order .display em { color: #fff; }
.order__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.order__cta > * { max-width: 100%; }
.order__text { font: 400 24px/1.55 var(--brush); max-width: 26ch; }
.order__phone { font: 400 clamp(52px, 2.5rem + 3vw, 76px)/1 var(--brush); color: #fff; text-decoration: none; letter-spacing: -.01em; }
.order__phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.order__mail { font: 400 22px/1.3 var(--brush); color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; }
.step > div { min-width: 0; }
.step { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .5); }
.step:last-child { border-bottom: 1px solid rgba(255, 255, 255, .5); }
.step__n { font: 800 clamp(64px, 3rem + 3vw, 96px)/1 var(--sans); color: var(--ink); min-width: .7em; }
.step__title { font: 400 clamp(30px, 1.6rem + 1vw, 40px)/1.15 var(--brush); }
.step__text { font: 400 clamp(23px, 1.3rem + .4vw, 28px)/1.4 var(--hand); margin-top: 6px; }

/* ---------- o nás ---------- */
.about { padding: clamp(72px, 9vw, 110px) 0 clamp(56px, 7vw, 90px); }
.about__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px 72px; align-items: start; }
.about__text { display: flex; flex-direction: column; gap: 20px; font: 400 24px/1.6 var(--brush); color: var(--ink-2); }
.about__text .btns { margin-top: 4px; }
.gallery { display: grid; gap: 16px; margin-top: 48px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; }
.gallery__item { margin: 0; overflow: hidden; background: #E6DCCB; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery--1 .gallery__item { grid-column: 1 / -1; grid-row: span 2; }
.gallery--2 .gallery__item { grid-column: span 2; grid-row: span 2; }
.gallery--3 .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--3 .gallery__item:not(:first-child) { grid-column: span 2; }
.gallery--4 .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--4 .gallery__item:last-child { grid-column: span 2; }

/* ---------- kontakt ---------- */
.contact { padding: clamp(72px, 9vw, 110px) 0; }
.contact__title { font-size: clamp(46px, 2.8rem + 2vw, 72px); margin-bottom: 56px; }
.contact__in { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 64px; align-items: center; }
.label { background: var(--card); padding: 12px; rotate: -2deg; box-shadow: 0 30px 50px rgba(90, 60, 30, .18), 0 4px 10px rgba(90, 60, 30, .12); transition: rotate .6s var(--ease); }
.label:hover { rotate: -.5deg; }
.label__frame { border: 1px solid #B9A47E; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.label__brand { display: flex; align-items: center; gap: 12px; font: 800 26px/1 var(--sans); letter-spacing: .1em; }
.label__brand svg { fill: var(--ink); }
.label__brand img { height: 34px; width: auto; }
.label__tag { font-size: 15px; color: var(--muted); }
.label__rows { margin: 6px 0 0; }
.label__rows > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px dashed var(--label-line); align-items: baseline; }
.label__rows dt { font-size: 14px; color: var(--muted); }
.label__rows dd { margin: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.label__rows a { text-decoration: none; font-weight: 600; }
.label__rows a.strong { font-weight: 700; }
.label__rows a:hover { text-decoration: underline; }
.label__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.label__btns .btn { min-height: 52px; padding: 0 12px; }

.map { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.map__box { position: relative; aspect-ratio: 16 / 11; border: 1px solid var(--label-line); overflow: hidden; background: #E9DFCD; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { animation: pin 2.6s var(--ease) infinite; transform-box: fill-box; }
@keyframes pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.map__tag { position: absolute; left: 55%; top: 59%; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--sans); padding: 7px 10px; white-space: nowrap; }
.map__load { position: absolute; right: 16px; bottom: 16px; }
.map__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map__note { font-size: 14px; color: var(--muted); }

/* ---------- patička ---------- */
.foot { background: var(--ink); color: #D6CBB9; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 32px; padding-bottom: 32px; }
.foot__brand { color: var(--bg); font-weight: 800; letter-spacing: .1em; }
.foot a { color: inherit; }
.foot__credit { margin-left: auto; }

/* ---------- spodní lišta (mobil) ---------- */
.bar { display: none; }

/* ---------- animace při rolování ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in { transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .28em .16em .14em; margin: -.28em -.16em -.14em; }
/* po dokončení animace nic neořezávat (otazník, čárky nad velkými písmeny) */
.split-done .w { overflow: visible; }
.w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform .9s var(--ease); transition-delay: calc(var(--wi) * 70ms); }
.is-in .w > span { transform: none; }

/* ---------- responzivita ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 22px; }
  .nav a:not(.btn) { font-size: 21px; }
  .about__top { grid-template-columns: minmax(0, 1fr); }
  .contact__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .logo__img { height: 36px; }
  .logo__text { font-size: 22px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 48px; height: 48px; border: 2px solid var(--ink); background: transparent; cursor: pointer;
  }
  .menu-btn span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 120px;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav a:not(.btn) { font-size: 40px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__tel { margin-top: 24px; min-height: 56px; font-size: 26px; }
  .menu-open { overflow: hidden; }

  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bag { height: 90%; top: 3%; }
  .hero__title { max-width: none; }
  .hero__text { gap: 24px; }
  .btns .btn { flex: 1 1 150px; }
  .hero__stage { height: clamp(380px, 105vw, 560px); }

  .facts__in { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 24px; padding-bottom: 24px; font-size: 19px; }
  .facts__title { font-size: 26px; margin-bottom: 4px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card__name { font-size: 23px; }
  .card__price { font-size: 19px; }
  .card__meta { font-size: 12px; }
  .card__desc { font-size: 18px; }
  .card__btn { min-height: 46px; padding: 0 8px; font-size: 18px; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .order__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .order__text { font-size: 21px; }
  .order__mail { font-size: 20px; }
  .step { gap: 16px; padding: 20px 0; }

  .about__text { font-size: 21px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; margin-top: 32px; }
  .gallery .gallery__item { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 1 / 1; }
  .gallery .gallery__item:first-child,
  .gallery--2 .gallery__item:last-child,
  .gallery--4 .gallery__item:last-child { grid-column: 1 / -1 !important; aspect-ratio: 16 / 10; }

  .contact__title { margin-bottom: 32px; }
  .contact__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .l-long { display: none; }
  .l-short { display: inline; }
  .label { rotate: 1.5deg; margin: 0 6px; }
  .map__box { aspect-ratio: 4 / 3; }
  .map__nav { grid-template-columns: 1fr; }
  .map__load { right: 12px; bottom: 12px; }

  .foot__in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot__credit { margin-left: 0; }

  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--bg); border-top: 2px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; font: 400 22px/1 var(--brush); text-decoration: none; color: var(--ink); }
  .bar .bar__call { background: var(--brown); color: #fff; }

  .slice { width: calc(var(--s) * .5); }
  .slice--l { margin-left: -9%; }
  .slice--r { margin-left: 6%; }
  .slice--hero { width: calc(var(--s) * .7); margin: 0; }
  .slice--desk { display: none; }
}

@media (max-width: 420px) {
  .label__rows > div { grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
  .label__rows dd { font-size: 16px; }
  .label__btns { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .w > span { transform: none; }
}

@media print {
  .slices, .bar, .menu-btn, .map, .top { display: none !important; }
  .order { background: none; color: var(--ink); }
}

/* ---------- stránka ochrany údajů ---------- */
.legal { padding-top: 48px; padding-bottom: 80px; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.legal .display { font-size: clamp(44px, 6vw, 72px); }
.legal h2 { font: 400 30px/1.2 var(--brush); margin-top: 12px; }

/* ---------- střídání sáčků v úvodu ---------- */
.bag__sway { transform-style: preserve-3d; }
.bag__slide {
  position: absolute; inset: 0; display: block; color: inherit;
  opacity: 0; pointer-events: none;
  transform: translateX(26%) rotateY(-42deg) scale(.84);
  filter: blur(6px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
}
.bag__slide.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.bag__slide.is-leaving { opacity: 0; transform: translateX(-26%) rotateY(42deg) scale(.84); filter: blur(6px); }
.bag__slide:not(:first-child) .bag__img { animation: none; }
.bag__slide:focus-visible { outline-offset: -6px; }
.bag__caption {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 4; margin: 0;
  font: 400 26px/1 var(--brush); color: var(--accent); white-space: nowrap;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.bag__caption.is-swap { opacity: 0; transform: translateY(8px); }

/* ---------- odkazy na detail u karet ---------- */
a.card__media { color: inherit; text-decoration: none; cursor: pointer; }
.card__name a { color: inherit; text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- detail produktu ---------- */
.pd {
  width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 0; background: var(--card); color: var(--ink);
  box-shadow: 0 40px 80px rgba(42, 33, 24, .35); overflow: auto;
}
.pd::backdrop { background: rgba(42, 33, 24, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pd[open] { animation: pd-in .45s var(--ease); }
.pd[open]::backdrop { animation: fade .35s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pd__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pd__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 48px; height: 48px;
  display: grid; place-items: center; border: 2px solid var(--ink); background: var(--card); cursor: pointer;
}
.pd__close:hover { background: var(--ink); color: #fff; }
.pd__media { background: var(--paper); display: grid; place-items: center; padding: 32px; min-height: 420px; border-right: 4px solid var(--brown); }
.pd__media img { width: 100%; max-height: 62vh; object-fit: contain; filter: drop-shadow(14px 24px 22px rgba(90, 60, 30, .28)); animation: float 7s ease-in-out infinite; }
.pd__media .pd__ph { width: 50%; opacity: .5; filter: none; }
.pd__body { padding: 44px 40px 36px; display: flex; flex-direction: column; gap: 12px; }
.pd__cat { font: 600 13px/1.3 var(--sans); color: var(--muted); letter-spacing: .04em; }
.pd__name { font: 400 clamp(36px, 2rem + 1.4vw, 52px)/1.05 var(--brush); padding-right: 48px; }
.pd__price { font: 400 32px/1.1 var(--brush); color: var(--accent); }
.pd__meta { font: 600 14px/1.4 var(--sans); color: var(--muted); }
.pd__text { display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }
.pd__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.pd__btns .btn { flex: 1 1 180px; }
.dialog-open { overflow: hidden; }

@media (max-width: 860px) {
  .bag__caption { font-size: 22px; }
  .pd { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; }
  .pd[open] { animation-name: pd-up; }
  @keyframes pd-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .pd__in { grid-template-columns: 1fr; }
  .pd__media { position: relative; min-height: 0; height: 38dvh; padding: 0; overflow: hidden; border-right: 0; border-bottom: 4px solid var(--brown); }
  .pd__media img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); max-height: none; }
  .pd__media .pd__ph { width: 40%; height: auto; inset: auto; position: static; }
  .pd__body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .bag__slide { transform: none; filter: none; }
  .pd__media img { animation: none; }
}

/* zvýrazněné slovo + čárka/tečka zůstávají na jednom řádku */
.nw { white-space: nowrap; }
@media (max-width: 360px) {
  .hero__title { font-size: 46px; }
  .display { font-size: 40px; }
}

/* ---------- detail produktu: složení, skladování, cena ---------- */
.pd__body { gap: 14px; }
.pd__meta { font: 600 14px/1.4 var(--sans); color: var(--muted); margin-top: -6px; }
.pd__comp { font-size: 17px; padding: 12px 0; border-top: 1px dashed var(--label-line); border-bottom: 1px dashed var(--label-line); }
.pd__comp strong { font-weight: 800; }
.pd__text { margin-top: 0; }
.pd__store { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--bg); border-left: 3px solid var(--brown); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pd__store svg { flex: none; margin-top: 2px; color: var(--brown); }
.pd__buy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-top: 6px; }
.pd__price { font: 400 44px/1 var(--brush); color: var(--ink); }
.pd__note { font: italic 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 6px; }
.pd__stock { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--sans); padding: 8px 12px; }
.pd__stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pd__stock--ok { color: #3F6B2A; background: #E8F0DC; }
.pd__stock--wait { color: #8A5A12; background: #F6EBD6; }
.pd__stock--out { color: #A3341F; background: #F6E0DA; }
.pd__btns { padding-top: 8px; }
@media (max-width: 860px) {
  .pd__price { font-size: 38px; }
  .pd__comp { font-size: 16px; }
}
