/* =====================================================================
   Dubinsko BGD — Koncept 3 „Topla kuća“
   One stylesheet. Mobile-first: 360 → 768 → 1200 → 1440.

   WCAG 2.2 contrast, computed from relative luminance (AA = 4.5:1 text,
   3:1 large text / UI):
     --ink        #2a2622 on --cream     #fbf6ee   13.95:1  body text
     --ink        #2a2622 on --paper     #ffffff   15.01:1  cards
     --forest     #1f4d3a on --cream     #fbf6ee    8.95:1  headings, outline buttons
     --paper      #ffffff on --forest    #1f4d3a    9.63:1  solid buttons
     --cream      #fbf6ee on --forest    #1f4d3a    8.95:1  closing CTA
     --cream      #fbf6ee on --forest-700 #163a2b  11.66:1  footer
     --muted      #6b625a on --cream     #fbf6ee    5.55:1  secondary text
     --muted      #6b625a on --paper     #ffffff    5.97:1
     --muted      #6b625a on --peach-100 #ffe7d6    5.02:1
     --link       #0070c9 on --cream     #fbf6ee    4.69:1  text links
     --link       #0070c9 on --paper     #ffffff    5.05:1
     --ink        #2a2622 on --peach     #ffb38a    8.63:1  stickers
     --forest     #1f4d3a on --peach     #ffb38a    5.53:1
     --forest     #1f4d3a on --peach-100 #ffe7d6    8.09:1  paper note
     --ink        #2a2622 on --sun       #ffd166   10.41:1
     --ink        #2a2622 on --todo      #ffe58a   12.03:1  [POTVRDITI] labels
     --sun        #ffd166 on --forest    #1f4d3a    6.68:1
     --brand-blue #0094ff on --cream     #fbf6ee    2.92:1  FAILS alone → logo/large
                                                            text only; focus ring is
                                                            paired with a forest ring
     --brand-blue #0094ff on --forest    #1f4d3a    3.06:1  focus ring on dark (UI ≥3)
     --line       #eadfce on --cream                1.22:1  decorative only
   ===================================================================== */

/* ---------- Fonts: 2 families, 3 cuts, self-hosted ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext-soft-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/fraunces-latin-soft-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext-soft-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/fraunces-latin-soft-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #fbf6ee;
  --paper: #ffffff;
  --forest: #1f4d3a;
  --forest-700: #163a2b;
  --peach: #ffb38a;
  --peach-100: #ffe7d6;
  --sun: #ffd166;
  --brand-blue: #0094ff;
  --link: #0070c9;
  --ink: #2a2622;
  --muted: #6b625a;
  --line: #eadfce;
  --todo: #ffe58a;
  --todo-edge: #9a7b00;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.75rem, 1.95rem + 3.6vw, 5rem);   /* 44 → 80 */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.9vw, 3rem);       /* 30 → 48 */
  --fs-h3: clamp(1.25rem, 1.12rem + .55vw, 1.625rem);    /* 20 → 26 */
  --fs-body: clamp(1.0625rem, 1.03rem + .14vw, 1.125rem); /* 17 → 18 */
  --fs-small: 1rem;
  --fs-eyebrow: .8125rem;                                /* 13 */

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 144px;
  --r-sm: 12px; --r: 24px; --r-lg: 40px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --shadow-soft: 0 1px 0 rgba(42, 38, 34, .06), 0 12px 28px -14px rgba(42, 38, 34, .28);
  --shadow-sticker: 0 2px 0 rgba(42, 38, 34, .14), 0 10px 20px -10px rgba(42, 38, 34, .45);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ring-inner: var(--forest);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  font-optical-sizing: auto;
  color: var(--forest);
  text-wrap: balance;
}
h1, .display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ring-inner);
  border-radius: 6px;
}
.on-dark { --ring-inner: var(--cream); }

.sr-only {
  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: -100px; z-index: 100;
  background: var(--forest); color: var(--paper); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s5); position: relative; }
.section--peach { background: var(--peach-100); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
@media (min-width: 960px) { .section { padding-block: var(--s6); } }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Eyebrow, section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 var(--fs-eyebrow)/1.2 var(--sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--forest);
  margin-bottom: var(--s2);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 46rem; margin-bottom: var(--s4); }
.section-head p:not(.eyebrow) { margin-top: var(--s2); color: var(--muted); font-size: 1.0625em; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Sun marker (highlight) ---------- */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark svg {
  position: absolute; left: -.08em; right: -.08em; bottom: .02em;
  width: calc(100% + .16em); height: .34em; z-index: -1; overflow: visible;
}
.mark path { fill: none; stroke: var(--sun); stroke-width: 14; stroke-linecap: round; }
.js .mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms cubic-bezier(.65, 0, .35, 1) 150ms; }
.js .mark.is-in path { stroke-dashoffset: 0; }

/* ---------- [POTVRDITI] labels ---------- */
.todo {
  display: inline;
  background: var(--todo); color: var(--ink);
  border: 1.5px dashed var(--todo-edge); border-radius: 6px;
  padding: .05em .4em;
  font: 600 .85em/1.5 var(--sans); letter-spacing: 0; text-transform: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.todo-block {
  display: grid; place-items: center; text-align: center; padding: var(--s3);
  background: repeating-linear-gradient(-45deg, var(--todo) 0 14px, #fff0b8 14px 28px);
  border: 2px dashed var(--todo-edge); color: var(--ink); font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid var(--forest); transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--solid { background: var(--forest); color: var(--paper); }
.btn--solid:hover { background: var(--forest-700); border-color: var(--forest-700); }
.btn--outline { background: transparent; color: var(--forest); }
.btn--outline:hover { background: var(--peach-100); }
.btn--cream { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn--cream:hover { background: var(--paper); }
.btn--sm { min-height: 48px; padding: 0 18px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--forest); color: var(--paper); font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.pill:hover { background: var(--forest-700); }

/* ---------- Stickers ---------- */
.sticker {
  --rot: -6deg;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em .45em;
  padding: .6em 1.05em; border-radius: 14px;
  background: var(--peach); color: var(--ink);
  border: 2px solid rgba(255, 255, 255, .75);
  font: 700 .9375rem/1.25 var(--sans);
  box-shadow: var(--shadow-sticker);
  transform: rotate(var(--rot));
  max-width: 18rem;
}
.sticker--sun { background: var(--sun); }
.sticker--paper { background: var(--paper); }
.sticker--forest { background: var(--forest); color: var(--cream); border-color: rgba(251, 246, 238, .3); }
.sticker--right { --rot: 5deg; }
.sticker--sm { font-size: .8125rem; padding: .45em .8em; border-radius: 10px; --rot: -3deg; }
.js .sticker { opacity: 0; transform: rotate(calc(var(--rot) - 4deg)) scale(1.1); }
.js .sticker.is-in {
  opacity: 1; transform: rotate(var(--rot)) scale(1);
  transition: transform 350ms var(--spring), opacity 150ms ease-out;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 40; background: var(--cream); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.logo { display: block; flex: none; margin-right: auto; }
.logo img { height: 44px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 999px;
}
.nav a:hover { background: var(--peach-100); }
.nav a[aria-current="page"] { color: var(--forest); font-weight: 700; box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 14px;
  background: transparent; border: 2px solid var(--forest); border-radius: 999px; color: var(--forest); font-weight: 600;
}
.pill--phone .pill__num { display: none; }
@media (min-width: 420px) { .pill--phone .pill__num { display: inline; } }

/* mobile nav panel (JS) */
.js .nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px; box-shadow: var(--shadow-soft);
  display: none;
}
.js .nav.is-open { display: block; }
.js .nav li + li { border-top: 1px dashed var(--line); }
html:not(.js) .header__inner { flex-wrap: wrap; }
html:not(.js) .nav { order: 9; width: 100%; }
html:not(.js) .nav ul { display: flex; flex-wrap: wrap; }
html:not(.js) .nav-toggle { display: none; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .js .nav, html:not(.js) .nav { position: static; display: block; padding: 0; box-shadow: none; border: 0; background: none; width: auto; order: 0; }
  .nav ul { display: flex; gap: 2px; }
  .js .nav li + li { border: 0; }
  .nav a { font-size: .9375rem; padding: 0 10px; }
}

/* ---------- Media + image fallback ---------- */
.media { position: relative; overflow: hidden; background: var(--peach-100); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: "[POTVRDITI: " attr(data-file) "]";
  position: absolute; inset: 8px; display: grid; place-items: center; text-align: center; padding: 12px;
  background: var(--todo); border: 2px dashed var(--todo-edge); color: var(--ink);
  font: 600 .8125rem/1.4 var(--sans); word-break: break-word;
}

/* ---------- Arch photo ---------- */
.arch-wrap { position: relative; }
.arch-wrap::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--forest);
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 40% 40% var(--r-lg) var(--r-lg);
}
.arch {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 40% 40% var(--r-lg) var(--r-lg);
  overflow: hidden; background: var(--peach-100);
}
.arch.todo-block { background: repeating-linear-gradient(-45deg, var(--todo) 0 14px, #fff0b8 14px 28px); }

/* ---------- Bubbles ---------- */
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 14%, rgba(255, 255, 255, .55) 16% 40%, rgba(255, 179, 138, .22) 62%, rgba(31, 77, 58, .1) 100%);
  border: 1.5px solid rgba(31, 77, 58, .22);
  animation: float var(--d, 8s) ease-in-out infinite alternate;
}
.bubbles span:nth-child(1) { width: 56px; height: 56px; left: 4%;  top: 70%; --d: 7s; }
.bubbles span:nth-child(2) { width: 24px; height: 24px; left: 46%; top: 12%; --d: 9s; }
.bubbles span:nth-child(3) { width: 90px; height: 90px; right: 3%; top: 8%;  --d: 10s; }
.bubbles span:nth-child(4) { width: 34px; height: 34px; right: 38%; bottom: 8%; --d: 6s; }
.bubbles span:nth-child(5) { width: 16px; height: 16px; left: 30%; top: 88%; --d: 8s; }
.bubbles span:nth-child(6) { width: 44px; height: 44px; right: 8%; bottom: 14%; --d: 9.5s; }
@keyframes float { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

/* ---------- Wavy divider ---------- */
.wave { display: block; width: 100%; height: clamp(28px, 4vw, 56px); background: var(--from); color: var(--to); margin-bottom: -1px; }
.wave path { fill: currentColor; }

/* ---------- Hero (Home) ---------- */
.hero { position: relative; padding-block: var(--s4) var(--s5); overflow: hidden; }
.hero__grid { position: relative; display: grid; gap: var(--s5); align-items: center; }
.hero__copy .lead { margin-top: var(--s3); max-width: 36rem; font-size: 1.125rem; }
.hero__copy .btn-row { margin-top: var(--s4); }
.hero__facts { display: grid; gap: 10px; margin-top: var(--s4); padding: 0; list-style: none; font-weight: 500; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts .icon { width: 26px; height: 26px; color: var(--forest); stroke-width: 2.5; }
.hero__media { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 0 18px 18px 0; }
.hero__media .sticker { position: absolute; z-index: 2; }
.hero__media .sticker--a { left: -6px; top: 10%; }
.hero__media .sticker--b { right: -4px; bottom: 12%; --rot: 5deg; }
@media (min-width: 960px) {
  .hero { padding-block: var(--s5) var(--s6); }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s4); }
  .hero__media { margin-right: 0; }
  .hero__media .sticker--a { left: -64px; top: 14%; }
  .hero__media .sticker--b { right: -28px; }
}

/* ---------- Before / after ---------- */
.ba-stage { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .ba-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: var(--s5); } }
.ba-side h3 { margin-bottom: var(--s2); }
.ba-side p + p { margin-top: var(--s2); }
.ba-side .sticker { margin-top: var(--s3); }
.hint { color: var(--muted); font-size: var(--fs-small); }

/* fallback: two images side by side */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; width: 100%; margin-inline: auto; }
.ba__item { position: relative; }
.ba__item .media { aspect-ratio: 3 / 4; border-radius: var(--r); }
.ba__label {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--paper); color: var(--forest); padding: 2px 14px; border-radius: 999px;
  font: italic 600 1.125rem/1.6 var(--serif); box-shadow: var(--shadow-soft);
}
/* enhanced comparator */
.ba--on {
  --pos: 50%;
  display: block; position: relative; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba--on .ba__item { position: absolute; inset: 0; }
.ba--on .ba__item .media { height: 100%; aspect-ratio: auto; border-radius: 0; }
.ba--on .ba__item--before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba--on .ba__item--after .ba__label { left: auto; right: 12px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4;
  width: 48px; margin-left: -24px; display: grid; place-items: center; outline: none;
}
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--paper); box-shadow: 0 0 0 1px rgba(42, 38, 34, .15); }
.ba__knob {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--forest);
  border: 3px solid var(--forest); box-shadow: var(--shadow-sticker);
}
.ba__knob .icon { width: 28px; height: 28px; }
.ba__handle:focus-visible .ba__knob { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.ba__handle:focus-visible { box-shadow: none; }

/* polaroids */
.polaroids { display: grid; gap: var(--s5) var(--s4); margin-top: var(--s6); }
@media (min-width: 768px) { .polaroids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pair { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.pair > figcaption { grid-column: 1 / -1; margin-top: var(--s3); text-align: center; font: 600 var(--fs-h3)/1.2 var(--serif); color: var(--forest); }
.polaroid {
  --rot: -4deg;
  position: relative; background: var(--paper); padding: 10px 10px 46px; border-radius: 4px;
  box-shadow: var(--shadow-sticker); transform: rotate(var(--rot));
}
.polaroid + .polaroid { --rot: 3deg; margin-left: -14px; margin-top: 18px; }
.polaroid .media { aspect-ratio: 3 / 4; }
.hand {
  position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
  font: italic 500 1.375rem/1.2 var(--serif); color: var(--forest);
}
.polaroid .todo-block { aspect-ratio: 3 / 4; font-size: .8125rem; padding: 10px; }

/* ---------- Service menu cards (Home) ---------- */
.mcards { display: grid; gap: var(--s2); list-style: none; padding: 0; }
@media (min-width: 640px) { .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); } }
.mcard {
  position: relative; display: grid; gap: var(--s2); align-content: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3); transition: transform .25s, box-shadow .25s;
}
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.mcard .badge-icon { margin-bottom: 4px; }
.mcard .sticker { position: absolute; top: 18px; right: 16px; }
.leader { display: flex; align-items: flex-end; gap: 0; }
.leader__name { flex: 0 1 auto; font: 600 1.25rem/1.25 var(--serif); color: var(--forest); }
.leader__dots { flex: 1 1 1.5rem; min-width: 1.5rem; margin: 0 .45em .4em; border-bottom: 3px dotted rgba(31, 77, 58, .45); }
.leader__price { flex: none; white-space: nowrap; font: 600 1.25rem/1.25 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.leader__price small { font: 500 .875rem var(--sans); color: var(--muted); }
.mcard__note { color: var(--muted); font-size: var(--fs-small); }
.badge-icon {
  width: 72px; height: 72px; display: grid; place-items: center; color: var(--forest);
  background: var(--peach-100); border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
}
.badge-icon .icon { width: 40px; height: 40px; stroke-width: 2; }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--s4); }

/* ---------- Steps ---------- */
.split { display: grid; gap: var(--s4); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; } }
.split .sticker { margin-top: var(--s3); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: var(--s3); padding-bottom: var(--s4); counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step); width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 50%; background: var(--peach); color: var(--forest-700);
  font: 600 1.75rem/1 var(--serif); border: 2px solid var(--forest); position: relative; z-index: 1;
}
.step::after {
  content: ""; position: absolute; left: 31px; top: 70px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--forest) 0 8px, transparent 8px 16px);
}
.step:last-child::after { display: none; }
.step__body { padding-top: 10px; display: flex; gap: var(--s2); align-items: flex-start; }
.step__body .icon { width: 36px; height: 36px; color: var(--forest); margin-top: 2px; }
.step__body p { font: 600 var(--fs-h3)/1.3 var(--serif); color: var(--ink); }

/* ---------- Family ---------- */
.family { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .family { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.family .arch-wrap { width: min(100%, 380px); margin-inline: auto; }
.family blockquote { margin: 0; font: 500 clamp(1.375rem, 1.1rem + 1vw, 2rem)/1.35 var(--serif); color: var(--forest); }
.family .badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s4); }

/* ---------- Audience ---------- */
.who { display: grid; gap: var(--s2); list-style: none; padding: 0; }
@media (min-width: 640px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .who { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); } }
.who li { background: var(--paper); border-radius: var(--r); padding: var(--s3); border: 1px solid var(--line); display: grid; gap: var(--s2); }
.who li:nth-child(even) .badge-icon { background: #fff2c7; border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%; }
.who h3 { font-size: 1.25rem; }
.who p { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Reviews ---------- */
.reviews-title { font-size: var(--fs-display); line-height: 1.02; }
.review-wall { display: grid; gap: var(--s3); list-style: none; padding: 0; margin-top: var(--s5); }
@media (min-width: 640px) { .review-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .review-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review {
  --rot: -1.5deg;
  position: relative; background: var(--paper); border-radius: 6px; padding: var(--s4) var(--s3) var(--s3);
  box-shadow: var(--shadow-soft); transform: rotate(var(--rot));
}
.review:nth-child(2n) { --rot: 1.5deg; }
.review:nth-child(3n) { --rot: -.5deg; background: #fffaf0; }
.review::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px;
  background: rgba(255, 209, 102, .75); transform: rotate(-3deg); border-radius: 3px;
}
.review blockquote { margin: 0; font: 500 1.125rem/1.5 var(--serif); }
.review footer { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-small); }
.review .stars { color: var(--forest); letter-spacing: .1em; font-size: .875rem; margin-bottom: 8px; }
.widget-slot { margin-top: var(--s4); min-height: 120px; border-radius: var(--r); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq details:first-of-type { border-top: 1.5px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font: 600 1.1875rem/1.35 var(--serif); color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { border-radius: 8px; }
.plus {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--peach-100); border: 2px solid var(--forest);
  transition: transform 200ms ease, background-color 200ms;
}
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; background: var(--forest); border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--sun); }
.faq .answer { padding: 0 56px var(--s3) 0; color: var(--ink); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Closing CTA ---------- */
.cta { background: var(--forest); color: var(--cream); text-align: center; padding-block: var(--s5) var(--s6); position: relative; overflow: hidden; }
.cta h2 { color: var(--cream); max-width: 18ch; margin-inline: auto; font-size: var(--fs-display); line-height: 1.04; }
.cta .mark path { stroke: var(--peach); opacity: .9; }
.cta .btn-row { justify-content: center; margin-top: var(--s4); }
.cta .social { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.cta a:not(.btn), .site-footer a { color: var(--cream); }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; }
.cta .bubbles span { border-color: rgba(251, 246, 238, .25); background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.5) 0 14%, rgba(255,255,255,.12) 16% 50%, rgba(255,179,138,.12) 100%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-700); color: var(--cream); padding-block: var(--s5) var(--s4); font-size: var(--fs-small); }
.footer__grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__logo { display: inline-block; background: var(--cream); border-radius: 999px; padding: 8px 18px; }
.footer__logo img { height: 40px; width: auto; }
.site-footer h2 { font-size: 1.25rem; color: var(--sun); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.site-footer p + p { margin-top: 10px; }
.footer__bottom { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(251, 246, 238, .18); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; opacity: .9; }

/* ---------- Sticky dock (mobile) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; grid-template-columns: 1fr 1fr;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 246, 238, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -16px rgba(42, 38, 34, .4);
  transform: translateY(110%); visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.dock.is-visible { transform: none; visibility: visible; transition: transform .28s ease; }
.dock .btn { min-height: 52px; padding: 0 12px; font-size: .9375rem; }
@media (max-width: 639.98px) {
  .js .dock { display: grid; }
  .js body.has-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ======================= Pricing page ======================= */
.page-hero { position: relative; padding-block: var(--s4) var(--s5); overflow: hidden; }
.page-hero__grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-top: var(--s3); } }
.page-hero .lead { margin-top: var(--s3); font-size: 1.125rem; max-width: 34rem; }
.page-hero .stickers { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: var(--s4); }

/* „Dobro je znati“ paper note */
.note {
  position: relative; background: var(--peach-100); padding: var(--s4) var(--s3) var(--s3);
  border-radius: 6px; box-shadow: var(--shadow-sticker); transform: rotate(-1.5deg);
}
.note::before {
  content: ""; position: absolute; top: -14px; left: 32px; width: 110px; height: 28px;
  background: rgba(255, 209, 102, .8); transform: rotate(-4deg); border-radius: 3px;
}
.note h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.25rem); margin-bottom: var(--s2); }
.note dl { display: grid; gap: 12px; }
.note dl > div { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; align-items: start; }
.note dt { font-weight: 700; color: var(--forest); grid-column: 2; }
.note .tick { grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--forest); stroke-width: 2.5; margin-top: 1px; }
.note dd { grid-column: 2; font-size: var(--fs-small); }

/* layout: menu + basket */
.price-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (min-width: 1024px) { .price-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); } }
.chapters { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }

.chapter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3) var(--s2) var(--s2); }
@media (min-width: 640px) { .chapter { padding: var(--s4) var(--s4) var(--s3); } }
.chapter__head { display: flex; align-items: center; gap: var(--s2); padding-bottom: var(--s3); border-bottom: 3px double var(--line); }
.chapter__head .badge-icon { width: 76px; height: 76px; }
.chapter__head .badge-icon .icon { width: 44px; height: 44px; }
.chapter__head .eyebrow { margin-bottom: 4px; }
.chapter__head .eyebrow::before { display: none; }

.rows { list-style: none; padding: 0; margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row .leader__name, .row .leader__price { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.row__meta .sticker { margin: 6px 0; }
.book {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px;
  color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun);
  text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.book .icon { width: 18px; height: 18px; }
.row__ctrl { align-self: start; padding-top: 2px; }
html:not(.js) .row__ctrl .add-slot { display: none; }

.add {
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--forest); color: var(--paper); box-shadow: 0 3px 0 var(--forest-700);
  transition: transform .15s, background-color .15s;
}
.add:hover { background: var(--forest-700); }
.add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--forest-700); }
.add .icon { width: 24px; height: 24px; stroke-width: 2.5; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--forest); border-radius: 999px; background: var(--peach-100); }
.stepper button { width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--forest); }
.stepper button:hover { background: rgba(31, 77, 58, .08); }
.stepper .icon { width: 20px; height: 20px; stroke-width: 2.5; }
.stepper output { min-width: 28px; text-align: center; font: 700 1.125rem/1 var(--sans); font-variant-numeric: tabular-nums; }

.field { display: grid; gap: 4px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px;
  border: 2px solid var(--forest); background: var(--paper); font-weight: 600; font-size: 1.0625rem;
}
.field--inline { width: 116px; }

/* „Kako računamo?“ */
.calc { display: grid; gap: var(--s3); background: var(--cream); border: 2px dashed var(--forest); border-radius: var(--r); padding: var(--s3); margin-top: var(--s3); }
@media (min-width: 768px) { .calc { grid-template-columns: 180px 1fr; align-items: center; } }
.calc__art { width: 100%; max-width: 180px; height: auto; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; }
.calc__art text { font: italic 600 13px var(--serif); fill: var(--forest); stroke: none; }
.calc h4 { font: 600 1.375rem/1.2 var(--serif); font-variation-settings: "SOFT" 100; color: var(--forest); }
.formula { font: italic 600 1.25rem/1.4 var(--serif); color: var(--forest); margin-top: 4px; }
.calc__fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: var(--s2); }
.calc__fields .field { width: 104px; }
.calc__x { font: 600 1.5rem/52px var(--serif); color: var(--forest); }
.calc__out { margin-top: var(--s2); font-weight: 600; min-height: 1.6em; }
.calc__ranges { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-small); }

/* on request */
.onreq { background: var(--peach-100); border-radius: var(--r-lg); padding: var(--s4) var(--s3); }
@media (min-width: 640px) { .onreq { padding: var(--s4); } }
.onreq ul { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .onreq ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.onreq li { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: var(--r-sm); padding: 12px 16px; font: 600 1.125rem/1.3 var(--serif); color: var(--forest); }
.onreq li .icon { width: 32px; height: 32px; }
.onreq li small { display: block; font: 500 .875rem var(--sans); color: var(--muted); }

/* basket */
.basket {
  background: var(--paper); border: 2px solid var(--forest); border-radius: var(--r);
  padding: var(--s3); box-shadow: var(--shadow-soft);
}
html:not(.js) .basket { display: none; }
@media (min-width: 1024px) { .basket { position: sticky; top: 24px; } }
.basket__head { display: flex; align-items: center; gap: 12px; padding-bottom: var(--s2); border-bottom: 3px double var(--line); }
.basket__head h2 { font-size: 1.5rem; margin-right: auto; }
.basket__head .icon { width: 34px; height: 34px; color: var(--forest); }
.count {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-weight: 700; font-size: .9375rem;
}
.count.bump, .dock__basket.bump { animation: bump 380ms var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.basket__close { display: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--forest); background: var(--paper); color: var(--forest); place-items: center; }
.basket__empty { padding: var(--s3) 0; color: var(--muted); }
.basket__list { list-style: none; padding: 0; margin: 0; }
.bline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.bline__name { font-weight: 700; }
.bline__sum { grid-column: 1; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.bline .stepper, .bline .remove { grid-column: 2; grid-row: 1 / span 2; }
.bline .stepper button { width: 44px; height: 48px; }
.remove { min-height: 48px; padding: 0 12px; border: 0; background: none; color: var(--forest); font-weight: 700; text-decoration: underline; }
.basket__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: var(--s2) 0 6px; }
.basket__total span { font-weight: 600; }
.basket__total strong { font: 600 1.75rem/1.2 var(--serif); color: var(--forest); font-variant-numeric: lining-nums tabular-nums; }
.basket__note { font-size: .9375rem; color: var(--muted); }
.basket__todo { list-style: none; padding: 0; margin: var(--s2) 0; display: grid; gap: 8px; font-size: .9375rem; }
.basket__actions { display: grid; gap: 10px; margin-top: var(--s3); }
.basket__fine { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* basket as bottom sheet (< 1024) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(22, 58, 43, .45); }
.sheet-backdrop[hidden] { display: none; }
@media (max-width: 1023.98px) {
  .js .basket {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    max-height: min(88vh, 720px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: var(--r) var(--r) 0 0; border-width: 2px 0 0;
    padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .js .basket.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .js .basket::before { content: ""; display: block; width: 48px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 14px; }
  .basket__close { display: grid; }
  .js .dock--pricing { display: grid; }
  .js body.has-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.dock__basket {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--forest);
  background: var(--sun); color: var(--ink); font-weight: 700; font-size: .9375rem; white-space: nowrap; overflow: hidden;
}
.dock__basket .icon { width: 22px; height: 22px; }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .dock--pricing { grid-template-columns: auto; justify-content: center; background: transparent; border: 0; box-shadow: none; }
  .dock--pricing .dock__call { display: none; }
  .dock--pricing .dock__basket { padding: 0 24px; box-shadow: var(--shadow-sticker); }
}

/* bubble that flies into the basket */
.fly {
  position: fixed; z-index: 90; width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, #fff 0 18%, var(--peach) 60%, var(--forest) 100%);
  box-shadow: 0 0 0 2px var(--paper);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .sticker { opacity: 1; transform: rotate(var(--rot)); }
  .js .mark path { stroke-dashoffset: 0; }
  .bubbles { display: none; }
}
