/* ==========================================================================
   Šablóna „Kaviarne bez webu“ · Minno Studio, v3 (premium, anti-slop)
   Tri vzhľady cez <html data-theme="minimal|cozy|sweet">.
   scrollcraft.css je mechanizmus, tu je len téma a rozloženie.
   ========================================================================== */

/* ------------------------------------------------------------- vzhľady -- */
:root {
  --sc-font-text: "Poppins", system-ui, sans-serif;
  --display-font: "Poppins", system-ui, sans-serif;
  --display-weight: 500;
  --display-track: -0.045em;
  --name-weight: 600;
  --name-track: -0.06em;
  --statement-weight: 300;
  --r: 22px;            /* panely a fotky */
  --r-sm: 14px;
  --inset: 12px;        /* odsadenie hero a kontakt panelu od okraja */
  --steam: 255 255 255;
  --bar-h: 72px;
  --demo-h: 0px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
}

[data-theme="minimal"] {
  --sc-canvas: #EEEFEC;
  --sc-surface: #FFFFFF;
  --sc-ink: #1B1C1A;
  --sc-ink-soft: #595D59;
  --sc-accent: #861A2C;          /* zrelá kávová čerešňa, nie tehlová */
  --sc-accent-ink: #FFFFFF;
  --sc-shadow-color: 150 6% 18%;
  --tint: #E2E4E0;
  --panel: radial-gradient(120% 90% at 50% 62%, #FBFBFA 0%, #E8E9E6 46%, #D3D5D1 100%);
  --glow: radial-gradient(closest-side, rgb(255 255 255 / .95), rgb(255 255 255 / 0));
  --deep: #1C1D1B; --deep-surface: #262825; --deep-ink: #ECEDEA; --deep-soft: #A9ACA7;
  --deep-accent: #E8798A; --deep-accent-ink: #1C1D1B;
  --steam: 100 104 100;
}

[data-theme="cozy"] {
  --sc-canvas: #0E1A14;
  --sc-surface: #15251C;
  --sc-ink: #F0E6D3;
  --sc-ink-soft: #B8AE99;
  --sc-accent: #E2A345;          /* jantár lampy */
  --sc-accent-ink: #1B1206;
  --sc-shadow-color: 150 40% 2%;
  --tint: #1B2E23;
  --display-font: "Fraunces", Georgia, serif;
  --display-weight: 400;
  --display-track: -0.025em;
  --name-weight: 400;
  --name-track: -0.035em;
  --statement-weight: 300;
  --r: 16px; --r-sm: 10px;
  --panel: radial-gradient(110% 85% at 50% 64%, #4E3716 0%, #1F2A1E 44%, #0A130E 100%);
  --glow: radial-gradient(closest-side, rgb(255 190 110 / .55), rgb(255 170 90 / 0));
  --deep: #EDE4D2; --deep-surface: #E3D8C2; --deep-ink: #14231A; --deep-soft: #4F5A4F;
  --deep-accent: #8E5A0E; --deep-accent-ink: #FFF8EC;
}

[data-theme="sweet"] {
  --sc-canvas: #FFF3F4;
  --sc-surface: #FFFFFF;
  --sc-ink: #3B1A2A;
  --sc-ink-soft: #7A4D61;
  --sc-accent: #C7366A;          /* malina */
  --sc-accent-ink: #FFFFFF;
  --sc-shadow-color: 340 45% 30%;
  --tint: #DCEED4;               /* pistácia, len plocha */
  --name-weight: 700;
  --r: 32px; --r-sm: 20px;
  --panel: radial-gradient(115% 90% at 50% 60%, #FFFFFF 0%, #FCE1E7 42%, #F4B7C7 100%);
  --glow: radial-gradient(closest-side, rgb(255 255 255 / .9), rgb(255 255 255 / 0));
  --deep: #3B1A2A; --deep-surface: #4A2337; --deep-ink: #FCE6EC; --deep-soft: #D8AFC0;
  --deep-accent: #FF8DB3; --deep-accent-ink: #3B1A2A;
}

/* tmavý / invertovaný podklad: znovu nastav aj color (taste.md) */
.is-deep {
  --sc-canvas: var(--deep); --sc-surface: var(--deep-surface);
  --sc-ink: var(--deep-ink); --sc-ink-soft: var(--deep-soft);
  --sc-accent: var(--deep-accent); --sc-accent-ink: var(--deep-accent-ink);
  --sc-hairline: color-mix(in oklab, var(--deep-ink) 14%, transparent);
  --sc-hairline-strong: color-mix(in oklab, var(--deep-ink) 26%, transparent);
  background: var(--deep); color: var(--deep-ink);
}

/* --------------------------------------------------------------- základ -- */
html { scroll-padding-top: calc(var(--bar-h) + 8px); }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body { font-weight: 400; }
[data-theme="cozy"] body { line-height: 1.66; letter-spacing: 0.002em; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sc-accent); color: var(--sc-accent-ink); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

.display {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1;
  font-size: clamp(3rem, 1.6rem + 5.4vw, 7.2rem);
  text-wrap: balance;
}
.lede { font-size: var(--sc-t-lg); line-height: 1.45; max-width: 32ch; text-wrap: pretty; }

/* ------------------------------------------------------------- tlačidlá -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 52px; padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 500; font-size: var(--sc-t-sm); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 140ms var(--sc-ease-out), background-color 180ms var(--sc-ease-out), border-color 180ms var(--sc-ease-out), color 180ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: 0 10px 24px -10px hsl(var(--sc-shadow-color) / .55); }
.btn--ghost { background: transparent; color: var(--sc-ink); border-color: var(--sc-hairline-strong); }
.btn--plain { padding: 0 1.3rem; }
.btn--sm { min-height: 42px; padding: 0 1.1rem; }
.btn svg.ic-lead { width: 17px; height: 17px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: color-mix(in oklab, var(--sc-accent) 86%, var(--sc-ink)); }
  .btn--ghost:hover { border-color: var(--sc-ink); }
}
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ----------------------------------------------------------------- lišta -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
  padding: 0 calc(var(--inset) + clamp(1rem, 2.4vw, 2.2rem));
  transition: background-color 260ms var(--sc-ease-out), box-shadow 260ms var(--sc-ease-out), color 260ms;
}
.bar[data-scrolled] { background: color-mix(in oklab, var(--sc-canvas) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--sc-hairline); }
.bar__nav { display: flex; gap: 1.75rem; font-size: var(--sc-t-sm); }
.bar__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: .78; transition: opacity 140ms ease; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { opacity: 1; } }
.bar__mark { justify-self: center; font-family: var(--display-font); font-weight: var(--name-weight); letter-spacing: -0.03em; text-decoration: none; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.bar__end { justify-self: end; display: flex; align-items: center; gap: .75rem; }

.status { display: inline-flex; align-items: center; gap: .5rem; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  padding: .45rem .85rem; border-radius: 999px; background: color-mix(in oklab, var(--sc-surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--sc-hairline); }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-ink-soft); }
.status[data-open="1"] .status__dot { background: #2E9B5B; box-shadow: 0 0 0 3px color-mix(in oklab, #2E9B5B 25%, transparent); animation: pulse 2.4s var(--sc-ease-out) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in oklab, #2E9B5B 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .status__dot { animation: none !important; } }
.status[data-open="0"] .status__dot { background: #C0473A; }

/* ------------------------------------------------------------------ hero -- */
.hero { --p: var(--sc-p, 0); --mx: 0; --my: 0; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--inset); }
.hero__panel {
  position: relative; height: 100%; overflow: clip; isolation: isolate;
  border-radius: var(--r);
  background: var(--panel);
}
.hero__panel::after { /* zrno: osvetlená miestnosť, nie plochá farba */
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background-image: var(--grain); opacity: .09; mix-blend-mode: overlay;
}
.hero__glow { position: absolute; z-index: 0; left: 50%; top: 58%; width: 70vmax; height: 50vmax; translate: -50% -50%; background: var(--glow); pointer-events: none; }


.hero__name {
  position: absolute; z-index: 2; left: 0; right: 0; top: 19%;
  display: grid; justify-items: center;
  font-family: var(--display-font); font-weight: var(--name-weight); letter-spacing: var(--name-track);
  line-height: .86; text-align: center; white-space: nowrap;
  font-size: clamp(4rem, 15vw, 15rem);       /* JS upresní podľa šírky */
  transform-origin: 50% 70%;
}
.hero__line { display: block; width: max-content; }
.js .hero__name:not(.is-fit) { opacity: 0; animation: show 1ms 1.2s forwards; }  /* poistka, ak JS nepríde */
@keyframes show { to { opacity: 1; } }
.hero__name.is-fit { transition: opacity 500ms var(--sc-ease-out); }

.hero__cup {
  position: absolute; z-index: 3; left: 50%; top: var(--cup-top, 36%);
  width: min(34vw, 62vh); translate: -50% 0;
}
[data-theme="sweet"] .hero__cup { width: min(40vw, 72vh); }
.hero__cup img { width: 100%; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 34px 40px hsl(var(--sc-shadow-color) / .38)) drop-shadow(0 6px 10px hsl(var(--sc-shadow-color) / .22)); }
.hero__shadow { position: absolute; z-index: 0; left: 12%; right: 12%; bottom: -10%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(var(--sc-shadow-color) / .42), transparent); filter: blur(10px); }
.hero__steam {
  position: absolute; z-index: 2; pointer-events: none; width: 26%; height: auto;
  left: calc(var(--sx, 50%) - 13%); bottom: calc(100% - var(--sy, 26%));
  fill: none; stroke: rgb(var(--steam) / .5); stroke-width: 7; stroke-linecap: round; filter: blur(6px);
}
[data-theme="minimal"] .hero__cup { --sx: 44%; --sy: 18%; }
[data-theme="cozy"]    .hero__cup { --sx: 46%; --sy: 20%; }
[data-theme="sweet"]   .hero__cup { --sx: 76%; --sy: 12%; }
.hero__steam path { stroke-dasharray: 40 220; animation: steam 5.5s linear infinite; }
.hero__steam path:nth-child(2) { animation-delay: -1.8s; animation-duration: 6.2s; }
.hero__steam path:nth-child(3) { animation-delay: -3.4s; animation-duration: 5.1s; }
@keyframes steam { from { stroke-dashoffset: 260; opacity: 0; } 20% { opacity: 1; } 80% { opacity: .8; } to { stroke-dashoffset: 0; opacity: 0; } }
.is-offscreen .hero__steam path { animation-play-state: paused; }

/* zrnká / maliny: tri hĺbky. Ďaleko = malé a rozmazané, blízko = veľké a rozmazané. */
.bit { position: absolute; max-width: none; height: auto; pointer-events: none; filter: drop-shadow(0 14px 16px hsl(var(--sc-shadow-color) / .3)); }
.bit--1 { z-index: 1; width: clamp(34px, 3.2vw, 56px); left: 21%; top: 16%; rotate: -24deg; filter: blur(2px); opacity: .85; --d: .35; }
.bit--2 { z-index: 1; width: clamp(40px, 3.8vw, 64px); right: 18%; top: 22%; rotate: 32deg; filter: blur(1.5px); opacity: .9; --d: .45; }
.bit--3 { z-index: 4; width: clamp(56px, 5.6vw, 96px); right: 27%; top: 58%; rotate: -12deg; --d: .8; --dx: 6; }
.bit--4 { z-index: 4; width: clamp(80px, 8vw, 140px); left: 7%; top: 42%; rotate: 18deg; filter: blur(5px); --d: 1.4; --dx: -14; }
.bit--5 { z-index: 4; width: clamp(90px, 9vw, 160px); right: 5%; top: 50%; rotate: -38deg; filter: blur(7px); --d: 1.8; --dx: 12; }

.hero__foot {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.hero__info { display: grid; gap: 1.1rem; max-width: 30rem; }
.hero__swap { display: grid; }
.hero__swap > * { grid-area: 1 / 1; }
.hero__lede { font-size: var(--sc-t-base); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
.hero__beat { display: grid; gap: .1rem; opacity: 0; }
.hero__beat span:first-child { font-family: var(--display-font); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: var(--sc-t-xl); line-height: 1.1; }
.hero__beat span:last-child { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.fact { justify-self: start; display: inline-flex; align-items: baseline; gap: .4rem; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-decoration: none; padding-block: .6rem; }
.fact strong { font-size: var(--sc-t-lg); font-weight: 600; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.fact__star { color: #D8960B; }
@media (hover: hover) and (pointer: fine) { .fact:hover { color: var(--sc-ink); text-decoration: underline; text-underline-offset: .3em; } }

/* vstup pri načítaní: šálka a zrnká vyplávajú */
@media (prefers-reduced-motion: no-preference) {
  .hero__cup { animation: rise 1100ms var(--sc-ease-out) both 120ms; }
  .bit { animation: fade 1200ms var(--sc-ease-out) both 300ms; }
  @keyframes rise { from { opacity: 0; translate: -50% 6vh; } to { opacity: 1; translate: -50% 0; } }
  @keyframes fade { from { opacity: 0; } }

  /* pohyb hero: scroll (--p) + jemné naklonenie myšou (--mx, --my), len transform/opacity */
  .hero__name { transform: translate3d(calc(var(--mx) * -6px), calc(var(--p) * -6vh + var(--my) * -4px), 0) scale(calc(1 - var(--p) * 0.08)); }
  .hero__cup { transform: translate3d(calc(var(--mx) * 14px), calc(var(--p) * -16vh + var(--my) * 10px), 0) rotate(calc(var(--p) * -7deg)) scale(calc(1 + var(--p) * 0.06)); }
  .bit { transform: translate3d(calc(var(--mx) * var(--d) * 22px + var(--p) * var(--dx, 0) * 1vw), calc(var(--p) * var(--d) * -16vh + var(--my) * var(--d) * 16px), 0) rotate(calc(var(--p) * var(--d) * 50deg)); }
  .hero__glow { transform: translate3d(calc(var(--mx) * -10px), calc(var(--p) * -4vh), 0); }
  .hero__lede { opacity: clamp(0, calc(1 - (var(--p) - 0.2) * 3), 1); }
  .hero__beat { opacity: clamp(0, calc((var(--p) - 0.45) * 3.5), 1); transform: translate3d(0, calc((1 - var(--p)) * 1.2rem), 0); }
}

/* --------------------------------------------------------------- o nás -- */
.about { padding-block: clamp(6rem, 13vw, 13rem) clamp(4rem, 9vw, 9rem); }
.statement {
  font-family: var(--display-font); font-weight: var(--statement-weight);
  font-size: clamp(2.2rem, 1rem + 4.2vw, 5.4rem); line-height: 1.08; letter-spacing: -0.04em;
  max-width: 17ch; text-wrap: balance;
}
[data-theme="cozy"] .statement { letter-spacing: -0.02em; font-weight: 300; }
.statement em { font-style: italic; font-weight: inherit; }
.about__row { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-top: clamp(3rem, 7vw, 6.5rem); }
.about__photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--sc-e2); }
.about__photo img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; max-width: none; }
.about__text { display: grid; gap: 1.3rem; padding-bottom: .5rem; }
.about__text .lede { color: var(--sc-ink); }
.about__sign { font-family: var(--display-font); font-weight: var(--display-weight); font-size: var(--sc-t-lg); letter-spacing: -0.02em; padding-top: 1rem; border-top: 1px solid var(--sc-hairline); }

/* -------------------------------------------------------------- ponuka -- */
.menu { padding-block: clamp(5rem, 11vw, 11rem); border-radius: var(--r) var(--r) 0 0; margin-inline: var(--inset); border-radius: var(--r); }
.menu__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--sc-hairline); }
.tabs { display: flex; gap: .4rem; padding: .35rem; border-radius: 999px; background: color-mix(in oklab, var(--sc-ink) 7%, transparent); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; font-size: var(--sc-t-sm); font-weight: 500; text-decoration: none; color: var(--sc-ink-soft); transition: background-color 200ms var(--sc-ease-out), color 200ms; }
.tabs a[aria-current="true"] { background: var(--sc-ink); color: var(--sc-canvas); }
@media (hover: hover) and (pointer: fine) { .tabs a:not([aria-current="true"]):hover { color: var(--sc-ink); } }

.menu__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 7vw, 7.5rem); align-items: start; }
.menu__window {
  position: sticky; top: calc(var(--bar-h) + 3vh);
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--sc-surface);
  border-radius: 999px 999px var(--r) var(--r);           /* oblúk */
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .45);
}
[data-theme="cozy"] .menu__window { border-radius: var(--r); }
.menu__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 380ms var(--sc-ease-out), transform 600ms var(--sc-ease-out); }
.menu__window img.is-on { opacity: 1; transform: none; }
.menu__groups { display: grid; gap: clamp(4rem, 9vw, 8rem); }
.group { display: grid; gap: 1.4rem; scroll-margin-top: calc(var(--bar-h) + 4vh); }
.group__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.group__title { font-family: var(--display-font); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); line-height: 1; }
.group__count { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.group__note { color: var(--sc-ink-soft); max-width: 46ch; }
.group__inline { display: none; }
.items { list-style: none; margin: 0; padding: 0; display: grid; }
.item { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem 1.5rem; padding: 1.15rem 0; border-top: 1px solid var(--sc-hairline); }
.item__name, .item__desc { transition: transform 240ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .item:hover .item__name, .item:hover .item__desc { transform: translateX(.6rem); } }
.item:last-child { border-bottom: 1px solid var(--sc-hairline); }
.item__name { font-size: var(--sc-t-lg); font-weight: 500; letter-spacing: -0.015em; }
.item__price { font-variant-numeric: tabular-nums; font-weight: 500; font-size: var(--sc-t-lg); letter-spacing: -0.01em; }
.item__desc { grid-column: 1 / -1; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.menu__note { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }

/* --------------------------------------------------------- hodnotenie -- */
.rating { padding-block: clamp(5rem, 11vw, 10rem); }
.rating__band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem); border-block: 1px solid var(--sc-hairline-strong); }
.rating__num {
  font-family: var(--display-font); font-weight: 300;
  font-size: clamp(6rem, 2rem + 13vw, 14rem); line-height: .8; letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
[data-theme="cozy"] .rating__num { font-weight: 400; letter-spacing: -0.04em; }
.rating__mid { display: grid; gap: .8rem; }
.rating__line { font-size: var(--sc-t-lg); max-width: 26ch; line-height: 1.4; color: var(--sc-ink-soft); }
.stars { position: relative; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); letter-spacing: .1em; line-height: 1; width: max-content; }
.stars__base { color: var(--sc-hairline-strong); }
.stars__fill { position: absolute; inset: 0 auto 0 0; width: var(--fill); overflow: hidden; white-space: nowrap; color: #E5A00D; }
@media (prefers-reduced-motion: no-preference) {
  .stars__fill { width: 0; transition: width 1400ms var(--sc-ease-out) 200ms; }
  .rating.is-seen .stars__fill { width: var(--fill); }
}

/* --------------------------------------------------------- kedy k nám -- */
.day { --p: var(--sc-p, 0); }
.day__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: calc(var(--bar-h) + 1vh) var(--sc-gutter) 3.5vh var(--inset);
}
.day__photo { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: #111; }
.day__photo img { width: 100%; height: 100%; object-fit: cover; max-width: none; filter: brightness(var(--lum, 1)) saturate(var(--sat, 1)); }
.day__sky { position: absolute; inset: 0; background: var(--sky, transparent); mix-blend-mode: multiply; }
.day__sky::after { content: ""; position: absolute; inset: 0; background: var(--glow-c, transparent); mix-blend-mode: screen; }
.day__photo::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.day__panel { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; min-width: 0; }
.day__title { font-size: var(--sc-t-lg); font-weight: 600; letter-spacing: -0.01em; }
.day__clock { font-family: var(--display-font); font-weight: 300; letter-spacing: -0.06em; font-size: clamp(5rem, 2rem + 9vw, 11.5rem); line-height: .86; font-variant-numeric: tabular-nums; }
[data-theme="cozy"] .day__clock { font-weight: 400; letter-spacing: -0.04em; }
.day__state { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--sc-t-xl); font-weight: 500; line-height: 1.2; }
.day__state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sc-ink-soft); }
.day__state[data-open="1"]::before { background: #2E9B5B; }
.day__state[data-open="0"] { color: var(--sc-ink-soft); }
.day__tip { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.4; max-width: 26ch; min-height: 2.8em; }
.day__today { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.ruler { margin-top: .75rem; }
.ruler__track { position: relative; height: 4px; border-radius: 999px; background: var(--sc-hairline-strong); }
.ruler__open { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--sc-accent); left: var(--o1, 0%); width: calc(var(--o2, 0%) - var(--o1, 0%)); }
.ruler__sun { position: absolute; top: 50%; left: var(--sun, 0%); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--sc-canvas); border: 5px solid var(--sc-accent); box-shadow: var(--sc-e2); }
.ruler__now { position: absolute; top: -8px; bottom: -8px; left: var(--now, -10%); width: 1px; background: var(--sc-ink); }
.ruler__now span { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ruler__ticks { display: flex; justify-content: space-between; margin-top: .8rem; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- kontakt -- */
.visit { padding-top: clamp(3rem, 6vw, 6rem); }
.visit__panel { margin-inline: var(--inset); border-radius: var(--r); padding: clamp(2rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem); position: relative; overflow: clip; }
.visit__panel::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.visit__grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative; z-index: 1; }
.visit__card { display: grid; gap: 1.6rem; align-content: start; }
.visit__card .display { font-size: clamp(2.8rem, 1.6rem + 4vw, 5.6rem); }
.visit__addr { font-style: normal; font-size: var(--sc-t-xl); line-height: 1.3; letter-spacing: -0.015em; }
.visit__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.visit__links a { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; font-weight: 500; text-decoration: none; }
.visit__links a span { border-bottom: 1px solid var(--sc-hairline-strong); }
.visit__links svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.visit__h3 { font-size: var(--sc-t-lg); font-weight: 600; letter-spacing: -0.01em; margin-bottom: .75rem; }
.hours { border-collapse: collapse; width: 100%; font-size: var(--sc-t-sm); }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-top: 1px solid var(--sc-hairline); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--sc-ink); }
.hours tr.is-today th::after { content: "dnes"; margin-left: .6rem; padding: .1rem .5rem; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: var(--sc-accent); color: var(--sc-accent-ink); vertical-align: 1px; }
.hours__note { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); margin-top: .8rem; }

.map { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--sc-surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  display: grid; place-content: center; justify-items: center; gap: .5rem; color: var(--sc-ink);
  background:
    radial-gradient(circle at 50% 46%, color-mix(in oklab, var(--sc-accent) 22%, transparent) 0 18%, transparent 19%),
    linear-gradient(var(--sc-hairline) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, var(--sc-hairline) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--sc-surface);
}
.map__pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--sc-accent); box-shadow: var(--sc-e2); margin-bottom: .6rem; transition: transform 220ms var(--sc-ease-out); }
.map__label { font-weight: 600; font-size: var(--sc-t-lg); }
.map__hint { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
@media (hover: hover) and (pointer: fine) { .map__load:hover .map__pin { transform: translate(3px, -3px); } }

.foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; padding-bottom: calc(2rem + var(--demo-h)); }
.foot__mark { font-family: var(--display-font); font-weight: var(--name-weight); letter-spacing: -0.03em; font-size: var(--sc-t-lg); }
.foot__small { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.foot { align-items: center; }

/* poznámka „toto je ukážka“ pred pätičkou */
.note { margin-top: clamp(2.5rem, 5vw, 4rem); }
.note__card { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: var(--r); background: var(--tint); }
[data-theme="cozy"] .note__card { background: var(--sc-surface); }
.note__text { display: grid; gap: .6rem; max-width: 60ch; }
.note__title { font-family: var(--display-font); font-weight: var(--display-weight); letter-spacing: -0.02em; font-size: var(--sc-t-xl); line-height: 1.15; text-wrap: balance; }
.note__text p { color: var(--sc-ink-soft); text-wrap: pretty; }
.note__cta { flex: none; }
@media (max-width: 760px) {
  .note__card { flex-direction: column; align-items: stretch; }
  .note__cta { width: 100%; }
}
.foot__top { min-height: 44px; gap: .5rem; }
.foot__top svg { transition: transform 200ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .foot__top:hover svg { transform: translateY(-3px); } }
@media (max-width: 760px) { .foot__top { width: 100%; } }

/* --------------------------------------------------------- demo pruh -- */
.demo {
  position: fixed; z-index: 80; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: .75rem;
  padding: .45rem .45rem .45rem 1.1rem; max-width: calc(100vw - 24px);
  border-radius: 999px; background: rgb(23 20 15 / .92); backdrop-filter: blur(10px); color: #EDEEEB; font-size: 12.5px;
  box-shadow: 0 14px 34px rgb(0 0 0 / .28);
}
.demo p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo a { color: #FFD27A; font-weight: 600; }
.demo__close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: inherit; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.demo[hidden] { display: none; }

/* náhľad vzhľadov (len v ukážke šablóny) */
/* prepínač je v demo pruhu, nikdy nezakrýva obsah */
.preview { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .09); }
.demo--preview { padding-right: .45rem; }
.preview button { border: 0; border-radius: 999px; min-height: 30px; padding: 0 .8rem; background: transparent; color: #EDEEEB; font-size: 12px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.preview button[aria-pressed="true"] { background: #EDEEEB; color: #17140F; }

/* ----------------------------------------------------------------- tablet -- */
@media (max-width: 1100px) {
  .bar__nav { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .bar__mark { justify-self: start; max-width: 50vw; }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}

/* ----------------------------------------------------------------- mobil -- */
@media (max-width: 760px) {
  :root { --bar-h: 60px; --inset: 8px; }
  .bar { padding: 0 calc(var(--inset) + 1rem); gap: .5rem; }
  .bar__cta { display: none; }
  .bar__mark { font-size: 1.05rem; }
  .status { font-size: 12px; padding: .4rem .7rem; }

  .hero__name { top: 15%; }
  .hero__cup { width: min(80vw, 40svh); }
  [data-theme="sweet"] .hero__cup { width: min(88vw, 52svh); }
  .bit--1 { left: 8%; top: 13%; }
  .bit--2 { right: 7%; top: 30%; }
  .bit--3 { right: 8%; top: 55%; }
  .bit--4 { left: -4%; bottom: 30%; }
  .bit--4, .bit--5 { display: none; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.1rem 1.1rem calc(1.1rem + var(--demo-h)); }
  .hero__lede { font-size: var(--sc-t-sm); }
  .hero__info { gap: .8rem; }
  .hero__foot .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__foot .btn { padding: 0 1rem; min-height: 50px; }
  .hero__foot .btn--plain { padding: 0 1rem; }
  /* mobil: úvod nie je pinovaný (site.js). Hĺbka sa hýbe počas bežného odscrollovania:
     --q ide 0 → 1, kým úvod odchádza z obrazovky; nič nedrží palec. */
  .hero { --q: clamp(0, calc((var(--sc-p, 0.5) - 0.5) * 2), 1); }
  .hero__lede { opacity: 1 !important; }
  .hero__beat { display: none; }
  .bit--4 { display: block; width: 74px; left: -3%; top: 50%; bottom: auto; }
  @media (prefers-reduced-motion: no-preference) {
    .hero__name { transform: translate3d(0, calc(var(--q) * 14svh), 0) scale(calc(1 - var(--q) * 0.06)); }
    .hero__cup { transform: translate3d(0, calc(var(--q) * -15svh), 0) rotate(calc(var(--q) * -12deg)) scale(calc(1 + var(--q) * 0.09)); }
    .bit { transform: translate3d(calc(var(--q) * var(--dx, 0) * 1.4vw), calc(var(--q) * var(--d) * -38svh), 0) rotate(calc(var(--q) * var(--d) * 90deg)); }
    .hero__glow { transform: translate3d(0, calc(var(--q) * 10svh), 0); }
    /* jemné vznášanie zrniek aj bez scrollu (vlastnosť translate, nezráža sa so scrollom) */
    .bit--1 { animation: fade 1200ms var(--sc-ease-out) both 300ms, float 5.2s ease-in-out 1.5s infinite alternate; }
    .bit--2 { animation: fade 1200ms var(--sc-ease-out) both 300ms, float 6.1s ease-in-out 1.5s infinite alternate-reverse; }
    .bit--3 { animation: fade 1200ms var(--sc-ease-out) both 300ms, float 4.6s ease-in-out 1.5s infinite alternate; }
    .bit--4 { animation: fade 1200ms var(--sc-ease-out) both 300ms, float 5.6s ease-in-out 1.5s infinite alternate-reverse; }
    .is-offscreen .bit { animation-play-state: paused; }
  }
  @keyframes float { from { translate: 0 -5px; } to { translate: 0 5px; } }

  .about__row, .menu__grid, .rating__band, .visit__grid { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 3; }
  .menu { margin-inline: var(--inset); }
  .menu__head { align-items: flex-start; }
  .tabs { width: 100%; justify-content: space-between; }
  .tabs a { padding: 0 .8rem; }
  .menu__window { display: none; }
  .group__inline { display: block; margin: 0 0 .5rem; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; }
  .group__inline img { width: 100%; height: 100%; object-fit: cover; }
  .rating__band { gap: 1.25rem; justify-items: start; }

  .day__stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 36svh) auto; gap: 1rem; padding: calc(var(--bar-h) + .5svh) var(--inset) calc(var(--demo-h) + 1.5svh); }
  .day__panel { justify-content: start; gap: .55rem; padding-inline: .9rem; }
  .day__clock { font-size: clamp(4rem, 21vw, 6rem); }
  .day__state { font-size: var(--sc-t-lg); }
  .day__tip { font-size: var(--sc-t-base); min-height: 2.9em; }

  .map { aspect-ratio: 4 / 3.4; }
  .demo { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); translate: none; max-width: none; border-radius: 18px; }
  .demo p { white-space: normal; line-height: 1.35; }
  .demo--preview { flex-wrap: wrap; padding: .6rem .5rem .5rem .9rem; row-gap: .5rem; }
  .demo--preview p { flex: 1 1 100%; }
  .demo--preview .preview { flex: 1 1 100%; }
  .demo--preview .preview button { flex: 1; min-height: 36px; font-size: 13px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .hero__lede { display: none; }
  .hero__cup { width: min(70vw, 36svh); }
}

/* ------------------------------------------------ menej pohybu: bez pinu -- */
@media (prefers-reduced-motion: reduce) {
  .hero, .day { height: auto !important; }
  .hero__stage { position: relative; }
  .day__stage { position: relative; height: auto; min-height: 100svh; }
  .hero__beat, .hero__steam { display: none; }
}
