/* =========================================================
   CryptoGorac.com — zajednički stil za sve stranice
   ========================================================= */

/* ---------- Fontovi (lokalno, bez Google Fonts poziva) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-ext-600-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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* zamjenski font sa metrikom Poppinsa, da zamjena fonta ne pomjera tekst */
@font-face { font-family: "Poppins Fallback"; font-weight: 400 500; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); size-adjust: 108.2%; ascent-override: 97%; descent-override: 32.4%; line-gap-override: 9.2%; }
@font-face { font-family: "Poppins Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"); size-adjust: 106%; ascent-override: 99%; descent-override: 33%; line-gap-override: 9.4%; }

/* ---------- Dizajn tokeni ---------- */
:root {
  color-scheme: light;

  --navy-900: #1f2d3a;
  --navy-800: #2c3e50;
  --navy-700: #34495e;
  --teal: #1abc9c;          /* brend boja – za pozadine, ivice, tamne površine */
  --teal-ink: #0e7c66;      /* tamnija tirkizna – za tekst na svijetloj pozadini (WCAG AA) */
  --ink: #1f2d3a;
  --ink-soft: #4a5a6a;
  --line: #e3e8ee;
  --surface: #ffffff;
  --surface-2: #f5f8fa;
  --on-dark: #ecf0f1;
  --on-dark-soft: #bdc3c7;

  /* akcent stranice – mijenja se po stranici (vidi .theme-*) */
  --accent: var(--teal);
  --accent-ink: var(--teal-ink);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
  --shadow: 0 4px 6px -2px rgb(16 24 40 / .05), 0 12px 24px -4px rgb(16 24 40 / .10);
  --shadow-lg: 0 24px 48px -12px rgb(16 24 40 / .22);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 72px;

  --step--1: clamp(.875rem, .85rem + .1vw, .9375rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + .3vw, 1.3125rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.6vw, 3.75rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

.theme-konsalting { --accent: #ff5733; --accent-ink: #b93815; }
.theme-sajtovi    { --accent: #8bc34a; --accent-ink: #4d7c0f; }
.theme-webapp     { --accent: #00aeef; --accent-ink: #0369a1; }
.theme-desktop    { --accent: #ffb300; --accent-ink: #a16207; }
.theme-crypto     { --accent: #f7931a; --accent-ink: #b45309; }

/* ---------- Reset / osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; text-wrap: balance; color: var(--navy-800); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgb(26 188 156 / .25); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--teal); color: var(--navy-900); font-weight: 600;
  padding: .75rem 1.25rem; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--surface-2); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Header / navigacija ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(135deg, rgb(44 62 80 / .97), rgb(52 73 94 / .97));
  box-shadow: 0 4px 16px rgb(0 0 0 / .18);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: linear-gradient(135deg, rgb(44 62 80 / .9), rgb(52 73 94 / .9)); backdrop-filter: saturate(1.4) blur(10px); }
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius-sm); }
.brand img {
  height: 38px; width: auto; border-radius: 8px;
  box-shadow: 0 0 0 2px rgb(26 188 156 / .55), 0 6px 18px rgb(26 188 156 / .35);
}
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--on-dark); cursor: pointer;
}
.nav-toggle:hover { background: rgb(255 255 255 / .08); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-link, .nav-sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px; padding: .5rem .9rem;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2;
  color: var(--on-dark); background: none; border: 0; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; position: relative;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-sub-toggle:hover { color: var(--teal); background: rgb(255 255 255 / .06); }
.nav-link[aria-current="page"], .nav-sub-toggle.is-current { color: var(--teal); }
.nav-link[aria-current="page"]::after, .nav-sub-toggle.is-current::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal);
}
.nav-sub-toggle .chev { width: 1em; height: 1em; fill: currentColor; transition: transform .2s; }
.nav-sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-sub {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 240px;
  background: var(--navy-800); border: 1px solid rgb(255 255 255 / .08); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
}
.nav-sub-toggle[aria-expanded="true"] + .nav-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
.nav-sub a {
  display: block; padding: .7rem .9rem; border-radius: var(--radius-sm);
  color: var(--on-dark); text-decoration: none; font-size: .975rem;
}
.nav-sub a:hover, .nav-sub a:focus-visible { background: rgb(255 255 255 / .08); color: var(--teal); }
.nav-sub a[aria-current="page"] { color: var(--teal); background: rgb(26 188 156 / .1); }

@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--navy-800); border-top: 1px solid rgb(255 255 255 / .08);
    box-shadow: 0 16px 32px rgb(0 0 0 / .25);
    padding: .75rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav-panel.is-open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link, .nav-sub-toggle { width: 100%; justify-content: space-between; font-size: 1.075rem; padding: .85rem .5rem; }
  .nav-link[aria-current="page"]::after, .nav-sub-toggle.is-current::after { display: none; }
  .nav-sub {
    position: static; min-width: 0; padding: 0 0 .5rem .75rem; margin: 0;
    background: none; border: 0; border-left: 2px solid rgb(26 188 156 / .4); border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
    display: none;
  }
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub { display: block; }
  .nav-menu > li + li { border-top: 1px solid rgb(255 255 255 / .06); }
}

/* ---------- Dugmad ---------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px -6px rgb(26 188 156 / .7);
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgb(26 188 156 / .8); background: #22d3b0; }
.btn:active { transform: translateY(0); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: var(--navy-800); box-shadow: none; }
.btn-outline:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }
.btn-dark { --btn-bg: var(--navy-800); --btn-fg: #fff; box-shadow: var(--shadow); }
.btn-dark:hover { background: var(--navy-700); box-shadow: var(--shadow-lg); }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Naslovi sekcija ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head h2, .section-title { font-size: var(--step-3); color: var(--navy-800); margin-bottom: .5rem; }
.section-head h2::after, .section-title.with-bar::after {
  content: ""; display: block; width: 56px; height: 4px; margin: .75rem auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
}
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin: 1rem 0 0; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: .35rem .9rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .02em;
  color: var(--teal-ink); background: rgb(26 188 156 / .12);
}

/* ---------- Hero (početna) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3.5rem, 10vw, 7rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(26 188 156 / .18), transparent 60%),
    radial-gradient(40rem 25rem at -10% 110%, rgb(52 73 94 / .12), transparent 60%),
    linear-gradient(180deg, #fbfdfd, #f1f6f7);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgb(44 62 80 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(44 62 80 / .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1.2fr .8fr; }
.hero-lead { font-size: var(--step-1); font-weight: 500; color: var(--teal-ink); margin-bottom: .5rem; }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; color: var(--navy-800); }
.hero h1 .accent { background: linear-gradient(90deg, var(--teal-ink), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: var(--step-1); color: var(--ink-soft); max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(26 188 156 / .35);
}
.hero-card h2 { color: #fff; font-size: var(--step-1); margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { color: var(--teal); margin-top: .2em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-card { text-align: left; }
}

/* ---------- Paneli / proza ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow);
}
.panel-accent { border-top: 4px solid var(--accent); }
.prose { font-size: var(--step-0); }
.prose > * + h2 { margin-top: 2.2em; }
.prose > * + h3 { margin-top: 1.8em; }
.prose h2 { font-size: var(--step-2); color: var(--accent-ink); }
.prose h3 { font-size: var(--step-1); color: var(--navy-800); }
.prose strong, .prose b { font-weight: 600; color: var(--navy-800); }
.prose ul, .prose ol { margin: 0 0 1.25em; display: grid; gap: .45em; }
.prose li::marker { color: var(--accent); }
.prose ul ul, .prose ol ul { margin: .45em 0 0; }
.prose dl { margin: 0 0 1.25em; display: grid; gap: .9em; }
.prose dt { font-weight: 600; color: var(--navy-800); }
.prose dd { margin: .15em 0 0; color: var(--ink-soft); }
.prose blockquote {
  margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--accent);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft);
}
.author-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- Usluge (kartice sa slikama) ---------- */
.service-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-card {
  display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.service-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover img { transform: scale(1.04); }

/* ---------- Tehnologije ---------- */
.tech-figure { margin: 0; }
.tech-figure img {
  width: 100%; border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgb(26 188 156 / .35);
}

/* ---------- Kod prozor ---------- */
.code-window {
  max-width: 680px; margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  background: #0f1b26; color: #e6edf3; border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(26 188 156 / .25);
  overflow: hidden;
}
.code-window-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #172634; }
.code-window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.code-window-bar span:nth-child(2) { background: #febc2e; }
.code-window-bar span:nth-child(3) { background: #28c840; }
.code-window-bar small { margin-left: auto; color: #8b9bab; font-size: .8rem; }
.code-window pre {
  margin: 0; padding: 1.25rem 1.25rem 1.5rem; min-height: 17.5em; overflow-x: auto;
  font: 500 clamp(.78rem, .72rem + .3vw, .95rem)/1.7 ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Courier New", monospace;
}
.code-window .tok-kw { color: #ff7b72; }
.code-window .tok-str { color: #3ee0bd; }
.code-window .tok-prop { color: #79c0ff; }
.code-window .tok-op { color: #d2a8ff; }
.code-window .tok-num { color: #ffa657; }
.code-window .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.15em; background: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Projekti ---------- */
.project-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project-card {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy-800); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 18px 32px -12px rgb(16 185 129 / .35); }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f1f1f1; }
.project-card .project-name { padding: .9rem 1rem; text-align: center; font-weight: 600; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.project-card .project-name .icon { width: .9em; height: .9em; color: var(--teal-ink); }

.moto-card {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch;
  margin-top: clamp(1.5rem, 4vw, 2.5rem); overflow: hidden;
  background: var(--surface); color: var(--navy-800); text-decoration: none;
  border: 2px solid #f97316; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.moto-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgb(249 115 22 / .45); }
.moto-card img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #000; }
.moto-card .moto-body { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: .75rem; }
.moto-card .badge {
  align-self: flex-start; padding: .35rem .9rem; border-radius: 999px;
  background: #f97316; color: #1f1300; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.moto-card h3 { font-size: var(--step-2); margin: 0; }
.moto-card p { margin: 0; color: var(--ink-soft); }
.moto-card .moto-link { font-weight: 600; color: #c2410c; display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 760px) { .moto-card { grid-template-columns: 1fr; } }

/* ---------- Crypto edukacija ---------- */
.edu-intro {
  max-width: 820px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--on-dark);
  box-shadow: 0 0 0 1px rgb(26 188 156 / .45), 0 16px 40px -16px rgb(26 188 156 / .55);
}
.edu-intro p { margin: 0; font-size: var(--step-1); }
.book-grid { display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.book-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--navy-800); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 0 2px #f7931a; }
.book-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #222; }
.book-card .book-body { padding: 1.1rem 1.25rem 1.35rem; }
.book-card h3 { font-size: var(--step-1); margin: 0 0 .25rem; }
.book-card p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.book-card .more { margin-top: .6rem; display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; font-size: var(--step--1); color: #b45309; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr 1.15fr; align-items: stretch; }
.contact-grid > .form-card, .contact-grid > .contact-card { align-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(26 188 156 / .4);
}
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.contact-list a, .contact-list .contact-row {
  display: flex; align-items: center; gap: 1rem; min-height: 56px;
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / .08); color: var(--on-dark); text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
  overflow-wrap: anywhere;
}
.contact-list a:hover { background: rgb(26 188 156 / .18); transform: translateX(4px); }
.contact-list .icon { color: var(--teal); width: 1.4em; height: 1.4em; }
.contact-list small { display: block; color: var(--on-dark-soft); font-size: .8rem; line-height: 1.3; }
.social { display: flex; gap: .75rem; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; color: var(--on-dark); background: rgb(255 255 255 / .1);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.social a:hover { background: var(--teal); color: var(--navy-900); transform: translateY(-2px); }
.social .icon { width: 22px; height: 22px; }
.social-light a { color: var(--navy-800); background: var(--surface-2); border: 1px solid var(--line); }
.social-light a:hover { color: #fff; background: var(--navy-800); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--step-2); }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-weight: 500; font-size: .95rem; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid #cdd6df; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 4px rgb(26 188 156 / .2); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: .75rem 0 0; }
.honeypot { display: none !important; }

.map-frame {
  overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--surface-2); aspect-ratio: 16 / 7;
}
@media (max-width: 760px) { .map-frame { aspect-ratio: 4 / 3; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.spin-title { font-size: var(--step-3); font-weight: 600; text-align: center; color: var(--navy-800); margin: 0; perspective: 1000px; }
.spin-title span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .spin-title.is-ready span { animation: spinLetter 6s infinite ease-in-out; animation-delay: calc(var(--i) * .12s); }
}
@keyframes spinLetter {
  0%, 66%, 100% { transform: rotateY(0); color: var(--navy-800); }
  33% { transform: rotateY(360deg); color: var(--teal-ink); }
}

/* ---------- Stranice usluga ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  background:
    radial-gradient(50rem 24rem at 90% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%),
    linear-gradient(180deg, #fbfdfd, var(--surface-2));
}
.page-hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -.02em; margin-bottom: .75rem; }
.page-hero .lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; margin: 0; }
.service-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
@media (max-width: 860px) { .service-layout { grid-template-columns: 1fr; } .service-layout .service-media { max-width: 420px; margin-inline: auto; } }
.service-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.feature-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.feature-list li {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
  padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.feature-list .icon { width: 1.6rem; height: 1.6rem; padding: .3rem; box-sizing: content-box; border-radius: 10px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.feature-list strong { display: block; color: var(--navy-800); font-weight: 600; }
.feature-list span { color: var(--ink-soft); }
.offer-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .6rem; }
.offer-list li { display: flex; gap: .7rem; align-items: center; }
.offer-list .icon { color: var(--accent-ink); }
.subhead { font-size: var(--step-2); margin: 0 0 1rem; color: var(--navy-800); }
.cta-band {
  margin-top: clamp(1rem, 3vw, 2rem); padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--on-dark);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: var(--step-2); margin: 0 0 .25rem; }
.cta-band p { margin: 0; color: var(--on-dark-soft); }

/* ---------- Crypto stranice ---------- */
.price-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: 0 0 1.5rem;
}
.price-chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px;
  background: var(--navy-800); color: var(--on-dark); font-weight: 500; font-size: .95rem;
  font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm);
}
.price-chip .coin { width: 1.4em; height: 1.4em; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8em; font-weight: 700; }
.price-chip .coin-btc { background: #f7931a; color: #1f1300; }
.price-chip .coin-eth { background: #8c8cff; color: #10102a; }
.article-hero { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; }
.article-hero .cover { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .article-hero { grid-template-columns: 1fr; text-align: center; } .article-hero .cover { max-width: 260px; margin-inline: auto; } .article-hero .social { justify-content: center; } }
.ticker {
  overflow: hidden; border-block: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--navy-800);
  padding-block: .8rem; font-weight: 500;
}
.ticker-track { display: flex; width: max-content; gap: 4rem; }
.ticker-track > span { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 32s linear infinite; }
  .ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: auto; padding-inline: var(--gutter); }
  .ticker-track > span { white-space: normal; text-align: center; width: 100%; }
  .ticker-track > span[aria-hidden] { display: none; }
}
@keyframes ticker { to { transform: translateX(calc(-50% - 2rem)); } }
.toc { margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.toc h2 { font-size: var(--step-0) !important; color: var(--navy-800) !important; margin: 0 0 .6rem !important; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 0; display: grid; gap: .35rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- O nama ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { padding: 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.stat strong { display: block; font-size: var(--step-2); color: var(--teal-ink); line-height: 1.1; }
.stat span { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--on-dark);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; margin-top: auto;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .site-footer .social { justify-content: center; } .footer-brand img { margin-inline: auto; } }
.footer-brand img { height: 34px; width: auto; border-radius: 6px; margin-bottom: 1rem; }
.footer-brand p { color: var(--on-dark-soft); font-size: .95rem; max-width: 34ch; }
@media (max-width: 560px) { .footer-brand p { margin-inline: auto; } }
.site-footer h2 { font-size: 1rem; font-weight: 600; color: var(--teal); margin: 0 0 1rem; letter-spacing: .02em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links li { font-size: .95rem; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--on-dark-soft); font-size: .875rem;
}
@media (max-width: 560px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Nazad na vrh ---------- */
.back-to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 900;
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  color: var(--on-dark); background: var(--navy-800);
  box-shadow: 0 0 0 2px rgb(26 188 156 / .6), var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease), background-color .2s; }
.back-to-top:hover { background: var(--teal); color: var(--navy-900); }
/* Na početnoj je dolje desno Tawk chat — dugme ostaje desno, iznad chat ikonice */
.has-chat .back-to-top { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 84px); z-index: 2147483647; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.not-found .code { font-size: clamp(4rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--teal); margin: 0 0 1rem; }

/* ---------- Animacije pojavljivanja ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Štampa ---------- */
@media print {
  .site-header, .site-footer, .back-to-top, .ticker, .price-bar, .map-frame, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}

/* Mapa pored kontakt kartice — ista visina */
.contact-grid > .map-frame { aspect-ratio: auto; height: 100%; min-height: 320px; }
@media (max-width: 860px) { .contact-grid > .map-frame { height: auto; aspect-ratio: 4 / 3; min-height: 0; } }
@media (max-width: 560px) { .project-card .project-name { font-size: .95rem; } .project-card .project-name .icon { display: none; } }
.article-hero .lead { margin-bottom: 1rem; }

/* ---------- Originalne boje teme (naslovi kao na starom sajtu) ---------- */
.section-head h2, .section-title { color: var(--teal); text-shadow: 1px 1px 3px rgb(0 0 0 / .18); }
.hero-lead { color: var(--teal); font-weight: 600; }
.prose h2, .subhead { color: var(--accent); }
.page-hero h1 { color: var(--navy-800); }
.page-hero h1::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: .75rem; border-radius: 4px; background: var(--accent);
}

/* Copyright red u footeru centriran na svim ekranima */
.footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .25rem; }
.footer-bottom p { margin: 0; }

/* MotoGorac kartica: sajt + App Store */
article.moto-card:hover { transform: none; }
.moto-media { display: block; height: 100%; }
.moto-media img { transition: transform .5s var(--ease); }
.moto-media:hover img { transform: scale(1.03); }
.moto-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .25rem; }
.moto-card .moto-link { text-decoration: none; }
.moto-card .moto-link:hover { text-decoration: underline; }
.store-badge {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .45rem 1.1rem .45rem .9rem;
  background: #000; color: #fff; text-decoration: none; border-radius: 10px; border: 1px solid #a6a6a6;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgb(0 0 0 / .5); }
.store-badge-logo { width: 22px; height: 26px; fill: currentColor; flex: none; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; font-family: -apple-system, "SF Pro Display", "Helvetica Neue", "Poppins", sans-serif; }
.store-badge-text small { font-size: .68rem; font-weight: 400; letter-spacing: .01em; }

/* Brzi linkovi u footeru — zeleni, iznad copyright reda */
.footer-nav { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1.1rem; border-radius: 999px;
  color: var(--teal); font-weight: 600; text-decoration: none; border: 1px solid rgb(26 188 156 / .45); background: rgb(26 188 156 / .08);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.footer-nav a:hover { background: var(--teal); color: var(--navy-900); transform: translateY(-2px); }

/* Knjige: okvir na hover u boji korice (Bitcoin žuta, blockchain crvena, trejding zelena) */
.book-card { --book: #f7931a; border: 2px solid transparent; }
.book-btc   { --book: #f7931a; }
.book-chain { --book: #c32d2d; }
.book-trade { --book: #3dc295; }
.book-card:hover, .book-card:focus-visible { border-color: var(--book); box-shadow: var(--shadow-lg), 0 0 0 2px var(--book), 0 18px 40px -12px color-mix(in srgb, var(--book) 55%, transparent); }

/* Crypto stranice na telefonu: crtica ispod naslova centrirana kao i tekst */
@media (max-width: 760px) { .article-hero h1::after { margin-inline: auto; } }

/* Kod prozor ima fiksnu visinu (13 redova), da kucanje ne pomjera ostatak stranice */
.code-window pre { min-height: calc(13 * 1.7em + 2.75rem); }
/* Na telefonu manje dugme "nazad na vrh", da manje prekriva sadržaj */
@media (max-width: 560px) { .back-to-top { width: 42px; height: 42px; } }

/* Pristupačnost: tekst naslova u tamnijoj nijansi iste boje (kontrast ≥ 3:1 za veliki tekst) */
:root { --teal-head: #169c81; --accent-head: var(--teal-head); }
.theme-konsalting { --accent-head: #f25330; }
.theme-sajtovi    { --accent-head: #6b9639; }
.theme-webapp     { --accent-head: #0094cb; }
.theme-desktop    { --accent-head: #b57f00; }
.theme-crypto     { --accent-head: #c87715; }
.section-head h2, .section-title, .not-found .code { color: var(--teal-head); }
.prose h2, .subhead { color: var(--accent-head); font-size: max(1.5rem, var(--step-2)); }

/* Cijene: fiksna širina vrijednosti, da učitavanje ne pomjera stranicu */
.price-chip [id$="-price"] { display: inline-block; min-width: 11ch; font-variant-numeric: tabular-nums; }

.not-found-en { margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; }

/* Prekidač jezika SRB | ENG — u zaglavlju, van menija */
.lang-switch { display: flex; align-items: center; gap: .1rem; margin-left: auto; font-size: .875rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch a { color: #cfd8e0; text-decoration: none; padding: .35rem .4rem; border-bottom: 2px solid transparent; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { color: var(--teal); border-color: var(--teal); }
.lang-switch span { color: #6b7c8c; }
@media (min-width: 992px) { .lang-switch { order: 3; margin-left: .75rem; } }
@media (max-width: 991.98px) { .lang-switch { margin-right: .5rem; } }
.nav-link, .nav-sub-toggle { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .nav-link, .nav-sub-toggle { padding-inline: .6rem; } }
@media (max-width: 560px) { .nav { gap: .5rem; } .brand img { height: 28px; } .lang-switch { margin-right: 0; font-size: .8rem; } .lang-switch a { padding-inline: .3rem; } }
@media (max-width: 359.98px) { .brand img { height: 22px; } }

/* Projekti: pet kartica (razvitak.me) */
.project-card-contain img { object-fit: contain; background: #fff; padding: .5rem; }
@media (min-width: 992px) { .project-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 561px) and (max-width: 991.98px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .project-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); } }

/* ===== Telefon: dorada (prioritet mobilnog izgleda) ===== */
@media (max-width: 560px) {
  /* zaglavlje: veći SRB | ENG i dovoljno velika površina za dodir */
  .lang-switch { font-size: .9rem; }
  .lang-switch a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: .45rem; }
  /* hero: dugmad iste širine, jedno ispod drugog */
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .hero-actions .btn { justify-content: center; min-height: 48px; }
  /* knjige: korica lijevo, tekst desno, umjesto tri visoke kartice */
  .book-grid { gap: 1rem; }
  .book-card { display: grid; grid-template-columns: 104px 1fr; align-items: center; }
  .book-card img { height: 100%; aspect-ratio: auto; min-height: 156px; }
  .book-card .book-body { padding: .9rem 1rem; }
  .book-card h3 { font-size: 1.1rem; }
  /* MotoGorac: veća površina za dodir */
  .moto-actions { gap: .75rem 1rem; }
  .moto-card .moto-link { min-height: 44px; }
  /* footer: Usluge i Crypto edukacija jedno pored drugog, veći razmak između linkova */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-links { gap: 0; }
  .footer-links a { display: inline-block; padding: .6rem .25rem; }
  .footer-nav a { min-height: 40px; display: inline-flex; align-items: center; }
  /* cijene na crypto stranicama: dvije u jednom redu */
  .price-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .price-chip { justify-content: center; font-size: .85rem; padding-inline: .5rem; }
  .price-chip [id$="-price"] { min-width: 0; }
  /* korica priručnika manja, da naslov bude na prvom ekranu */
  .article-hero .cover { max-width: 180px; }
}
.nav-toggle { flex: none; }
@media (max-width: 359.98px) { .lang-switch a { padding-inline: .25rem; } .nav { gap: .35rem; } }

/* ===== Futuristički efekti (assets/js/site.js) ===== */
.fx-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), #7ef0d6); box-shadow: 0 0 10px rgb(26 188 156 / .8); pointer-events: none; }
.fx-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.fx-net.is-on { opacity: 1; }
.page-hero { position: relative; isolation: isolate; }
.fx-glow { position: relative; isolation: isolate; }
.fx-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(26 188 156 / .22), transparent 60%); }
@media (hover: hover) and (pointer: fine) { .fx-glow:hover::after { opacity: 1; } }
.fx-ripple { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; z-index: 2;
  background: rgb(26 188 156 / .45); animation: fxRipple .6s ease-out forwards; }
@keyframes fxRipple { to { transform: scale(22); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* svjetlucanje preko naziva u vrhu početne */
  .hero h1 .accent { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--teal-ink), var(--teal), #7ef0d6, var(--teal), var(--teal-ink)); animation: fxShine 6s linear infinite; }
  /* kartice se pojavljuju jedna za drugom */
  .js .service-grid.reveal.is-visible > *, .js .project-grid.reveal.is-visible > *, .js .book-grid.reveal.is-visible > * { animation: fxUp .6s var(--ease) backwards; }
  .js .reveal.is-visible > :nth-child(2) { animation-delay: .08s; } .js .reveal.is-visible > :nth-child(3) { animation-delay: .16s; }
  .js .reveal.is-visible > :nth-child(4) { animation-delay: .24s; } .js .reveal.is-visible > :nth-child(5) { animation-delay: .32s; }
}
@keyframes fxShine { to { background-position: -200% 0; } }
@keyframes fxUp { from { opacity: 0; transform: translateY(18px); } }
@media print { .fx-progress, .fx-net { display: none; } }
@media (max-width: 560px) { .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }

/* ===== Footer 2026: kontakt kartica + uredan raspored na telefonu (uzor: Stripe / Apple) ===== */
.footer-contact { gap: .25rem; }
.footer-contact a, .footer-contact-row { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; color: var(--on-dark); text-decoration: none; }
.footer-contact .icon { flex: none; width: 2.25rem; height: 2.25rem; padding: .55rem; border-radius: 50%; color: var(--teal); background: rgb(26 188 156 / .12); }
.footer-contact .icon + span { display: flex; flex-direction: column; line-height: 1.3; }
.footer-contact small { font-size: .75rem; color: var(--on-dark-soft); letter-spacing: .03em; }
.footer-contact a:hover { color: var(--teal); text-decoration: none; }
.footer-cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; min-height: 44px; padding: .55rem 1.2rem;
  border-radius: 999px; background: var(--teal); color: var(--navy-900); font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.footer-cta .icon { width: 1rem; height: 1rem; }
.footer-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(26 188 156 / .35); }

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 0 1.25rem; text-align: left; }
  .footer-grid > * { padding-block: 1.6rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .footer-grid > :first-child { grid-column: 1 / -1; padding-top: 0; }
  .footer-grid > :last-child { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .08); }
  .footer-grid > :nth-child(2), .footer-grid > :nth-child(3) { border-bottom: 0; }
  .footer-brand img { margin-inline: 0; }
  .footer-brand p { margin-inline: 0; }
  .site-footer .social { justify-content: flex-start; }
  .site-footer h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-soft); margin-bottom: .5rem; }
  .footer-links a { display: block; padding: .55rem 0; }
  .footer-grid > :nth-child(2) .footer-links a, .footer-grid > :nth-child(3) .footer-links a { font-size: .95rem; }
  /* kontakt kao kartica sa redovima za dodir */
  .footer-contact { gap: 0; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); border-radius: 16px; padding: 0 1rem; }
  .footer-contact li + li { border-top: 1px solid rgb(255 255 255 / .07); }
  .footer-links.footer-contact a, .footer-contact-row { display: flex; min-height: 60px; padding: .6rem 0; }
  .footer-contact a::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border: solid var(--on-dark-soft); border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: .6; }
  .footer-cta { display: flex; width: 100%; min-height: 48px; }
  /* donji red: brzi linkovi kao tekst, copyright sitno */
  .footer-bottom { margin-top: 0; border-top: 0; padding-top: 1.25rem; }
  .footer-nav { gap: 0; margin-bottom: .25rem; }
  .footer-nav li + li::before { content: "·"; color: var(--on-dark-soft); }
  .footer-nav a, .footer-nav a:hover { min-height: 44px; padding: .4rem .7rem; border: 0; background: none; transform: none; }
  .footer-nav a:hover { color: #7ef0d6; }
  .footer-bottom p { font-size: .8rem; }
}
@media (max-width: 560px) { .site-footer { padding-bottom: calc(10rem + env(safe-area-inset-bottom)); } }
/* Brzi linkovi iznad linije, copyright sam ispod nje */
.footer-bottom { border-top: 0; padding-top: 0; margin-top: 2rem; gap: 0; }
.footer-nav { align-self: stretch; margin: 0; padding-bottom: 1.25rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer-bottom p { padding-top: 1.25rem; }
@media (max-width: 560px) { .footer-grid > :last-child { border-bottom: 0; } .footer-bottom { margin-top: .5rem; } .footer-nav { padding-bottom: .75rem; } }
@media (min-width: 961px) and (max-width: 1199.98px) { .footer-cta { white-space: nowrap; font-size: .875rem; padding-inline: .9rem; } }

/* ===== Platforme: iOS / Android / macOS / Windows ===== */
/* iPhone u položaju na širinu: sadržaj se ne podvlači pod notch / Dynamic Island */
.container, .container-narrow { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
/* Safari stariji od 18 traži prefiks za zamućenje zaglavlja */
@supports (-webkit-backdrop-filter: blur(8px)) and (not (backdrop-filter: blur(8px))) {
  .site-header { background: linear-gradient(135deg, rgb(44 62 80 / .9), rgb(52 73 94 / .9)); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
}
/* tipografija: bez lažnog podebljanja, glatki font i na Firefoxu na Macu */
body { font-synthesis: none; -moz-osx-font-smoothing: grayscale; }
/* dodir: bez 300 ms kašnjenja, diskretan tirkizni odsjaj umjesto sivog */
a, button, summary, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgb(26 188 156 / .18); }
/* iOS: polja bez sjenke i bez zumiranja (najmanje 16px) */
.field input, .field textarea { -webkit-appearance: none; appearance: none; font-size: max(16px, 1rem); }
/* telefoni i tableti: hover efekti ne ostaju "zalijepljeni" poslije dodira */
@media (hover: none) {
  .btn:hover, .service-card:hover, .project-card:hover, .moto-card:hover, .book-card:hover, .contact-list a:hover,
  .social a:hover, .store-badge:hover, .footer-nav a:hover, .footer-cta:hover, .service-card:hover img, .moto-media:hover img { transform: none; }
  .btn:active, .footer-cta:active, .social a:active { transform: scale(.97); }
}
/* Windows: klasične trake za skrolovanje u bojama sajta */
html { scrollbar-color: #8fa3b3 #eef2f5; }
.nav-panel, .code-window { scrollbar-width: thin; }
/* Windows visoki kontrast (Contrast themes) */
@media (forced-colors: active) {
  .btn, .footer-cta, .price-chip, .nav-toggle, .back-to-top { border: 1px solid ButtonText; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { background: ButtonText; forced-color-adjust: none; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .lang-switch a { border-bottom-style: none; }
  .lang-switch a[aria-current] { text-decoration: underline 2px; text-underline-offset: 6px; }
  .fx-net, .fx-progress, .fx-glow::after, .fx-ripple { display: none; }
  .hero h1 .accent { background: none; animation: none; color: Highlight; -webkit-text-fill-color: Highlight; }
}
@media (max-width: 991.98px) { .nav-panel { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); } }

/* ===== Ispravke iz testova (320px cijene, tablet naslov, dodir 44px, forma) ===== */
/* cijene: čip se nikad ne širi preko ekrana, ni sa dužim tekstom "nedostupno" */
@media (max-width: 560px) {
  .price-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-chip { min-width: 0; white-space: normal; text-align: center; line-height: 1.25; }
}
/* duga riječ u naslovu priručnika (npr. "Cryptocurrencies") na tabletu */
.article-hero h1 { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 761px) and (max-width: 991.98px) { .article-hero h1 { font-size: min(2.8rem, 4.8vw); } }
/* ekrani na dodir: svaki link u zaglavlju i footeru visok najmanje 44px */
@media (pointer: coarse) {
  .brand { min-height: 44px; }
  .lang-switch a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-links:not(.footer-contact) a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-nav a { min-height: 44px; }
}
/* forma: kad se skoči na prazno polje, i njegova oznaka ostaje vidljiva ispod zaglavlja */
.field input, .field textarea { scroll-margin-top: calc(var(--header-h) + 3rem); }

/* ===== Dorada poslije vizuelnog pregleda ===== */
/* mreža čestica na telefonu blaža, da ne prelazi preko teksta */
@media (max-width: 560px) { .fx-net.is-on { opacity: .6; } }
/* kod prozor na uskim telefonima: cijeli red stane */
@media (max-width: 420px) { .code-window pre { font-size: .7rem; padding-inline: .9rem; } }
/* cijene se sakriju ako servis za cijene ne odgovori (mjesto ostaje, da se stranica ne pomjeri) */
.price-bar.is-off { visibility: hidden; }
/* footer: veliki razmak na dnu samo gdje postoji chat */
@media (max-width: 560px) { body:not(.has-chat) .site-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); } }
/* logo "Unique Production" bez ljubičastih ivica */
.project-card img[src*="unique-logo"] { transform: scale(1.05); }
/* meni na dodir: bez "zalijepljenog" isticanja */
@media (hover: none) { .nav-link:hover, .nav-sub-toggle:hover { background: none; } }
/* kvačice poravnate sa prvim redom teksta */
.offer-list li { align-items: flex-start; }
.offer-list .icon { margin-top: .2em; }
/* ilustracija usluge manja na telefonu, "Zašto mi?" bliže vrhu */
@media (max-width: 560px) { .service-layout .service-media { max-width: 260px; margin-inline: auto; } }
@media (max-width: 340px) { .code-window pre { font-size: .6rem; padding-inline: .7rem; } }
