/*
 * AZM tema. Sve mjere, boje i tipografija preuzete su iz mockupa
 * "Runda 3 — spoj" (desktop 1440 px, mobitel 390 px).
 */

:root {
    --bg: #F4F5EF;
    --white: #FFFFFF;
    --ink: #1D211B;
    --ink-2: #3C4238;
    --ink-3: #4A5046;
    --muted: #5A6155;
    --green: #72BF44;
    --green-dark: #2F5A1C;
    --green-pale: #C4E3AC;
    --green-stat: #93CC6B;
    --green-mist: #E1ECD6;
    --tile-ink: #14200C;
    --bar-ink: #17200F;
    --line: #E2E6DA;
    --line-2: #EDEFE8;
    --border: #D6DBCD;
    --sep: #B7BDB0;
    --cert: #B7B7B7;
    --cert-color: #014493;
    --error: #A1261B;
    --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
    --font-body: 'Figtree', system-ui, sans-serif;
    --shadow-panel: 0 24px 48px rgba(29, 33, 27, 0.14);
    --container: 1200px;
    --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.1; }
p { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

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

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--green-dark);
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
}
.skip-link:focus { top: 16px; text-decoration: none; }

.container {
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
    margin: 0 auto;
}

.site-main:focus { outline: none; }

/* Vidljivo samo na računalu / samo na mobitelu */
.only-mob, .only-mob-block { display: none !important; }

/* ---------- Header (računalo) ---------- */

.site-header {
    position: relative;
    z-index: 30;
    height: 190px;
    background: var(--white);
}
.site-header__inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand__link { display: block; line-height: 0; }
.brand__logo { height: 140px; width: auto; }

/* Zeleni znak iz loga: 554 px, top −171 px, lijevo −241 px od loga (mockup). */
.logo-mark {
    position: absolute;
    top: -171px;
    left: -241px;
    width: 554px;
    height: 1136.47px;
    z-index: 40;
    pointer-events: none;
}

.site-header__desk {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}
.site-header__main { display: flex; align-items: center; gap: 36px; }
.site-header__mob { display: none; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.lang__link { color: var(--muted); padding: 4px 2px; border-bottom: 2px solid transparent; }
.lang__link.is-current { color: var(--ink); border-bottom-color: var(--green); }
.lang__link:hover { color: var(--green-dark); text-decoration: none; }
.lang__sep { color: var(--sep); }

.nav__list { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { color: var(--ink); font-weight: 600; font-size: 17px; }
.nav__link:hover, .nav__item.is-current > .nav__link { color: var(--green-dark); text-decoration: none; }
.nav__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; margin-left: 2px; padding: 0;
    border: 0; background: transparent; color: var(--ink);
}
.nav__sub {
    list-style: none;
    position: absolute;
    top: calc(100% + 12px);
    left: -20px;
    min-width: 280px;
    padding: 12px 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-panel);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    z-index: 60;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__sub .nav__item { display: block; }
.nav__sub .nav__link { display: block; padding: 10px 20px; font-size: 15px; font-weight: 500; }
.nav__sub .nav__link:hover { background: var(--bg); }
.nav__item--parent:hover > .nav__sub,
.nav__item--parent:focus-within > .nav__sub,
.nav__item--parent.is-open > .nav__sub {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .15s ease, transform .15s ease;
}

.cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-dark);
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: 999px;
    white-space: nowrap;
}
.cta:hover { background: var(--tile-ink); color: var(--white); text-decoration: none; }

.quick { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.quick__link { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.quick__link:hover { color: var(--green-dark); text-decoration: none; }

.menu-button {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; background: transparent; color: var(--ink);
}

/* ---------- Mobilni izbornik ---------- */

.mob-menu {
    position: fixed; inset: 0; z-index: 200;
    background: var(--white);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mob-menu__bar {
    position: sticky; top: 0; z-index: 1;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px 0 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line-2);
}
.mob-menu__bar img { height: 34px; width: auto; display: block; }
.mob-menu__body { padding: 8px 16px 40px; display: flex; flex-direction: column; gap: 24px; }
.nav--mob .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.nav--mob .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.nav--mob .nav__link { flex: 1; padding: 14px 0; font-size: 20px; }
.nav--mob .nav__toggle { width: 44px; height: 44px; margin: 0; }
.nav--mob .nav__toggle svg { width: 20px; height: 20px; transition: transform .2s ease; }
.nav--mob .nav__item.is-open > .nav__toggle svg { transform: rotate(180deg); }
.nav--mob .nav__sub {
    position: static; flex-basis: 100%;
    min-width: 0; padding: 0 0 12px 12px;
    box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none;
    display: none;
}
.nav--mob .nav__sub::before { display: none; }
.nav--mob .nav__item.is-open > .nav__sub { display: block; }
.nav--mob .nav__sub .nav__link { padding: 10px 0; font-size: 17px; color: var(--ink-2); }
.nav--mob .nav__sub .nav__link:hover { background: none; }
.nav--mob .nav__item--parent:hover > .nav__sub,
.nav--mob .nav__item--parent:focus-within > .nav__sub { display: none; }
.nav--mob .nav__item--parent.is-open > .nav__sub { display: block; }
.cta--block { width: 100%; padding: 15px 22px; font-size: 16px; }
.quick--mob { flex-direction: column; gap: 4px; font-size: 16px; }
.quick--mob .quick__link { padding: 10px 0; }
.lang--menu { font-size: 16px; }
body.menu-open { overflow: hidden; }

/* ---------- Naslovnica: gornji dio ---------- */

.home-top { position: relative; z-index: 2; }

.hero {
    position: relative;
    height: 675px;
    overflow: hidden;
    background: var(--ink);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(12, 16, 11, 0.2) 0%, rgba(12, 16, 11, 0.58) 30%, rgba(12, 16, 11, 0.32) 58%, rgba(12, 16, 11, 0) 80%);
}
.hero__inner { position: relative; height: 100%; }
.hero__caption {
    position: absolute;
    left: 240px;
    top: 190px;
    width: 640px;
    max-width: calc(100% - 240px);
    display: flex; flex-direction: column; gap: 18px;
}
.hero__meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green-pale);
}
.hero__rule { width: 28px; height: 1px; background: var(--green-pale); }
.hero__text { display: flex; flex-direction: column; gap: 18px; }
.hero__title {
    font-size: 54px; line-height: 1.04; font-weight: 800; letter-spacing: -0.02em;
    color: var(--white);
    text-wrap: balance;
}
.hero__link {
    align-self: flex-start;
    color: var(--white);
    font-weight: 600; font-size: 17px;
    border-bottom: 2px solid var(--green);
    padding-bottom: 4px;
}
.hero__link:hover { text-decoration: none; border-bottom-color: var(--white); }
.hero :focus-visible { outline-color: var(--white); outline-offset: 3px; }

.hero__controls {
    position: absolute;
    right: 0;
    top: 520px;
    display: flex; align-items: center; gap: 10px;
}
.round-btn {
    width: 48px; height: 48px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: var(--white);
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.round-btn:hover { background: var(--white); color: var(--ink); }

.dots { display: flex; align-items: center; }
.dots__btn {
    width: 44px; height: 44px;
    border: 0; background: transparent; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.dots__btn span {
    display: block; height: 10px; width: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    transition: width .3s ease, background-color .3s ease;
}
.dots__btn[aria-current="true"] span { width: 32px; background: var(--green); }

/* Stanje na cesti */
.road-panel-wrap { position: relative; height: 0; }
.road-panel {
    position: absolute;
    left: 60px;
    right: 0;
    top: -76px;
    height: 152px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-panel);
    display: grid;
    grid-template-columns: 1.3fr 3fr auto;
    align-items: center;
    gap: 32px;
    padding: 0 44px;
    z-index: 3;
}
.road-panel__head { display: flex; flex-direction: column; gap: 6px; }
.road-panel__head h2 { font-size: 26px; font-weight: 800; }
.road-panel__time { font-size: 14px; color: var(--muted); }
.road-panel__time-short { display: none; }
.road-panel__items {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.road-panel__item {
    display: flex; flex-direction: column; gap: 4px;
    border-left: 1px solid var(--line);
    padding-left: 28px;
}
.road-panel__item dt { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.road-panel__item dd { margin: 0; font-size: 22px; font-weight: 600; }
.road-panel__raw, .road-panel__empty { font-size: 16px; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 28px; }
.road-panel__more { font-weight: 600; font-size: 16px; white-space: nowrap; }

/* ---------- Naslovnica: radovi ---------- */

.home-works { padding: 148px 0 96px; background: var(--bg); }
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
    margin-bottom: 36px;
}
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.section-title { font-size: 44px; font-weight: 800; letter-spacing: -0.01em; }
.section-title--sm { font-size: 40px; }
.section-sub { font-size: 17px; color: var(--ink-3); }
.more-link { font-weight: 600; font-size: 16px; white-space: nowrap; }
.section-head--tight { align-items: baseline; margin-bottom: 0; padding-bottom: 18px; }
.empty-note { font-size: 17px; color: var(--ink-3); background: var(--white); border-radius: 4px; padding: 28px 32px; }

.timeline {
    display: flex;
    background: var(--white);
    border-radius: 4px;
    padding: 28px 32px;
}
.timeline__names { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; }
.timeline__corner { height: 40px; }
.timeline__name {
    height: 60px;
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    border-top: 1px solid var(--line-2);
    padding-right: 16px;
}
.timeline__name a { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.timeline__name a:hover { color: var(--green-dark); }
.timeline__name span { font-size: 13px; color: var(--muted); }
.timeline__chart { flex-grow: 1; position: relative; }
.timeline__grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__months {
    height: 40px; position: relative;
    font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.timeline__months span { position: absolute; top: 10px; margin-left: 8px; }
.timeline__row { height: 60px; position: relative; border-top: 1px solid var(--line-2); }
.timeline__bar {
    position: absolute; top: 14px; height: 32px;
    background: var(--green);
    border-radius: 3px;
    display: flex; align-items: center;
    padding-left: 12px;
    font-size: 13px; font-weight: 600; color: var(--bar-ink);
    white-space: nowrap; overflow: hidden;
}

.works-list { list-style: none; background: var(--white); border-radius: 4px; padding: 4px 16px; }
.works-list__item { padding: 14px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.works-list__item:last-child { border-bottom: 0; }
.works-list__head { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.works-list__head:hover { text-decoration: none; }
.works-list__head:hover .works-list__name { color: var(--green-dark); }
.works-list__name { font-size: 15px; font-weight: 600; }
.works-list__dates { font-size: 13px; color: var(--muted); white-space: nowrap; }
.works-list__track { position: relative; height: 8px; background: var(--line-2); border-radius: 4px; }
.works-list__track div { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 4px; }

/* ---------- Naslovnica: obavijesti i proizvodi ---------- */

.home-news { padding: 96px 0; background: var(--white); }
.home-news__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.news { display: flex; flex-direction: column; }
.news__list { list-style: none; }
.news__row {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 12px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 18px;
}
.news__list li:last-child .news__row { border-bottom: 1px solid var(--line); }
.news__row:hover { background: var(--bg); text-decoration: none; }

.products {
    position: relative;
    background: var(--green-dark);
    border-radius: 4px;
    padding: 44px;
    color: var(--white);
}
.products__item { display: flex; flex-direction: column; gap: 24px; }
.products__top { min-height: 20px; display: flex; align-items: center; padding-right: 120px; }
.products__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-pale); }
.products__title { font-size: 40px; font-weight: 800; line-height: 1.05; }
.products__stats { display: flex; gap: 28px; }
.products__stat { display: flex; flex-direction: column; gap: 4px; }
.products__value { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; color: var(--green-stat); white-space: nowrap; }
.products__label { font-size: 14px; color: var(--green-mist); }
.products__text { font-size: 16px; line-height: 1.5; color: var(--green-mist); }
.products__link { align-self: flex-start; color: var(--green-pale); font-weight: 600; font-size: 16px; }
.products__link:hover { color: var(--white); }
.dots--products { position: absolute; top: 32px; right: 30px; }
.dots--products .dots__btn span { height: 8px; width: 8px; background: rgba(255, 255, 255, 0.6); }
.dots--products .dots__btn[aria-current="true"] span { width: 26px; background: var(--green-stat); }
.products :focus-visible { outline-color: var(--white); }

/* ---------- Kućice ---------- */

.home-tiles { padding: 56px 0; background: var(--bg); }
.tiles--desk { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tiles--mob { display: none; }
.tile {
    display: flex; flex-direction: column; gap: 6px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
}
.tile:hover { border-color: var(--ink); text-decoration: none; }
.tile__name { font-size: 18px; font-weight: 600; }
.tile__desc { font-size: 14px; color: var(--muted); }
.tile--wide { grid-column: span 2; }
.tile--featured {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-color: var(--green);
    background: var(--green);
    color: var(--tile-ink);
}
.tile--featured:hover { border-color: var(--ink); }
.tile--featured .icon { flex-shrink: 0; }
.tile__body { display: flex; flex-direction: column; gap: 6px; }
.tile__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.tile__title { font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.15; }
.tile__text { font-size: 14px; }

/* ---------- Podnožje ---------- */

/* Fotografija autoceste preko cijele širine, ispod bijele izmaglice; tekst u boji izbornika. */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--white);
    color: var(--ink);
    padding: 56px 0 40px;
}
.site-footer__photo {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 42%;
}
.site-footer::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, 0.86);
}
.site-footer .container { display: flex; flex-direction: column; gap: 36px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 14px; }
.site-footer__logo { height: 36px; width: auto; align-self: flex-start; }
.site-footer__address { font-size: 15px; display: flex; flex-wrap: wrap; }
.site-footer__address a { color: var(--ink); }
.site-footer__dot { white-space: pre; }
.site-footer__links { list-style: none; display: flex; gap: 28px; font-size: 15px; }
.site-footer__links a { color: var(--ink); }
.site-footer__bottom {
    border-top: 1px solid rgba(29, 33, 27, 0.14);
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 14px; color: var(--ink);
}
.site-footer__copy-short { display: none; }

/* Certifikati: ista ravna siva, na prelazak mišem DQS plava. */
.certs { display: flex; align-items: center; gap: 12px; }
.cert {
    display: block;
    height: 40px;
    aspect-ratio: 360 / 296;
    background-color: var(--cert);
    -webkit-mask: var(--mask) center / contain no-repeat;
    mask: var(--mask) center / contain no-repeat;
    transition: background-color .2s ease;
}
.cert:hover, .certs--color .cert { background-color: var(--cert-color); }
.certs--color .cert { height: 72px; }

.to-top {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 90;
    width: 52px; height: 52px;
    border-radius: 999px;
    border: 0;
    background: var(--green-dark);
    box-shadow: 0 8px 20px rgba(29, 33, 27, 0.25);
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--tile-ink); }

/* ---------- Unutarnje stranice (stil slidera iz mockupa) ---------- */

.page-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--ink);
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(12, 16, 11, 0.2) 0%, rgba(12, 16, 11, 0.58) 30%, rgba(12, 16, 11, 0.32) 58%, rgba(12, 16, 11, 0) 80%);
}
.page-hero--plain .page-hero__shade { display: none; }
.page-hero__inner { position: relative; height: 100%; }
.page-hero__caption {
    position: absolute;
    left: 240px;
    right: 0;
    bottom: 64px;
    max-width: 760px;
    display: flex; flex-direction: column; gap: 14px;
}
.page-title { font-size: 54px; line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
.page-meta { font-size: 17px; color: var(--green-mist); }

.crumbs ol {
    list-style: none;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.crumbs li { display: flex; align-items: center; gap: 14px; }
.crumbs li + li::before { content: ""; width: 28px; height: 1px; background: var(--green-pale); }
.crumbs a { color: var(--green-pale); }
.crumbs a:hover { color: var(--white); text-decoration: none; }

.page-wrap { background: var(--bg); padding: 56px 0 96px; }
/* Lijevi razmak: zeleni znak iz loga spušta se do ~960 px od vrha stranice. */
.page-layout { padding-left: 120px; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.page-body--aside { grid-template-columns: minmax(0, 1fr) 300px; }
.page-card { background: var(--white); border-radius: 4px; padding: 44px 48px; min-width: 0; }
.page-layout--wide .page-card { padding: 40px; }
.page-card > * + * { margin-top: 32px; }

.section-nav { background: var(--white); border-radius: 4px; padding: 24px 28px; }
.section-nav__title { font-family: var(--font-display); font-size: 20px; font-weight: 800; padding-bottom: 12px; }
.section-nav__title a { color: var(--ink); }
.section-nav ul { list-style: none; }
.section-nav li a {
    display: block; padding: 12px 0;
    border-top: 1px solid var(--line-2);
    color: var(--ink); font-size: 16px;
}
.section-nav li a:hover { color: var(--green-dark); text-decoration: none; }
.section-nav a[aria-current="page"] { color: var(--green-dark); font-weight: 600; }

/* Tekst iz editora */
.entry { font-size: 17px; line-height: 1.65; color: var(--ink); }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 30px; margin-top: 1.6em; letter-spacing: -0.01em; }
.entry h3 { font-size: 22px; margin-top: 1.4em; }
.entry h4 { font-size: 18px; margin-top: 1.2em; font-family: var(--font-body); font-weight: 600; }
.entry > :first-child { margin-top: 0; }
.entry a { text-decoration: underline; text-underline-offset: 2px; }
.entry a:hover { color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .35em; }
.entry ul li::marker { color: var(--green); }
.entry strong { font-weight: 600; }
.entry img { border-radius: 4px; }
.entry figure { margin: 1.5em 0; }
.entry figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--ink-3); }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry th { background: var(--bg); font-weight: 600; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-figure { margin: 0; }
.entry-figure img { width: 100%; border-radius: 4px; display: block; }
.back-link { font-weight: 600; font-size: 16px; }

/* Dokumenti */
.docs__title { font-size: 26px; margin-bottom: 12px; }
.docs + .docs { margin-top: 56px; }
.docs__intro { color: var(--ink-3); margin-bottom: 16px; max-width: 72ch; }
.docs__intro p + p { margin-top: .6em; }
.docs__list { list-style: none; }
.docs__link {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 12px;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.docs__list li:last-child .docs__link { border-bottom: 1px solid var(--line); }
.docs__link:hover { background: var(--bg); text-decoration: none; }
.docs__link .icon { flex-shrink: 0; color: var(--green-dark); }
.docs__name { flex: 1; font-size: 17px; }
.docs__meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.docs__group { border-top: 1px solid var(--line); }
.docs__group:last-child { border-bottom: 1px solid var(--line); }
.docs__group summary {
    cursor: pointer;
    padding: 16px 12px;
    font-size: 18px; font-weight: 600;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.docs__group summary::-webkit-details-marker { display: none; }
.docs__group summary::after { content: "+"; font-size: 22px; color: var(--green-dark); }
.docs__group[open] summary::after { content: "–"; }
.docs__group .docs__list { padding: 0 0 12px 12px; }
.docs__group .docs__list li:last-child .docs__link { border-bottom: 0; }

/* Kartice (popis obavijesti, radova) */
.cards { list-style: none; }
.card__link {
    display: flex; flex-direction: column; gap: 8px;
    padding: 24px 12px;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.cards li:last-child .card__link { border-bottom: 1px solid var(--line); }
.card__link:hover { background: var(--bg); text-decoration: none; }
.card__date { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.15; }
.card__text { font-size: 16px; color: var(--ink-3); }
.card__more { font-size: 15px; font-weight: 600; color: var(--green-dark); }
.page-card .timeline { padding: 0; }
.page-card .section-sub { margin-bottom: -8px; }

/* Činjenice (rad, stanje na cesti) */
.facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px 32px;
    padding-bottom: 8px;
}
.facts > div { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: 28px; }
.facts dt { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 22px; font-weight: 600; }
.page-card h2 { font-size: 30px; }

/* Cjenik */
.tolls__cat + .tolls__cat { margin-top: 48px; }
.tolls__head { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.tolls__head h2 { font-size: 26px; }
.tolls__head p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.tolls__pic { width: 120px; height: auto; flex-shrink: 0; }
.tolls__note { margin-top: 24px; font-size: 15px; color: var(--muted); }
.table-scroll { overflow-x: auto; border-radius: 4px; }
.table-scroll:focus-visible { outline-offset: 0; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 10px; }
.price-table thead th { background: var(--bg); font-weight: 600; font-size: 13px; line-height: 1.25; text-align: right; vertical-align: bottom; }
.price-table tbody th { background: var(--bg); font-weight: 600; text-align: left; white-space: nowrap; position: sticky; left: 0; z-index: 1; }
.price-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
.price-table td { text-align: right; white-space: nowrap; }
.price-table td.is-empty { color: var(--sep); text-align: center; }

/* Kalkulator */
.calc { display: flex; flex-direction: column; gap: 32px; }
.calc__cats { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.calc__cats legend { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.calc__cat { position: relative; display: block; cursor: pointer; }
.calc__cat input { position: absolute; opacity: 0; inset: 0; }
.calc__cat-box {
    height: 100%;
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
}
.calc__cat:hover .calc__cat-box { border-color: var(--ink); }
.calc__cat input:checked + .calc__cat-box { border-color: var(--green); background: var(--green); color: var(--tile-ink); }
.calc__cat input:checked + .calc__cat-box .calc__desc { color: var(--tile-ink); }
.calc__cat input:focus-visible + .calc__cat-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.calc__code { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; }
.calc__cat img { width: 96px; height: auto; mix-blend-mode: multiply; }
.calc__desc { font-size: 13px; line-height: 1.35; color: var(--muted); }
.calc__stations { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc__result {
    background: var(--green-dark);
    border-radius: 4px;
    padding: 28px 32px;
    color: var(--white);
    display: flex; flex-direction: column; gap: 8px;
}
.calc__label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-pale); }
.calc__price { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1.05; color: var(--green-stat); }
.calc__price.is-empty { font-family: var(--font-body); font-size: 18px; font-weight: 500; color: var(--green-mist); }
.calc__note { font-size: 14px; color: var(--green-mist); }

/* Obrazac */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__title { font-size: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-size: 15px; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form textarea, .form select, .calc select {
    width: 100%;
    font: inherit; font-size: 17px; color: var(--ink);
    padding: 13px 16px;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
}
.form textarea { resize: vertical; min-height: 160px; }
.form input:focus, .form textarea:focus, .calc select:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form__field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.form__field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-dark); flex-shrink: 0; }
.has-error input, .has-error textarea { border-color: var(--error); }
.form__error { font-size: 14px; color: var(--error); }
.form__note { font-size: 14px; color: var(--ink-3); margin: 8px 0 0 32px; }
.form__note a { text-decoration: underline; }
.form__notice { padding: 16px 20px; border-radius: 4px; font-size: 16px; }
.form__notice--ok { background: var(--green-mist); color: var(--bar-ink); }
.form__notice--error { background: #F6E1DE; color: #6E1810; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button {
    display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
    background: var(--green-dark); color: var(--white);
    font-weight: 600; font-size: 15px;
    padding: 13px 22px; min-height: 48px;
    border: 0; border-radius: 999px;
}
.button:hover { background: var(--tile-ink); color: var(--white); text-decoration: none; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }

/* Web kamere */
.cams { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.cams figure { margin: 0; }
.cams img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--line-2); }
.cams figcaption { margin-top: 10px; font-size: 16px; font-weight: 600; }
.cams__item.is-error img { opacity: .35; }

/* Skočna obavijest */
.popup {
    padding: 0; border: 0; border-radius: 4px;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    box-shadow: var(--shadow-panel);
    color: var(--ink);
}
.popup::backdrop { background: rgba(12, 16, 11, 0.6); }
.popup__box { position: relative; }
.popup__img { display: block; width: 100%; height: auto; }
.popup__body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.popup__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-dark); }
.popup__title { font-size: 28px; }
.popup__close {
    position: absolute; top: 8px; right: 8px;
    width: 44px; height: 44px;
    border: 0; border-radius: 999px;
    background: var(--white); color: var(--ink);
    display: flex; align-items: center; justify-content: center;
}

/* Kolačići */
.consent {
    position: fixed;
    left: 0; right: 0; bottom: 24px;
    z-index: 150;
    padding: 0 var(--gutter);
    pointer-events: none;
}
.consent__box {
    pointer-events: auto;
    max-width: var(--container);
    margin: 0 auto;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-panel);
    padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.consent__text { display: flex; flex-direction: column; gap: 6px; max-width: 760px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.consent__title { font-size: 20px; color: var(--ink); }
.consent__text a { text-decoration: underline; text-underline-offset: 2px; }
.consent__choices { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.consent__choice { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent__choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-dark); flex-shrink: 0; }
.consent__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.consent__actions .button { align-self: auto; }
.consent__link, .site-footer__consent {
    border: 0; background: none; padding: 8px 4px;
    font: inherit; font-weight: 600; font-size: 15px;
    color: var(--green-dark);
}
.consent__link:hover, .site-footer__consent:hover { text-decoration: underline; }
.site-footer__consent { font-weight: 400; color: var(--ink); padding: 0; }
.site-footer__legal { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button--outline:hover { background: var(--green-dark); color: var(--white); }
body.consent-open .to-top { display: none; }

/* ---------- Srednja računala (992–1199) ---------- */

@media (max-width: 1199px) {
    .site-header__main { gap: 24px; }
    .nav__list { gap: 22px; }
    .quick { gap: 20px; }
    .hero__caption { left: 160px; max-width: calc(100% - 160px); }
    .page-hero__caption { left: 160px; }
    .home-news__grid { gap: 40px; }
    .road-panel { padding: 0 32px; gap: 24px; }
    .road-panel__items { gap: 24px; }
    .road-panel__item { padding-left: 20px; }
    .tiles--desk { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .page-body--aside { grid-template-columns: minmax(0, 1fr) 260px; }
}

/* ---------- Mobitel i tablet (do 991) ---------- */

@media (max-width: 991px) {
    :root { --gutter: 16px; }
    html { scroll-padding-top: 72px; }

    .only-desk, .only-desk-block { display: none !important; }
    .only-mob { display: inline !important; }
    .only-mob-block { display: block !important; }

    .site-header {
        position: sticky;
        top: 0;
        height: 64px;
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        transition: height .2s ease, box-shadow .2s ease, transform .25s ease;
    }
    .site-header__inner { width: 100%; padding: 0 12px 0 16px; }
    .brand__logo { height: 34px; transition: height .2s ease; }
    .logo-mark, .site-header__desk { display: none; }
    .site-header__mob { display: flex; align-items: center; gap: 4px; }
    .lang--mob { margin-right: 4px; }
    .lang--mob .lang__link { padding: 10px 2px 6px; }
    .site-header.is-compact { height: 56px; box-shadow: 0 2px 12px rgba(29, 33, 27, 0.10); }
    .site-header.is-compact .brand__logo { height: 28px; }
    .site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }

    .hero { height: 460px; }
    .hero__img { object-position: 60% 50%; }
    .hero__shade { background: linear-gradient(0deg, rgba(12, 16, 11, 0.88) 0%, rgba(12, 16, 11, 0.45) 50%, rgba(12, 16, 11, 0) 78%); }
    .hero__inner { width: 100%; }
    .hero__caption { left: 20px; right: 20px; top: auto; bottom: 76px; width: auto; max-width: none; gap: 12px; }
    .hero__meta { font-size: 12px; gap: 10px; }
    .hero__rule { width: 20px; }
    .hero__text { gap: 12px; }
    .hero__title { font-size: 30px; line-height: 1.08; letter-spacing: -0.01em; }
    .hero__link { font-size: 16px; padding-bottom: 3px; }
    .hero__controls { top: auto; right: auto; left: 8px; bottom: 14px; }
    .hero__controls .round-btn { display: none; }
    .dots__btn span { height: 8px; width: 8px; }
    .dots__btn[aria-current="true"] span { width: 26px; }

    .road-panel-wrap { height: auto; width: auto; margin: -32px 16px 0; }
    .road-panel {
        position: relative;
        left: auto; right: auto; top: auto;
        height: auto;
        box-shadow: 0 16px 32px rgba(29, 33, 27, 0.14);
        padding: 20px;
        display: flex; flex-direction: column; align-items: stretch;
        gap: 14px;
    }
    .road-panel__head { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
    .road-panel__head h2 { font-size: 22px; }
    .road-panel__time { font-size: 13px; white-space: nowrap; }
    .road-panel__time-long { display: none; }
    .road-panel__time-short { display: inline; }
    .road-panel__items { gap: 10px; }
    .road-panel__item { gap: 2px; padding-left: 10px; }
    .road-panel__item:first-child { border-left: 0; padding-left: 0; }
    .road-panel__item dt { font-size: 12px; letter-spacing: 0.06em; }
    .road-panel__item dd { font-size: 17px; }
    .road-panel__raw, .road-panel__empty { border-left: 0; padding-left: 0; font-size: 15px; }
    .road-panel__more { font-size: 15px; }

    .tiles--mob {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 24px 16px 8px;
    }
    .tiles--mob .tile--featured { padding: 18px 16px; gap: 12px; }
    .tiles--mob .tile__body { gap: 4px; }
    .tiles--mob .tile__eyebrow { font-size: 11px; }
    .tiles--mob .tile__title { font-size: 19px; }
    .tiles--mob .tile--featured .icon { width: 26px; height: 26px; }
    .tile--icon { padding: 16px; gap: 10px; font-weight: 600; font-size: 15px; }
    .home-tiles { display: none; }

    .home-works { padding: 40px 0; }
    .section-head { align-items: baseline; margin-bottom: 18px; }
    .section-head > div { gap: 6px; }
    .section-title, .section-title--sm { font-size: 28px; }
    .section-sub { font-size: 15px; }
    .more-link { font-size: 15px; }
    .empty-note { font-size: 15px; padding: 20px 16px; }

    .home-news { padding: 40px 0; }
    .home-news__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .section-head--tight { padding-bottom: 12px; }
    .news__row { padding: 16px 0; font-size: 16px; gap: 12px; }
    .news__row:hover { background: none; }

    .products { padding: 24px 24px 28px; }
    .products__item { gap: 16px; }
    .products__eyebrow { font-size: 12px; }
    .products__title { font-size: 28px; line-height: 1.1; }
    .products__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .products__value { font-size: 34px; }
    .products__label { font-size: 13px; line-height: 1.3; }
    .products__text { font-size: 15px; }
    .products__link { font-size: 15px; padding: 6px 0; }
    .dots--products { top: 12px; right: 10px; }

    .site-footer { padding: 36px 0 28px; }
    .site-footer .container { gap: 22px; }
    .site-footer__top { flex-direction: column; gap: 22px; }
    .site-footer__contact { gap: 22px; }
    .site-footer__logo { height: 34px; }
    .site-footer__address { flex-direction: row; row-gap: 6px; }
    .site-footer__address > span:first-child { flex-basis: 100%; }
    .site-footer__address > .site-footer__dot:nth-child(2) { display: none; }
    .site-footer__links { flex-direction: column; gap: 0; }
    .site-footer__links a { display: block; padding: 10px 0; }
    .site-footer__bottom { padding-top: 16px; font-size: 13px; }
    .site-footer__copy-full { display: none; }
    .site-footer__copy-short { display: inline; }
    .cert { height: 33px; }

    .page-hero { height: 300px; }
    .page-hero__shade { background: linear-gradient(0deg, rgba(12, 16, 11, 0.88) 0%, rgba(12, 16, 11, 0.45) 50%, rgba(12, 16, 11, 0) 78%); }
    .page-hero__inner { width: 100%; }
    .page-hero__caption { left: 20px; right: 20px; bottom: 28px; gap: 10px; }
    .crumbs ol { font-size: 12px; gap: 0 10px; }
    .crumbs li { gap: 10px; }
    .crumbs li + li::before { width: 20px; }
    .page-title { font-size: 32px; line-height: 1.08; letter-spacing: -0.01em; }
    .page-meta { font-size: 15px; }
    .page-wrap { padding: 24px 0 56px; }
    .page-layout { padding-left: 0; }
    .page-body, .page-body--aside { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .page-card { padding: 24px 20px; }
    .page-card > * + * { margin-top: 24px; }
    .page-aside { order: 2; }
    .entry { font-size: 16px; }
    .entry h2, .page-card h2 { font-size: 24px; }
    .entry h3 { font-size: 20px; }
    .docs__title { font-size: 22px; }
    .docs__link { padding: 14px 0; }
    .docs__link:hover { background: none; }
    .docs__name { font-size: 16px; }
    .docs__group summary { padding: 14px 0; font-size: 16px; }
    .docs__group .docs__list { padding-left: 0; }
    .card__link { padding: 18px 0; }
    .card__link:hover { background: none; }
    .card__title { font-size: 20px; }
    .card__text { font-size: 15px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .facts > div { padding-left: 14px; }
    .facts dd { font-size: 18px; }
    .tolls__head { align-items: flex-start; gap: 16px; }
    .tolls__head h2 { font-size: 22px; }
    .tolls__pic { width: 84px; }
    .price-table { font-size: 14px; }
    .price-table th, .price-table td { padding: 8px 10px; }
    .calc__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .calc__cats legend { margin-bottom: 10px; }
    .calc__stations { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .calc__result { padding: 24px; }
    .calc__price { font-size: 40px; }
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .form__title { font-size: 24px; }
    .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .cams { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .popup__body { padding: 24px 20px; }
    .consent { bottom: 0; padding: 0; }
    .consent__box { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px 16px 24px; border-radius: 4px 4px 0 0; box-shadow: 0 -8px 24px rgba(29, 33, 27, 0.14); }
    .consent__title { font-size: 18px; }
    .consent__actions { justify-content: stretch; }
    .consent__actions .button { flex: 1 1 auto; }
    .site-footer__legal { flex-direction: column; align-items: flex-start; gap: 0; }
    .site-footer__consent { padding: 10px 0; }
}

@media (min-width: 600px) and (max-width: 991px) {
    .hero { height: 520px; }
    .tiles--mob { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tiles--mob .tile--wide { grid-column: span 4; }
    .home-news__grid { gap: 40px; }
    .calc__cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .cams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media print {
    .site-header, .site-footer, .to-top, .mob-menu, .page-hero__img, .page-hero__shade, .hero__controls { display: none !important; }
    .page-hero { height: auto; background: none; }
    .page-hero__caption { position: static; }
    .page-title, .crumbs a { color: #000; }
    .page-layout { padding: 0; }
}
