/* =========================================================
   Školní tržnice – styly
   ========================================================= */

/* ---------- Písma (self-hosted, SIL OFL) ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(../fonts/nunito-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(../fonts/nunito-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Proměnné ---------- */
:root {
  --zelena: #0F371F;
  --zelena-2: #1B4A2B;
  --list: #326D29;
  --salvej: #A9C28F;
  --salvej-2: #DAEACB;
  --salvej-3: #EBF5E4;
  --cervena: #E91222;
  --papir: #FBFAF5;
  --text: #2B3A30;
  --text-2: #56675B;
  --linka: rgba(15, 55, 31, .13);

  --f-nadpis: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --f-rukopis: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;

  --kontejner: 1240px;
  --okraj: clamp(16px, 4vw, 40px);
  --hlavicka-v: 112px;
  --hlavicka-m: 68px;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pruzina: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hlavicka-m) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--papir);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* ořez vodorovného přesahu (např. prvků přijíždějících zprava) přímo na obsahu –
   samotné body nestačí, mobilní prohlížeče by stránku oddálily */
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
::selection { background: var(--salvej-2); color: var(--zelena); }
:focus-visible { outline: 2.5px solid var(--list); outline-offset: 4px; border-radius: 6px; }

.skryte { position: absolute; width: 0; height: 0; overflow: hidden; }
.kontejner { width: min(var(--kontejner), 100% - 2 * var(--okraj)); margin-inline: auto; }
.sekce { padding-block: clamp(84px, 11vw, 150px); position: relative; }

/* ---------- Společné prvky ---------- */
.stitek-sekce {
  display: flex; align-items: center; gap: 14px;
  font: 700 .78rem/1 var(--f-nadpis);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--list);
  margin-bottom: 22px;
}
.stitek-sekce::before {
  content: ''; width: 30px; height: 2.5px; border-radius: 2px;
  background: var(--cervena);
}
.stitek-sekce--svetly { color: var(--salvej); }

.nadpis-2 {
  font: 800 clamp(1.6rem, 1.5vw + 1.05rem, 2.45rem)/1.2 var(--f-nadpis);
  letter-spacing: -.012em;
  color: var(--zelena);
  text-wrap: balance;
}
.linka {
  display: block; width: 64px; height: 3px; border-radius: 3px;
  background: var(--list);
  margin: 26px 0 24px;
}
.odstavec { font-size: 1.1rem; max-width: 34em; }
.odstavec + .odstavec { margin-top: 1em; }

/* Ručně psané slogany */
.rukopis {
  position: relative;
  display: inline-block;
  font: 600 clamp(1.85rem, 1.4vw + 1.2rem, 2.6rem)/1.02 var(--f-rukopis);
  color: var(--zelena);
  transform: rotate(-4deg);
  padding-bottom: 16px;
}
.rukopis__text { display: inline-block; }
.srdicko {
  display: inline-block;
  width: .95em; height: .95em;
  margin-left: .12em;
  vertical-align: -.08em;
  fill: none; stroke: var(--cervena);
  stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.srdicko--zelene { stroke: var(--zelena); }
.tah {
  position: absolute; left: 0; bottom: 0;
  width: 86%; height: 14px;
  overflow: visible;
}
.tah path {
  fill: none; stroke: var(--cervena); stroke-width: 3.4; stroke-linecap: round;
  stroke-dasharray: 1 1.2; stroke-dashoffset: 0;
}
.rukopis--stetec {
  padding: 30px 46px 40px 40px;
  background: url(../img/stetec.svg) center / 100% 100% no-repeat;
}
.rukopis--stetec .tah { left: 40px; bottom: 22px; width: calc(100% - 110px); }

/* Nálepky na fotkách */
.stitek {
  position: absolute;
  font: 600 clamp(1.3rem, .9vw + 1rem, 1.75rem)/1.02 var(--f-rukopis);
  color: var(--zelena);
  text-align: center;
  padding: 20px 34px 24px;
  background: url(../img/stetec.svg) center / 100% 100% no-repeat;
  transform: rotate(var(--rot, -6deg));
  filter: drop-shadow(0 8px 18px rgba(15, 55, 31, .14));
  z-index: 2;
}

/* Štětcový nadpis */
.nadpis-stetec {
  display: inline-block;
  position: relative;
  font: 900 clamp(2rem, 2vw + 1.2rem, 3rem)/1.02 var(--f-nadpis);
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--zelena);
  padding: 34px 44px 50px 34px;
  margin-left: -34px;
  background: url(../img/stetec.svg) center / 100% 100% no-repeat;
  transform: rotate(-4deg);
}
.nadpis-stetec span { display: block; max-width: 9.5em; }
.nadpis-stetec::after {
  content: ''; position: absolute; left: 36px; bottom: 28px;
  width: 110px; height: 3.5px; border-radius: 3px;
  background: var(--list);
  transform: rotate(-3deg);
}

/* =========================================================
   HLAVIČKA A MENU
   ========================================================= */
.hlavicka {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hlavicka-v);
  transition: height .5s var(--ease);
}
.hlavicka::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: rgba(251, 250, 245, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 var(--linka), 0 14px 34px -22px rgba(15, 55, 31, .45);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.hlavicka.is-compact { height: var(--hlavicka-m); }
.hlavicka.is-compact::before { opacity: 1; }

.hlavicka__in {
  width: min(var(--kontejner), 100% - 2 * var(--okraj));
  height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hlavicka__logo {
  position: relative; z-index: 1;
  display: block; width: 192px; flex: none;
  transition: width .5s var(--ease);
  border-radius: 8px;
}
.hlavicka.is-compact .hlavicka__logo { width: 102px; }
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo-jablko { transform-box: fill-box; transform-origin: 50% 62%; }
.buch .logo-jablko { animation: buch 1s var(--ease) both; }
@keyframes buch {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(.96); }
  42% { transform: scale(1.14); }
  64% { transform: scale(1); }
}

.menu__seznam {
  list-style: none; padding: 0;
  display: flex; gap: clamp(6px, 2.2vw, 30px);
}
.menu a {
  position: relative;
  display: inline-block;
  padding: 12px 6px;
  font: 700 .86rem/1 var(--f-nadpis);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--zelena);
  text-decoration: none;
  transition: transform .35s var(--pruzina), color .3s;
}
.menu a:hover { transform: translateY(-2px); }
.menu a:active { transform: translateY(0) scale(.96); }
.menu__tah {
  position: absolute; left: -2px; right: -2px; bottom: 2px;
  width: calc(100% + 4px); height: 9px;
  overflow: visible; pointer-events: none;
}
.menu__tah path {
  fill: none; stroke: var(--cervena); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1 1.2; stroke-dashoffset: 1;
  transition: stroke-dashoffset .5s var(--ease);
}
.menu a:hover .menu__tah path,
.menu a:focus-visible .menu__tah path,
.menu a.is-active .menu__tah path { stroke-dashoffset: 0; }
.menu a.is-active { color: var(--zelena-2); }

/* lísteček, který vyskočí po kliknutí */
.menu__listek {
  position: absolute; left: 50%; top: -6px;
  width: 22px; height: 22px; margin-left: -11px;
  pointer-events: none;
  animation: listek .9s var(--ease) forwards;
}
@keyframes listek {
  0% { transform: translateY(8px) scale(.2) rotate(-40deg); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-26px) scale(1) rotate(18deg); opacity: 0; }
}
.menu__zelenina { display: none; }

/* postup čtení */
.postup { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.postup span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cervena), #FF6A4D);
  border-radius: 0 3px 3px 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* hamburger */
.menu-tlacitko {
  display: none;
  position: relative; z-index: 1;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--salvej-3);
  cursor: pointer;
  padding: 0;
}
.menu-tlacitko span {
  position: absolute; left: 14px; width: 20px; height: 2.5px; border-radius: 2px;
  background: var(--zelena);
  transition: transform .45s var(--ease), opacity .3s, width .3s;
}
.menu-tlacitko span:nth-child(1) { top: 16px; }
.menu-tlacitko span:nth-child(2) { top: 23px; width: 14px; }
.menu-tlacitko span:nth-child(3) { top: 30px; }
.menu-otevrene .menu-tlacitko span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-otevrene .menu-tlacitko span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.menu-otevrene .menu-tlacitko span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   ÚVOD
   ========================================================= */
.uvod {
  position: relative;
  min-height: max(680px, 64vw / 1.45);
  display: flex; align-items: center;
  padding-top: calc(var(--hlavicka-v) - 10px);
  padding-bottom: 40px;
  isolation: isolate;
}
.uvod__foto {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 64vw;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%), linear-gradient(to top, transparent 0%, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 26%), linear-gradient(to top, transparent 0%, #000 12%);
  mask-composite: intersect;
}
.uvod__foto img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 50%;
  animation: priblizeni 2.6s var(--ease) both;
}
.uvod__foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(251, 250, 245, .9) 0%, rgba(251, 250, 245, .35) 9%, rgba(251, 250, 245, 0) 17%);
  pointer-events: none;
}
@keyframes priblizeni { from { transform: scale(1.08); } to { transform: scale(1); } }

.uvod__stitek { right: 5%; bottom: 9%; --rot: -6deg; animation: pop .8s var(--pruzina) 1.5s both; }

.uvod__text { max-width: 540px; }
.uvod__podtitul {
  font: 500 1.12rem/1.35 var(--f-nadpis);
  color: var(--zelena);
  margin-bottom: 22px;
}
.uvod__podtitul strong { display: block; font-weight: 800; }
.uvod__nadpis {
  font: 900 clamp(2.3rem, 3vw + .9rem, 3.7rem)/1.02 var(--f-nadpis);
  text-transform: uppercase;
  letter-spacing: -.015em;
  color: var(--zelena);
  text-wrap: balance;
}
.hodnoty {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 20px 44px;
  margin-bottom: 34px;
}
.hodnoty li {
  font: 700 .76rem/1.3 var(--f-nadpis);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--zelena);
  padding-top: 13px;
  position: relative;
}
.hodnoty li::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 34px; height: 2px; background: var(--list);
}


/* animace při načtení */
.anim { animation: nahoru .9s var(--ease) var(--d, 0s) both; }
@keyframes nahoru { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop {
  from { opacity: 0; transform: rotate(var(--rot, -6deg)) scale(.55); }
  to { opacity: 1; transform: rotate(var(--rot, -6deg)) scale(1); }
}
.uvod__rukopis { animation-name: nahoru-rukopis; }
@keyframes nahoru-rukopis { from { opacity: 0; transform: rotate(-4deg) translateY(26px); } to { opacity: 1; transform: rotate(-4deg); } }
.uvod__rukopis .rukopis__text { animation: psani 1.4s var(--ease-io) calc(var(--d) + .15s) both; }
.uvod__rukopis .tah path { animation: kresleni .9s var(--ease) calc(var(--d) + 1.2s) both; }
.uvod__rukopis .srdicko { animation: srdce-pop .7s var(--pruzina) calc(var(--d) + 1.45s) both; }
@keyframes psani { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -5% -30% 0); } }
@keyframes kresleni { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes srdce-pop { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================
   ODHALOVÁNÍ PŘI ROLOVÁNÍ (jen s JS)
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="zprava"] { transform: translateX(46px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .rukopis[data-reveal] { transform: rotate(-4deg) translateY(30px); }
.js .rukopis[data-reveal].is-visible { transform: rotate(-4deg); }

/* ručně psaný text se „napíše“, podtržení se dokreslí, srdíčko vyskočí */
.js .rukopis .rukopis__text { clip-path: inset(-30% 100% -30% 0); transition: clip-path 1.4s var(--ease-io) calc(var(--d, 0s) + .2s); }
.js .rukopis .tah path { stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) calc(var(--d, 0s) + 1.3s); }
.js .rukopis .srdicko { opacity: 0; transform: scale(0) rotate(-30deg); transition: transform .7s var(--pruzina) calc(var(--d, 0s) + 1.5s), opacity .3s calc(var(--d, 0s) + 1.5s); }
.js .is-visible .rukopis__text, .js .rukopis.is-visible .rukopis__text { clip-path: inset(-30% -5% -30% 0); }
.js .is-visible .tah path, .js .rukopis.is-visible .tah path { stroke-dashoffset: 0; }
.js .is-visible .srdicko, .js .rukopis.is-visible .srdicko { opacity: 1; transform: none; }
/* úvod řeší vlastní animace při načtení */
.js .uvod .rukopis__text, .js .uvod .tah path, .js .uvod .srdicko { transition: none; }

/* =========================================================
   O NÁS
   ========================================================= */
.o-nas { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(56px, 6vw, 80px); }
.o-nas__uvod {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.o-nas__foto {
  justify-self: end;
  width: min(100%, 500px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0 28px 28px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%), linear-gradient(to top, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 22%), linear-gradient(to top, transparent 0%, #000 16%);
  mask-composite: intersect;
}
.o-nas__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 1.4s var(--ease); }
.o-nas__foto:hover img { transform: scale(1.04); }

.o-nas__dalsi {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  margin-top: clamp(56px, 8vw, 110px);
  align-items: center;
}
.o-nas__rukopis { justify-self: start; margin-left: -12px; }
.karty { display: contents; }
.karta p { color: var(--text); }
.karta p + p { margin-top: .9em; }
.karta__nadpis {
  font: 700 clamp(1.2rem, .5vw + 1.05rem, 1.45rem)/1.25 var(--f-nadpis);
  color: var(--zelena);
  margin-bottom: 14px;
}
.karta__ikona { display: inline-block; width: 1.5em; height: 1.5em; margin-left: .35em; vertical-align: -.3em; }
.karta:not(.karta--bio) {
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 2px solid rgba(15, 55, 31, .5);
}
.karta--bio {
  grid-column: 1 / -1;
  margin-top: clamp(44px, 6vw, 70px);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 4vw, 52px);
  background: var(--salvej-3);
  border-radius: 28px;
}
.karta--bio p { max-width: 46em; }
.karta__kruh {
  flex: none;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--salvej-2);
  transition: transform .6s var(--pruzina);
}
.karta__kruh svg { width: 50px; height: 50px; transform-origin: 50% 90%; }
.karta--bio:hover .karta__kruh { transform: rotate(-8deg) scale(1.06); }
.karta--bio.is-visible .karta__kruh svg { animation: klicek 1.4s var(--ease) .5s both; }
@keyframes klicek {
  0% { transform: scale(.2) translateY(16px); opacity: 0; }
  55% { transform: scale(1.08); opacity: 1; }
  75% { transform: rotate(-6deg); }
  100% { transform: none; }
}

/* =========================================================
   PRODUKTY
   ========================================================= */
.produkty {
  background:
    radial-gradient(900px 500px at 100% 620px, rgba(218, 234, 203, .45), transparent 70%),
    linear-gradient(180deg, var(--papir) 0%, #F4F8EF 30%, #F4F8EF 75%, var(--papir) 100%);
}
.produkty__mrizka {
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.produkty__bok { align-self: stretch; }
.produkty__bok-in { position: sticky; top: calc(var(--hlavicka-m) + 36px); }
.produkty__perex { margin-top: 30px; font-size: 1.12rem; max-width: 20em; }
.produkty__rukopis { margin-top: 38px; }
.produkty__rajcata {
  margin-top: 26px; width: 100%; max-width: 360px;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent), linear-gradient(to left, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, #000 55%, transparent), linear-gradient(to left, transparent 0%, #000 30%);
  mask-composite: intersect;
}

.produkty__seznam { list-style: none; padding: 0; }
.produkt {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr);
  gap: 26px;
  align-items: center;
  padding-block: 26px;
  border-bottom: 1.5px solid var(--linka);
}
.produkt:last-child { border-bottom: 0; }
.produkt__cislo {
  display: block;
  font: 800 clamp(2.6rem, 2vw + 1.6rem, 3.5rem)/1 var(--f-nadpis);
  letter-spacing: -.03em;
  color: var(--salvej);
  transition: color .4s, transform .5s var(--pruzina);
}
.produkt__nadpis {
  font: 800 clamp(1.1rem, .5vw + .95rem, 1.32rem)/1.15 var(--f-nadpis);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--zelena);
  margin: .45em 0 .35em;
}
.produkt p { color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.produkt__foto {
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%);
}
.produkt__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.produkt:hover .produkt__foto img { transform: scale(1.06); }
.produkt:hover .produkt__cislo { color: var(--list); transform: translateY(-4px); }

/* =========================================================
   VÝROBA
   ========================================================= */
.vyroba { padding-top: 0; padding-bottom: clamp(70px, 8vw, 110px); }
.vyroba__pas {
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(169, 194, 143, .2), transparent 62%),
    radial-gradient(760px 420px at -5% 115%, rgba(233, 18, 34, .09), transparent 62%),
    var(--zelena);
  color: #fff;
  padding-block: clamp(90px, 12vw, 160px) clamp(170px, 19vw, 250px);
}
.vyroba__vyrok {
  font: 700 clamp(1.55rem, 2.2vw + .8rem, 2.95rem)/1.3 var(--f-nadpis);
  letter-spacing: -.012em;
  max-width: 25em;
  text-wrap: pretty;
}
.vyroba__vyrok .zv {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8C80 4 170 3 297 5' stroke='%23E91222' stroke-width='3.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .34em no-repeat;
  padding-bottom: .06em;
}
.js .vyroba__vyrok .slovo { color: rgba(255, 255, 255, .2); transition: color .45s var(--ease); }
.js .vyroba__vyrok .slovo.on { color: #fff; }
.js .vyroba__vyrok .zv { background-size: 0% .34em; transition: background-size 1.1s var(--ease-io); }
.js .vyroba__vyrok .zv.on { background-size: 100% .34em; }

.vyroba__fotky {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  margin-top: calc(-1 * clamp(120px, 14vw, 200px));
  position: relative; z-index: 2;
}
.vyroba__foto { position: relative; transition: transform .6s var(--ease); }
.vyroba__foto img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 34px 70px -34px rgba(15, 55, 31, .55), 0 2px 6px rgba(15, 55, 31, .08);
  transition: box-shadow .6s var(--ease);
}
.vyroba__foto:hover { transform: translateY(-6px); }
.vyroba__foto:hover img { box-shadow: 0 44px 80px -34px rgba(15, 55, 31, .6), 0 2px 6px rgba(15, 55, 31, .08); }
.vyroba__foto--dilna { margin-bottom: clamp(20px, 4vw, 60px); }
.vyroba__stitek--1 { left: -26px; bottom: 30px; --rot: -7deg; }
.vyroba__stitek--2 { right: -20px; bottom: -8px; --rot: 5deg; }
.js .vyroba__foto .stitek { opacity: 0; transform: rotate(var(--rot)) scale(.55); transition: opacity .4s .7s, transform .8s var(--pruzina) .7s; }
.js .vyroba__foto.is-visible .stitek { opacity: 1; transform: rotate(var(--rot)) scale(1); }

/* piktogramy */
/* Rozvržení podle skutečné šířky karty (container queries):
   úzká = pod sebou, střední = 3 piktogramy v řádku + slogan pod nimi, široká = vše v jednom řádku.
   Sloupce mají šířku podle obsahu, takže se texty nikdy nepřekryjí. */
.piktogramy-obal { container-type: inline-size; }
.piktogramy {
  margin-top: clamp(70px, 9vw, 120px);
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 26px;
  padding: clamp(28px, 3.6vw, 44px) clamp(24px, 4vw, 56px);
  background: var(--salvej-3);
  border-radius: 30px;
}
.piktogramy__seznam { list-style: none; padding: 0; display: grid; grid-template-columns: max-content; gap: 18px; }
.piktogram { display: flex; align-items: center; gap: 16px; }
.piktogramy__rukopis { margin: 6px 0 0; }

@container (min-width: 720px) {
  .piktogramy { grid-template-columns: 1fr; justify-items: stretch; }
  .piktogramy__rukopis { justify-self: center; }
  .piktogramy__seznam { grid-template-columns: repeat(3, minmax(max-content, 1fr)); gap: 0; }
  .piktogram { justify-content: center; padding-inline: clamp(14px, 2.2cqi, 30px); border-left: 1.5px solid rgba(15, 55, 31, .22); }
  .piktogram:first-child { border-left: 0; }
}
@container (min-width: 1080px) {
  .piktogramy { grid-template-columns: minmax(max-content, 1fr) max-content; gap: 0; }
  .piktogram:last-child { border-right: 1.5px solid rgba(15, 55, 31, .22); }
  .piktogramy__rukopis { margin: 0 0 0 clamp(20px, 3cqi, 44px); }
}
.piktogram__ikona { width: 54px; height: 50px; flex: none; overflow: visible; }
.piktogram__text {
  font: 700 .92rem/1.25 var(--f-nadpis);
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--zelena);
}
.piktogramy__rukopis { transform: rotate(-6deg); }
.js .piktogramy__rukopis { transform: rotate(-6deg); }

/* Úvod (jednou, při odrolování ke kartě): přechody, ne animace – po najetí/odjetí myši se tak nic nespustí znovu */
.pk-list { transform-box: fill-box; transform-origin: 8% 96%; }
.pk-srdce { transform-box: fill-box; transform-origin: 50% 55%; }
.pk-osoba { transform-box: fill-box; transform-origin: 50% 100%; }
.js .piktogramy .pk-list { transform: scale(0) rotate(-35deg); }
.js .piktogramy .pk-srdce { stroke-dasharray: 1 1.2; stroke-dashoffset: 1; }
.js .piktogramy .pk-osoba { transform: translateY(12px) scale(.4); opacity: 0; }
.js .piktogramy .piktogram__text { opacity: 0; transform: translateX(-8px); transition: opacity .6s, transform .6s var(--ease); }
.js .piktogramy.is-visible .pk-list { transform: none; transition: transform 1.2s var(--pruzina) .35s; }
.js .piktogramy.is-visible .pk-srdce { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-io) .55s; animation: tlukot 1.1s var(--ease) 1.7s both; }
.js .piktogramy.is-visible .pk-osoba { transform: none; opacity: 1; transition: transform .7s var(--pruzina) var(--d), opacity .4s var(--d); }
.pk-osoba--l { --d: .8s; }
.pk-osoba--p { --d: .95s; }
.pk-osoba--s { --d: 1.1s; }
.js .piktogramy.is-visible .piktogram__text { opacity: 1; transform: none; }
.js .piktogramy.is-visible .piktogram:nth-child(1) .piktogram__text { transition-delay: .5s; }
.js .piktogramy.is-visible .piktogram:nth-child(2) .piktogram__text { transition-delay: .75s; }
.js .piktogramy.is-visible .piktogram:nth-child(3) .piktogram__text { transition-delay: 1s; }
.js .piktogramy.is-visible .piktogramy__rukopis .rukopis__text { transition-delay: 1.3s; }
.js .piktogramy.is-visible .piktogramy__rukopis .tah path { transition-delay: 2.4s; }
.js .piktogramy.is-visible .piktogramy__rukopis .srdicko { transition-delay: 2.6s; }

/* Po najetí myší: třídu .hraje přidá skript a odebere ji až po dohrání – animace proběhne vždy celá a jednou.
   Animuje se celá ikona (svg), ne její části, aby se nepřetahovala s úvodem. */
.piktogram__ikona { transform-origin: 50% 55%; }
.piktogram--list .piktogram__ikona { transform-origin: 12% 92%; }
.piktogram--list.hraje .piktogram__ikona { animation: list-hup 1.2s var(--ease-io); }
.piktogram--srdce.hraje .piktogram__ikona { animation: tlukot 1s var(--ease); }
.piktogram--lide.hraje .pk-osoba { animation: poskok .7s var(--pruzina); }
.piktogram--lide.hraje .pk-osoba--p { animation-delay: .08s; }
.piktogram--lide.hraje .pk-osoba--s { animation-delay: .16s; }

@keyframes list-hup { 0%, 100% { transform: none; } 25% { transform: rotate(-14deg); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } }
@keyframes tlukot { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } 65% { transform: scale(1); } }
@keyframes poskok { 0%, 100% { transform: none; } 40% { transform: translateY(-7px); } }

/* =========================================================
   KONTAKT
   ========================================================= */
.kontakt { padding-top: clamp(70px, 8vw, 120px); padding-bottom: 0; }
.kontakt__mrizka { display: grid; justify-items: center; text-align: center; }
/* jedna velikost písma pro všechny údaje (firma, telefon, e-mail) */
.kontakt__udaje { display: grid; justify-items: center; --kontakt-pismo: clamp(1.1rem, .45vw + 1rem, 1.35rem); }
.kontakt .stitek-sekce::after {
  content: ''; width: 30px; height: 2.5px; border-radius: 2px;
  background: var(--cervena);
}
.kontakt__nazev {
  font: 900 clamp(2.2rem, 2.6vw + 1.2rem, 3.6rem)/1.02 var(--f-nadpis);
  letter-spacing: -.02em;
  color: var(--zelena);
}
.kontakt__seznam {
  list-style: none; padding: 0; margin-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(24px, 5vw, 64px);
  text-align: left;
}
/* když se telefon a e-mail nevejdou vedle sebe: jeden sloupec, ikony zarovnané pod sebou */
@media (max-width: 760px) {
  .kontakt__seznam { display: grid; justify-content: center; justify-items: start; }
}
.kontakt__polozka {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 10px 28px 10px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.kontakt__polozka:hover { background: var(--salvej-3); transform: translateY(-3px); }
.kontakt__ikona {
  flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--salvej-3);
  color: var(--zelena);
  transition: background-color .35s, color .35s, transform .5s var(--pruzina);
}
.kontakt__ikona svg { width: 30px; height: 30px; overflow: visible; }
.kontakt__polozka:hover .kontakt__ikona { background: var(--zelena); color: #fff; transform: scale(1.06); }
.kontakt__stitek {
  display: block;
  font: 400 var(--kontakt-pismo)/1.3 var(--f-text);
  color: var(--text-2);
}
.kontakt__hodnota {
  display: block;
  font: 700 var(--kontakt-pismo)/1.3 var(--f-text);
  color: var(--zelena);
  overflow-wrap: anywhere;
}
.ik-telefon { transform-box: fill-box; transform-origin: 50% 50%; }
.kontakt__polozka--tel:hover .ik-telefon { animation: zvoneni .7s var(--ease) both; }
@keyframes zvoneni { 0%, 100% { transform: none; } 15%, 45%, 75% { transform: rotate(-14deg); } 30%, 60% { transform: rotate(12deg); } }
.ik-chlopen { transform-box: fill-box; transform-origin: 50% 0%; transition: transform .45s var(--ease); }
.kontakt__polozka--mail:hover .ik-chlopen { transform: scaleY(-1); }
.kontakt__firma {
  margin-top: 28px;
  font: normal 400 var(--kontakt-pismo)/1.6 var(--f-text);
  color: var(--text-2);
}
.kontakt__firma strong { font-weight: 700; color: var(--zelena); }

.kontakt__zelenina {
  margin-top: clamp(60px, 8vw, 110px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
}
.kontakt__zelenina img { width: 100%; min-height: 150px; object-fit: cover; }
@supports (animation-timeline: view()) {
  .kontakt__zelenina img {
    animation: paralaxa linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
  @keyframes paralaxa { from { transform: translateY(18%) scale(1.04); } to { transform: translateY(0) scale(1.04); } }
}

/* =========================================================
   RESPONZIVITA
   ========================================================= */
@media (max-width: 1180px) {
  .uvod__text { max-width: 460px; }
  .uvod__nadpis { font-size: clamp(2.2rem, 2.6vw + .9rem, 3rem); }
}

@media (max-width: 1000px) {
  .uvod { flex-direction: column; align-items: stretch; min-height: 0; padding-top: var(--hlavicka-v); padding-bottom: 90px; }
  .uvod__foto {
    position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 26%);
    mask-image: linear-gradient(to top, transparent 0%, #000 26%);
  }
  .uvod__foto::after { display: none; }
  .uvod__in { margin-top: -36px; }
  .uvod__text { max-width: 640px; }
  .uvod__foto { aspect-ratio: 5 / 4; }
  .uvod__foto img { object-position: 30% 40%; }
  .uvod__stitek { top: 5%; bottom: auto; right: 3%; --rot: 4deg; font-size: 1.15rem; padding: 14px 22px 18px; }
  .uvod__in { margin-top: -20px; }
}

@media (max-width: 900px) {
  :root { --hlavicka-v: 76px; --hlavicka-m: 64px; }
  .hlavicka::before { opacity: 1; }
  .hlavicka__logo { width: 124px; }
  .hlavicka.is-compact .hlavicka__logo { width: 104px; }
  .menu-tlacitko { display: block; }
  .menu {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--hlavicka-v) + 20px) var(--okraj) 0;
    background: var(--papir);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  .menu-otevrene .menu { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .menu__seznam { flex-direction: column; align-items: center; gap: 6px; margin-bottom: auto; margin-top: auto; }
  .menu a { font-size: 1.5rem; padding: 14px 10px; letter-spacing: .12em; }
  .menu li { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease); }
  .menu-otevrene .menu li { opacity: 1; transform: none; }
  .menu-otevrene .menu li:nth-child(2) { transition-delay: .06s; }
  .menu-otevrene .menu li:nth-child(3) { transition-delay: .12s; }
  .menu-otevrene .menu li:nth-child(4) { transition-delay: .18s; }
  .menu__zelenina {
    display: block; width: 100vw; max-width: none; margin-inline: calc(-1 * var(--okraj));
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
    mask-image: linear-gradient(to bottom, transparent, #000 40%);
  }
  .menu-otevrene { overflow: hidden; }

  .o-nas__uvod { grid-template-columns: 1fr; }
  .o-nas__foto { justify-self: center; width: 100%; max-width: 520px; aspect-ratio: 4 / 4.4; border-radius: 0 0 24px 24px;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 18%); mask-image: linear-gradient(to top, transparent 0%, #000 18%); }
  .o-nas__dalsi { grid-template-columns: 1fr; gap: 40px; }
  .o-nas__rukopis { justify-self: center; margin-left: 0; }
  .karta:not(.karta--bio) { padding-left: 0; border-left: 0; padding-top: 30px; border-top: 2px solid rgba(15, 55, 31, .35); }
  .karta--bio { margin-top: 0; }

  .produkty__mrizka { grid-template-columns: 1fr; }
  .produkty__bok-in { position: static; }
  .produkty__rajcata { display: none; }
  .produkt { grid-template-columns: 1fr; gap: 16px; padding-block: 30px; }
  .produkt__foto { order: -1; border-radius: 18px; -webkit-mask-image: none; mask-image: none; }
  .produkt__text { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
  .produkt__cislo { grid-row: span 2; }
  .produkt__nadpis { margin-top: 0; }

  .vyroba__fotky { grid-template-columns: 1fr; gap: 56px; }
  .vyroba__foto--dilna { margin-bottom: 0; }
  .vyroba__stitek--1 { left: 10px; bottom: -26px; }
  .vyroba__stitek--2 { right: 10px; bottom: -26px; }
}

@media (max-width: 560px) {
  .hodnoty { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .hodnoty li { letter-spacing: .14em; font-size: .7rem; }
  .rukopis--stetec { padding: 24px 30px 34px 28px; }
  .rukopis--stetec .tah { left: 28px; width: calc(100% - 70px); }
  .nadpis-stetec { margin-left: -14px; padding: 28px 32px 44px 26px; }
  .kontakt__polozka { gap: 14px; padding-right: 16px; }
  .kontakt__ikona { width: 54px; height: 54px; }
}

/* Omezení pohybu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  /* konečné stavy natvrdo, ať nic nezůstane v počáteční fázi animace */
  .anim, .uvod__foto img, .uvod__stitek { animation: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .rukopis[data-reveal], .rukopis { transform: rotate(-4deg) !important; }
  .piktogramy__rukopis { transform: rotate(-6deg) !important; }
  .rukopis__text { clip-path: none !important; animation: none !important; }
  .tah path { stroke-dashoffset: 0 !important; animation: none !important; }
  .srdicko { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .vyroba__foto .stitek { opacity: 1 !important; transform: rotate(var(--rot)) !important; }
  .pk-list, .pk-osoba { transform: none !important; opacity: 1 !important; animation: none !important; }
  .pk-srdce { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .piktogramy .piktogram__text { opacity: 1 !important; transform: none !important; }
}
