/* Zákaznícka rezervácia – mobil najprv, kompaktne; na počítači jedna karta v strede */
.app { max-width: 520px; margin: 0 auto; min-height: calc(100dvh - 30px); display: flex; flex-direction: column; position: relative; }
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 14px; background: rgba(246,239,229,.9); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--spring); }
.back:active { transform: scale(.9); }
.back svg { width: 20px; height: 20px; }
.site-back { grid-column: 1; grid-row: 1; text-decoration: none; color: var(--ink); }
.pfoot { margin: 34px 2px 0; font-size: 12px; color: var(--muted); text-align: center; }
.pfoot a { color: var(--muted); text-underline-offset: 3px; }
.brand { grid-column: 2; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; }
.brand small { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.prog { grid-column: 3; justify-self: end; display: flex; gap: 4px; }
.prog i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .35s var(--spring), background .3s; }
.prog i.on { width: 18px; background: var(--ink); }
.prog i.ok { background: var(--accent); }

.stage { flex: 1; padding: 6px 16px calc(110px + var(--safe-b)); }
.step { animation: in .45s var(--ease) both; }
.step.out-back { animation-name: inBack; }
@keyframes in { from { opacity: 0; transform: translateX(26px); } }
@keyframes inBack { from { opacity: 0; transform: translateX(-26px); } }
.h { font-size: clamp(26px, 7.4vw, 32px); line-height: 1.08; margin: 10px 2px 16px; }
.h.c, .c { text-align: center; }
.lead { color: var(--ink-2); margin: -6px 0 18px; }
.hint, .fine { font-size: 13px; color: var(--muted); }
.hint { text-align: center; margin: 22px 0 0; }
.hint a { color: var(--ink); }

/* 1 · kategórie + služby */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
@media (min-width: 560px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--spring); }
.cat:active { transform: scale(.97); }
.cat .ci { width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; flex: none; transition: background .2s; }
.cat .ci svg { width: 19px; height: 19px; }
.cat b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.cat small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.cat[aria-pressed="true"] .ci { background: rgba(255,250,242,.14); }
.cat[aria-pressed="true"] small { color: rgba(255,250,242,.65); }
.svc-list { display: grid; gap: 10px; }
.svc { background: var(--paper); border-radius: var(--r); padding: 15px 15px 13px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .3s var(--spring); }
.svc.sel { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--ink); }
.svc h3 { font-size: 19px; line-height: 1.2; }
.svc p { margin: 3px 0 11px; color: var(--muted); font-size: 13.5px; }
.svc .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.svc .chip { min-height: 40px; padding: 0 .9em; font-size: 14px; }
.svc .chip b { font-weight: 600; }

/* 2 · termín */
.pick-sum { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px 6px 8px; margin-top: 4px; }
.pick-sum b { font-weight: 600; color: var(--ink); }
.pick-sum .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 11px; }
.soonest { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; transition: transform .25s var(--spring); }
.soonest:active { transform: scale(.98); }
.soonest .bolt { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,250,242,.12); display: grid; place-items: center; flex: none; }
.soonest .bolt svg { width: 18px; height: 18px; }
.soonest small { display: block; opacity: .65; font-size: 12px; }
.soonest b { font-weight: 600; }
.soonest .go { margin-left: auto; opacity: .7; }
.month { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 2px 8px; min-height: 16px; }
.dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x proximity; scroll-padding: 16px; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 54px; padding: 8px 0 7px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; gap: 1px; scroll-snap-align: start; transition: background .2s, color .2s, transform .25s var(--spring); }
.date:active { transform: scale(.94); }
.date .wd { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.date .dn { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.date .av { height: 5px; display: flex; gap: 2px; margin-top: 2px; }
.date .av i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.date.none { opacity: .38; }
.date.none .dn { text-decoration: line-through; text-decoration-thickness: 1px; }
.date[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.date[aria-selected="true"] .wd { color: rgba(255,250,242,.65); }
.date[aria-selected="true"] .av i { background: var(--paper); }
.times { margin-top: 8px; min-height: 200px; }
.tgroup { margin-bottom: 14px; animation: in .35s var(--ease) both; }
.tgroup h4 { margin: 0 2px 8px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tgroup h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tgrid .chip { min-height: 44px; padding: 0; font-variant-numeric: tabular-nums; font-size: 15px; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); background: var(--paper-2); border-radius: var(--r); }
.empty b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 19px; margin-bottom: 4px; }
.skel { height: 44px; border-radius: 999px; background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2)); background-size: 200% 100%; animation: sh 1.1s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* 3 · údaje */
.recap { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 4px 14px; margin-bottom: 14px; }
.recap .row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.recap .row + .row { border-top: 1px solid var(--line); }
.recap .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.recap .ic svg { width: 16px; height: 16px; }
.recap .tx { flex: 1; min-width: 0; }
.recap .tx b { display: block; font-weight: 600; font-size: 14.5px; }
.recap .tx span { font-size: 13px; color: var(--muted); }
.recap .edit { font-size: 13px; color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0 6px 6px; }
.recap .price { font-family: var(--serif); font-size: 22px; }
.form { display: grid; gap: 9px; }
.add-note { justify-self: start; font-size: 14px; color: var(--accent-d); padding: 4px 2px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 6px 2px 0; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--paper); flex: none; margin: 0; display: grid; place-items: center; transition: background .2s; }
.check input:checked { background: var(--ink); box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check.err input { box-shadow: inset 0 0 0 1.5px var(--warn); }
.fine { margin: 2px 2px 0; }

/* spodná lišta */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 12px; background: rgba(255,250,242,.94); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 -1px 0 var(--line); animation: up .4s var(--spring) both; }
@keyframes up { from { transform: translateY(100%); } }
.bar > * { max-width: 520px; }
.bar-sum { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); line-height: 1.3; }
.bar-sum b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .btn { flex: none; min-width: 148px; }
.bar .btn.loading { pointer-events: none; }
.bar .btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 560px) { .bar { justify-content: center; } .bar-sum { flex: 0 1 340px; } }

/* 4 · hotovo */
.done { text-align: center; padding-top: 16px; }
.tick { width: 84px; height: 84px; margin: 6px auto 4px; }
.tick svg { width: 100%; height: 100%; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) .1s forwards; fill: var(--ok-soft); fill-opacity: 0; transition: fill-opacity .4s .5s; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .6s forwards; }
.done .tick circle { fill-opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ticket { text-align: left; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); margin: 6px 0 16px; overflow: hidden; }
.ticket .tt { padding: 16px 16px 14px; }
.ticket .tt small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ticket .tt h3 { font-size: 22px; margin: 3px 0 2px; }
.ticket .tt p { margin: 0; color: var(--ink-2); }
.ticket .cut { height: 1px; margin: 0 14px; background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 0); background-size: 10px 1px; position: relative; }
.ticket .cut::before, .ticket .cut::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.ticket .cut::before { left: -24px; } .ticket .cut::after { right: -24px; }
.ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 0; padding: 14px 16px 16px; }
.ticket dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ticket dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.ticket .st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.ticket .st.x { background: var(--warn-soft); color: var(--warn); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acts .btn { padding: 0 .8em; font-size: 14.5px; }
.link-btn { margin: 18px auto 0; display: block; font-size: 14px; color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.conv { margin: 22px auto 0; display: inline-flex; gap: 8px; align-items: center; font: 500 12px/1.3 ui-monospace, "Cascadia Mono", monospace; color: var(--ok); background: var(--ok-soft); padding: 8px 12px; border-radius: 10px; text-align: left; }
.conv::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px rgba(79,107,74,.18); }

/* správa */
.m-acts { display: grid; gap: 8px; }
.danger { color: var(--warn) !important; }
.danger-fill { background: var(--warn); }
.confirm { background: var(--warn-soft); border-radius: var(--r); padding: 14px; text-align: center; animation: in .3s var(--ease); }
.confirm p { margin: 0 0 10px; }
.confirm div { display: flex; gap: 8px; justify-content: center; }

/* vloženie do webu */
.embed .test-ribbon, .embed .brand { display: none; }
.embed .top { grid-template-columns: 44px 1fr 44px; padding-top: 6px; }
.embed body, body.embed { background: transparent; }
@media (min-width: 700px) { .stage { padding-top: 14px; } .h { margin-top: 18px; } }

/* núdzový plán pri zlyhaní odoslania */
.fail { background: var(--warn-soft); border-radius: var(--r); padding: 14px; animation: in .3s var(--ease); }
.fail b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); }
.fail p { margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.fail-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fail-btns .btn { padding: 0 .4em; font-size: 14px; min-height: 46px; }
.fail .link-btn { margin-top: 12px; }

/* núdzový plán pri zlyhaní odoslania */
.fail { background: var(--warn-soft); border-radius: var(--r); padding: 14px; animation: in .3s var(--ease); }
.fail b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); }
.fail p { margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.fail-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fail-btns .btn { padding: 0 .4em; font-size: 14px; min-height: 46px; }
.fail .link-btn { margin-top: 12px; }


/* zľavový kód */
.code-hint { margin: -2px 2px 0; font-size: 13px; color: var(--ok); }
.code-hint.bad { color: var(--warn); }
@media (min-width: 960px) { .form > .code-hint { grid-column: 1 / -1; } }

/* ================= NOTEBOOK A PC: vycentrovaný blok, poradie logo → kroky → obsah, bočná karta zarovnaná s krokmi ================= */
.bar-detail { display: none; }
@media (min-width: 960px) {
  body { background: radial-gradient(1200px 600px at 80% -10%, #fbf4ea 0, transparent 60%), var(--bg); }
  .app { max-width: 1100px; min-height: 100dvh; padding: 28px 40px 60px; display: grid; column-gap: 56px; row-gap: 0;
    grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "brand brand" "prog bar" "stage bar"; align-content: start; }
  body:not(.has-bar) .app { grid-template-columns: minmax(0, 680px); grid-template-areas: "brand" "prog" "stage"; justify-content: center; }
  .top { display: contents; }
  .brand { grid-area: brand; justify-self: start; flex-direction: row; align-items: center; gap: 14px; margin-bottom: 34px; }
  .brand .wordmark { width: 104px; height: 24px; }
  .brand small { font-size: 11px; padding-left: 14px; border-left: 1px solid var(--line-2); }
  .prog { grid-area: prog; justify-self: start; align-self: center; gap: 4px; margin-bottom: 22px; visibility: visible !important; }
  .prog i { width: auto; height: auto; border-radius: 999px; background: none; padding: 7px 14px 7px 8px; display: flex; align-items: center; gap: 8px; font: 500 13.5px/1 var(--sans); font-style: normal; color: var(--muted); transition: background .25s, color .25s; }
  .prog i::before { content: attr(data-n); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
  .prog i::after { content: attr(data-l); }
  .prog i + i { position: relative; margin-left: 18px; }
  .prog i + i::before { box-shadow: inset 0 0 0 1px var(--line-2); }
  .prog i + i { --sep: 1; }
  .prog i.on { width: auto; background: var(--ink); color: var(--paper); }
  .prog i.on::before { box-shadow: none; background: rgba(255,250,242,.16); }
  .prog i.ok { width: auto; background: none; color: var(--ink); }
  .prog i.ok::before { content: "✓"; background: var(--accent-soft); box-shadow: none; }
  .back { grid-area: prog; justify-self: end; align-self: center; margin-bottom: 22px; width: auto; height: 38px; padding: 0 16px 0 10px; border-radius: 999px; display: flex; gap: 4px; font-size: 14px; }
  .back::after { content: "Späť"; }
  .site-back::after { content: "Späť na web"; }
  .pfoot { text-align: left; margin-top: 40px; }

  .stage { grid-area: stage; padding: 0; }
  .h { font-size: 40px; margin: 0 0 22px; }
  .step { animation-name: fade; }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } }

  /* 1 · kategórie v jednom rade, služby v dvoch stĺpcoch */
  .cats { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
  .cat { min-height: 68px; padding: 12px 12px; gap: 9px; }
  .cat b { font-size: 14px; }
  .cat small { white-space: nowrap; font-size: 11.5px; }
  .svc-list { grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
  .svc { padding: 18px 18px 16px; display: flex; flex-direction: column; }
  .svc .opts { margin-top: auto; }
  .svc h3 { font-size: 21px; }
  .svc:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
  .chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .chip[aria-pressed="true"]:hover { box-shadow: none; }
  .hint { text-align: left; }

  /* 2 · dni ako kalendár, časy v 6 stĺpcoch */
  .pick-sum { margin: 0 0 10px; }
  .soonest { max-width: 440px; }
  .dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; overflow: visible; margin: 0 0 6px; padding: 0; }
  .date { width: auto; padding: 10px 0 9px; }
  .date:not([disabled]):hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .date .dn { font-size: 23px; }
  .times { margin-top: 18px; }
  .tgrid { grid-template-columns: repeat(6, 1fr); gap: 8px; }

  /* 3 · údaje: meno a telefón vedľa seba, súhrn je v bočnej karte */
  .recap { display: none; }
  .form { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form > * { grid-column: 1 / -1; }
  .form > .field:nth-of-type(1), .form > .field:nth-of-type(2) { grid-column: auto; }

  /* bočná karta „Vaša rezervácia“ – začína na úrovni krokov, drží sa pri posúvaní */
  .bar { grid-area: bar; position: sticky; top: 24px; align-self: start; left: auto; right: auto; bottom: auto; width: 340px;
    flex-direction: column; align-items: stretch; gap: 14px; padding: 0 0 18px; border-radius: 24px; overflow: hidden;
    background: var(--paper); box-shadow: 0 30px 60px -30px rgba(36,23,15,.45), inset 0 0 0 1px var(--line); animation: fade .4s var(--ease) both; }
  .bar > * { max-width: none; }
  .bar-detail { display: block; }
  .bar-detail img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: 50% 60%; }
  .bar-detail h2 { font-size: 22px; padding: 16px 20px 4px; }
  .bar-detail dl { margin: 0; padding: 0 20px; }
  .bar-detail dl > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .bar-detail dt { color: var(--muted); }
  .bar-detail dd { margin: 0; font-weight: 600; }
  .bar-detail dd small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
  .bar-detail dd.na { font-weight: 400; color: var(--muted); font-style: italic; }
  .bar-sum { display: none; }
  .bar .btn { margin: 0 20px; min-width: 0; }
  .toast { bottom: 32px; }
}
@media (min-width: 960px) and (max-height: 720px) { .bar-detail img { display: none; } .bar { top: 16px; } }

/* upozornenie na tlačidlo, keď sa práve odomklo (výber času, výber procedúry) */
/* jemný „dych“ každé 4 s: mäkký prstenec sa rozíde a tlačidlo sa na okamih nadvihne; beží, kým človek nepokračuje */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(36,23,15,.28), 0 6px 18px -8px rgba(36,23,15,.35); } 30% { box-shadow: 0 0 0 11px rgba(36,23,15,0), 0 10px 24px -8px rgba(36,23,15,.45); } 36% { box-shadow: 0 0 0 0 rgba(36,23,15,0), 0 10px 24px -8px rgba(36,23,15,.45); } }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 12% { transform: translateY(-1px) scale(1.025); } 30% { transform: translateY(0) scale(1); } }
.btn.pulse { animation: pulse 2.8s ease-out infinite, breathe 2.8s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; box-shadow: 0 0 0 3px rgba(36,23,15,.18); } }


/* navnada pri nečinnosti: vlna cez voliteľné chipy (dĺžky, časy), opakuje sa, kým človek nič nespraví */
@keyframes chipNudge { 0% { transform: translateY(0); box-shadow: inset 0 0 0 1px var(--line); } 45% { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(36,23,15,.55), 0 8px 16px -10px rgba(36,23,15,.4); } 100% { transform: translateY(0); box-shadow: inset 0 0 0 1px var(--line); } }
.chip.nudge { animation: chipNudge 1.5s cubic-bezier(.4,0,.2,1) calc(var(--i, 0) * 110ms) 1 both; }
.date.nudge { animation: chipNudge 1.5s cubic-bezier(.4,0,.2,1) calc(var(--i, 0) * 110ms) 1 both; }
@media (prefers-reduced-motion: reduce) { .chip.nudge, .date.nudge { animation: none; } }


/* ================= v15: jemnejší, editoriálny vzhľad kroku 1 (fotkové dlaždice, zoznam ako menu) ================= */
.kicker { font: 500 11.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 10px 2px 8px; }
.h em { font-style: italic; color: var(--accent); }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; padding: 0; }
.cats::-webkit-scrollbar { display: none; }
.cat { width: auto; height: 104px; padding: 0; border-radius: 18px; overflow: hidden; position: relative; isolation: isolate; scroll-snap-align: start; box-shadow: var(--shadow); background: var(--paper);
  display: flex; align-items: flex-end; text-align: left; transition: transform .3s var(--spring), box-shadow .3s; }
.cat::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover no-repeat; z-index: -2; transition: transform .6s var(--ease), filter .3s; filter: saturate(.75) brightness(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(60,46,34,0) 30%, rgba(60,46,34,.78) 100%); transition: background .3s; }
.cat .ci { display: none; }
.cat .cat-t { padding: 10px 12px 11px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.cat b { display: block; font: 400 17px/1.15 var(--serif); }
.cat small { display: block; font-size: 11.5px; opacity: .95; margin-top: 2px; }
.cat:hover::before { transform: scale(1.05); }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink), var(--shadow); }
.cat[aria-pressed="true"]::after { background: linear-gradient(180deg, rgba(36,23,15,.08) 0%, rgba(36,23,15,.72) 100%); }
.cat[aria-pressed="true"] .cat-t::before { content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 12px; display: grid; place-items: center; }
.svc-list { display: block; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 4px 16px; }
.svc { display: grid; gap: 10px; padding: 16px 0 15px; border-radius: 0; background: none; box-shadow: none; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc.sel { box-shadow: none; }
.svc h3 { font-size: 20px; transition: color .25s; }
.svc.sel h3 { color: var(--accent-d); font-style: italic; }
.svc p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.svc .opts { gap: 6px; }
.svc .chip { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.svc .chip[aria-pressed="true"] { background: var(--ink); box-shadow: none; }
@media (min-width: 560px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .kicker { margin: 0 0 12px; }
  .h { margin-bottom: 26px; }
  .cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; padding: 0; overflow: visible; }
  .cat { width: auto; height: 132px; }
  .cat b { font-size: 19px; }
  .svc-list { display: block; padding: 6px 22px; }
  .svc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 0 17px; }
  .svc .opts { margin-top: 0; justify-content: flex-end; flex-wrap: nowrap; }
  .svc:hover { box-shadow: none; }
  .svc:hover h3 { color: var(--accent-d); }
  .hint { margin-top: 18px; }
  .bar-detail img { height: 170px; filter: saturate(.8); }
  .bar { background: linear-gradient(180deg, var(--paper), #fdf8f0); }
}


/* ================= v18: štýl IG gridu v6 – rozmazaná fotka štúdia ako pozadie, obsah v sklenených kartách, šalvia a béžová ================= */
:root { --sage: #8c927e; --sage-d: #6c735e; --sage-l: #c9ccbd; --glass: rgba(255,250,242,.58); --glass-2: rgba(255,250,242,.42); --gline: rgba(255,255,255,.75); --ink: #3b3630; --ink-2: #5d554b; --muted: #85796b; --accent: #6c735e; --accent-d: #5a6150; }
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #cfc6b6; }
.bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); transform: scale(1.04); }
.bg img.on { opacity: 1; }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,239,229,.42), rgba(201,204,189,.38) 60%, rgba(191,180,164,.5)); }
body { background: transparent; }
.app { min-height: 100dvh; }
.top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.back { background: var(--glass); box-shadow: inset 0 0 0 1px var(--gline); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.prog i { background: rgba(255,255,255,.55); }
.prog i.on { background: var(--sage-d); } .prog i.ok { background: var(--sage); }
.kicker { color: var(--ink-2); }
.h { color: var(--ink); } .h em { color: var(--sage-d); }
/* sklenená karta */
.step { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); border-radius: 26px; box-shadow: inset 0 0 0 1px var(--gline), 0 24px 50px -30px rgba(60,50,40,.45); padding: 20px 18px 22px; }
.stage { padding-top: 8px; }
.step .h { margin-top: 2px; }
/* kategórie ako pilulky */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; overflow: visible; }
.cat { width: auto; height: auto; min-height: 44px; padding: 7px 15px 7px 14px; border-radius: 999px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--gline); display: flex; flex-direction: row; align-items: baseline; gap: 7px; color: var(--ink); text-align: left; isolation: auto; overflow: visible; }
.cat::before, .cat::after, .cat .ci { display: none; content: none; }
.cat b { font: 500 14.5px/1 var(--sans); color: var(--ink); }
.cat small { font-size: 11.5px; color: var(--muted); margin: 0; opacity: 1; }
.cat[aria-pressed="true"] { background: var(--sage-d); color: #fff; box-shadow: none; }
.cat[aria-pressed="true"] b, .cat[aria-pressed="true"] small { color: #fff; }
.cat[aria-pressed="true"] small { opacity: .8; }
.cat[aria-pressed="true"] .cat-t::before { content: none; }
/* zoznam služieb vo vnútri skla */
.svc-list { background: transparent; box-shadow: none; padding: 0; }
.svc { padding: 15px 0 14px; }
.svc + .svc { border-top: 1px solid rgba(60,50,40,.12); }
.svc h3 { color: var(--ink); } .svc.sel h3 { color: var(--sage-d); font-style: normal; }
.svc p { color: var(--ink-2); }
.svc .chip, .tgrid .chip { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px var(--gline); color: var(--ink); }
.svc .chip small { color: var(--ink-2); }
.svc .chip[aria-pressed="true"], .tgrid .chip[aria-pressed="true"], .date[aria-selected="true"] { background: var(--sage-d); color: #fff; box-shadow: none; }
.svc .chip[aria-pressed="true"] small, .date[aria-selected="true"] .wd { color: rgba(255,255,255,.8); }
.hint { color: var(--ink-2); } .hint a { color: var(--ink); }
/* krok 2 */
.pick-sum { background: rgba(255,255,255,.5); color: var(--ink); }
.pick-sum .dot { background: var(--sage-d); }
.soonest { background: var(--sage-d); color: #fff; }
.date { background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--gline); }
.date .av i { background: var(--sage-d); }
.empty { background: rgba(255,255,255,.4); }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.65), rgba(255,255,255,.35)); background-size: 200% 100%; }
/* krok 3 */
.recap, .ticket { background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--gline); }
.recap .ic { background: rgba(140,146,126,.22); }
.field input, .field textarea, .field select { background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px var(--gline); }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--sage-d); }
.check input { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1.5px rgba(60,50,40,.3); }
.check input:checked { background: var(--sage-d); }
.add-note, .recap .edit, .link-btn { color: var(--sage-d); }
/* tlačidlá */
.btn { background: var(--sage-d); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.5); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gline); }
.btn.soft { background: rgba(255,255,255,.6); color: var(--ink); }
.btn.pulse { animation: pulse 2.8s ease-out infinite, breathe 2.8s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(108,115,94,.35), 0 6px 18px -8px rgba(60,50,40,.35); } 30% { box-shadow: 0 0 0 11px rgba(108,115,94,0), 0 10px 24px -8px rgba(60,50,40,.4); } 36% { box-shadow: 0 0 0 0 rgba(108,115,94,0), 0 10px 24px -8px rgba(60,50,40,.4); } }
/* spodná lišta / bočná karta */
.bar { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); box-shadow: 0 -1px 0 var(--gline); }
.bar-sum { color: var(--ink-2); } .bar-sum b { color: var(--ink); }
.pfoot, .pfoot a { color: var(--ink-2); }
.toast { background: var(--sage-d); }
.tgroup h4 { color: var(--ink-2); } .tgroup h4::after { background: rgba(60,50,40,.14); }
.month { color: var(--ink-2); }
.code-hint.bad { color: var(--warn); }
.test-ribbon { display: none; }
@media (min-width: 960px) {
  body { background: transparent; }
  .step { padding: 30px 32px 30px; border-radius: 30px; }
  .cats { gap: 10px; margin-bottom: 22px; }
  .cat { min-height: 48px; padding: 8px 18px 8px 16px; }
  .cat b { font-size: 15px; }
  .svc { padding: 17px 0 16px; }
  .bar { position: sticky; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); box-shadow: inset 0 0 0 1px var(--gline), 0 24px 50px -30px rgba(60,50,40,.45); border-radius: 26px; padding-top: 6px; }
  .bar-detail img { display: none; }
  .bar-detail h2 { color: var(--ink); }
  .bar-detail dl > div { border-bottom-color: rgba(60,50,40,.12); }
  .bar-detail dt { color: var(--ink-2); } .bar-detail dd.na { color: var(--muted); }
  .back { background: rgba(255,255,255,.5); }
  .prog i { background: rgba(255,255,255,.45); color: var(--ink-2); }
  .prog i::before { box-shadow: inset 0 0 0 1px rgba(60,50,40,.25); }
  .prog i.on { background: var(--sage-d); color: #fff; }
  .prog i.ok::before { background: rgba(140,146,126,.3); }
  .brand small { color: var(--ink-2); border-left-color: rgba(60,50,40,.25); }
}


/* ================= v20: podľa návrhu „Elegantná rezervácia“ – svetlé zen pozadie, biele karty, fotkové dlaždice, zoznam s náhľadmi, kalendár v bočnej karte ================= */
:root { --ink: #2b211a; --ink-2: #5c4a3b; --muted: #8a7663; --accent: #6b5543; --accent-d: #4f3d2f; --card: rgba(255,252,248,.92); --cline: rgba(43,33,26,.08); --cline-2: rgba(43,33,26,.16); }
.bg { background: #f1e8dc; }
.bg img { transform: none; opacity: 1; }
.bg::after { background: linear-gradient(180deg, rgba(246,239,229,.18), rgba(246,239,229,.1) 50%, rgba(246,239,229,.3)); }
.step { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -36px rgba(60,40,20,.35); border-radius: 26px; }
.sub { margin: -8px 2px 16px; color: var(--ink-2); font-size: 15px; }
.h em { color: var(--accent); }
.kicker { display: none; }
/* kroky: kruhy s číslom a spojnicou (mobil = bodky) */
.prog i.on { background: var(--ink); } .prog i.ok { background: var(--accent); }
/* kategórie: fotkové dlaždice */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.cat { position: relative; isolation: isolate; width: auto; height: 118px; min-height: 0; padding: 0; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; background: #d9cdbd; box-shadow: 0 14px 28px -20px rgba(60,40,20,.5); transition: transform .3s var(--spring), box-shadow .3s; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat::after { content: ""; display: block; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,33,26,0) 35%, rgba(43,33,26,.7) 100%); }
.cat::before { content: none; }
.cat .cat-t { padding: 10px 12px 11px; color: #fff; }
.cat b { display: block; font: 400 18px/1.15 var(--serif); color: #fff; }
.cat small { display: block; font-size: 11.5px; color: rgba(255,255,255,.85); margin-top: 2px; }
.cat:hover img { transform: scale(1.05); }
.cat[aria-pressed="true"] { background: #d9cdbd; box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink), 0 14px 28px -20px rgba(60,40,20,.5); }
.cat[aria-pressed="true"]::after { background: linear-gradient(180deg, rgba(43,33,26,.05) 20%, rgba(43,33,26,.78) 100%); }
.cat[aria-pressed="true"] .cat-t::before { content: "✓"; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 12px; display: grid; place-items: center; }
/* zoznam služieb s náhľadmi */
.svc-list { background: transparent; box-shadow: none; padding: 0; display: block; }
.svc { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "img t" "img o"; column-gap: 12px; row-gap: 8px; align-items: center; padding: 13px 0; }
.svc + .svc { border-top: 1px solid var(--cline); }
.svc-img { grid-area: img; width: 76px; height: 58px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 16px -12px rgba(60,40,20,.5); }
.svc-t { grid-area: t; } .svc .opts { grid-area: o; }
.svc h3 { font-size: 18px; color: var(--ink); } .svc.sel h3 { color: var(--accent); font-style: normal; }
.svc p { color: var(--muted); }
.svc .chip, .tgrid .chip, .date { background: #fff; box-shadow: inset 0 0 0 1px var(--cline-2); color: var(--ink); }
.svc .chip { flex-direction: column; gap: 0; min-height: 50px; padding: 6px 14px; line-height: 1.15; }
.svc .chip small { color: var(--muted); font-size: 12px; }
.svc .chip[aria-pressed="true"], .tgrid .chip[aria-pressed="true"], .date[aria-selected="true"], .cat[aria-pressed="true"] small { background: var(--ink); color: #fff; box-shadow: none; }
.cat[aria-pressed="true"] small { background: none; }
.svc .chip[aria-pressed="true"] small, .date[aria-selected="true"] .wd { color: rgba(255,255,255,.75); }
.hint { color: var(--muted); }
/* krok 2 a 3 */
.pick-sum { background: #f4ece1; color: var(--ink); } .pick-sum .dot { background: var(--ink); }
.soonest { background: var(--ink); color: #fff; }
.date .av i { background: var(--accent); }
.empty { background: #f7f1e8; }
.recap, .ticket { background: #fff; box-shadow: inset 0 0 0 1px var(--cline-2); }
.recap .ic { background: #f1e8dc; }
.field input, .field textarea, .field select { background: #fff; box-shadow: inset 0 0 0 1px var(--cline-2); }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.check input { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cline-2); } .check input:checked { background: var(--ink); }
.add-note, .recap .edit, .link-btn { color: var(--accent); }
.btn { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--cline-2); } .btn.soft { background: #f1e8dc; color: var(--ink); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(43,33,26,.3), 0 6px 18px -8px rgba(43,33,26,.35); } 30% { box-shadow: 0 0 0 11px rgba(43,33,26,0), 0 10px 24px -8px rgba(43,33,26,.4); } 36% { box-shadow: 0 0 0 0 rgba(43,33,26,0), 0 10px 24px -8px rgba(43,33,26,.4); } }
.toast { background: var(--ink); }
.bar { background: rgba(255,252,248,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--cline); }
.bar-sum { color: var(--muted); } .bar-sum b { color: var(--ink); }
.trust { display: none; }
.bar-cal { display: none; }
.prog i::before { box-shadow: inset 0 0 0 1px var(--cline-2); }
.tgroup h4 { color: var(--muted); } .tgroup h4::after { background: var(--cline); }
.pfoot, .pfoot a { color: var(--muted); }
@media (min-width: 960px) {
  .app { max-width: 1260px; grid-template-columns: minmax(0, 1fr) 460px; column-gap: 48px; padding: 26px 40px 60px; }
  .brand { margin-bottom: 26px; }
  .prog { gap: 0; margin-bottom: 18px; }
  .prog i { padding: 6px 12px 6px 6px; gap: 10px; font-size: 14.5px; color: var(--muted); background: none; }
  .prog i::before { width: 30px; height: 30px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--cline-2); background: #fff; }
  .prog i + i { margin-left: 6px; padding-left: 36px; position: relative; }
  .prog i + i::after { content: attr(data-l); }
  .prog i + i { background: linear-gradient(90deg, var(--cline-2), var(--cline-2)) 6px 50% / 22px 1px no-repeat; }
  .prog i.on { background: linear-gradient(90deg, var(--cline-2), var(--cline-2)) 6px 50% / 22px 1px no-repeat; color: var(--ink); font-weight: 600; }
  .prog i.on::before { background: var(--ink); color: #fff; box-shadow: none; }
  .prog i.ok { color: var(--ink); } .prog i.ok::before { content: "✓"; background: #ece2d5; box-shadow: none; }
  .prog i:first-child, .prog i:first-child.on { background: none; padding-left: 6px; }
  .back { margin-bottom: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--cline-2); }
  .step { padding: 28px 30px 26px; }
  .h { font-size: 44px; margin-bottom: 10px; }
  .sub { font-size: 16px; margin: 0 0 22px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
  .cat { height: 136px; } .cat b { font-size: 19px; }
  .svc { grid-template-columns: 110px minmax(0, 1fr) auto; grid-template-areas: "img t o"; column-gap: 16px; padding: 15px 0; }
  .svc-img { width: 110px; height: 70px; border-radius: 14px; }
  .svc h3 { font-size: 19px; }
  .svc .opts { justify-content: flex-end; flex-wrap: nowrap; }
  .svc .chip { min-height: 54px; min-width: 84px; }
  /* bočná karta: fotka hore, súhrn, kalendár, tlačidlo */
  .bar { width: 460px; background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -36px rgba(60,40,20,.4); border-radius: 26px; padding: 0 0 18px; gap: 0; top: 20px; }
  .bar-detail h2 { padding: 0; }
  .bar-hero { position: relative; height: 180px; overflow: hidden; border-radius: 26px 26px 0 0; isolation: isolate; }
  .bar-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .bar-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(43,33,26,0) 40%, rgba(43,33,26,.62) 100%); }
  .bar-hero h2 { position: absolute; left: 22px; bottom: 16px; z-index: 2; color: #fff; font-size: 26px; }
  .bar-hero h2 em { font-style: italic; }
  .bar-pill { position: absolute; right: 18px; bottom: 18px; z-index: 2; background: rgba(255,252,248,.92); color: var(--ink); font: 500 13px/1 var(--sans); padding: 9px 13px; border-radius: 999px; }
  .bar-detail dl { padding: 6px 22px 0; }
  .bar-detail dl > div { grid-template-columns: 96px 1fr; padding: 11px 0; border-bottom-color: var(--cline); }
  .bar-detail dt { color: var(--muted); }
  .bar-cal { display: block; padding: 16px 22px 0; }
  .bar-cal h3 { font-size: 22px; margin-bottom: 10px; } .bar-cal h3 em { color: var(--accent); }
  .bar-cal .soonest { max-width: none; margin-bottom: 12px; padding: 10px 12px; }
  .bar-cal .dates { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .bar-cal .date { padding: 8px 0 7px; border-radius: 12px; } .bar-cal .date .dn { font-size: 19px; }
  .bar-cal .times { margin-top: 12px; min-height: 0; max-height: 300px; overflow: auto; padding-right: 4px; }
  .bar-cal .tgrid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .bar-cal .tgrid .chip { min-height: 40px; font-size: 14px; }
  .bar-cal .tgroup { margin-bottom: 10px; }
  .bar .btn { margin: 18px 22px 0; min-height: 54px; }
  .bar .btn::after { content: "→"; font-weight: 400; }
  .bar .btn.loading::after { content: ""; }
  .trust { display: flex; justify-content: space-between; gap: 10px; padding: 12px 22px 0; font-size: 12px; color: var(--muted); }
  .trust span::before { content: "✓ "; color: var(--accent); }
}

/* v20 doladenie: mobilná hlavička nech neprekrýva obsah (karta začína pod ňou), kroky v detailoch */
@media (max-width: 959px) {
  .top { background: linear-gradient(180deg, rgba(241,232,220,.96) 60%, rgba(241,232,220,0)); padding-bottom: 14px; }
  .stage { padding-top: 10px; }
  .cats { gap: 8px; } .cat { height: 108px; } .cat b { font-size: 17px; }
}
@media (min-width: 960px) {
  .prog i.ok.on { color: var(--ink); }
  .step[data-step="details"] .h { margin-bottom: 18px; }
}

/* v21: bočná karta sa zmestí na obrazovku – kalendár je kompaktný a vnútri roluje, tlačidlo je vždy viditeľné na spodku karty */
@media (min-width: 960px) {
  .bar { max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; }
  .bar-detail { flex: none; }
  .bar-hero { height: 140px; }
  .bar-detail dl > div { padding: 8px 0; font-size: 13.5px; }
  .bar-detail dd small { display: none; }
  .bar-cal { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 12px; }
  .bar-cal h3 { font-size: 19px; margin-bottom: 8px; flex: none; }
  .bar-cal .soonest { flex: none; margin-bottom: 8px; padding: 8px 10px; }
  .bar-cal .soonest small { font-size: 11px; }
  .bar-cal .month { flex: none; margin-bottom: 6px; }
  .bar-cal .dates { flex: none; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .bar-cal .date { padding: 6px 0 5px; } .bar-cal .date .dn { font-size: 17px; } .bar-cal .date .wd { font-size: 10px; }
  .bar-cal .date:nth-child(n+15) { display: none; }   /* 2 týždne dopredu stačia; zvyšok cez „ďalšie“ */
  .bar-cal .times { flex: 1 1 auto; min-height: 96px; max-height: none; overflow: auto; margin-top: 10px; padding-right: 4px; scrollbar-width: thin; mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); }
  .bar-cal .tgrid .chip { min-height: 36px; font-size: 13.5px; }
  .bar-cal .tgroup { margin-bottom: 8px; } .bar-cal .tgroup h4 { margin-bottom: 6px; }
  .bar .btn { flex: none; margin-top: 12px; }
  .trust { flex: none; padding-top: 10px; }
}
@media (min-width: 960px) and (max-height: 820px) { .bar-hero { height: 110px; } .bar-detail dl > div:nth-child(2), .bar-detail dl > div:nth-child(5) { display: none; } }

/* v22: tlačidlo je pevná spodná časť karty – obsah nad ním roluje, nič sa neprekrýva; karta drží pri hornom okraji */
@media (min-width: 960px) {
  .bar { position: sticky; top: 20px; align-self: start; }
  .bar .btn { position: static; margin: 12px 22px 0; }
  .btn.pulse { animation: none; box-shadow: 0 14px 28px -16px rgba(43,33,26,.55); }
  .bar-cal .times { mask-image: none; padding-bottom: 6px; }
  .bar-cal .times::-webkit-scrollbar { width: 6px; } .bar-cal .times::-webkit-scrollbar-thumb { background: var(--cline-2); border-radius: 3px; }
}
@media (min-width: 960px) and (max-height: 760px) { .bar-hero { height: 96px; } .bar-cal .soonest { display: none; } .bar-detail dl > div:nth-child(2), .bar-detail dl > div:nth-child(5) { display: none; } }

/* v23: pozadie tlmenejšie (biely závoj), zoznam časov s pevnou výškou podľa obrazovky – tlačidlo nič neprekrýva */
.bg::after { background: linear-gradient(180deg, rgba(248,243,236,.62), rgba(248,243,236,.56) 50%, rgba(248,243,236,.66)); }
@media (min-width: 960px) {
  .bar { display: block; max-height: none; overflow: visible; }
  .bar-cal { display: block; }
  .bar-cal .times { flex: none; height: clamp(120px, calc(100dvh - 640px), 300px); min-height: 120px; overflow: auto; }
}
@media (min-width: 960px) and (max-height: 760px) { .bar-cal .times { height: clamp(110px, calc(100dvh - 520px), 240px); } }

/* v24: celá bočná karta sa zmestí do okna (karta = okno − 40 px; časy dostanú zvyšok) */
@media (min-width: 960px) {
  .bar-hero { height: 120px; }
  .bar-detail dl > div { padding: 7px 0; }
  .bar-cal { padding-top: 10px; }
  .bar-cal h3 { font-size: 18px; margin-bottom: 6px; }
  .bar-cal .soonest { margin-bottom: 6px; padding: 7px 10px; }
  .bar-cal .times { height: clamp(96px, calc(100dvh - 770px), 300px); }
  .bar .btn { margin-top: 10px; min-height: 50px; }
  .trust { padding-top: 8px; }
}
@media (min-width: 960px) and (max-height: 820px) { .bar-cal .times { height: clamp(96px, calc(100dvh - 690px), 240px); } }
@media (min-width: 960px) and (max-height: 760px) { .bar-cal .times { height: clamp(96px, calc(100dvh - 560px), 220px); } }

/* v25: na nižších oknách (notebook ~720 px) schovať „najbližší termín“ a 2. riadok dní, aby karta vošla */
@media (min-width: 960px) and (max-height: 780px) { .bar-cal .soonest { display: none; } .bar-cal .date:nth-child(n+8) { display: none; } .bar-cal .times { height: clamp(96px, calc(100dvh - 470px), 220px); } .bar { top: 12px; } }
@media (min-width: 960px) { .bar .btn { display: flex; width: calc(100% - 44px); } }

/* v28: väčšie dni a časy (čitateľné aj pre starších), 5 dní na stranu so šípkami */
.month-row { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.month-row .month { margin: 0; }
.pager { display: flex; gap: 6px; }
.pager button { width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--cline-2); font-size: 18px; line-height: 1; color: var(--ink); }
.pager button[disabled] { opacity: .3; }
.pager[hidden] { display: none; }
@media (min-width: 960px) {
  .bar-cal .dates { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .bar-cal .date, .bar-cal .date:nth-child(n+8) { display: flex; padding: 10px 0 8px; border-radius: 14px; }
  .bar-cal .date .wd { font-size: 12px; letter-spacing: .06em; }
  .bar-cal .date .dn { font-size: 24px; line-height: 1.1; }
  .bar-cal .date .av i { width: 5px; height: 5px; }
  .bar-cal .tgrid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .bar-cal .tgrid .chip { min-height: 44px; font-size: 16px; }
  .bar-cal .tgroup h4 { font-size: 12.5px; }
  .bar-cal h3 { font-size: 21px; }
  .bar .btn { min-height: 54px; font-size: 16px; }
  .bar-cal .times { height: clamp(110px, calc(100dvh - 700px), 320px); }
  .bar-detail dl > div { font-size: 14.5px; }
}
@media (min-width: 960px) and (max-height: 820px) { .bar-cal .times { height: clamp(110px, calc(100dvh - 620px), 260px); } }
@media (min-width: 960px) and (max-height: 780px) { .bar-cal .soonest { display: flex; } .bar-cal .times { height: clamp(100px, calc(100dvh - 560px), 220px); } .bar-hero { height: 96px; } }
@media (min-width: 960px) and (max-height: 700px) { .bar-cal .soonest { display: none; } .bar-cal .times { height: clamp(100px, calc(100dvh - 480px), 200px); } }
/* mobil: dni a časy tiež väčšie */
@media (max-width: 959px) {
  .date { width: 62px; padding: 10px 0 8px; } .date .dn { font-size: 24px; } .date .wd { font-size: 12px; }
  .tgrid .chip { min-height: 50px; font-size: 17px; }
}

/* v29: časy dostanú presne zvyšok výšky karty (karta = okno − 40 px) */
@media (min-width: 960px) {
  .bar { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); overflow: hidden; }
  .bar-detail, .bar .btn, .trust { flex: none; }
  .bar-cal { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .bar-cal h3, .bar-cal .soonest, .month-row, .bar-cal .dates { flex: none; }
  .bar-cal .times { flex: 1 1 auto; height: auto; min-height: 96px; max-height: none; }
}

/* v30: karta je vždy okno − 40 px a nič nepretŕča (sticky + obmedzená výška + rolovanie časov) */
@media (min-width: 960px) {
  .bar { position: sticky !important; top: 20px !important; height: calc(100dvh - 40px); max-height: calc(100dvh - 40px); }
  .bar-cal .times { flex: 1 1 0 !important; min-height: 80px !important; height: auto !important; max-height: none !important; overflow: auto; }
  .bar-cal[hidden] { display: none; }
  .bar.nocal { height: auto; }
}

/* v31: zoznam časov sa naozaj zmestí do karty (stĺpec s overflow, pevný flex) */
@media (min-width: 960px) {
  .bar-cal { display: flex !important; flex-direction: column !important; overflow: hidden; }
  .bar-cal > * { flex: 0 0 auto; }
  .bar-cal .times { flex: 1 1 0px !important; min-height: 0 !important; height: 0 !important; overflow-y: auto !important; }
}

/* v32: kalendár dostane zvyšok karty; karta sa zmestí aj na vrchu stránky (začína pod logom, ~76 px) */
@media (min-width: 960px) {
  .bar { height: calc(100dvh - 96px) !important; max-height: calc(100dvh - 96px) !important; }
  .bar-cal { flex: 1 1 0px !important; }
}

/* v33: kalendárové uzly sú vnútri #cal-slot – ten musí byť flex stĺpec, inak sa zoznam časov nezväčší */
@media (min-width: 960px) {
  #cal-slot { display: flex; flex-direction: column; flex: 1 1 0px !important; min-height: 0; }
  #cal-slot > * { flex: 0 0 auto; }
  #cal-slot .times { flex: 1 1 0px !important; min-height: 0 !important; height: auto !important; overflow-y: auto !important; }
}

/* v35: fotky dlaždíc ukotvené hore (objekt nad textom), jemnejší prechod len v spodnej štvrtine */
.cat img { object-position: 50% 30%; }
.cat::after { background: linear-gradient(180deg, rgba(43,33,26,0) 48%, rgba(43,33,26,.72) 100%); }

/* zľava LAYLA10: pôvodná cena preškrtnutá, nová vedľa */
s { color: var(--ink-2); font-weight: 400; text-decoration: line-through; margin-right: .35em; opacity: .7; }
.chip small s, .cat-t small s { font-size: .92em; }
.bar-pill s { color: inherit; opacity: .6; }
.disc-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.disc-note b { font-weight: 600; }
