/* ==========================================================
   GFK Studio — glavni stil
   Boje: bijela, tamnoplava (ink), kobaltno plava (accent)
   ========================================================== */

/* Font Onest s vlastitog servera (bez Google Fonts, zbog GDPR-a). Licenca: assets/fonts/OFL.txt */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg: #f8f6f1;
  --bg-soft: #efebe3;
  --ink: #0b1b33;
  --ink-2: #26364d;
  --muted: #5b6b82;
  --line: #e4ded3;
  --line-strong: #d3ccbf;
  --accent: #1f4fe0;
  --accent-hover: #1a42bd;
  --accent-soft: #e6ebfa;
  --on-dark: #ffffff;
  --on-dark-muted: #a9b6c9;
  --line-dark: rgba(255, 255, 255, .12);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografija ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  letter-spacing: .02em;
}
.label::before { content: ''; width: 18px; height: 1px; background: currentColor; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { border-color: var(--line-dark); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: .94rem; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent); }
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(248, 246, 241, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.logo img { height: 54px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .96rem; font-weight: 450; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.main-nav a:hover, .nav-drop > button:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: -12px;
  width: 340px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(11, 27, 51, .18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-drop.open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); }
.drop-menu a strong { display: block; font-weight: 500; color: var(--ink); font-size: .96rem; }
.drop-menu a span { display: block; font-size: .85rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: .94rem; font-weight: 500; color: var(--ink-2); }
.header-phone:hover { color: var(--accent); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
.mobile-menu nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 500; }
.mobile-menu .mobile-sub a { font-size: 1rem; font-weight: 400; color: var(--ink-2); padding: 11px 0 11px 16px; }
.mobile-menu .btn { margin-top: 28px; width: 100%; }
.mobile-menu .mobile-contact { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.mobile-menu .mobile-contact a { color: var(--ink); font-weight: 500; }

/* ---------- Sekcije ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--on-dark-muted); }

.section-head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head .label { margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-dark .label { color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .label { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .typed-wrap { display: block; color: var(--accent); white-space: nowrap; }
.typed-caret {
  display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -.06em;
  background: var(--accent); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero .lead { max-width: 52ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.hero-showcase { position: relative; }
.hero-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 22px; font-size: .9rem; color: var(--muted);
}
.hero-caption strong { color: var(--ink); font-weight: 500; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button {
  width: 22px; height: 4px; border: 0; border-radius: 2px; background: var(--line-strong); cursor: pointer; padding: 0;
  transition: background .25s, width .25s;
}
.hero-dots button.active { background: var(--accent); width: 34px; }

/* ---------- Uređaji (monitor + mobitel) ---------- */
.device-monitor { position: relative; }
.monitor-frame {
  background: #11161f; border-radius: 14px; padding: 10px 10px 0;
  box-shadow: 0 30px 60px -30px rgba(11, 27, 51, .45);
}
.monitor-bar { display: flex; gap: 6px; padding: 2px 4px 10px; }
.monitor-bar i { width: 8px; height: 8px; border-radius: 50%; background: #39414f; }
.screen {
  position: relative; overflow: hidden; background: #fff;
  aspect-ratio: 16 / 10; border-radius: 4px 4px 0 0;
}
.screen img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  transform: translateY(0);
  will-change: transform;
}
.screen.scrolling img { animation: screen-scroll var(--dur, 30s) ease-in-out infinite alternate; }
@keyframes screen-scroll {
  0%, 6% { transform: translateY(0); }
  94%, 100% { transform: translateY(var(--dist, 0)); }
}
.screen.is-paused img { animation-play-state: paused; }
.monitor-chin { height: 22px; background: #11161f; border-radius: 0 0 14px 14px; margin: 0 0 0; }
.monitor-stand { width: 22%; height: 34px; margin: 0 auto; background: linear-gradient(#d5dbe3, #c4ccd7); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor-base { width: 36%; height: 8px; margin: 0 auto; background: #c4ccd7; border-radius: 4px 4px 2px 2px; }

.hero-showcase .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-showcase .slide.active { opacity: 1; position: relative; }
.hero-showcase .slides { position: relative; }

.device-phone {
  position: absolute; right: -4%; bottom: 8%; width: 23%;
  background: #11161f; border-radius: 26px; padding: 7px;
  box-shadow: 0 24px 50px -20px rgba(11, 27, 51, .5);
}
.device-phone .screen { aspect-ratio: 9 / 19.5; border-radius: 20px; }

/* ---------- Klijenti ---------- */
.clients { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px 48px; }
.clients-stat { display: flex; align-items: center; gap: 16px; padding-right: 48px; border-right: 1px solid var(--line); }
.clients-stat strong { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.clients-stat span { font-size: .92rem; color: var(--muted); max-width: 17ch; line-height: 1.4; }
.logo-row { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px 28px; flex-wrap: nowrap; }
.logo-row img { width: auto; height: 40px; opacity: .6; transition: opacity .25s; }
.logo-row img:hover { opacity: 1; }
.logo-row .logo-optimail { height: 20px; }
.logo-row .logo-bodylab { height: 54px; }
.logo-row .logo-apex { height: 50px; }
.logo-row .logo-gfkmont { height: 42px; }
.logo-row .logo-euromajstor { height: 32px; }
.logo-row .logo-improve { height: 32px; }

/* ---------- Usluge ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 32px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff; transition: background .25s;
}
.service:hover { background: var(--bg-soft); }
.service-num { font-size: .85rem; color: var(--muted); margin-bottom: 40px; font-variant-numeric: tabular-nums; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--muted); font-size: .98rem; margin-bottom: 20px; }
.service ul { list-style: none; margin-bottom: 28px; }
.service li { font-size: .93rem; color: var(--ink-2); padding: 6px 0; border-top: 1px dashed var(--line); }
.service-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.service-price { font-size: .92rem; color: var(--muted); }
.service-price strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.service-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s;
}
.service-arrow svg { width: 16px; height: 16px; }
.service:hover .service-arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
.service .stretched::after { content: ''; position: absolute; inset: 0; }
.service-new { position: absolute; top: 34px; right: 32px; font-size: .75rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 20px; }

/* ---------- Radovi ---------- */
.work-list { display: grid; gap: clamp(72px, 9vw, 120px); }
.work {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.work:nth-child(even) .work-visual { order: 2; }
.work-visual { position: relative; padding-right: 7%; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: .8rem; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.work h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.work .work-place { color: var(--muted); margin-bottom: 24px; }
.work dl { display: grid; gap: 18px; margin-bottom: 32px; }
.work dt { font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.work dd { color: var(--ink-2); }

.work-more-line { margin-top: clamp(56px, 7vw, 88px); padding-top: 32px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: 1.05rem; }
.work-more-line .text-link { margin-left: 6px; }

/* ---------- Proces ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.process-track { position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--line-dark); }
.process-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: #7f9cff; will-change: transform; }
.step { position: relative; padding-top: 64px; }
.step-dot {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 600;
  background: var(--ink); border: 2px solid var(--line-dark); color: var(--on-dark-muted);
  transition: background .35s, border-color .35s, color .35s;
}
.step.reached .step-dot { background: #7f9cff; border-color: #7f9cff; color: var(--ink); }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: .95rem; }
.step .step-time { display: block; margin-top: 14px; font-size: .82rem; color: #7f9cff; }

/* ---------- Cijene ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.plan.featured { border: 2px solid var(--accent); padding: 31px 27px; }
.plan-badge {
  position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 500; padding: 4px 12px; border-radius: 20px;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 6px; }
.plan .plan-for { font-size: .92rem; color: var(--muted); margin-bottom: 24px; min-height: 3.2em; }
.plan-price { font-size: .95rem; color: var(--muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-price strong { display: block; font-size: 2.3rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.plan-price small { font-size: .85rem; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.plan li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 28px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

/* Cjenik — tablice ostalih usluga */
.price-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.price-block:last-child { border-bottom: 1px solid var(--line); }
.price-block h3 { font-size: 1.5rem; margin-bottom: 10px; }
.price-block > div:first-child p { color: var(--muted); }
.price-rows { display: grid; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.price-row:first-child { padding-top: 0; }
.price-row span { color: var(--ink-2); }
.price-row span small { display: block; color: var(--muted); font-size: .88rem; }
.price-row strong { font-weight: 600; white-space: nowrap; }

/* ---------- O nama / zašto ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-text h2 { margin-bottom: 28px; }
.about-text p { margin-bottom: 18px; font-size: 1.06rem; }
.about-sign { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.about-sign strong { color: var(--ink); font-weight: 600; display: block; font-size: 1.05rem; }
.promises { display: grid; gap: 0; border-top: 1px solid var(--line); }
.promise { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.promise-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.promise-icon svg { width: 22px; height: 22px; }
.promise h3 { font-size: 1.08rem; margin-bottom: 4px; }
.promise p { font-size: .95rem; color: var(--muted); }

/* ---------- Blog kartice ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.post-cover {
  position: relative; aspect-ratio: 16 / 9; padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink); color: #fff; overflow: hidden;
}
.post-cover::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 36px solid rgba(127, 156, 255, .22);
}
.post-cover[data-tone="2"] { background: var(--accent); }
.post-cover[data-tone="2"]::after { border-color: rgba(255, 255, 255, .16); }
.post-cover[data-tone="3"] { background: #e8edf5; color: var(--ink); }
.post-cover[data-tone="3"]::after { border-color: rgba(31, 79, 224, .14); }
.post-cover .cover-cat { font-size: .8rem; font-weight: 500; opacity: .8; position: relative; z-index: 1; }
.post-cover .cover-title { position: relative; z-index: 1; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; max-width: 85%; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.post-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-body p { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.post-body .text-link { margin-top: auto; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); }
.faq-grid h2 { margin-bottom: 18px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.08rem; font-weight: 500; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; width: 14px; height: 14px; flex-shrink: 0;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); }
.contact-grid h2 { margin-bottom: 20px; }
.contact-grid .lead { color: var(--on-dark-muted); margin-bottom: 40px; }
.contact-ways { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-way { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); transition: color .2s; }
.contact-way span { color: var(--on-dark-muted); font-size: .9rem; }
.contact-way strong { font-weight: 500; font-size: 1.08rem; color: #fff; }
.contact-way:hover strong { color: #a9bdff; }
.contact-note { margin-top: 24px; font-size: .92rem; color: var(--on-dark-muted); display: flex; gap: 10px; align-items: center; }
.contact-note i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; flex-shrink: 0; }

.form-card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); color: var(--ink); }
.form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: 130px; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235b6b82' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: #d0342c; }
.field-error { display: none; font-size: .82rem; color: #d0342c; }
.field.has-error .field-error { display: block; }
.form-consent { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-card .btn { grid-column: 1 / -1; margin-top: 4px; }
.form-success { display: none; text-align: center; padding: 40px 8px; }
.form-success svg { width: 48px; height: 48px; color: #1f9d63; margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer .logo img { height: 64px; }
.footer-about p { color: var(--on-dark-muted); font-size: .95rem; max-width: 34ch; }
.site-footer p { color: var(--on-dark-muted); }
.site-footer h4 { color: #fff; font-size: .92rem; font-weight: 500; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul li, .site-footer ul a { font-size: .95rem; transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Podstranice ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .label { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); margin-bottom: 20px; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 28px; list-style: none; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--accent); }

/* Članak */
.article-wrap { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 72px; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(80px, 10vw, 120px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--muted); }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: 1.8rem; margin: 48px 0 16px; }
.prose h3 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose p { margin-bottom: 20px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 24px 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; color: var(--ink); font-size: 1.15rem; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--ink); color: #e7ecf5; padding: 20px; border-radius: var(--radius-sm); overflow-x: auto; margin: 0 0 24px; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-soft); }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.aside-card p { font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.blog-filters button { height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: .94rem; transition: all .2s; }
.blog-filters button:hover { border-color: var(--ink); }
.blog-filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Pravni tekst */
.legal { max-width: 760px; padding: clamp(48px, 7vw, 80px) 0 clamp(80px, 10vw, 120px); }
.legal h3 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal a { color: var(--accent); }
.legal .pp-meta { color: var(--muted); margin-bottom: 28px; }
.legal .pp-divider { height: 1px; background: var(--line); margin: 32px 0; }

/* CTA traka */
.cta-band { padding: clamp(56px, 8vw, 88px) 0; background: var(--accent); color: #fff; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: 12px; }
.cta-band .btn-light:hover { background: #fff; color: var(--accent); }

/* ---------- Kolačići ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 200; max-width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 20px 40px -16px rgba(11, 27, 51, .25);
  transform: translateY(calc(100% + 24px)); transition: transform .4s var(--ease);
}
.cookie.show { transform: none; }
.cookie p { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.cookie p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; }

/* ---------- Animacija pojave ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-showcase { max-width: 680px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .process { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .process-track { top: 0; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; }
  .process-fill { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { padding: 0 0 40px 68px; min-height: 40px; }
  .step:last-child { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .clients-inner { grid-template-columns: 1fr; }
  .logo-row { flex-wrap: wrap; justify-content: flex-start; gap: 24px 36px; }
  .clients-stat { border-right: 0; padding-right: 0; }
  .article-wrap { grid-template-columns: 1fr; gap: 48px; }
  .article-aside { position: static; }
}
@media (max-width: 860px) {
  .section-head, .about-grid, .faq-grid, .contact-grid, .price-block { grid-template-columns: 1fr; }
  .section-head { gap: 16px; }
  .price-block { gap: 24px; }
  .work, .work:nth-child(even) { grid-template-columns: 1fr; }
  .work:nth-child(even) .work-visual { order: 0; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .logo img { height: 46px; }
  .hero-cta .btn { width: 100%; }
  .services-grid, .pricing-grid, .blog-grid { grid-template-columns: 1fr; }
  .service { padding: 28px 22px; }
  .service-num { margin-bottom: 24px; }
  .service-new { top: 26px; right: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-row { justify-content: flex-start; gap: 24px 32px; }
  .logo-row img { height: 30px; }
  .logo-row .logo-optimail { height: 16px; }
  .logo-row .logo-bodylab { height: 40px; }
  .logo-row .logo-apex { height: 38px; }
  .logo-row .logo-gfkmont { height: 34px; }
  .logo-row .logo-euromajstor { height: 28px; }
  .logo-row .logo-improve { height: 26px; }
  .device-phone { width: 27%; right: -2%; }
  .faq-list details p { padding-right: 0; }
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Forma unutar tamne sekcije zadržava tamni tekst */
.section-dark .form-card h3 { color: var(--ink); }
.section-dark .form-card p { color: var(--muted); }
.contact-grid .label { margin-bottom: 18px; }

/* ---------- WhatsApp ---------- */
.header-chat { display: flex; gap: 4px; }
.chat-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.chat-icon svg { width: 21px; height: 21px; }
.chat-wa { color: #1faa53; }
.chat-wa:hover { background: #e9f8ef; }
.chat-viber { color: #7360f2; }
.chat-viber:hover { background: #f0eeff; }
.contact-way .with-icon { display: inline-flex; align-items: center; gap: 10px; }
.contact-way .with-icon svg { width: 20px; height: 20px; color: #3ddc97; }
.contact-way .with-icon.viber svg { color: #a99bff; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(11, 27, 51, .45);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* ---------- Stranice usluga ---------- */
.service-hero h1 { max-width: 20ch; }
.service-hero .hero-facts { margin-top: 40px; }
.features .service { padding-bottom: 36px; }
.features .service p { margin-bottom: 0; }
.process-4 { grid-template-columns: repeat(4, 1fr); }
.price-block.single { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 40px; }
.price-block.single:last-child { border-bottom: 1px solid var(--line); }
.price-block.after-plans { margin-top: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s var(--ease); }
.related-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.related-card > span:first-child { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.related-card p { color: var(--muted); }
.related-card .text-link { margin-top: auto; }
.mobile-label { display: block; padding: 14px 0 4px; font-size: .85rem; color: var(--muted); }
@media (max-width: 1080px) { .process-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
  .price-block.single { padding: 24px; }
}

/* ---------- Podaci o tvrtki, autor, 404 ---------- */
.footer-company { font-size: .82rem; line-height: 1.6; padding: 0 0 24px; color: var(--on-dark-muted); opacity: .85; }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.author-box img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.author-box p { font-size: .95rem; color: var(--muted); }
.author-box .author-name { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.not-found { border-bottom: 0; padding-bottom: clamp(80px, 10vw, 140px); }
.not-found-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ==========================================================
   Redizajn: motiv iz logotipa, ilustracije usluga, ritam
   ========================================================== */

/* Hero: plavi blok iza monitora i mali kvadrat, kao "piksel" iz znaka */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-showcase { isolation: isolate; }
.hero-showcase::before {
  content: ''; position: absolute; z-index: -1;
  left: 10%; right: -14%; top: -9%; bottom: 14%;
  background: var(--accent-soft); border-radius: 24px;
}
.hero-showcase::after {
  content: ''; position: absolute; z-index: -1;
  width: 56px; height: 56px; left: 3%; top: -5%;
  background: var(--accent); border-radius: 10px;
}

/* Kartice usluga s ilustracijom */
.service-num { margin-bottom: 14px; }
.svc-visual {
  position: relative; height: 150px; margin: -8px -8px 26px; border-radius: 12px;
  background: var(--bg-soft); display: grid; place-items: center; overflow: hidden;
  transition: background .25s;
}
.service:hover .svc-visual { background: #fff; }
.service-num { display: inline-block; }
.service-new { position: static; align-self: flex-start; margin: -4px 0 10px; }
.sv-line { display: block; height: 7px; border-radius: 4px; background: var(--line-strong); }
.sv-line.strong { height: 10px; background: var(--ink); }
.w40 { width: 40%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }

.sv-browser { width: 72%; background: #fff; border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(11, 27, 51, .35); overflow: hidden; transition: transform .35s var(--ease); }
.sv-bar { display: flex; gap: 4px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sv-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.sv-bar span { flex: 1; height: 6px; margin-left: 8px; border-radius: 3px; background: var(--bg-soft); }
.sv-body { display: grid; gap: 8px; padding: 14px; }
.sv-btn { justify-self: start; margin-top: 4px; font-size: .62rem; font-weight: 600; color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 5px; }
.service:hover .sv-browser { transform: translateY(-4px); }

.sv-doc { width: 70%; display: grid; gap: 9px; background: #fff; padding: 18px; border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(11, 27, 51, .35); position: relative; }
.sv-doc .sv-line.w40 { position: relative; background: transparent; }
.sv-hl { position: absolute; inset: -2px 0; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(.35); transition: transform .5s var(--ease); }
.service:hover .sv-hl { transform: scaleX(1); }
.sv-caret { position: absolute; right: 22px; bottom: 16px; width: 2px; height: 14px; background: var(--accent); animation: caret 1s steps(1) infinite; }

.sv-reel { display: flex; align-items: center; gap: 18px; }
.sv-reel-phone { position: relative; width: 64px; height: 112px; border-radius: 12px; background: linear-gradient(160deg, #26364d, var(--ink)); box-shadow: 0 10px 24px -12px rgba(11, 27, 51, .5); }
.sv-play { position: absolute; left: 50%; top: 42%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.sv-play::after { content: ''; position: absolute; left: 10px; top: 7px; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.sv-sub { position: absolute; left: 6px; right: 6px; bottom: 12px; font-size: .45rem; line-height: 1.2; text-align: center; color: #fff; background: rgba(0, 0, 0, .45); border-radius: 3px; padding: 2px; }
.sv-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 22px); gap: 4px; }
.sv-timeline i { height: 30px; border-radius: 4px; background: var(--line-strong); }
.sv-timeline i:nth-child(2) { background: #9fb3f5; }
.sv-timeline i:nth-child(3) { background: var(--accent); }
.sv-timeline b { position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; background: #e5484d; transition: left 1.2s var(--ease); }
.service:hover .sv-timeline b { left: calc(100% - 2px); }

.sv-feed { position: relative; }
.sv-feed-grid { display: grid; grid-template-columns: repeat(3, 38px); gap: 4px; }
.sv-feed-grid i { height: 38px; border-radius: 4px; background: var(--line-strong); }
.sv-feed-grid i:nth-child(1), .sv-feed-grid i:nth-child(5) { background: var(--accent); }
.sv-feed-grid i:nth-child(3) { background: var(--ink); }
.sv-feed-grid i:nth-child(4) { background: #9fb3f5; }
.sv-like { position: absolute; right: -34px; top: -10px; font-size: .7rem; font-weight: 600; color: #fff; background: #e5484d; padding: 3px 8px; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(229, 72, 77, .7); transition: transform .3s var(--ease); }
.service:hover .sv-like { transform: translateY(-4px) scale(1.06); }

.sv-stats { position: relative; display: grid; grid-template-columns: auto auto; column-gap: 18px; row-gap: 8px; align-items: end; background: #fff; padding: 14px 16px 18px; border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(11, 27, 51, .35); }
.sv-kpi small { display: block; font-size: .6rem; color: var(--muted); }
.sv-kpi strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.sv-bars { grid-column: 1 / -1; display: flex; align-items: end; gap: 5px; height: 34px; }
.sv-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent); transform-origin: bottom; transition: transform .5s var(--ease); }
.sv-bars i:nth-child(1) { height: 30%; opacity: .45; } .sv-bars i:nth-child(2) { height: 45%; opacity: .55; } .sv-bars i:nth-child(3) { height: 40%; opacity: .65; }
.sv-bars i:nth-child(4) { height: 62%; opacity: .75; } .sv-bars i:nth-child(5) { height: 78%; opacity: .9; } .sv-bars i:nth-child(6) { height: 100%; }
.service:hover .sv-bars i { transform: scaleY(1.08); }
.sv-stats em { position: absolute; right: 8px; bottom: -18px; font-style: normal; font-size: .55rem; color: var(--muted); }

.sv-chat { width: 78%; display: grid; gap: 8px; }
.sv-chat p { font-size: .7rem; line-height: 1.35; padding: 7px 10px; border-radius: 10px; max-width: 85%; }
.sv-chat .q { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; }
.sv-chat .a { justify-self: start; background: #fff; color: var(--ink-2); border-bottom-left-radius: 3px; box-shadow: 0 8px 18px -12px rgba(11, 27, 51, .35); transition: transform .35s var(--ease); }
.service:hover .sv-chat .a { transform: translateX(4px); }

/* Sekcija koja mijenja ritam: velika rečenica + brojke */
.statement { position: relative; overflow: hidden; padding: clamp(88px, 12vw, 150px) 0; background: var(--bg); border-top: 1px solid var(--line); }
.statement::after {
  content: ''; position: absolute; pointer-events: none;
  width: 520px; height: 520px; right: -140px; top: 50%; transform: translateY(-50%);
  background: var(--accent); opacity: .06;
  -webkit-mask: url(/assets/img/logo/znak.svg) center / contain no-repeat; mask: url(/assets/img/logo/znak.svg) center / contain no-repeat;
}
.statement-text { position: relative; z-index: 1; max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; color: var(--ink); }
.statement-text span { color: var(--muted); }
.statement-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.statement-facts div { padding: 28px 24px 0 0; }
.statement-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.statement-facts strong { display: block; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--accent); margin-bottom: 10px; }
.statement-facts span { font-size: .95rem; color: var(--muted); }

/* Tamne sekcije i CTA traka: veliki znak u pozadini */
#proces, .cta-band { position: relative; overflow: hidden; }
#proces > .container, .cta-band > .container { position: relative; z-index: 1; }
#proces::before, .cta-band::before {
  content: ''; position: absolute; pointer-events: none;
  -webkit-mask: url(/assets/img/logo/znak.svg) center / contain no-repeat; mask: url(/assets/img/logo/znak.svg) center / contain no-repeat;
}
#proces::before { width: 640px; height: 640px; right: -160px; top: -120px; background: #fff; opacity: .035; }
.cta-band::before { width: 420px; height: 420px; right: 4%; top: 50%; transform: translateY(-50%); background: #fff; opacity: .09; }

/* Naslovnice bloga: znak umjesto kruga, na različitim mjestima */
.post-cover::after {
  border: 0; border-radius: 0; width: 170px; height: 170px; right: -36px; bottom: -78px;
  background: currentColor; opacity: .12; transition: transform .4s var(--ease);
  -webkit-mask: url(/assets/img/logo/znak.svg) center / contain no-repeat; mask: url(/assets/img/logo/znak.svg) center / contain no-repeat;
}
.post-cover[data-tone="2"]::after { width: 260px; height: 260px; right: -90px; bottom: -40px; opacity: .16; border: 0; }
.post-cover[data-tone="3"]::after { width: 160px; height: 160px; right: -24px; bottom: -86px; background: var(--accent); opacity: .16; border: 0; }
.post-card:hover .post-cover::after { transform: translateY(-6px); }

@media (max-width: 1080px) {
  .hero-showcase::before { right: -4%; }
  .statement-facts { grid-template-columns: repeat(2, 1fr); }
  .statement-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .statement-facts div:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero-showcase::after { width: 40px; height: 40px; }
  .svc-visual { height: 140px; }
  .statement::after { width: 320px; height: 320px; right: -120px; top: auto; bottom: -80px; transform: none; }
  .statement-facts strong { font-size: 2rem; }
  .cta-band::before { width: 260px; height: 260px; right: -60px; }
}

/* ---------- O nama v2: tekst, vizitka, pravila ---------- */
.about-v2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px) clamp(40px, 7vw, 96px); align-items: start; }
.about-intro h2 { margin-bottom: 24px; }
.about-intro p { font-size: 1.06rem; margin-bottom: 16px; max-width: 58ch; }
.about-intro .about-lead { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--ink); margin-bottom: 24px; }

.vizitka {
  position: relative; align-self: center;
  background: #fff; border-radius: 14px; padding: 28px 30px 26px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -34px rgba(11, 27, 51, .45);
  transform: rotate(-2deg); transition: transform .4s var(--ease);
  max-width: 420px; justify-self: end; width: 100%;
}
.vizitka:hover { transform: rotate(0deg); }
.vizitka::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 3px 3px 0; background: var(--accent); }
.vizitka-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.vizitka-top img { height: 46px; width: auto; }
.vizitka-top span { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.vizitka-name { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.vizitka-role { font-size: .9rem; color: var(--muted); margin: 4px 0 22px; }
.vizitka dl { display: grid; gap: 10px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.vizitka dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.vizitka dt { color: var(--muted); }
.vizitka dd { color: var(--ink); font-weight: 500; text-align: right; }
.vizitka dd a:hover { color: var(--accent); }
.vizitka-note { margin-top: 18px; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.vizitka-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1fb871; flex-shrink: 0; }

.about-rules { grid-column: 1 / -1; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .3fr 1fr; gap: 24px 48px; }
.about-rules h3 { font-size: 1.05rem; }
.about-rules ol { list-style: none; counter-reset: pravilo; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; }
.about-rules li { counter-increment: pravilo; position: relative; padding-left: 34px; color: var(--muted); font-size: .98rem; }
.about-rules li::before { content: counter(pravilo); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .75rem; font-weight: 600; color: var(--ink); display: grid; place-items: center; }
.about-rules li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

@media (max-width: 860px) {
  .about-v2 { grid-template-columns: 1fr; }
  .vizitka { justify-self: start; transform: rotate(-1.5deg); }
  .about-rules { grid-template-columns: 1fr; }
  .about-rules ol { grid-template-columns: 1fr; }
}



/* vizitka: nagib ostaje i nakon animacije pojavljivanja */
.vizitka.reveal.in { transform: rotate(-2deg); }
.vizitka.reveal.in:hover { transform: rotate(0deg); }
@media (max-width: 860px) { .vizitka.reveal.in { transform: rotate(-1.5deg); } }

/* ---------- Napomena ispod gumbi u naslovima ---------- */
.hero-note { margin-top: -12px; font-size: .92rem; color: var(--muted); }
.service-hero .hero-note { margin-top: 18px; }

/* ---------- Stranice usluga: tekst + ilustracija ---------- */
.service-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.service-hero h1 { max-width: 16ch; }
.service-hero-visual { position: relative; isolation: isolate; }
.service-hero-visual::before { content: ''; position: absolute; z-index: -1; inset: -6% -10% -6% 6%; background: var(--accent-soft); border-radius: 24px; }
.service-hero-visual::after { content: ''; position: absolute; z-index: -1; width: 48px; height: 48px; left: -2%; top: -4%; background: var(--accent); border-radius: 9px; }
.svc-visual.big { height: 320px; margin: 0; background: transparent; }
.svc-visual.big > * { transform: scale(1.7); }
.service:hover .svc-visual.big { background: transparent; }

/* ---------- Kalkulator cijene ---------- */
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.calc-group { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; display: grid; gap: 8px; min-width: 0; }
.calc-group legend { float: left; width: 100%; font-weight: 600; font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.calc-opt, .calc-check { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.calc-opt:hover, .calc-check:hover { border-color: var(--line-strong); }
.calc-opt input, .calc-check input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.calc-opt span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; }
.calc-opt strong { font-weight: 500; font-size: .96rem; }
.calc-opt small, .calc-check b { font-size: .88rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.calc-check span { flex: 1; font-size: .94rem; }
.calc-opt:has(input:checked), .calc-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.calc-total { grid-column: 1 / -1; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 28px; display: grid; grid-template-columns: auto auto 1fr auto; gap: 16px 40px; align-items: center; }
.calc-total div { display: grid; gap: 2px; }
.calc-total .btn { width: auto; }
.calc-total span { color: var(--on-dark-muted); font-size: .92rem; }
.calc-total strong { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.calc-total p { font-size: .82rem; color: var(--on-dark-muted); }
@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-total { grid-template-columns: 1fr 1fr; }
  .calc-total p, .calc-total .btn { grid-column: 1 / -1; }
  .service-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-hero-visual { max-width: 520px; }
}
@media (max-width: 640px) {
  .calc { grid-template-columns: 1fr; }
  .svc-visual.big { height: 240px; }
  .svc-visual.big > * { transform: scale(1.35); }
}

/* ---------- Kolačići na mobitelu: tanka traka pri dnu ---------- */
@media (max-width: 640px) {
  .cookie { left: 0; right: 0; bottom: 0; border-radius: 14px 14px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .cookie p { flex: 1 1 100%; font-size: .84rem; margin: 0; }
  .cookie-actions { flex: 1; }
  .cookie-actions .btn { height: 38px; font-size: .88rem; }
}

/* oznaka uz traku logotipa (umjesto brojke) */
.clients-label { font-size: .92rem; color: var(--muted); line-height: 1.4; padding-right: 48px; border-right: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 1080px) { .clients-label { border-right: 0; padding-right: 0; } .clients-label br { display: none; } }

/* ---------- Prekidač jezika HR | EN ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 20px; padding: 2px; font-size: .78rem; font-weight: 600; }
.lang-switch a { padding: 4px 9px; border-radius: 16px; color: var(--muted); transition: color .2s, background .2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.mobile-lang { margin-top: 24px; }
.mobile-lang .lang-switch { font-size: .9rem; }
@media (max-width: 640px) { .header-actions .lang-switch { display: none; } }
