/* MARTIN'S — martins.hr
   Boje i pismo prema Brand Booku: Deer #ba855a, Comfort Granite #4a5357,
   Plus Jakarta Sans (Bold i Light). Prvo za mobitel, zatim veći ekrani. */

/* ---------- Pismo ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-300-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-300-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-400-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-400-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-500-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-500-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-700-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-700-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; }


/* ---------- Tokeni ---------- */
:root {
  --deer: #ba855a;          /* Primary accent color */
  --deer-light: #d7b18c;
  --deer-deep: #a4714a;
  --deer-ink: #865a38;      /* Deer za sitni tekst na svijetloj podlozi, 5.2:1 */
  --granite: #4a5357;       /* Primary dark color */
  --granite-soft: #5b6468;  /* sitni tekst, 5.3:1 na papiru */
  --ink: #070b0f;           /* tamna pozadina iz Brand Booka */
  --paper: #f5f0e8;
  --sand: #ece4d8;
  --rule: rgba(74, 83, 87, 0.2);
  --rule-dark: rgba(255, 255, 255, 0.13);
  --muted-dark: #9aa3a7;    /* 7.7:1 na tamnoj */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --svh: 1vh;
}
@supports (height: 1svh) { :root { --svh: 1svh; } }

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--deer); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 40;
  padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Traka napretka na vrhu ekrana */
.progress { position: fixed; inset: 0 0 auto; z-index: 30; height: 3px; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: var(--deer);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ======================================================================
   1. Moto
   ====================================================================== */
.intro {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column;
  min-height: calc(100 * var(--svh));
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
/* topli odsjaj iza okvira */
.intro::before {
  content: ""; position: absolute; z-index: -2;
  width: 150vmax; aspect-ratio: 1;
  right: -75vmax; top: -40vmax;
  background: radial-gradient(closest-side, rgba(186, 133, 90, 0.2), rgba(186, 133, 90, 0.06) 55%, rgba(186, 133, 90, 0));
}

.intro__bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px;
}
.brand { display: block; width: 136px; color: #fff; border-radius: 4px; }
.brand svg, .footer__logo svg { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__link {
  padding: 12px 0;
  color: #fff; text-decoration: none;
  font-size: 0.9375rem; font-weight: 500;
  background: linear-gradient(var(--deer), var(--deer)) left calc(100% - 2px) / 0 1.5px no-repeat;
  transition: background-size 0.25s ease;
}
.nav__link:hover { background-size: 100% 1.5px; }
.nav__link--wide { display: none; }

/* Zakrenuti okvir iz znaka MARTIN'S: crta se sam i stoji iza oba alata. */
.intro__frame {
  position: absolute; z-index: -2;
  left: 50%; top: 47%;
  width: 140%; max-width: none;
  transform: translate(-50%, -50%);
  translate: calc(var(--mx) * 8px) calc(var(--my) * 8px);
  overflow: visible;
  pointer-events: none;
  /* gornji i donji kut se gube, da crta ne ide preko izbornika, mota i natpisa */
  -webkit-mask-image: linear-gradient(to bottom, transparent 13%, #000 30%, #000 68%, transparent 86%);
  mask-image: linear-gradient(to bottom, transparent 13%, #000 30%, #000 68%, transparent 86%);
}
.intro__frame path {
  fill: none;
  stroke: var(--deer);
  stroke-width: 0.3;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

/* Na mobitelu: alati gore, moto ispod. Na širem ekranu: moto lijevo, alati desno. */
.intro__main {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding-bottom: 92px;
}
.motto {
  --size: min(17.6vw, 9.5rem);
  font-size: var(--size);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.motto__row, .motto__small, .motto__big { display: block; white-space: nowrap; }
.motto__small { font-weight: 300; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.58); }
.motto__big { color: #fff; }
/* Maska: riječ izlazi iz "prozora". Donji dodatak čuva repove slova g i j. */
.m, .motto .dot {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: 0.06em 0.03em 0.22em;
  margin: -0.06em -0.03em -0.22em;
}
.t { display: inline-block; }
.t--end, .motto .dot { color: var(--deer); }

/* Dva alata u naslovnom dijelu: nakrivljeni 3D mobitel i preša, kao jedna slika.
   Ukras, bez klika. Sve unutar .art je u postocima, pa raste i smanjuje se zajedno. */
.intro__art {
  order: -1;
  flex: 1 1 0; min-height: 220px;
  margin-bottom: 16px;
  display: grid; place-items: center;
  container-type: size;
}
.art {
  --mx: 0; --my: 0;
  position: relative; isolation: isolate;
  width: min(100%, 420px);
  width: min(100cqw, 110cqh, 840px);
  aspect-ratio: 1.1;
  container-type: inline-size;   /* natpisi rastu sa slikom (cqw) */
}
.art__glow {
  position: absolute; z-index: -3; inset: -6% -10% -2%;
  background: radial-gradient(closest-side, rgba(186, 133, 90, 0.3), rgba(186, 133, 90, 0.08) 60%, rgba(186, 133, 90, 0));
  pointer-events: none;
}
.art__obj {
  --depth: 6;
  position: absolute;
  display: block;
  translate: calc(var(--mx) * var(--depth) * -1px) calc(var(--my) * var(--depth) * -1px);
}
.art__obj img { width: 100%; height: 100%; object-fit: contain; }
/* svjetlo na podu ispod svakog alata */
.art__obj::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: -3.5%;
  width: 118%; height: 9%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(215, 177, 140, 0.36), rgba(215, 177, 140, 0));
}
.art__obj--presso { z-index: 1; right: 0%; top: 0%; height: 90%; aspect-ratio: 825 / 1124; }
.art__obj--presso img { filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.5)); }
.art__obj--phone { --depth: 13; z-index: 2; left: 5%; top: 11%; height: 79%; aspect-ratio: 672 / 1240; }
.art__obj--phone img { filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.55)); }
.art__tag {
  position: absolute; z-index: 3; top: 92.6%;
  transform: translateX(-50%);
  padding: 0.6em 1.1em 0.55em;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: rgba(13, 18, 21, 0.78);
  white-space: nowrap;
  font-size: 0.5625rem;
  font-size: clamp(0.5625rem, 1.9cqw, 0.8125rem);
  font-weight: 500; line-height: 1.2;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}
.art__tag b { margin-right: 0.6em; font-weight: 700; color: var(--deer-light); font-variant-numeric: tabular-nums; }
.art__tag--phone { left: 24%; }
.art__tag--presso { left: 69.5%; }

.intro__cue {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  width: 44px; height: 64px; margin-left: -22px;
  display: grid; place-items: center;
}
.intro__cue span { position: relative; display: block; width: 1px; height: 48px; background: rgba(255, 255, 255, 0.22); }
.intro__cue span::after {
  content: ""; position: absolute; left: -2px; top: 0;
  width: 5px; height: 10px; border-radius: 3px;
  background: var(--deer);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(38px); opacity: 0; }
}

/* Uvodna animacija (samo kad korisnik nije isključio pokrete) */
@media (prefers-reduced-motion: no-preference) {
  .js .t {
    transform: translateY(130%);
    transition: transform 1s var(--ease-out);
    transition-delay: calc(140ms + var(--d) * 110ms);
  }
  .js .t--end {
    transform: translateY(-130%);
    transition: transform 0.9s cubic-bezier(0.34, 1.45, 0.5, 1);
    transition-delay: calc(560ms + var(--d) * 90ms);
  }
  .js .motto .dot { transform: scale(0); transition: transform 0.6s cubic-bezier(0.34, 1.8, 0.5, 1) 1.32s; }
  .js .intro__frame path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out) 0.35s; }
  .js .intro__bar,
  .js .intro__cue { opacity: 0; transform: translateY(10px); transition: opacity 0.8s ease 1.3s, transform 0.8s var(--ease-out) 1.3s; }
  .js .intro__bar { transform: none; transition-delay: 1.1s; }
  /* alati izrone odozdo, prvo preša pa mobitel */
  .js .art__obj {
    opacity: 0; transform: translateY(9%) scale(0.96);
    transition: opacity 0.9s ease 0.7s, transform 1.3s var(--ease-out) 0.7s, translate 0.7s var(--ease-out);
  }
  .js .art__obj--phone { transform: translateY(13%) rotate(5deg) scale(0.96); transition-delay: 0.92s, 0.92s, 0s; }
  .js .art__tag, .js .art__glow { opacity: 0; transition: opacity 1s ease 1.5s; }
  .js .art__glow { transition-delay: 0.5s; }
  .js .intro__frame { transition: translate 0.9s var(--ease-out); }

  .js.is-ready .t,
  .js.is-ready .t--end { transform: none; }
  .js.is-ready .motto .dot { transform: none; }
  .js.is-ready .intro__frame path { stroke-dashoffset: 0; }
  .js.is-ready .intro__bar,
  .js.is-ready .intro__cue { opacity: 1; transform: none; }
  .js.is-ready .art__obj { opacity: 1; transform: none; }
  .js.is-ready .art__tag, .js.is-ready .art__glow { opacity: 1; }

  /* nakon ulaska alati lagano lebde, svaki svojim ritmom */
  .is-ready .art__obj img { animation: art-float 7s ease-in-out 2.6s infinite; }
  .is-ready .art__obj--presso img { animation-name: art-float-b; animation-duration: 9s; animation-delay: 3.1s; }
}
@keyframes art-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -2.2%, 0) rotate(-0.7deg); }
}
@keyframes art-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -1.3%, 0) rotate(0.35deg); }
}

/* ======================================================================
   Zajedničko: postolje (zakrenuti kvadrat), mobitel, preša
   ====================================================================== */
.plinth {
  position: absolute; z-index: -2;
  left: 50%; top: 50%;
  width: 62%; aspect-ratio: 1;
  border-radius: 13%;
  background: linear-gradient(135deg, var(--deer-light) 0%, var(--deer) 48%, var(--deer-deep) 100%);
  transform: translate(-50%, -50%) rotate(45deg);
}
.floor {
  position: absolute; z-index: -1;
  left: 50%; bottom: 6%;
  width: 56%; height: 5%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(58, 40, 26, 0.32), rgba(58, 40, 26, 0));
  filter: blur(3px);
}

/* Mobitel: --w je širina, okvir i zaobljenja rastu s njom */
.device {
  --w: 50%;
  position: absolute; left: 50%;
  width: var(--w);
  padding: calc(var(--w) * 0.032);
  background: #0d1215;
  border-radius: 15% / 6.9%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 60px -28px rgba(40, 26, 14, 0.55),
    0 14px 24px -12px rgba(40, 26, 14, 0.35);
  transform: translateX(-50%);
}
.device__glass {
  position: relative;
  display: block;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 12.4% / 5.75%;
  background: #f9fafc;
}
.device__glass img {
  position: absolute; left: 0; top: 3.2%;
  width: 100%; height: 96.8%;
  object-fit: cover; object-position: top;
}

/* PRESSO: izrezana fotografija preše (bez pozadine), stoji na postolju */
.cutout {
  position: absolute;
  left: 50%; bottom: 7%;
  width: 92%; height: 84%;
  transform: translateX(-50%);
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 22px 18px rgba(40, 26, 14, 0.3));
}

/* ======================================================================
   2. Dva alata
   ====================================================================== */
.duo { padding-block: 76px 84px; }
.duo__title {
  font-size: clamp(2.75rem, 12vw, 5rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.045em;
}
.duo__text {
  margin-top: 10px;
  font-size: 1.125rem; font-weight: 300; line-height: 1.45;
  color: var(--granite);
}
.duo__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}
.duo__item {
  display: flex; flex-direction: column;
  padding-bottom: 16px;
  border-radius: 18px;
  background: var(--sand);
  color: var(--ink); text-decoration: none;
  transition: background-color 0.25s ease;
}
.duo__item:hover { background: #e6dccd; }
.duo__stage {
  position: relative; isolation: isolate;
  display: block;
  aspect-ratio: 3 / 4;
  margin-bottom: 4px;
}
/* Postolje je na sredini prostora iznad teksta (jednak razmak gore i dolje).
   Mobitel i preša su na sredini postolja, sjena ide s njima. */
.duo__stage .plinth { width: 60%; top: 51%; }
.duo__stage .device { --w: 41%; bottom: 16.9%; }
.duo__stage .floor { bottom: 14%; }
.duo__stage .cutout { width: 84%; height: 70%; bottom: 14%; }
.duo__stage--presso .floor { bottom: 12%; }
.duo__index, .duo__name, .duo__kind, .duo__go { display: block; padding-inline: 14px; }
.duo__index { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--deer-ink); font-variant-numeric: tabular-nums; }
.duo__name { margin-top: 2px; font-size: 1.125rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.duo__kind { margin-top: 4px; font-size: 0.8125rem; line-height: 1.35; color: var(--granite-soft); }
.duo__go { margin-top: auto; padding-top: 14px; font-size: 0.875rem; font-weight: 500; }
.duo__go span { display: inline-block; color: var(--deer-ink); transition: transform 0.2s ease; }
.duo__item:hover .duo__go span { transform: translateX(3px); }

/* ======================================================================
   3. Digital HACCP: tri kratka kadra dok se skrola
   ====================================================================== */
.chapter { position: relative; }
.chapter__sticky { display: flex; flex-direction: column; }
.chapter__top {
  display: flex; align-items: center; gap: 10px;
  flex: none; height: 60px;
  border-bottom: 1px solid var(--rule);
}
.chapter__index { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--deer-ink); font-variant-numeric: tabular-nums; }
.chapter__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.chapter__dots { display: flex; gap: 6px; margin-left: auto; }
.chapter__dots i {
  display: block; width: 6px; height: 6px; border-radius: 3px;
  background: rgba(74, 83, 87, 0.28);
  transition: width 0.4s var(--ease), background-color 0.4s ease;
}
.chapter:not([data-active]) .chapter__dots { display: none; }
.chapter[data-active="0"] .chapter__dots i:nth-child(1),
.chapter[data-active="1"] .chapter__dots i:nth-child(2),
.chapter[data-active="2"] .chapter__dots i:nth-child(3) { width: 22px; background: var(--deer); }

.chapter__grid { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chapter__captions { display: grid; padding-top: 22px; }
.cap { grid-area: 1 / 1; }
.chapter:not([data-active]) .cap { grid-area: auto; margin-bottom: 18px; }
.cap__title {
  font-size: clamp(2.125rem, 9.4vw, 3rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
}
.cap__text {
  margin-top: 10px; max-width: 30ch;
  font-size: 1.0625rem; font-weight: 300; line-height: 1.45;
  color: var(--granite);
}

.chapter__stage {
  position: relative; isolation: isolate;
  margin-top: 16px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  container-type: size;
}
.chapter__stage .plinth { width: 76%; width: min(76cqw, 64cqh); top: 40%; }
.chapter__stage .floor { display: none; }
.chapter__stage .device { --w: 74%; --w: min(74cqw, 300px, 64cqh); top: 2.5%; }
.chapter__stage::after {
  /* predmet izlazi odozdo i nestaje u papiru */
  content: ""; position: absolute; z-index: 1;
  inset: auto 0 0; height: 22%;
  background: linear-gradient(rgba(245, 240, 232, 0), var(--paper) 78%);
  pointer-events: none;
}
.chapter__note {
  position: absolute; z-index: 2; inset: auto 0 12px;
  font-size: 0.75rem; text-align: center; color: var(--granite-soft);
}

/* Slojevi kadrova: bez JavaScripta vidi se samo prvi */
.scr { opacity: 0; }
.scr[data-beat="0"] { opacity: 1; }

/* Način "kadar po kadar" (uključuje ga site.js) */
.chapter[data-active] { height: calc(100 * var(--svh) + 186 * var(--svh)); }
.chapter[data-active] .chapter__sticky {
  position: sticky; top: 0;
  height: calc(100 * var(--svh));
  overflow: hidden;
}
.chapter[data-active] .chapter__captions { min-height: calc(22px + clamp(2.75rem, 13vw, 4rem) + 10px + 1.0625rem * 1.45 * 2); }
.chapter[data-active] .chapter__stage { flex: 1; min-height: 0; margin-top: 8px; aspect-ratio: auto; overflow: visible; }
.chapter[data-active] .cap {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.4s ease, transform 0.65s var(--ease-out);
}
.chapter[data-active="1"] .cap[data-beat="0"],
.chapter[data-active="2"] .cap[data-beat="0"],
.chapter[data-active="2"] .cap[data-beat="1"] { transform: translateY(-22px); }
.chapter[data-active="0"] .cap[data-beat="0"],
.chapter[data-active="1"] .cap[data-beat="1"],
.chapter[data-active="2"] .cap[data-beat="2"] { opacity: 1; transform: none; transition-delay: 0.08s; }

.chapter[data-active] .scr {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.9s var(--ease-out);
}
.chapter[data-active="0"] .scr[data-beat="0"],
.chapter[data-active="1"] .scr[data-beat="1"],
.chapter[data-active="2"] .scr[data-beat="2"] { opacity: 1; transform: none; }

/* Postolje se okrene za četvrtinu kruga na svakom kadru */
.chapter .plinth { transition: transform 1.1s var(--ease-out); }
.chapter[data-active="1"] .plinth { transform: translate(-50%, -50%) rotate(135deg); }
.chapter[data-active="2"] .plinth { transform: translate(-50%, -50%) rotate(225deg); }

/* ======================================================================
   4. PRESSO: slika preše i tri koraka
   ====================================================================== */
.howto__grid { display: grid; }
.howto__title {
  padding-top: 22px;
  font-size: clamp(2.125rem, 9.4vw, 3rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
}
.howto__stage {
  position: relative; isolation: isolate;
  width: min(100%, 460px);
  margin: 12px auto 0;
  aspect-ratio: 1;
  container-type: size;
}
/* Postolje je malo više od sredine, da mu donji kut ostane skriven iza daske. */
.howto__stage .plinth { width: min(62cqw, 62cqh); top: 43%; }
.howto__stage .floor { bottom: 5%; width: 64%; }
.howto__stage .cutout { width: 88%; height: 90%; bottom: 5%; }

.steps { margin: 18px 0 0; padding: 0; list-style: none; }
.step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline;
  padding-block: 16px 18px;
  border-top: 1px solid var(--rule);
}
/* Broj kao „01” u pločicama Dva alata, tekst kao ostali tekst na stranici */
.step__num {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--deer-ink);
  font-variant-numeric: tabular-nums;
}
.step__title { max-width: 32ch; font-size: 1.125rem; font-weight: 300; line-height: 1.45; color: var(--granite); text-wrap: balance; }

/* ======================================================================
   Poziv na upit nakon svakog proizvoda
   ====================================================================== */
.cta { padding-block: 56px 72px; }
.cta__inner { padding-top: 28px; border-top: 1px solid var(--rule); }
.cta__index { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--deer-ink); }
.cta__title {
  margin-top: 10px;
  font-size: clamp(2.25rem, 9.6vw, 4rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.04em;
  text-wrap: balance;
}
.cta__text {
  margin-top: 12px; max-width: 36ch;
  font-size: 1.0625rem; font-weight: 300; line-height: 1.5;
  color: var(--granite);
}
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px;
  border-radius: 12px;
  background: var(--ink); color: #fff;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background: #222a2f; }
.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--deer { background: var(--deer); color: var(--ink); }   /* 6.2:1 */
.btn--deer:hover { background: var(--deer-light); }
.link {
  padding: 8px 0;
  border: 0; background: none; cursor: pointer;
  color: var(--ink);
  font: 500 0.9375rem/1.3 var(--font);
  text-decoration: underline; text-decoration-color: var(--deer);
  text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link:hover { text-decoration-color: currentColor; }
.link--play { display: inline-flex; align-items: center; gap: 10px; }
.link--play::before {
  content: ""; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M12 9.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ======================================================================
   5. Kontakt i podnožje
   ====================================================================== */
.finale {
  background: var(--ink); color: #fff;
  padding-top: 80px;
}
.finale__title {
  font-size: clamp(3rem, 14vw, 6rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.045em;
}
.finale__text { margin-top: 10px; font-size: 1.125rem; font-weight: 300; color: #c3c9cc; }
.finale__btn { display: flex; width: fit-content; margin-top: 28px; }
.finale__direct { margin-top: 36px; }
.finale__direct li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--rule-dark);
}
.finale__label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); }
.finale__direct a { font-size: 1.0625rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.finale__direct a:hover { color: var(--deer-light); }

.finale__motto {
  margin-top: 72px;
  font-size: min(14.4vw, 11rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
  white-space: nowrap;
}
.finale__motto .m { display: block; }
.finale__motto .t { display: block; }
.finale__motto em, .finale__motto b { font-style: normal; color: var(--deer); }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  margin-top: 40px;
  padding-block: 24px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-dark);
  font-size: 0.875rem;
}
.footer__logo { display: block; width: 140px; color: #fff; }
.footer__meta { color: var(--muted-dark); }
/* Društvene mreže: mirne ikone, prva poravnata s tekstom iznad (polje 40 px, ikona 20 px) */
.social { display: flex; margin: 0 -10px; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted-dark); transition: color 0.2s ease; }
.social a:hover { color: var(--deer-light); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__link { color: #fff; text-decoration: none; }
.footer__link:hover { color: var(--deer-light); }
/* Privatnost i postavke kolačića: mirni linkovi iza ikona (Rocco 19. 11.) */
.footer__pravila { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
.footer__pravila a, .footer__pravila button {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--muted-dark);
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.24);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.footer__pravila a:hover, .footer__pravila button:hover { color: var(--deer-light); }
/* Podaci tvrtke: sitni red na dnu (Rocco 19. 11.); dijelovi se lome samo između sebe.
   Mobitel: 11 px, redovi jedan ispod drugoga. Od 960 px: 10 px, dva reda (šest podataka o tvrtki, pa direktor, kapital i IBAN).
   Od 1272 px: sve u JEDNOM redu od ruba do ruba, s tankom crtom između podataka; razmaci su jednaki
   (srednji dijelovi rastu za cijeli razmak, prvi i zadnji za pola, pa crta pada točno u sredinu). */
.footer__firma {
  display: flex; flex-wrap: wrap; gap: 1px 16px; flex-basis: 100%;
  margin: 0; font-size: 0.6875rem; line-height: 1.5; color: var(--muted-dark);
}
.footer__firma span { white-space: nowrap; }
@media (min-width: 960px) {
  .footer__firma { gap: 1px 14px; font-size: 0.625rem; }
  .footer__firma::after { content: ""; flex-basis: 100%; height: 0; order: 1; }
  .footer__firma span:nth-child(n+7) { order: 2; }
}
@media (min-width: 1272px) {
  .footer__firma { gap: 0; font-size: 0.578125rem; }
  .footer__firma::after { content: none; }
  .footer__firma span { position: relative; flex: 1 1 auto; padding-inline: 4px; text-align: center; }
  .footer__firma span:nth-child(n+7) { order: 0; }
  .footer__firma span:first-child { flex-grow: 0.5; padding-left: 0; text-align: left; }
  .footer__firma span:last-child { flex-grow: 0.5; padding-right: 0; text-align: right; }
  .footer__firma span + span::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 1px; height: 9px; margin-top: -4.5px; background: rgba(255, 255, 255, 0.18);
  }
}
@media (min-width: 1360px) {
  .footer__firma { font-size: 0.625rem; }
}

/* ======================================================================
   Cijeli video PRESSO
   ====================================================================== */
.lightbox {
  position: fixed; inset: 0;
  width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  overflow: hidden;
  background: #000; color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
/* Video stane cijeli u ekran (9:16), ništa se ne reže i ne razvlači. */
.lightbox__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: auto;
  object-fit: contain;
  background: #000;
}
@supports (width: 1cqw) {
  .lightbox { container-type: size; }
  .lightbox__video { width: min(100cqw, 56.25cqh); height: min(100cqh, 177.78cqw); }
}
.lightbox__close {
  position: absolute; z-index: 2;
  top: max(12px, env(safe-area-inset-top)); right: 12px;
  padding: 10px 16px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  font: 500 0.9375rem/1 var(--font);
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }

/* ======================================================================
   Pojavljivanje pri skrolanju (uključuje ga site.js)
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .io [data-reveal] { transition: opacity 0.8s ease, transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .io [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }

  .io .duo__item .plinth { transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 0.15s); }
  .io .duo__item:not(.is-in) .plinth { transform: translate(-50%, -50%) rotate(0deg) scale(0.55); }
  .io .duo__item .device,
  .io .duo__item .cutout { transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 0.25s); }
  .io .duo__item:not(.is-in) .device,
  .io .duo__item:not(.is-in) .cutout { transform: translate(-50%, 18%); }

  .io .chapter:not(.is-in) .plinth { transform: translate(-50%, -50%) rotate(0deg) scale(0.55); }
  .io .chapter .chapter__stage > .device { transition: transform 1.1s var(--ease-out) 0.1s; }
  .io .chapter:not(.is-in) .chapter__stage > .device { transform: translate(-50%, 14%); }

  /* PRESSO: postolje se okrene, preša izađe odozdo */
  .io .howto__stage[data-reveal] { opacity: 1; transform: none; }
  .io .howto__stage .plinth { transition: transform 1.2s var(--ease-out) 0.1s; }
  .io .howto__stage:not(.is-in) .plinth { transform: translate(-50%, -50%) rotate(-45deg) scale(0.55); }
  .io .howto__stage .cutout { transition: transform 1s var(--ease-out) 0.2s, opacity 0.6s ease 0.2s; }
  .io .howto__stage .floor { transition: opacity 0.8s ease 0.5s; }
  .io .howto__stage:not(.is-in) .cutout { transform: translate(-50%, 12%); opacity: 0; }
  .io .howto__stage:not(.is-in) .floor { opacity: 0; }

  .io .finale__motto .t { transition: transform 1s var(--ease-out); }
  .io .finale__motto .m + .m .t { transition-delay: 0.12s; }
  .io .finale__motto:not(.is-in) .t { transform: translateY(110%); }
  .io .finale__motto[data-reveal] { opacity: 1; transform: none; }
  .finale__motto .m { overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
}

/* ======================================================================
   Veći ekrani
   ====================================================================== */
@media (min-width: 600px) {
  .nav__link--wide { display: inline; }
  .intro__bar { height: 80px; }
  .brand { width: 156px; }
  .duo__grid { gap: 16px; }
  .duo__index, .duo__name, .duo__kind, .duo__go { padding-inline: 20px; }
  .duo__name { font-size: 1.375rem; }
  .duo__kind { font-size: 0.9375rem; }
}

@media (min-width: 960px), (min-width: 600px) and (orientation: landscape) {
  /* Moto lijevo (širok koliko mu treba), alati desno u ostatku. Slika smije malo izaći desno izvan stupca. */
  .intro__main {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center; column-gap: clamp(12px, 2.4vw, 44px);
    padding-bottom: clamp(24px, 7 * var(--svh), 72px);
  }
  .intro__art {
    order: 0; align-self: stretch; min-height: 0; margin-bottom: 0;
    margin-right: calc(-1 * clamp(0px, (100vw - var(--max)) / 2 - 24px, 190px));
  }
  /* okvir je pomaknut udesno: lijevi kut pokazuje na moto, ali ga ne dira */
  .intro__frame { left: 57%; width: 130%; }
  .intro__frame path { stroke-width: 0.2; }
  .motto { --size: min(6vw, 5.8rem, 15 * var(--svh)); line-height: 0.95; }
  .motto__row { display: flex; gap: 0.22em; }
  /* znak za skrolanje stoji lijevo ispod mota, da ne smeta natpisima uz alate */
  .intro__cue { left: max(var(--gutter), (100% - var(--max)) / 2); margin-left: -18px; }
}
/* Tablet uspravno: malo manji moto, da alati dobiju više mjesta, i više zraka do znaka za skrolanje */
@media (min-width: 600px) and (max-width: 959px) and (orientation: portrait) {
  .motto { --size: 14vw; }
  .intro__main { padding-bottom: 116px; }
}
@media (min-width: 600px) and (max-height: 520px) and (orientation: landscape) {
  .intro__bar { height: 64px; }
  .intro__main { padding-bottom: 14px; }
}

@media (min-width: 960px) {
  .intro__bar { height: 92px; }
  .brand { width: 172px; }

  .duo { padding-block: 120px 128px; }
  .duo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; }
  .duo__text { font-size: 1.375rem; }
  .duo__grid { gap: 24px; margin-top: 44px; }
  .duo__item { border-radius: 24px; padding-bottom: 28px; }
  .duo__stage { aspect-ratio: 4 / 3; }
  .duo__stage .plinth { width: 46%; top: 51%; }
  .duo__stage .device { --w: 26%; bottom: 12.8%; }
  .duo__stage .floor { bottom: 9.8%; }
  .duo__stage .cutout { width: 64%; height: 70%; bottom: 14%; }
  .duo__stage--presso .floor { bottom: 12%; }
  .duo__index, .duo__name, .duo__kind, .duo__go { padding-inline: 32px; }
  .duo__name { font-size: 1.75rem; }

  .chapter__top { height: 76px; }
  .chapter__index { font-size: 0.875rem; }
  .chapter__name { font-size: 1.25rem; }
  .chapter__grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center; column-gap: clamp(32px, 5vw, 80px);
  }
  .chapter__captions { padding-top: 0; }
  .chapter[data-active] .chapter__captions { min-height: 0; }
  .cap__title { font-size: clamp(3.25rem, 5.4vw, 5.5rem); }
  .cap__text { margin-top: 18px; font-size: 1.375rem; }
  .chapter__stage { margin: 0; aspect-ratio: 1; border-radius: 28px; background: var(--sand); }
  .chapter[data-active] .chapter__stage { align-self: stretch; margin-block: 24px; }
  .chapter__stage::after { display: none; }
  .chapter__stage .plinth { width: min(70cqw, 66cqh); top: 50%; }
  .chapter__stage .floor { display: block; bottom: 6%; }
  .chapter__stage .device { --w: min(38cqh, 340px); top: auto; bottom: 8%; }
  .chapter__note { bottom: 14px; }

  /* PRESSO: slika lijevo, koraci desno */
  .howto__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "stage ." "stage title" "stage steps" "stage .";
    column-gap: clamp(32px, 5vw, 80px);
    padding-top: 24px;
  }
  .howto__title { grid-area: title; padding: 0; font-size: clamp(3.25rem, 5.4vw, 5.5rem); }
  .howto__stage { grid-area: stage; width: auto; margin: 0; border-radius: 28px; background: var(--sand); }
  .howto__stage .plinth { width: min(58cqw, 58cqh); }
  .howto__stage .cutout { width: 80%; height: 82%; bottom: 8%; }
  .howto__stage .floor { bottom: 7%; width: 56%; }
  .steps { grid-area: steps; margin-top: 32px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); padding-block: 20px 22px; }
  .step__num { font-size: 0.8125rem; }
  .step__title { font-size: 1.375rem; }

  .cta { padding-block: 72px 112px; }
  .cta__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px); padding-top: 40px; }
  .cta__index { grid-column: 1; }
  .cta__title { grid-column: 1; }
  .cta__text { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; font-size: 1.25rem; }
  .cta__actions { grid-column: 2; margin-top: 28px; }

  .finale { padding-top: 128px; }
  .finale > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px); }
  .finale__title, .finale__text, .finale__btn { grid-column: 1; }
  .finale__direct { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
  .finale__motto, .footer { grid-column: 1 / -1; }
  .finale__motto { margin-top: 112px; }
  .footer__link { margin-left: auto; }
}

/* Mobitel položen: tekst lijevo, slika desno */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  .chapter__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 24px; }
  .chapter__captions { padding-top: 0; }
  .chapter[data-active] .chapter__captions { min-height: 0; }
  .cap__title { font-size: 2rem; }
  .chapter[data-active] .chapter__stage { align-self: stretch; margin: 0; }
  .chapter__stage::after { display: none; }
  .chapter__stage .device { --w: 34cqh; top: auto; bottom: 12%; }
  .chapter__note { bottom: 6px; }

  .howto__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "stage ." "stage title" "stage steps" "stage .";
    column-gap: 24px;
  }
  .howto__title { grid-area: title; padding-top: 0; font-size: 2rem; }
  .howto__stage { grid-area: stage; width: auto; height: calc(100 * var(--svh) - 84px); aspect-ratio: auto; margin: 8px 0; }
  .steps { grid-area: steps; margin-top: 10px; }
  .step { padding-block: 10px 12px; }
  .step__title { font-size: 1rem; }
}

/* ======================================================================
   Manje pokreta
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .chapter[data-active] .plinth { transform: translate(-50%, -50%) rotate(45deg); }
}


/* ======================================================================
   Partneri: logotipi se polako vrte (traka ispod naslovnog dijela)
   ====================================================================== */
.partners { padding-block: 30px 30px; border-bottom: 1px solid var(--rule); }
.partners__label {
  font-size: 0.75rem; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--granite-soft);
}
.marquee {
  display: flex;
  margin-top: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex; flex: none; align-items: center;
  margin: 0; padding: 0; list-style: none;
  animation: marquee 60s linear infinite;   /* 15 logotipa; prije 34 s za 8, ista brzina. Skripta uzima ovo trajanje za svoju brzinu. */
}
/* S JavaScriptom traku vozi site.js (is-js): može se povući prstom ili mišem i zaletiti (Rocco 12. 11.),
   kratki klik ili dodir zaustavi i pokrene (is-paused, 11. 11.). Bez JavaScripta vrti je animacija iznad. */
.marquee.is-js { cursor: grab; touch-action: pan-y; touch-action: pan-y pinch-zoom; }   /* okomito skrolanje stranice ostaje pregledniku */
.marquee.is-js .marquee__track { animation: none; will-change: transform; }
.marquee.is-dragging { cursor: grabbing; }
.marquee img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.marquee[tabindex] { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.marquee:focus-visible { outline-offset: -2px; }
.marquee__item {
  display: flex; align-items: center; flex: none;
  padding-inline: 26px;
  white-space: nowrap;
  font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
  color: #9ea3a6;   /* svijetlosiva, kao logotipi: ne smije upadati u oči */
}
/* Logotipi: SVG u istoj svijetlosivoj boji; --h je visina po logu da svi izgledaju jednako veliki */
.partner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.partner__logo { width: auto; height: var(--h, 48px); }
.partner__name { font-size: 0.6875rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: #9ea3a6; }
@keyframes marquee { to { transform: translateX(-100%); } }
.partners + .duo { padding-top: 64px; }

/* ======================================================================
   Personalizirane aplikacije: treća, široka pločica ispod dva alata
   ====================================================================== */
.custom {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 24px;
  margin-top: 10px;
  padding: 28px 22px 24px;
  border-radius: 18px;
  background: var(--ink); color: #fff;
}
.custom::before {
  content: ""; position: absolute; z-index: -2;
  width: 120%; aspect-ratio: 1; right: -62%; top: -70%;
  background: radial-gradient(closest-side, rgba(186, 133, 90, 0.26), rgba(186, 133, 90, 0));
}
.custom__frame {
  position: absolute; z-index: -1;
  width: 240px; right: -96px; bottom: -118px;
  max-width: none; overflow: visible;
}
.custom__frame path { fill: none; stroke: var(--deer); stroke-width: 0.5; }
.custom__index { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--deer-light); }
.custom__title {
  margin-top: 10px; max-width: 20ch;
  font-size: clamp(1.625rem, 7vw, 2.75rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.custom__text { margin-top: 12px; max-width: 40ch; font-size: 1rem; font-weight: 300; line-height: 1.5; color: #c3c9cc; }
.custom__btn { justify-self: start; }

/* Poveznica na podstranicu ispod upita na početnoj */
.link--more { color: var(--ink); }
.link--more span { display: inline-block; color: var(--deer-ink); transition: transform 0.2s ease; }
.link--more:hover span { transform: translateX(3px); }

/* ======================================================================
   Podstranice: Digital HACCP i PRESSO
   ====================================================================== */
.phero {
  position: relative; isolation: isolate;
  overflow: hidden;
  background: var(--ink); color: #fff;
}
.phero::before {
  content: ""; position: absolute; z-index: -2;
  width: 150vmax; aspect-ratio: 1;
  right: -75vmax; top: -40vmax;
  background: radial-gradient(closest-side, rgba(186, 133, 90, 0.2), rgba(186, 133, 90, 0.06) 55%, rgba(186, 133, 90, 0));
}
.phero .intro__bar { z-index: 3; }
.phero__grid { display: grid; gap: 40px; padding-block: 10px 64px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--muted-dark); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.3); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--deer-light); }
.phero__kicker { margin-top: 30px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--deer-light); }
.phero__title {
  margin-top: 8px;
  font-size: clamp(3.25rem, 16vw, 7.5rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
}
.phero__lead { margin-top: 18px; max-width: 32ch; font-size: 1.125rem; font-weight: 300; line-height: 1.5; color: #c3c9cc; }
.phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.link--light { color: #fff; }
.link--light.link--play::before { background-color: var(--deer); }

.phero__visual { position: relative; isolation: isolate; aspect-ratio: 1 / 0.92; container-type: size; }
.phero__visual .plinth { width: min(74cqw, 80cqh); top: 50%; }

/* Preglednik s aplikacijom na računalu */
.browser {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 34px 60px -24px rgba(0, 0, 0, 0.65);
}
.browser__bar {
  display: flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px;
  background: #e9edf1;
  border-bottom: 1px solid #dde2e7;
}
.browser__bar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #c6cdd3; }
.browser__url {
  flex: 1; display: flex; align-items: center;
  height: 15px; margin-left: 8px; padding: 0 8px;
  border-radius: 5px;
  background: #fff;
  font-size: 9px; line-height: 1; color: var(--granite-soft);
  white-space: nowrap; overflow: hidden;
}
.browser img { width: 100%; height: auto; }

.phero__visual .browser { position: absolute; right: 0; top: 7%; width: 90%; }
.phero__visual .device { --w: 28%; left: 3%; bottom: 2%; transform: none; }
.phero__visual--presso .plinth { width: min(66cqw, 70cqh); top: 47%; }
.phero__visual--presso .cutout { width: 88%; height: 92%; bottom: 5%; }
.phero__visual--presso .floor { bottom: 4%; width: 62%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); }

/* Ulaz naslovnog dijela podstranice */
@media (prefers-reduced-motion: no-preference) {
  .js .phero__text > *,
  .js .phero__visual > *,
  .js .phero .intro__bar { opacity: 0; transition: opacity 0.8s ease, transform 1s var(--ease-out); }
  .js .phero__text > * { transform: translateY(18px); }
  .js .phero__text > :nth-child(2) { transition-delay: 0.06s; }
  .js .phero__text > :nth-child(3) { transition-delay: 0.12s; }
  .js .phero__text > :nth-child(4) { transition-delay: 0.2s; }
  .js .phero__text > :nth-child(5) { transition-delay: 0.28s; }
  .js .phero__visual > .plinth { transform: translate(-50%, -50%) rotate(0deg) scale(0.55); transition-duration: 0.8s, 1.3s; transition-delay: 0.15s; }
  .js .phero__visual > .browser { transform: translateY(26px); transition-delay: 0.3s; }
  .js .phero__visual > .device { transform: translateY(18%); transition-delay: 0.45s; }
  .js .phero__visual > .cutout { transform: translate(-50%, 10%); transition-delay: 0.35s; }
  .js .phero__visual > .floor { transform: translateX(-50%); transition-delay: 0.6s; }
  .js.is-ready .phero__text > *,
  .js.is-ready .phero__visual > *,
  .js.is-ready .phero .intro__bar { opacity: 1; }
  .js.is-ready .phero__text > *,
  .js.is-ready .phero__visual > .browser,
  .js.is-ready .phero__visual > .device { transform: none; }
  .js.is-ready .phero__visual > .plinth { transform: translate(-50%, -50%) rotate(45deg); }
  .js.is-ready .phero__visual > .cutout { transform: translateX(-50%); }
}

/* Odjeljci podstranica */
.sec { padding-block: 72px; }
.sec + .sec { padding-top: 24px; }
.sec__index { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--deer-ink); }
.sec__title {
  margin-top: 8px; max-width: 16ch;
  font-size: clamp(2.125rem, 9.4vw, 4.25rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec__lead { margin-top: 14px; max-width: 40ch; font-size: 1.0625rem; font-weight: 300; line-height: 1.5; color: var(--granite); }
.sec__lead + .sec__lead { margin-top: 10px; }

/* Popis modula: kartice s ikonom iz aplikacije (na mobitelu ikona lijevo, tekst desno) */
.mods { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.mods__item { display: flex; }
.mod {
  position: relative;
  flex: 1;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start;
  column-gap: 16px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: var(--paper);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, background-color 0.25s ease;
}
.mod__icon {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--deer-light), var(--deer) 55%, var(--deer-deep));
  color: #fff;
  box-shadow: 0 12px 20px -12px rgba(134, 90, 56, 0.8);
  transition: transform 0.6s var(--ease-out), background-color 0.3s ease;
}
.mod__icon svg { width: 24px; height: 24px; transition: transform 0.6s var(--ease-out); }
.mod__num {
  position: absolute; top: 17px; right: 18px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--deer-ink); font-variant-numeric: tabular-nums;
}
.mod__name { align-self: center; padding-right: 30px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.mod__text { grid-column: 2; margin-top: 6px; max-width: 38ch; font-size: 1rem; font-weight: 300; line-height: 1.5; color: var(--granite); }
@media (hover: hover) {
  .mod:hover { transform: translateY(-4px); background: #fffdf9; box-shadow: 0 26px 40px -26px rgba(40, 26, 14, 0.5); }
  .mod:hover .mod__icon { transform: rotate(45deg); }
  .mod:hover .mod__icon svg { transform: rotate(-45deg); }
}

/* Red: tekst i zaslon na postolju */
.feat { padding-block: 36px; }
.feat__grid { display: grid; gap: 26px; }
.feat__lead { margin-top: 14px; max-width: 36ch; font-size: 1.0625rem; font-weight: 300; line-height: 1.5; color: var(--granite); }
.feat__stage {
  position: relative; isolation: isolate;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand);
  container-type: size;
}
.feat__stage .plinth { width: min(72cqw, 66cqh); top: 52%; }
.feat__stage .floor { bottom: 6%; width: 44%; }
.feat__stage .device { --w: min(40cqw, 42cqh, 300px); bottom: 8%; }
.feat__stage--wide { aspect-ratio: 4 / 3.1; }
.feat__stage--wide .plinth { width: min(64cqw, 84cqh); top: 50%; }
.feat__stage--wide .browser { position: absolute; left: 50%; top: 50%; width: 88%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(74, 83, 87, 0.12), 0 30px 50px -24px rgba(40, 26, 14, 0.55); }
.feat__note { margin-top: 10px; margin-bottom: 40px; font-size: 0.75rem; color: var(--granite-soft); }

/* Koraci i česta pitanja */
.steps--sec { margin-top: 30px; }
.faq__list { margin-top: 28px; border-bottom: 1px solid var(--rule); }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--deer-ink), var(--deer-ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--deer-ink), var(--deer-ink)) center / 2px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { max-width: 60ch; padding-bottom: 20px; font-size: 1rem; font-weight: 300; line-height: 1.55; color: var(--granite); }

/* PRESSO: jedan potez (kratki video u petlji) */
.loop__grid { display: grid; gap: 28px; }
.loop__frame, .film__frame {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 22px;
  background: #0d1215;
  box-shadow: 0 40px 60px -30px rgba(40, 26, 14, 0.55);
}
.loop__frame video, .film__frame video { width: 100%; height: 100%; object-fit: cover; background: #0d1215; }
.film__frame video { object-fit: contain; }

/* PRESSO: kako radi, tri koraka (mirne slike, bez skrolanja) */
.how__list { display: grid; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.how__item { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); column-gap: 20px; align-items: center; }
.how__fig { position: relative; margin: 0; }
.how__img {
  display: block;
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  background: var(--sand);
  box-shadow: 0 22px 34px -22px rgba(40, 26, 14, 0.55);
}
.how__num {
  position: absolute; left: -10px; top: -10px;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--deer); color: #fff;
  box-shadow: 0 0 0 5px var(--paper);
  font-size: 1.125rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.how__title { font-size: 1.375rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.how__text { margin-top: 8px; max-width: 34ch; font-size: 1rem; font-weight: 300; line-height: 1.5; color: var(--granite); text-wrap: pretty; }

/* PRESSO: zašto, s dva detalja */
.why__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.why__gallery img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 16px; background: var(--sand); }

/* Pojavljivanje na podstranicama */
@media (prefers-reduced-motion: no-preference) {
  .io .feat__stage[data-reveal] { opacity: 1; transform: none; }
  .io .feat__stage .plinth { transition: transform 1.2s var(--ease-out) 0.1s; }
  .io .feat__stage:not(.is-in) .plinth { transform: translate(-50%, -50%) rotate(0deg) scale(0.55); }
  .io .feat__stage .device { transition: transform 1s var(--ease-out) 0.2s; }
  .io .feat__stage:not(.is-in) .device { transform: translate(-50%, 16%); }
  .io .feat__stage .browser { transition: transform 1s var(--ease-out) 0.2s, opacity 0.8s ease 0.2s; }
  .io .feat__stage:not(.is-in) .browser { transform: translate(-50%, -38%); opacity: 0; }
  .io .feat__stage .floor { transition: opacity 0.8s ease 0.5s; }
  .io .feat__stage:not(.is-in) .floor { opacity: 0; }
}

@media (min-width: 600px) {
  .partners { padding-block: 36px; }
  .marquee__item { padding-inline: 34px; font-size: 1.375rem; }
  .custom { margin-top: 16px; padding: 34px 32px 30px; border-radius: 22px; }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mod { display: flex; flex-direction: column; padding: 24px 24px 26px; border-radius: 20px; }
  .mod__icon { width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; }
  .mod__icon svg { width: 26px; height: 26px; }
  .mod__num { top: 24px; right: 24px; }
  .mod__name { align-self: auto; padding-right: 0; }
  .why__gallery { gap: 16px; }
}

@media (min-width: 960px) {
  .partners { padding-block: 44px 46px; }
  .partners__inner { display: flex; align-items: center; gap: 40px; }
  .partners__label { flex: none; max-width: 15ch; }
  .partners__inner .marquee { flex: 1; min-width: 0; margin-top: 0; }
  .marquee__item { padding-inline: 44px; font-size: 1.5rem; }
  .partner__logo { height: calc(var(--h, 48px) * 1.2); }
  .partner__name { font-size: 0.75rem; }
  .partners + .duo { padding-top: 104px; }

  .custom { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; margin-top: 24px; padding: 52px 52px 50px; border-radius: 24px; }
  .custom__title { font-size: clamp(2.25rem, 3.4vw, 3.25rem); }
  .custom__text { font-size: 1.125rem; }
  .custom__btn { justify-self: end; }
  .custom__frame { width: 420px; right: -150px; bottom: -230px; }

  .phero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center; column-gap: clamp(32px, 5vw, 80px);
    min-height: calc(100 * var(--svh) - 92px);
    padding-block: 8px 72px;
  }
  .crumbs { margin-top: 0; }
  .phero__lead { font-size: 1.25rem; }
  .phero__visual { aspect-ratio: 1 / 0.86; }
  .phero__visual .device { --w: 27%; }

  .sec { padding-block: 120px; }
  .sec + .sec { padding-top: 40px; }
  .sec__lead { font-size: 1.25rem; }
  .mods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
  .mod { padding: 30px 30px 32px; border-radius: 24px; }
  .mod__name { font-size: 1.25rem; }

  .feat { padding-block: 56px; }
  .feat__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: clamp(32px, 5vw, 80px); }
  .feat--flip .feat__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .feat--flip .feat__stage { order: -1; }
  .feat__lead { font-size: 1.25rem; }
  .feat__stage { aspect-ratio: 1 / 0.9; border-radius: 28px; }
  .feat__stage--wide { aspect-ratio: 4 / 3.1; }
  .feat__stage .device { --w: min(30cqw, 40cqh, 300px); }

  .faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .faq__list { margin-top: 0; }
  .faq__item summary { padding-block: 22px; font-size: 1.1875rem; }
  .faq__item p { font-size: 1.0625rem; }

  .loop__grid, .film__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; column-gap: clamp(32px, 5vw, 80px); }
  .film__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .loop__frame, .film__frame { width: min(100%, 380px); border-radius: 26px; }

  .why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "head steps" "gallery steps"; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .why__head { grid-area: head; }
  .why__grid .steps { grid-area: steps; margin-top: 0; }
  .why__gallery { grid-area: gallery; margin-top: 40px; gap: 16px; }
  .why__gallery img { border-radius: 20px; }
}

/* Mobitel položen: naslovni dio podstranice u dva stupca */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  .phero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 24px; padding-bottom: 36px; }
  .phero__title { font-size: 3.25rem; }
  .phero__kicker { margin-top: 16px; }
  .phero__visual { aspect-ratio: auto; height: calc(100 * var(--svh) - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .marquee__track[aria-hidden="true"] { display: none; }
}


/* ======================================================================
   10. 11. — ispravci po Roccovim slikama
   ====================================================================== */

/* Upit uz proizvod: tekst i gumbi počinju u istom retku kao naslov. */
@media (min-width: 960px) {
  .cta__inner { grid-template-rows: auto auto 1fr; align-items: start; }
  .cta__index { grid-column: 1; grid-row: 1; }
  .cta__title { grid-column: 1; grid-row: 2 / span 2; }
  .cta__text { grid-column: 2; grid-row: 2; align-self: start; margin: 0; padding-top: 0.7em; }
  .cta__actions { grid-column: 2; grid-row: 3; align-self: start; }
  /* Kontakt na dnu: telefon i e-mail počinju u visini naslova „Javi se.” */
  .finale__direct { align-self: start; margin-top: 18px; }
}

/* PRESSO „Zašto”: tekst i popis lijevo, dvije slike desno, sve u jednom redu. */
@media (min-width: 960px) {
  .why__grid { grid-template-rows: auto 1fr; grid-template-areas: "head gallery" "steps gallery"; }
  .why__grid .steps { margin-top: 40px; }
  .why__gallery { grid-area: gallery; margin-top: 0; align-self: stretch; grid-template-rows: 1fr; contain: size; min-height: 100%; }
  .why__gallery img { height: 100%; aspect-ratio: auto; }
}


/* ======================================================================
   10. 11. (2) — življe: istaknute riječi, trake s riječima,
   obojeni odjeljci, tri koraka na tamnom, sjaj na gumbima
   ====================================================================== */

/* Zadnja točka ili upitnik velikog naslova u boji Deer */
.pt { color: var(--deer); }

/* Istaknuta riječ: svijetla crta kao markerom, povuče se kad se naslov pojavi */
.hl {
  --hl: rgba(201, 151, 106, 0.42);
  background: linear-gradient(var(--hl), var(--hl)) 0 80% / 100% 0.32em no-repeat;
}
/* na tamnoj podlozi riječ je u boji Deer, bez crte */
.custom .hl, .sec--ink .hl { color: var(--deer-light); background: none; }
@media (prefers-reduced-motion: no-preference) {
  .io .hl { background-size: 0 0.3em; transition: background-size 1.2s var(--ease-out) 0.45s; }
  .io .is-in .hl { background-size: 100% 0.3em; }
}

/* Obojeni odjeljci: papir, pijesak i tamni, da stranica ima ritam */
.sec--sand, .howto--sand, .cta--sand { background: var(--sand); }
.sec--ink { background: var(--ink); color: #fff; }
.sec--ink .sec__index { color: var(--deer-light); }
.sec--ink .sec__lead { color: #c3c9cc; }
.sec.sec--sand, .sec.sec--ink, .sec--sand + .sec, .sec--ink + .sec { padding-top: 72px; }
.howto--sand .chapter__top { border-color: rgba(74, 83, 87, 0.16); }

/* Tri koraka na tamnoj podlozi: veliki brojevi u boji Deer */
.trio { display: grid; margin: 34px 0 0; padding: 0; list-style: none; }
.trio__item { padding-block: 22px 26px; border-top: 1px solid var(--rule-dark); }
.trio__num {
  display: block;
  font-size: clamp(3.5rem, 16vw, 5rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--deer-light);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .trio__num {
    background: linear-gradient(160deg, #ecd3b8, var(--deer-light) 35%, var(--deer) 80%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.trio__text { margin-top: 14px; max-width: 30ch; font-size: 1.125rem; font-weight: 300; line-height: 1.5; color: #d5dadc; }

/* Gumbi: kratki odsjaj preko gumba kad se miš stavi na njega */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.26) 50%, transparent 70%);
  transform: translateX(-110%);
  pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn::after { transition: transform 0.85s var(--ease-out); }
  .btn:hover::after { transform: translateX(110%); }
}

@media (min-width: 1200px) {
  .mods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mod { padding: 28px 26px 30px; }
}
@media (min-width: 960px) {
  .sec.sec--sand, .sec.sec--ink, .sec--sand + .sec, .sec--ink + .sec { padding-top: 120px; }
  .howto--sand { padding-bottom: 24px; }
  .howto--sand .howto__stage { background: var(--paper); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); margin-top: 60px; }
  .trio__item { padding-block: 30px 0; }
  .trio__num { font-size: clamp(5rem, 8vw, 8rem); }
  .trio__text { font-size: 1.25rem; }
}

/* PRESSO „Kako radi”: na većem ekranu tri koraka u redu, slike manje, tanka strelica između */
@media (min-width: 760px) {
  .how .sec__index, .how .sec__title { text-align: center; margin-inline: auto; }
  .how__list { --gap: clamp(36px, 5vw, 76px); grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); max-width: 1040px; margin: 52px auto 0; }
  .how__item { grid-template-columns: none; align-content: start; align-items: start; }
  .how__body { text-align: center; }
  .how__text { margin-inline: auto; }
  .how__num { left: 16px; top: 16px; width: 46px; height: 46px; box-shadow: none; font-size: 1.25rem; }
  .how__body { margin-top: 22px; }
  .how__title { font-size: clamp(1.375rem, 2.1vw, 1.75rem); }
  .how__text { font-size: 1.0625rem; }
  .how__item:not(:last-child) .how__fig::after {
    content: "";
    position: absolute; top: 50%; left: calc(100% + 12px);
    width: calc(var(--gap) - 24px); height: 12px;
    transform: translateY(-50%);
    background:
      linear-gradient(var(--deer), var(--deer)) left center / calc(100% - 2px) 1.5px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2 1l6 5-6 5' fill='none' stroke='%23ba855a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 10px 12px no-repeat;
  }
}

/* ======================================================================
   Stranica ne postoji (404.html): isti tamni naslovni dio kao podstranice
   ====================================================================== */
.nf__code {
  margin: 0; order: -1;
  font-size: clamp(6rem, 34vw, 11rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(215, 177, 140, 0.55);
  -webkit-user-select: none; user-select: none;
}
.nf__title { margin-top: 8px; font-size: clamp(2.25rem, 9vw, 4.25rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
@media (min-width: 960px) {
  .nf__code { order: 0; justify-self: center; font-size: clamp(12rem, 21vw, 19rem); }
}

/* ======================================================================
   Kolačići (Rocco 19. 11.): mala kartica dolje. „Odbij” i „Prihvati” su isti gumb,
   iste veličine i boje, jedan do drugoga (AZOP: jednako lako prihvatiti i odbiti).
   Karticu slaže site.js; bez JavaScripta je nema, kao ni kolačića.
   ====================================================================== */
.kolacici {
  position: fixed; z-index: 35;
  left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: grid; gap: 16px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(7, 11, 15, 0.1), 0 28px 56px -18px rgba(7, 11, 15, 0.55), 0 8px 18px -8px rgba(7, 11, 15, 0.25);
}
.kolacici[hidden] { display: none; }
.kolacici__naslov { font-size: 1.0625rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.kolacici__naslov::after { content: "."; color: var(--deer); }
.kolacici__tekst { margin-top: 6px; font-size: 0.875rem; line-height: 1.5; color: var(--granite); }
.kolacici__tekst a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--deer); text-decoration-thickness: 1.5px; text-underline-offset: 4px; white-space: nowrap; }
.kolacici__tekst a:hover { text-decoration-color: currentColor; }
.kolacici__stanje { display: block; margin-top: 6px; font-weight: 500; color: var(--deer-ink); }
.kolacici__gumbi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kolacici__gumb {
  height: 48px; padding: 0 16px;
  border: 0; border-radius: 12px;
  background: var(--ink); color: #fff;
  font: 500 0.9375rem/1 var(--font);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.kolacici__gumb:hover { background: #222a2f; }
.kolacici__gumb:focus-visible, .kolacici__tekst a:focus-visible { outline: 2px solid var(--deer); outline-offset: 2px; }
@media (min-width: 600px) {
  .kolacici { left: 24px; right: auto; bottom: 24px; width: 408px; padding: 24px 24px 22px; border-radius: 20px; }
}
/* Položen mobitel: niska kartica, tekst lijevo, gumbi desno (da ne uzme pola zaslona) */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  .kolacici {
    left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: 12px;
    width: auto; max-width: 760px;
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
    padding: 14px 18px;
  }
  .kolacici__gumbi { grid-template-columns: repeat(2, 116px); }
  .kolacici__gumb { height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .kolacici { animation: kolacici-gore 0.6s var(--ease-out) both; }
}
@keyframes kolacici-gore { from { opacity: 0; transform: translateY(14px); } }
@media print { .kolacici { display: none; } }

/* ======================================================================
   Privatnost i kolačići (privatnost/index.html): tamni naslovni dio kao na
   podstranicama, ispod tekst na papiru u jednom uskom stupcu
   ====================================================================== */
.pravo { padding-block: 56px 72px; }
.pravo__inner { max-width: 760px; }
.pravo__datum { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--deer-ink); }
.pravo h2 { margin-top: 44px; font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.pravo__datum + h2 { margin-top: 18px; }
.pravo p, .pravo li, .pravo td, .pravo th { font-size: 1rem; line-height: 1.6; color: var(--granite); }
.pravo p { margin-top: 12px; }
.pravo ul { margin: 12px 0 0; padding-left: 1.15em; list-style: disc; }
.pravo li + li { margin-top: 6px; }
.pravo li::marker { color: var(--deer); }
.pravo strong { font-weight: 600; color: var(--ink); }
.pravo a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--deer); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.pravo a:hover { text-decoration-color: currentColor; }
.pravo code { font: inherit; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pravo table { width: 100%; margin-top: 18px; border-collapse: collapse; }
.pravo th, .pravo td { padding: 12px 14px 12px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 0.9375rem; }
.pravo th { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--granite-soft); border-top: 0; padding-top: 0; }
.pravo td:last-child, .pravo th:last-child { padding-right: 0; white-space: nowrap; }
.pravo tr:last-child td { border-bottom: 1px solid var(--rule); }
.pravo .btn { margin-top: 18px; border: 0; cursor: pointer; font-family: var(--font); }
.pravo .btn[hidden] { display: none; }
@media (min-width: 960px) {
  .pravo { padding-block: 88px 112px; }
  .pravo h2 { margin-top: 56px; font-size: 1.625rem; }
  .pravo p, .pravo li { font-size: 1.0625rem; }
}

/* Kratki tamni naslovni dio (stranica s pravilima): jedan stupac, bez slike i bez visine cijelog zaslona */
.phero--kratko .phero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 10px 48px; }
.phero--kratko .phero__lead { max-width: 40ch; }
@media (min-width: 960px) {
  .phero--kratko .phero__grid { padding-block: 24px 80px; }
}
