/* Zlatá pleva — spoločný základ pre oba návrhy */
:root {
  --atrament: #241E16;
  --pleva: #C99A3F;
  --presvit: #F2DCA4;
  --strnisko: #8A7A5C;
  --mlat: #E6E7E1;
  --papier: #F4F5F0;
  --zlato-tmave: #73540E;
  --tlmeny: #554B3A;
  --ciara: rgba(36, 30, 22, .18);
  --chyba: #9B2C1A;
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mlat);
  color: var(--atrament);
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .02em; }
.tlmene { color: var(--tlmeny); }
[hidden] { display: none !important; }
.len-citacka { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--zlato-tmave); outline-offset: 3px; border-radius: 4px; }
.tmave :focus-visible, .tmave:focus-visible { outline-color: var(--presvit); }

/* Tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  font: 600 1rem/1.2 var(--f-text);
  color: var(--atrament); background: var(--pleva);
  border: 2px solid var(--pleva); border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { background: #D8AC55; border-color: #D8AC55; }
.btn:active { transform: translateY(1px); }
.btn--tichy { background: transparent; border-color: currentColor; color: inherit; }
.btn--tichy:hover { background: rgba(201, 154, 63, .18); border-color: currentColor; }
.btn--sirka { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Logo — PNG má biele pozadie, na svetlej ploche ho necháme splynúť */
.logo { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.logo-kruh { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; }
.logo-kruh img { width: 78%; height: 78%; object-fit: contain; }
.znacka { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: 1.35rem; text-decoration: none; line-height: 1; }

/* Okno presvitu — plátno s podsvietenými plevami */
.presvit { background: var(--atrament); }
.presvit canvas { width: 100%; height: 100%; }

/* Zoznam s odrážkou-plevou */
.plevy-zoznam li { position: relative; padding-left: 1.5em; margin-bottom: .35em; }
.plevy-zoznam li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .85em; height: .34em;
  background: var(--pleva); border-radius: 100% 0 100% 0; transform: rotate(-18deg);
}

/* Štyri priznané obmedzenia */
.obmedzenia { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.obmedzenie { background: var(--papier); border: 1px solid var(--ciara); border-top: 4px solid var(--atrament); border-radius: var(--r); padding: 1.4rem 1.4rem 1.5rem; }
.obmedzenie h3 { margin-bottom: .5rem; }

/* Kroky výroby */
.kroky { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: krok; }
.krok { border-top: 1px solid var(--atrament); padding-top: .9rem; }
.krok .mono { color: var(--zlato-tmave); display: block; margin-bottom: .3rem; font-size: .95rem; }
.krok h3 { font-size: 1.25rem; margin-bottom: .35rem; }

/* Bezpečnosť — vždy celá viditeľná */
.bezpecnost { background: var(--papier); border: 2px solid var(--atrament); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2.25rem); }
.bezpecnost li { padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--ciara); position: relative; }
.bezpecnost li::before { content: "!"; position: absolute; left: 0; top: .78rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--atrament); color: var(--presvit); font: 700 .8rem/1.3rem var(--f-mono); text-align: center; }
.bezpecnost .veta { margin-top: 1.1rem; font-weight: 600; }

/* Otázky */
.otazky details { border-bottom: 1px solid var(--ciara); }
.otazky details:first-child { border-top: 1px solid var(--ciara); }
.otazky summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; position: relative; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.3; }
.otazky summary::-webkit-details-marker { display: none; }
.otazky summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font: 400 1.6rem/1 var(--f-mono); color: var(--zlato-tmave); transition: transform .2s; }
.otazky details[open] summary::after { transform: rotate(45deg); }
.otazky details p { padding: 0 2.5rem 1.2rem 0; max-width: 62ch; }

/* Upozornenie pri tovare na mieru — musí byť čitateľné */
.upozornenie { border-left: 4px solid var(--pleva); background: rgba(201, 154, 63, .16); padding: .85rem 1rem; border-radius: 0 8px 8px 0; font-size: 1rem; line-height: 1.5; font-weight: 500; }
.tmave .upozornenie { background: rgba(242, 220, 164, .14); color: #FBF3DD; }

/* Rezervácia: položky s počítadlom */
.skupina-nazov { font: 500 .85rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tlmeny); margin: 1.6rem 0 .4rem; }
.skupina-nazov:first-child { margin-top: 0; }
.polozka { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--ciara); }
.polozka__nazov { font-weight: 600; line-height: 1.3; }
.polozka__popis { display: block; font-weight: 400; font-size: .92rem; color: var(--tlmeny); }
.polozka__cena { font-family: var(--f-mono); font-size: 1rem; white-space: nowrap; }
.pocitadlo { display: inline-flex; align-items: center; border: 1.5px solid var(--atrament); border-radius: 10px; overflow: hidden; background: #FCFCF9; }
.pocitadlo button { width: 44px; height: 44px; border: 0; background: transparent; font: 500 1.3rem/1 var(--f-mono); color: var(--atrament); cursor: pointer; }
.pocitadlo button:hover:not([disabled]) { background: var(--presvit); }
.pocitadlo button[disabled] { opacity: .3; cursor: default; }
.pocitadlo output { min-width: 2ch; text-align: center; font: 500 1.05rem/1 var(--f-mono); }
.polozka.je-vybrata .polozka__nazov { color: var(--zlato-tmave); }
@media (max-width: 480px) {
  .polozka { grid-template-columns: 1fr auto; }
  .polozka__nazov { grid-column: 1 / -1; }
}

/* Súhrn */
.suhrn { font-size: 1rem; }
.suhrn ul li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.suhrn ul li span:last-child { font-family: var(--f-mono); white-space: nowrap; }
.suhrn__spolu { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; padding-top: .7rem; border-top: 1.5px solid currentColor; font-weight: 700; }
.suhrn__spolu span:last-child { font: 500 1.5rem/1 var(--f-mono); }
.suhrn__pozn { font-size: .88rem; opacity: .85; margin-top: .5rem; }

/* Formulár */
.formular { display: grid; gap: 1rem; }
.rad { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pole label, .pole .label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .3rem; }
.pole .nepovinne { font-weight: 400; color: var(--tlmeny); }
.pole input, .pole select, .pole textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  font: 400 1.05rem/1.4 var(--f-text); color: var(--atrament);
  background: #FCFCF9; border: 1.5px solid rgba(36, 30, 22, .45); border-radius: 8px;
}
.pole textarea { min-height: 96px; resize: vertical; }
.pole input:focus-visible, .pole select:focus-visible, .pole textarea:focus-visible { outline-offset: 1px; }
.pole.ma-chybu input, .pole.ma-chybu select { border-color: var(--chyba); border-width: 2px; }
.chyba { color: var(--chyba); font-size: .92rem; font-weight: 600; margin: .3rem 0 0; }
.blok { border: 1px solid var(--ciara); border-radius: var(--r); padding: 1.25rem; background: var(--papier); display: grid; gap: 1rem; }
.blok > h3 { font-size: 1.2rem; }
.suhlas { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: 1rem; line-height: 1.5; }
.suhlas input { width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--zlato-tmave); }
.suhlas.ma-chybu { color: var(--chyba); }
.past { position: absolute; left: -9999px; }
.stav { font-weight: 600; }
.stav--chyba { color: var(--chyba); }
.dakujeme { background: var(--atrament); color: var(--presvit); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 3rem); }
.dakujeme h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }

/* Spodná lišta s výberom */
.lista {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem max(1rem, env(safe-area-inset-left)) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--atrament); color: var(--presvit);
  box-shadow: 0 -8px 30px rgba(36, 30, 22, .25);
}
.lista .mono { font-size: 1rem; }
.oznam { position: fixed; left: 50%; bottom: 5.2rem; transform: translateX(-50%); z-index: 50; background: var(--presvit); color: var(--atrament); padding: .6rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; box-shadow: 0 6px 24px rgba(36, 30, 22, .3); max-width: calc(100vw - 2rem); text-align: center; }
.oznam:empty { display: none; }

/* Pätička */
.pata { background: var(--atrament); color: #E9E2D0; font-size: .98rem; }
.pata a { color: var(--presvit); }
.pata .mono { color: var(--presvit); }
.doplnit { background: rgba(242, 220, 164, .16); border: 1px dashed var(--presvit); border-radius: 6px; padding: .05em .4em; font-family: var(--f-mono); font-size: .85em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
