/* P13 – SKLOVINA zubná ambulancia · Claymorphism, mint clay + coral */

:root {
  --bg: oklch(0.95 0.03 180);
  --clay: oklch(0.97 0.025 180);
  --clay-hi: oklch(0.99 0.01 180);
  --clay-lo: oklch(0.8 0.05 190);
  --fg: oklch(0.3 0.04 300);
  --muted: oklch(0.48 0.03 300);
  --accent: oklch(0.7 0.16 30);
  --accent-fg: oklch(0.2 0.04 30);
  --accent-hi: oklch(0.8 0.12 35);
  --accent-lo: oklch(0.58 0.15 30);
  --line: transparent;
  --mint-1: oklch(0.95 0.045 172);
  --mint-2: oklch(0.87 0.08 172);
  --mint-3: oklch(0.76 0.09 180);
  --mint-ink: oklch(0.55 0.11 175);
  --white: oklch(1 0 0);

  --in-hi: var(--clay-hi);
  --in-lo: var(--clay-lo);

  --font-display: "Gabarito", ui-rounded, system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.625rem, 1.25rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem);

  --section-y: clamp(3.5rem, 2.5rem + 3vw, 6rem);
  --gap: 16px;
  --r: 32px;
  --r-sm: 20px;
  --pad: clamp(20px, 1rem + 1.2vw, 32px);
  --gutter: 16px;
}
@media (min-width: 700px) {
  :root { --gap: 24px; --gutter: clamp(24px, 4vw, 40px); }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.motion { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--fg); color: var(--clay); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.display-1, .display-2, .display-3, .panel-title, .chip-val, .num, .medal {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.display-1 { font-size: var(--step-4); line-height: 1.05; }
.display-2 { font-size: var(--step-3); line-height: 1.1; text-wrap: balance; }
.display-3 { font-size: var(--step-2); line-height: 1.2; }
.eyebrow, .label {
  font: 600 0.75rem/1.3 var(--font-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.small { font-size: 0.875rem; color: var(--muted); }
.link {
  color: var(--fg); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  text-decoration-color: var(--mint-3);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.link:hover { text-decoration-color: var(--accent); }

/* ---------- clay recipe ---------- */
/* The single shadow of the page. It lives on a pseudo element so that the
   inflate animates only its opacity, never the box-shadow itself. */
.tile::after,
.btn::before,
.chip::before,
.rchip span::before,
.fbtn::before,
.icon-btn::before {
  box-shadow: 8px 8px 16px var(--clay-lo), -6px -6px 14px var(--clay-hi),
    inset 2px 2px 4px var(--in-hi), inset -3px -3px 6px var(--in-lo);
}
/* pressed: outer 2px, inner stronger */
.btn::after,
.chip::after,
.fbtn::after,
.icon-btn::after,
.nav-links a::after {
  box-shadow: 2px 2px 4px var(--clay-lo), -2px -2px 4px var(--clay-hi),
    inset 4px 4px 8px var(--in-lo), inset -3px -3px 6px var(--in-hi);
}
.well {
  background: var(--bg);
  box-shadow: inset 4px 4px 8px var(--clay-lo), inset -4px -4px 8px var(--clay-hi);
}

.tile {
  position: relative;
  isolation: isolate;
  background: var(--clay);
  border-radius: var(--r);
  padding: var(--pad);
  transform-origin: 50% 50%;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

/* Inflate start state – only when JS + GSAP + motion allowed */
html.motion .tile,
html.motion .panel-cta { transform: scale(0.72); }
html.motion .tile::after { opacity: 0; transition: opacity 0.55s cubic-bezier(0.215, 0.61, 0.355, 1); }
html.motion .tile.is-in::after { opacity: 1; }
html.motion .is-in { transform: none; }

/* ---------- pressable controls ---------- */
.btn, .chip, .fbtn, .icon-btn {
  position: relative;
  isolation: isolate;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn::before, .btn::after,
.chip::before, .chip::after,
.fbtn::before, .fbtn::after,
.icon-btn::before, .icon-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}
.btn::after, .chip::after, .fbtn::after, .icon-btn::after { opacity: 0; }
.btn:hover, .chip:hover, .fbtn:hover, .icon-btn:hover { transform: scale(0.985); }
.btn:hover::before, .chip:hover::before, .fbtn:hover::before, .icon-btn:hover::before { opacity: 0; }
.btn:hover::after, .chip:hover::after, .fbtn:hover::after, .icon-btn:hover::after { opacity: 1; }
.btn:active, .chip:active, .fbtn:active, .icon-btn:active { transform: scale(0.97); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: var(--r-sm);
  background: var(--clay);
  color: var(--fg);
  font: 600 var(--step-0)/1.2 var(--font-text);
  text-decoration: none;
  text-align: center;
}
.btn svg { width: 20px; height: 20px; }
.btn-accent, .fbtn-accent {
  --in-hi: var(--accent-hi);
  --in-lo: var(--accent-lo);
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-mint, .fbtn-mint {
  --in-hi: var(--mint-1);
  --in-lo: var(--mint-3);
  background: var(--mint-2);
  color: var(--fg);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clay);
}

svg:has(> use[href^="#i-"]) {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(12px, 2vw, 24px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}
.t-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 800 1.375rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand-mark { width: 26px; height: 37px; }
.nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -4px -8px;
  padding: 4px 8px;
}
.nav-links::-webkit-scrollbar { display: none; }
@media (max-width: 559px) {
  .nav-links { flex-wrap: wrap; overflow: visible; gap: 0 2px; }
  .nav-links a { padding: 0 10px; font-size: 0.875rem; }
}
.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  pointer-events: none;
}
.nav-links a:hover::after { opacity: 1; }

.t-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  min-height: 360px;
}
.t-hero .eyebrow { margin-bottom: auto; padding-bottom: 24px; }
.t-hero h1 { max-width: 16ch; overflow-wrap: anywhere; }
.h1-a { display: block; }
.h1-b {
  display: block;
  margin-top: 0.35em;
  max-width: 22ch;
  font-size: max(0.5em, 1.25rem);
  font-weight: 500;
  line-height: 1.15;
}
.lead { max-width: 36rem; color: var(--muted); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 4px;
}

.hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.t-tooth { grid-column: 1; grid-row: 1; display: grid; place-items: center; padding: 16px; }
.t-today { grid-column: 2; grid-row: 1; }
.hero-side > .t-chip:nth-child(2) { grid-column: 1; grid-row: 2; }
.hero-side > .t-chip:nth-child(3) { grid-column: 2; grid-row: 2; }
.clay-tooth { width: min(180px, 70%); height: auto; aspect-ratio: 168 / 238; transform-origin: 50% 90%; }
.t-chip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 132px;
  padding: 18px;
}
.chip-val {
  font-size: clamp(1.25rem, 0.7rem + 1.4vw, 2.25rem);
  line-height: 1.1;
}

.tc-base { fill: var(--mint-2); }
.tc-shade { fill: var(--mint-3); }
.tc-light { fill: var(--mint-1); }
.tc-spec { fill: var(--white); }
.tc-crease { fill: none; stroke: var(--mint-3); stroke-width: 5; stroke-linecap: round; }
.tc-floor { fill: var(--clay-lo); opacity: 0.45; }

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
  }
  .t-nav { grid-column: 1 / 8; grid-row: 1; }
  .t-hero { grid-column: 1 / 8; grid-row: 2; }
  .hero-side {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
  .t-tooth { grid-row: 1 / 4; }
  .t-today { grid-column: 2; grid-row: 1; }
  .hero-side > .t-chip:nth-child(2) { grid-column: 2; grid-row: 2; }
  .hero-side > .t-chip:nth-child(3) { grid-column: 2; grid-row: 3; }
  .t-chip { padding: 22px 24px; min-height: 0; }
  .clay-tooth { width: min(220px, 84%); }
  .t-hero { min-height: clamp(460px, 58vh, 580px); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y) 0; scroll-margin-top: 16px; }
.section:last-of-type { padding-bottom: var(--section-y); }
.sec-head { max-width: 46rem; margin-bottom: clamp(24px, 1rem + 1.5vw, 40px); }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec-lead { margin-top: 16px; color: var(--muted); max-width: 38rem; }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.bento > * { grid-column: 1 / -1; }

/* 2. first visit */
.step { display: flex; flex-direction: column; gap: 12px; }
.num {
  display: grid;
  place-items: center;
  width: 104px;
  height: 84px;
  margin-bottom: 8px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--mint-ink);
}
.dur { font: 600 0.75rem/1.3 var(--font-text); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.step p:last-child { color: var(--muted); }
@media (min-width: 900px) {
  .steps > * { grid-column: span 4; }
}

/* ---------- 3. tooth map ---------- */
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.map-tile { display: flex; flex-direction: column; gap: 16px; }
.chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -16px calc(var(--pad) * -1);
  padding: 16px var(--pad) 22px;
  scroll-padding-inline: var(--pad);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--clay);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.chip[aria-pressed="true"] {
  --in-hi: var(--accent-hi);
  --in-lo: var(--accent-lo);
  background: var(--accent);
  color: var(--accent-fg);
}
.chip[aria-pressed="true"]::before { opacity: 0; }
.chip[aria-pressed="true"]::after { opacity: 1; }

.arch {
  position: relative;
  aspect-ratio: 10 / 7;
  margin-inline: -8px;
}
.gums { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gums path { fill: none; stroke: var(--mint-2); stroke-linecap: round; opacity: 0.5; }
.gums .mid { stroke: var(--clay-lo); stroke-width: 1.5; stroke-dasharray: 4 8; opacity: 0.7; }
.teeth { position: absolute; inset: 0; }
.arch-nojs { position: absolute; inset: 30% 10% auto; text-align: center; color: var(--muted); }
html.js .arch-nojs { display: none; }
html:not(.js) .q-label, html:not(.js) .arch-hint { display: none; }
.q-label {
  position: absolute;
  font: 600 0.6875rem/1.2 var(--font-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.q1 { left: 8px; top: 0; }
.q2 { right: 8px; top: 0; text-align: right; }
.q4 { left: 8px; bottom: 0; }
.q3 { right: 8px; bottom: 0; text-align: right; }
.arch-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  translate: -50% -50%;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.tooth {
  --w: 40px;
  --tf: var(--clay);
  --ts: var(--clay-lo);
  --tg: var(--clay-lo);
  --tsw: 1.5px;
  --tso: 0.9;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: var(--w);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  scale: 1;
  transition: scale 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-tap-highlight-color: transparent;
}
.tooth svg { width: 100%; height: 100%; overflow: visible; rotate: var(--r, 0deg); pointer-events: none; }
.tb {
  fill: var(--tf);
  stroke: var(--ts);
  stroke-width: var(--tsw);
  stroke-opacity: var(--tso);
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease-out, stroke-opacity 0.15s ease-out;
}
.tg { fill: none; stroke: var(--tg); stroke-width: 1.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.75; }
.th { fill: var(--clay-hi); }
.tooth:hover { --tf: var(--mint-1); }
.tooth.is-fit { --ts: var(--mint-ink); --tsw: 3px; --tso: 1; }
.tooth[aria-pressed="true"] {
  --tf: var(--accent);
  --ts: var(--accent-lo);
  --tg: var(--accent-lo);
  --tso: 1;
  scale: 1.12;
  z-index: 2;
}
.fdi {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: var(--lx, -50%) var(--ly, -50%);
  font: 300 0.6875rem/1 var(--font-text);
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.tooth[aria-pressed="true"] .fdi { color: var(--fg); font-weight: 600; }
.arch[data-q] .tooth { --tso: 0.3; }
.arch[data-q="1"] .tooth[data-q="1"],
.arch[data-q="2"] .tooth[data-q="2"],
.arch[data-q="3"] .tooth[data-q="3"],
.arch[data-q="4"] .tooth[data-q="4"],
.arch[data-q] .tooth.is-fit,
.arch[data-q] .tooth[aria-pressed="true"] { --tso: 1; }

/* panel */
.panel { display: flex; flex-direction: column; gap: 16px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-nav { display: flex; gap: 12px; }
.panel-title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: var(--step-2); line-height: 1.2; }
.panel-num {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 56px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}
html:not(.js) .panel-num { background: var(--mint-2); color: var(--fg); font-size: 1.25rem; }
.panel-body { transition: opacity 0.15s ease-out; }
.panel-body.is-swap { opacity: 0; }
.tlist { display: grid; gap: 10px; }
.tlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: var(--r-sm);
}
.tlist .tn { font-weight: 600; line-height: 1.3; }
.tlist .tp { font: 700 var(--step-1)/1.2 var(--font-display); text-align: right; white-space: nowrap; }
.tlist .td { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); }
.tlist li.is-active { outline: 3px solid var(--mint-ink); outline-offset: -3px; }
.filter-note { margin-top: 12px; font-size: 0.9375rem; }
.filter-note b { font-weight: 600; }
.panel-note { font-size: 0.875rem; color: var(--muted); }
.panel-cta { position: sticky; bottom: 12px; z-index: 5; width: 100%; }

@media (min-width: 900px) {
  .map-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 1fr auto;
  }
  .map-tile { grid-column: 1 / 9; grid-row: 1 / 3; }
  .panel { grid-column: 9 / 13; grid-row: 1 / 3; padding-bottom: calc(56px + var(--pad) * 2); }
  .panel-cta {
    position: relative;
    bottom: auto;
    grid-column: 9 / 13;
    grid-row: 2;
    align-self: end;
    width: auto;
    margin: 0 var(--pad) var(--pad);
    padding-inline: 16px;
  }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0 0 4px; }
}
@media (max-width: 899px) {
  .arch { aspect-ratio: 10 / 13; min-height: 220px; margin-inline: calc(var(--pad) * -0.5); }
  .chips { order: 2; }
  .arch-hint { width: 50%; font-size: 0.75rem; }
}

/* ---------- media ---------- */
.t-media { padding: 12px; display: flex; flex-direction: column; }
.media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg);
}
.r43 { aspect-ratio: 4 / 3; }
.r32 { aspect-ratio: 3 / 2; }
.r11 { aspect-ratio: 1 / 1; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .ph { display: none; }
.media.is-missing { box-shadow: inset 4px 4px 8px var(--clay-lo), inset -4px -4px 8px var(--clay-hi); }
.media.is-missing .ph {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 62%;
  width: auto;
  aspect-ratio: 168 / 238;
  translate: -50% -50%;
}
.t-media figcaption { padding: 14px 10px 6px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- 4. team ---------- */
.doc { display: flex; align-items: center; gap: 20px; }
.medal {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--mint-ink);
}
.doc h3 { margin-bottom: 6px; }
.doc p { color: var(--muted); }
.doc .since { margin-top: 6px; font: 600 0.75rem/1.3 var(--font-text); text-transform: uppercase; letter-spacing: 0.06em; }
@media (min-width: 700px) and (max-width: 899px) {
  .team .doc:nth-of-type(2) { grid-column: 1 / 7; }
  .team .doc:nth-of-type(3) { grid-column: 7 / 13; }
}
@media (min-width: 900px) {
  .t-ord { grid-column: 1 / 8; grid-row: 1 / 3; }
  .t-rec { grid-column: 8 / 13; grid-row: 1; }
  .team .doc:nth-of-type(1) { grid-column: 8 / 13; grid-row: 2; }
  .team .doc:nth-of-type(2) { grid-column: 1 / 7; grid-row: 3; }
  .team .doc:nth-of-type(3) { grid-column: 7 / 13; grid-row: 3; }
}

/* ---------- 5. payments ---------- */
.t-ins, .t-prices { display: flex; flex-direction: column; gap: 20px; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.clay-chip {
  position: relative;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--clay);
  font-weight: 600;
  box-shadow: 8px 8px 16px var(--clay-lo), -6px -6px 14px var(--clay-hi),
    inset 2px 2px 4px var(--clay-hi), inset -3px -3px 6px var(--clay-lo);
}
.facts { display: grid; gap: 10px; }
.facts strong { font-weight: 600; }
.prices { display: grid; gap: 8px; }
.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 16px;
}
.prices li:nth-child(odd) { background: var(--bg); }
.prices b { font: 700 var(--step-1)/1.2 var(--font-display); white-space: nowrap; }
@media (min-width: 900px) {
  .t-ins { grid-column: 1 / 6; }
  .t-prices { grid-column: 6 / 13; }
}

/* ---------- 6. FAQ ---------- */
.q { padding: 0; }
.q details { border-radius: inherit; }
.q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px var(--pad);
  border-radius: inherit;
  font: 700 var(--step-1)/1.3 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--fg), var(--fg)) center / 12px 2px no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 2px 12px no-repeat,
    var(--bg);
  box-shadow: inset 2px 2px 4px var(--clay-lo), inset -2px -2px 4px var(--clay-hi);
  transition: rotate 0.2s ease-out;
}
.q details[open] summary::after { rotate: 45deg; }
.q details p { padding: 0 var(--pad) var(--pad); color: var(--muted); }
.q details p + p { margin-top: -8px; }
@media (min-width: 900px) {
  .t-kids { grid-column: 1 / 5; grid-row: 1 / 7; align-self: start; }
  .faq .q { grid-column: 5 / 13; }
}

/* ---------- 7. contact ---------- */
.t-form { display: flex; flex-direction: column; }
#book { display: grid; gap: 22px; }
.f-group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.f-group legend { margin-bottom: 12px; padding: 0; }
.tooth-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 48px; }
.chip-tooth {
  --in-hi: var(--accent-hi);
  --in-lo: var(--accent-lo);
  display: inline-flex;
  padding: 0 4px 0 18px;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: default;
}
.chip-tooth:hover, .chip-tooth:active { transform: none; }
.chip-tooth[hidden] { display: none; }
.chip-tooth b { font: 800 1.125rem/1 var(--font-display); }
.chip-x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.chip-x:hover { background: var(--accent-hi); }
.hint { color: var(--muted); }
.hint[hidden] { display: none; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.rchip { position: relative; display: inline-flex; cursor: pointer; }
.rchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rchip span {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--clay);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.15s ease-out;
}
.rchip span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.rchip:hover span { transform: scale(0.985); }
.rchip input:checked + span {
  --in-hi: var(--accent-hi);
  --in-lo: var(--accent-lo);
  background: var(--accent);
  color: var(--accent-fg);
}
.rchip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.rchip-fear { justify-self: start; }
.rchip-fear span::after { content: "voliteľné"; margin-left: 10px; font-weight: 400; font-size: 0.8125rem; opacity: 0.8; }

.f-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; }
.field input {
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: inset 4px 4px 8px var(--clay-lo), inset -4px -4px 8px var(--clay-hi);
}
.field input::placeholder { color: var(--muted); opacity: 0.85; }
.field input:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--accent-lo); }
.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent-lo); }
.consent label { font-size: 0.9375rem; }
.err { color: oklch(0.45 0.16 28); font-weight: 600; font-size: 0.9375rem; }
.err[hidden] { display: none; }
.btn-submit { justify-self: start; }
.success { display: grid; justify-items: start; gap: 20px; padding-block: 16px; }
.success[hidden] { display: none; }
.ok-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: var(--mint-ink); }
.ok-mark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.t-info { display: flex; flex-direction: column; gap: 18px; }
.info { display: grid; gap: 12px; }
.info li { display: flex; align-items: center; gap: 12px; }
.info svg { color: var(--mint-ink); }
.hours-h { display: flex; align-items: center; gap: 10px; margin: 6px 0 -6px; }
.hours-h svg { color: var(--mint-ink); }
.hours { display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.t-info .btn { align-self: start; margin-top: auto; }
@media (min-width: 900px) {
  .t-form { grid-column: 1 / 8; }
  .t-info { grid-column: 8 / 13; }
}

/* ---------- footer ---------- */
.footer { padding-bottom: 120px; }
.t-foot { display: grid; gap: 24px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .brand-mark { width: 32px; height: 45px; flex: none; }
.foot-brand p { overflow-wrap: anywhere; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-inline: -12px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.foot-hours { color: var(--muted); }
.nw { white-space: nowrap; }
.demo { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 900px) {
  .t-foot { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .demo { grid-column: 1 / -1; }
}

/* ---------- floating clay buttons ---------- */
.float {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity 0.2s ease-out, translate 0.2s ease-out, visibility 0s linear 0.2s;
}
.float.is-on {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 0.2s ease-out, translate 0.2s ease-out, visibility 0s;
}
.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
@media (max-width: 699px) {
  .float { left: 50%; right: auto; bottom: 16px; translate: -50% 12px; }
  .float.is-on { translate: -50% 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .tooth[aria-pressed="true"] { scale: 1; }
  .btn:hover, .chip:hover, .fbtn:hover, .icon-btn:hover, .rchip:hover span,
  .btn:active, .chip:active, .fbtn:active, .icon-btn:active { transform: none; }
}

/* no JS: the map cannot work, hide its controls (prices stay in the price list) */
html:not(.js) .chips,
html:not(.js) .panel-nav { display: none; }
