/* ==========================================================================
   Mentoro – dizajnerski sustav
   Smjer: "akademski rukopis" – serifni naslovi, tanke zlatne linije,
   sadržaj (TOC) kao glavni motiv, oštri rubovi, tamnoplava + zlatna.
   ========================================================================== */

@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/crimson-pro-latin.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: "Crimson Pro"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/crimson-pro-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/crimson-pro-italic-latin.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: "Crimson Pro"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/crimson-pro-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/jost-latin.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: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/jost-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* boje (kontrast provjeren na --paper i --ink) */
  --ink: #0e1e3a;          /* tamnoplava – tekst, tamne površine */
  --ink-2: #1a2c50;
  --ink-soft: #46536b;     /* sekundarni tekst, 7,3:1 na papiru */
  --paper: #f6f3ec;
  --paper-2: #ece6d9;
  --sheet: #fffdf8;        /* kartice, polja forme */
  --gold: #b38b4a;         /* samo dekoracija i linije */
  --gold-text: #7a5a21;    /* zlatni tekst na papiru i papiru-2, ≥4,5:1 */
  --gold-light: #d2ae6d;   /* zlatni tekst na tamnoplavoj, 7,9:1 */
  --ivory: #f4efe6;
  --line: rgb(14 30 58 / 0.14);
  --line-strong: rgb(14 30 58 / 0.32);
  --error: #a4262c;
  --success: #1f6b45;

  --font-serif: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Jost", "Century Gothic", "Segoe UI", sans-serif;

  /* razmaci – 8pt ritam */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem; --s-7: 6rem;
  --section: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 72rem;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.5rem;
}

/* ---------- osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 var(--s-2); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; margin: 0 0 var(--s-2); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
p { text-wrap: pretty; }
strong { font-weight: 500; }
::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.section--ink :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--gold-light); }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: var(--s-2); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 0.75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- tipografski elementi ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: var(--s-2);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.section--ink .eyebrow, .cta-band .eyebrow { color: var(--gold-light); }
.accent { color: var(--gold-text); }
.section--ink .accent, .cta-band .accent { color: var(--gold-light); }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 40rem; }
.section--ink .lead { color: rgb(244 239 230 / 0.82); }
.rule { width: 4.5rem; height: 1px; border: 0; background: var(--gold); margin: var(--s-3) 0; }
.motto {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
.small { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- gumbi ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.6rem; border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 0.9rem/1.2 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--gold { --btn-bg: var(--gold-light); --btn-fg: var(--ink); --btn-bd: var(--gold-light); }
.btn--gold::after { background: var(--ivory); }
.btn--small { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.text-link {
  display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: currentColor; }

/* ---------- zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgb(246 243 236 / 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgb(246 243 236 / 0.85); backdrop-filter: blur(10px); } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); padding-block: 0.4rem; }
.brand__mark { width: 2.75rem; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; margin-right: -0.3em; }
.brand__sub { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.35rem; }

.nav-toggle { display: none; }
.site-nav { width: 100%; }
.site-nav__list { list-style: none; margin: 0; padding: 0 0 var(--s-2); display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a:not(.btn) {
  display: inline-block; padding: 0.6rem 0; text-decoration: none; font-size: 0.95rem; font-weight: 500;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left calc(100% - 0.35rem) / 0 1px;
  transition: background-size 0.3s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { background-size: 100% 1px; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--gold-text); }

/* JS: sklopivi izbornik na mobitelu */
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 0.25rem 0 0.75rem;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink);
  font: 500 0.78rem/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.js .nav-toggle__label { padding-right: 0.6rem; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.1rem; height: 1px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.js .site-nav { display: none; }
.js .site-header.is-open .site-nav { display: block; }
.js .site-header.is-open .site-nav__list { flex-direction: column; gap: 0; padding-bottom: var(--s-3); }
.js .site-header.is-open .site-nav__list li:not(.site-nav__cta) { border-bottom: 1px solid var(--line); }
.js .site-header.is-open .site-nav a:not(.btn) { display: block; padding: 0.9rem 0; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; background: none; }
.site-nav__cta { margin-top: var(--s-2); }

@media (min-width: 62rem) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .js .nav-toggle { display: none; }
  .site-nav__list { padding: 0; align-items: center; gap: 0 1.6rem; }
  .site-nav__cta { margin: 0 0 0 0.5rem; }
}

/* ---------- sekcije ---------- */
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section-head { max-width: 46rem; margin-bottom: var(--s-5); }
.section-head--split { display: grid; gap: var(--s-3); max-width: none; }
@media (min-width: 62rem) { .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; } .section-head--split .lead { margin-bottom: 0.5rem; } }

/* ---------- naslovna: hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem); }
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
.hero__copy h1 { margin-bottom: var(--s-3); }
.hero__copy .lead { margin-bottom: var(--s-4); }
.hero__note { margin-top: var(--s-4); display: flex; gap: 0.75rem; align-items: center; color: var(--ink-soft); font-size: 0.95rem; }
.hero__note svg { flex: none; width: 1.5rem; color: var(--gold); }
.hero__arc { position: absolute; z-index: 0; pointer-events: none; color: var(--gold); opacity: 0.45; width: 130%; right: -40%; top: 38%; max-width: none; }
.hero__grid > * { position: relative; z-index: 1; }
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-6); }
  .hero__arc { width: 70%; right: -8%; top: -6%; opacity: 0.9; }
}

/* "bilježnica" sa fazama rada */
.notebook {
  position: relative; background: var(--sheet); border: 1px solid var(--line); padding: var(--s-4) var(--s-4) var(--s-3) calc(var(--s-4) + 1.25rem);
  box-shadow: 0 1px 0 var(--line), 18px 22px 0 -1px var(--paper-2), 18px 22px 0 0 var(--line);
  max-width: 26rem; margin-inline: auto; transform: rotate(-1.5deg);
}
.notebook::before { /* rubna crta */
  content: ""; position: absolute; top: 0; bottom: 0; left: 1.6rem; width: 1px; background: rgb(179 139 74 / 0.55);
}
.notebook__title { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--s-2); }
.notebook__list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.notebook__list li {
  counter-increment: step; display: flex; gap: 0.9rem; align-items: baseline;
  font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; line-height: 1.2; padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.notebook__list li::before { content: counter(step) "."; font-style: normal; font-size: 1rem; color: var(--gold-text); min-width: 1.2rem; font-family: var(--font-sans); font-weight: 500; }
.notebook__foot { margin: var(--s-3) 0 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- za koga ---------- */
.audience { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.audience__item { background: var(--paper); padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: var(--s-2); align-content: start; }
.audience__num { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1; color: var(--gold); font-weight: 400; }
.audience__item h3 { margin: 0; }
.audience__item ul { margin: 0; padding: 0; list-style: none; }
.audience__item li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; }
.audience__item li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.7rem; height: 1px; background: var(--gold); }
@media (min-width: 48rem) { .audience { grid-template-columns: 1fr 1fr; } }

/* ---------- sadržaj (TOC) – usluge i cjenik ---------- */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.toc__item { border-bottom: 1px solid var(--line); }
.toc__row {
  display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem; padding: var(--s-3) 0; text-decoration: none; color: inherit;
  position: relative;
}
.toc__num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-text); line-height: 1.2; grid-row: span 3; }
.toc__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); font-weight: 600; line-height: 1.15; }
.toc__desc { color: var(--ink-soft); font-size: 0.98rem; max-width: 38rem; }
.toc__price { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.toc__price small { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-left: 0.35rem; }
.toc__head { display: grid; gap: 0.3rem; }
.toc__leader { display: none; }
a.toc__row .toc__title { transition: color 0.25s var(--ease); }
a.toc__row:hover .toc__title { color: var(--gold-text); }
a.toc__row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
a.toc__row:hover::after { transform: scaleX(1); }
@media (min-width: 48rem) {
  .toc__row { grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: baseline; column-gap: 1.25rem; }
  .toc__num { grid-row: span 2; font-size: 1.75rem; }
  .toc__head { grid-column: 2 / 4; display: flex; align-items: baseline; gap: 1rem; }
  .toc__leader { display: block; flex: 1; border-bottom: 2px dotted var(--line-strong); transform: translateY(-0.35rem); min-width: 2rem; }
  .toc__desc { grid-column: 2 / 3; }
}

/* ---------- načela ---------- */
.principles { display: grid; gap: var(--s-5); }
.principle { display: grid; gap: var(--s-2); align-content: start; }
.principle__icon { width: 3.5rem; height: 3.5rem; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); }
.section:not(.section--ink) .principle__icon { color: var(--gold-text); }
.principle__icon svg { width: 1.6rem; height: 1.6rem; }
.principle h3 { margin: 0; }
.principle p { margin: 0; color: rgb(244 239 230 / 0.8); }
.section:not(.section--ink) .principle p { color: var(--ink-soft); }
@media (min-width: 48rem) { .principles { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
.statement {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.15; font-weight: 500;
  max-width: 52rem; margin-bottom: var(--s-6);
}

/* ---------- koraci ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: "0" counter(s); position: absolute; top: -0.85rem; left: 0; padding-right: 0.75rem; background: var(--paper);
  font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.2; color: var(--gold-text);
}
.section--alt .steps li::before { background: var(--paper-2); }
.steps h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }

/* ---------- priručnik – blok na naslovnoj ---------- */
.feature { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 62rem) { .feature { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-6); } .feature--rev > :first-child { order: 2; } }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: 0.5rem; }
/* kvačica je apsolutno pozicionirana, pa stavka može sadržavati i <strong>, poveznice i sl. */
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.45rem; width: 0.9rem; height: 0.5rem;
  border-left: 1.5px solid var(--gold-text); border-bottom: 1.5px solid var(--gold-text);
  transform: rotate(-45deg);
}
.section--ink .checklist li::before { border-color: var(--gold-light); }
@media (min-width: 48rem) { .checklist--cols { grid-template-columns: 1fr 1fr; column-gap: var(--s-4); } }

/* ---------- 3D knjiga ---------- */
.book-stage {
  --w: min(17.5rem, 64vw);
  perspective: 1800px; display: grid; place-items: center; padding: var(--s-5) 0 var(--s-4);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; position: relative;
}
.book-stage:active { cursor: grabbing; }
.book-stage--large { --w: min(20rem, 68vw); }
.book-stage::after { /* sjena na podlozi */
  content: ""; position: absolute; bottom: calc(var(--s-4) - 1.25rem); left: 50%; width: calc(var(--w) * 1.1); height: 1.6rem;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgb(14 30 58 / 0.28), transparent); z-index: -1;
}
.book {
  --h: calc(var(--w) * 1.4); --t: calc(var(--w) * 0.12);
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, -6deg)) rotateY(var(--ry, 28deg));
  transition: transform 0.9s var(--ease);
}
.book.is-dragging { transition: none; }
.book__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.book__front { transform: translateZ(calc(var(--t) / 2)); border-radius: 0 3px 3px 0; }
.book__back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); border-radius: 3px 0 0 3px; }
.book__spine { width: var(--t); left: calc((var(--w) - var(--t)) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.book__pages { width: calc(var(--t) - 4px); left: calc((var(--w) - var(--t)) / 2 + 2px); top: 3px; bottom: 3px; height: auto;
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f3eee3 0 1px, #fffdf7 1px 3px); box-shadow: inset 0 0 6px rgb(0 0 0 / 0.12); }
.book__top, .book__bottom { width: calc(var(--w) - 4px); height: calc(var(--t) - 4px); top: calc((var(--h) - var(--t)) / 2 + 2px); left: 0;
  background: repeating-linear-gradient(0deg, #f3eee3 0 1px, #fffdf7 1px 3px); }
.book__top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px)); }
.book__bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 3px)); }

.cover {
  position: absolute; inset: 0; background: var(--sheet); color: var(--ink); text-align: center;
  display: flex; flex-direction: column; align-items: center; padding: calc(var(--w) * 0.09) calc(var(--w) * 0.08) 0;
  box-shadow: inset 6px 0 10px -6px rgb(0 0 0 / 0.25);
}
.cover::before { /* hrbat na prednjoj strani */
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 0.05); background: var(--ink);
}
.cover__mark { width: calc(var(--w) * 0.22); margin-bottom: calc(var(--w) * 0.015); }
.cover__brand { font-family: var(--font-serif); font-size: calc(var(--w) * 0.06); letter-spacing: 0.32em; margin: 0 -0.32em calc(var(--w) * 0.075) 0; line-height: 1; }
.cover__kicker { font-family: var(--font-serif); font-weight: 600; font-size: calc(var(--w) * 0.058); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 calc(var(--w) * 0.02); line-height: 1.1; }
.cover__title { font-family: var(--font-serif); font-weight: 700; font-size: calc(var(--w) * 0.098); line-height: 1.02; text-transform: uppercase; color: var(--gold-text); margin: 0 0 calc(var(--w) * 0.03); letter-spacing: 0.01em; }
.cover__sub { font-family: var(--font-serif); font-style: italic; font-size: calc(var(--w) * 0.058); margin: 0; line-height: 1.2; }
.cover__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.book__back { background: var(--ink); color: var(--ivory); }
.back-cover { position: absolute; inset: 0; padding: calc(var(--w) * 0.1) calc(var(--w) * 0.09); display: flex; flex-direction: column; gap: calc(var(--w) * 0.04); }
.back-cover p { font-size: calc(var(--w) * 0.045); line-height: 1.45; margin: 0; color: rgb(244 239 230 / 0.88); }
.back-cover ul { margin: 0; padding: 0; list-style: none; font-size: calc(var(--w) * 0.042); line-height: 1.4; }
.back-cover li { padding: calc(var(--w) * 0.012) 0 calc(var(--w) * 0.012) calc(var(--w) * 0.05); position: relative; }
.back-cover li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: calc(var(--w) * 0.025); height: 1px; background: var(--gold-light); }
.back-cover__title { font-family: var(--font-serif); font-size: calc(var(--w) * 0.075) !important; line-height: 1.1 !important; color: var(--gold-light) !important; }
.back-cover img { width: calc(var(--w) * 0.38); margin-top: auto; align-self: center; }
.book__spine { background: var(--ink); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.book__spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-serif); font-size: calc(var(--w) * 0.05); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }

.book-controls { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: var(--s-2); }
.book-controls button {
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent;
  font: 500 0.78rem/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.book-controls button:hover { border-color: var(--ink); background: var(--sheet); }
@media (max-width: 30rem) {
  .book-controls { gap: 0.35rem; }
  .book-controls button { padding: 0 0.6rem; letter-spacing: 0.06em; }
}
.book-hint { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin: var(--s-1) 0 0; }
.no-js .book-controls, .no-js .book-hint { display: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-2); align-items: baseline;
  padding: var(--s-3) 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); font-weight: 600; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--font-sans); font-weight: 300; font-size: 1.75rem; line-height: 1; color: var(--gold-text);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-text); }
.faq__body { padding: 0 0 var(--s-3); color: var(--ink-soft); max-width: 44rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- CTA traka ---------- */
.cta-band { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta-band__inner { display: grid; gap: var(--s-4); position: relative; z-index: 1; }
.cta-band h2 { margin: 0; max-width: 34rem; }
.cta-band p { color: rgb(244 239 230 / 0.82); margin: 0; max-width: 34rem; }
.cta-band a:not(.btn) { color: var(--gold-light); }
.cta-band__arc { position: absolute; color: var(--gold); width: 90%; left: 40%; top: -20%; opacity: 0.5; pointer-events: none; max-width: none; }
.cta-band__star { position: absolute; color: var(--gold-light); width: 1.5rem; right: 6%; top: 14%; }
@media (min-width: 62rem) { .cta-band__inner { grid-template-columns: 1.3fr auto; align-items: end; } }

/* ---------- podstranice ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4rem); max-width: 50rem; }
.page-hero .lead { margin-bottom: 0; }
.page-hero__arc { position: absolute; color: var(--gold); width: 60%; right: -18%; top: -40%; opacity: 0.55; pointer-events: none; max-width: none; z-index: -1; }
.page-hero { isolation: isolate; }
/* cijena i poziv na akciju u zaglavlju usluge – samo na mobitelu/tabletu (na desktopu je kartica uz tekst) */
.hero-price {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2);
  margin-top: var(--s-4); padding: var(--s-2) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-price p { margin: 0; color: var(--ink-soft); }
.hero-price strong { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin-right: 0.35rem; }
@media (min-width: 62rem) { .hero-price { display: none; } }
.breadcrumb ol { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--gold); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.layout-aside { display: grid; gap: var(--s-5); }
@media (min-width: 62rem) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--s-6); align-items: start; }
  .layout-aside > aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-4); font-size: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--gold-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-3); font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; }
.table-scroll { overflow-x: auto; }

.price-card { background: var(--sheet); border: 1px solid var(--line); padding: var(--s-4); position: relative; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--ink); }
.price-card__label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.25rem; }
.price-card__price { font-family: var(--font-serif); font-size: 3rem; font-weight: 600; line-height: 1; margin-bottom: 0.25rem; }
.price-card__unit { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: var(--s-3); }
.price-card .btn { width: 100%; }
.price-card__note { font-size: 0.8rem; color: var(--ink-soft); margin: var(--s-2) 0 0; }

.figure { margin: 0 0 var(--s-5); }
aside .figure { margin: var(--s-4) 0 0; }
.figure img { width: 100%; border: 1px solid var(--line); }
.figure figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: var(--s-1); }

.quote {
  margin: var(--s-5) 0; padding: var(--s-3) 0 var(--s-3) var(--s-4); position: relative;
  font-family: var(--font-serif); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); line-height: 1.25; font-style: italic;
}
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--gold); }

.callout { border: 1px solid var(--gold); padding: var(--s-3); margin: var(--s-4) 0; background: var(--sheet); }
.callout__title { font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold-text); margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }

/* kartice usluga (stranica /usluge/) */
.cards { display: grid; gap: var(--s-4); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color 0.3s var(--ease); }
.card:hover { border-color: var(--ink); }
.card__media { aspect-ratio: 5 / 4; overflow: hidden; border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__num { font-family: var(--font-serif); color: var(--gold-text); font-size: 1.1rem; }
.card h2, .card h3 { font-size: 1.5rem; margin: 0; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.card__foot { margin-top: auto; padding-top: var(--s-2); display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); }
.card__price { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; }
.card__more { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }

/* podaci o obrtu */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 0; }
.facts dt { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2rem; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.6rem; } }

/* ---------- forma ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--s-6); } }
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 500; font-size: 0.95rem; }
.field .req { color: var(--gold-text); }
.field__hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--ink-soft); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-position: right 1.15rem center, right 0.8rem center; background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.field select option { background: var(--sheet); color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.contact-aside address { font-style: normal; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(179 139 74 / 0.45); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.88rem; font-weight: 500; margin: 0; display: none; }
.field__error:not(:empty) { display: block; }
.field__error:not(:empty)::before { content: "! "; }
.form-row { display: grid; gap: var(--s-3); }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.form__status { padding: var(--s-2) var(--s-3); border: 1px solid; display: none; }
.form__status.is-success { display: block; border-color: var(--success); color: var(--success); background: rgb(31 107 69 / 0.06); }
.form__status.is-error { display: block; border-color: var(--error); color: var(--error); background: rgb(164 38 44 / 0.05); }
.form__status a { color: inherit; }
.form [type="submit"][disabled] { opacity: 0.6; cursor: progress; }
.counter { font-size: 0.8rem; color: var(--ink-soft); text-align: right; margin: 0; }
.contact-aside { display: grid; gap: var(--s-4); align-content: start; }
.contact-aside h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-mail { font-family: var(--font-serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); word-break: break-word; }

/* ---------- podnožje ---------- */
.site-footer { background: var(--ink); color: rgb(244 239 230 / 0.82); padding-top: var(--s-6); font-size: 0.95rem; }
.site-footer a { color: var(--ivory); text-decoration-color: rgb(210 174 109 / 0.6); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__grid { display: grid; gap: var(--s-5); padding-bottom: var(--s-5); }
.site-footer__brand img { width: 11rem; }
.site-footer__motto { margin-top: var(--s-2); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); }
.site-footer__title { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer ul a { display: inline-block; padding: 0.3rem 0; text-decoration: none; }
.site-footer address { font-style: normal; margin-bottom: var(--s-3); line-height: 1.7; }
.site-footer__mail { font-family: var(--font-serif); font-size: 1.2rem; }
.site-footer__bottom { border-top: 1px solid rgb(244 239 230 / 0.14); padding-block: var(--s-3); display: grid; gap: 0.25rem; font-size: 0.82rem; color: rgb(244 239 230 / 0.7); }
.site-footer__bottom p { margin: 0; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .site-footer__grid { grid-template-columns: 1.1fr 1fr 1fr 1.2fr; }
  .site-footer__bottom { grid-template-columns: 1fr auto; }
}

/* ---------- dekoracije ---------- */
.arc path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.star { fill: currentColor; }

/* ---------- animacije pojavljivanja (samo uz JS i bez reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .notebook__list li { opacity: 0; transform: translateX(-8px); animation: write 0.6s var(--ease) forwards; animation-delay: calc(0.35s + var(--i, 0) * 0.09s); }
  .notebook__list li:nth-child(2) { --i: 1; } .notebook__list li:nth-child(3) { --i: 2; } .notebook__list li:nth-child(4) { --i: 3; }
  .notebook__list li:nth-child(5) { --i: 4; } .notebook__list li:nth-child(6) { --i: 5; } .notebook__list li:nth-child(7) { --i: 6; }
  .notebook__list li:nth-child(8) { --i: 7; }
  .d1 { --d: 0.08s; } .d2 { --d: 0.16s; } .d3 { --d: 0.24s; } .d4 { --d: 0.32s; }
  .hero__arc path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s 0.2s var(--ease) forwards; }
  .rise { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes write { to { opacity: 1; transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- ispis ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .book-controls, .skip-link { display: none !important; }
  body { background: #fff; }
}
