/* ŠaDzivo — podstránky. Rovnaký systém ako hero: čierna, biela, žltý akcent, Switzer. */

@font-face {
  font-family: "Switzer";
  src: url("fonts/Switzer-Variable.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("fonts/Switzer-VariableItalic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --dim: rgba(255, 255, 255, 0.6);
  --dim-2: rgba(255, 255, 255, 0.36);
  --rule: rgba(255, 255, 255, 0.16);
  --rule-soft: rgba(255, 255, 255, 0.09);
  --accent: #ffc400;

  --surf-0: #000000;
  --surf-1: #0a0a0a;
  --surf-2: #121212;
  --surf-3: #171717;

  --text-base: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-sm:   clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg:   clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --text-xl:   clamp(1.75rem, 1.35rem + 1.8vw, 3rem);
  --text-2xl:  clamp(2.25rem, 1.6rem + 3vw, 4.5rem);

  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Switzer", -apple-system, sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* nadpisy: black italic, tracking -50 */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 1.04;
}
p { margin: 0; }
strong, b { font-weight: 500; color: var(--fg); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #000; }

/* ================= NAVIGÁCIA ================= */
.global-nav {
  background: var(--surf-0); border-bottom: 1px solid var(--rule-soft);
  min-height: 52px; display: flex; align-items: center;
}
.global-nav .wrap { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.global-nav .mark {
  font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  font-size: 1.125rem; color: var(--fg); text-decoration: none;
}
.global-nav .mark:hover { color: var(--accent); text-decoration: none; }
.global-nav nav { display: flex; gap: 1.5rem; margin-left: auto; }
.global-nav nav a {
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.global-nav nav a.active { color: var(--fg); }
.global-nav nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; }

.sub-nav {
  position: sticky; top: 0; z-index: 20; min-height: 60px;
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.sub-nav .wrap { display: flex; align-items: center; gap: 1.25rem; width: 100%; }
.sub-nav .title { font-weight: 900; font-style: italic; letter-spacing: -0.05em; font-size: 1.375rem; }
.sub-nav .links { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.sub-nav .links a {
  font-size: var(--text-sm); color: var(--dim); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.sub-nav .links a:hover { color: var(--accent); text-decoration: none; }
.sub-nav .count { font-size: var(--text-sm); font-weight: 500; color: var(--dim-2); font-variant-numeric: tabular-nums; }
.sub-nav .count b { color: var(--accent); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.nav-progress b { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.24s ease; }
@media (prefers-reduced-motion: reduce) { .nav-progress b { transition: none; } }

/* ================= TLAČIDLÁ ================= */
.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.7em 1.5em; text-decoration: none;
  font-weight: 500; font-size: var(--text-base); font-style: normal;
  background: var(--accent); color: #000; border: 1px solid var(--accent);
  transition: opacity 0.18s ease;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-sm { font-size: var(--text-sm); padding: 0.5em 1.1em; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--fg); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ================= PLOCHY ================= */
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--pad); }
.tile { padding: clamp(3.5rem, 9vw, 7rem) 0; border-top: 1px solid var(--rule-soft); }
.tile:first-of-type { border-top: none; }

.tile-white     { background: var(--surf-0); --card-bg: var(--surf-2); }
.tile-parchment { background: var(--surf-1); --card-bg: var(--surf-3); }
.tile-dark      { background: var(--surf-2); --card-bg: var(--surf-0); }
.tile-dark-2    { background: var(--surf-1); --card-bg: var(--surf-3); }

/* jednotné tokeny — na podstránkach je všetko tmavé */
.tile, footer { --fg-muted: var(--dim); --link: var(--accent); --card-border: var(--rule-soft); }
.tile, footer { --chip-bg: rgba(255, 255, 255, 0.05); --chip-border: var(--rule); }

/* ================= HERO PODSTRÁNKY ================= */
.hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); text-align: left; }
.hero h1 { font-size: var(--text-2xl); }
.hero .lead { margin-top: 1.25rem; font-size: var(--text-lg); color: var(--dim); max-width: 46ch; }
.hero .cta { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-note {
  max-width: 62ch; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: var(--text-base); color: var(--dim);
}

.stats {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 1.5rem; padding-top: 2rem; border-top: 1px solid var(--rule);
}
.stat .v {
  display: block; font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  font-size: var(--text-xl); line-height: 1.02; font-variant-numeric: tabular-nums;
}
.stat .k { display: block; margin-top: 0.45em; font-size: var(--text-sm); color: var(--dim); }

/* ================= HLAVIČKY SEKCIÍ ================= */
.tile-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.tile-head.center { text-align: center; }
.tile-head .eyebrow {
  display: block; margin-bottom: 0.8rem;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-style: normal;
}
.tile-head h2 { font-size: var(--text-xl); }
.tile-head .sub { margin-top: 1rem; font-size: var(--text-lg); color: var(--dim); max-width: 56ch; }

/* ================= TABUĽKY ================= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
th, td { padding: 1.1rem 0; text-align: left; vertical-align: top; }
th + th, td + td { padding-left: 1.5rem; }
thead th {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; font-style: normal; color: var(--dim-2);
  padding-top: 0; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
tbody tr + tr td { border-top: 1px solid var(--rule-soft); }
td { color: var(--fg); }
td.num { font-variant-numeric: tabular-nums; }
td.amount {
  font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent);
}
tr.total td { font-weight: 500; }
.muted { color: var(--dim); }

.note { margin-top: 1.5rem; font-size: var(--text-sm); color: var(--dim); max-width: 62ch; }
.lede { margin: -1rem 0 2rem; font-size: var(--text-base); color: var(--dim); max-width: 62ch; }

/* ================= KARTY ================= */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.card + .card { margin-top: 1.25rem; }
.card h3 { font-size: var(--text-lg); }
.card p { margin-top: 0.8em; font-size: var(--text-base); color: var(--dim); }
.card p + p { margin-top: 0.8em; }

.grid-2, .notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-2 .card + .card { margin-top: 0; }

/* ================= VYBAVENIE / MRIEŽKA ================= */
.kit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.kit li {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 1.5rem; font-size: var(--text-base);
}
.kit li b { display: block; margin-bottom: 0.4em; }
.kit li .muted { font-size: var(--text-sm); }

/* ================= CHECKLIST ================= */
.check-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.check-count { font-weight: 900; font-style: italic; letter-spacing: -0.05em; font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.check-count b { color: var(--accent); font-weight: 900; }
.check-reset {
  margin-left: auto; background: none; border: none; padding: 0.4em 0; cursor: pointer;
  font-family: inherit; font-size: var(--text-sm); color: var(--accent);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.check-reset:hover { text-decoration: underline; }

.check-bar { height: 2px; background: var(--rule); overflow: hidden; margin-bottom: 1.75rem; }
.check-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.24s ease; }
@media (prefers-reduced-motion: reduce) { .check-bar i { transition: none; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.checklist li { position: relative; }
.checklist li[data-custom] label { padding-right: 2.5rem; }
.checklist .ck-remove {
  position: absolute; top: 4px; right: 4px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--dim-2);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.checklist .ck-remove:hover { color: var(--fg); }
.checklist label {
  display: flex; align-items: flex-start; gap: 0.9rem; height: 100%;
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 1.1rem 1.25rem; cursor: pointer;
  transition: border-color 0.15s ease;
}
.checklist label:hover { border-color: var(--accent); }
.checklist input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: 0 0 auto;
  width: 22px; height: 22px; position: relative; top: 2px;
  border: 1.5px solid var(--rule); background: transparent; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checklist input:checked { background: var(--accent); border-color: var(--accent); }
.checklist input:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px;
  width: 5px; height: 10px; border: solid #000; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist .txt { font-size: var(--text-base); line-height: 1.35; transition: color 0.15s ease; }
.checklist input:checked ~ .txt { color: var(--dim-2); }
@media (prefers-reduced-motion: reduce) {
  .checklist label, .checklist input, .checklist .txt { transition: none; }
}

/* rovnaká vizuálna váha ako karty checklistu vyššie — pôsobí ako ich súčasť,
   nie ako samostatný ovládací prvok navyše */
.check-add {
  display: flex; align-items: stretch; margin-top: 0.9rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
}
.ck-add-input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 1.1rem;
  background: transparent; border: 0; color: var(--fg);
  font: inherit; font-size: var(--text-base);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.ck-add-input::placeholder { color: var(--dim-2); }
.ck-add-input:focus { outline: none; }
.ck-add-btn {
  flex: 0 0 auto; min-height: 52px; padding: 0 1.25rem;
  background: transparent; border: 0; border-left: 1px solid var(--card-border);
  color: var(--accent); font: inherit; font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
  -webkit-appearance: none; appearance: none; border-radius: 0;
  transition: background-color 0.15s ease;
}
.ck-add-btn:hover { background: rgba(255, 196, 0, 0.08); }
@media (prefers-reduced-motion: reduce) { .ck-add-btn { transition: none; } }

/* ================= ČIPY ================= */
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip {
  background: var(--chip-bg); border: 1px solid var(--chip-border);
  padding: 0.45em 0.9em; font-size: var(--text-sm);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chip.key { color: var(--accent); border-color: rgba(255, 196, 0, 0.4); font-weight: 500; }
/* preklik z kroku postupu priamo na kalkulačku k tomu istému kroku */
a.chip-calc {
  display: inline-flex; align-items: center;
  color: var(--dim); text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
/* na mobile musí byť dotykový cieľ 44 px, na desktope by roztiahol celý riadok čipov */
@media (max-width: 768px) { a.chip-calc { min-height: 44px; } }
a.chip-calc::after { content: " \2192"; }
a.chip-calc:hover { color: var(--accent); border-color: rgba(255, 196, 0, 0.4); }
@media (prefers-reduced-motion: reduce) { a.chip-calc { transition: none; } }

/* ================= LINEÁRNY POSTUP ================= */
main { counter-reset: bigstep; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.flow > li {
  counter-increment: bigstep;
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; align-items: start;
}
.flow > li > .n {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #000;
  font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  font-size: 1.25rem; font-variant-numeric: tabular-nums;
}
.flow > li > .n::before { content: counter(bigstep); }
.flow-body h3 { font-size: var(--text-lg); }
.flow-body > p { margin-top: 0.8em; font-size: var(--text-base); color: var(--dim); }

.do { list-style: none; margin: 1.25rem 0 0; padding: 0; counter-reset: sub; }
.do li { position: relative; padding-left: 2.1rem; margin-bottom: 0.9rem; font-size: var(--text-base); }
.do li:last-child { margin-bottom: 0; }
.do li::before {
  counter-increment: sub; content: counter(bigstep) "." counter(sub);
  position: absolute; left: 0; top: 0.25em;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--dim-2); font-variant-numeric: tabular-nums;
}

/* odškrtávateľné podkroky — aktivuje sa až skriptom */
.do.ck li { padding-left: 4.4rem; cursor: pointer; }
.do.ck li::before { left: 2.2rem; }
.do.ck li > input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 0;
  position: absolute; left: 0; top: 0.1em;
  width: 22px; height: 22px;
  border: 1.5px solid var(--rule); background: transparent; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.do.ck li > input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.do.ck li > input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px;
  width: 5px; height: 10px; border: solid #000; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.do.ck li.on { color: var(--dim-2); }
.do.ck li.on b { color: var(--dim-2); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .do.ck li > input[type="checkbox"] { transition: none; } }

.flow > li.done > .n { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.flow > li.done > .n::before { content: "✓"; }
.flow > li.done .flow-body h3 { color: var(--dim); }
.step-progress {
  display: inline-block; margin-top: 0.5em;
  font-size: var(--text-sm); font-weight: 500; color: var(--dim-2);
  font-variant-numeric: tabular-nums;
}
.flow > li.done .step-progress { color: var(--accent); }

/* poznámky ku krokom — vkladá skript, bez neho sa nezobrazia. Tlačidlo je
   zámerne bez rámčeka/pozadia — rovnaký holý podčiarknutý vzor ako
   .note-clear a .check-reset nižšie, ktorý funguje spoľahlivo naprieč
   prehliadačmi (žiadne vlastné orámovanie, ktoré by iOS mohol prekresliť). */
.note-tool { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); }
.note-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0; background: none; border: 0;
  color: var(--accent); font: inherit; font-size: var(--text-sm); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.note-btn:hover { color: var(--fg); }
.note-btn .ico { font-variant-numeric: tabular-nums; line-height: 1; text-decoration: none; }
/* bodka signalizuje, že v zloženej poznámke niečo je */
.note-btn .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.note-box { margin-top: 1rem; }
.note-box textarea {
  display: block; width: 100%; min-height: 84px; resize: vertical;
  padding: 0.85rem 0.95rem;
  background: var(--surf-0); border: 1px solid var(--rule); color: var(--fg);
  font: inherit; font-size: var(--text-base); line-height: 1.55;
}
.note-box textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.note-box textarea::placeholder { color: var(--dim-2); }
.note-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.5rem; font-size: var(--text-sm); color: var(--dim-2);
}
.note-clear {
  min-height: 44px; padding: 0; background: none; border: 0;
  color: var(--dim-2); font: inherit; font-size: var(--text-sm);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.note-clear:hover { color: var(--fg); }

.aside { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); }
.aside .lbl {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-2);
}
.aside p { font-size: var(--text-base); }
.aside p + p { margin-top: 0.8em; }
.aside .what { color: var(--accent); font-weight: 500; }

/* ================= ČASOVÁ OS VARU ================= */
.boil { list-style: none; margin: 1.5rem 0 0; padding: 0 0 0 2rem; position: relative; }
.boil::before { content: ""; position: absolute; left: 5px; top: 1rem; bottom: 1rem; width: 1px; background: var(--rule); }
.boil li {
  position: relative; display: flex; align-items: baseline; gap: 1.25rem;
  padding: 0.85rem 0; font-size: var(--text-base);
}
.boil li::before {
  content: ""; position: absolute; left: -2rem; top: 1.3rem;
  width: 11px; height: 11px; background: var(--accent);
}
.boil li.soft::before { background: var(--dim-2); }
.boil li.end::before { background: transparent; box-shadow: inset 0 0 0 1px var(--dim-2); }
.boil .t {
  flex: 0 0 auto; min-width: 3.4rem; font-size: var(--text-sm);
  font-variant-numeric: tabular-nums; color: var(--dim-2);
}
.boil li.end .d { color: var(--dim); }

/* ================= ZOZNAM SUROVÍN ================= */
.shop { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.shop li { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-soft); }
.shop .amt {
  flex: 0 0 auto; min-width: 7rem;
  font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.shop .what .muted { display: block; margin-top: 0.2em; font-size: var(--text-sm); }
.shop .what { flex: 1 1 auto; }
.shop .btn { margin-left: auto; flex: 0 0 auto; white-space: nowrap; }

/* ================= DETAIL SUROVINY ================= */
.ingredient {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.ingredient + .ingredient { margin-top: 1.25rem; }
.ingredient .top { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
.ingredient h3 { font-size: var(--text-lg); }
.ingredient .qty {
  margin-left: auto; white-space: nowrap;
  font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  font-size: var(--text-xl); color: var(--accent); font-variant-numeric: tabular-nums;
}
.ingredient .role { margin-top: 0.35em; font-size: var(--text-sm); color: var(--dim); }
.spec {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule-soft);
}
.spec li { background: var(--card-bg); padding: 0.9rem 1.1rem; }
.spec .k { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); }
.spec .v { display: block; margin-top: 0.3em; font-size: var(--text-base); }

/* ================= KALKULAČKA ================= */
.calc {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.calc + .calc { margin-top: 1.25rem; }
/* na kalkulačky sa dá odkázať priamo z postupu, sticky sub-nav ich inak prekryje */
.calc[id] { scroll-margin-top: 76px; }
.calc > .head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.calc .step-no {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.calc h3 { font-size: var(--text-lg); flex-basis: 100%; }
.calc .why { margin-top: 0.7em; font-size: var(--text-base); color: var(--dim); max-width: 62ch; }

.fields { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.field { display: block; }
.field > span {
  display: block; margin-bottom: 0.45rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2);
}
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0.6em 0.8em;
  background: rgba(255, 255, 255, 0.04); color: var(--fg);
  border: 1px solid var(--rule); border-radius: 0;
  font-family: inherit; font-size: var(--text-lg);
  font-weight: 500; font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: none; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field .unit { display: block; margin-top: 0.4rem; font-size: var(--text-sm); color: var(--dim-2); }

.out { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.verdict {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-left: 3px solid var(--accent);
  background: rgba(255, 196, 0, 0.07);
  font-size: var(--text-base);
}
.verdict .tag {
  flex: 0 0 auto; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding-top: 0.25em;
}
.verdict.warn { border-left-color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.verdict.warn .tag { color: var(--fg); }
.verdict strong { display: block; font-weight: 500; margin-bottom: 0.25em; }
.verdict .body { color: var(--dim); }
.verdict .body b { color: var(--fg); }

.out-lines { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--rule-soft); }
.out-lines li {
  background: var(--card-bg); display: flex; align-items: baseline;
  gap: 1rem; padding: 0.8rem 0.1rem;
}
.out-lines .k { color: var(--dim); font-size: var(--text-base); }
.out-lines .v {
  margin-left: auto; text-align: right; white-space: nowrap;
  font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.out-lines .v.acc { color: var(--accent); }

.calc-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.reset-link {
  background: none; border: none; padding: 0.4em 0; cursor: pointer;
  font-family: inherit; font-size: var(--text-sm); color: var(--accent);
}
.reset-link:hover { text-decoration: underline; }

/* ================= PÄTIČKA ================= */
footer { background: var(--surf-0); border-top: 1px solid var(--rule); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule-soft); }
footer .cols.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
footer h4 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; font-style: normal; color: var(--dim-2); margin-bottom: 0.75rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { font-size: var(--text-sm); line-height: 1.9; color: var(--dim); }
footer .legal { margin-top: 1.5rem; font-size: var(--text-sm); color: var(--dim-2); }

/* ================= RESPONZÍVNE ================= */
@media (max-width: 1068px) {
  .kit, .checklist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 833px) {
  footer .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .notes, .spec, .kit, .checklist { grid-template-columns: 1fr; }
  .sub-nav .links a:not(.btn) { display: none; }
  .sub-nav .links .btn { display: inline-flex; }
  .sub-nav .count { display: none; }
  .sub-nav .title { font-size: 1.125rem; }
  .global-nav { min-height: 48px; }
  .global-nav .wrap { gap: 0.6rem; flex-wrap: wrap; position: relative; }
  .global-nav .mark { font-size: 1rem; flex: 0 0 auto; }
  /* na mobile sa 4 odkazy + tlačidlo do jedného riadku nezmestia —
     hamburger rozbalí celé menu na celú šírku pod lištou, nič sa nestratí */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; order: 2; margin-left: auto;
    background: none; border: 1px solid var(--line); color: var(--fg);
    font-size: 1rem; cursor: pointer; padding: 0;
  }
  .topbar-actions { order: 3; gap: 0.5rem; margin-left: 0; }
  .topbar-actions .btn-sm { padding: 0.4em 0.8em; font-size: 0.8125rem; white-space: nowrap; }
  .global-nav nav {
    display: none; order: 5; width: 100%; margin: 0.5rem 0 0;
    flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 0.25rem;
  }
  .global-nav nav.open { display: flex; }
  .global-nav nav a {
    display: block; padding: 0.7rem 0.1rem; font-size: 0.95rem; letter-spacing: normal;
    border-bottom: 1px solid var(--rule-soft);
  }

  .out-lines li { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .out-lines .v { margin-left: 0; text-align: left; white-space: normal; }

  .tile { padding: clamp(2.75rem, 11vw, 3.5rem) 0; }
  .hero { padding: 2.75rem 0 2.25rem; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; }
  .tile-head { margin-bottom: 1.75rem; }
  .tile-head .sub { font-size: var(--text-base); }

  .flow > li { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .flow > li > .n { width: 40px; height: 40px; font-size: 1.0625rem; }
  /* užšie odsadenie, aby na 360 px zostal riadok čitateľný */
  .do.ck li { padding-left: 3.9rem; }
  .do.ck li::before { left: 1.9rem; }
  .card, .ingredient { padding: 1.25rem; }
  .ingredient .top { gap: 0.5rem; }
  .ingredient .qty { margin-left: 0; font-size: var(--text-lg); }
  .shop li { flex-wrap: wrap; gap: 0.35rem 1rem; }
  .shop .amt { min-width: 0; flex-basis: 100%; }
  .boil li { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .boil .t { flex-basis: 100%; }
  .check-head { margin-bottom: 1rem; }
  .check-reset { margin-left: 0; }
  .checklist label { padding: 0.9rem 1rem; }
  .kit li { padding: 1.1rem 1.25rem; }
  footer .cols { grid-template-columns: 1fr; gap: 1.5rem; }

  thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table, tbody, tr, td { display: block; width: 100%; }
  tbody tr { padding: 1.1rem 0; border-top: 1px solid var(--rule-soft); }
  tbody tr:first-child { border-top: none; padding-top: 0; }
  tbody tr + tr td { border-top: none; }
  td { padding: 0 0 0.35rem 0 !important; }
  td:last-child { padding-bottom: 0 !important; }
  td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2);
  }
  td.amount { font-size: var(--text-lg); }
}

/* ================= PRIHLÁSENIE / VÝROBŇA ================= */
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.who { font-size: var(--text-sm); color: var(--dim-2); }
.who b { color: var(--fg); font-weight: 500; }

.login-screen .wrap { display: flex; justify-content: center; }
.login-card {
  width: 100%; max-width: 420px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.login-card .eyebrow {
  display: block; margin-bottom: .6rem;
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.login-card h1 { font-size: 1.75rem; }
.login-card .sub { margin-top: .6rem; font-size: var(--text-sm); color: var(--dim); }
.login-card form { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }
.login-btn { width: 100%; justify-content: center; margin-top: .25rem; }
.form-error {
  padding: .9rem 1rem; border-left: 3px solid var(--fg);
  background: rgba(255, 255, 255, .06); font-size: var(--text-sm); color: var(--dim);
}

/* ---- várky ---- */
.grid-batches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.batch-card {
  position: relative;
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: clamp(1.5rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: 1.1rem;
  text-decoration: none; color: var(--fg); min-height: 240px;
}
.batch-card:hover { border-color: var(--accent); text-decoration: none; }
.batch-delete {
  position: absolute; top: .5rem; right: .5rem; z-index: 1;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--dim-2); font-size: 1.25rem; line-height: 1;
  cursor: pointer; -webkit-appearance: none; appearance: none; border-radius: 0;
}
.batch-delete:hover { color: var(--fg); }
.style-card {
  font: inherit; text-align: left; width: 100%; cursor: pointer;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.style-card .tag { font-size: var(--text-sm); }
.batch-delete-confirm {
  position: absolute; inset: 0; z-index: 2;
  background: var(--card-bg); border: 1px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.5rem; text-align: center;
}
.batch-delete-confirm[hidden] { display: none; }
.mini-ingredients { display: flex; flex-direction: column; gap: .2rem; }
.mini-ingredients span { font-size: var(--text-sm); color: var(--dim); }
.batch-delete-confirm span { font-size: var(--text-base); color: var(--dim); }
.batch-delete-confirm button {
  min-height: 44px; padding: 0 1.25rem; font: inherit; font-size: var(--text-sm); font-weight: 500;
  border: 1px solid var(--rule); background: transparent; color: var(--fg); cursor: pointer;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.batch-delete-confirm .yes { border-color: var(--accent); color: var(--accent); }
.batch-delete-confirm .yes:hover { background: rgba(255, 196, 0, .08); }
.batch-delete-confirm .no:hover { border-color: var(--fg); }
.batch-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.batch-card .no { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2); }
.batch-card .status {
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3em .6em; border: 1px solid var(--rule); color: var(--dim);
}
.batch-card.done .status { color: var(--accent); border-color: rgba(255, 196, 0, .4); }
.batch-card h3 { font-size: var(--text-lg); }
.batch-card .tag { font-size: var(--text-sm); color: var(--dim); }
.batch-card .stat-row {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule-soft); padding-top: 1rem; border-top: 1px solid var(--rule-soft);
}
.batch-card .stat-row div { background: var(--card-bg); padding: 0 .5rem 0 0; }
.batch-card .stat-row .v {
  display: block; font-weight: 900; font-style: italic; letter-spacing: -0.05em;
  font-size: 1.0625rem; font-variant-numeric: tabular-nums;
}
.batch-card .stat-row .k { display: block; margin-top: .25em; font-size: .6875rem; color: var(--dim-2); }
.batch-card .go { margin-top: .25rem; font-size: var(--text-sm); color: var(--accent); font-weight: 500; }
.batch-card .go::after { content: " \2192"; }

.batch-card.new {
  align-items: flex-start; background: transparent; border-style: dashed; border-color: var(--rule);
}
.batch-card.new .plus {
  width: 44px; height: 44px; border: 1.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.batch-card.new p { font-size: var(--text-sm); color: var(--dim); max-width: 30ch; }

/* skryje obsah kým prebehne kontrola prihlásenia, aby nebliklo neautorizované UI */
body.auth-pending main { visibility: hidden; }

@media (max-width: 640px) {
  .grid-batches { grid-template-columns: 1fr; }
  .who { display: none; }
}
