/* Dentica — zubná klinika, Žilina
   Layout: app-like shell (floating pill nav / bottom tab bar), soft bento tiles, one global booking sheet. */
:root {
  --bg: #F3F4EF;
  --surface: #FFFFFF;
  --ink: #14272B;
  --ink-2: #4B5D60;
  --ink-3: #667679;
  --line: rgba(20, 39, 43, .09);
  --line-2: rgba(20, 39, 43, .16);
  --mint: #DCEDE4;
  --lilac: #E6E2F5;
  --apricot: #FBE4D4;
  --sky: #DDEAF4;
  --butter: #F4EDCF;
  --coral: #E06A43;
  --ok: #3C8C62;
  --warn: #C2563A;
  color-scheme: light;

  --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .281 6.7%, .723 12.9%, .938 16.7%, 1.017 19.3%, 1.077 21.8%, 1.121 24.3%, 1.149 27%, 1.159 29.9%, 1.155 32.8%, 1.13 37.2%, 1.051 45.2%, 1.017 49.9%, .991 55.4%, .977 61%, .975 66.5%, .997 81.7%, 1.003 90%, 1);
  --soft-spring: linear(0, .013, .051 3.2%, .2 6.6%, .446 11.4%, .718 17.1%, .876 21.6%, .968 26.1%, 1.017 30.6%, 1.038 35.3%, 1.04 40.8%, 1.026 48%, 1.006 59%, .998 73%, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(16px, 4vw, 48px);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px;
  --shadow: 0 1px 2px rgba(20,39,43,.05), 0 12px 32px -12px rgba(20,39,43,.14);
  --shadow-lg: 0 2px 4px rgba(20,39,43,.05), 0 30px 70px -24px rgba(20,39,43,.28);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
::view-transition-group(navpill) { animation-duration: .55s; animation-timing-function: var(--spring); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { flex: none; }
.sprite { display: none; }
::selection { background: var(--mint); }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
.page { padding-top: 112px; padding-bottom: 40px; }

/* ---------- type ---------- */
.h1, .h2, .h3, .tile__big, .tile__mid, .sheet__t, .price-big b, .clock__min, .md__inner h2 { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -.025em; text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: .98; font-weight: 600; font-variation-settings: "wdth" 86; }
.h1--page { font-size: clamp(36px, 4.6vw, 64px); max-width: 16ch; }
.h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; font-weight: 600; font-variation-settings: "wdth" 88; }
.h3 { font-size: 26px; line-height: 1.1; font-weight: 600; font-variation-settings: "wdth" 90; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .04em; height: .34em; background: var(--mint); border-radius: 99px; z-index: -1; transform-origin: 0 50%; transform: scaleX(0); animation: grow 1s var(--ease) .5s forwards; }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .5s var(--spring), background .25s, color .25s, box-shadow .3s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s var(--spring); }
@media (hover: hover) { .btn:hover svg { transform: translateX(3px); } }
.btn:active { transform: scale(.95); transition-duration: .12s; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--ink { background: var(--ink); color: #fff; }
@media (hover: hover) { .btn--ink:hover { background: #1f3a40; box-shadow: 0 10px 24px -10px rgba(20,39,43,.55); } }
.btn--ink:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) { .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.btn--light { background: #fff; color: var(--ink); }
@media (hover: hover) { .btn--light:hover { background: var(--mint); } }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 1.5px solid var(--line-2); padding-bottom: 2px; transition: border-color .25s, gap .4s var(--spring); }
.link-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover: hover) { .link-btn:hover { border-color: var(--ink); gap: 10px; } }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .45s var(--spring), background .25s, opacity .25s; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover: hover) { .icon-btn:hover { background: var(--bg); } }
.icon-btn:active { transform: scale(.9); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn--lg { width: 52px; height: 52px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip--soft { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.is-open i { background: var(--ok); box-shadow: 0 0 0 4px rgba(60,140,98,.16); animation: breathe 2.6s ease-in-out infinite; }
.status.is-closed i { background: var(--warn); }
.status--sm { font-size: 12px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(60,140,98,.05); } }
.stars { display: inline-flex; gap: 1px; color: #E3A03C; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- top bar ---------- */
.topbar { position: fixed; z-index: 40; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-inline: var(--gut); pointer-events: none; view-transition-name: topbar; }
.topbar > * { pointer-events: auto; }
.topbar::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(-14px - env(safe-area-inset-top, 0px)); height: calc(100% + 40px + env(safe-area-inset-top, 0px)); background: linear-gradient(var(--bg) 45%, rgba(243,244,239,0)); opacity: 0; transition: opacity .35s; pointer-events: none; }
.topbar.is-scrolled::before { opacity: 1; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; font-variation-settings: "wdth" 90; width: fit-content; }
.logo svg { width: 34px; height: 34px; }
.logo__bg { fill: var(--ink); }
.logo__smile { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.logo__dot { fill: var(--coral); }
.pillnav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.pillnav a { position: relative; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .25s, background .25s; }
@media (hover: hover) { .pillnav a:hover { color: var(--ink); background: rgba(20,39,43,.05); } }
body[data-page="domov"] .pillnav [data-nav="domov"], body[data-page="osetrenia"] .pillnav [data-nav="osetrenia"],
body[data-page="cennik"] .pillnav [data-nav="cennik"], body[data-page="navsteva"] .pillnav [data-nav="navsteva"] { background: var(--ink); color: #fff; view-transition-name: navpill; }
.topbar__r { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.topbar .status { padding: 0 14px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); }

.tabbar { display: none; }

/* ---------- reveal ---------- */
.pop { opacity: 0; transform: translateY(22px) scale(.97); }
.pop.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .9s var(--soft-spring); transition-delay: var(--d, 0ms); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(760px, calc(100svh - 112px)); }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 14px 30px; padding-top: 10px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.trust b { color: var(--ink); font-size: 15px; }
.hero__visual { position: relative; isolation: isolate; padding: 0 0 54px 46px; }
.orb { position: absolute; inset: -6% -10% 8% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--mint), transparent 60%), radial-gradient(circle at 70% 65%, var(--lilac), transparent 62%), radial-gradient(circle at 60% 20%, var(--apricot), transparent 50%); filter: blur(30px); animation: orb 10s ease-in-out infinite; z-index: -1; }
@keyframes orb { 50% { transform: scale(1.07) translate(-2%, 2%); } }
.hero__photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 5.6; max-height: 640px; max-width: 100%; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } }
.slots-card { position: absolute; left: 0; bottom: 0; width: min(380px, 92%); background: rgba(255,255,255,.86); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.6); animation: rise 1s var(--soft-spring) .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.slots-card__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.slots-card .kicker { font-size: 11px; }
.slot-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.slot-row:first-child { border-top: 0; }
.slot-row__when { width: 58px; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--bg); line-height: 1.1; }
.slot-row__when small { display: block; font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.slot-row__when b { font-size: 16px; font-variant-numeric: tabular-nums; }
.slot-row__what { min-width: 0; font-size: 14px; line-height: 1.3; }
.slot-row__what b { display: block; font-size: 15px; }
.slot-row__what span { color: var(--ink-2); }
.slot-row .btn { height: 36px; padding: 0 14px; font-size: 13px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px) 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.5vw, 48px); max-width: 720px; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; }
.sec-head__p { color: var(--ink-2); font-size: 18px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "a a b c" "a a e g" "d d f h"; gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-xl); min-height: 220px; overflow: hidden; transition: transform .6s var(--spring), box-shadow .4s; }
@media (hover: hover) { a.tile:hover, .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.tile p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tile__k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.tile__big { font-size: clamp(36px, 4vw, 58px); line-height: .98; font-weight: 600; font-variation-settings: "wdth" 84; margin-top: auto; }
.tile__mid { font-size: 24px; line-height: 1.08; font-weight: 600; font-variation-settings: "wdth" 90; margin-top: auto; }
.tile__ico { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.tile__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s var(--spring); }
@media (hover: hover) { .tile:hover .tile__go svg { transform: translateX(5px); } }
.tile--a { grid-area: a; padding: 32px; }
.tile--b { grid-area: b; } .tile--c { grid-area: c; } .tile--e { grid-area: e; } .tile--g { grid-area: g; }
.tile--d { grid-area: d; flex-direction: row; padding: 0; gap: 0; }
.tile--f { grid-area: f; } .tile--h { grid-area: h; }
.tone-mint { background: var(--mint); } .tone-lilac { background: var(--lilac); } .tone-apricot { background: var(--apricot); }
.tone-sky { background: var(--sky); } .tone-butter { background: var(--butter); } .tone-white { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tone-ink { background: var(--ink); color: #fff; }
.tone-ink .tile__k, .tone-ink p { color: rgba(255,255,255,.72); }
.tone-ink a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); white-space: nowrap; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(224,106,67,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224,106,67,0); } 100% { box-shadow: 0 0 0 0 rgba(224,106,67,0); } }
.minutes { display: flex; gap: 4px; margin: 14px 0 6px; }
.minutes span { flex: 0 0 var(--w); padding: 10px 10px; border-radius: 12px; background: rgba(255,255,255,.65); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: 0 50%; }
.pop.is-in .minutes span { animation: seg .8s var(--soft-spring) both; }
.pop.is-in .minutes span:nth-child(2) { animation-delay: .1s; } .pop.is-in .minutes span:nth-child(3) { animation-delay: .2s; } .pop.is-in .minutes span:nth-child(4) { animation-delay: .3s; }
@keyframes seg { from { transform: scaleX(0); opacity: 0; } }
.tile__img { width: 46%; flex: none; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.quote blockquote { font-family: var(--display); font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; font-variation-settings: "wdth" 94; }
.quote figcaption { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.ins { display: flex; flex-wrap: wrap; gap: 6px; }
.ins span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.75); font-weight: 600; font-size: 14px; }

/* ---------- services row ---------- */
.svc-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.svc { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--spring), box-shadow .3s; min-height: 168px; }
.svc svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; transition: background .3s, transform .6s var(--spring); }
.svc b { font-size: 16px; line-height: 1.25; margin-top: 18px; }
.svc span { font-size: 14px; color: var(--ink-2); }
@media (hover: hover) { .svc:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); } }
@media (hover: hover) { .svc:hover svg { background: var(--mint); transform: rotate(-8deg) scale(1.06); } }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.doc { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.doc:nth-child(2) { --d: 70ms; } .doc:nth-child(3) { --d: 140ms; } .doc:nth-child(4) { --d: 210ms; }
.doc__img { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--sky); }
.doc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .doc:hover .doc__img img { transform: scale(1.04); } }
.doc__body { padding: 18px 20px 22px; display: grid; gap: 4px; flex: 1; align-content: start; }
.doc__body > b { font-size: 17px; }
.doc__body > span { font-size: 14px; color: var(--ink-2); }
.doc__fun { font-size: 14px; color: var(--ink-2); padding: 12px 0; margin: 10px 0 8px; border-block: 1px dashed var(--line-2); }
.doc .link-btn { justify-self: start; }

/* ---------- where ---------- */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.where__copy { display: grid; gap: 24px; align-content: start; padding: 8px; }
.where__list { display: grid; gap: 18px; }
.where__list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.where__list dt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.where__list dt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.where__list dd { font-size: 16px; }
.where__list a { border-bottom: 1px solid var(--line-2); }
.map { border-radius: var(--r-lg); background: var(--bg); overflow: hidden; min-height: 300px; }
.map svg { width: 100%; height: 100%; display: block; }
.map__block { fill: #E7E9E1; }
.map__road { fill: none; stroke: #fff; stroke-width: 22; }
.map__road--s { stroke-width: 12; }
.map text { font-family: var(--body); font-size: 12px; font-weight: 600; fill: var(--ink-3); letter-spacing: .02em; }
.map__pin circle:nth-child(2) { fill: var(--ink); }
.map__pin path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map__halo { fill: rgba(224,106,67,.18); animation: halo 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes halo { 50% { transform: scale(1.35); opacity: .4; } }
.map__route { fill: none; stroke: var(--coral); stroke-width: 3; stroke-dasharray: 6 7; stroke-linecap: round; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.map__p { font-size: 15px !important; fill: #fff !important; font-weight: 700; paint-order: stroke; stroke: #3D6FB6; stroke-width: 18px; stroke-linejoin: round; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(72px, 9vw, 130px); padding-block: 48px 28px; background: var(--surface); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot__grid > div { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--ink-2); }
.foot__grid h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.foot__brand p { max-width: 28em; }
.foot__small { font-size: 13px; }
.foot__demo { margin-block: 12px 0; font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* ---------- booking sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20,39,43,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.scrim.is-on { opacity: 1; }
.sheet { position: fixed; z-index: 61; top: 12px; right: 12px; bottom: 12px; width: min(500px, calc(100% - 24px)); display: flex; flex-direction: column; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); transform: translateX(110%); transition: transform .7s var(--soft-spring); overflow: hidden; }
.sheet.is-on { transform: none; }
.sheet__grab { display: none; }
.sheet__head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 8px; }
.sheet__prog { flex: 1; display: flex; gap: 5px; }
.sheet__prog i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.sheet__prog i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--soft-spring); }
.sheet__prog i.is-on::after { transform: scaleX(1); }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 24px 24px; position: relative; }
.step { display: none; flex-direction: column; gap: 14px; }
.step.is-on { display: flex; animation: stepIn .55s var(--soft-spring) both; }
.step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.sheet__t { font-size: 30px; line-height: 1.05; font-weight: 600; font-variation-settings: "wdth" 88; margin-bottom: 6px; }
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; text-align: left; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s, background .25s, transform .45s var(--spring); }
@media (hover: hover) { .choice:hover { background: var(--bg); } }
.choice:active { transform: scale(.98); }
.choice__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); }
.choice__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice__ico img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; }
.choice b { display: block; font-size: 16px; }
.choice small { font-size: 14px; color: var(--ink-2); }
.choice__tick { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: background .25s, box-shadow .25s; }
.choice__tick svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.6; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .4s var(--spring); }
.choice[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg); }
.choice[aria-checked="true"] .choice__tick { background: var(--ink); box-shadow: none; }
.choice[aria-checked="true"] .choice__tick svg { opacity: 1; transform: none; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--apricot); font-size: 14px; }
.notice svg { width: 22px; height: 22px; fill: none; stroke: var(--warn); stroke-width: 1.8; margin-top: 2px; }
.dates { display: flex; gap: 8px; overflow-x: auto; scroll-padding-inline: 24px; scrollbar-width: none; margin-inline: -24px; padding: 4px 24px; scroll-snap-type: x proximity; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 64px; padding: 10px 0; border-radius: 18px; display: grid; justify-items: center; gap: 1px; box-shadow: inset 0 0 0 1px var(--line-2); scroll-snap-align: start; transition: background .25s, color .25s, transform .45s var(--spring); }
.date small { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.date b { font-family: var(--display); font-size: 24px; line-height: 1.1; font-weight: 600; }
.date i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.date:active { transform: scale(.94); }
.date[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.date[aria-checked="true"] small, .date[aria-checked="true"] i { color: rgba(255,255,255,.7); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.time { height: 46px; border-radius: 14px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, transform .4s var(--spring); }
@media (hover: hover) { .time:hover { background: var(--bg); } }
.time:active { transform: scale(.94); }
.time[aria-checked="true"] { background: var(--mint); box-shadow: inset 0 0 0 2px var(--ok); }
.time:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.times__empty { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); padding: 12px 0; }
.bform { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; outline: none; transition: box-shadow .2s, background .2s; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.field.is-bad input { box-shadow: inset 0 0 0 2px var(--warn); }
.sheet__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.sheet__foot .btn { width: 100%; }
.sheet__sum { font-size: 14px; color: var(--ink-2); min-height: 21px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.sheet__sum b { color: var(--ink); }
.step--done { align-items: center; text-align: center; padding-top: 24px; }
.done__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; animation: popIn .8s var(--spring) both; }
.done__icon svg { width: 40px; height: 40px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done__icon path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) .35s forwards; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__p { color: var(--ink-2); max-width: 30em; }
.done__note { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); animation: enter .9s var(--soft-spring) .5s both; }
.ticket { width: 100%; text-align: left; margin-top: 8px; padding: 18px; border-radius: 20px; background: var(--bg); display: grid; gap: 12px; }
.ticket div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.ticket span { color: var(--ink-2); }
.ticket b { text-align: right; }

/* ---------- page head ---------- */
.page-head { display: grid; gap: 18px; padding-block: 28px clamp(36px, 5vw, 64px); }

/* ---------- master–detail ---------- */
.md { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.md__list { position: sticky; top: 96px; display: grid; gap: 4px; padding: 12px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.md__group { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 14px 12px 6px; }
.md__group:first-child { padding-top: 6px; }
.md__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; transition: background .25s, transform .45s var(--spring); }
.md__list a svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: background .25s; }
.md__list a span { display: grid; min-width: 0; }
.md__list a b { font-size: 15px; font-weight: 600; }
.md__list a small { font-size: 13px; color: var(--ink-2); }
@media (hover: hover) { .md__list a:hover { background: var(--bg); } }
.md__list a:active { transform: scale(.98); }
.md__list a[aria-current="true"] { background: var(--ink); color: #fff; }
.md__list a[aria-current="true"] small { color: rgba(255,255,255,.7); }
.md__list a[aria-current="true"] svg { background: rgba(255,255,255,.12); stroke: #fff; }
.md__detail { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; min-height: 600px; }
.md__back { display: none; }
.md__inner { padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 26px; }
.md__inner.is-swap { animation: swap .5s var(--soft-spring) both; }
@keyframes swap { from { opacity: 0; transform: translateY(16px); } }
.md__hero { display: grid; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.md__ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; }
.md__ico svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.md__inner h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; font-weight: 600; font-variation-settings: "wdth" 86; }
.md__tag { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts div { padding: 16px; border-radius: 18px; background: var(--bg); display: grid; gap: 2px; }
.facts span { font-size: 13px; color: var(--ink-2); }
.facts b { font-size: 18px; font-variant-numeric: tabular-nums; }
.flow { display: grid; gap: 0; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 20px; position: relative; }
.flow li::before { content: counter(flow); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); z-index: 1; }
.flow li::after { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: var(--line-2); }
.flow li:last-child::after { display: none; }
.flow b { display: block; font-size: 16px; }
.flow p { font-size: 15px; color: var(--ink-2); }
.md__who { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--bg); }
.md__who img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.md__who div { flex: 1; min-width: 0; display: grid; }
.md__who span { font-size: 14px; color: var(--ink-2); }
.md__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- prices ---------- */
.prices__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; }
.seg { position: relative; display: flex; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.seg button[aria-checked="true"] { color: #fff; }
.seg__ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .6s var(--spring), width .6s var(--spring); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.cat { height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, transform .4s var(--spring); }
.cat:active { transform: scale(.95); }
.cat[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ptable { display: grid; gap: 22px; }
.pgroup { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pgroup h2 { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.pgroup h2 svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.prow:first-of-type { border-top: 0; }
.prow__n b { font-weight: 500; }
.prow__n small { display: block; font-size: 14px; color: var(--ink-2); }
.prow__n mark { background: var(--butter); color: inherit; border-radius: 4px; padding: 0 2px; }
.prow__p { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 15px; }
.prow__y { justify-self: end; text-align: right; display: grid; justify-items: end; }
.prow__y b { font-size: 18px; font-variant-numeric: tabular-nums; }
.prow__y small { font-size: 12px; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mint); color: #1E5E3E; }
.badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.pgroup__h { display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px; gap: 16px; padding: 10px 22px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); background: #FAFAF7; }
.pgroup__h span:not(:first-child) { text-align: right; }
.prices__note { margin-top: 22px; display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--mint); font-size: 15px; }
.prices__note svg { width: 24px; height: 24px; fill: none; stroke: var(--ok); stroke-width: 2.2; }
.num { display: inline-block; }
.num.is-tick { animation: tick .45s var(--soft-spring); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.clock { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; }
.clock svg { width: 100%; height: 100%; overflow: visible; }
.clock__seg { fill: none; stroke-width: 26; stroke-linecap: butt; transition: opacity .4s, stroke-width .6s var(--spring); opacity: .38; }
.clock__seg.is-on { opacity: 1; stroke-width: 34; }
.clock__seg.is-done { opacity: .85; }
.clock text { font-family: var(--body); font-size: 11px; font-weight: 600; fill: var(--ink-3); text-anchor: middle; dominant-baseline: middle; }
.clock__hand { transform-box: view-box; transform-origin: 0 0; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transition: transform .8s var(--spring); }
.clock__c { position: absolute; inset: 30%; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-content: center; text-align: center; }
.clock__min { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 86; }
.clock__u { font-size: 13px; color: var(--ink-2); }
.tour { min-width: 0; display: grid; gap: 18px; }
.tour__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; scroll-behavior: smooth; outline: none; }
.tour__track::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 100%; scroll-snap-align: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; align-content: start; min-height: 340px; }
.tcard__n { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tcard h2 { font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -.025em; font-variation-settings: "wdth" 86; }
.tcard p { font-size: 18px; color: var(--ink-2); max-width: 32em; }
.tcard ul { display: grid; gap: 8px; margin-top: 6px; }
.tcard li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.tcard li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8.5' fill='none' stroke='%233C8C62' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tour__ctrl { display: flex; align-items: center; gap: 14px; }
.tour__dots { flex: 1; display: flex; gap: 6px; justify-content: center; }
.tour__dots button { width: 9px; height: 9px; border-radius: 99px; background: var(--line-2); transition: width .5s var(--spring), background .3s; }
.tour__dots button[aria-current="true"] { width: 30px; background: var(--ink); }

.prep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.prep__card { padding: 26px; border-radius: var(--r-xl); display: grid; gap: 14px; align-content: start; }
.prep__card p { font-size: 15px; color: var(--ink-2); }
.checklist { display: grid; gap: 6px; }
.checklist label { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer; font-size: 15px; transition: background .2s; }
@media (hover: hover) { .checklist label:hover { background: var(--bg); } }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.cbox { width: 26px; height: 26px; flex: none; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: background .25s, box-shadow .25s, transform .45s var(--spring); }
.cbox svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease) .05s; }
.checklist input:checked + .cbox { background: var(--ok); box-shadow: none; transform: scale(1.08); }
.checklist input:checked + .cbox svg { stroke-dashoffset: 0; }
.checklist input:checked ~ * { color: var(--ink-2); }
.checklist input:focus-visible + .cbox { outline: 2.5px solid var(--coral); outline-offset: 2px; }
.checklist__done { font-weight: 600; color: var(--ok) !important; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--spring); }
.checklist__done.is-on { opacity: 1; transform: none; }
.price-big { display: grid; gap: 2px; }
.price-big b { font-size: 52px; line-height: 1; font-weight: 600; font-variation-settings: "wdth" 86; }
.price-big span { font-size: 14px; color: var(--ink-2); }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.cta-band > div { display: grid; gap: 10px; }
.cta-band p { color: rgba(255,255,255,.72); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "e g" "d d" "f h"; }
  .svc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar .status { display: none; }
  .prep { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .page { padding-top: 84px; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .topbar { grid-template-columns: 1fr auto; top: env(safe-area-inset-top, 0px); padding-block: 12px; background: rgba(243,244,239,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .pillnav { display: none; }
  .topbar .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .tabbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 66px; padding: 0 6px; border-radius: 24px; background: rgba(255,255,255,.88); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); view-transition-name: tabbar; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 8px 0; border-radius: 16px; transition: color .25s; }
  .tabbar a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--spring); }
  .tabbar a:active svg { transform: scale(.85); }
  body[data-page="domov"] .tabbar [data-nav="domov"], body[data-page="osetrenia"] .tabbar [data-nav="osetrenia"],
  body[data-page="cennik"] .tabbar [data-nav="cennik"], body[data-page="navsteva"] .tabbar [data-nav="navsteva"] { color: var(--ink); }
  body[data-page="domov"] .tabbar [data-nav="domov"] svg, body[data-page="osetrenia"] .tabbar [data-nav="osetrenia"] svg,
  body[data-page="cennik"] .tabbar [data-nav="cennik"] svg, body[data-page="navsteva"] .tabbar [data-nav="navsteva"] svg { stroke-width: 2.3; }
  .tabbar__fab { justify-self: center; width: 54px; height: 54px; border-radius: 18px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(20,39,43,.6); transform: translateY(-14px); transition: transform .45s var(--spring); }
  .tabbar__fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .tabbar__fab:active { transform: translateY(-14px) scale(.9); }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 12px; }
  .hero__visual { padding: 0 0 70px 0; }
  .orb { inset: -4% 0 10% 0; }
  .hero__photo { aspect-ratio: 4 / 3.4; }
  .slots-card { left: 12px; right: 12px; width: auto; }
  .where { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }

  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(92svh, 760px); border-radius: 28px 28px 0 0; transform: translateY(105%); }
  .sheet__grab { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 10px auto 0; }

  .md { grid-template-columns: minmax(0, 1fr); }
  .md__list { position: static; }
  .md__detail { position: fixed; z-index: 50; inset: 0; border-radius: 0; min-height: 0; overflow-y: auto; transform: translateX(100%); transition: transform .6s var(--soft-spring); padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); box-shadow: none; }
  .md.is-detail .md__detail { transform: none; }
  .md__back { display: inline-flex; align-items: center; gap: 8px; margin: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 14px; }
  .md__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
  .md__inner { padding: 20px 18px 30px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .visit { grid-template-columns: minmax(0, 1fr); }
  .clock { width: min(78%, 320px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "e" "g" "d" "f" "h"; }
  .tile { min-height: 0; }
  .tile__mid { margin-top: 6px; }
  .tile--d { flex-direction: column; }
  .tile__img { width: 100%; height: 200px; }
  .minutes { flex-wrap: wrap; }
  .minutes span { flex: 1 1 40%; }
  .svc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { min-height: 150px; padding: 16px; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .doc { flex-direction: row; }
  .doc__img { width: 38%; aspect-ratio: auto; }
  .doc__body { padding: 14px 16px 16px; }
  .doc__fun { margin: 6px 0 4px; padding: 8px 0; }
  .where__list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__base { flex-direction: column; }
  .prices__bar .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 6px; font-size: 13px; }
  .prow, .pgroup__h { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 16px; }
  .prow__p, .pgroup__h span:nth-child(2) { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .pop { opacity: 1; transform: none; }
}

/* =====================================================================
   Polish layer: placeholders, states, toasts, cookies, a11y details
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: 110px; }
.page:focus { outline: none; }

/* skip link */
.skip { position: fixed; z-index: 100; top: 12px; left: 50%; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); transform: translate(-50%, -180%); transition: transform .5s var(--spring); }
.skip:focus { transform: translate(-50%, 0); }

/* page-load entrance (subpages had none; the hero copy now settles in with the photo) */
.page-head > *, .hero__copy > * { animation: enter .9s var(--soft-spring) both; }
.page-head > :nth-child(2), .hero__copy > :nth-child(2) { animation-delay: .07s; }
.page-head > :nth-child(3), .hero__copy > :nth-child(3) { animation-delay: .14s; }
.hero__copy > :nth-child(4) { animation-delay: .21s; }
.hero__copy > :nth-child(5) { animation-delay: .28s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

/* blur-up photos */
.ph { position: relative; isolation: isolate; background-color: var(--sky); }
.ph::before { content: ""; position: absolute; inset: -14px; z-index: -1; background: var(--lq, none) center / cover no-repeat; filter: blur(14px); }
.ph > img { position: relative; }
.js .ph > img { opacity: 0; transition: opacity .7s var(--ease); }
.js .ph > img.is-loaded { opacity: 1; }
.choice__ico.ph { overflow: hidden; border-radius: 14px; }
.md__who .ph { width: 56px; height: 56px; flex: none; border-radius: 16px; overflow: hidden; }





.lq-office { --lq: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAYABUDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDqo9zjcqsCffBqykMmc9CeM9TTNLuVmypRcZ4b8a5/Vr3xdHq91HYW8htFf90VgU5H1qVFdR8zOoEUnd//AB0UUuktcyaXbvfqVuSn7wEYOfpRT5UF2cjaeIQt9bxWNhuhZWM03XJ/hAHbt+dSnxbrkEMj3GgSJ+82qOTsHv6/hRRUxkDVh8vje7SQp/ZTLgDl93zZHUY7UUUVSYj/2Q=="); }

/* extra hover / press states */
.logo svg { transition: transform .6s var(--spring); }
@media (hover: hover) { .logo:hover svg { transform: rotate(-8deg) scale(1.04); } }
.logo:active svg { transform: scale(.92); }
@media (hover: hover) { .cat:not([aria-pressed="true"]):hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); } }
@media (hover: hover) { .cat[aria-pressed="true"]:hover { background: #1f3a40; } }
@media (hover: hover) { .date:not([aria-checked="true"]):hover { background: var(--bg); } }
.seg button { transition: color .3s, transform .4s var(--spring); }
@media (hover: hover) { .seg button:not([aria-checked="true"]):hover { color: var(--ink); } }
.seg button:active { transform: scale(.95); }
@media (hover: hover) { .tour__dots button:not([aria-current="true"]):hover { background: var(--ink-3); } }
.md__back { transition: background .25s, transform .4s var(--spring); }
@media (hover: hover) { .md__back:hover { background: var(--line); } }
.md__back:active { transform: scale(.96); }
.link-btn:active { transform: scale(.97); }
a.tile:active, .svc:active { transform: translateY(-1px) scale(.985); transition-duration: .15s; }
.foot a { transition: color .25s; }
@media (hover: hover) { .foot a:hover { color: var(--ink); } }
.tour__track:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 2px; border-radius: var(--r-xl); }
@media (hover: hover) { .tabbar a:hover { color: var(--ink-2); } }

/* copy to clipboard */
.copyline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.copy { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--ink-3); transition: background .25s, color .25s, transform .4s var(--spring); }
.copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .copy:hover { background: var(--bg); color: var(--ink); } }
.copy:active { transform: scale(.86); }
.copy.is-done { background: var(--mint); color: var(--ok); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__btn { font-size: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .25s, text-decoration-color .25s; }
@media (hover: hover) { .foot__btn:hover { color: var(--ink); text-decoration-color: var(--ink); } }

/* booking form: hints, inline errors */
.field__hint { font-size: 13px; color: var(--ink-3); }
.field__msg { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--warn); animation: msgIn .45s var(--soft-spring) both; }
.field__msg:empty { display: none; }
.field__msg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.field.is-bad input { background: #FDF4EF; }
.field.is-nudge input { animation: nudge .42s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(-4px); } }
@keyframes nudge { 25% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }

/* booking: busy, then done; failed-submit notice */
.btn.is-busy, .btn.is-ok { cursor: progress; }
.btn.is-ok { background: var(--ok); }
@media (hover: hover) { .btn.is-busy:hover svg, .btn.is-ok:hover svg { transform: none; } }
.btn .spin { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.spin circle { stroke-opacity: .4; }
.spin path { transform-origin: 12px 12px; animation: hand 1.1s linear infinite; }
@keyframes hand { to { transform: rotate(360deg); } }
.btn .ok-ico { width: 20px; height: 20px; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ok-ico path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .4s var(--ease) forwards; }
.sheet__err { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--apricot); font-size: 14px; line-height: 1.45; animation: msgIn .5s var(--soft-spring) both; }
.sheet__err svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* price list: brief recompute shimmer + empty state */
.ptable.is-loading .prow__y > * { opacity: 0; }
.ptable.is-loading .prow__y { position: relative; min-height: 28px; }
.ptable.is-loading .prow__y::before { content: ""; position: absolute; right: 0; top: 50%; width: 78px; height: 14px; margin-top: -7px; border-radius: 99px; background: linear-gradient(90deg, #ECEEE7 0%, #F8F9F5 45%, #ECEEE7 90%) 0 0 / 220% 100%; animation: shimmer .8s linear infinite; }
.ptable.is-loading .prow:nth-child(3n) .prow__y::before { width: 58px; }
.ptable.is-loading .prow:nth-child(4n+1) .prow__y::before { width: 104px; }
.ptable.is-loading .pgroup__h span:last-child { opacity: .4; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 44px 20px 48px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: swap .5s var(--soft-spring) both; }
.empty__art { width: 104px; height: 104px; border-radius: 32px; background: var(--butter); display: grid; place-items: center; margin-bottom: 6px; }
.empty__art svg { width: 76px; height: 76px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.empty__tooth { fill: #fff; }
.empty__lens circle { fill: rgba(244,237,207,.55); }
.empty__lens { animation: lens 3.6s var(--ease) infinite; }
@keyframes lens { 0%, 100% { transform: none; } 35% { transform: translate(-16px, -12px); } 65% { transform: translate(-6px, -20px); } }
.empty__t { font-family: var(--display); font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; font-variation-settings: "wdth" 90; text-wrap: balance; }
.empty__p { max-width: 30em; color: var(--ink-2); font-size: 15px; }
.empty__p a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.empty__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* toasts */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 22px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.35; box-shadow: var(--shadow-lg); animation: toastIn .6s var(--spring) both; }
.toast.is-out { animation: toastOut .3s var(--ease) both; }
.toast__ico { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ok); }
.toast__ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast--warn .toast__ico { background: var(--apricot); color: var(--warn); }
.toast--warn .toast__ico svg { stroke-width: 1.9; }
.toast--info .toast__ico { background: var(--lilac); color: var(--ink-2); }
.toast--info .toast__ico svg { stroke-width: 1.9; }
html.sheet-open .toasts { top: 24px; bottom: auto; left: calc(50% - 262px); max-width: calc(100% - 560px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.96); } }

/* back to top: the ring fills as you read, like the first-visit clock */
.totop { position: fixed; z-index: 44; right: var(--gut); bottom: 24px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .35s, transform .6s var(--spring), background .25s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop.is-on:active { transform: scale(.9); transition-duration: .12s; }
@media (hover: hover) { .totop:hover { background: #fff; } }
.totop > svg { grid-area: 1 / 1; }
.totop__ring { width: 100%; height: 100%; fill: none; transform: rotate(-90deg); }
.totop__ring circle { stroke: var(--line); stroke-width: 2.5; }
.totop__ring .totop__val { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.totop__ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--spring); }
@media (hover: hover) { .totop:hover .totop__ico { transform: translateY(-3px); } }

/* cookie banner */
.cookie { position: fixed; z-index: 55; left: var(--gut); bottom: 24px; width: min(410px, calc(100% - 32px)); max-height: calc(100svh - 130px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.92); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); animation: rise .8s var(--soft-spring) both; }
.cookie.is-out { animation: toastOut .35s var(--ease) both; }
.cookie__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie__t { font-family: var(--display); font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variation-settings: "wdth" 90; }
.cookie__more { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, box-shadow .25s, transform .4s var(--spring); }
@media (hover: hover) { .cookie__more:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } }
.cookie__more:active { transform: scale(.95); }
.cookie__more[aria-expanded="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.cookie__p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cookie__prefs { display: grid; gap: 2px; margin-inline: -8px; animation: msgIn .45s var(--soft-spring) both; }
.cookie__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie__b { height: 44px; padding: 0 12px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) { .cookie__b:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); } }
.cookie__save { grid-column: 1 / -1; height: 44px; }
.tog { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 8px; border-radius: 14px; cursor: pointer; transition: background .2s; }
@media (hover: hover) { .tog:hover { background: var(--bg); } }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog__sw { position: relative; width: 40px; height: 24px; margin-top: 1px; border-radius: 99px; background: var(--line-2); transition: background .25s; }
.tog__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,39,43,.25); transition: transform .5s var(--spring); }
.tog input:checked + .tog__sw { background: var(--ok); }
.tog input:checked + .tog__sw::after { transform: translateX(16px); }
.tog input:disabled + .tog__sw { opacity: .5; }
.tog:has(input:disabled) { cursor: default; }
@media (hover: hover) { .tog:has(input:disabled):hover { background: none; } }
.tog input:focus-visible + .tog__sw { outline: 2.5px solid var(--coral); outline-offset: 2px; }
.tog__l { display: grid; line-height: 1.35; }
.tog__l b { font-size: 15px; }
.tog__l small { font-size: 13px; color: var(--ink-2); }

@media (max-width: 900px) {
  .toasts { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  html.sheet-open .toasts { top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; max-width: calc(100% - 32px); }
  .totop { right: 14px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
  .cookie { left: 12px; right: 12px; width: auto; bottom: calc(94px + env(safe-area-inset-bottom, 0px)); max-height: calc(100svh - 200px); padding: 14px; gap: 10px; }
  .cookie__t { font-size: 17px; }
  .cookie__p { font-size: 13.5px; line-height: 1.45; }
  .cookie__b { height: 42px; }
  html.cookie-open .totop { opacity: 0; pointer-events: none; }
  /* compact phone banner: one sentence, two equal buttons, settings as a small link (~110px) */
  .cookie { padding: 12px 14px; gap: 8px; }
  .cookie__t, .cookie__p { display: none; }
  .cookie__short { display: block; flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
  .cookie__head { align-items: baseline; }
  .cookie__more { height: auto; padding: 2px 0; border-radius: 4px; box-shadow: none; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
  @media (hover: hover) { .cookie__more:hover { box-shadow: none; text-decoration-color: var(--ink); } }
  .cookie__more[aria-expanded="true"] { background: none; color: var(--ink); box-shadow: none; }
}
.cookie__short { display: none; }
@media (max-width: 900px) { .cookie__short { display: block; } }
html.sheet-open .totop { opacity: 0; pointer-events: none; }
/* Onest and Bricolage tuck the caron of ľ/ť under a following ascender (koľko); app.js wraps those letters in .lk */
.lk { letter-spacing: .05em; }

/* =====================================================================
   Mobile pass: thumb targets, calmer effects, phone-first ordering
   ===================================================================== */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
@media (hover: none) { button, .tabbar a, .choice, .date, .time, .cat, .seg button, .md__list a, .svc, .link-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } }
.sheet:focus { outline: none; }
.map { display: block; }
.where__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; font-size: 15px; }
.where__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.where__list .where__go { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.btn--ink:active { background: #1f3a40; }
.checklist label:active, .tog:active, .md__list a:active { background: var(--bg); }
.cookie__b:active { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.map:active { opacity: .92; }

/* desktop keeps its look; everything below only shapes phone and tablet layouts */
@media (max-width: 900px) {
  /* ---- calmer effects on phone hardware ---- */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; transition: opacity .25s, visibility 0s; }
  .scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,39,43,.42); }
  .totop { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .orb { animation: none; filter: blur(22px); }
  .hero__photo img { animation: none; }

  /* ---- hit areas ---- */
  .logo { padding-block: 5px; }
  .topbar .btn { height: 44px; }
  .md__back { height: 44px; }
  .tabbar a { min-height: 50px; align-content: center; }
  .copy { width: 44px; height: 44px; margin-block: -7px; }
  .copyline a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot__btn { display: inline-flex; align-items: center; min-height: 44px; }
  .foot__links { gap: 0 18px; }
  .link-btn { position: relative; }
  .link-btn::after { content: ""; position: absolute; inset: -12px -6px; }
  .tone-ink a { position: relative; }
  .tone-ink a::after { content: ""; position: absolute; inset: -12px -6px; }
  .where__go { min-height: 44px; margin-top: 0; }
  .where__list .copyline a { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
  .foot__links { align-items: center; }
  .totop { width: 48px; height: 48px; }
  .cat { height: 44px; padding: 0 16px; }
  .cookie__b, .cookie__save { height: 46px; }
  .cookie__more { position: relative; }
  .cookie__more::after { content: ""; position: absolute; inset: -14px -12px; }
  .tour__dots { gap: 10px; }
  .tour__dots button { position: relative; }
  .tour__dots button::after { content: ""; position: absolute; inset: -17px -6px; }
  .slot-row .btn { height: 44px; min-width: 78px; }

  /* ---- hero: actions first, the next free slots straight after, the photo as a footer ---- */
  .hero { gap: 20px; padding-top: 8px; justify-items: start; }
  .hero__copy { display: contents; }
  .hero__cta { width: 100%; }
  .hero__visual { justify-self: stretch; order: 1; display: grid; gap: 14px; padding: 0; }
  .trust { order: 2; padding-top: 0; }
  .slots-card { position: relative; grid-row: 1; left: auto; right: auto; bottom: auto; width: auto; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
  .hero__photo { grid-row: 2; aspect-ratio: 16 / 10; max-height: none; }
  .orb { inset: 40% -4% -8% -4%; }

  /* ---- booking sheet ---- */
  .sheet { bottom: var(--kb, 0px); height: min(92svh, 760px, calc(var(--vvh, 100svh) - 16px)); max-width: 640px; margin-inline: auto; }
  .sheet__head, .sheet__grab { touch-action: none; }
  .sheet__grab { position: relative; }
  .sheet__grab::after { content: ""; position: absolute; inset: -12px -70px -14px; }
  .sheet__body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sheet__sum { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.sheet-open { overscroll-behavior: none; }
  .sheet.kb-open .sheet__sum, .sheet.kb-open .sheet__grab, .sheet.kb-open .kicker { display: none; }
  .sheet.kb-open .sheet__t { font-size: 22px; margin-bottom: 0; }
  .sheet.kb-open .sheet__head { padding-block: 8px 2px; }
  .sheet.kb-open .sheet__foot { padding-block: 8px; gap: 6px; }
  .sheet.kb-open .btn--lg { height: 48px; }
  .sheet.kb-open .sheet__body { padding-top: 6px; }
  .sheet.kb-open .sheet__err { padding: 8px 12px; font-size: 13px; }

  /* ---- cookie banner takes the tab bar's place until answered (one fixed layer, about 16% of the screen) ---- */
  .cookie { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-height: calc(100svh - 96px); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.cookie-open .tabbar { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s; }
  html.cookie-open .toasts { bottom: auto; top: calc(72px + env(safe-area-inset-top, 0px)); }
  .toasts { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .map { min-height: 240px; }

  /* ---- price list: the insurer switch stays under the top bar while you read ---- */
  .prices__bar { display: contents; }
  .search { flex: none; width: 100%; margin-bottom: 12px; }
  .seg { position: sticky; z-index: 30; top: calc(70px + env(safe-area-inset-top, 0px)); width: 100%; margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 8px var(--bg); background: var(--surface); }
  .seg button { flex: 1 1 0; min-width: 0; padding: 0 4px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); gap: 8px; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: none; scroll-snap-align: start; }

  /* ---- first visit: smaller clock, cards that show the next one peeking ---- */
  .clock { width: min(56%, 220px); }
  .tour__track { overscroll-behavior-x: contain; }
  .tcard { flex-basis: 88%; min-height: 0; padding: 22px; }
  .tcard p { font-size: 17px; }
  .prep__card { padding: 22px; }
  .checklist { margin-inline: -12px; }

  /* ---- treatments: the list never looks "selected" until a detail is open; the detail has its own sticky actions ---- */
  .md:not(.is-detail) .md__list a[aria-current="true"] { background: transparent; color: var(--ink); }
  .md:not(.is-detail) .md__list a[aria-current="true"] small { color: var(--ink-2); }
  .md:not(.is-detail) .md__list a[aria-current="true"] svg { background: var(--bg); stroke: var(--ink); }
  .md__list a { min-height: 56px; }
  .md__detail { display: flex; flex-direction: column; padding-bottom: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .md__back { position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 3; align-self: flex-start; flex: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
  .md__inner { flex: 1; display: flex; flex-direction: column; padding-bottom: 0; }
  .md__cta { position: sticky; bottom: 0; z-index: 2; margin: auto -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); flex-wrap: nowrap; gap: 10px; background: #fff; border-top: 1px solid var(--line); }
  .md__cta .btn { flex: 1 1 auto; min-width: 0; padding: 0 16px; }
  .md__cta .link-btn { flex: none; height: 56px; padding: 0 16px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
  .md__cta .link-btn::after { inset: 0; }
  .md__cta .link-btn:active { background: var(--bg); }
  .md__x { display: none; }
  .md__hero { padding-top: 6px; }
}

@media (max-width: 640px) {
  /* ---- bento: the useful tiles first (first visit, pain, price, insurers), compact rows for the small ones ---- */
  .bento { grid-template-areas: "a" "b" "e" "h" "c" "g" "d" "f"; gap: 12px; }
  .tile { padding: 20px; border-radius: 28px; }
  .tile--a { padding: 24px; }
  .tile--d { padding: 0; }
  .tile--c, .tile--e, .tile--g, .tile--h { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start; padding: 18px 20px; }
  .tile--c > .tile__ico, .tile--e > .tile__ico, .tile--g > .tile__ico, .tile--h > .tile__ico { grid-row: 1 / span 2; margin-top: 2px; }
  .tile--c > :not(.tile__ico), .tile--e > :not(.tile__ico), .tile--g > :not(.tile__ico), .tile--h > :not(.tile__ico) { grid-column: 2; }
  .tile--c .tile__mid, .tile--e .tile__mid, .tile--g .tile__mid, .tile--h .tile__mid { margin-top: 0; font-size: 21px; }
  .tile--h .ins { margin-top: 6px; }
  .tile__img { height: 180px; }
  .tile--d .tile__side { padding: 20px; }

  /* ---- services: one swipeable row instead of three rows of tiles ---- */
  .svc-row { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 8px; scroll-padding-inline: var(--gut); }
  .svc-row::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 42%; min-width: 150px; scroll-snap-align: start; min-height: 156px; }

  /* ---- team: swipe through the four faces ---- */
  .team { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 8px; scroll-padding-inline: var(--gut); }
  .team::-webkit-scrollbar { display: none; }
  .doc { flex: 0 0 min(76vw, 300px); flex-direction: column; scroll-snap-align: start; }
  .doc__img { width: 100%; aspect-ratio: 4 / 3.3; }
  .doc__body { padding: 16px 18px 12px; }
  .doc__fun { margin: 8px 0 4px; padding: 10px 0; }

  .slots-card { padding: 16px; }
  .slots-card .kicker { font-size: 11px; letter-spacing: .05em; }
  .slots-card .status { display: none; }
  .slot-row { gap: 10px; }
  .where { padding: 16px; }
  .where__copy { padding: 4px; }
  .sheet__t { font-size: 28px; }
  .sheet__body { padding-inline: 20px; }
  .dates { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; }
}

@media (max-width: 340px) {
  .seg button { font-size: 12px; line-height: 1.1; white-space: normal; }
  .slot-row__when { width: 52px; }
  .slot-row .btn { min-width: 70px; padding: 0 12px; }
  .h1 { font-size: 38px; }
  .tabbar a { font-size: 10.5px; }
  .md__cta .btn { font-size: 15px; }
}

/* landscape phones: little vertical room, so nothing stays pinned to the top and the dock gets slimmer */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .page { padding-top: 24px; }
  .topbar { position: absolute; }
  .tabbar { height: 54px; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
  .tabbar a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabbar__fab { width: 46px; height: 46px; transform: translateY(-8px); }
  .tabbar__fab:active { transform: translateY(-8px) scale(.9); }
  .totop { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .cookie { left: max(12px, env(safe-area-inset-left, 0px)); right: auto; width: min(560px, calc(100% - 24px)); }
  .toasts { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .hero__photo { aspect-ratio: 16 / 7; }
  .sheet { height: calc(100svh - 12px); }
  .sheet__grab, .sheet__sum { display: none; }
  .sheet__head { padding-block: 8px 2px; }
  .sheet__t { font-size: 22px; margin-bottom: 0; }
  .sheet .kicker { display: none; }
  .sheet__foot { padding-block: 8px; gap: 6px; }
  .btn--lg { height: 48px; }
  .clock { width: min(30%, 180px); }
}

.seg__s { display: none; }
@media (max-width: 420px) {
  .seg__l { display: none; }
  .seg__s { display: inline; }
  .seg button { font-size: 13px; padding: 0 2px; }
}
@media (max-width: 340px) { .seg button { font-size: 12px; } }

/* ---------- language switch (SK | EN) ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.lang button { position: relative; min-width: 32px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--ink-2); transition: color .25s, background .25s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .lang button[aria-pressed="false"]:hover { color: var(--ink); background: rgba(20,39,43,.07); } }
.lang button::after { content: ""; position: absolute; inset: -7px 0; }
.lang--foot { background: var(--bg); }
@media (max-width: 900px) {
  .topbar__r { gap: 10px; }
  .lang--foot { margin-right: 4px; }
}
@media (max-width: 360px) {
  .topbar { gap: 8px; }
  .topbar__r { gap: 6px; }
  .topbar .btn { padding: 0 12px; }
  .lang { padding: 2px; }
  .lang button { min-width: 25px; height: 28px; padding: 0 5px; font-size: 11px; }
}

/* Dropdown look */
.field .cs { --cs-h: 52px; --cs-size: 16px; --cs-field: var(--bg); --cs-field-line: inset 0 0 0 1px var(--line); --cs-open-line: inset 0 0 0 2px var(--ink); --cs-radius: 14px; --cs-accent: var(--ink); --cs-bg: #fff; --cs-border: 1px solid var(--line); --cs-radius-item: 10px; --cs-hover: var(--bg); --cs-weight: 600; --cs-shadow: 0 20px 44px -16px rgba(22, 50, 47, .3); }
