/* ==========================================================================
   www.kozica.me — minimalistički statični sajt
   Fontovi: Archivo Black (naslovi) + Space Grotesk (tekst / navigacija)
   ========================================================================== */

/* ---------- Fontovi (self-hosted) ---------- */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Varijable ---------- */
:root {
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --ink-muted: #7a7a7a;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-alt: #f6f6f5;
  --accent: #0bb4aa;
  --header-h: 78px;
  --pad: 40px;
  --maxw: 1240px;
  --readw: 900px;
}

@media (max-width: 900px) {
  :root { --header-h: 62px; --pad: 22px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
}
body.has-hero .site-header { box-shadow: none; }
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .25s ease;
}
body:not(.has-hero) .site-header::after { opacity: 1; }

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img {
  height: 52px;
  width: auto;
}
@media (max-width: 900px) { .brand img { height: 40px; } }

/* ---------- Navigacija ---------- */
.nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list > li { position: relative; }
.nav-list a,
.nav-list .nav-parent {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-list a::after,
.nav-list .nav-parent::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.nav-list a:hover::after,
.nav-list .nav-parent:hover::after,
.nav-list li.is-active > a::after,
.nav-list li.is-active > .nav-parent::after { transform: scaleX(1); }
.nav-list li.is-active > a,
.nav-list li.is-active > .nav-parent { color: var(--accent); }

/* Podmeni */
.has-sub > .nav-parent { cursor: pointer; }
.subnav {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 300px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block;
  padding: 8px 22px;
  font-size: 12px;
  letter-spacing: .13em;
  white-space: normal;
}
.subnav a::after { display: none; }
.subnav a:hover { color: var(--accent); background: var(--bg-alt); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1.6px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: #fff;
    padding: calc(var(--header-h) + 26px) var(--pad) 40px;
    overflow-y: auto;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav-list > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-list a, .nav-list .nav-parent { font-size: 15px; padding: 15px 0; width: 100%; }
  .nav-list a::after, .nav-list .nav-parent::after { display: none; }
  .subnav {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: var(--bg-alt);
    padding: 6px 0 12px;
    min-width: 0;
    margin-bottom: 12px;
  }
  .subnav a { font-size: 13px; padding: 9px 16px; }
}

/* ==========================================================================
   HERO SLIDER (naslovna)
   ========================================================================== */
.hero {
  position: relative;
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 420px;
  background: #0d1418;
  overflow: hidden;
  touch-action: pan-y;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: .8;
  transition: opacity .2s ease, transform .2s ease;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.hero-arrow.prev { left: 6px; }
.hero-arrow.next { right: 6px; }
.hero-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero-arrow.next:hover { transform: translateY(-50%) translateX(3px); }

/* Nasumični citat u donjem lijevom uglu naslovne. Preko fotografije ide blagi
   tamni preliv, da tekst ostane čitljiv i kad je slika svijetla. */
.hero-quote {
  position: absolute;
  left: var(--pad);
  bottom: 34px;
  z-index: 5;
  max-width: 620px;
  margin: 0;
  padding-right: 20px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-quote.is-visible { opacity: 1; transform: none; }
.hero-quote[hidden] { display: none; }

.hero-quote blockquote {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: .005em;
  text-shadow: 0 1px 14px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.5);
}
.hero-quote figcaption {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .82;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.hero-quote figcaption::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  margin: 0 12px 4px 0;
  background: currentColor;
  opacity: .7;
}

/* Preliv drži tekst čitljivim preko svijetlih fotografija. */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}

@media (max-width: 640px) {
  .hero-quote { bottom: 24px; max-width: none; right: var(--pad); left: var(--pad); padding-right: 0; }
  .hero-quote blockquote { font-size: 1rem; margin-bottom: 10px; }
}

/* ==========================================================================
   UNUTRAŠNJE STRANICE
   ========================================================================== */
.page {
  padding-top: calc(var(--header-h) + 84px);
  padding-bottom: 110px;
}
@media (max-width: 900px) { .page { padding-top: calc(var(--header-h) + 46px); padding-bottom: 70px; } }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap.narrow { max-width: calc(var(--readw) + var(--pad) * 2); }

.page-title {
  font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.page-lead {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 46px;
}
.page-title + .rte,
.page-title + .gallery,
.page-title + .cards { margin-top: 46px; }

/* Rich text */
.rte { color: var(--ink-soft); }
/* U širokom .wrap-u tekst se i dalje drži čitljive širine reda. */
.wrap:not(.narrow) > .rte { max-width: var(--readw); }
.rte > *:first-child { margin-top: 0; }
.rte p { margin: 0 0 1.3em; }
.rte h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 3em 0 1.1em;
  padding-bottom: .8em;
  border-bottom: 1px solid var(--line);
}
.rte h2:first-child { margin-top: 0; }
.rte h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 2.2em 0 .8em;
}
.rte strong { color: var(--ink); font-weight: 600; }
.rte ul { margin: 0 0 1.6em; padding: 0; list-style: none; }
.rte ul li {
  position: relative;
  padding: 0 0 .75em 22px;
  margin-bottom: .35em;
  border-bottom: 1px solid #f0f0f0;
}
.rte ul li:last-child { border-bottom: 0; }
.rte ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .78em;
  width: 6px; height: 1px;
  background: var(--ink-muted);
}
.rte a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color .2s ease, border-color .2s ease;
}
.rte a:hover { color: var(--accent); }
.rte sub, .rte sup { font-size: .72em; }

/* Tabele — na uskim ekranima se skroluju unutar svog okvira,
   da stranica nikad ne dobije horizontalni skrol. */
.table-scroll { overflow-x: auto; margin: 2em 0 2.4em; }
.rte table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}
.rte th, .rte td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
}
.rte th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom-color: var(--ink);
  white-space: nowrap;
}
.rte td:first-child {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  color: var(--ink);
  width: 1%;
  padding-right: 26px;
}

/* Oznaka za PDF link */
.pdf::after {
  content: 'PDF';
  display: inline-block;
  margin-left: 8px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  vertical-align: 2px;
  color: #fff;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Kartice (HVAC pregled) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: #fff;
  padding: 34px 30px 40px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background .25s ease;
}
.card:hover { background: var(--bg-alt); }
.card-num {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-muted);
  margin-bottom: 26px;
}
.card-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0 0 12px;
}
.card-desc { font-size: 15px; color: var(--ink-muted); line-height: 1.6; margin: 0; }
.card-more {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Spisak software-a (software.html) ---------- */
.soft-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.soft-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
@media (max-width: 860px) {
  .soft-item { grid-template-columns: 1fr; gap: 30px; padding-bottom: 44px; margin-bottom: 44px; }
}

.soft-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 0 0 6px;
}
.soft-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
/* Oznaka statusa programa: „besplatno" ako je preuzimanje aktivno,
   „u fazi testiranja" ako još nije. Prikazuje se na 35 % izvorne veličine,
   pa je oštra i na ekranima sa dvostrukom gustinom piksela. */
.soft-banner { display: block; margin: 10px 0 22px; }
.soft-banner img { display: block; height: auto; }

.soft-text p { margin: 0 0 1.2em; color: var(--ink-soft); }
.soft-text p:last-of-type { margin-bottom: 0; }

.soft-more {
  display: inline-block;
  margin-top: 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  transition: color .2s ease;
}
.soft-more:hover { color: var(--accent); }

/* Dva linka jedan uz drugi ispod opisa programa — "Saznajte više" i "Preuzmi".
   Razmak drži flex gap; margin-top ostaje na samim linkovima, pa se pri
   prelomu na uskom ekranu drugi red odvoji isto kao i prvi. */
.soft-links { display: flex; flex-wrap: wrap; gap: 0 34px; }

/* Zaglavlje detaljne stranice pojedinog programa (npr. ixpert.html) */
.soft-head { margin: 6px 0 46px; }
.soft-head .soft-title { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.soft-head .soft-sub { margin-bottom: 0; }

/* Objavljeni radovi: dvije kolone, u svakoj naslovnica pa tekst ispod nje. */
.radovi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
  margin: 34px 0 44px;
}
.radovi img { display: block; height: auto; margin-bottom: 18px; border: 2px solid #000; }
.radovi p { margin: 0 0 1em; }
.radovi p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .radovi { grid-template-columns: 1fr; gap: 34px; }
}

/* Slika unutar teksta na detaljnoj stranici */
.rte-figure { margin: 0 0 3.2em; }
.rte-figure img { width: 100%; }
.rte-figure .gallery-item { border: 1px solid var(--line); }
.rte-figure figcaption {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
}

.soft-shot {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}
.soft-shot img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.soft-shot:hover img { transform: scale(1.02); }

/* ---------- Galerija ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.rte .gallery { margin: 2.4em 0 3em; }
.rte .gallery .gallery-item { background: #fff; border: 1px solid var(--line); }
.rte .gallery .gallery-item img { padding: 10px; }
@media (max-width: 640px) {
  .gallery, .gallery.wide { grid-template-columns: 1fr; gap: 18px; }
}
.gallery figure { margin: 0; }
.gallery-item {
  display: block;
  background: var(--bg-alt);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
/* Foto galerija: obična mreža, čita se s lijeva na desno redom kojim su
   fotografije napisane. Svaka zadržava svoje proporcije umjesto da bude
   isječena na zajednički format, pa ispod nižih ostaje prazan prostor. */
.gallery.photos {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .gallery.photos { gap: 14px; } }
/* Teška animacija: dok se ne pokrene, preko sličice stoji poziv na klik. */
.gallery-item[data-gif] { position: relative; }
.gallery-item[data-gif]::after {
  content: attr(data-poziv);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17, 17, 17, .82);
  white-space: nowrap;
  transition: background .2s ease;
}
.gallery-item[data-gif]:hover::after { background: var(--accent); }
.gallery-item[data-gif].je-pokrenuta::after { display: none; }

.gallery figcaption {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  color: #fff;
  opacity: .75;
  transition: opacity .2s ease;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; }
.lightbox-close { top: 18px; right: 22px; width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lightbox-nav svg { width: 26px; height: 26px; }
.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }
@media (max-width: 640px) { .lightbox { padding: 60px 12px; } }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.contact-info dd {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--ink);
}
.contact-info dd a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-info dd a:hover { color: var(--accent); }

.map {
  margin-top: 70px;
  border: 1px solid var(--line);
  line-height: 0;
}
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 640px) { .map iframe { height: 300px; } }

/* Forma */
.form-row { margin-bottom: 26px; }
.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  transition: border-color .2s ease;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus,
.form-row textarea:focus { outline: none; border-bottom-color: var(--ink); }
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 15px 42px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn[disabled]:hover { background: var(--ink); color: #fff; }

/* Dugme unutar .rte sadržaja.
   Pravilo `.rte a` specifičnije je od `.btn`, pa bi inače nametnulo svoju boju
   teksta i donju liniju — dugme bi ispalo crno na crnom, sa tirkiznom crtom
   ispod. Zato se ovdje vraća izgled dugmeta. */
.rte a.btn { color: #fff; border: 1px solid var(--ink); }
.rte a.btn:hover { color: var(--ink); border-color: var(--ink); }

.form-note { font-size: 13px; color: var(--ink-muted); margin-top: 18px; }

/* Polje-mamac protiv spam robota — sklonjeno iz vidnog polja, ali ne
   preko display:none, jer neki roboti takva polja prepoznaju i preskaču. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 18px 0 0;
  min-height: 1.6em;
}
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #c0392b; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px var(--pad);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* Sadržaj koji čitaju Google i čitači ekrana, a ne zauzima mjesto na stranici.
   Namjerno se ne koristi display:none — tako bi ga i pretraživač preskočio. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 300;
  font-size: 12px;
  letter-spacing: .1em;
}
.skip-link:focus { left: 8px; top: 8px; }

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