/* ===========================================================================
   MM Consulting — zajednički stilovi
   Jedan fajl za sve strane i sve jezičke verzije (CG / EN / RU / TR).
   Boje, font i pravila: BRAND.md

   Vizuelni pravac: tamni navy heder sa teal dugmetom uz ivicu, oštri uglovi
   (bez zaobljenja), tanka teal linija iznad naslova, naslov lijevo / opis
   desno, ravne kartice bez okvira i tamni paneli kao akcenat.
   =========================================================================== */

:root {
  /* Primarne boje iz knjige standarda — ne mijenjati */
  --navy:        #091936;
  --teal:        #007B78;

  /* Izvedene radne nijanse (BRAND.md, sekcija 1) */
  --navy-soft:   #16244A;
  --teal-light:  #00A39F;
  --teal-dark:   #005E5C;
  --bg:          #FFFFFF;
  --bg-alt:      #EDEEF0;
  --border:      #D8DBE1;
  --text:        #4A5468;
  --text-strong: #091936;
  --white:       #FFFFFF;

  /* Tekst na navy podlozi */
  --on-navy:      rgba(255, 255, 255, .82);
  --on-navy-dim:  rgba(255, 255, 255, .62);
  --on-navy-line: rgba(255, 255, 255, .16);

  /* Tekst: Inter. Naslovi: Source Serif 4.
     Oba pokrivaju latinicu, latinicu proširenu (č ć ž š đ), turski (ş ğ ı İ)
     i punu ćirilicu — dakle sva četiri jezika sajta.
     Ako se kupi Nexa web licenca, mijenja se samo --font. */
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --maxw: 1200px;
  --gutter: 20px;
}

/* --- Osnova ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }

address { font-style: normal; }

h1, h2, h3 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.25rem; }

p, li {
  /* sprječava da posljednji red pasusa ostane jedna usamljena riječ */
  text-wrap: pretty;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
/* Traka sa brojkama. Sekcija ispod nje ima istu sivu podlogu, pa bi
   njeno gornje odstojanje izgledalo kao produžetak trake — zato ga
   nulujemo i razmak iznad i ispod brojki ostaje jednak. */
.section--stats { padding: 26px 0; }
.section--stats + .section { padding-top: 0; }
.section--dark { background: var(--navy); color: var(--on-navy); }
.section--dark h2 { color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--white); }

/* Teal linija iznad naslova sekcije. Ide preko cijele širine i puni se
   slijeva nadesno kad sekcija dođe u vidno polje. Bez JavaScripta stoji
   puna, pa se ništa ne gubi ako se skripta ne učita. */
.rule {
  display: block;
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(0, 123, 120, .2);
  margin-bottom: 22px;
  overflow: hidden;
}
.rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform-origin: left center;
}

.section--dark .rule,
.hero .rule,
.page-head .rule { background: rgba(0, 163, 159, .22); }
.section--dark .rule::after,
.hero .rule::after,
.page-head .rule::after { background: var(--teal-light); }

/* punjenje kreće tek kad se sekcija otkrije */
.js .section-head .rule::after { transform: scaleX(0); }
.js .section-head.is-visible .rule::after {
  transform: scaleX(1);
  transition: transform 1s cubic-bezier(.25, .8, .3, 1) .1s;
}
@media (prefers-reduced-motion: reduce) {
  .js .section-head .rule::after { transform: scaleX(1); transition: none; }
}

/* Naslov lijevo, prateća rečenica desno */
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 0; }
.section-head p {
  margin: 18px 0 0;
  max-width: 40rem;
}

/* --- Dugmad ------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 34px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--teal-dark); color: var(--white); }

/* Na navy podlozi hover ide ka svjetlijem tealu */
.section--dark .btn:hover,
.hero .btn:hover { background: var(--teal-light); }

/* --- Heder -------------------------------------------------------------- */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo cta"
    "nav  nav";
  background: var(--navy);
  border-bottom: 1px solid var(--on-navy-line);
}

.logo {
  grid-area: logo;
  display: block;
  line-height: 0;
  padding: 12px var(--gutter);
}
/* Koriste se -web varijante logotipa: iste putanje i boje kao original,
   samo je viewBox skresan na sam crtež (original ima ~40% praznog ruba). */
.logo img { width: auto; height: 68px; }

.header-right {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding: 0 var(--gutter) 14px;
}

.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--teal-light); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal-light); }

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
}
.lang a { color: var(--on-navy); text-decoration: none; }
.lang a:hover { color: var(--teal-light); }
.lang .lang-current { color: var(--teal-light); }
.lang .sep { color: var(--on-navy-line); }

/* Teal blok uz samu desnu ivicu, pune visine hedera */
.header-cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 22px;
  transition: background-color .15s ease;
}
.header-cta:hover { background: var(--teal-light); color: var(--white); }

.site-header :focus-visible { outline-color: var(--teal-light); }
.header-cta:focus-visible { outline-color: var(--white); outline-offset: -6px; }

/* --- Hero (početna) ----------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  padding: 64px 0 72px;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  max-width: 38rem;
  margin-bottom: 36px;
}

/* --- Slajder u hero sekciji --------------------------------------------- */

/* Svi slajdovi dijele istu ćeliju mreže, pa visina prati najviši od njih. */
.slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  /* namjerno bez position:relative — da scena unutar slajda ide u odnosu
     na .hero i pokrije ga cijelog */
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide > .container { position: relative; z-index: 2; }

/* Animirana apstrakcija po slajdu. Animacije su unutar samih SVG fajlova,
   pa rade i kad stoje kao pozadinska slika. */
/* Scena se prostire preko cijelog hera, ne samo preko teksta slajda.
   Zato je .slide bez pozicioniranja — najbliži pozicionirani predak je
   .hero, pa se scena razvlači od ivice do ivice i djeluje punije. */
.slide-bg {
  position: absolute;
  inset: 0 -3%;
  background-position: right bottom;
  background-size: cover;
  background-repeat: no-repeat;
  animation: drift 55s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.slide--boravak      .slide-bg { background-image: url("scene-navy.svg"); }
.slide--registracija .slide-bg { background-image: url("scene-registracija.svg"); }
.slide--knjige       .slide-bg { background-image: url("scene-knjige.svg"); }
.slide--licence      .slide-bg { background-image: url("scene-licence.svg"); }

/* Navy zastor preko scene — naslov ostaje na čistoj podlozi,
   a desna strana zadržava boju. Na mobilnom ide odozgo nadolje. */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(9, 25, 54, .96) 0%,
    rgba(9, 25, 54, .86) 38%,
    rgba(9, 25, 54, .55) 70%,
    rgba(9, 25, 54, .25) 100%
  );
}

/* Naslov slajda izgleda kao h1, ali samo prvi slajd nosi pravi h1.
   Selektor mora biti specifičniji od .hero p, inače dobije veličinu pasusa. */
.hero .slide-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}

/* Komande */
.slider-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.slider-dots { display: flex; gap: 10px; }
.slider-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: background-color .2s ease;
}
.slider-dot:hover { background: rgba(255, 255, 255, .5); }
.slider-dot[aria-current="true"] { background: var(--teal-light); }

.slider-arrows { display: flex; gap: 8px; margin-left: auto; }
.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--on-navy-line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.slider-arrow:hover { background: var(--teal); border-color: var(--teal); }
.slider-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.hero :focus-visible { outline-color: var(--teal-light); }

/* Tiša tekstura na užim navy trakama (assets/pattern-navy.svg) */
.cta-band::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: -4% -6%;
  background: url("pattern-navy.svg") center right / cover no-repeat;
  animation: drift 44s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-2.2%, 0, 0); }
}

/* --- Zaglavlje podstrane (kontakt) -------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); margin-bottom: 0; }
.page-head-note {
  margin: 16px 0 0;
  color: var(--on-navy);
  max-width: 36rem;
}

/* --- Brojke ------------------------------------------------------------- */

/* Brojka stoji kao svijetla podloga, natpis se čita preko nje.
   Uspravne crte razdvajaju polja, bez razmaka između njih. */
.stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stats-grid li {
  position: relative;
  overflow: hidden;          /* brojka nikad ne izlazi iz svog polja */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 96px;
  padding: 16px 10px;
}
/* Crte: na užem ekranu polja stoje 2x2, pa treba i uspravna između
   kolona i vodoravna između redova — inače se ne vidi da je jedna traka.
   Na širem ekranu su sve četiri u redu, pa ostaju samo uspravne. */
.stats-grid li:nth-child(even) { border-left: 1px solid var(--border); }
.stats-grid li:nth-child(n+3) { border-top: 1px solid var(--border); }

.stat-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 5.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(9, 25, 54, 0.11);
  pointer-events: none;
  user-select: none;
}
.stat-label {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* --- Usluge ------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 28px 26px;
  border-top: 3px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-top-color: var(--teal);
  transform: translateY(-3px);
}

/* Ikone kategorija — linijske, u teal boji, bez ispune */
.ico {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 20px;
  overflow: visible;
  transition: transform .25s ease;
}
.card--lead .ico { width: 58px; height: 58px; stroke: var(--teal-light); }
.card:hover .ico { transform: scale(1.12); }

/* Akcenat unutar ikone (kvačica, procenat, novčić) */
.ico .accent { stroke: var(--teal-dark); }
.card--lead .ico .accent { stroke: var(--white); }

/* --- Animacija ikona ---------------------------------------------------- */
/* Radi tek kad JavaScript doda .is-visible, pa bez skripte crtež stoji gotov.
   pathLength="1" na elementima omogućava jednu formulu za sve dužine. */

.js .ico .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .ico .u { opacity: 0; transform: translateY(9px); }
.js .ico .dn { opacity: 0; transform: translateY(-11px); }
.js .ico .p { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: 50% 50%; }

.js .card.is-visible .ico .d {
  animation: ico-draw .6s cubic-bezier(.4, .8, .3, 1) forwards;
  animation-delay: calc(.09s * var(--i, 0) + .1s);
}
.js .card.is-visible .ico .u,
.js .card.is-visible .ico .dn {
  animation: ico-up .5s cubic-bezier(.2, .8, .3, 1) forwards;
  animation-delay: calc(.09s * var(--i, 0) + .1s);
}
.js .card.is-visible .ico .p {
  animation: ico-pop .45s cubic-bezier(.2, 1.3, .4, 1) forwards;
  animation-delay: calc(.09s * var(--i, 0) + .1s);
}

@keyframes ico-draw { to { stroke-dashoffset: 0; } }
@keyframes ico-up   { to { opacity: 1; transform: none; } }
@keyframes ico-pop  { to { opacity: 1; transform: scale(1); } }

/* --- Ikone koje se stalno vrte -----------------------------------------
   Akcenti u ikoni ne staju nakon prvog iscrtavanja nego se ponavljaju,
   pa je kartica živa i kad je posjetilac samo gleda. */

.js .ico .loop-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .ico .loop-pulse,
.js .ico .loop-bob,
.js .ico .loop-slide-r,
.js .ico .loop-slide-l { transform-box: fill-box; transform-origin: 50% 50%; }

.js .card.is-visible .ico .loop-draw {
  animation: ico-redraw 3.6s ease-in-out infinite;
  animation-delay: calc(.14s * var(--i, 0));
}
.js .card.is-visible .ico .loop-pulse {
  animation: ico-stamp 2.8s ease-in-out infinite;
  animation-delay: calc(.2s * var(--i, 0) + .5s);
}
.js .card.is-visible .ico .loop-bob {
  animation: ico-bob 2.6s ease-in-out infinite;
  animation-delay: calc(.12s * var(--i, 0) + .3s);
}
.js .card.is-visible .ico .loop-slide-r { animation: ico-slide-r 2.4s ease-in-out infinite; }
.js .card.is-visible .ico .loop-slide-l { animation: ico-slide-l 2.4s ease-in-out infinite .4s; }

@keyframes ico-redraw {
  0%        { stroke-dashoffset: 1; }
  22%       { stroke-dashoffset: 0; }
  74%       { stroke-dashoffset: 0; }
  90%, 100% { stroke-dashoffset: 1; }
}
@keyframes ico-stamp {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(.78); }
  26%      { transform: scale(1.16); }
  42%      { transform: scale(1); }
}
@keyframes ico-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes ico-slide-r {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}
@keyframes ico-slide-l {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-6px); }
}

.card h3 { margin-bottom: .4em; }
.card > p,
.card .lead-head p {
  font-size: .97rem;
  margin-bottom: 1em;
}

/* Prva kartica — specijalnost. Puna širina, tamni panel. */
.card--lead {
  background: var(--navy);
  color: var(--on-navy);
  border-top-color: var(--teal);
  margin-bottom: 24px;
}
.card--lead:hover { border-top-color: var(--teal-light); }
.card--lead h3 { color: var(--white); font-size: 1.5rem; }
.card--lead .lead-head p { margin-bottom: 0; }
.card--lead .lead-body { margin-top: 22px; }
.card--lead .svc-list li::before { background: var(--teal-light); }
.card--lead summary { color: var(--teal-light); }
.card--lead summary:hover { color: var(--white); }
.card--lead :focus-visible { outline-color: var(--teal-light); }

.eyebrow {
  display: block;
  color: var(--teal);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card--lead .eyebrow { color: var(--teal-light); }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li {
  position: relative;
  padding: 0 0 0 20px;
  margin-bottom: 10px;
  font-size: .95rem;
  line-height: 1.5;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 2px;
  background: var(--teal);
}
.svc-list li:last-child { margin-bottom: 0; }

/* Accordion — čist HTML, bez JavaScripta.
   margin-top:auto drži prekidač poravnat pri dnu kartice u mreži. */
.card details { margin-top: auto; padding-top: 16px; }
.card details .svc-list { margin-top: 14px; }

.card summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}
.card summary::-webkit-details-marker { display: none; }
.card summary:hover { color: var(--teal-dark); }

.card summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}
.card details[open] summary::after { transform: translateY(1px) rotate(-135deg); }

.card details[open] .summary-more { display: none; }
.card .summary-less { display: none; }
.card details[open] .summary-less { display: inline; }

/* --- O nama ------------------------------------------------------------- */

.about p { font-size: 1.05rem; max-width: 40rem; }

/* Mreža dosijea kroz koju stalno prolazi talas obrade (assets/about-art.svg).
   Animacija je unutar samog SVG-a, pa radi i kad stoji kao <img>. */
/* Traka ide preko cijele širine ispod naslova i teksta.
   object-fit: cover + slice u SVG-u drže tačke iste veličine na svakoj širini —
   uža strana samo pokaže manje kolona, umjesto da sve smanji. */
.about-art {
  width: 100%;
  height: 88px;
  object-fit: cover;
  margin: 26px 0 0;
}

/* --- Pitanja ------------------------------------------------------------ */

/* Cijela sekcija je tegetna. Svaki red: pitanje lijevo, odgovor desno u
   jednom redu. Duži odgovor se otvara klikom — bez JavaScripta, preko
   <details>. Red mijenja boju kad je miš iznad njega. */
.faq { margin: 0; border-top: 1px solid var(--on-navy-line); }

.faq-item {
  display: block;
  border-bottom: 1px solid var(--on-navy-line);
}
.faq-item > summary,
.faq-item--kratko {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 30px;
  padding: 15px 18px;
  list-style: none;
}
.faq-q, .faq-a { grid-column: 1; }
.faq-item > summary { cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }

/* boja se mijenja kad miš dođe na red */
.faq-item > summary:hover { background: rgba(255, 255, 255, .06); }
.faq-item[open] > summary { background: rgba(255, 255, 255, .04); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: -2px;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.faq-a {
  min-width: 0;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--on-navy);
}
.faq-a strong { color: var(--white); font-weight: 600; }

/* Zatvoreno: samo prvi pasus, skraćen na jedan red. Otvoreno: svi. */
.faq-p { display: none; }
.faq-p:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.faq-item[open] .faq-p { display: block; }
.faq-item[open] .faq-p:first-child { -webkit-line-clamp: unset; overflow: visible; }
.faq-item[open] .faq-p + .faq-p { margin-top: 7px; }

/* strelica koja se okreće — jedini znak da se red otvara */
.faq-item > summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal-light);
  border-bottom: 2px solid var(--teal-light);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

/* Dugme za ostala pitanja */
.faq-more { margin-top: 28px; }
.faq-more > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 14px 30px;
  background: var(--teal);
  color: var(--white);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .15s ease;
}
.faq-more > summary::-webkit-details-marker { display: none; }
.faq-more > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq-more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-more > summary:hover { background: var(--teal-light); }
.faq-more > summary:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.faq-more .summary-less { display: none; }
.faq-more[open] .summary-more { display: none; }
.faq-more[open] .summary-less { display: inline; }
.faq--extra { margin-top: 24px; }

/* --- Poziv na kontakt (traka iznad futera) ------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { margin-bottom: 28px; }

/* --- Newsletter (dno početne) ------------------------------------------- */

.newsletter { background: var(--bg-alt); }
.nl-inner { display: grid; gap: 30px; }
.nl-text h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .5em; }
.nl-text p { margin: 0; max-width: 34rem; }

.nl-label {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-row input {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  padding: 15px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-strong);
}
.nl-row input:hover { border-color: #BFC5CF; }
.nl-row input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.nl-row .btn { flex: 0 0 auto; padding: 15px 30px; }

.nl-alt { margin: 12px 0 0; font-size: .86rem; }
.nl-form .form-status { margin-top: 8px; }

@media (min-width: 900px) {
  .nl-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 56px;
  }
  .nl-form { padding-top: 34px; }
}

/* --- Kontakt ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-item {
  background: var(--bg-alt);
  border-top: 3px solid var(--teal);
  padding: 24px;
}
.contact-item h2 {
  font-family: var(--font);   /* sitne verzalne oznake ostaju u Interu */
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8em;
}
.contact-item p {
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}
.contact-item a { color: var(--text-strong); text-decoration: none; }
.contact-item a:hover { color: var(--teal-dark); text-decoration: underline; }

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.map iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

/* Fotografija kancelarije — teal zavjesa se povlači udesno,
   a slika se istovremeno smiruje sa blagog uvećanja. */
.photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  height: 340px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform-origin: right;
}

.js .photo[data-reveal] { opacity: 1; transform: none; }
.js .photo img { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2, .7, .3, 1); }
.js .photo::after { transform: scaleX(1); transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.js .photo.is-visible img { transform: scale(1); }
.js .photo.is-visible::after { transform: scaleX(0); }

/* Forma */
.form { max-width: 40rem; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.field .optional { font-weight: 400; color: var(--text); }

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-strong);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 13px 15px;
}
.field textarea { min-height: 160px; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: #BFC5CF; }

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

/* Dva načina slanja — WhatsApp je glavni jer radi na svakom telefonu,
   e-mail je za one koji radije pišu poštom. */
.form-send {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.form-send .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
/* Ikona je vezana za veličinu slova u dugmetu, ne za fiksne piksele —
   tako ostaje u srazmjeri ako se tekst ikad promijeni. */
.btn--wa svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex: none;
}
.btn--alt {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn--alt:hover {
  background: var(--bg-alt);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.form-hint {
  margin: 14px 0 0;
  font-size: .88rem;
  color: var(--text);
}

.form-status {
  margin: 10px 0 0;
  font-size: .95rem;
  color: var(--teal-dark);
  font-weight: 600;
}
.form-status:empty { display: none; }

@media (max-width: 519px) {
  .form-send { flex-direction: column; }
  .form-send .btn { width: 100%; }
}

/* --- Novosti ------------------------------------------------------------ */

.news-list { max-width: 46rem; }

/* --- Rubrika: kartica po vijesti (slika + naslov) ----------------------- */

.news-cards { display: grid; gap: 22px; }

.news-card { background: var(--bg-alt); }
.news-card-link {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.news-card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--border);
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.news-card-link:hover .news-card-img img { transform: scale(1.04); }

.news-card-text {
  display: block;
  padding: 22px 24px 26px;
  border-top: 3px solid var(--teal);
}
.news-card-text time {
  display: block;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-card-text h2 {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.3;
  margin: 0 0 14px;
}
.news-card-link:hover h2 { color: var(--teal-dark); }
.news-card-more {
  display: inline-block;
  color: var(--teal);
  font-size: .86rem;
  font-weight: 700;
}
.news-card-link:hover .news-card-more { color: var(--teal-dark); }
.news-card-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* --- Strana jedne vijesti ----------------------------------------------- */

.article { padding: 40px 0 72px; }
.article .container { max-width: 860px; }

.article-back { font-size: .88rem; margin-bottom: 26px; }
.article-back a { text-decoration: none; font-weight: 600; }

.article-date {
  display: block;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: .7em;
}
.article-img { margin: 0 0 34px; }
.article-img img { width: 100%; height: auto; }

/* Mjera reda je namjerno oko 68 znakova — duži red se teško prati. */
.article-body { max-width: 40rem; }
.article-body p {
  margin: 0 0 1.15em;
  line-height: 1.72;
  hyphens: auto;
}
.article-body h3 {
  font-size: 1.22rem;
  margin: 1.9em 0 .55em;
  padding-top: .55em;
  border-top: 1px solid var(--border);
}
.article-body ul {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}
.article-body li { margin-bottom: .5em; line-height: 1.65; }
.article-body li::marker { color: var(--teal); }
.article-body p:last-child { margin-bottom: 0; }

.article-share {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.news-item {
  padding: 30px 0 34px;
  border-top: 1px solid var(--border);
}
.news-item:first-of-type { border-top: 0; padding-top: 0; }

.news-item time {
  display: block;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.news-item h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .5em; }

/* Međunaslov u tekstu vijesti — piše se kao red koji počinje sa "## " */
.news-item h3 {
  font-size: 1.18rem;
  margin: 1.7em 0 .5em;
  padding-top: .2em;
  border-top: 1px solid var(--border);
}
.news-item h3:first-of-type { margin-top: 1.5em; }

/* Nabrajanje — red koji počinje sa "- " */
.news-item ul {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}
.news-item ul li { margin-bottom: .45em; }
.news-item ul li::marker { color: var(--teal); }

.news-item img {
  width: 100%;
  height: auto;
  margin: 22px 0;
}

/* Poruka „nema vijesti" sama nestaje čim se doda prva vijest */
.news-empty { color: var(--text); }
.news-item ~ .news-empty { display: none; }

/* Dijeljenje — dugmad pravi assets/anim.js, bez stranih skripti */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.share-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: 4px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.share-btn svg { width: 19px; height: 19px; fill: currentColor; }
.share-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.share-done {
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.share-done:empty { display: none; }

@media (min-width: 700px) {
  .news-item { padding: 38px 0 42px; }
}

/* --- WhatsApp ----------------------------------------------------------- */

/* Plutajuće dugme, prati stranu u donjem desnom uglu */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(9, 25, 54, .28);
  transition: background-color .15s ease, transform .2s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: scale(1.06);
}

/* Red u kartici Telefon */
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--teal) !important;
  text-decoration: none;
}
.wa-link svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.wa-link:hover { color: var(--teal-dark) !important; text-decoration: underline; }

@media (min-width: 700px) {
  .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; }
  .wa-float svg { width: 32px; height: 32px; }
}

/* --- Futer -------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0 28px;
  font-size: .95rem;
}
.cta-band + .site-footer { padding-top: 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 44px;
  border-top: 1px solid var(--on-navy-line);
}

/* Logotip i mapa u podnožju dijele istu visinu — drži ih jedna mjera,
   pa ostaju poravnati i ako se kasnije mijenja. */
.site-footer { --footer-h: 190px; }
.site-footer img { height: var(--footer-h); width: auto; }

/* Mapa u podnožju početne. Sjeda u prazninu između logotipa i kontakta,
   bez diranja širina ostalih kolona. Zatamnjena je da ne odskače od
   navy podloge. */
.footer-map {
  /* na telefonu ide punom širinom kolone, na širem ekranu ima svoju mjeru
     da ne razvlači ostale kolone */
  width: 100%;
  height: var(--footer-h);
  border: 1px solid var(--on-navy-line);
  overflow: hidden;
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.35) brightness(.86) contrast(1.05);
  transition: filter .3s ease;
}
.footer-map:hover iframe { filter: none; }

.site-footer h2 {
  color: var(--white);
  font-family: var(--font);   /* sitne verzalne oznake ostaju u Interu */
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.site-footer p { margin-bottom: .35em; }

.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--teal-light); }

.footer-legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--on-navy-line);
  font-size: .84rem;
  color: var(--on-navy-dim);
}
.footer-legal p { margin-bottom: 0; }

/* --- Veći ekrani -------------------------------------------------------- */

@media (min-width: 700px) {
  :root { --gutter: 32px; }

  .section { padding: 88px 0; }
  .section--stats { padding: 30px 0; }
  .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .article { padding: 52px 0 88px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid li { min-height: 100px; }
  .stats-grid li + li { border-left: 1px solid var(--border); }
  .stats-grid li:nth-child(n+3) { border-top: 0; }
  .hero { padding: 88px 0 88px; }
  .hero h1,
  .hero .slide-title { max-width: 22ch; }
  .slide::after {
    background: linear-gradient(
      100deg,
      rgba(9, 25, 54, .97) 0%,
      rgba(9, 25, 54, .93) 30%,
      rgba(9, 25, 54, .55) 60%,
      rgba(9, 25, 54, .12) 88%
    );
  }
  .page-head { padding: 76px 0; }
  .map iframe { height: 440px; }
  .photo { height: 440px; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 32px 30px; }
  .cta-band { padding: 76px 0; }

  /* Spisak u istaknutoj kartici ide u kolone da popuni punu širinu */
  .card--lead .svc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 12px;
  }
  .card--lead .svc-list li { margin-bottom: 0; }

  /* Futer: tri bloka razvučena preko cijele širine */
  .footer-inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    gap: 48px;
  }
  /* sa mapom je kolona više; ostale zadržavaju svoju širinu */
  .footer-inner:has(.footer-map) { grid-template-columns: auto auto auto auto; }
  .footer-map { width: 304px; }
}

@media (min-width: 900px) {
  /* Heder u jednom redu — logo, navigacija, teal blok uz ivicu */
  .site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav cta";
    align-items: stretch;
  }
  .logo { padding: 10px var(--gutter); align-self: center; }
  .logo img { height: 88px; }
  .header-right {
    justify-content: flex-end;
    gap: 36px;
    padding: 0 32px 0 0;
  }
  .header-cta { padding: 0 32px; font-size: .88rem; }

  /* Naslov lijevo, prateća rečenica desno */
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: end;
    margin-bottom: 48px;
  }
  /* linija ide preko obje kolone, od ivice do ivice */
  .section-head > .rule { grid-column: 1 / -1; }
  .section-head p { margin: 0 0 .35em; }

  /* Naslov je kratak, tekst dug — pa je ispod naslova ostajala prazna
     kolona, a šara je stajala kao odvojena traka na dnu. Sada šara sjeda
     pod naslov i razvlači se do dna teksta: nema praznine, a obje kolone
     se završavaju u istoj liniji. */
  .about {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
  }
  .about-side { grid-column: 1; grid-row: 1; }
  .about-text { grid-column: 2; grid-row: 1 / span 2; }
  .about-art  {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;      /* uzme tačno onoliko koliko tekst desno ostavi */
    height: auto;
    min-height: 64px;
    margin: 24px 0 0;
  }
  .about h2 { margin-bottom: 0; }

  /* Pitanje lijevo, odgovor desno u istom redu, strelica na kraju. */
  .faq-item > summary,
  .faq-item--kratko {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) auto;
    align-items: baseline;
    column-gap: 34px;
    padding: 13px 18px;
  }
  .faq-q { grid-column: 1; }
  .faq-a { grid-column: 2; }
  .faq-item > summary::after { grid-column: 3; grid-row: 1; align-self: center; }

  .cta-band .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 56px;
    align-items: center;
  }
  .cta-band h2 { margin-bottom: 12px; }
  .cta-band p { margin-bottom: 0; }
}

@media (min-width: 980px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .card--lead { padding: 40px 36px; }

  /* Istaknuta kartica: zaglavlje preko cijele širine, spisak u tri kolone
     ispod njega — bez praznog ugla koji ostaje kod podjele na dvije kolone. */
  .card--lead .lead-head { max-width: 62ch; }
  .card--lead .lead-body { margin-top: 32px; }
  .card--lead .svc-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
  }
}

/* --- Animacije ---------------------------------------------------------- */

/* Ulazak sadržaja slajda — ponavlja se pri svakoj promjeni slajda */
.slide.is-active .rule        { animation: rule-in .7s cubic-bezier(.2, .7, .3, 1) .05s backwards; }
.slide.is-active h1,
.slide.is-active .slide-title { animation: rise .7s cubic-bezier(.2, .7, .3, 1) .12s backwards; }
.slide.is-active p            { animation: rise .7s cubic-bezier(.2, .7, .3, 1) .20s backwards; }
.slide.is-active .slide-title { animation-delay: .12s; }
.slide.is-active .btn         { animation: rise .7s cubic-bezier(.2, .7, .3, 1) .28s backwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes rule-in {
  from { opacity: 0; width: 0; }
}

/* Otkrivanje sekcija pri skrolovanju.
   Skriva se samo ako JavaScript radi (klasa .js), da sadržaj ostane
   vidljiv i kad skripta ne prođe. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Blago kaskadno pojavljivanje kartica i brojki */
.js .cards-grid > *:nth-child(2),
.js .stats-grid > *:nth-child(2) { transition-delay: .07s; }
.js .cards-grid > *:nth-child(3),
.js .stats-grid > *:nth-child(3) { transition-delay: .14s; }
.js .cards-grid > *:nth-child(4),
.js .stats-grid > *:nth-child(4) { transition-delay: .21s; }
.js .cards-grid > *:nth-child(5) { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .slide-bg,
  .cta-band::before,
  .page-head::before { animation: none; }
  .slide { transition: none; }
  .card:hover { transform: none; }
  .card:hover .ico { transform: none; }
  .wa-float:hover { transform: none; }
  .js .photo img { transform: none; }
  .js .photo::after { transform: scaleX(0); }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .ico .d,
  .js .ico .loop-draw { stroke-dashoffset: 0; }
  .js .ico .u,
  .js .ico .dn,
  .js .ico .p,
  .js .ico .loop-pulse,
  .js .ico .loop-bob,
  .js .ico .loop-slide-r,
  .js .ico .loop-slide-l { opacity: 1; transform: none; }
}
