/* base */
:root {
  --osnova: #f3f4f6;
  --bijela: #ffffff;
  --zelena: #0d3b2e;
  --zelena-2: #1c5242;
  --narancasta: #ff7a3d;
  --narancasta-sv: #ff9663;
  --narancasta-tm: #e8662a;
  --siva: #7b828a;
  --tekst-2: #3e5a51;
  --linija: #d6dadf;
  --svijetlo-tm: #c9d8d1;
  --greska: #a1271d;
  --naslovi: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  --tekst: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
  --zaglavlje-h: 76px;
  --kolacic-h: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--zaglavlje-h) + 16px);
}

body {
  margin: 0;
  background: var(--osnova);
  color: var(--zelena);
  font-family: var(--tekst);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--naslovi);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 .6em;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.02rem; margin-bottom: .35em; }

p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { padding-left: 1.2em; }
li { max-width: 66ch; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
a:hover { text-decoration-thickness: 2px; }
a:active { text-decoration-color: var(--narancasta); }

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

.skriveno-sv {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.preskoci-sv {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--zelena);
  color: var(--osnova);
  border-radius: 6px;
  font-weight: 600;
}
.preskoci-sv:focus { top: 12px; }
.preskoci-sv:focus-visible { outline-color: var(--narancasta); }

.okvir-sv {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.mreza-sv {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
}
.lijevo-sv { grid-column: 1 / span 7; min-width: 0; }
.desno-sv { grid-column: 8 / span 5; min-width: 0; }

/* buttons */
.gumb-sv, .gumb-tm, .obrub-sv, .obrub-tm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--tekst);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid var(--narancasta);
  cursor: pointer;
  transition: border-radius 260ms ease, background-color 200ms ease, border-color 200ms ease, transform 150ms ease;
}
.gumb-sv, .gumb-tm {
  background: var(--narancasta);
  color: var(--zelena);
}
.gumb-sv:hover, .gumb-tm:hover {
  border-radius: 999px;
  background: var(--narancasta-sv);
  border-color: var(--narancasta-sv);
}
.gumb-sv:active, .gumb-tm:active {
  transform: translateY(1px);
  background: var(--narancasta-tm);
  border-color: var(--narancasta-tm);
}
.gumb-sv:focus-visible, .obrub-sv:focus-visible {
  outline: 3px solid var(--zelena);
  outline-offset: 3px;
}
.gumb-tm:focus-visible, .obrub-tm:focus-visible {
  outline: 3px solid var(--osnova);
  outline-offset: 3px;
}
.obrub-sv, .obrub-tm {
  background: transparent;
}
.obrub-sv { color: var(--zelena); border-color: var(--zelena); }
.obrub-tm { color: var(--osnova); border-color: var(--osnova); }
.obrub-sv:hover { border-radius: 999px; background: rgba(13, 59, 46, .07); }
.obrub-tm:hover { border-radius: 999px; background: rgba(243, 244, 246, .1); }
.obrub-sv:active { transform: translateY(1px); background: rgba(13, 59, 46, .16); }
.obrub-tm:active { transform: translateY(1px); background: rgba(243, 244, 246, .2); }
.gumb-sv[disabled], .gumb-tm[disabled] { cursor: progress; opacity: .7; }

/* header */
.zaglavlje-sv, .zaglavlje-tm {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--zaglavlje-h);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.zaglavlje-sv {
  background: var(--osnova);
  color: var(--zelena);
  border-bottom-color: var(--linija);
}
.zaglavlje-tm {
  background: transparent;
  color: var(--bijela);
}
.zaglavlje-tm :focus-visible,
.zaglavlje-tm .gumb-sv:focus-visible { outline-color: var(--bijela); }

.traka-sv {
  height: 100%;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.znak-tm {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: var(--zelena);
  color: var(--osnova);
  border-radius: 12px;
  font-family: var(--naslovi);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 200ms ease;
}
.znak-tm img { width: 38px; height: 38px; border-radius: 8px; }
.znak-tm:hover { background: var(--zelena-2); }
.znak-tm:active { background: #082a20; }

.izbornik-sv ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.izbornik-sv li { max-width: none; }
.izbornik-sv a {
  display: inline-block;
  padding: 6px 0;
  font-size: .97rem;
  text-decoration: none;
  text-underline-offset: 8px;
}
.izbornik-sv a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.izbornik-sv a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.radnje-sv {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.radnje-sv .gumb-sv { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.telefon-sv {
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.telefon-sv:hover { text-decoration: underline; }

.prekidac-sv {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  font: 600 .95rem/1 var(--tekst);
  color: inherit;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
  transition: border-radius 260ms ease, background-color 200ms ease, transform 150ms ease;
}
.prekidac-sv:hover { border-radius: 999px; background: rgba(127, 127, 127, .14); }
.prekidac-sv:active { transform: translateY(1px); background: rgba(127, 127, 127, .26); }
.prekidac-sv svg { width: 18px; height: 18px; }

/* mobile menu */
.ladica-sv {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 80;
  width: min(380px, 88vw);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px;
  background: var(--osnova);
  color: var(--zelena);
  box-shadow: -12px 0 40px rgba(13, 59, 46, .2);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 200ms ease, visibility 0s linear 200ms;
}
.ladica-sv.otvoreno-sv {
  transform: none;
  visibility: visible;
  transition: transform 200ms ease;
}
.ladica-sv ul {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.ladica-sv ul a {
  display: block;
  padding: 10px 0;
  font-family: var(--naslovi);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-underline-offset: 8px;
}
.ladica-sv ul a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ladica-sv ul a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.zatvori-sv {
  align-self: flex-end;
  min-height: 44px;
  padding: 0 16px;
  font: 600 .95rem/1 var(--tekst);
  color: var(--zelena);
  background: transparent;
  border: 2px solid var(--zelena);
  border-radius: 6px;
  cursor: pointer;
  transition: border-radius 260ms ease, background-color 200ms ease, transform 150ms ease;
}
.zatvori-sv:hover { border-radius: 999px; background: rgba(13, 59, 46, .07); }
.zatvori-sv:active { transform: translateY(1px); background: rgba(13, 59, 46, .16); }
.dno-sv {
  margin-top: auto;
  display: grid;
  gap: 14px;
}
.dno-sv .telefon-sv { font-size: 1.15rem; }
.zastor-sv {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(13, 59, 46, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.zastor-sv.otvoreno-sv {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease;
}

/* hero */
.junak-tm {
  position: relative;
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr min(1200px, calc(100% - 48px)) 1fr;
  align-items: end;
  padding: calc(var(--zaglavlje-h) + 40px) 0 48px;
  background: var(--zelena);
  overflow: hidden;
}
.junak-tm::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(5, 22, 17, .66), rgba(5, 22, 17, 0));
  z-index: 1;
  pointer-events: none;
}
.pozadina-tm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ploca-sv {
  grid-column: 2;
  position: relative;
  z-index: 2;
  max-width: 720px;
  min-width: 0;
  padding: 40px 44px 36px;
  background: var(--osnova);
  color: var(--zelena);
  border-radius: 20px;
}
.ploca-sv h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: .38em;
}
.rizik-sv {
  font-size: 1.1rem;
  color: var(--tekst-2);
  max-width: 54ch;
  margin-bottom: 0;
}
.akcije-sv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 26px;
}
.akcije-sv .telefon-sv { font-size: 1.08rem; }

/* reveal */
.skripta-sv .pojava-sv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.skripta-sv .pojava-sv.vidljivo-sv {
  opacity: 1;
  transform: none;
}

/* steps */
.koraci-sv { padding: 136px 0 0; }
.uvodni-sv { align-items: end; margin-bottom: 72px; }
.uvodni-sv h2 { margin: 0; }
.uvodni-sv p { color: var(--tekst-2); margin: 0; }
.niz-sv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 88px;
}
.niz-sv > li { max-width: none; }
.korak-sv { align-items: center; row-gap: 28px; }
.korak-sv h3 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); margin-bottom: .8em; }
.strane-sv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.strane-sv > div { min-width: 0; }
.strane-sv h4 { color: var(--tekst-2); }
.strane-sv p { margin: 0; }
.strane-sv > div + div {
  padding-left: 24px;
  border-left: 2px solid var(--narancasta);
}
.slika-sv {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}
.korak-sv figure { margin: 0; }

.pisano-sv {
  margin-top: 120px;
  padding-top: 56px;
  border-top: 1px solid var(--linija);
  row-gap: 24px;
}
.pisano-sv > div:first-child { grid-column: 1 / span 4; min-width: 0; }
.pisano-sv h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pisano-sv > div:first-child p { color: var(--tekst-2); }
.dogovor-sv {
  grid-column: 6 / span 7;
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.dogovor-sv > div {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linija);
}
.dogovor-sv dt { font-family: var(--naslovi); font-weight: 700; font-size: 1.1rem; }
.dogovor-sv dd { margin: 0; max-width: 60ch; }

.sirina-sv {
  margin: 112px 0 0;
}
.sirina-sv img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  border-radius: 0;
}

/* scale */
.ljestvica-sv { padding: 120px 0 128px; }
.ljestvica-sv .mreza-sv { align-items: start; row-gap: 24px; }
.biljeska-sv {
  padding: 26px 28px;
  background: var(--bijela);
  border-radius: 20px;
}
.biljeska-sv p:last-child { margin-bottom: 0; }

.mjerilo-sv {
  margin-top: 56px;
  padding: 44px 48px 40px;
  background: var(--bijela);
  border-radius: 20px;
}
.vrh-sv {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.vrh-sv label { font-weight: 600; font-size: 1.05rem; }
.vrh-sv output {
  font-family: var(--naslovi);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.staza-sv {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}
.staza-sv::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  background: #e3e6ea;
  border-radius: 999px;
}
.ispuna-sv {
  position: absolute;
  left: 0;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  width: 13%;
  background-color: var(--zelena);
  border-radius: 999px;
  transition: background-color 350ms ease;
}
.staza-sv input[type="range"] {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.staza-sv input[type="range"]::-webkit-slider-runnable-track { height: 12px; background: transparent; }
.staza-sv input[type="range"]::-moz-range-track { height: 12px; background: transparent; }
.staza-sv input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--bijela);
  border: 3px solid var(--zelena);
  box-shadow: 0 2px 8px rgba(13, 59, 46, .25);
}
.staza-sv input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bijela);
  border: 3px solid var(--zelena);
  box-shadow: 0 2px 8px rgba(13, 59, 46, .25);
}
.staza-sv input[type="range"]:focus-visible {
  outline: 3px solid var(--zelena);
  outline-offset: 4px;
  border-radius: 999px;
}

.pojas-sv {
  display: flex;
  gap: 3px;
  height: 6px;
  margin: 10px 0 0;
}
.pojas-sv span { display: block; border-radius: 999px; min-width: 0; }
.pojas-sv span:nth-child(1) { background: var(--zelena); }
.pojas-sv span:nth-child(2) { background: var(--narancasta); }
.pojas-sv span:nth-child(3) { background: var(--siva); }

.zone-sv {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
}
.zone-sv li {
  min-width: 0;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-radius: 10px;
  transition: background-color 200ms ease;
}
.zone-sv li > span:first-child {
  width: 14px; height: 14px;
  border-radius: 50%;
  align-self: center;
}
.zone-sv li strong { font-family: var(--naslovi); }
.zone-sv li small { grid-column: 2; color: var(--tekst-2); font-size: .92rem; }
.zone-sv li:nth-child(1) > span:first-child { background: var(--zelena); }
.zone-sv li:nth-child(2) > span:first-child { background: var(--narancasta); }
.zone-sv li:nth-child(3) > span:first-child { background: var(--siva); }
.zone-sv li[aria-current] strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.ishod-sv {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--linija);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
}
.ishod-sv p { margin: 0 0 .4em; font-size: 1.08rem; }
.ishod-sv a { font-weight: 600; }
.potvrda-sv { margin: 12px 0 0; min-height: 1.6em; color: var(--tekst-2); font-size: .95rem; }

/* pricing */
.cjenik-tm {
  padding: 136px 0 128px;
  background: var(--zelena);
  color: var(--osnova);
}
.cjenik-tm :focus-visible { outline-color: var(--osnova); }
.cjenik-tm .mreza-sv { row-gap: 12px; margin-bottom: 48px; }
.cjenik-tm h2 { grid-column: 2 / span 7; min-width: 0; margin: 0; }
.cjenik-tm .mreza-sv p { grid-column: 2 / span 7; min-width: 0; color: var(--svijetlo-tm); margin: 0; }
.legenda-tm {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--svijetlo-tm);
  font-size: .95rem;
  max-width: none;
}
.tocka-tm {
  display: inline-block;
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--narancasta);
  vertical-align: middle;
}
.tablica-tm { overflow-x: auto; }
.tablica-tm table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.tablica-tm th, .tablica-tm td {
  text-align: left;
  vertical-align: top;
  padding: 20px 18px 20px 0;
  border-bottom: 1px solid rgba(243, 244, 246, .2);
}
.tablica-tm thead th {
  font-size: .88rem;
  font-weight: 600;
  color: var(--svijetlo-tm);
  padding-bottom: 12px;
  border-bottom-color: rgba(243, 244, 246, .45);
}
.tablica-tm tbody th {
  font-family: var(--naslovi);
  font-size: 1.1rem;
  font-weight: 700;
  width: 30%;
}
.tablica-tm tbody th .tocka-tm { margin-right: 10px; }
.tablica-tm td:last-child, .tablica-tm th:last-child {
  text-align: right;
  white-space: nowrap;
  padding-right: 0;
  font-variant-numeric: tabular-nums;
}
.tablica-tm td:last-child { font-family: var(--naslovi); font-weight: 700; font-size: 1.15rem; }
.granice-tm {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(243, 244, 246, .08);
  max-width: none;
}
.granice-tm:target { background: rgba(255, 122, 61, .18); }
.poseban-tm { margin: 22px 0 0; color: var(--svijetlo-tm); }
.cjenik-tm .akcije-sv { margin-top: 36px; }

/* form */
.upit-sv { padding: 152px 0 120px; }
.upit-sv .mreza-sv { row-gap: 48px; align-items: start; }
.upit-sv h2 { margin-bottom: .35em; }
.upit-sv .lijevo-sv > p { color: var(--tekst-2); }
.obrazac-sv {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.dvoje-sv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.polje-sv { display: grid; gap: 6px; min-width: 0; }
.polje-sv label { font-weight: 600; }
.polje-sv small { color: var(--tekst-2); font-size: .9rem; }
.polje-sv input, .polje-sv textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  color: var(--zelena);
  background: var(--bijela);
  border: 1.5px solid var(--siva);
  border-radius: 10px;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.polje-sv textarea { min-height: 150px; resize: vertical; }
.polje-sv input:hover, .polje-sv textarea:hover { border-color: var(--zelena); }
.polje-sv input:focus-visible, .polje-sv textarea:focus-visible {
  outline: 3px solid var(--zelena);
  outline-offset: 2px;
  border-color: var(--zelena);
}
.polje-sv [aria-invalid="true"] { border-color: var(--greska); background: #fff8f7; }
.greska-sv { margin: 0; color: var(--greska); font-size: .92rem; }
.greska-sv:empty { display: none; }
.privola-sv {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.privola-sv input {
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--zelena);
  cursor: pointer;
}
.privola-sv label { font-weight: 400; }
.privola-sv .greska-sv { grid-column: 2; }
.sazetak-sv {
  padding: 14px 18px;
  border-left: 4px solid var(--greska);
  background: #fdeeec;
  border-radius: 0 10px 10px 0;
  color: var(--greska);
  font-weight: 600;
}
.sazetak-sv:empty { display: none; }
.obrazac-sv .gumb-sv { justify-self: start; min-width: 220px; }

.kontakt-sv {
  padding: 30px 30px 26px;
  background: var(--bijela);
  border-radius: 20px;
}
.kontakt-sv dl { margin: 0; display: grid; gap: 14px; }
.kontakt-sv dt { font-size: .9rem; color: var(--tekst-2); }
.kontakt-sv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.autor-sv {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.monogram-sv {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--zelena);
  color: var(--osnova);
  font-family: var(--naslovi);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .02em;
}
.autor-sv p { margin: 0 0 .6em; font-size: .98rem; }
.autor-sv strong { display: block; font-family: var(--naslovi); }
.autor-sv p span { color: var(--tekst-2); font-size: .92rem; }

/* faq */
.pitanja-sv { padding: 104px 0 144px; }
.pitanja-sv > .okvir-sv > h2 { text-align: center; margin: 0 auto 56px; max-width: 22ch; }
.pitanja-sv .mreza-sv { align-items: start; row-gap: 40px; }
.pitanja-sv details { border-bottom: 1px solid var(--linija); }
.pitanja-sv details:first-child { border-top: 1px solid var(--linija); }
.pitanja-sv summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-family: var(--naslovi);
  font-size: 1.14rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: color 200ms ease;
}
.pitanja-sv summary::-webkit-details-marker { display: none; }
.pitanja-sv summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}
.pitanja-sv details[open] summary::after { content: "\2013"; }
.pitanja-sv summary:hover { color: var(--zelena-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pitanja-sv summary:active { color: var(--tekst-2); }
.pitanja-sv details p { padding-bottom: 8px; }
.pitanja-sv figure { margin: 0; }

/* floating */
.plutajuce-sv { display: none; }

/* cookie */
.kolacic-sv {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  max-width: 760px;
  max-height: 25vh;
  margin-inline: auto;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 18px;
  background: var(--bijela);
  color: var(--zelena);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(13, 59, 46, .2);
}
.kolacic-sv[hidden] { display: none; }
.kolacic-sv p { flex: 1 1 320px; margin: 0; font-size: .94rem; }
.kolacic-sv div { display: flex; gap: 10px; }
.kolacic-sv .obrub-sv { min-height: 42px; padding: 0 18px; font-size: .94rem; }

/* footer */
.podnozje-sv {
  padding: 72px 0 40px;
  border-top: 1px solid var(--linija);
  font-size: .96rem;
}
.podnozje-sv .mreza-sv { row-gap: 36px; }
.podnozje-sv .lijevo-sv { grid-column: 1 / span 5; }
.stupac-sv { min-width: 0; }
.stupac-sv:nth-child(2) { grid-column: 7 / span 3; }
.stupac-sv:nth-child(3) { grid-column: 10 / span 3; }
.podnozje-sv h2 {
  font-size: 1rem;
  margin-bottom: .8em;
}
.podnozje-sv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.podnozje-sv p { margin-bottom: .5em; }
.ime-sv { font-family: var(--naslovi); font-weight: 700; font-size: 1.2rem; margin-bottom: .3em; }
.potpis-sv {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--linija);
  color: var(--tekst-2);
  font-size: .9rem;
}

/* inner pages */
.stranica-sv { padding: calc(var(--zaglavlje-h) + 56px) 0 120px; }
.mrvice-sv ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  color: var(--tekst-2);
}
.mrvice-sv li + li::before { content: "/"; margin-right: 6px; }
.clanak-sv { width: min(780px, 100%); }
.clanak-sv h1, .naslov-sv { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; }
.clanak-sv h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-top: 1.6em; }
.clanak-sv h3 { font-size: 1.2rem; margin-top: 1.4em; }
.uvod-sv { font-size: 1.15rem; color: var(--tekst-2); }
.sadrzaj-sv {
  margin: 32px 0 40px;
  padding: 24px 28px;
  background: var(--bijela);
  border-radius: 20px;
}
.sadrzaj-sv h2 { font-size: 1.05rem; margin: 0 0 .6em; }
.sadrzaj-sv ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.sadrzaj-sv li { margin-bottom: 6px; break-inside: avoid; }
.dio-sv { padding-top: 8px; }
.dio-sv p { max-width: 64ch; }
.okvirni-sv {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--narancasta);
  background: var(--bijela);
  border-radius: 0 20px 20px 0;
}
.okvirni-sv p:last-child { margin-bottom: 0; }
.tablica-sv { overflow-x: auto; margin: 24px 0 32px; }
.tablica-sv table { width: 100%; border-collapse: collapse; }
.tablica-sv th, .tablica-sv td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--linija);
}
.tablica-sv thead th { font-size: .9rem; color: var(--tekst-2); font-weight: 600; }
.tablica-sv tbody th { font-family: var(--naslovi); font-weight: 700; }
.redoslijed-sv { padding-left: 1.4em; }
.redoslijed-sv li { margin-bottom: 14px; padding-left: 6px; }
.redoslijed-sv li::marker { font-family: var(--naslovi); font-weight: 700; }
.kontakti-sv { align-items: start; row-gap: 48px; }
.kontakti-sv .lijevo-sv { grid-column: 1 / span 5; }
.kontakti-sv .desno-sv { grid-column: 7 / span 6; }
.dalje-sv {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.dalje-sv a { font-weight: 600; }

/* breakpoints */
@media (max-width: 1280px) {
  .izbornik-sv ul { gap: 22px; }
  .ploca-sv { max-width: 660px; }
}

@media (max-width: 1100px) {
  .radnje-sv .telefon-sv { display: none; }
  .mreza-sv { column-gap: 24px; }
  .mjerilo-sv { padding: 36px 32px; }
  .pisano-sv > div:first-child { grid-column: 1 / span 5; }
  .dogovor-sv { grid-column: 6 / span 7; }
  .cjenik-tm h2, .cjenik-tm .mreza-sv p { grid-column: 1 / span 9; }
}

@media (max-width: 900px) {
  :root { --zaglavlje-h: 68px; }
  .traka-sv { grid-template-columns: minmax(0, 1fr) auto; }
  .izbornik-sv, .radnje-sv { display: none; }
  .prekidac-sv { display: inline-flex; }
  .lijevo-sv, .desno-sv,
  .pisano-sv > div:first-child, .dogovor-sv,
  .cjenik-tm h2, .cjenik-tm .mreza-sv p,
  .podnozje-sv .lijevo-sv, .stupac-sv:nth-child(2), .stupac-sv:nth-child(3),
  .kontakti-sv .lijevo-sv, .kontakti-sv .desno-sv { grid-column: 1 / -1; }
  .podnozje-sv .mreza-sv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podnozje-sv .lijevo-sv { grid-column: 1 / -1; }
  .stupac-sv:nth-child(2) { grid-column: 1; }
  .stupac-sv:nth-child(3) { grid-column: 2; }
  .korak-sv figure { max-width: 620px; }
  .uvodni-sv { row-gap: 18px; margin-bottom: 56px; }
  .pitanja-sv figure { max-width: 460px; }
  .koraci-sv { padding-top: 112px; }
  .niz-sv { gap: 72px; }
}

@media (max-width: 768px) {
  .junak-tm {
    display: block;
    min-height: 0;
    padding: 0;
    background: var(--osnova);
  }
  .junak-tm::before { height: 150px; }
  .pozadina-tm {
    position: relative;
    height: 45svh;
    min-height: 230px;
  }
  .ploca-sv {
    max-width: none;
    padding: 24px 24px 40px;
    border-radius: 0;
  }
  .rizik-sv { font-size: 1.02rem; }
  .akcije-sv { margin-top: 20px; }

  .koraci-sv { padding-top: 88px; }
  .ljestvica-sv { padding: 88px 0 96px; }
  .cjenik-tm { padding: 88px 0 80px; }
  .upit-sv { padding: 96px 0 80px; }
  .pitanja-sv { padding: 72px 0 96px; }
  .pisano-sv { margin-top: 88px; }
  .sirina-sv { margin-top: 80px; }

  .zone-sv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ishod-sv { grid-template-columns: minmax(0, 1fr); }
  .ishod-sv .gumb-sv { justify-self: start; }

  .plutajuce-sv {
    position: fixed;
    right: 16px;
    bottom: calc(16px + var(--kolacic-h));
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, bottom 180ms ease, visibility 0s linear 180ms;
  }
  .plutajuce-sv.vidljivo-sv {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 180ms ease, transform 180ms ease, bottom 180ms ease;
  }
  .krug-sv, .krug-tm {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(13, 59, 46, .28);
    transition: background-color 200ms ease, transform 150ms ease;
  }
  .krug-sv { background: var(--narancasta); color: var(--zelena); }
  .krug-tm { background: var(--zelena); color: var(--osnova); }
  .krug-sv:hover { background: var(--narancasta-sv); }
  .krug-tm:hover { background: var(--zelena-2); }
  .krug-sv:active { background: var(--narancasta-tm); transform: translateY(1px); }
  .krug-tm:active { background: #082a20; transform: translateY(1px); }
  .krug-sv svg, .krug-tm svg { width: 24px; height: 24px; }
  .naslovna-sv .podnozje-sv { padding-bottom: 168px; }
}

@media (max-width: 700px) {
  .tablica-tm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tablica-tm table, .tablica-tm tbody, .tablica-tm tr,
  .tablica-tm th, .tablica-tm td, .tablica-tm tbody th { display: block; width: 100%; }
  .tablica-tm tr { padding: 18px 0; border-bottom: 1px solid rgba(243, 244, 246, .2); }
  .tablica-tm th, .tablica-tm td { border: 0; padding: 4px 0; text-align: left; }
  .tablica-tm td:last-child { text-align: left; padding-top: 10px; }
  .tablica-tm td[data-naslov]::before {
    content: attr(data-naslov);
    display: block;
    font-family: var(--tekst);
    font-size: .82rem;
    font-weight: 600;
    color: var(--svijetlo-tm);
  }
}

@media (max-width: 640px) {
  .strane-sv { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .strane-sv > div + div { padding-left: 16px; }
  .dogovor-sv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dvoje-sv { grid-template-columns: minmax(0, 1fr); }
  .mjerilo-sv { padding: 28px 20px; }
  .sadrzaj-sv ol { columns: 1; }
  .kontakt-sv, .biljeska-sv { padding: 22px 20px; }
  .podnozje-sv .mreza-sv { grid-template-columns: minmax(0, 1fr); }
  .stupac-sv:nth-child(2), .stupac-sv:nth-child(3) { grid-column: 1; }
}

@media (max-width: 480px) {
  .okvir-sv, .traka-sv { width: calc(100% - 32px); }
  .ploca-sv { padding: 22px 16px 36px; }
  .znak-tm { font-size: 1.02rem; padding-right: 12px; }
  .znak-tm img { width: 32px; height: 32px; }
  .prekidac-sv { padding: 0 12px; }
  .akcije-sv .gumb-sv { width: 100%; }
  .obrazac-sv .gumb-sv { width: 100%; }
  .kolacic-sv div { width: 100%; }
  .kolacic-sv .obrub-sv { flex: 1 1 0; }
  .ladica-sv ul a { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-property: color, background-color, border-color, text-decoration-color !important;
  }
  .skripta-sv .pojava-sv { opacity: 1; transform: none; }
  .gumb-sv:active, .gumb-tm:active, .obrub-sv:active, .obrub-tm:active,
  .krug-sv:active, .krug-tm:active, .prekidac-sv:active, .zatvori-sv:active { transform: none; }
  .ladica-sv, .plutajuce-sv { transform: none; }
}
