/* Manrope sa našeg servera (bez Google Fonts — posetiočeva IP adresa ne ide Google-u) */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --navy: #002636;
    --blue-dark: #00496b;
    --blue: #0096cc;
    --green: #a4cc35;
    --green-light: #b7dc4c;
    --green-dark: #306117;
    --brand-line: linear-gradient(to right, var(--blue-dark), var(--blue), var(--green), var(--green-dark));
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site-header {
    background: #fff;
}

.site-header::after {
    content: "";
    display: block;
    height: 4px;
    background: var(--brand-line);
}

.site-header .navbar {
    --bs-navbar-padding-y: 0.75rem;
    --bs-navbar-color: var(--blue-dark);
    --bs-navbar-hover-color: var(--blue);
    --bs-navbar-active-color: var(--blue-dark);
    --bs-navbar-toggler-border-color: rgba(0, 73, 107, 0.3);
}

.site-header__logo,
.site-footer__logo {
    display: inline-block;
    transition: transform 0.25s ease;
}

.site-header__logo:hover {
    transform: translateY(-2px);
}

.site-header .nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.site-header__cta {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    background: var(--green);
    border-radius: 50rem;
    box-shadow: 0 6px 18px rgba(164, 204, 53, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
    color: var(--navy);
    background: var(--green-light);
    box-shadow: 0 10px 24px rgba(164, 204, 53, 0.5);
    transform: translateY(-2px);
}

.site-header__lang {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-header__lang a {
    display: block;
    padding: 2px;
    line-height: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-header__lang a:hover,
.site-header__lang a:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

.site-header__lang a.is-active {
    border-color: var(--green);
    opacity: 1;
}

.site-header__lang img {
    display: block;
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 73, 107, 0.15);
}

@media (min-width: 992px) {
    .site-header .navbar-nav {
        gap: 0.75rem;
    }

    .site-header .nav-link::after {
        content: "";
        position: absolute;
        right: 0.5rem;
        bottom: 0.1rem;
        left: 0.5rem;
        height: 2px;
        background: var(--green);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .site-header .nav-link:hover::after,
    .site-header .nav-link:focus-visible::after,
    .site-header .nav-link.active::after {
        transform: scaleX(1);
    }

    .site-header__cta {
        margin-left: 0.75rem;
    }

    .site-header__lang {
        margin-left: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav {
        padding: 1rem 0 0.5rem;
    }

    .site-header .nav-link.active {
        color: var(--blue);
    }

    .site-header__cta {
        margin-top: 0.75rem;
    }

    .site-header__lang {
        margin-top: 1.25rem;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
    background: var(--navy);
}

.hero__slide {
    position: relative;
    height: clamp(560px, calc(100svh - 88px), 920px);
    overflow: hidden;
}

.hero__slide::before,
.hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__slide::before {
    background:
        linear-gradient(90deg, rgba(0, 20, 30, 0.94) 0%, rgba(0, 30, 45, 0.75) 38%, rgba(0, 38, 54, 0.15) 75%, transparent 100%),
        linear-gradient(0deg, rgba(0, 20, 30, 0.9) 0%, transparent 35%);
}

.hero__slide::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, #000, transparent 60%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--navy) center / cover;
    background-image: var(--bg);
    transform: scale(1.02);
}

@media (max-width: 767.98px) {
    .hero__bg {
        background-image: var(--bg-sm, var(--bg));
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding-top: 3rem;
    padding-bottom: 9rem;
    color: #fff;
}

.hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__num {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--green);
}

.hero__num::after {
    content: "";
    width: 2.5rem;
    height: 2px;
    background: var(--green);
}

.hero__title {
    max-width: 18ch;
    margin-bottom: 1.5rem;
    font-size: clamp(1.9rem, 5.6vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero__title--tagline {
    max-width: 14ch;
    font-size: clamp(2rem, 6.4vw, 5.5rem);
}

.hero__title span {
    color: transparent;
    background: linear-gradient(90deg, var(--green), #d4ef7a 45%, #5cc8ee);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero__text {
    max-width: 36rem;
    margin-bottom: 2.25rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.4rem 0.95rem 1.9rem;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    background: var(--green);
    border-radius: 50rem;
    box-shadow: 0 10px 30px rgba(164, 204, 53, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
    color: var(--navy);
    background: var(--green-light);
    box-shadow: 0 14px 36px rgba(164, 204, 53, 0.5);
    transform: translateY(-2px);
}

.hero__cta svg {
    width: 1.6rem;
    height: 1.6rem;
    padding: 0.3rem;
    background: rgba(0, 38, 54, 0.12);
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.hero__cta:hover svg {
    transform: translateX(3px);
}

.hero svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.hero :is(.active, .carousel-item-next, .carousel-item-prev) .hero__bg {
    animation: hero-zoom calc(var(--hero-interval) + 1.5s) ease-out both;
}

.hero :is(.active, .carousel-item-next, .carousel-item-prev) .hero__content > * {
    animation: hero-in 0.9s var(--ease) both;
}

.hero__content > :nth-child(1) { animation-delay: 0.15s; }
.hero__content > :nth-child(2) { animation-delay: 0.3s; }
.hero__content > :nth-child(3) { animation-delay: 0.45s; }
.hero__content > :nth-child(4) { animation-delay: 0.6s; }

@keyframes hero-zoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.14); }
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

.hero__nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    background: rgba(0, 20, 30, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero__nav-inner {
    display: flex;
    gap: 1.5rem;
}

.hero .hero__tabs {
    position: static;
    display: grid;
    flex: 1;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}

.hero .hero__tabs button {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 1.25rem 1rem 1.35rem 0;
    color: rgba(255, 255, 255, 0.55);
    text-align: left;
    text-indent: 0;
    background: none;
    border: 0;
    opacity: 1;
    transition: color 0.3s ease;
}

.hero .hero__tabs button:hover,
.hero .hero__tabs .active {
    color: #fff;
}

.hero__tab-bar {
    position: absolute;
    top: -1px;
    right: 1rem;
    left: 0;
    height: 2px;
    overflow: hidden;
}

.hero__tab-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
}

.hero__tabs .active .hero__tab-bar::after {
    animation: hero-progress var(--hero-interval) linear both;
}

@keyframes hero-progress {
    to { transform: scaleX(1); }
}

.hero__tab-num {
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hero__tabs .active .hero__tab-num {
    opacity: 1;
}

.hero__tab-label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero__tab-label small {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 500;
}

.hero__arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__arrows button {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero__arrows button:hover,
.hero__arrows button:focus-visible {
    color: var(--navy);
    background: var(--green);
    border-color: var(--green);
}

.hero__arrows svg {
    width: 1.2rem;
    height: 1.2rem;
}

.hero__pause {
    display: grid;
    flex: none;
    place-items: center;
    align-self: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero__pause:hover,
.hero__pause:focus-visible {
    color: var(--navy);
    background: var(--green);
    border-color: var(--green);
}

.hero__pause svg {
    width: 1.1rem;
    height: 1.1rem;
}

.hero__play-icon,
.hero--paused .hero__pause-icon {
    display: none;
}

.hero--paused .hero__play-icon {
    display: block;
    fill: currentColor;
}

.hero--paused .hero__tabs .active .hero__tab-bar::after {
    animation: none;
    transform: scaleX(1);
    opacity: 0.35;
}

.hero--paused :is(.active, .carousel-item-next, .carousel-item-prev) .hero__bg {
    animation-play-state: paused;
}

@media (max-width: 991.98px) {
    .hero__tab-label small {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero__slide::before {
        background: linear-gradient(0deg, rgba(0, 20, 30, 0.95), rgba(0, 20, 30, 0.7) 55%, rgba(0, 20, 30, 0.45));
    }

    .hero__content {
        justify-content: flex-end;
        padding-bottom: 6.5rem;
    }

    .hero__eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .hero__title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .hero__title--tagline {
        font-size: clamp(2rem, 8.4vw, 2.9rem);
    }

    .hero__tab-label,
    .hero__arrows {
        display: none;
    }

    .hero__nav-inner {
        gap: 0.75rem;
    }

    .hero__pause {
        width: 2.4rem;
        height: 2.4rem;
    }

    .hero .hero__tabs button {
        padding: 1rem 0 1.1rem;
    }

    .hero__tab-bar {
        right: 0.6rem;
        background: rgba(255, 255, 255, 0.15);
    }
}

.values {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    font-family: var(--font-display);
    background: #fff;
}

.values::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 73, 107, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 73, 107, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
    pointer-events: none;
}

.values .container {
    position: relative;
}

.values__item {
    position: relative;
    height: 100%;
    padding: 2.25rem 1.75rem;
    overflow: hidden;
    background: linear-gradient(90deg, var(--green), var(--blue)) no-repeat left bottom / 0 3px, #fff;
    border: 1px solid #e4ebf0;
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 38, 54, 0.04);
    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s ease,
        border-color 0.45s ease,
        background-size 0.6s var(--ease);
}

.values__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--x, 50%) var(--y, 0), rgba(0, 150, 204, 0.09), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.values__item:hover {
    background-size: 100% 3px, auto;
    border-color: transparent;
    box-shadow: 0 24px 48px -12px rgba(0, 73, 107, 0.22), 0 0 0 1px rgba(0, 150, 204, 0.15);
    transform: translateY(-8px);
}

.values__item:hover::before {
    opacity: 1;
}

.values__num {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: transparent;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 1px #dde6ec;
    transition: -webkit-text-stroke-color 0.45s ease, transform 0.45s ease;
}

.values__item:hover .values__num {
    -webkit-text-stroke-color: rgba(164, 204, 53, 0.7);
    transform: translateY(-3px);
}

.values__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
    background: rgba(0, 150, 204, 0.08);
    border-radius: 0.9rem;
    transition: color 0.45s ease, transform 0.45s var(--ease), box-shadow 0.45s ease;
}

.values__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green), var(--blue));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.values__icon svg {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.values__item:hover .values__icon {
    color: #fff;
    box-shadow: 0 10px 22px -6px rgba(0, 150, 204, 0.55);
    transform: rotate(-6deg) scale(1.06);
}

.values__item:hover .values__icon::before {
    opacity: 1;
}

.values__title {
    position: relative;
    margin-bottom: 0.6rem;
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.values__text {
    position: relative;
    margin: 0;
    color: #5b6b75;
    font-size: 0.95rem;
    line-height: 1.6;
}

.values--reveal:not(.is-visible) .values__item {
    opacity: 0;
    transform: translateY(32px);
}

.values--reveal.is-visible .values__item {
    animation: values-in 0.8s var(--ease) calc(var(--i) * 120ms) backwards;
}

@keyframes values-in {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 575.98px) {
    .values {
        padding: 3.5rem 0;
    }
}

/* ---------- About page ---------- */

.about {
    font-family: var(--font-display);
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.about-eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 2px;
    background: var(--green);
}

.about-eyebrow--light {
    color: var(--green);
}

.about-title {
    max-width: 22ch;
    margin-bottom: 1.5rem;
    color: var(--navy);
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.about-text {
    color: #5b6b75;
    font-size: 1rem;
    line-height: 1.75;
}

.about-text--lead {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 500;
}

.about-text em {
    color: var(--blue-dark);
    font-style: normal;
    font-weight: 700;
}

.about-head {
    margin-bottom: 2.75rem;
}

/* Hero */
.about-hero {
    position: relative;
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 150, 204, 0.35), transparent 45%),
        radial-gradient(circle at 10% 110%, rgba(164, 204, 53, 0.18), transparent 40%),
        linear-gradient(135deg, var(--navy), #00344a);
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent, #000 70%);
    pointer-events: none;
}

.about-hero .container {
    position: relative;
}

.about-hero__title {
    max-width: 16ch;
    margin-bottom: 1.5rem;
    font-size: clamp(2.1rem, 5.4vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.about-hero__title span {
    color: transparent;
    background: linear-gradient(90deg, var(--green), #d4ef7a 45%, #5cc8ee);
    background-clip: text;
    -webkit-background-clip: text;
}

.about-hero__lead {
    max-width: 40rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
}

/* Intro */
.about-intro {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background: #fff;
}

.about-media {
    position: relative;
    margin: 0 0 1.5rem 1.5rem;
}

.about-media::before {
    content: "";
    position: absolute;
    inset: 1.5rem 1.5rem -1.5rem -1.5rem;
    background: linear-gradient(135deg, var(--green), var(--blue));
    border-radius: 1.5rem;
    opacity: 0.18;
}

.about-media img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px -20px rgba(0, 38, 54, 0.4);
}

.about-media__badge {
    position: absolute;
    bottom: 1.5rem;
    left: -1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem 0.9rem 0.9rem;
    color: #5b6b75;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    box-shadow: 0 18px 40px -12px rgba(0, 38, 54, 0.35);
    backdrop-filter: blur(8px);
}

.about-media__badge strong {
    display: block;
    color: var(--navy);
    font-size: 0.95rem;
}

.about-media__badge-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
    border-radius: 0.75rem;
}

.about-media__badge-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/* Areas */
.about-areas {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background: #f5f8fa;
}

.about-tag {
    position: relative;
    margin-bottom: 0.35rem;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Steps */
.about-steps {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background: #fff;
}

.about-steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.about-steps__item {
    position: relative;
    padding-top: 1.75rem;
    border-top: 2px solid #e4ebf0;
}

.about-steps__item::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transition: width 0.5s var(--ease);
}

.about-steps__item:hover::before {
    width: 100%;
}

.about-steps__num {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 800;
}

.about-steps__title {
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 800;
}

.about-steps__text {
    margin: 0;
    color: #5b6b75;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team CTA */
.about-team {
    padding: 0 0 clamp(4rem, 8vw, 6.5rem);
    background: #fff;
}

.about-team__card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2.25rem, 5vw, 3.75rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 150, 204, 0.45), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(164, 204, 53, 0.25), transparent 45%),
        linear-gradient(135deg, var(--blue-dark), var(--navy));
    border-radius: 1.75rem;
}

.about-team__card > div {
    position: relative;
    max-width: 38rem;
}

.about-team__title {
    margin-bottom: 0.9rem;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.about-team__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.about-btn {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.4rem 0.95rem 1.9rem;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    background: var(--green);
    border-radius: 50rem;
    box-shadow: 0 10px 30px rgba(164, 204, 53, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.about-btn:hover,
.about-btn:focus-visible {
    color: var(--navy);
    background: var(--green-light);
    box-shadow: 0 14px 36px rgba(164, 204, 53, 0.5);
    transform: translateY(-2px);
}

.about-btn svg {
    width: 1.6rem;
    height: 1.6rem;
    padding: 0.3rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
    background: rgba(0, 38, 54, 0.12);
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.about-btn:hover svg {
    transform: translateX(3px);
}

/* ---------- Contact page ---------- */
.contact-main {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background: #f5f8fa;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.35rem 1.5rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4ebf0;
    border-radius: 1.25rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

a.contact-card:hover,
a.contact-card:focus-visible {
    border-color: rgba(0, 150, 204, 0.35);
    box-shadow: 0 20px 40px -20px rgba(0, 38, 54, 0.3);
    transform: translateY(-3px);
}

.contact-card__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
    border-radius: 0.85rem;
}

.contact-card__icon svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.contact-card__label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card__value {
    display: block;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}

a.contact-card:hover .contact-card__value {
    color: var(--blue-dark);
}

.contact-card__meta {
    display: block;
    color: #5b6b75;
    font-size: 0.92rem;
}

.contact-company {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 1.25rem;
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.contact-company dt {
    color: #5b6b75;
    font-weight: 500;
}

.contact-company dd {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
}

.contact-form {
    position: relative;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    overflow: hidden;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(0, 38, 54, 0.35);
    scroll-margin-top: 6rem;
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--brand-line);
}

.contact-form .form-label {
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-form .form-control {
    padding: 0.8rem 1rem;
    color: var(--navy);
    background-color: #f8fafb;
    border-color: #d9e3ea;
    border-radius: 0.75rem;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 204, 0.15);
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form textarea {
    min-height: 9rem;
    resize: vertical;
}

.contact-form .form-check-input:checked {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
}

.contact-form .form-check-label {
    color: #5b6b75;
    font-size: 0.9rem;
}

.contact-form .about-btn {
    margin-top: 0.5rem;
    font-family: inherit;
    border: 0;
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
}

.contact-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-topics input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-topics label {
    padding: 0.55rem 1.1rem;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    background: #f8fafb;
    border: 1px solid #d9e3ea;
    border-radius: 50rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-topics label:hover {
    border-color: var(--blue);
}

.contact-topics input:focus-visible + label {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.contact-topics input:checked + label {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.contact-topics.is-invalid label {
    border-color: #dc3545;
}

.contact-topics.is-invalid ~ .invalid-feedback {
    display: block;
}

.contact-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    font-weight: 500;
    border: 1px solid;
    border-radius: 0.9rem;
}

.contact-alert--ok {
    color: var(--green-dark);
    background: rgba(164, 204, 53, 0.14);
    border-color: rgba(164, 204, 53, 0.55);
}

.contact-alert--error {
    color: #9b1c1c;
    background: #fdecec;
    border-color: #f5c2c2;
}

.contact-alert a {
    color: inherit;
    font-weight: 700;
}

.contact-map {
    padding: 0 0 clamp(4rem, 8vw, 6.5rem);
    background: #f5f8fa;
}

.contact-map__frame {
    height: clamp(320px, 40vw, 460px);
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(0, 38, 54, 0.35);
}

.contact-map__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Scroll reveal */
.reveal-on [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
}

.reveal-on [data-reveal] {
    transition: opacity 0.8s ease, transform 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}

@media (max-width: 991.98px) {
    .about-steps__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .about-steps__list {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .about-media {
        margin-left: 0.75rem;
    }

    .about-media__badge {
        left: -0.75rem;
    }
}

.site-footer {
    position: relative;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(0, 150, 204, 0.35), transparent 45%),
        radial-gradient(circle at 95% 100%, rgba(164, 204, 53, 0.22), transparent 40%),
        linear-gradient(135deg, var(--blue-dark), var(--navy) 70%);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--brand-line);
}

.site-footer__main {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.site-footer__logo:hover {
    transform: translateY(-2px);
}

.site-footer__tagline {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.site-footer__company {
    margin: 0;
}

.site-footer__company strong {
    color: #fff;
    font-weight: 600;
}

.site-footer__certs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.site-footer a.iso-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    color: #fff;
    line-height: 1;
    background:
        linear-gradient(145deg, rgba(0, 73, 107, 0.95), rgba(0, 38, 54, 0.95)) padding-box,
        linear-gradient(135deg, var(--green), var(--blue)) border-box;
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.iso-badge small {
    color: var(--green);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.iso-badge strong {
    margin-top: 0.15rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.site-footer a.iso-badge:hover,
.site-footer a.iso-badge:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(164, 204, 53, 0.5);
}

.site-footer a.iso-badge:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.site-footer__title {
    margin-bottom: 0.75rem;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li + li {
    margin-top: 0.4rem;
}

.site-footer__list--cols {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0.4rem 2rem;
}

.site-footer__list--cols li + li {
    margin-top: 0;
}

.site-footer__list strong {
    color: #fff;
    font-weight: 600;
}

.site-footer a:not(.site-footer__logo) {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer a:not(.site-footer__logo):hover,
.site-footer a:not(.site-footer__logo):focus-visible {
    color: var(--green);
}

.site-footer__list:not(.site-footer__list--icons) a:hover {
    padding-left: 0.35rem;
}

.site-footer__list--icons li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.site-footer__list--icons svg {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    fill: none;
    stroke: var(--blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.9rem 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 575.98px) {
    .site-footer__main {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Sertifikati */
.certs {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
    background: #f5f8fa;
}

.certs-facts {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 1px;
    margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
    overflow: hidden;
    background: #e4ebf0;
    border: 1px solid #e4ebf0;
    border-radius: 1.25rem;
}

.certs-facts > div {
    padding: 1.35rem 1.5rem;
    background: #fff;
}

.certs-facts dt {
    margin-bottom: 0.35rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.certs-facts dd {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.5;
}

.cert-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4ebf0;
    border-radius: 1.5rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -30px rgba(0, 38, 54, 0.35);
}

.cert-card__preview {
    position: relative;
    display: block;
    padding: 1.75rem 1.75rem 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 0%, rgba(0, 150, 204, 0.18), transparent 55%),
        linear-gradient(160deg, #eaf1f5, #dfe8ee);
}

.cert-card__preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 520 / 736;
    object-fit: cover;
    object-position: top;
    border-radius: 0.4rem 0.4rem 0 0;
    box-shadow: 0 18px 40px -12px rgba(0, 38, 54, 0.4);
    transition: transform 0.5s var(--ease);
}

.cert-card__preview:hover img,
.cert-card__preview:focus-visible img {
    transform: translateY(-6px) scale(1.015);
}

.cert-card__preview:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -3px;
}

.cert-card__zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--navy);
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 38, 54, 0.25);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.cert-card__preview:hover .cert-card__zoom,
.cert-card__preview:focus-visible .cert-card__zoom {
    opacity: 1;
    transform: none;
}

.cert-card__zoom svg,
.cert-card__download svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.cert-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem 1.6rem 1.6rem;
    border-top: 1px solid #e4ebf0;
}

.cert-card__title {
    margin-bottom: 0.6rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.cert-card__text {
    margin-bottom: 1.25rem;
    color: #5b6b75;
    font-size: 0.95rem;
    line-height: 1.65;
}

.cert-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: auto 0 1.25rem;
    padding: 0.9rem 1rem;
    background: #f5f8fa;
    border-radius: 0.8rem;
}

.cert-card__meta dt {
    color: #7a8a94;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cert-card__meta dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
}

.cert-card__download {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 1.15rem;
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #cfdbe3;
    border-radius: 50rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cert-card__download:hover,
.cert-card__download:focus-visible {
    color: var(--navy);
    background: var(--green);
    border-color: var(--green);
}

.certs-note {
    margin: 2rem 0 0;
    color: #7a8a94;
    font-size: 0.85rem;
    text-align: center;
}

.cert-modal .modal-content {
    border: 0;
    border-radius: 1.25rem;
}

.cert-modal .modal-title {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
}

.cert-modal .modal-body {
    padding: 1rem;
    background: #eef3f6;
}

.cert-modal .modal-body img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 10px 30px -10px rgba(0, 38, 54, 0.35);
}

.cert-modal .about-btn {
    margin: 0;
}

@media (max-width: 991.98px) {
    .certs-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cert-card__preview {
        padding: 1.5rem 20% 0;
    }
}

/* 404 */
.error-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.error-page {
    flex: 1 0 auto;
    padding-bottom: clamp(4rem, 9vw, 7rem);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.about-btn--ghost {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.about-btn--ghost:hover,
.about-btn--ghost:focus-visible {
    color: var(--navy);
    background: #fff;
    box-shadow: none;
}

.site-footer__sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* Preskoči na sadržaj (vidljivo samo pri navigaciji tastaturom) */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1.2rem;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    background: var(--green);
    border-radius: 50rem;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    color: var(--navy);
    transform: none;
}

main:focus {
    outline: none;
}

/* Politika privatnosti */
.privacy-page {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    background: #fff;
}

.privacy {
    max-width: 50rem;
    color: #3d4d57;
    line-height: 1.7;
}

.privacy :is(h2, h3) {
    margin: 2.25rem 0 0.75rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
}

.privacy > :first-child {
    margin-top: 0;
}

.privacy a {
    color: var(--blue-dark);
    font-weight: 600;
}

.privacy ul {
    padding-left: 1.2rem;
}

.privacy li + li {
    margin-top: 0.4rem;
}

.privacy__updated {
    margin-top: 2rem;
    color: #7a8a94;
    font-size: 0.85rem;
}

.privacy-modal .modal-content {
    border: 0;
    border-radius: 1.25rem;
}

.privacy-modal .modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom-color: #e6edf2;
}

.privacy-modal .modal-title {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
}

.privacy-modal .modal-body {
    max-width: none;
    padding: 1.5rem;
    font-size: 0.95rem;
}

.privacy-modal .modal-body h3 {
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

.privacy-modal .modal-footer {
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top-color: #e6edf2;
}

.privacy-modal .about-btn {
    margin: 0;
    font-family: inherit;
    border: 0;
}

.privacy-modal__decline {
    padding: 0.7rem 1.2rem;
    color: var(--blue-dark);
    font-weight: 600;
    background: none;
    border: 0;
    border-radius: 50rem;
}

.privacy-modal__decline:hover,
.privacy-modal__decline:focus-visible {
    background: #eef3f6;
}

.contact-form .form-check-label a {
    color: var(--blue-dark);
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------------------------------------------------------------
   Stranice napravljene u admin panelu (includes/templates/custom-page.php)
   --------------------------------------------------------------- */
.page-body {
    max-width: 50rem;
    color: #3d4d57;
    font-size: 1.05rem;
    line-height: 1.75;
}

.page-body > :first-child {
    margin-top: 0;
}

.page-body p {
    margin: 0 0 1.1rem;
}

.page-body :is(h2, h3, h4) {
    margin: 2.5rem 0 0.9rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.page-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.page-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); }
.page-body h4 { font-size: 1.1rem; }

.page-body a {
    color: var(--blue-dark);
    font-weight: 600;
}

.page-body :is(ul, ol) {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.page-body li + li {
    margin-top: 0.4rem;
}

.page-body li::marker {
    color: var(--green-dark);
    font-weight: 700;
}

.page-body blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 500;
    background: #f3f8fa;
    border-left: 4px solid var(--green);
    border-radius: 0 0.75rem 0.75rem 0;
}

.page-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.75rem 0;
    border-radius: 1rem;
    box-shadow: 0 24px 48px -24px rgba(0, 38, 54, 0.35);
}

.page-body p:has(> img:only-child) {
    margin: 0;
}

.page-body .ql-size-small { font-size: 0.85em; }
.page-body .ql-size-large { font-size: 1.35em; }
.page-body .ql-size-huge { font-size: 2em; line-height: 1.2; }

.page-body .ql-align-center { text-align: center; }
.page-body .ql-align-right { text-align: right; }
.page-body .ql-align-justify { text-align: justify; }
.page-body .ql-align-center > img { margin-inline: auto; }
.page-body .ql-align-right > img { margin-left: auto; }

.page-body .ql-indent-1 { padding-left: 2.5em; }
.page-body .ql-indent-2 { padding-left: 5em; }
.page-body .ql-indent-3 { padding-left: 7.5em; }
.page-body .ql-indent-4 { padding-left: 10em; }
.page-body li.ql-indent-1 { margin-left: 1.5em; padding-left: 0; }
.page-body li.ql-indent-2 { margin-left: 3em; padding-left: 0; }
.page-body li.ql-indent-3 { margin-left: 4.5em; padding-left: 0; }

.custom-page__draft {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.6rem 1rem;
    color: #5c3d00;
    font-weight: 700;
    text-align: center;
    background: #ffe08a;
}
/* Veličine slika u tekstu (bira se u adminu klikom na sliku) */
.page-body {
    display: flow-root;
}

.page-body :is(h2, h3, h4) {
    clear: both;
}

.page-body img.img-half {
    width: 50%;
}

.page-body img.img-left,
.page-body img.img-right {
    width: 45%;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

.page-body img.img-left {
    float: left;
    margin-right: 1.75rem;
}

.page-body img.img-right {
    float: right;
    margin-left: 1.75rem;
}

@media (max-width: 575.98px) {
    .page-body img:is(.img-half, .img-left, .img-right) {
        float: none;
        width: 100%;
        margin: 1.5rem 0;
    }
}

/* ---------------------------------------------------------------
   Saglasnost za kolačiće (includes/consent.php)
   --------------------------------------------------------------- */
.consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1060;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 38, 54, 0.97);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
}

.consent[hidden] {
    display: none;
}

.consent__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 2rem;
}

.consent__text {
    flex: 1 1 30rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.consent__text a {
    color: var(--green);
    font-weight: 600;
}

.consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.consent__btn {
    padding: 0.7rem 1.2rem;
    color: #fff;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50rem;
}

.consent__btn:hover,
.consent__btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.consent .about-btn {
    margin: 0;
    font-family: inherit;
    border: 0;
}

.privacy__consent {
    margin-top: 1.5rem;
    font-family: inherit;
    cursor: pointer;
}

/* Mapa pre saglasnosti */
.contact-map__frame[data-map-src] {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 150, 204, 0.12), transparent 50%),
        linear-gradient(135deg, #eef4f7, #e2ebf0);
}

.map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    min-height: inherit;
    padding: 2rem 1.5rem;
    text-align: center;
}

.map-consent > svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--blue-dark);
    stroke-width: 1.6;
}

.map-consent p {
    max-width: 30rem;
    margin: 0;
    color: #3d4d57;
}

.map-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.map-consent .about-btn {
    margin: 0;
    font-family: inherit;
    border: 0;
}

.map-consent a:not(.about-btn) {
    color: var(--blue-dark);
    font-weight: 600;
}

/* ---------------------------------------------------------------
   Projekti
   --------------------------------------------------------------- */
.projects {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    background: #fff;
}

.projects-empty {
    max-width: 40rem;
    margin: 0 auto;
    color: #3d4d57;
    font-size: 1.1rem;
    text-align: center;
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.projects-filter button {
    padding: 0.5rem 1.1rem;
    color: var(--blue-dark);
    font-family: var(--font-display);
    font-weight: 700;
    background: #f1f6f8;
    border: 1px solid transparent;
    border-radius: 50rem;
    transition: background 0.2s, color 0.2s;
}

.projects-filter button:hover {
    border-color: rgba(0, 73, 107, 0.25);
}

.projects-filter button.is-active {
    color: #fff;
    background: var(--navy);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e3ebef;
    border-radius: 1.25rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(0, 38, 54, 0.35);
}

.project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), #00496b);
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card__media img {
    transform: scale(1.04);
}

.project-card__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--green);
    border-radius: 50rem;
}

.project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.4rem 1.5rem 1.5rem;
}

.project-card__title {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.project-card__meta {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 700;
}

.project-card__text {
    color: #5b6b75;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.6rem;
    color: var(--blue-dark);
    font-weight: 700;
}

.project-card__more svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.25s;
}

.project-card:hover .project-card__more svg {
    transform: translateX(4px);
}

.project-detail {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background: #fff;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.project-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.project-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    margin: 0 0 2rem;
    overflow: hidden;
    background: #e3ebef;
    border: 1px solid #e3ebef;
    border-radius: 1rem;
}

.project-facts div {
    padding: 1.1rem 1.3rem;
    background: #f7fafb;
}

.project-facts dt {
    margin-bottom: 0.25rem;
    color: #6b7c86;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
}

.project-cover {
    margin: 0 0 2.5rem;
}

.project-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px -30px rgba(0, 38, 54, 0.45);
}

.project-gallery__title {
    margin: 3rem 0 1.25rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.project-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 0.85rem;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.project-gallery a:hover img {
    transform: scale(1.05);
}

.gallery-modal .modal-content {
    position: relative;
    background: transparent;
    border: 0;
}

.gallery-modal img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    margin: 0 auto;
    border-radius: 0.75rem;
}

.gallery-modal .btn-close {
    position: absolute;
    top: -2.25rem;
    right: 0;
    opacity: 0.9;
}

.gallery-modal__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(0, 38, 54, 0.7);
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

.gallery-modal__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.gallery-modal__nav--prev { left: 0.75rem; }
.gallery-modal__nav--next { right: 0.75rem; }

.modal-backdrop.show:has(+ .gallery-modal),
body:has(.gallery-modal.show) .modal-backdrop.show {
    opacity: 0.85;
}