@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-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";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-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;
}

:root {
  --noc: #12161B;
  --noc-2: #1A2027;
  --far: #F3EFE6;
  --alu: #A7AEB5;
  --linija: #343C45;
  --kabina: #CF3F27;
  --kabina-svetla: #E8634B;
  --papir: #F3EFE6;
  --papir-linija: #CFC9BC;
  --mastilo: #12161B;
  --mastilo-2: #4D545C;
  --doblo: #F4C20D;
  --e75: #0A6A4B;
  --font: "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
  --rub: clamp(1.25rem, 5.5vw, 4rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noc);
  color: var(--far);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--kabina-svetla); outline-offset: 4px; }

.okvir { max-width: var(--max); margin-inline: auto; padding-inline: var(--rub); }

/* Demo napomena */
.napomena { border-bottom: 1px solid var(--linija); font-size: 0.875rem; line-height: 1.45; color: var(--alu); }
.napomena .okvir { display: flex; gap: 0.625rem; padding-block: 0.625rem; }
.napomena__tacka { flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.4rem; border-radius: 50%; background: var(--doblo); }
.napomena a { color: var(--far); text-underline-offset: 0.2em; }

/* Zaglavlje */
.zaglavlje .okvir { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.firma { font-stretch: 125%; font-weight: 600; font-size: 1.0625rem; line-height: 1.15; letter-spacing: 0.01em; text-decoration: none; }
.firma small { display: block; margin-top: 0.25rem; font-stretch: 100%; font-weight: 400; font-size: 0.8125rem; letter-spacing: 0; color: var(--alu); }

/* Dugmad */
.dugme {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  border: 1px solid var(--alu); border-radius: 0;
  background: transparent; color: var(--far);
  font: 500 1rem/1.2 var(--font); font-stretch: 110%; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.dugme:hover { background: var(--far); border-color: var(--far); color: var(--noc); }
.dugme--glavno { background: var(--kabina); border-color: var(--kabina); color: #fff; }
.dugme--glavno:hover { background: var(--far); border-color: var(--far); color: var(--noc); }
.dugme--malo { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.na-papiru .dugme { border-color: var(--mastilo); color: var(--mastilo); }
.na-papiru .dugme:hover { background: var(--mastilo); border-color: var(--mastilo); color: var(--papir); }
.na-papiru .dugme--glavno { background: var(--kabina); border-color: var(--kabina); color: #fff; }
.na-papiru .dugme--glavno:hover { background: var(--mastilo); border-color: var(--mastilo); color: var(--papir); }

/* Uvod */
.uvod { padding-block: clamp(2rem, 7vw, 5rem) 0; }
.uvod h1 {
  max-width: 14ch;
  font-stretch: 125%; font-weight: 600;
  font-size: clamp(2.125rem, 8.6vw, 5rem);
  line-height: 1.02; letter-spacing: -0.015em;
}
.uvod__tekst { max-width: 33rem; margin-top: clamp(1.25rem, 3vw, 2rem); font-size: 1.125rem; color: var(--alu); }
.uvod__akcije { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.uvod__akcije .dugme { flex: 1 1 13rem; }

/* Tehnički crtež šlepera */
.crtez { margin-top: clamp(2.5rem, 8vw, 5rem); }
.crtez svg { width: 100%; height: auto; overflow: visible; }
.crtez .c { fill: none; stroke: var(--alu); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.crtez .c--tanko { stroke: #4A535D; stroke-width: 2.5; }
.crtez .c--kabina { stroke: var(--kabina-svetla); stroke-width: 5; }
.crtez .c--kota { stroke: var(--alu); stroke-width: 2.5; }
.crtez .c { stroke-dasharray: 1; stroke-dashoffset: 1; animation: crtaj 1.5s cubic-bezier(.5,.1,.3,1) forwards; }
.crtez .c--2 { animation-delay: .35s; }
.crtez .c--3 { animation-delay: .8s; }
@keyframes crtaj { to { stroke-dashoffset: 0; } }

.mere { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.75rem clamp(1.25rem, 6vw, 4rem); margin-top: 1.5rem; }
.mere dt { order: 2; font-size: 0.8125rem; line-height: 1.3; color: var(--alu); }
.mere dd { font-stretch: 125%; font-weight: 500; font-size: clamp(1.25rem, 4.6vw, 2rem); line-height: 1.1; white-space: nowrap; }
.mere > div { display: flex; flex-direction: column; gap: 0.25rem; }
.mere__napomena { margin-top: 0.875rem; font-size: 0.8125rem; color: var(--alu); }

/* Ruta */
.ruta { margin-top: clamp(3rem, 9vw, 6rem); padding-block: clamp(2rem, 6vw, 3.5rem); border-top: 1px solid var(--linija); }
.ruta__glava { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.e75 { flex: none; padding: 0.35rem 0.6rem; border: 1.5px solid #fff; background: var(--e75); color: #fff; font-stretch: 110%; font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: 0.02em; }
.ruta__glava p { color: var(--alu); font-size: 0.9375rem; line-height: 1.45; }
.ruta__stanice { position: relative; display: grid; gap: 1.75rem; padding-left: 1.75rem; }
.ruta__stanice::before { content: ""; position: absolute; left: 0.3125rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--alu); }
.ruta__stanice li { position: relative; }
.ruta__stanice li::before { content: ""; position: absolute; left: -1.75rem; top: 0.4rem; width: 0.6875rem; height: 0.6875rem; border-radius: 50%; background: var(--far); box-shadow: 0 0 0 4px var(--noc); }
.ruta__stanice li.granica::before { border-radius: 0; background: var(--kabina-svetla); }
.ruta__mesto { display: block; font-stretch: 125%; font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.ruta__opis { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--alu); }

/* Odeljci */
.odeljak { padding-block: clamp(3.5rem, 10vw, 7rem); }
.odeljak--linija { border-top: 1px solid var(--linija); }
.na-papiru { background: var(--papir); color: var(--mastilo); }
.odeljak h2 { max-width: 18ch; font-stretch: 125%; font-weight: 600; font-size: clamp(1.75rem, 6.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.012em; }
.odeljak__uvod { max-width: 34rem; margin-top: 1.125rem; color: var(--alu); }
.na-papiru .odeljak__uvod { color: var(--mastilo-2); }

/* Šta vozimo */
.stavke { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--alu); }
.stavke > div { display: grid; gap: 0.375rem; padding-block: 1.375rem; border-bottom: 1px solid var(--linija); }
.stavke dt { font-stretch: 110%; font-weight: 500; }
.stavke dd { color: var(--alu); }

/* Vozni park */
.park { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.park img { width: 100%; height: auto; aspect-ratio: 1205 / 390; object-fit: cover; }
.park figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--alu); }

/* Obrasci */
.obrazac { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 5vw, 3rem); max-width: 42rem; }
.obrazac__red { display: grid; gap: 1.25rem; }
.polje { display: grid; gap: 0.5rem; }
.polje label, .polje legend { padding: 0; font-size: 0.875rem; font-weight: 500; }
.polje input, .polje select {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.875rem;
  border: 1px solid var(--alu); border-radius: 0;
  background: transparent; color: inherit;
  font: 400 1.0625rem/1.3 var(--font);
}
.polje select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.875rem) 50%; background-size: 0.375rem 0.375rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.polje select option { color: var(--mastilo); background: #fff; }
.na-papiru .polje input, .na-papiru .polje select { border-color: var(--mastilo); background-color: #fff; }
.polje input::placeholder { color: var(--mastilo-2); opacity: .8; }
fieldset.polje { border: 0; padding: 0; margin: 0; }
.izbor { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.izbor label { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3.25rem; padding: 0.5rem 1.25rem; border: 1px solid var(--alu); font-size: 1rem; cursor: pointer; }
.izbor input { width: 1.125rem; height: 1.125rem; min-height: 0; padding: 0; accent-color: var(--kabina); }
.obrazac .dugme { justify-self: start; min-width: 13rem; }
.greska { font-weight: 500; font-size: 0.9375rem; color: var(--kabina-svetla); }
.na-papiru .greska { color: #A32B17; }
[hidden] { display: none !important; }

/* Poruka koja stiže vlasniku */
.stiglo { margin-top: 2rem; max-width: 42rem; }
.stiglo__naslov { font-weight: 500; }
.stiglo__poruka { margin-top: 0.875rem; max-width: 24rem; padding: 1rem 1.125rem; border-radius: 1.125rem 1.125rem 1.125rem 0.25rem; background: #fff; color: var(--mastilo); white-space: pre-line; line-height: 1.5; box-shadow: 0 1px 0 var(--papir-linija), 0 10px 30px rgba(18, 22, 27, .12); }
.stiglo__demo { margin-top: 0.875rem; font-size: 0.875rem; color: var(--alu); }
.na-papiru .stiglo__demo { color: var(--mastilo-2); }

/* Vozači */
.uslovi { display: grid; gap: 0; margin-top: 2rem; max-width: 42rem; border-top: 1px solid var(--alu); }
.uslovi li { padding-block: 1rem; border-bottom: 1px solid var(--linija); font-stretch: 110%; }

/* Kontakt */
.kontakt__mreza { display: grid; gap: 1.75rem; margin-top: clamp(2rem, 5vw, 3rem); }
.kontakt__stavka dt { font-size: 0.8125rem; color: var(--mastilo-2); }
.kontakt__stavka dd { margin-top: 0.25rem; font-stretch: 125%; font-weight: 500; font-size: 1.375rem; line-height: 1.2; }
.kontakt__stavka dd a { text-decoration: none; }
.kontakt__stavka dd a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.vlasnik { margin-top: clamp(2.5rem, 7vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--papir-linija); }
.vlasnik p { max-width: 34rem; color: var(--mastilo-2); }
.vlasnik .dugme { margin-top: 1.25rem; }

.podnozje { padding-block: 2rem 7rem; font-size: 0.875rem; color: var(--alu); }
.podnozje a { color: var(--far); text-underline-offset: 0.2em; }

/* Lina: D&L widget (lina-widget.css je originalni fajl sa dlproject.io); ovde samo font sajta i link u dnu */
#dl-ai, #dl-ai .dl-ai-launcher-label, #dl-ai .dl-ai-header-title { font-family: var(--font); }
#dl-ai .dl-ai-footnote a { color: inherit; text-decoration: none; }
#dl-ai .dl-ai-footnote a:hover { text-decoration: underline; }
#dl-ai .dl-ai-header-actions { display: flex; align-items: center; }

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

/* ---------- Kancelarija (pogled vlasnika) ---------- */
.kanc { background: var(--papir); color: var(--mastilo); min-height: 100dvh; }
.kanc__glava { background: var(--noc); color: var(--far); padding-block: 1.25rem clamp(2rem, 6vw, 3.5rem); }
.kanc__nazad { display: inline-block; font-size: 0.9375rem; color: var(--alu); text-underline-offset: 0.2em; }
.kanc__glava h1 { margin-top: clamp(1.5rem, 5vw, 3rem); max-width: 16ch; font-stretch: 125%; font-weight: 600; font-size: clamp(2rem, 7.6vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; }
.kanc__glava p { max-width: 34rem; margin-top: 1rem; color: var(--alu); }
.kanc__primer { display: flex; gap: 0.625rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--linija); font-size: 0.875rem; color: var(--alu); }
.blok { padding-block: clamp(2.5rem, 7vw, 4.5rem); border-bottom: 1px solid var(--papir-linija); }
.blok h2 { font-stretch: 125%; font-weight: 600; font-size: clamp(1.5rem, 5.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; }
.blok__uvod { max-width: 34rem; margin-top: 0.75rem; color: var(--mastilo-2); }
.blok .dugme { margin-top: 1.5rem; }

.racun-mreza { display: grid; gap: 1.5rem; margin-top: 1.75rem; align-items: start; }
.racun { width: min(100%, 15rem); padding: 1.125rem 1rem 1.5rem; background: #fff; box-shadow: 0 12px 30px rgba(18, 22, 27, .14); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.75rem; line-height: 1.55; color: #33383E; transform: rotate(-1.5deg); }
.racun b { display: block; text-align: center; font-size: 0.8125rem; }
.racun span { display: flex; justify-content: space-between; gap: 1rem; }
.racun hr { border: 0; border-top: 1px dashed #9aa0a6; margin: 0.5rem 0; }
.procitano { border-top: 1px solid var(--mastilo); }
.procitano > div { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.75rem; border-bottom: 1px solid var(--papir-linija); }
.procitano dt { color: var(--mastilo-2); }
.procitano dd { font-weight: 500; text-align: right; }
.procitano__status { margin-top: 1rem; font-weight: 500; }
.procitano__status::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--e75); vertical-align: 0.05em; }

.koraci { counter-reset: korak; margin-top: 1.75rem; border-top: 1px solid var(--mastilo); }
.koraci > li { counter-increment: korak; position: relative; padding: 1.5rem 0 1.5rem 3.25rem; border-bottom: 1px solid var(--papir-linija); }
.koraci > li::before { content: counter(korak); position: absolute; left: 0; top: 1.4rem; font-stretch: 125%; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--kabina); }
.koraci h3 { font-stretch: 110%; font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.koraci p { max-width: 34rem; margin-top: 0.375rem; color: var(--mastilo-2); }
.koraci .dugme { margin-top: 1.125rem; }
.ekran { max-width: 22rem; margin-top: 1.25rem; padding: 1.25rem 1.25rem 0.5rem; background: var(--noc); color: var(--far); border-radius: 1.25rem; }
.ekran__glavno span { display: block; font-size: 0.8125rem; color: var(--alu); }
.ekran__glavno strong { display: block; margin-top: 0.125rem; font-stretch: 125%; font-weight: 500; font-size: 2.25rem; line-height: 1.1; white-space: nowrap; }
.ekran__red { margin-top: 1rem; border-top: 1px solid var(--linija); }
.ekran__red > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--linija); font-size: 0.9375rem; }
.ekran__red > div:last-child { border-bottom: 0; }
.ekran__red dt { color: var(--alu); }
.ekran__red dd { font-weight: 500; text-align: right; white-space: nowrap; }
.kanc__primer a { color: var(--far); text-underline-offset: 0.2em; }
.racun i { font-style: normal; }

.tabela-omot { margin-top: 1.75rem; overflow-x: auto; }
.tabela { width: 100%; min-width: 30rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { padding: 0.875rem 0.75rem 0.875rem 0; text-align: right; border-bottom: 1px solid var(--papir-linija); white-space: nowrap; }
.tabela th:first-child, .tabela td:first-child { text-align: left; }
.tabela thead th { font-size: 0.8125rem; font-weight: 400; color: var(--mastilo-2); border-bottom-color: var(--mastilo); }
.tabela tbody th { font-weight: 500; }
.tabela tfoot td, .tabela tfoot th { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--mastilo); }

.rokovi { margin-top: 1.75rem; border-top: 1px solid var(--mastilo); }
.rokovi li { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--papir-linija); }
.rokovi__sta { font-weight: 500; }
.rokovi__kad { grid-column: 1; font-size: 0.875rem; color: var(--mastilo-2); }
.rokovi__dana { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-stretch: 125%; font-weight: 500; font-size: 1.125rem; white-space: nowrap; }
.rokovi li.uskoro .rokovi__dana { color: #A32B17; }

.pitanja { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.pitanja button { min-height: 2.875rem; padding: 0.5rem 1rem; border: 1px solid var(--mastilo); border-radius: 2rem; background: transparent; color: var(--mastilo); font: 500 0.9375rem/1.25 var(--font); text-align: left; cursor: pointer; }
.pitanja button[aria-pressed="true"] { background: var(--mastilo); color: var(--papir); }
.odgovor { margin-top: 1.25rem; max-width: 34rem; padding: 1.125rem 1.25rem; background: #fff; box-shadow: 0 1px 0 var(--papir-linija), 0 10px 30px rgba(18, 22, 27, .1); white-space: pre-line; }
.zavrsno { padding-block: clamp(3rem, 8vw, 5rem) 5rem; }
.zavrsno h2 { max-width: 20ch; font-stretch: 125%; font-weight: 600; font-size: clamp(1.625rem, 5.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.012em; }
.zavrsno p { max-width: 34rem; margin-top: 1rem; color: var(--mastilo-2); }
.zavrsno a { color: var(--mastilo); font-weight: 500; text-underline-offset: 0.2em; }

@media (min-width: 40rem) {
  .obrazac__red { grid-template-columns: 1fr 1fr; }
  .stavke > div { grid-template-columns: 12rem 1fr; gap: 2rem; }
  .kontakt__mreza { grid-template-columns: repeat(2, minmax(0, 18rem)); }
  .uvod__akcije .dugme { flex: 0 1 auto; }
  .racun-mreza { grid-template-columns: auto 1fr; gap: 3rem; }
}

@media (min-width: 56rem) {
  .crtez .c { stroke-width: 1.8; }
  .crtez .c--tanko { stroke-width: 1; }
  .crtez .c--kabina { stroke-width: 2.2; }
  .crtez .c--kota { stroke-width: 1; }
  .park { grid-template-columns: 1fr 1.4fr; }
  .ruta__stanice { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-left: 0; padding-top: 1.75rem; }
  .ruta__stanice::before { left: 0; right: 0; top: 0.3125rem; bottom: auto; width: auto; height: 1px; }
  .ruta__stanice li::before { left: 0; top: -1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crtez .c { animation: none; stroke-dashoffset: 0; }
  .dugme { transition: none; }
}
