/* ============================================================
   Grad Vinkovci – predložak službene web stranice
   ============================================================ */

:root {
    --blue-900: #07294a;
    --blue-800: #0a3a6b;
    --blue-700: #0a4d8c;
    --blue-600: #1273c4;
    --blue-100: #e3eef9;
    --gold-500: #e8b021;
    --gold-600: #c49212;
    --vk-yellow: #FFDD03;
    --ink: #1c2733;
    --ink-soft: #51606f;
    --line: #e2e8ef;
    --bg-soft: #f5f8fb;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(10, 40, 70, 0.08);
    --shadow-md: 0 8px 28px rgba(10, 40, 70, 0.12);
    --container: 1200px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fab-size: 52px;
    --fab-gap: 18px;
    --fab-bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom, 0px));
    --header-sticky-h: 118px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 10000;
    transform: translateY(-220%);
    background: var(--blue-900);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    transform: none;
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img, video, iframe, svg { max-width: 100%; height: auto; }

a { color: var(--blue-700); text-decoration: none; }

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Gornja traka ============ */
.topbar {
    background: var(--blue-900);
    color: #b9cde2;
    font-size: 0.82rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 16px;
}

.topbar__links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.topbar__links a {
    color: #b9cde2;
    transition: color 0.15s;
}

.topbar__links a:hover { color: var(--white); }

.topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__social {
    color: #b9cde2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.topbar__social:hover { color: var(--gold-500); }

/* ============ Zaglavlje ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    background: var(--white);
    border-bottom: 4px solid var(--vk-yellow);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.brand__crest img {
    display: block;
    height: 52px;
    width: auto;
}

.brand--footer .brand__crest img { height: 46px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__name {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--blue-800);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.brand__tagline {
    font-size: 0.72rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Navigacija --- */
.nav__panel-head,
.nav__panel-foot,
.nav__title,
.nav__close { display: none; }

.nav__list {
    display: flex;
    gap: 4px;
}

.nav__item { position: relative; }

.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s;
}

.has-dropdown > .nav__link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.55;
}

.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link { color: var(--blue-600); }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 9px 20px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--ink);
    transition: background 0.12s, color 0.12s, padding-left 0.12s;
}

.dropdown a:hover {
    background: var(--blue-100);
    color: var(--blue-700);
    padding-left: 26px;
}

/* --- Navigacija: dotjerivanje za desktop --- */
@media (min-width: 881px) {
    .nav {
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .nav__list {
        align-items: center;
        gap: 6px;
    }

    .nav__item {
        flex-shrink: 0;
    }

    .nav__link {
        justify-content: center;
        text-align: left;
        min-height: 76px;
        white-space: nowrap;
        padding: 10px 12px;
        line-height: 1.25;
        font-size: 0.875rem;
        transition: color 0.15s, background 0.15s;
    }

    .nav__item::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 10px;
        right: 10px;
        height: 3px;
        background: var(--gold-500);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .nav__item:hover::after,
    .nav__item:focus-within::after {
        transform: scaleX(1);
    }

    .nav__item:hover > .nav__link,
    .nav__item:focus-within > .nav__link {
        color: var(--blue-600);
        background: var(--blue-100);
    }

    .nav__link-chevron {
        display: none;
    }
}

@media (min-width: 881px) and (max-width: 1200px) {
    .nav__link {
        font-size: 0.82rem;
        padding: 10px 8px;
    }

    .header__inner { gap: 16px; }
}

/* --- Pretraga --- */
.search-toggle {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    color: var(--blue-700);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.search-toggle:hover { background: var(--blue-700); color: var(--white); }

.header-contact-toggle {
    display: none;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    color: var(--blue-700);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.header-contact-toggle:hover { background: var(--blue-700); color: var(--white); }

.searchbar {
    display: none;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.searchbar.is-open { display: block; }

.searchbar form { display: flex; gap: 10px; }

.searchbar input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.searchbar input:focus { border-color: var(--blue-600); }

.searchbar button {
    padding: 12px 28px;
    font: inherit;
    font-weight: 600;
    background: var(--blue-700);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.searchbar button:hover { background: var(--blue-600); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav__panel-search { display: none; }

/* --- Hamburger --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--blue-800);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open { overflow: hidden; }

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 41, 74, 0.45);
    z-index: 85;
}

@media (max-width: 880px) {
    body.nav-open .nav-backdrop { display: block; }
}

/* ============ Hero (shared) ============ */
.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 64px;
    padding-bottom: 72px;
    max-width: var(--container);
}

.hero__kicker {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-500);
    margin-bottom: 14px;
}

.hero h1,
.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 18px;
    max-width: 14ch;
}

.hero__lead {
    font-size: 1.08rem;
    max-width: 156ch;
    opacity: 0.92;
    margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Hero — fade ============ */
.hero--fade .hero__slides {
    position: relative;
    width: 100%;
    height: clamp(420px, 34vw, 620px);
}

.hero--fade .hero__slide {
    position: absolute;
    inset: 0;
    background: var(--img);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
}

.hero--fade .hero__slide--photo {
    background-color: var(--blue-900);
}

.hero--fade .hero__slide--photo .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero--fade .hero__slide.is-active { opacity: 1; visibility: visible; }

.hero--fade .hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255,255,255,0.08), transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(0,0,0,0.18), transparent 60%);
    pointer-events: none;
}

.hero--fade .hero__slide--photo::before {
    background:
        linear-gradient(
            105deg,
            rgba(8, 42, 78, 0.88) 0%,
            rgba(8, 42, 78, 0.62) 42%,
            rgba(8, 42, 78, 0.18) 68%,
            transparent 88%
        ),
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255,255,255,0.06), transparent 60%);
}

.hero--fade .hero__slide--photo .hero__kicker {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero--fade .hero__slide--photo h1,
.hero--fade .hero__slide--photo .hero__lead {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero--fade .hero__dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero--fade .hero__dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero--fade .hero__dots button.is-active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    transform: scale(1.2);
}

/* ============ Hero — slide ============ */
.hero--slide {
    background: #061628;
    height: clamp(420px, calc(100vh - 70px), 640px);
}

.hero--slide .hero__track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
}

.hero--slide .hero__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: block;
}

.hero--slide .hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}

.hero--slide .hero__media--photo {
    background-color: var(--blue-900);
}

.hero--slide .hero__media--photo .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero--slide .hero__slide.is-active .hero__media:not(.hero__media--video) {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero--slide .hero__media {
        transform: scale(1);
        transition: none;
    }
}

.hero--slide .hero__grad {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(6, 22, 40, 0.78) 0%, rgba(6, 22, 40, 0.3) 60%, rgba(6, 22, 40, 0.1) 100%);
    pointer-events: none;
}

.hero--slide .hero__grad2 {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(6, 22, 40, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero--slide .hero__content.hero__content--slide {
    position: absolute;
    top: 0;
    bottom: 80px;
    left: max(32px, calc((100% - var(--container)) / 2 + 32px));
    right: auto;
    z-index: 2;
    width: min(800px, calc(100% - 64px));
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 32px;
}

.hero--slide .hero__kicker--slide {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero--slide .hero__kicker--slide::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold-500);
    display: block;
    flex-shrink: 0;
}

.hero--slide .hero__title {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 14px;
    max-width: none;
    text-wrap: balance;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero--slide .hero__lead--slide {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 520px;
    width: 100%;
    margin-bottom: 30px;
    opacity: 1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero--slide .hero__actions {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.hero--slide .hero__btn-slide {
    align-self: flex-start;
    width: auto;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 12px 26px;
    border-radius: 2px;
}

.hero--slide .hero__btn-slide:hover {
    background: #b08a35;
    color: #fff;
}

.hero--slide .hero__btn-slide svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.hero--slide .hero__btn-slide:hover svg {
    transform: translateX(2px);
}

.hero--slide .hero__controls,
.hero-stack > .hero__controls {
    position: absolute;
    bottom: 28px;
    left: max(32px, calc((100% - var(--container)) / 2 + 32px));
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero--slide .hero__dots--slide,
.hero-stack .hero__dots--slide {
    position: static;
    transform: none;
    display: flex;
    gap: 8px;
}

.hero--slide .hero__dots--slide button,
.hero-stack .hero__dots--slide button {
    width: 24px;
    height: 3px;
    border-radius: 0;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.25s;
}

.hero--slide .hero__dots--slide button.is-active,
.hero-stack .hero__dots--slide button.is-active {
    background: var(--gold-500);
    width: 40px;
    transform: none;
}

.hero--slide .hero__arrows,
.hero-stack .hero__arrows {
    display: flex;
    gap: 8px;
}

.hero--slide .hero__arrow,
.hero-stack .hero__arrow {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}

.hero--slide .hero__arrow:hover,
.hero-stack .hero__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero--slide .hero__arrow svg,
.hero-stack .hero__arrow svg {
    width: 16px;
    height: 16px;
}

.hero--slide .hero__counter,
.hero-stack > .hero__counter {
    position: absolute;
    right: 40px;
    bottom: 28px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    z-index: 10;
    letter-spacing: 0.06em;
}

.hero--slide .hero__counter span,
.hero-stack > .hero__counter span {
    color: rgba(255, 255, 255, 0.9);
}

.hero--slide + .services {
    padding-top: 0;
}

.hero--slide + .services .services__grid {
    position: relative;
    z-index: 1;
    transform: translateY(-72px);
    margin-bottom: -36px;
}

@media (min-width: 881px) {
    .hero-stack:has(.services) > .hero__controls,
    .hero--slide:has(+ .services) > .hero__controls {
        bottom: 118px;
    }

    .hero-stack:has(.services) > .hero__counter,
    .hero--slide:has(+ .services) > .hero__counter {
        bottom: 126px;
    }
}

.hero-stack {
    position: relative;
    --hero-slide-h: clamp(420px, calc(100vh - 70px), 640px);
}

.hero-stack > .hero--slide {
    position: relative;
    z-index: 0;
}

.hero-stack > .services {
    position: relative;
    z-index: 1;
}

.hero-stack > .hero__controls,
.hero-stack > .hero__counter {
    position: absolute;
    z-index: 2;
}

.hero-stack > .hero__controls {
    top: calc(var(--hero-slide-h) - 102px);
    bottom: auto;
    left: max(32px, calc((100% - var(--container)) / 2 + 32px));
}

.hero-stack > .hero__counter {
    top: calc(var(--hero-slide-h) - 82px);
    bottom: auto;
    right: 40px;
}

/* ============ Gumbi ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--gold-500); color: var(--blue-900); }
.btn--accent:hover { background: #f3c23a; }

.btn--ghost {
    border-color: rgba(255,255,255,0.55);
    color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--outline {
    border-color: var(--blue-700);
    color: var(--blue-700);
}
.btn--outline:hover { background: var(--blue-700); color: var(--white); }

.btn--primary {
    background: var(--blue-700);
    color: var(--white);
    border-color: var(--blue-700);
}
.btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); }

.btn--pill {
    border-color: transparent;
    background: #f0f1f2;
    color: var(--ink);
    border-radius: 99px;
    font-weight: 600;
}

.btn--pill:hover {
    background: #e4e6e8;
    color: var(--ink);
}

/* ============ Brze usluge ============ */
.services {
    background: var(--bg-soft);
    padding: 0 0 8px;
}

.services--bottom {
    padding: 16px 0 24px;
}

.services--bottom .services__grid {
    transform: none;
    margin-bottom: 0;
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    transform: translateY(-72px);
    margin-bottom: -36px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 calc((100% - (var(--services-count, 6) - 1) * 14px) / var(--services-count, 6));
    max-width: calc((100% - (var(--services-count, 6) - 1) * 14px) / var(--services-count, 6));
    min-width: 0;
    min-height: 132px;
    background: var(--white);
    border: none;
    border-radius: 16px;
    padding: 16px 14px 14px;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(24, 32, 48, 0.08);
    transition: transform 0.18s, box-shadow 0.18s;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(24, 32, 48, 0.14);
}

.service-card:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

.service-card__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0 0 4px;
    border-radius: 10px;
    background: #eef1f4;
    color: #5f6b78;
    display: grid;
    place-items: center;
    transition: background 0.18s, color 0.18s;
}

.service-card:hover .service-card__icon,
.service-card:focus-visible .service-card__icon {
    background: var(--blue-900);
    color: var(--white);
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
}

.service-card h3 {
    flex: 0 0 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-900);
    margin: 0;
    line-height: 1.25;
    text-wrap: balance;
}

.service-card__desc {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    color: #6d7785;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card__line {
    display: block;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
}

@media (min-width: 1081px) {
    .services .container {
        max-width: min(1440px, calc(100vw - 48px));
    }
}

@media (max-width: 1360px) {
    .service-card {
        flex: 0 1 calc((100% - 3 * 14px) / 4);
        max-width: calc((100% - 3 * 14px) / 4);
    }
}

/* ============ Info kutije ============ */
.info-boxes {
    background: var(--bg-soft);
    padding: 8px 0 48px;
}

.info-boxes--with-ticker,
.info-boxes:has(.announcement-ticker) {
    padding-top: 0;
}

.info-boxes--before-prefooter {
    padding-top: 40px;
    padding-bottom: 24px;
}

.info-boxes__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.info-card {
    flex: 0 1 calc((100% - 2 * 20px) / 3);
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}

.info-card h3 {
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}

.info-card__body {
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.55;
    overflow-wrap: break-word;
}

.info-card__body p { margin: 0 0 8px; }
.info-card__body p:last-child { margin-bottom: 0; }
.info-card__body strong { color: var(--ink); }
.info-card__body a { color: var(--blue-700); text-decoration: none; }
.info-card__body a:hover { text-decoration: underline; }
.info-card__body ul { margin: 0 0 8px; padding-left: 18px; }

/* ============ Sekcijska zaglavlja ============ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--blue-900);
    position: relative;
    padding-bottom: 12px;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--gold-500);
}

.section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blue-700);
    transition: gap 0.15s;
}

.section-head__link:hover { gap: 10px; }

/* ============ Novosti ============ */
.news {
    padding: 72px 0 64px;
    background: var(--white);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    --news-media-height: 200px;
    background: #f3f4f5;
    border: 1px solid #e7e9eb;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
}

.news-card--compact { --news-media-height: 120px; }

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card--featured {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
}

.news-card__media {
    position: relative;
    background-image: var(--img);
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, center);
    background-repeat: no-repeat;
    min-height: var(--news-media-height);
    flex-shrink: 0;
}

/* Grid kartice: ujednačena visina slika (fotografije i placeholder) */
.news__grid .news-card:not(.news-card--featured):not(.news-card--carousel) .news-card__media,
.news__grid--4col .news-card__media {
    min-height: var(--news-media-height);
    height: var(--news-media-height);
    overflow: hidden;
}

.news__grid .news-card:not(.news-card--featured):not(.news-card--carousel) .news-card__media:has(img),
.news__grid--4col .news-card__media:has(img) {
    background: none;
}

.news__grid .news-card:not(.news-card--featured):not(.news-card--carousel) .news-card__media > img,
.news__grid--4col .news-card__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Istaknuta vijest (featured layout): fiksna visina media slike */
.news-featured__media:has(img) {
    min-height: 280px;
    height: 280px;
    background: none;
    overflow: hidden;
}

.news-featured__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Karusel kartice: fiksna visina media, tekst ostaje vidljiv */
#novosti .news-card--carousel .news-card__media:has(img) {
    flex: none;
    min-height: 230px;
    height: 230px;
    background: none;
    overflow: hidden;
}
#novosti .news-card--carousel .news-card__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform-origin: center top;
    transition: transform 0.45s ease;
}
#novosti .news-card--carousel:hover .news-card__media > img {
    transform: scale(1.06);
}

.news-card--no-image .news-card__media {
    background: #2b57a1 center/contain no-repeat;
    background-image: url('../img/novosti-placeholder.webp'), url('../img/novosti-placeholder.png');
}

.news-card--no-image .news-card__media::after {
    display: none;
}

.news-card--featured .news-card__media { width: 46%; min-height: 100%; }

.news-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.14), transparent 55%);
}

.news-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--gold-500);
    color: var(--blue-900);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 99px;
}

.news-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--featured h3 { font-size: 1.45rem; }

.news-card h3 a { color: var(--ink); transition: color 0.15s; }
.news-card h3 a:hover { color: var(--blue-600); }

.news-card p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--featured p { -webkit-line-clamp: 5; }

.news-card--compact .news-card__body { padding: 16px 18px 18px; }
.news-card--compact p { -webkit-line-clamp: 2; }

.more-link {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue-700);
}

.more-link::after {
    content: " →";
    transition: margin-left 0.15s;
}

.more-link:hover::after { margin-left: 4px; }

.news__more {
    margin-top: 40px;
    text-align: center;
}

/* --- Arhiva novosti: filter + popis --- */
.news--archive {
    padding: 40px 0 64px;
}

.news-archive {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.news-filter {
    position: sticky;
    top: calc(var(--header-sticky-h) + 16px);
    max-height: calc(100vh - var(--header-sticky-h) - 32px);
    overflow-y: auto;
    background: var(--white);
    border: 1px solid #e7e9eb;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px 20px;
}

.news-filter__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-filter__search {
    position: relative;
}

.news-filter__search input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.news-filter__search input:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(18, 115, 196, 0.12);
}

.news-filter__search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-soft);
    pointer-events: none;
    display: flex;
}

.news-filter__dates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.news-filter__dates .news-filter__field {
    min-width: 0;
}

.news-filter__field input[type="date"],
.news-filter__field input[type="text"],
.news-filter__field input.flatpickr-input,
.news-filter__field .flatpickr-input.form-control {
    font-size: 0.88rem;
    min-width: 0;
}

.news-filter__field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.news-filter__field input[type="date"],
.news-filter__field input[type="text"],
.news-filter__field input.flatpickr-input,
.news-filter__field .flatpickr-input.form-control,
.news-filter__field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.news-filter__field input[type="date"]:focus,
.news-filter__field input[type="text"]:focus,
.news-filter__field input.flatpickr-input:focus,
.news-filter__field .flatpickr-input.form-control:focus,
.news-filter__field select:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(18, 115, 196, 0.12);
}

.news-filter__field .flatpickr-wrapper,
.news-filter__field .flatpickr-input {
    width: 100%;
}

.news-filter__submit {
    width: 100%;
    margin-top: 4px;
    justify-content: center;
}

.news-filter__reset {
    margin: 0;
    text-align: center;
    font-size: 0.88rem;
}

.news-archive__count {
    margin: 0 0 20px;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.news-archive__empty {
    margin: 0;
    padding: 32px 0;
    color: var(--ink-soft);
}

.news-archive__list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-archive__item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid #e7e9eb;
}

.news-archive__item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.news-archive__media {
    display: block;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.news-archive__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-archive__item--no-image .news-archive__media {
    background: #2b57a1 center/contain no-repeat;
    background-image: url('../img/novosti-placeholder.webp'), url('../img/novosti-placeholder.png');
}

.news-archive__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.news-archive__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.news-archive__title a {
    color: var(--blue-700);
    transition: color 0.15s;
}

.news-archive__title a:hover {
    color: var(--blue-600);
}

.news-archive__excerpt {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-archive__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: auto;
    font-size: 0.84rem;
    color: var(--ink-soft);
}

.news-archive__meta time {
    font-weight: 600;
}

.news-archive__category {
    position: relative;
    padding-left: 16px;
    font-weight: 600;
}

.news-archive__category::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-500);
}

.news-archive__main .pagination {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e7e9eb;
}

.news-archive__main .pagination--compact {
    justify-content: flex-start;
    gap: 8px;
    row-gap: 8px;
}

.news-archive__main .pagination--compact .pagination__link,
.news-archive__main .pagination--compact .pagination__nav {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.news-archive__main .pagination--compact .pagination__nav {
    font-size: 1.25rem;
    line-height: 1;
}

.news-archive__main .pagination--compact .pagination__ellipsis {
    min-width: 24px;
    padding: 0 2px;
}

@media (max-width: 880px) {
    :root {
        --header-sticky-h: 96px;
    }

    .news-archive {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .news-filter {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }

    .news-archive__item {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 16px;
    }

    .news-archive__media {
        height: 90px;
    }
}

@media (max-width: 560px) {
    .news-archive__item {
        grid-template-columns: 1fr;
    }

    .news-archive__media {
        height: 180px;
    }
}

/* --- 4-stupčani prikaz novosti (naslovnica) --- */
.news--4col .section-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.news--4col .section-head h2::after {
    display: none;
}

.news__grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.news-card--classic {
    --news-media-height: 160px;
    background: #f7f7f7;
    border: none;
    border-radius: 8px;
}

.news-card--classic:hover {
    transform: none;
    box-shadow: none;
}

.news-card--classic .news-card__body {
    padding: 18px 20px 20px;
    gap: 8px;
}

.news-card--classic h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 4;
}

.news-card--classic p {
    font-size: 0.88rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}

.news-card--classic time {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 400;
    color: #8a939c;
    text-transform: none;
    letter-spacing: 0;
}

/* --- Istaknuta vijest + karusel (naslovnica) --- */
.news-layout--featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
}

.news-featured {
    background: var(--white);
    border: 1px solid #e7e9eb;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s, box-shadow 0.18s;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-featured__media {
    position: relative;
    display: block;
    background-image: var(--img);
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, center);
    background-repeat: no-repeat;
    min-height: 280px;
    flex-shrink: 0;
}

.news-featured--no-image .news-featured__media {
    background: #2b57a1 center/contain no-repeat;
    background-image: url('../img/novosti-placeholder.webp'), url('../img/novosti-placeholder.png');
}

.news-featured--no-image .news-featured__media::after {
    display: none;
}

.news-featured__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 41, 74, 0.08) 0%, transparent 45%);
}

.news-featured__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.news-featured h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured h3 a {
    color: var(--ink);
    transition: color 0.15s;
    overflow-wrap: break-word;
}

.news-featured h3 a:hover {
    color: var(--blue-600);
}

.news-featured p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    min-width: 0;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-carousel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.news-carousel__track {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.news-carousel__slide {
    display: none;
}

.news-carousel__slide.is-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.news-carousel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.news-card--carousel {
    height: 100%;
    --news-media-height: 0;
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(7, 41, 74, 0.08);
}

.news-card--carousel:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(7, 41, 74, 0.08);
}

.news-card--carousel .news-card__media {
    flex: none;
    min-height: 230px;
    overflow: hidden;
}

.news-card--carousel .news-card__body {
    padding: 16px 20px 20px;
    gap: 8px;
    flex-shrink: 0;
}

.news-card--carousel time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #8a939c;
    text-transform: none;
    letter-spacing: 0;
}

.news-card--carousel time svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.news-card--carousel h3 {
    font-size: 1.02rem;
    font-weight: 700;
    -webkit-line-clamp: 2;
}

.news-card--carousel h3 a {
    color: #163a6b;
}

.news-card--carousel h3 a:hover {
    color: var(--blue-600);
}

.news-card--carousel p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink-soft);
    -webkit-line-clamp: 3;
}

.news-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.news-layout--featured > .news-carousel__dots {
    grid-column: 1 / -1;
    margin-top: 12px;
}

.news-layout--featured .news-carousel .news-carousel__dots {
    margin-top: 12px;
}

.news-carousel__dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: #c4cad0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.news-carousel__dots button.is-active {
    background: var(--blue-700);
    transform: scale(1.2);
}

.news-carousel__dots button:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

.news-carousel--single .news-carousel__dots {
    display: none;
}

.news-carousel--featured .news-carousel__track {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
}

.news-carousel--featured .news-carousel__slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.news-carousel--featured .news-carousel__slide:not(.is-active) {
    position: absolute;
    inset: 0;
    width: 100%;
}

.news-carousel--featured .news-carousel__slide.is-active {
    position: relative;
    flex: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.news-carousel--featured .news-featured {
    height: 100%;
    flex: 1;
    min-width: 0;
}

.news-carousel--featured .news-carousel__dots {
    margin-top: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination__link,
.pagination__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid var(--blue-700);
    color: var(--blue-700);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pagination__nav {
    padding: 8px 14px;
}

.pagination__link:hover,
.pagination__nav:not(.is-disabled):hover {
    background: var(--blue-700);
    color: var(--white);
}

.pagination__link.is-active {
    background: var(--blue-700);
    color: var(--white);
    border-color: var(--blue-700);
}

.pagination__nav.is-disabled {
    opacity: 0.4;
    cursor: default;
    border-color: #c4cad0;
    color: var(--ink-soft);
}

.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 8px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

/* ============ Projekti ============ */
.projects-section {
    padding: 40px 0 64px;
    background: #f0f2f4;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.project-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 20px 16px 24px;
    border-radius: var(--radius);
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    border-bottom: 3px solid var(--gold-500);
    transition: transform 0.18s, box-shadow 0.18s;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 58, 107, 0.78);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-card__title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.project-detail__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.project-detail__logo {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-detail__fields {
    margin: 0 0 28px;
    padding: 0;
}

.project-detail__field {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 12px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.project-detail__field dt {
    margin: 0;
    font-weight: 700;
    color: var(--blue-900);
}

.project-detail__field dd {
    margin: 0;
    color: #2c3a48;
}

/* ============ Događanja ============ */
.events { padding: 72px 0; }

.events__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

.events__inner--list-only {
    grid-template-columns: 1fr;
}

.events__inner--aside-only {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.home-row__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

.home-row__col--main:only-child,
.home-row__inner.events__inner--list-only .home-row__col--main {
    grid-column: 1 / -1;
}

.news--in-column .news-layout--featured {
    grid-template-columns: 1fr;
}

.home-custom-widget {
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .home-row__inner { grid-template-columns: 1fr; }
}

.event-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-left: 3px solid transparent;
    border-radius: 14px;
    margin-bottom: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.event-row:hover {
    border-left-color: var(--gold-500);
    border-color: var(--line);
    background: var(--bg-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.event-row:hover .event-row__body h3,
.event-row:hover .event-row__body h4 {
    color: var(--blue-900);
}

.event-row--link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.events__list--page .event-row__body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-700);
}

.event-row__date {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--blue-700);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.event-row__date strong { font-size: 1.45rem; font-weight: 800; }
.event-row__date span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.85; }

.event-row__body h3,
.event-row__body h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.2s;
}

.event-row__body p {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* --- grupirani prikaz (naslovnica) --- */
.events__list--grouped {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.events__past-note {
    margin: -12px 0 20px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.events-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.events-day__title {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}

.events-day__weekday {
    color: var(--ink);
}

.events-day__date {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-soft);
}

.events-day__pill {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.events-day__pill--today {
    background: var(--gold-500);
    color: var(--blue-900);
}

.events-day__pill--tomorrow {
    background: var(--blue-100);
    color: var(--blue-700);
}

.events-day__items {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.event-item {
    display: grid;
    grid-template-columns: 44px 108px 1fr;
    gap: 12px 16px;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    transition: background 0.2s;
}

.events-day__items > .event-item:last-child {
    border-bottom: 0;
}

.event-item:hover {
    background: var(--bg-soft);
}

.event-item:hover .event-item__title {
    color: var(--blue-900);
}

.event-item__thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--blue-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-item__thumb-fallback--default {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-700);
}

.event-item__thumb-icon {
    display: block;
    flex-shrink: 0;
}

.event-item__time {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--blue-800);
    white-space: nowrap;
    line-height: 1.3;
}

.event-item__time--empty {
    display: block;
    background: none;
    padding: 0;
    min-height: 0;
}

.event-item__body {
    min-width: 0;
}

.event-item__title {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--blue-900);
    line-height: 1.35;
    transition: color 0.2s;
}

.event-item__meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.event-item__location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-item__location-icon {
    flex-shrink: 0;
    color: var(--blue-600);
    opacity: 0.85;
}

.event-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.event-item__cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-soft);
    color: var(--ink-soft);
}

.event-item__cat--kultura { background: #f3e8ff; color: #6d28d9; }
.event-item__cat--glazba { background: #dbeafe; color: #1d4ed8; }
.event-item__cat--sport { background: #dcfce7; color: #15803d; }
.event-item__cat--djeca { background: #fef3c7; color: #b45309; }
.event-item__cat--gradska-uprava { background: #e0e7ff; color: #4338ca; }
.event-item__cat--gospodarstvo { background: #fce7f3; color: #be185d; }

.event-detail__location {
    margin: 0 0 20px;
}

.event-detail__image {
    margin: 0 0 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.event-detail__image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 640px) {
    .event-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 12px 14px;
    }

    .event-item__thumb {
        width: 40px;
        height: 40px;
        grid-row: span 2;
        border-radius: 10px;
    }

    .event-item__thumb-icon {
        width: 20px;
        height: 20px;
    }

    .event-item__time {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.74rem;
        justify-self: start;
    }

    .event-item__time--empty {
        display: none;
        background: none;
        padding: 0;
        min-height: 0;
    }

    .event-item__body {
        grid-column: 2;
        grid-row: 2;
    }

    .event-item--no-time .event-item__body {
        grid-row: 1;
    }

    .event-item--no-time .event-item__thumb {
        grid-row: span 1;
        align-self: start;
    }

    .event-item__title {
        font-size: 0.92rem;
    }

    .event-item__meta {
        font-size: 0.78rem;
    }
}

/* --- bočni stupac --- */
.events__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card {
    background: var(--blue-900);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
}

.stats-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-500);
}

.stats-card ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stats-card li { display: flex; flex-direction: column; }

.stats-card strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-500);
}

.stats-card span { font-size: 0.78rem; opacity: 0.85; line-height: 1.4; }

.banner-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    color: var(--blue-900);
    border-radius: var(--radius);
    padding: 26px 28px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.banner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.banner-card__kicker {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
}

.banner-card strong { font-size: 1.2rem; font-weight: 800; }

.banner-card__cta { font-size: 0.9rem; font-weight: 700; margin-top: 8px; }

/* ============ Brzi linkovi (prije podnožja) ============ */
.prefooter {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}

.prefooter__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 48px;
}

.prefooter__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prefooter__link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 0.92rem;
    font-weight: 600;
}

.prefooter__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: #f1f2f4;
    border-radius: 4px;
    color: #555;
    transition: background 0.15s, color 0.15s;
}

.prefooter__link:hover .prefooter__icon {
    background: var(--blue-700);
    color: var(--white);
}

.prefooter__link:hover .prefooter__text { color: var(--blue-700); }

/* ============ Podnožje ============ */
.footer {
    background: var(--blue-900);
    color: #b9cde2;
    border-top: 4px solid var(--vk-yellow);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 36px;
    padding: 56px 24px 44px;
}

.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__tagline { color: #8fa9c4; }

.footer__col--brand address {
    font-style: normal;
    font-size: 0.88rem;
    margin: 18px 0;
    line-height: 1.7;
    word-break: break-word;
}

.footer__col--brand address a { color: var(--gold-500); }

.footer__social { display: flex; gap: 12px; }

.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #b9cde2;
    display: grid;
    place-items: center;
    transition: background 0.15s, color 0.15s;
}

.footer__social a:hover { background: var(--gold-500); color: var(--blue-900); }

.footer__col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--vk-yellow);
    display: inline-block;
}

.footer__col ul li { margin-bottom: 8px; }

.footer__col ul a {
    font-size: 0.86rem;
    color: #b9cde2;
    transition: color 0.15s, padding-left 0.15s;
}

.footer__col ul a:hover { color: var(--white); padding-left: 4px; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    font-size: 0.82rem;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a { color: #b9cde2; }
.footer__bottom a:hover { color: var(--white); }

/* ============ Podstranice ============ */
.page-hero {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: var(--white);
    padding: 56px 0;
    scroll-margin-top: var(--header-sticky-h);
}

.page-hero .breadcrumbs {
    font-size: 0.84rem;
    margin-bottom: 12px;
    opacity: 0.85;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.page-hero .breadcrumbs a { color: var(--gold-500); }

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.page-content {
    padding-block: 56px 72px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.page-content > .article,
.page-content > .sidebar {
    min-width: 0;
}

.page-content--wide {
    grid-template-columns: minmax(0, 960px);
    justify-content: center;
}

.page-content--wide > .sidebar {
    display: none;
}

.preview-banner {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: var(--radius-md, 10px);
    background: #fff8e6;
    border: 1px solid #f0d48a;
    color: #5c4a12;
    font-size: 0.95rem;
    line-height: 1.5;
}

.preview-banner strong {
    display: block;
    margin-bottom: 4px;
    color: #3d3208;
}

.preview-banner a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--blue-900, #0a3a6b);
}

.article {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    display: block;
    margin-bottom: 18px;
}

.article__meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: none;
    margin: 0 0 18px;
}

.article__meta a {
    color: var(--blue-900, #0a3a6b);
    text-decoration: underline;
}

.article p { margin-bottom: 18px; font-size: 1rem; color: #2c3a48; text-align: justify; }

.article h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue-900);
    margin: 32px 0 14px;
}

.article h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-900);
    margin: 28px 0 12px;
}

.article h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-900);
    margin: 24px 0 10px;
}

.article blockquote {
    margin: 0 0 18px;
    padding: 12px 18px;
    border-left: 4px solid var(--blue-600);
    background: var(--bg-soft);
    color: #2c3a48;
    font-style: italic;
}

.article ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 18px;
    color: #2c3a48;
}

.article ul li { margin-bottom: 6px; text-align: justify; }

.article ol {
    list-style: decimal;
    padding-left: 24px;
    margin-bottom: 18px;
    color: #2c3a48;
}

.article ol li {
    margin-bottom: 6px;
    list-style-position: outside;
    text-align: justify;
}

.article__media {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 320px;
    background-image: var(--img, linear-gradient(135deg, var(--blue-700), var(--blue-600)));
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, center);
    background-repeat: no-repeat;
    margin-bottom: 28px;
}

.article__media--contain {
    background-color: #1a2a3a;
}

.article__media:has(img) {
    background-image: none;
    min-height: 0;
}

.article__blocks {
    margin-bottom: 18px;
}

.article__blocks .article__body {
    margin-bottom: 18px;
}

.article__inline-image {
    position: relative;
    margin: 0 0 20px;
    text-align: center;
}

.article__media-download {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    background: rgba(7, 41, 74, 0.82);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(10, 40, 70, 0.2);
    transition: background 0.15s;
}

.article__media-download:hover,
.article__media-download:focus-visible {
    background: var(--blue-900);
    color: var(--white);
}

.article__media-download:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

.article__inline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article__inline-image figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #51606f;
}

.article__quote {
    margin: 0 0 18px;
    padding: 12px 18px;
    border-left: 4px solid var(--blue-600);
    background: var(--bg-soft);
    color: #2c3a48;
    font-style: italic;
}

.article__quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--ink-soft);
}

.article__embed {
    position: relative;
    width: 100%;
    margin: 0 0 24px;
    aspect-ratio: 16 / 9;
    background: #0a1a2a;
    border-radius: 8px;
    overflow: hidden;
}

.article__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article__button {
    margin: 0 0 24px;
    text-align: center;
}

.article__separator {
    border: 0;
    border-top: 2px solid var(--line);
    margin: 28px 0;
}

.article__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 0 24px;
}

.article__columns > div {
    min-width: 0;
}

.article__html {
    margin: 0 0 18px;
}

.block-list {
    margin: 0 0 28px;
}

.block-list__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-900);
    margin: 0 0 16px;
}

.block-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.block-list--cards .block-list__items {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.block-list--cards .block-list__items li {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.block-list--list .block-list__items li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.block-list--list .block-list__items li:last-child {
    border-bottom: 0;
}

@media (max-width: 768px) {
    .article__columns {
        grid-template-columns: 1fr;
    }
}

/* Besplatna pravna pomoć (predložak bpp) */
.bpp {
    margin-bottom: 28px;
}
.bpp__banner {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 28px;
}
.article p.bpp__banner-title {
    margin: 0 0 12px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    text-align: left;
}
.article p.bpp__banner-text {
    margin: 0;
    max-width: 68ch;
    line-height: 1.6;
    font-size: 1.02rem;
    color: var(--white);
    text-align: left;
}
.bpp__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.bpp__card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.bpp__card-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-800);
    line-height: 1.35;
}
.bpp__card ul {
    margin: 0;
    padding-left: 1.15rem;
}
.bpp__card li {
    margin-bottom: 6px;
    line-height: 1.45;
}
.bpp__card p {
    margin: 0;
    line-height: 1.5;
}
.bpp__card-note {
    margin: 14px 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.bpp__section-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: var(--blue-900);
}
.bpp__region {
    display: inline-block;
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
    color: var(--blue-700);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.bpp__subsection {
    margin: 24px 0 14px;
    font-size: 1.1rem;
    color: var(--blue-800);
}
.bpp__contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}
.bpp__contacts--offices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bpp__contact {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue-700);
    border-radius: var(--radius);
    padding: 16px 18px;
}
.bpp__contact-name {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--blue-900);
}
.bpp__contact-project {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.45;
}
.bpp__contact-details {
    margin: 0;
}
.bpp__contact-details > div {
    display: block;
    margin: 0 0 12px;
    line-height: 1.4;
}
.bpp__contact-details > div:last-child {
    margin-bottom: 0;
}
.bpp__contact-details dt {
    margin: 0 0 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.bpp__contact-details dd {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
}
.bpp__contact-details a {
    word-break: break-word;
}
.bpp__source {
    margin: 28px 0 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.45;
}
.article--bpp .content-gallery {
    margin-top: 12px;
}
.article--bpp .content-gallery__main {
    background: #e8eef5;
}
.article--bpp .content-gallery__slides {
    min-height: 0;
}
.article--bpp .content-gallery__slide {
    position: relative;
    display: none;
    inset: auto;
}
.article--bpp .content-gallery__slide.is-active {
    display: flex;
}
.article--bpp .content-gallery__slide img,
.article--bpp .content-gallery__zoom-trigger img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 720px;
    margin: 0 auto;
    object-fit: contain;
    background: #e8eef5;
}
@media (max-width: 768px) {
    .bpp__grid,
    .bpp__contacts,
    .bpp__contacts--offices {
        grid-template-columns: 1fr;
    }
}

.article table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    border: 1px solid #cfd8dc;
}

.article th,
.article td {
    border: 1px solid #cfd8dc;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.article th {
    font-weight: 700;
    background: #f4f7fa;
}

.article a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
    max-width: 100%;
}

.table-wrap table {
    margin-bottom: 0;
}

.article img,
.article video,
.article iframe {
    max-width: 100%;
    height: auto;
}

.article__media img {
    width: 100%;
    display: block;
    height: auto;
}

.article pre,
.article code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.article__media--placeholder {
    background: #2b57a1 center/contain no-repeat;
    background-image: url('../img/novosti-placeholder.webp'), url('../img/novosti-placeholder.png');
}

.article-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 36px 0 8px;
}

.article-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    border-radius: 12px;
    background: #eef1f4;
    color: var(--blue-700, #0a3a6b);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.article-nav__btn:hover {
    background: #e2e7ec;
    color: var(--blue-600, #0a4d8c);
}

.article-nav__btn svg {
    display: block;
}

/* ============ Galerija sadržaja (novosti, stranice) ============ */
.content-gallery {
    margin: 28px 0;
}

.content-gallery__main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--blue-900);
}

.content-gallery__slides {
    position: relative;
    min-height: clamp(240px, 42vw, 480px);
}

.content-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    flex-direction: column;
}

.content-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.content-gallery__slide img {
    width: 100%;
    height: clamp(240px, 42vw, 480px);
    object-fit: cover;
    display: block;
}

.content-gallery__zoom-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.content-gallery__zoom-trigger img {
    width: 100%;
    height: clamp(240px, 42vw, 480px);
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.content-gallery__zoom-trigger:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: -3px;
}

.content-gallery__caption {
    padding: 12px 16px;
    background: rgba(7, 41, 74, 0.88);
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
}

.content-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 77, 140, 0.85);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, transform 0.2s;
}

.content-gallery__nav:hover {
    background: var(--blue-700);
    transform: translateY(-50%) scale(1.05);
}

.content-gallery__nav--prev { left: 14px; }
.content-gallery__nav--next { right: 14px; }

.content-gallery__nav[hidden] {
    display: none !important;
}

.content-gallery__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.content-gallery__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.content-gallery__dots button.is-active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    transform: scale(1.15);
}

.content-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.content-gallery__thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 66px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--line);
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.75;
}

.content-gallery__thumb.is-active {
    border-color: var(--blue-700);
    opacity: 1;
}

.content-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .content-gallery__nav {
        width: 44px;
        height: 44px;
    }

    .content-gallery__nav--prev { left: 8px; }
    .content-gallery__nav--next { right: 8px; }

    .content-gallery__thumb {
        width: 72px;
        height: 54px;
    }
}

/* ============ Galerija – lightbox ============ */
body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 72px 24px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__toolbar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-lightbox__download {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    transition: background 0.2s;
}

.gallery-lightbox__download:hover,
.gallery-lightbox__download:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.gallery-lightbox__download:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.gallery-lightbox__download[hidden] {
    display: none;
}

.gallery-lightbox__zoom {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, opacity 0.2s;
}

.gallery-lightbox__zoom:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__zoom:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, transform 0.2s;
}

.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox__nav--prev { left: 16px; }
.gallery-lightbox__nav--next { right: 16px; }

.gallery-lightbox__stage {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__viewport {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.gallery-lightbox__viewport.is-pannable {
    cursor: grab;
}

.gallery-lightbox__viewport.is-pannable.is-dragging {
    cursor: grabbing;
}

.gallery-lightbox__img {
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-lightbox__caption {
    flex-shrink: 0;
    margin: 16px 0 0;
    padding: 0 16px;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .gallery-lightbox {
        padding: 52px 12px 16px;
    }

    .gallery-lightbox__close,
    .gallery-lightbox__zoom {
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox__nav--prev { left: 8px; }
    .gallery-lightbox__nav--next { right: 8px; }

    .gallery-lightbox__img {
        max-height: calc(100vh - 120px);
    }
}

.sidebar .widget {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar .widget h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-500);
}

.sidebar .widget ul li { margin-bottom: 10px; }

.sidebar .widget ul a {
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 600;
}

.sidebar .widget ul a:hover { color: var(--blue-600); }

/* ============ Ispis i dijeljenje sadržaja ============ */
/* ============ Slušaj članak (TTS) – native audio stil ============ */
.tts-player[hidden] {
    display: none !important;
}

.tts-player-fallback {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid #e8c9a8;
    border-radius: 10px;
    background: #fff8f0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink);
}

.tts-player-fallback[hidden] {
    display: none !important;
}

.tts-player-fallback__text {
    margin: 0 0 10px;
}

.tts-player-fallback__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--white);
    background: var(--blue-700);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.tts-player-fallback__btn:hover {
    background: var(--blue-600);
}

.tts-player {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 18px 0 8px;
    padding: 6px 12px;
    border: 1px solid #d8dde3;
    border-radius: 999px;
    background: #f1f3f4;
    max-width: 100%;
}

.tts-player__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.tts-player__toggle:hover { background: rgba(0, 0, 0, 0.06); }

.tts-player__icon { display: block; width: 18px; height: 18px; }

.tts-player__icon--pause,
.tts-player__icon--muted { display: none; }

.tts-player--speaking .tts-player__icon--play { display: none; }
.tts-player--speaking .tts-player__icon--pause { display: block; }

.tts-player--muted .tts-player__icon--volume { display: none; }
.tts-player--muted .tts-player__icon--muted { display: block; }

.tts-player__time {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
}

.tts-player__time-sep { color: var(--ink-soft); }

.tts-player__bar {
    position: relative;
    flex: 1;
    min-width: 60px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 99px;
    background: #c4c7cc;
    overflow: hidden;
    cursor: pointer;
}

.tts-player__bar:hover { background: #b0b4ba; }

.tts-player__progress {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 99px;
    background: var(--blue-700, #0a3a6b);
    pointer-events: none;
    transition: width 0.15s linear;
}

.tts-player__volume {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.tts-player__mute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.tts-player__mute:hover { background: rgba(0, 0, 0, 0.06); }

.tts-player__volume-range {
    width: 64px;
    height: 4px;
    margin: 0;
    accent-color: var(--blue-700, #0a3a6b);
    cursor: pointer;
}

.tts-player__menu {
    position: relative;
    flex-shrink: 0;
}

.tts-player__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.tts-player__menu-btn:hover { background: rgba(0, 0, 0, 0.06); }

.tts-player__menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 140px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tts-player__menu-title {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tts-player__rate-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tts-player__rate-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--ink);
    cursor: pointer;
    padding: 4px 2px;
    border-radius: 6px;
}

.tts-player__rate-option:hover { background: var(--bg-soft); }

.tts-player__rate-input { margin: 0; accent-color: var(--blue-700, #0a3a6b); }

@media (max-width: 640px) {
    .tts-player {
        flex-wrap: wrap;
        border-radius: 12px;
        padding: 8px 10px;
        gap: 8px;
    }

    .tts-player__bar {
        order: 3;
        flex-basis: 100%;
        min-width: 0;
    }

    .tts-player__volume-range { width: 48px; }
}

@media (max-width: 420px) {
    .tts-player__volume-range { display: none; }
}

@media print {
    .tts-player { display: none; }
}

.content-tools {
    margin: 32px 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    container-type: inline-size;
}

.content-tools__label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.content-tools__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@container (min-width: 740px) {
    .content-tools__actions {
        flex-wrap: nowrap;
    }
}

.content-tools__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--blue-700);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.content-tools__btn:hover,
.content-tools__btn:focus-visible {
    background: var(--blue-100);
    border-color: var(--blue-600);
    color: var(--blue-800);
}

.content-tools__btn svg {
    flex-shrink: 0;
}

.content-tools__btn span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 20;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--blue-900);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.content-tools__btn:hover span,
.content-tools__btn:focus-visible span {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .content-tools__actions {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ============ Savjetovanja s javnošću ============ */
.c-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.c-summary__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.c-summary__card strong {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--blue-700);
    line-height: 1.2;
}

.c-summary__card span {
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.newsletter-signup {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newsletter-signup label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.newsletter-signup input[type="email"],
.newsletter-signup input[type="text"] {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 400;
}

.newsletter-signup input:focus {
    outline: 2px solid var(--blue-600);
    border-color: transparent;
}

.newsletter-signup__topics,
.newsletter-signup__categories {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 0;
}

.newsletter-signup__topics legend,
.newsletter-signup__categories legend {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0 6px;
}

.newsletter-signup .checkbox-label {
    font-weight: 400;
    margin: 6px 0;
}

.newsletter-signup__msg {
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.9rem;
}

.newsletter-signup__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.newsletter-signup--compact .newsletter-signup__topics {
    padding: 10px 0 0;
    border: 0;
}

.newsletter-signup--inline {
    gap: 0;
    width: 100%;
    max-width: 480px;
}

.newsletter-cta .newsletter-signup--inline {
    max-width: none;
}

.newsletter-signup--inline .newsletter-signup__email-label {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}

.newsletter-signup--inline .newsletter-signup__bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.newsletter-signup--inline .newsletter-signup__bar input[type="email"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--white);
}

.newsletter-signup--inline .newsletter-signup__bar input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-signup--inline .newsletter-signup__bar input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.newsletter-signup--inline .newsletter-signup__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 46px;
    margin: 0;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.newsletter-signup__submit-icon {
    flex-shrink: 0;
}

.newsletter-cta {
    padding: 30px 0;
    background: var(--blue-900);
    color: var(--white);
}

.newsletter-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.newsletter-cta__copy {
    flex: 1 1 280px;
    max-width: 520px;
}

.newsletter-cta__form {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
}

.newsletter-signup__footer {
    margin: 12px 0 0;
    font-size: 0.86rem;
}

.newsletter-cta .newsletter-signup__footer {
    margin: 8px 0 0;
    text-align: right;
}

.newsletter-cta .newsletter-signup__footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.newsletter-cta .newsletter-signup__footer a:hover,
.newsletter-cta .newsletter-signup__footer a:focus-visible {
    color: var(--gold-500);
}

.newsletter-cta__copy h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--white);
}

.newsletter-cta__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 48ch;
}

.newsletter-cta .newsletter-signup__msg {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    margin-bottom: 10px;
}

@media (max-width: 860px) {
    .newsletter-cta__inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
    }

    .newsletter-cta__copy,
    .newsletter-cta__form {
        flex: 0 1 auto;
        max-width: none;
    }

    .newsletter-cta__form {
        justify-content: stretch;
    }

    .newsletter-cta .newsletter-signup__footer {
        text-align: left;
    }

    .newsletter-signup--inline {
        max-width: none;
    }

    .newsletter-signup--inline .newsletter-signup__bar {
        flex-direction: column;
    }

    .newsletter-signup--inline .newsletter-signup__submit {
        width: 100%;
        min-height: 48px;
    }
}

.c-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.c-filters__states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.c-filters .btn { padding: 9px 18px; font-size: 0.86rem; }
.c-filters .btn.is-active { background: var(--blue-700); color: var(--white); }

.c-filters__search {
    display: flex;
    gap: 8px;
}

.c-filters__search input {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    min-width: 220px;
}

.c-filters__search input:focus { outline: 2px solid var(--blue-600); border-color: transparent; }

.c-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s, border-color 0.18s;
}

.c-item:hover { box-shadow: var(--shadow-md); border-color: var(--blue-600); }

.c-item__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.c-item__head h3 { font-size: 1.08rem; line-height: 1.4; }
.c-item__head h3 a { color: var(--ink); }
.c-item__head h3 a:hover { color: var(--blue-700); }

.c-item > p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }

.c-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 0.84rem;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.c-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.c-status--otvoreno { background: #e2f5ea; color: #14693c; }
.c-status--zatvoreno { background: #fdeaea; color: #9b1c1c; }
.c-status--izvjesce { background: var(--blue-100); color: var(--blue-700); }
.c-status--najava { background: #fdf3da; color: #8a6406; }

/* ----- Ankete ----- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.poll-widget--share {
    max-width: 520px;
    margin: 24px auto 0;
}

.poll-widget--share .content-tools {
    margin: 0;
}

/* Index.hr stil anketa */
.poll-index {
    max-width: 520px;
    margin: 32px auto 0;
}

.poll-index--sidebar,
.poll-index--homepage {
    max-width: 100%;
    margin: 0;
}

.poll-index--embed {
    max-width: 100%;
    margin: 28px 0;
}

.poll-index__card {
    background: var(--white);
    border: 1px solid #d8d8d8;
    padding: 20px 18px;
}

.poll-index__question {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.poll-index__msg {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.poll-index__msg--success {
    border-color: #b8dfc4;
    background: #edf8f0;
}

.poll-index__msg--error {
    border-color: #e8b4b4;
    background: #fdf0f0;
}

.poll-index__msg--info {
    border-color: #d0d8e0;
    background: #f4f7fa;
}

.poll-index__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.poll-index__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: none;
    background: #ececec;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.poll-index__option:hover,
.poll-index__option:focus-visible {
    background: #e0e0e0;
    outline: none;
}

.poll-index__option--multi {
    position: relative;
    cursor: pointer;
}

.poll-index__option--multi:has(.poll-index__checkbox:checked) {
    background: #d8d8d8;
    font-weight: 600;
}

.poll-index__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.poll-index__option-text {
    display: block;
}

.poll-index__hint {
    margin: -4px 0 12px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.poll-index__action {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    background: var(--white);
    color: #666;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.poll-index__action:hover,
.poll-index__action:focus-visible {
    border-color: #999;
    color: #333;
    outline: none;
}

.poll-index__action--vote {
    background: #ececec;
    border-color: #ececec;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

.poll-index__action--outline {
    background: transparent;
}

.poll-index__results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.poll-index__result-track {
    position: relative;
    min-height: 52px;
    background: #ececec;
    overflow: hidden;
}

.poll-index__result-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: #b8b8b8;
    transition: width 0.45s ease;
}

.poll-index__result-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
}

.poll-index__result-label {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
}

.poll-index__result-pct {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.poll-index__total {
    margin: 0 0 4px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.poll-index__total strong {
    color: var(--ink);
    font-weight: 700;
}

.poll-index__note {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.poll-index__note--muted {
    font-style: italic;
    text-align: center;
}

.poll-index__more {
    margin: 12px 0 0;
    font-size: 0.88rem;
    text-align: center;
}

.poll-index__more a {
    color: var(--blue-700);
    font-weight: 600;
}

.poll-index--busy {
    opacity: 0.72;
    pointer-events: none;
}

.poll-index__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.homepage-poll {
    margin-bottom: 20px;
}

.homepage-poll .section-head {
    margin-bottom: 12px;
}

.homepage-poll .section-head h2 {
    font-size: 1.1rem;
    margin: 0;
}

.homepage-poll--standalone {
    padding: 40px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
    .poll-index {
        max-width: 100%;
    }

    .poll-index__card {
        padding: 16px 14px;
    }

    .poll-index__result-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-height: 0;
        padding: 12px 14px;
    }

    .poll-index__result-pct {
        align-self: flex-end;
    }
}

.c-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.article ul.c-docs { list-style: none; padding-left: 0; }

.c-docs li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px !important;
}

.c-docs svg { color: var(--blue-700); flex-shrink: 0; }
.c-docs a { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.c-docs__type {
    margin-left: auto;
    font-size: 0.76rem;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.c-doclist {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
}

.c-doclist li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
}

.c-doclist__title {
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
    flex: 1 1 12rem;
}

.c-doclist__actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.c-doclist__btn {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--blue-700);
    color: var(--blue-700);
    background: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

.c-doclist__btn:hover {
    background: var(--blue-700);
    color: var(--white);
}

.c-doclist--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

.c-docs li .c-doclist__actions {
    margin-left: auto;
}

.c-doclist__type {
    font-size: 0.76rem;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.c-doclist__desc {
    flex-basis: 100%;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.c-comments {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 10px;
}

.c-comment {
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold-500);
    border-radius: 8px;
    padding: 14px 18px;
}

.c-comment__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.c-comment__head time { font-size: 0.8rem; color: var(--ink-soft); }
.c-comment p { margin-bottom: 0 !important; font-size: 0.92rem; }

.c-form { margin-top: 8px; }

.c-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.c-form label small { font-weight: 400; color: var(--ink-soft); }

.c-form input[type="text"],
.c-form input[type="email"],
.c-form input[type="tel"],
.c-form input[type="date"],
.c-form select,
.c-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.92rem;
}

.c-form select {
    background-color: var(--white);
    cursor: pointer;
}

.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus { outline: 2px solid var(--blue-600); border-color: transparent; }

.c-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.c-form__hp { position: absolute; left: -9999px; top: -9999px; }

.c-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 16px 0 8px;
    cursor: pointer;
}

.c-form__consent input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.c-form__consent span { line-height: 1.5; }

.c-form-msg {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.c-form-msg--success { background: #e2f5ea; color: #14693c; border: 1px solid #bfe6cf; }
.c-form-msg--error { background: #fdeaea; color: #9b1c1c; border: 1px solid #f3c6c6; }

@media (max-width: 880px) {
    .c-summary { grid-template-columns: 1fr; }
    .c-form__row { grid-template-columns: 1fr; }
    .c-filters__search { width: 100%; }
    .c-filters__search input { flex: 1; min-width: 0; }
}

/* ============ Responzivnost ============ */
@media (max-width: 1080px) {
    .service-card { flex: 0 1 calc((100% - 2 * 14px) / 3); max-width: calc((100% - 2 * 14px) / 3); min-width: 0; }
    .info-card { flex-basis: calc((100% - 20px) / 2); }
    .news__grid { grid-template-columns: repeat(2, 1fr); }
    .news__grid--4col { grid-template-columns: repeat(2, 1fr); }
    .news-card--featured { grid-column: span 2; }
    .news-layout--featured { grid-template-columns: 1fr; }
    .news-featured__media { min-height: 240px; }
    .projects__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .prefooter__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
    .header__inner { gap: 12px; }

    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        top: calc(var(--header-sticky-h) + 8px);
        right: 12px;
        left: auto;
        width: min(360px, calc(100vw - 24px));
        max-height: min(72dvh, calc(100dvh - var(--header-sticky-h) - 20px));
        height: auto;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(24, 32, 48, 0.16);
        padding: 8px 0;
        overflow: hidden;
        transform: translateY(-6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        margin-left: 0;
        z-index: 90;
        display: flex;
        flex-direction: column;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__panel-head {
        display: block;
        flex-shrink: 0;
        padding: 6px 8px 2px 14px;
    }

    .nav__panel-top {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .brand--nav,
    .nav__title {
        display: none;
    }

    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: none;
        border: none;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        cursor: pointer;
        color: var(--ink);
    }

    .nav__close:hover {
        color: var(--blue-700);
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 4px 0;
    }

    .nav__item {
        border-bottom: 1px solid var(--line);
    }

    .nav__item:last-child {
        border-bottom: none;
    }

    .has-dropdown > .nav__link::after {
        display: none;
    }

    .nav__link {
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        min-height: 52px;
        text-transform: none;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: normal;
    }

    .nav__link-label {
        flex: 1;
        min-width: 0;
        line-height: 1.3;
    }

    .nav__link-chevron {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        color: #8a939e;
        transition: transform 0.2s ease;
    }

    .nav__item.is-open > .nav__link .nav__link-chevron {
        transform: rotate(90deg);
    }

    .nav__panel-foot {
        display: flex;
        flex-direction: column;
        gap: 0;
        flex-shrink: 0;
        padding: 4px 0 8px;
        border-top: 1px solid var(--line);
    }

    .nav__panel-search {
        display: block;
        flex-shrink: 0;
        padding: 10px 14px;
        border-top: 1px solid var(--line);
    }

    .nav__panel-search form {
        display: flex;
        gap: 8px;
    }

    .nav__panel-search input {
        flex: 1;
        min-width: 0;
        padding: 10px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-size: 0.95rem;
        font-family: inherit;
    }

    .nav__panel-search input:focus {
        outline: 2px solid var(--blue-600);
        border-color: transparent;
    }

    .nav__panel-search button {
        padding: 10px 16px;
        background: var(--blue-700);
        color: var(--white);
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.88rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav__panel-search button:hover { background: var(--blue-600); }

    .nav__contact {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 8px 14px;
        font-size: 0.88rem;
        color: var(--ink-soft);
        border-bottom: 1px solid var(--line);
    }

    .nav__contact:last-child {
        border-bottom: none;
    }

    .nav__contact:hover { color: var(--blue-700); }

    .nav__contact-icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f0f2f5;
        color: #5f6b78;
        display: grid;
        place-items: center;
    }

    .nav__contact-icon svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: none;
        margin: 0;
        padding: 0 0 6px;
        background: #f8f9fb;
        display: none;
    }

    .dropdown li {
        border-top: 1px solid var(--line);
    }

    .dropdown a {
        padding: 10px 14px 10px 28px;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .dropdown a:hover {
        padding-left: 28px;
        background: #eef1f4;
    }

    .nav__item.is-open .dropdown { display: block; }

    .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .events__inner { grid-template-columns: 1fr; }
    .page-content { grid-template-columns: 1fr; }
    .topbar__links { gap: 14px; }

    .services--bottom {
        padding-bottom: 0;
    }

    main {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }

    .header .brand__tagline { display: none; }
    .header .brand__crest img { height: 44px; }

    .searchbar form { flex-wrap: wrap; }
    .searchbar button { flex: 1; min-width: 120px; }

    .page-hero { padding: 36px 0; }
    .page-content { padding-block: 36px 48px; gap: 24px; }

    .article__media--placeholder {
        min-height: clamp(180px, 50vw, 280px);
    }

    main {
        padding-bottom: 0;
    }

    .hero--fade .hero__slides {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .hero--fade .hero__content { padding-top: 40px; padding-bottom: 56px; }
    .hero--fade .hero__dots { bottom: 72px; }
    .hero--fade h1 { max-width: 20ch; }

    .hero--slide {
        height: min(108vw, 460px);
        overflow: hidden;
        background: #061628;
        color: #fff;
    }
    .hero--slide .hero__track {
        position: absolute;
        inset: 0;
        height: 100%;
        align-items: stretch;
    }
    .hero--slide .hero__slide {
        display: block;
        height: 100%;
        overflow: hidden;
    }
    .hero--slide .hero__media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        transform: none;
    }
    .hero--slide .hero__media--photo {
        background-color: #061628;
    }
    .hero--slide .hero__media--photo .hero__photo {
        object-fit: cover !important;
        object-position: center center !important;
    }
    .hero--slide .hero__slide.is-active .hero__media:not(.hero__media--video) {
        transform: none;
    }
    .hero--slide .hero__grad {
        display: none;
    }
    .hero--slide .hero__grad2 {
        display: block;
        height: 100%;
        background: linear-gradient(to top, rgba(6, 22, 40, 0.78) 0%, rgba(6, 22, 40, 0.15) 46%, transparent 70%);
    }
    .hero--slide .hero__content.hero__content--slide {
        position: absolute;
        top: auto;
        bottom: 48px;
        left: 16px;
        right: 72px;
        width: auto;
        max-width: none;
        padding: 0;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        background: transparent;
        color: #fff;
    }
    .hero--slide .hero__kicker--slide {
        color: rgba(255, 255, 255, 0.9);
        justify-content: center;
    }
    .hero--slide .hero__title {
        font-size: clamp(1.25rem, 5vw, 1.7rem);
        color: #fff;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    }
    .hero--slide .hero__lead--slide {
        -webkit-line-clamp: 2;
        color: rgba(255, 255, 255, 0.88);
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
        margin-bottom: 12px;
        max-width: none;
    }
    .hero--slide .hero__actions {
        justify-content: center;
    }
    .hero--slide .hero__controls,
    .hero-stack > .hero__controls {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: auto;
        transform: none;
        flex-direction: row;
        gap: 8px;
    }
    .hero--slide .hero__arrows,
    .hero-stack .hero__arrows {
        display: none;
    }
    .hero--slide .hero__dots--slide button,
    .hero-stack .hero__dots--slide button {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.55);
    }
    .hero--slide .hero__dots--slide button.is-active,
    .hero-stack .hero__dots--slide button.is-active {
        width: 12px;
        height: 12px;
        background: transparent;
        border: 2px solid #fff;
    }
    .hero--slide .hero__counter,
    .hero-stack > .hero__counter {
        top: auto;
        bottom: 14px;
        right: 16px;
    }

    .hero--slide + .services .services__grid {
        transform: none;
        margin-bottom: 0;
    }

    .hero-stack > .services,
    .hero--slide + .services {
        padding-top: 20px;
    }

    .hero-stack {
        --hero-slide-h: min(108vw, 460px);
    }

    .hero-stack > .hero__controls {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: auto;
        transform: none;
    }

    .hero-stack > .hero__counter {
        top: auto;
        bottom: 14px;
        right: 16px;
    }

    .services .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .services__grid {
        transform: none;
        margin-bottom: 0;
        gap: 8px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .c-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .c-item__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 0;
        box-shadow: 0 1px 0 var(--line);
    }

    .service-card__icon {
        margin: 0;
        flex-shrink: 0;
    }

    .service-card h3 {
        flex: 1;
        min-width: 0;
    }

    .service-card__desc {
        flex: 1 1 100%;
        margin: -4px 0 0;
        padding-left: 52px;
    }

    .info-boxes .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .info-boxes__grid {
        gap: 8px;
    }

    .info-card {
        flex: 1 1 100%;
        flex-basis: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 0;
    }

    .news__grid { grid-template-columns: 1fr; }
    .news__grid--4col { grid-template-columns: 1fr; }
    .news-card--featured { grid-column: span 1; flex-direction: column; }
    .news-card--featured .news-card__media { width: 100%; min-height: var(--news-media-height); }
    .news-carousel__grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .news-card--carousel { height: auto; --news-media-height: 230px; }
    .news-card--carousel .news-card__media { flex: none; min-height: var(--news-media-height); }
    #novosti .news-card--carousel .news-card__media:has(img) {
        min-height: 230px;
        height: 230px;
    }
    .news-layout--featured { min-width: 0; }
    .news-carousel--featured { min-width: 0; width: 100%; }
    .news-featured__body { padding: 18px 16px 22px; }
    .news-featured__media { min-height: 200px; }
    .news-featured h3 { font-size: 1.25rem; }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .project-detail__field { grid-template-columns: 1fr; gap: 4px; }
    .footer__grid { grid-template-columns: 1fr; padding: 40px 20px 36px; }
    .prefooter__grid { grid-template-columns: 1fr; gap: 10px; }
    .topbar__links { display: none; }
    .header-contact-toggle { display: grid; }
    .stats-card ul { grid-template-columns: 1fr 1fr; }

    .cookie-banner__inner p { flex-basis: 100%; }
}

@media (max-width: 480px) {
    .page-hero { padding: 28px 0; }
}

@media (max-width: 420px) {
    .footer__grid { grid-template-columns: 1fr; padding: 36px 18px 32px; }
    .projects__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .article p,
    .article ul li,
    .article ol li {
        text-align: left;
        line-height: 1.65;
    }
}

/* ============ Pristupačnost – plutajući gumb ============ */
.a11y-fab {
    position: fixed;
    left: var(--fab-gap);
    bottom: var(--fab-bottom);
    z-index: 900;
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: none;
    background: var(--blue-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, transform 0.15s;
}

.a11y-fab:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.a11y-fab:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}


/* ============ Na vrh - plutajuci gumb ============ */
.scroll-top {
    position: fixed;
    right: var(--fab-gap);
    bottom: var(--fab-bottom);
    z-index: 900;
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: none;
    background: var(--blue-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: background 0.15s, transform 0.15s, opacity 0.2s;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.scroll-top:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top {
        transition: background 0.15s, opacity 0.2s;
    }

    .scroll-top:hover {
        transform: none;
    }
}

/* ============ Video prijenos – bočni widget ============ */
.vinkovci-side-widget {
    position: fixed;
    right: calc(var(--fab-gap) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--fab-bottom) + (var(--fab-size) + 10px) * 2);
    z-index: 850;
}

.vinkovci-widget-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--fab-size);
    height: var(--fab-size);
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--blue-800);
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, transform 0.15s;
}

.vinkovci-widget-item:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.vinkovci-widget-item:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

.vinkovci-widget-icon {
    width: 24px;
    height: 24px;
}

.vinkovci-widget-text {
    display: none;
}

.erp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(7, 41, 74, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.erp-modal-overlay[hidden] { display: none; }

body.video-modal-open { overflow: hidden; }

.erp-modal-box {
    background: var(--blue-900);
    border-radius: var(--radius);
    width: min(960px, 94vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.erp-modal-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(90vh - 60px);
    border: none;
    background: #000;
}

.erp-modal-footer {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    flex-shrink: 0;
}

.btn-zatvori {
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    background: var(--gold-500);
    color: var(--blue-900);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-zatvori:hover {
    background: #f3c23a;
}

.btn-zatvori:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    :root {
        --fab-size: 40px;
        --fab-gap: 12px;
    }

    .newsletter-cta {
        padding: 22px 0;
    }

    .newsletter-cta__copy h2 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .newsletter-cta__copy p {
        font-size: 0.84rem;
    }

    .newsletter-signup--inline .newsletter-signup__submit {
        min-height: 42px;
        padding: 0 16px;
        font-size: 0.88rem;
    }

    .vinkovci-widget-icon {
        width: 20px;
        height: 20px;
    }

    .a11y-fab svg,
    .cookie-fab svg,
    .scroll-top svg,
    .vk-push-fab svg {
        width: 20px;
        height: 20px;
    }

    .cookie-fab {
        bottom: calc(var(--fab-bottom) + var(--fab-size) + 10px);
    }

    body.cookie-banner-visible .a11y-fab,
    body.cookie-banner-visible .cookie-fab,
    body.cookie-banner-visible .scroll-top {
        bottom: calc(var(--fab-bottom) + 120px);
    }

    body.cookie-banner-visible .cookie-fab {
        bottom: calc(var(--fab-bottom) + 120px + var(--fab-size) + 10px);
    }

    body.cookie-banner-visible .vk-push-panel {
        bottom: calc(var(--fab-bottom) + 120px + var(--fab-size) + 10px);
    }

    body.cookie-banner-visible .vinkovci-side-widget {
        bottom: calc(var(--fab-bottom) + 120px + (var(--fab-size) + 10px) * 2);
    }

    .erp-modal-overlay {
        padding: 8px;
    }

    .erp-modal-box {
        width: 100%;
        max-height: 96vh;
    }

    .erp-modal-iframe {
        max-height: calc(96vh - 56px);
    }

    .erp-modal-footer {
        padding: 10px 12px;
    }
}

/* ============ Pristupačnost – modal ============ */
.a11y-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7, 41, 74, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}

.a11y-overlay[hidden] { display: none; }

body.a11y-modal-open { overflow: hidden; }

.a11y-modal {
    background: var(--bg-soft);
    border-radius: var(--radius);
    width: 100%;
    max-width: 640px;
    padding: 22px 24px 26px;
    box-shadow: var(--shadow-md);
}

.a11y-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.a11y-modal__head h2 {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.a11y-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.a11y-modal__reset {
    border: none;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.a11y-modal__reset:hover {
    color: var(--ink);
    background: rgba(10, 40, 70, 0.06);
}

.a11y-modal__close {
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-600);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.a11y-modal__close:hover { background: var(--blue-700); }

.a11y-modal__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.a11y-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.a11y-tile:hover {
    border-color: var(--blue-600);
}

.a11y-tile.is-active {
    border-color: var(--blue-600);
    background: var(--blue-100);
    box-shadow: inset 0 0 0 1px var(--blue-600);
    color: var(--blue-800);
}

.a11y-tile__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
}

.a11y-tile.is-active .a11y-tile__icon { color: var(--blue-700); }

.a11y-tile__label { line-height: 1.3; }

.a11y-sliders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.a11y-slider-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.a11y-slider-row__label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
}

.a11y-slider {
    width: 100%;
    height: 6px;
    appearance: none;
    background: var(--line);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.a11y-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-600);
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(10, 40, 70, 0.25);
}

.a11y-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-600);
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(10, 40, 70, 0.25);
}

.a11y-slider-row__value {
    min-width: 44px;
    text-align: right;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.a11y-slider-row__steppers {
    display: flex;
    align-items: center;
    gap: 0;
    border-left: 1px solid var(--line);
    padding-left: 8px;
}

.a11y-stepper {
    border: none;
    background: none;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.a11y-stepper:hover {
    color: var(--blue-700);
    background: var(--blue-100);
}

/* ============ Pristupačnost – načini prikaza ============ */
#a11y-root.a11y-invert {
    filter: invert(1) hue-rotate(180deg);
}

#a11y-root.a11y-mono {
    filter: grayscale(1);
}

#a11y-root.a11y-low-sat {
    filter: saturate(0.4);
}

#a11y-root.a11y-high-sat {
    filter: saturate(1.6);
}

#a11y-root.a11y-dark-contrast {
    background: #000 !important;
    color: #fff !important;
}

#a11y-root.a11y-dark-contrast :not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon) {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

#a11y-root.a11y-dark-contrast a,
#a11y-root.a11y-dark-contrast a * {
    color: #ffe34d !important;
    text-decoration: underline !important;
}

#a11y-root.a11y-dark-contrast img,
#a11y-root.a11y-dark-contrast svg {
    filter: contrast(1.2);
}

#a11y-root.a11y-dark-contrast button,
#a11y-root.a11y-dark-contrast input,
#a11y-root.a11y-dark-contrast select,
#a11y-root.a11y-dark-contrast textarea {
    outline: 1px solid #fff !important;
}

#a11y-root.a11y-light-contrast {
    background: #fff !important;
    color: #000 !important;
}

#a11y-root.a11y-light-contrast :not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon) {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

#a11y-root.a11y-light-contrast a,
#a11y-root.a11y-light-contrast a * {
    color: #0000cc !important;
    text-decoration: underline !important;
    font-weight: 600;
}

#a11y-root.a11y-highlight-links a {
    text-decoration: underline !important;
    outline: 2px solid var(--blue-600) !important;
    outline-offset: 2px;
    background: rgba(18, 115, 196, 0.1) !important;
}

#a11y-root.a11y-highlight-headings h1,
#a11y-root.a11y-highlight-headings h2,
#a11y-root.a11y-highlight-headings h3,
#a11y-root.a11y-highlight-headings h4,
#a11y-root.a11y-highlight-headings h5,
#a11y-root.a11y-highlight-headings h6 {
    outline: 2px solid var(--blue-600) !important;
    background: rgba(18, 115, 196, 0.08) !important;
    padding: 4px 8px;
}

/* ============ Cookie privola ============ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    background: var(--blue-900);
    color: #d7e4f2;
    box-shadow: 0 -4px 20px rgba(7, 41, 74, 0.35);
}

.cookie-banner__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__inner p {
    flex: 1 1 420px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}

.cookie-banner__btn:hover { filter: brightness(1.12); }

.cookie-banner__btn--accept {
    background: var(--gold-500);
    color: var(--blue-900);
}

.cookie-banner__btn--decline {
    background: transparent;
    color: #d7e4f2;
    border: 1px solid rgba(215, 228, 242, 0.5);
}

.cookie-banner__link {
    background: none;
    border: none;
    color: var(--gold-400, #e8c547);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.cookie-banner__link:hover { color: #fff; }

/* Cookie FAB */
.cookie-fab {
    position: fixed;
    left: var(--fab-gap);
    bottom: calc(var(--fab-bottom) + var(--fab-size) + 10px);
    z-index: 900;
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: none;
    background: var(--blue-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, transform 0.15s;
}

.cookie-fab:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.cookie-fab:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

body.cookie-modal-open { overflow: hidden; }

/* Cookie modal */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(7, 41, 74, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}

.cookie-overlay[hidden] { display: none; }

.cookie-modal {
    width: min(640px, 100%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(7, 41, 74, 0.25);
    overflow: hidden;
}

.cookie-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e7ebef;
}

.cookie-modal__head h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--blue-900);
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #5a6775;
    padding: 4px 8px;
}

.cookie-modal__body {
    padding: 20px 24px;
}

.cookie-modal__intro {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3d4a57;
}

.cookie-categories {
    border: 1px solid #e0e5ea;
    border-radius: 10px;
    overflow: hidden;
}

.cookie-category + .cookie-category {
    border-top: 1px solid #e0e5ea;
}

.cookie-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
}

.cookie-category__toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--blue-900);
    padding: 0;
}

.cookie-category__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-category__chevron {
    color: #7a8794;
    font-size: 0.85rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cookie-category__toggle[aria-expanded="true"] .cookie-category__chevron {
    transform: rotate(180deg);
}

.cookie-category__body {
    padding: 0 16px 14px;
    background: #f8fafc;
}

.cookie-category__body p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #5a6775;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.cookie-switch__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__track {
    display: block;
    width: 44px;
    height: 24px;
    background: #c5ced8;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.cookie-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-switch__input:checked + .cookie-switch__track {
    background: var(--blue-800);
}

.cookie-switch__input:checked + .cookie-switch__track::after {
    transform: translateX(20px);
}

.cookie-switch__input:disabled + .cookie-switch__track {
    opacity: 0.55;
    cursor: not-allowed;
}

.cookie-meta {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f0f4f8;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #3d4a57;
}

.cookie-meta strong { color: var(--blue-900); }

.cookie-modal__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e7ebef;
    background: #fafbfc;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter 0.15s;
}

.cookie-btn:hover { filter: brightness(1.08); }

.cookie-btn--primary {
    background: var(--blue-800);
    color: #fff;
}

.cookie-btn--secondary {
    background: #e8edf2;
    color: var(--blue-900);
}

@media (max-width: 640px) {
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__btn { flex: 1; }
    .a11y-modal { padding: 18px 16px 22px; }
    .a11y-grid { gap: 10px; }
    .a11y-tile { min-height: 58px; padding: 12px 14px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .a11y-slider-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .a11y-slider-row__label { grid-column: 1 / -1; }
    .a11y-slider { grid-column: 1; }
    .a11y-slider-row__value { grid-column: 2; }
    .a11y-slider-row__steppers {
        grid-column: 1 / -1;
        border-left: none;
        padding-left: 0;
        justify-content: flex-end;
    }
}

/* ============ Obavijesti – popup na naslovnici ============ */
.announcement-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(7, 41, 74, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}

.announcement-overlay[hidden] { display: none; }

.announcement-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 640px;
    padding: 24px 28px 28px;
    box-shadow: var(--shadow-md);
}

.announcement-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.announcement-modal__head h2 {
    color: var(--blue-700);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
}

.announcement-modal__close {
    border: none;
    background: none;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

.announcement-modal__close:hover {
    color: var(--blue-700);
}

.announcement-modal__body {
    color: var(--ink);
}

/* ============ Modal nadolazećih događanja – banner (24sata) ============ */
.event-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

.event-popup-overlay[hidden] {
    display: none;
}

.event-popup-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.event-popup-modal__stripe {
    flex-shrink: 0;
    width: 100%;
    height: 3px;
    background: var(--vk-yellow);
}

.event-popup-modal__close {
    position: absolute;
    top: 3px;
    right: 0;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    background: #111;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 0;
}

.event-popup-modal__close:hover {
    background: #333;
}

.event-popup-modal__content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 148px;
    width: 100%;
}

.event-popup-modal--has-media .event-popup-modal__content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
    min-height: 176px;
}

.event-popup-modal__text {
    padding: 24px 56px 28px  clamp(20px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 920px;
}

.event-popup-modal--has-media .event-popup-modal__text {
    max-width: none;
}

.event-popup-modal__title {
    margin: 0 0 10px;
    padding-right: 44px;
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.12;
    color: #2a1f14;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.event-popup-modal__subtitle {
    margin: 0 0 20px;
    font-size: clamp(0.88rem, 1.6vw, 1rem);
    line-height: 1.45;
    color: #666;
    font-weight: 500;
}

.event-popup-modal__subtitle[hidden] {
    display: none;
}

.event-popup-modal__actions {
    display: flex;
    align-items: center;
}

.event-popup-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 30px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #111;
    transition: background 0.15s;
}

.event-popup-modal__cta:hover {
    background: #333;
    color: #fff;
}

.event-popup-modal__media {
    position: relative;
    background: #f3f3f3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 176px;
}

.event-popup-modal__img {
    width: 100%;
    height: 100%;
    min-height: 176px;
    object-fit: cover;
    display: block;
}

@media (max-width: 720px) {
    .event-popup-modal--has-media .event-popup-modal__content {
        grid-template-columns: 1fr;
    }

    .event-popup-modal__media {
        order: 2;
        min-height: 150px;
        max-height: 220px;
    }

    .event-popup-modal__img {
        min-height: 150px;
    }

    .event-popup-modal__text {
        padding: 20px 48px 22px 18px;
        max-width: none;
    }

    .event-popup-modal__cta {
        width: 100%;
        max-width: 300px;
    }
}

/* ============ Preview dokumenata – popup modal ============ */
.doc-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(7, 41, 74, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.doc-preview-overlay[hidden] { display: none; }

.doc-preview-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: min(960px, 94vw);
    height: min(90vh, 900px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.doc-preview-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, #e4e7ea);
    flex-shrink: 0;
}

.doc-preview-modal__title {
    color: var(--blue-700);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.doc-preview-modal__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.doc-preview-modal__download {
    font-size: 0.875rem;
    padding: 8px 14px;
    white-space: nowrap;
}

.doc-preview-modal__close {
    border: none;
    background: none;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px 8px;
}

.doc-preview-modal__close:hover {
    color: var(--blue-700);
}

.doc-preview-modal__content {
    flex: 1;
    min-height: 0;
    position: relative;
    background: #f4f6f8;
}

.doc-preview-modal__loading,
.doc-preview-modal__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--ink-soft);
}

.doc-preview-modal__fallback p {
    max-width: 420px;
    margin: 0;
    line-height: 1.5;
}

.doc-preview-modal__frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: var(--white);
}

.doc-preview-modal__frame[hidden],
.doc-preview-modal__body[hidden],
.doc-preview-modal__loading[hidden],
.doc-preview-modal__fallback[hidden] {
    display: none;
}

.doc-preview-modal__body {
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: 20px 24px;
    background: var(--white);
}

.doc-preview-docx {
    max-width: 100%;
}

.doc-preview-xlsx {
    overflow-x: auto;
}

.doc-preview-xlsx__sheet {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-700);
    margin: 20px 0 10px;
}

.doc-preview-xlsx__sheet:first-child {
    margin-top: 0;
}

.doc-preview-xlsx table {
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 16px;
    background: var(--white);
}

.doc-preview-xlsx td,
.doc-preview-xlsx th {
    border: 1px solid var(--border, #d8dde3);
    padding: 6px 10px;
    white-space: nowrap;
}

.doc-preview-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef4fb;
    border: 1px solid #c8d9ef;
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.5;
}

.doc-preview-text {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink);
}

@media (max-width: 640px) {
    .doc-preview-modal {
        width: 100%;
        height: 92vh;
    }

    .doc-preview-modal__head {
        flex-direction: column;
        align-items: stretch;
    }

    .doc-preview-modal__toolbar {
        justify-content: space-between;
    }
}

/* ============ Obavijesti – klizač (marquee) iznad info kutija ============ */
.announcement-ticker {
    width: 100%;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}

.announcement-ticker a {
    color: inherit;
    text-decoration: none;
}

.announcement-ticker a:hover,
.announcement-ticker a:focus {
    text-decoration: underline;
    color: var(--blue-700);
}

.announcement-ticker__viewport {
    width: var(--ticker-viewport-width, 80%);
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    min-height: 44px;
}

.announcement-ticker__track {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 10px 0;
    min-height: 44px;
    will-change: transform;
}

.announcement-ticker:not(.announcement-ticker--ready):not(.announcement-ticker--static) .announcement-ticker__track {
    visibility: hidden;
}

.announcement-ticker--ready .announcement-ticker__track {
    animation: announcement-ticker-scroll var(--ticker-duration, 30s) linear infinite;
}

.announcement-ticker:hover .announcement-ticker__track,
.announcement-ticker:focus-within .announcement-ticker__track {
    animation-play-state: paused;
}

.announcement-ticker__item {
    display: inline-flex;
    align-items: center;
}

.announcement-ticker__link,
.announcement-ticker__text {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 0;
}

.announcement-ticker__link {
    cursor: pointer;
}

.announcement-ticker__link:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

.announcement-ticker__sep {
    color: var(--ink-soft);
    padding: 0 1.25rem;
    user-select: none;
}

.announcement-ticker--static .announcement-ticker__track {
    position: static;
    display: block;
    text-align: center;
    white-space: normal;
    padding: 12px 16px;
    visibility: visible;
}

.announcement-ticker--static .announcement-ticker__sep {
    padding: 0 0.5rem;
}

@keyframes announcement-ticker-scroll {
    from { transform: translateX(var(--ticker-from, 100%)); }
    to { transform: translateX(var(--ticker-to, -50%)); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-ticker--ready .announcement-ticker__track {
        animation: none;
    }
}

@media print {
    .site-header,
    .footer,
    .sidebar,
    .content-tools,
    .scroll-top,
    .vk-chatbot,
    .vinkovci-side-widget,
    .erp-modal-overlay,
    .a11y-fab,
    .cookie-fab,
    .a11y-overlay,
    .cookie-overlay,
    .announcement-overlay,
    .doc-preview-overlay,
    .cookie-banner,
    .searchbar {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .page-hero {
        background: none !important;
        color: #000 !important;
        padding: 0 0 16px !important;
    }

    .page-hero .breadcrumbs,
    .page-hero .breadcrumbs a {
        color: #444 !important;
    }

    .page-content {
        display: block !important;
        padding: 0 !important;
    }

    .article a {
        color: #000;
        text-decoration: underline;
    }

    img, svg {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .article__media--placeholder {
        display: none !important;
    }

    mark.search-highlight,
    mark.search-highlight.is-focused {
        background: transparent !important;
        color: inherit !important;
        outline: none !important;
        box-shadow: none !important;
        animation: none !important;
        padding: 0;
        border-radius: 0;
    }

    .content-gallery__nav,
    .content-gallery__dots,
    .content-gallery__thumbs {
        display: none !important;
    }

    .content-gallery__slides {
        min-height: auto;
    }

    .content-gallery__slide {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 16px;
    }

    .content-gallery__slide img {
        height: auto;
        max-height: none;
    }

    .content-gallery__zoom-trigger img {
        height: auto;
        max-height: none;
    }

    .gallery-lightbox {
        display: none !important;
    }
}

/* ----- Mjesna samouprava ----- */
.mo-intro {
    margin-bottom: 28px;
}

.mo-list {
    margin: 0 0 24px;
    padding-left: 1.4rem;
}

.mo-list li {
    margin-bottom: 6px;
}

.mo-directory {
    display: grid;
    gap: 16px;
}

.mo-card {
    border: 1px solid var(--line, #e7e9eb);
    border-radius: 12px;
    padding: 18px 20px;
    background: #fff;
}

.mo-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.mo-card__address {
    margin: 0 0 6px;
    color: var(--ink-soft, #5a6470);
}

.mo-card__meta {
    margin: 0 0 4px;
    font-size: .95rem;
}

.mo-card__link {
    margin: 10px 0 0;
}

.mo-detail {
    display: grid;
    gap: 28px;
}

@media (min-width: 900px) {
    .mo-detail {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.mo-detail__photo {
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: var(--radius);
}

.mo-detail__photo--contain {
    background: #1a2a3a;
}

.mo-detail__photo img {
    width: 100%;
    max-height: 320px;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--line, #e7e9eb);
}

.mo-contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mo-contact li {
    margin-bottom: 8px;
}

.mo-map {
    height: 360px;
    border-radius: 12px;
    border: 1px solid var(--line, #e7e9eb);
}

.mo-map__note {
    margin: 8px 0 0;
    font-size: .92rem;
}

.mo-boundaries {
    margin-top: 28px;
}

.mo-boundaries__text {
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ============ Isticanje pojma iz pretrage (?hl=...) ============ */
mark.search-highlight {
    background: var(--gold-500, #f5c518);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    scroll-margin-top: 120px;
    animation: search-highlight-pulse 1.5s ease-out;
}

mark.search-highlight.is-focused {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

@keyframes search-highlight-pulse {
    0%, 100% { background: var(--gold-500, #f5c518); }
    30% { background: #ffe066; box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.35); }
}

/* ===== Web Push / PWA ===== */
.vk-push-btn[hidden],
.vk-push-menu[hidden],
.vk-push-banner[hidden] {
    display: none !important;
}

.vk-push-root {
    position: relative;
    z-index: 9500;
}

.vk-push-panel {
    position: fixed;
    right: calc(var(--fab-gap) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--fab-bottom) + var(--fab-size) + 10px);
    display: none;
}

.vk-push-panel.is-visible {
    display: block;
}

.vk-push-fab {
    width: var(--fab-size);
    height: var(--fab-size);
    border: 0;
    border-radius: 999px;
    background: var(--blue-700);
    color: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.vk-push-fab:hover,
.vk-push-fab:focus-visible {
    background: var(--blue-800);
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

.vk-push-menu {
    position: absolute;
    right: 0;
    bottom: calc(var(--fab-size) + 10px);
    width: min(320px, calc(100vw - 32px));
    padding: 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.vk-push-menu__title {
    font-weight: 700;
    margin-bottom: 6px;
}

.vk-push-menu__text {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.vk-push-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}

.vk-push-btn--primary {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: #fff;
    width: 100%;
}

.vk-push-btn--ghost {
    width: 100%;
    margin-top: 8px;
}

.vk-push-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--fab-bottom) + (var(--fab-size) * 2) + 24px);
    z-index: 9400;
}

.vk-push-banner__inner {
    position: relative;
    background: var(--blue-900);
    color: #fff;
    border-radius: var(--radius);
    padding: 14px 42px 14px 16px;
    box-shadow: var(--shadow-md);
}

.vk-push-banner__title {
    font-weight: 700;
    margin-bottom: 4px;
}

.vk-push-banner__text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.vk-push-banner__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

/* ===== Stipendije – web forma (ZAHTJEV) ===== */
.cms-form--zahtjev {
    max-width: 820px;
    margin: 24px 0 40px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.cms-form__inner { display: grid; gap: 16px; }
.cms-form__section {
    margin: 20px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--blue-700);
    font-size: 1.1rem;
    color: var(--blue-900);
}
.cms-form__field label { display: block; }
.cms-form__label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.cms-form__field input[type="text"],
.cms-form__field input[type="email"],
.cms-form__field input[type="tel"],
.cms-form__field input[type="date"],
.cms-form__field input[type="number"],
.cms-form__field input[type="file"],
.cms-form__field select,
.cms-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}
.cms-form__field textarea { min-height: 100px; resize: vertical; }
.cms-form__check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.cms-form__check--block { padding: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.cms-form__check input { margin-top: 4px; flex-shrink: 0; }
.cms-form__help { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 8px; }
.cms-form__success { padding: 12px 16px; background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 8px; color: #065f46; }
.cms-form__error { padding: 12px 16px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; color: #991b1b; }
.cms-form__notice { padding: 12px 16px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; }
.cms-form__honeypot { position: absolute; left: -9999px; opacity: 0; }
.cms-form__actions { margin-top: 8px; }
.cms-form__repeater-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.9rem; }
.cms-form__repeater-table th,
.cms-form__repeater-table td { border: 1px solid #e2e8f0; padding: 6px; vertical-align: top; }
.cms-form__repeater-table input { width: 100%; min-width: 80px; }
.cms-form__repeater-add { margin-top: 8px; }
.cms-form__repeater-remove {
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}
@media (min-width: 640px) {
    .cms-form__inner { grid-template-columns: 1fr 1fr; }
    .cms-form__section,
    .cms-form__help,
    .cms-form__field--full,
    .cms-form__check--block,
    .cms-form__repeater,
    .cms-form__actions { grid-column: 1 / -1; }
}

/* ============ Chatbot – pomoć iz sadržaja stranice ============ */
.vk-chatbot__fab {
    position: fixed;
    right: calc(var(--fab-gap) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--fab-bottom) + (var(--fab-size) + 10px) * 2);
    z-index: 905;
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: none;
    background: var(--blue-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, transform 0.15s;
}

.vk-chatbot__fab:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.vk-chatbot__fab:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

.vk-chatbot__fab-icon--close {
    display: none;
}

.vk-chatbot__fab.is-open .vk-chatbot__fab-icon--open {
    display: none;
}

.vk-chatbot__fab.is-open .vk-chatbot__fab-icon--close {
    display: block;
}

body.vk-chatbot-enabled .vinkovci-side-widget {
    bottom: calc(var(--fab-bottom) + (var(--fab-size) + 10px) * 3);
}

.vk-chatbot__panel {
    position: fixed;
    right: calc(var(--fab-gap) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--fab-bottom) + (var(--fab-size) + 10px) * 3 + 12px);
    z-index: 910;
    width: min(380px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.vk-chatbot__panel[hidden] {
    display: none !important;
}

.vk-chatbot__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--blue-900);
    color: var(--white);
}

.vk-chatbot__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.vk-chatbot__subtitle {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}

.vk-chatbot__close {
    border: none;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

.vk-chatbot__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.vk-chatbot__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 16px;
    font-size: 0.92rem;
    color: var(--ink);
}

.vk-chatbot__intro {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.5;
}

.vk-chatbot__msg {
    margin: 0 0 10px;
    line-height: 1.5;
}

.vk-chatbot__results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vk-chatbot__result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
}

.vk-chatbot__result:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.vk-chatbot__result-link {
    display: block;
    color: var(--blue-700);
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.vk-chatbot__result-link:hover {
    text-decoration: underline;
}

.vk-chatbot__result-type {
    display: inline-block;
    margin: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--blue-800);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.vk-chatbot__result-excerpt {
    margin: 0;
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.45;
    text-align: left;
}

.vk-chatbot__full-search {
    margin: 12px 0 0;
    font-size: 0.88rem;
}

.vk-chatbot__full-search a {
    color: var(--blue-700);
    font-weight: 600;
}

.vk-chatbot__suggestions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    background: var(--white);
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

.vk-chatbot__chip {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--ink);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

.vk-chatbot__chip:hover {
    border-color: var(--blue-600);
    color: var(--blue-700);
}

.vk-chatbot__form {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    position: relative;
    z-index: 2;
}

.vk-chatbot__form input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.vk-chatbot__send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: var(--gold-500);
    color: var(--blue-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vk-chatbot__send:hover {
    background: #f3c23a;
}

.vk-chatbot__send:disabled {
    opacity: 0.6;
    cursor: wait;
}

.vk-chatbot__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    body.cookie-banner-visible .vk-chatbot__fab {
        bottom: calc(var(--fab-bottom) + 120px + (var(--fab-size) + 10px) * 2);
    }

    body.cookie-banner-visible .vk-chatbot__panel {
        bottom: calc(var(--fab-bottom) + 120px + (var(--fab-size) + 10px) * 3 + 12px);
    }

    body.cookie-banner-visible.vk-chatbot-enabled .vinkovci-side-widget,
    body.cookie-banner-visible .vk-chatbot-enabled .vinkovci-side-widget {
        bottom: calc(var(--fab-bottom) + 120px + (var(--fab-size) + 10px) * 3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vk-chatbot__fab:hover {
        transform: none;
    }
}
