/* ==========================================================================
   Nail Studio Nikica — javni sajt
   Paleta: belo + roze, sa ružičasto-zlatnim (rose gold) detaljima iz logotipa.
   ========================================================================== */

:root {
  --white: #ffffff;
  --blush: #fff3f6;
  --petal: #fbd9e3;
  --rose: #ee7fa6;
  --lacquer: #c2185b;
  --lacquer-deep: #9c0f47;
  --plum: #3a1a2c;
  --plum-soft: #7a5468;
  --line: #f3d3de;
  --line-strong: #e9b6c8;
  --ok: #1f7a4d;
  --ok-bg: #e7f5ed;
  --gold-1: #f8e2d6;
  --gold-2: #e2ad97;
  --gold-3: #b9735f;
  --gold-grad: linear-gradient(135deg, #fbe9df 0%, #e8b6a0 40%, #b9735f 72%, #f3cbb7 100%);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --shadow-soft: 0 1px 2px rgba(58, 26, 44, .05), 0 12px 32px -12px rgba(194, 24, 91, .22);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.09rem;
  font-variation-settings: "SOFT" 100, "WONK" 0; /* Fraunces: meke, zaobljene ivice slova */
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  color: var(--plum);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--lacquer); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lacquer); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--lacquer); color: #fff; box-shadow: 0 8px 20px -10px rgba(194, 24, 91, .7); }
.btn-primary:hover { background: var(--lacquer-deep); }
.btn-ghost { background: var(--white); color: var(--lacquer); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--lacquer); background: var(--blush); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-btn { background: none; border: 0; padding: 4px 0; color: var(--lacquer); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; color: var(--lacquer); font-size: 1.4rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--lacquer); background: var(--blush); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Zaglavlje ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand-small { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--plum-soft); margin-bottom: 3px; }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.75rem; color: var(--lacquer); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--lacquer); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .25s var(--ease-out), top .25s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-copy { position: relative; z-index: 2; }

.open-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--blush); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--plum-soft); }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--plum-soft); position: relative; }
.open-pill.is-open .open-dot { background: var(--ok); }
.open-pill.is-open .open-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.4s ease-out infinite; }
.open-pill.is-closed .open-dot { background: var(--lacquer); }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* Naziv salona: malo „Nail Studio“ + veliko „Nikica“ sa sjajem laka */
.wordmark { margin: 0 0 26px; line-height: .86; font-weight: 400; }
.wm-small {
  display: block; font-family: var(--font-body); font-weight: 600; font-size: clamp(.95rem, 1.5vw, 1.15rem);
  letter-spacing: .32em; color: var(--plum); margin: 0 0 14px 6px;
  opacity: 0; animation: fadeIn .8s .15s var(--ease-out) forwards;
}
.wm-big {
  display: block; position: relative; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(4.6rem, 12.5vw, 10.5rem); letter-spacing: -.035em; color: var(--lacquer);
  background: linear-gradient(100deg, var(--lacquer-deep) 0%, var(--lacquer) 38%, #ffd2e1 50%, var(--lacquer) 62%, var(--rose) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding: 0 .08em .06em 0;
  opacity: 0; animation: wordIn 1s .25s var(--ease-out) forwards, gloss 1.7s 1.15s var(--ease-out) forwards;
}
.wm-big:hover { animation: none; opacity: 1; background-position: 0 0; transition: background-position 1.2s var(--ease-out); }
@keyframes wordIn { from { opacity: 0; transform: translateY(18px); letter-spacing: -.01em; } to { opacity: 1; transform: none; letter-spacing: -.035em; } }
@keyframes gloss { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.lede { max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--plum-soft); margin: 0 0 34px; opacity: 0; animation: fadeUp .8s .55s var(--ease-out) forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp .8s .7s var(--ease-out) forwards; }
.hero-phone { margin: 26px 0 0; font-size: .95rem; color: var(--plum-soft); }
.hero-phone a { color: var(--lacquer); font-weight: 600; text-decoration: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Logo salona: oreol, kružna ružičasto-zlatna putanja, odsjaj i zvezdice */
.hero-art { position: relative; display: grid; place-items: center; min-height: clamp(340px, 44vw, 560px); }
.logo-halo { position: absolute; width: min(94%, 540px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #fff 0%, #fff6f8 42%, rgba(251, 217, 227, .7) 63%, rgba(251, 217, 227, 0) 71%);
  opacity: 0; transform: scale(.86); animation: haloIn 1.2s .15s var(--ease-out) forwards; }
.logo-halo::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(185, 115, 95, .32); animation: spin 80s linear infinite; }
.logo-halo::after {
  content: ''; position: absolute; inset: 2%; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 0deg, rgba(226, 173, 151, 0) 0deg, rgba(226, 173, 151, .95) 70deg, rgba(185, 115, 95, 0) 120deg, rgba(185, 115, 95, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 10s linear infinite;
}
@keyframes haloIn { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-float { position: relative; z-index: 1; width: min(76%, 430px); opacity: 0; animation: logoIn 1.1s .3s var(--ease-out) forwards, floaty 7s 1.6s ease-in-out infinite; }
@keyframes logoIn { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.logo-tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out); }
.logo-tilt picture { display: block; }
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(150, 70, 60, .2)); }
.logo-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(/img/logo-560.webp) center / contain no-repeat; mask: url(/img/logo-560.webp) center / contain no-repeat;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, 0) 58%);
  background-size: 300% 100%; background-position: 150% 0;
  animation: shine 6s 2.2s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 150% 0; } 30%, 100% { background-position: -50% 0; } }
.spark { position: absolute; z-index: 2; width: 18px; height: 18px; background: var(--gold-grad); opacity: 0; pointer-events: none;
  -webkit-clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 4.2s ease-in-out infinite; }
.sp1 { top: 10%; left: 13%; width: 20px; height: 20px; animation-delay: 1.6s; }
.sp2 { top: 20%; right: 9%; width: 28px; height: 28px; animation-delay: 2.5s; }
.sp3 { bottom: 24%; left: 5%; width: 14px; height: 14px; animation-delay: 3.3s; }
.sp4 { bottom: 9%; right: 17%; width: 22px; height: 22px; animation-delay: 2s; }
.sp5 { top: 50%; right: 1%; width: 12px; height: 12px; animation-delay: 4.1s; }
.sp6 { top: 1%; left: 54%; width: 15px; height: 15px; animation-delay: 3s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 10% { opacity: 1; transform: scale(1) rotate(45deg); } 22% { opacity: 0; transform: scale(.3) rotate(90deg); } }

/* Prvi slobodan termin */
.next-free { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); text-decoration: none; font-size: .95rem; color: var(--plum-soft); opacity: 0; animation: fadeUp .8s .85s var(--ease-out) forwards; transition: border-color .2s, transform .2s var(--ease-out); }
.next-free:hover { border-color: var(--ok); transform: translateY(-2px); }
.next-free b { color: var(--plum); font-weight: 700; }
.nf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.nf-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.4s ease-out infinite; }

/* ---------- Sekcije ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-blush { background: var(--blush); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 520; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.025em; }
.section-note { margin: 0; max-width: 44ch; color: var(--plum-soft); font-size: 1rem; }

/* ---------- Cenovnik ---------- */
.price-list { display: grid; gap: clamp(36px, 5vw, 56px); }
.price-cat-title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.55rem; color: var(--lacquer); margin: 0 0 6px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.price-row:last-child { border-bottom: 1px solid var(--line); }
.price-name { font-size: 1.2rem; font-weight: 600; margin: 0; }
.price-desc { margin: 4px 0 0; color: var(--plum-soft); font-size: .96rem; }
.price-dur { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .88rem; color: var(--plum-soft); }
.price-dur svg { width: 15px; height: 15px; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.tile {
  min-width: 108px; padding: 12px 16px 13px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; text-align: left;
  transition: border-color .2s, transform .25s var(--ease-out), box-shadow .25s, background .2s;
}
.tile:hover { border-color: var(--lacquer); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.tile-label { font-size: .85rem; font-weight: 600; color: var(--plum-soft); }
.tile-price { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--plum); font-variant-numeric: lining-nums tabular-nums; line-height: 1.15; }
.tile-price small { font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--plum-soft); margin-left: 3px; }
.tile.is-selected { border-color: var(--lacquer); background: var(--lacquer); }
.tile.is-selected .tile-label, .tile.is-selected .tile-price, .tile.is-selected .tile-price small { color: #fff; }
.skeleton-row { height: 84px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--blush), #fff, var(--blush)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Zakazivanje ---------- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: middle; position: relative; top: -1px; }
.live-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--ok); animation: ping 2.4s ease-out infinite; }
.live-dot.is-off { background: var(--plum-soft); }
.live-dot.is-off::after { display: none; }

.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.booking { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-soft); padding: clamp(20px, 3.6vw, 40px); min-width: 0; }

/* koraci */
.steps { list-style: none; margin: 0 0 clamp(26px, 4vw, 38px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.step { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 3px solid var(--line); color: var(--plum-soft); font-size: .95rem; font-weight: 500; transition: border-color .4s var(--ease-out), color .3s; }
.step-num { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .84rem; font-weight: 700; border: 1.5px solid var(--line-strong); background: #fff; transition: background .3s, color .3s, border-color .3s; }
.step-num svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step.is-active { border-top-color: var(--lacquer); color: var(--plum); font-weight: 700; }
.step.is-done { border-top-color: var(--rose); color: var(--plum); }
.step.is-active .step-num { background: var(--lacquer); border-color: var(--lacquer); color: #fff; box-shadow: 0 0 0 4px rgba(194, 24, 91, .12); }
.step.is-done .step-num { background: var(--petal); border-color: var(--petal); color: var(--lacquer-deep); }

.panel { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.panel.is-back { animation-name: panelBack; }
@keyframes panelBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.panel-head { margin-bottom: 20px; }
.panel-title { font-family: var(--font-display); font-weight: 520; font-size: clamp(1.45rem, 2.6vw, 1.75rem); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.panel-lead { margin: 6px 0 0; color: var(--plum-soft); font-size: 1rem; }

/* 1) izbor usluge */
.service-chooser { display: grid; gap: 26px; }
.chooser-cat { margin: 0 0 10px; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--lacquer); font-weight: 520; }
.svc-list { display: grid; gap: 12px; }
.svc { padding: 18px 18px 16px; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .2s, box-shadow .25s; }
.svc:hover { border-color: var(--line-strong); }
.svc.is-open { border-color: var(--lacquer); box-shadow: var(--shadow-soft); }
.svc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.svc-name { font-weight: 650; font-size: 1.14rem; }
.svc-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--plum-soft); font-size: .9rem; white-space: nowrap; }
.svc-meta svg { width: 15px; height: 15px; }
.svc-desc { margin: 4px 0 0; color: var(--plum-soft); font-size: .95rem; }
.svc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 14px; justify-content: stretch; }
.svc-tiles .tile { min-width: 0; }
.svc-tiles.is-single { grid-template-columns: 1fr; }
.tile-one { flex-direction: row; align-items: center; justify-content: space-between; }
.tile-one .tile-label { color: var(--lacquer); font-size: .95rem; }

/* dodaci */
.addon-hint { margin: 0 0 12px; color: var(--plum-soft); font-size: .95rem; }
.addon-list { display: grid; gap: 10px; margin-bottom: 8px; }
.addon {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border-radius: 16px;
  border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; text-align: left;
  transition: border-color .2s, background .2s, transform .2s var(--ease-out);
}
.addon:hover { border-color: var(--lacquer); }
.addon:active { transform: scale(.99); }
.addon-check { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; background: #fff; transition: background .2s, border-color .2s; }
.addon-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-spring); }
.addon.is-on { border-color: var(--lacquer); background: var(--blush); }
.addon.is-on .addon-check { background: var(--lacquer); border-color: var(--lacquer); }
.addon.is-on .addon-check svg { opacity: 1; transform: none; }
.addon-main { flex: 1; min-width: 0; }
.addon-name { display: block; font-weight: 650; }
.addon-desc { display: block; font-size: .88rem; color: var(--plum-soft); }
.addon-price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.addon-price small { font-family: var(--font-body); font-size: .78rem; color: var(--plum-soft); margin-left: 2px; }
.addon-total { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0 4px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 28%); }
.addon-total span { display: block; font-size: .85rem; color: var(--plum-soft); font-weight: 600; }
.addon-total .btn { white-space: nowrap; }
.addon-total strong { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; font-variant-numeric: lining-nums tabular-nums; }
.addon-total small { margin-left: 8px; color: var(--plum-soft); font-size: .9rem; }
.addon-total strong.is-bump { animation: bumpTotal .35s var(--ease-spring); display: inline-block; }
@keyframes bumpTotal { 40% { transform: scale(1.08); color: var(--lacquer); } }
.price-addon { display: inline-flex; flex-direction: column; align-items: flex-end; padding: 10px 14px; border-radius: var(--r-md); background: var(--blush); border: 1px solid var(--line); }
.price-addon b { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; font-variant-numeric: lining-nums tabular-nums; }
.price-addon small { color: var(--plum-soft); font-size: .8rem; }

/* izabrano — traka na vrhu koraka */
.choice-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 14px 16px; border-radius: 16px; background: var(--blush); border: 1px solid var(--line); margin-bottom: 26px; }
.choice-summary > div { position: relative; padding-left: 34px; min-width: 0; }
.choice-summary > div::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--lacquer) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.choice-main { margin: 0; font-weight: 700; }
.choice-sub { margin: 2px 0 0; font-size: .92rem; color: var(--plum-soft); }

/* 2) dan */
.date-head, .slots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.date-head .panel-title, .slots-head .panel-title { font-size: clamp(1.25rem, 2.2vw, 1.45rem); }
.date-head .panel-lead { margin-top: 2px; font-size: .93rem; }
.date-arrows { display: flex; gap: 8px; }
.date-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 14px 2px 16px; margin: 0 -2px 6px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 78px; padding: 10px 0 10px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 0; cursor: pointer; scroll-snap-align: start;
  transition: border-color .2s, background .2s, transform .25s var(--ease-out), color .2s, box-shadow .2s;
}
.day:hover:not(:disabled) { border-color: var(--lacquer); transform: translateY(-2px); }
.day-name { font-size: .8rem; font-weight: 700; color: var(--plum-soft); text-transform: lowercase; }
.day-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums; }
.day-mon { font-size: .74rem; font-weight: 600; color: var(--plum-soft); margin-top: -2px; }
.day-info { margin-top: 6px; padding: 2px 7px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--plum-soft); background: #f7eff2; white-space: nowrap; }
.day.is-free .day-info { color: var(--ok); background: var(--ok-bg); }
.day:disabled { cursor: default; background: transparent; border-style: dashed; }
.day:disabled .day-num, .day:disabled .day-name, .day:disabled .day-mon { opacity: .45; }
.day:disabled .day-info { background: transparent; }
.day.is-selected { background: var(--lacquer); border-color: var(--lacquer); color: #fff; box-shadow: 0 10px 22px -12px rgba(194, 24, 91, .8); }
.day.is-selected .day-name, .day.is-selected .day-mon { color: rgba(255, 255, 255, .85); }
.day.is-selected .day-info { background: rgba(255, 255, 255, .2); color: #fff; }

.window-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 26px; padding: 11px 14px; border-radius: 14px; background: var(--blush); font-size: .9rem; color: var(--plum-soft); }
.window-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: none; stroke: var(--lacquer); stroke-width: 1.8; stroke-linecap: round; }
.window-note b { color: var(--plum); }
.window-note a { color: var(--lacquer); font-weight: 600; white-space: nowrap; }

/* 2) vreme — grupisano po delu dana */
.slots-head { margin-bottom: 14px; }
.slots-count { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: .82rem; font-weight: 700; }
.slots-count:empty { display: none; }
.slots { min-height: 60px; }
.slot-group + .slot-group { margin-top: 18px; }
.slot-part { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .86rem; font-weight: 700; color: var(--plum-soft); }
.slot-part::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 0 9px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer;
  color: var(--plum); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.slot-t { font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1.2; }
.slot-end { font-size: .74rem; font-weight: 500; color: var(--plum-soft); }
.slot:hover { border-color: var(--lacquer); color: var(--lacquer); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.slot.is-pending { background: var(--lacquer); border-color: var(--lacquer); color: #fff; cursor: progress; }
.slot.is-pending .slot-end { color: rgba(255, 255, 255, .8); }
.slot.is-new { animation: slotIn .45s var(--ease-out); }
.slot.is-gone { animation: slotGone .5s var(--ease-out) forwards; pointer-events: none; }
.slot.is-taken { animation: shake .45s ease, slotGone .5s .45s var(--ease-out) forwards; border-color: var(--lacquer); background: var(--blush); color: var(--lacquer); text-decoration: line-through; pointer-events: none; }
@keyframes slotIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes slotGone { to { opacity: 0; transform: scale(.7); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.slots-empty { padding: 22px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); color: var(--plum-soft); text-align: center; margin: 0; }

/* 3) podaci */
.hold-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-strong); font-size: .92rem; font-weight: 500; }
.hold-ring { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--lacquer) calc(var(--p, 1) * 360deg), var(--petal) 0); -webkit-mask: radial-gradient(circle, transparent 4px, #000 5px); mask: radial-gradient(circle, transparent 4px, #000 5px); }
.hold-pill.is-expired { border-color: var(--lacquer); color: var(--lacquer); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; max-width: 640px; }
.form > .field:nth-child(n+3), .form > .form-error, .form > .btn, .form > .fine { grid-column: 1 / -1; }
.field label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--plum-soft); }
.field input, .field textarea {
  width: 100%; padding: 14px 15px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff;
  font: inherit; font-size: 1.02rem; color: var(--plum); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lacquer); box-shadow: 0 0 0 4px rgba(194, 24, 91, .12); }
.field input.is-invalid { border-color: var(--lacquer); background: var(--blush); }
.hint { margin: 6px 0 0; font-size: .88rem; color: var(--plum-soft); }
.hint .link-btn { font-size: .88rem; padding: 0; }
.hint-mail { display: flex; gap: 8px; align-items: flex-start; }
.hint-ico { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--blush); color: var(--lacquer); font-size: .72rem; line-height: 20px; text-align: center; }
.hint-fix { color: var(--plum); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; min-height: 0; color: var(--lacquer-deep); font-weight: 600; font-size: .95rem; }
.form-error:empty { display: none; }
.fine { margin: 2px 0 0; font-size: .86rem; color: var(--plum-soft); text-align: center; }

/* 4) gotovo */
.panel-done { text-align: center; padding: 10px 0 6px; }
.done-mark { width: 84px; height: 84px; margin: 0 auto 18px; display: block; }
.done-mark circle { fill: var(--blush); stroke: var(--lacquer); stroke-width: 3; stroke-dasharray: 208; stroke-dashoffset: 208; animation: draw .7s .1s var(--ease-out) forwards; }
.done-mark path { fill: none; stroke: var(--lacquer); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .45s .65s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 10px; }
.done-text { max-width: 46ch; margin: 0 auto 6px; font-size: 1.05rem; }
.done-sub { max-width: 46ch; margin: 0 auto 24px; color: var(--plum-soft); }
.done-sub:has(+ .done-tip:not([hidden])) { margin-bottom: 10px; }
.done-tip { max-width: 46ch; margin: 0 auto 24px; font-size: .88rem; color: var(--plum-soft); }
.done-tip b { color: var(--plum); font-weight: 600; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.done-details { max-width: 460px; margin: 16px auto 18px; padding: 6px 18px; text-align: left; background: var(--blush); border: 1px solid var(--line); border-radius: 18px; }
.done-details div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.done-details div + div { border-top: 1px solid var(--line); }
.done-details dt { margin: 0; color: var(--plum-soft); font-size: .9rem; padding-top: 1px; }
.done-details dd { margin: 0; font-weight: 600; color: var(--plum); }
.done-details small { font-weight: 400; color: var(--plum-soft); font-size: .88em; }
.done-contact { max-width: 46ch; margin: 22px auto 0; font-size: .95rem; color: var(--plum-soft); }
.done-contact a { color: var(--lacquer); font-weight: 600; white-space: nowrap; }
.panel-done.is-nudge { animation: doneNudge .6s var(--ease-out); }
@keyframes doneNudge { 30% { transform: scale(1.015); } 60% { transform: scale(.995); } }

/* Karta „Vaš termin“ — kao karta/ulaznica, prati izbor */
.ticket { position: sticky; top: 92px; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); padding: 20px 20px 18px; }
.ticket::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--gold-grad); }
.ticket-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ticket-kicker { font-weight: 700; font-size: .95rem; }
.ticket-brand { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.25rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ticket-rows { margin: 0; display: grid; }
.t-row { display: grid; gap: 1px; padding: 9px 0; border-top: 1px solid var(--line); }
.t-row dt { font-size: .78rem; font-weight: 700; color: var(--plum-soft); }
.t-row dd { margin: 0; font-weight: 600; font-size: .96rem; line-height: 1.35; }
.t-row dd small { display: block; font-weight: 500; color: var(--plum-soft); font-size: .82rem; }
.t-empty { font-weight: 400; color: #b79aa8; font-style: italic; }
.t-edit { border: 0; background: none; padding: 0; color: var(--lacquer); font-size: .8rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ticket-cut { position: relative; height: 20px; margin: 6px -20px 4px; }
.ticket-cut::before { content: ''; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed var(--line-strong); }
.ticket-cut::after { content: ''; position: absolute; inset: 0 -11px; background: radial-gradient(circle at 0 50%, var(--blush) 10px, transparent 10.5px), radial-gradient(circle at 100% 50%, var(--blush) 10px, transparent 10.5px); }
.ticket-mini { display: none; }
.ticket-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ticket-total span { font-weight: 700; font-size: .95rem; }
.ticket-total strong { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; font-variant-numeric: lining-nums tabular-nums; color: var(--lacquer); }
.ticket-total strong.is-bump { animation: bumpTotal .35s var(--ease-spring); display: inline-block; }
.ticket-foot { margin: 8px 0 0; font-size: .84rem; color: var(--plum-soft); }
.ticket.is-done { border-color: #a9d8bd; }
.ticket.is-done .ticket-total strong { color: var(--ok); }

/* ---------- Galerija ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; position: relative; background: var(--blush); border: 0; padding: 0; width: 100%; display: block; }
.g-item img { width: 100%; height: auto; transition: transform .6s var(--ease-out); }
.g-item:hover img { transform: scale(1.04); }
.gallery-empty { column-span: all; padding: 36px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); color: var(--plum-soft); text-align: center; }

/* ---------- Lokacija ---------- */
.location { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.map-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--plum-soft); }
.place-street { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.08; margin: 0 0 6px; letter-spacing: -.01em; }
.place-city { margin: 0 0 18px; font-size: 1.08rem; color: var(--plum-soft); }
.place-phone { display: inline-block; font-size: 1.35rem; font-weight: 700; color: var(--lacquer); text-decoration: none; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.place-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hours-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours li span:last-child { color: var(--plum-soft); }
.hours li.is-today { font-weight: 700; color: var(--lacquer); }
.hours li.is-today span:last-child { color: var(--lacquer); }

.special-days { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.special-days b { display: block; margin-bottom: 4px; color: var(--lacquer); }
.special-days ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.special-days li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { background: var(--plum); color: #f8dbe6; padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: end; }
.footer-brand { display: block; width: 150px; }
.footer-brand img { width: 100%; height: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { text-decoration: none; color: #fff; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { margin: 0; font-size: .88rem; color: #d9aabd; }

/* ---------- Modal: termin zauzet ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(58, 26, 44, .45); backdrop-filter: blur(4px); animation: fadeIn .2s ease forwards; opacity: 0; }
.modal-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-lg); padding: 32px 28px 26px; text-align: center; box-shadow: 0 30px 80px -20px rgba(58, 26, 44, .5); animation: popIn .45s var(--ease-spring); }
.modal-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; margin: 6px 0 10px; }
.modal-card p { margin: 0 0 22px; color: var(--plum-soft); }
.modal-icon svg { width: 56px; height: 56px; fill: none; stroke: var(--lacquer); stroke-width: 3; stroke-linecap: round; }
.modal-icon svg circle:first-child { fill: var(--blush); }
.modal-icon .dotfill { fill: var(--lacquer); stroke: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- Aplikacija za telefon ---------- */
#appBody > p { margin-bottom: 16px; }
#appBody .btn { margin-bottom: 10px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(30, 10, 22, .92); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 12px; animation: popIn .35s var(--ease-out); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 95; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--plum); color: #fff; padding: 13px 18px; border-radius: 14px; font-size: .95rem; box-shadow: 0 14px 30px -10px rgba(58, 26, 44, .5); animation: toastIn .4s var(--ease-spring); }
.toast.is-out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Uvodni ekran (loading) ----------
   ULAZ (0–0,9 s): ceo ekran uplovi odozdo kao list (zaobljena gornja ivica), nokat uleti, ime se ispiše.
   UČITAVANJE (0,5–2,4 s): nokat se puni lakom = procenat učitavanja.
   IZLAZ (2,4–4 s): odsjaj i zvezdice, sadržaj odleti nagore, a ceo ekran otplovi gore i otkrije sajt.
   Ulaz i izlaz rade i kad je na uređaju uključeno „smanji pokrete“ (tada bez sitnih efekata). */
.intro-screen {
  --p: 0;
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #ffffff 0%, var(--blush) 60%, #fde3ec 100%);
  box-shadow: 0 0 70px rgba(156, 15, 71, .18);
  transform: translateY(100%);
  border-radius: 50% 50% 0 0 / 16vh 16vh 0 0;
  will-change: transform;
  animation: introSheetIn .9s cubic-bezier(.22, 1, .36, 1) .05s forwards, introFailsafe .5s 7.5s forwards;
}
@keyframes introSheetIn { to { transform: translateY(0); border-radius: 0; } }
/* izlaz kreće tačno odatle gde je ulaz stao (bez skoka nazad dole) */
.intro-screen.is-out { transform: translateY(0); border-radius: 0; animation: introSheetOut 1s cubic-bezier(.76, 0, .24, 1) both; pointer-events: none; }
@keyframes introSheetOut {
  from { transform: translateY(0); border-radius: 0; }
  to { transform: translateY(-105%); border-radius: 0 0 50% 50% / 0 0 16vh 16vh; }
}
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }
html:not(.intro) .intro-screen:not(.is-out) { display: none; }
html.intro body { overflow: hidden; }
html.intro .hero *, html.intro .hero *::before, html.intro .hero *::after { animation-play-state: paused !important; }

/* sajt je sakriven dok traje uvod, pa se pojavi dok ekran odlazi */
html.intro .topbar, html.intro main, html.intro .footer { opacity: 0; transform: translateY(26px); animation: introSiteFailsafe .5s 7.5s forwards; }
@keyframes introSiteFailsafe { to { opacity: 1; transform: none; } }
main, .footer { transition: opacity .9s ease .2s, transform 1.1s cubic-bezier(.2, .8, .2, 1) .2s; }
.topbar { transition: border-color .3s ease, opacity .9s ease .25s, transform 1.1s cubic-bezier(.2, .8, .2, 1) .25s; }

/* --- ULAZ (sadržaj kreće kad list stigne) --- */
.intro-bloom { position: absolute; left: 50%; top: 42%; width: min(110vw, 760px); aspect-ratio: 1; margin: calc(min(110vw, 760px) / -2) 0 0 calc(min(110vw, 760px) / -2);
  border-radius: 50%; background: radial-gradient(circle, rgba(238, 127, 166, .34) 0%, rgba(251, 217, 227, .25) 38%, rgba(255, 243, 246, 0) 68%);
  transform: scale(.35); opacity: 0; animation: introBloom 1.2s .3s cubic-bezier(.2, .8, .2, 1) forwards, introBreath 2.6s 1.5s ease-in-out infinite; }
@keyframes introBloom { to { transform: scale(1); opacity: 1; } }
@keyframes introBreath { 50% { transform: scale(1.06); } }

.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }

.intro-nail-wrap { position: relative; width: clamp(70px, 15vw, 96px); margin-bottom: 26px;
  opacity: 0; transform: translateY(40px) scale(.55) rotate(-16deg);
  animation: introNailIn .95s .45s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes introNailIn { to { opacity: 1; transform: none; } }
.intro-nail { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(156, 15, 71, .24)); }
.intro-outline { fill: none; stroke: var(--lacquer); stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; animation: introDraw .8s .55s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }

/* talasi oko nokta dok se učitava */
.intro-ripple { position: absolute; left: 50%; top: 52%; width: 150%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(194, 24, 91, .28); transform: translate(-50%, -50%) scale(.5); opacity: 0; animation: introRipple 2s 1.1s ease-out infinite; }
.intro-ripple.r2 { animation-delay: 2.1s; }
@keyframes introRipple { 0% { transform: translate(-50%, -50%) scale(.55); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

/* --- UČITAVANJE: lak puni nokat (procenat zadaje skripta preko --p) --- */
.intro-fill { transform: translateY(calc(102px - var(--p) * 112px)); }
.intro-wave { animation: introWave .7s linear infinite; }
.intro-wave.w2 { animation-duration: 1.1s; animation-direction: reverse; }
@keyframes introWave { from { transform: translateX(0); } to { transform: translateX(24px); } }
.intro-gloss { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .9; }

.intro-small { margin: 0 0 6px; font-weight: 500; font-size: clamp(.8rem, 2.4vw, .98rem); letter-spacing: 1.1em; padding-left: 1.1em; color: var(--plum); opacity: 0;
  animation: introSpacing 1s .7s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes introSpacing { to { letter-spacing: .32em; padding-left: .32em; opacity: 1; } }
.intro-name { margin: 0; line-height: 1; }
.intro-name span {
  display: inline-block; font-family: var(--font-display); font-style: italic; font-weight: 580;
  font-size: clamp(3.6rem, 13vw, 6.4rem); letter-spacing: -.025em; padding: 0 .14em .12em;
  color: var(--lacquer);
  background: linear-gradient(100deg, var(--lacquer-deep) 0%, var(--lacquer) 38%, #ffd2e1 50%, var(--lacquer) 62%, var(--rose) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); transform: translateY(10px);
  animation: introWrite 1s .85s cubic-bezier(.65, 0, .35, 1) forwards, gloss 1.3s 1.9s var(--ease-out) forwards;
}
@keyframes introWrite { to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); transform: none; } }
.intro-tag { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; font-size: clamp(.82rem, 2.6vw, .95rem); font-weight: 450; color: var(--plum-soft); letter-spacing: .03em; opacity: 0; transform: translateY(10px); animation: introUp .8s 1.3s var(--ease-out) forwards; }
.intro-tag i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); display: inline-block; }
.intro-pct { margin: 18px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--lacquer); font-variant-numeric: tabular-nums; opacity: 0; animation: introUp .5s .75s ease forwards; transition: opacity .3s ease, transform .3s ease; }
@keyframes introUp { to { opacity: 1; transform: none; } }

/* --- IZLAZ 1: nokat pun — odsjaj, mali „pop“, zvezdice prsnu --- */
.intro-screen.is-full .intro-gloss { animation: introDraw .45s ease-out forwards; }
.intro-screen.is-full .intro-nail { animation: introPop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes introPop { 40% { transform: scale(1.12) rotate(4deg); } }
.intro-screen.is-full .intro-ripple { animation: none; opacity: 0; }
.intro-screen.is-full .intro-pct { opacity: 0; transform: translateY(-6px); }
.intro-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.intro-burst i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; opacity: 0; background: var(--rose);
  -webkit-clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.intro-burst i:nth-child(odd) { background: var(--lacquer); width: 9px; height: 9px; left: -4.5px; top: -4.5px; }
.intro-screen.is-full .intro-burst i { animation: introBurst .85s var(--d) cubic-bezier(.15, .8, .25, 1) forwards; }
@keyframes introBurst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.2); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-82px) scale(1.1) rotate(120deg); }
}

/* --- IZLAZ 2: sadržaj odleti nagore (jedno za drugim) dok ekran otplovljava --- */
.intro-screen.is-out .intro-nail-wrap { animation: introExitNail .55s cubic-bezier(.6, 0, .4, 1) forwards; }
.intro-screen.is-out .intro-small { animation: introExit .5s .04s cubic-bezier(.6, 0, .4, 1) forwards; }
.intro-screen.is-out .intro-name { animation: introExit .5s .08s cubic-bezier(.6, 0, .4, 1) forwards; }
.intro-screen.is-out .intro-tag { animation: introExit .5s .12s cubic-bezier(.6, 0, .4, 1) forwards; }
.intro-screen.is-out .intro-pct { animation: introExit .45s .14s cubic-bezier(.6, 0, .4, 1) forwards; }
.intro-screen.is-out .intro-bloom { animation: introBloomOut .9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes introExitNail { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-60px) scale(.8); } }
@keyframes introExit { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-46px); } }
@keyframes introBloomOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }

/* Smanjeni pokreti na uređaju: ulaz/izlaz i punjenje nokta ostaju, sitni efekti se gase */
@media (prefers-reduced-motion: reduce) {
  .intro-ripple, .intro-burst { display: none; }
  .intro-bloom { animation: introBloom 1s .3s ease forwards; }
  /* sajt ostaje skriven ispod uvoda (opšte pravilo za smanjene pokrete bi ga odmah prikazalo) */
  html.intro .topbar, html.intro main, html.intro .footer { animation-duration: .5s !important; animation-delay: 7.5s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .book-layout { grid-template-columns: 1fr; gap: 0; }
  /* na telefonu: karta postaje traka na dnu ekrana dok se zakazuje */
  .ticket { position: sticky; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6; margin-top: 12px; padding: 12px 16px; border-radius: 18px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; box-shadow: 0 16px 36px -14px rgba(58, 26, 44, .5); }
  .ticket::before { left: 14px; right: 14px; }
  .ticket-top, .ticket-rows, .ticket-cut, .ticket-foot { display: none; }
  .ticket-mini { display: block; margin: 0; font-size: .9rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ticket-total { flex-direction: column; align-items: flex-end; gap: 0; }
  .ticket-total span { font-size: .72rem; color: var(--plum-soft); }
  .ticket-total strong { font-size: 1.3rem; }
  .ticket.is-empty, .ticket.is-done, .ticket[data-step="1"] { display: none; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 0; margin: 0 0 2px; padding: 34px 0 26px; }
  .logo-halo { width: min(86vw, 360px); }
  .logo-float { width: min(70vw, 300px); }
  .location { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .hero { padding-top: 12px; }
  .open-pill { margin-bottom: 18px; font-size: .86rem; }
  .wordmark { margin-bottom: 18px; }
  .lede { margin-bottom: 24px; }
  .hero-actions .btn { flex: 1 1 140px; padding: 14px 16px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease-out), opacity .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; padding: 14px; font-size: 1rem; }
  .price-row { grid-template-columns: 1fr; }
  .price-addon { justify-self: start; align-items: flex-start; }
  .tiles { justify-content: flex-start; }
  .tile { flex: 1 1 calc(33% - 10px); min-width: 92px; }
  .steps { gap: 6px; }
  .step { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .8rem; }
  .step-label { line-height: 1.2; }
  .choice-summary { flex-direction: column; align-items: flex-start; }
  .addon-total .btn { flex: 1; padding: 14px 16px; }
  .addon-total strong { font-size: 1.45rem; }
  .date-arrows { display: none; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .form { grid-template-columns: 1fr; }
  .form > .field { grid-column: 1 / -1; }
  .svc-tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .booking { padding: 20px 16px; border-radius: 22px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.intro-screen, .intro-screen *), *:not(.intro-screen, .intro-screen *)::before, *:not(.intro-screen, .intro-screen *)::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .logo-float, .logo-halo, .wm-small, .wm-big, .next-free { opacity: 1 !important; transform: none !important; animation: none !important; }
  .spark, .logo-shine, .logo-halo::after { display: none; }
  .logo-halo::before { animation: none !important; }
}
