@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* RESET */
*{
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

img{
    width: 100%;
    display: flex;
}

a{
    text-decoration: none;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    padding-top: 110px !important;
}

/* ============================================
   DARK / LIGHT MODE – GLOBALNE VARIJABLE
============================================ */

:root {
    --bg: #18181b;
    --bg-secondary: #27272a;
    --text: #ffffff;
    --text-light: #cccccc;
    --card-border: #2a2a2d;
    --accent: #1d4ed8;
    --nav-bg: rgba(24,24,27,0.9);
    --footer-bg: #141416;
    --review-bg: rgba(255,255,255,0.06);
    --banner-bg: rgba(30,30,30,0.95);
    --soft-shadow: rgba(0,0,0,0.28);
}

body.light-mode {
    --bg: #f3f7fc;
    --bg-secondary: #ffffff;
    --text: #122033;
    --text-light: #506176;
    --card-border: #d8e2f0;
    --nav-bg: rgba(255,255,255,0.88);
    --footer-bg: #edf3fa;
    --review-bg: #ffffff;
    --banner-bg: rgba(255,255,255,0.96);
    --soft-shadow: rgba(29,78,216,0.1);
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background .3s, color .3s;
}

/* ============================================
   ANIMIRANE TOPOGRAFSKE LINIJE - HOME
============================================ */

.home-page,
.contour-page {
    position: relative;
    overflow-x: hidden;
}

.home-page > header,
.home-page > section,
.contour-page > header,
.contour-page > section,
.contour-page > .blog-wrapper,
.contour-page > footer {
    position: relative;
    z-index: 1;
}

.contour-background {
    position: fixed;
    top: 72px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: min(980px, calc(100vh + 150px));
    overflow: hidden;
    pointer-events: none;
    opacity: 0.84;
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
}

.contour-background svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 8px rgba(29, 78, 216, 0.18));
}

.contour-lines {
    fill: none;
    stroke: rgba(30, 92, 211, 0.4);
    stroke-width: 1.35;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.contour-lines path:nth-child(even) {
    stroke: rgba(29, 78, 216, 0.29);
}

.contour-lines-top {
    transform-origin: 50% 35%;
    animation: contour-drift-top 14s ease-in-out infinite alternate;
}

.contour-lines-bottom {
    transform-origin: 50% 72%;
    animation: contour-drift-bottom 17s ease-in-out infinite alternate;
}

@keyframes contour-drift-top {
    to {
        transform: translate3d(12px, -10px, 0) scale(1.018);
    }
}

@keyframes contour-drift-bottom {
    to {
        transform: translate3d(-15px, 12px, 0) scale(1.02);
    }
}

body.light-mode .contour-lines {
    stroke: rgba(29, 78, 216, 0.23);
}

@media (prefers-reduced-motion: reduce) {
    .contour-lines {
        animation: none;
    }
}

/* ============================================
   NAVIGACIJA
============================================ */

nav{
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg) !important;
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.theme-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .72rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--soft-shadow);
    transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.theme-toggle i {
    color: var(--accent);
    font-size: 1.2rem;
}

nav .nav-links a {
    color: var(--text);
}

.nav-logo{
    max-width: 100px;
}

.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.link a{
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--text);
}

.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: all 0.3s ease;
}

.link a:hover::after{
    width: 70%;
}

/* BURGER MENI */
.burger {
    display: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    z-index: 99999;
}

@media (max-width: 900px) {
    .burger {
        display: block;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: -5px 0 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    transition: right .35s ease;
    z-index: 99998;
}

.mobile-menu.active {
    right: 0;
}

body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 99990;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    margin: 1.2rem 0;
}

.mobile-menu a {
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 600;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ============================================
   HEADER
============================================ */

.container{
    max-width: 1200px;
    margin: auto;
    padding: 5rem 2rem;
}

header{
    position: relative;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
}

header .content h4{
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

header .content h1{
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 4rem;
}

header .content h1 span{
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}

header .content p{
    margin-bottom: 2rem;
    color: var(--text-light);
}

header .image img{
    max-width: 600px;
    margin: auto;
}

/* ============================================
   PARALLAX NASLOV + BLUE BLUR
============================================ */

.parallax-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 4.3rem;
    color: var(--text);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.parallax-title span {
    -webkit-text-stroke: 2px var(--accent);
    text-shadow: 0 0 15px rgba(29,78,216,0.8);
}

#blur-bg {
    width: 700px;
    height: 700px;
    top: -150px;
    left: -150px;
    position: absolute;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.55;
    border-radius: 50%;
    z-index: -1;
}

/* ============================================ 
   FEATURES — KARTICE
============================================ */

.features{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.features .card {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    position: relative;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
    transform-style: preserve-3d;
    overflow: hidden;
    isolation: isolate;
}

.features .card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(4deg);
    border-color: rgba(29, 78, 216, .55);
    box-shadow: 0 16px 34px rgba(18, 32, 51, .09), 0 0 0 4px rgba(29, 78, 216, .08);
}

.features .card::after,
.features .card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    border-radius: inherit;
    z-index: -1;
}

.features .card::after {
    background:
        radial-gradient(circle at var(--mx, 18%) var(--my, 18%), rgba(29, 78, 216, .22), transparent 32%),
        linear-gradient(145deg, rgba(29, 78, 216, .08), transparent 58%);
}

.features .card::before {
    border: 1px solid rgba(29, 78, 216, .22);
    box-shadow: inset 0 0 26px rgba(29, 78, 216, .08);
}

.features .card:hover::after,
.features .card:hover::before {
    opacity: 1;
}


.features .card span{
    display: inline-block;
    background-color: var(--accent);
    padding: 2px 9px;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #fff;
    border-radius: 5px;
    transition: .35s ease;
}

.features .card:hover span {
    transform: scale(1.15);
}

.features .card h4{
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.features .card p{
    color: var(--text-light);
}

/* ============================================
   POPUP PROZOR
============================================ */

.popup {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
}

.popup.show {
    display: flex;
}

.popup-box {
    background: #18181b;
    border-radius: 18px;
    padding: 2rem 2.4rem;
    max-width: 520px;
    width: 90%;
    border: 1px solid var(--accent);
    box-shadow: 0 0 35px rgba(29,78,216,0.55);
    text-align: left;
}

.popup-buttons {
    margin-top: 1.8rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.popup-btn {
    border: none;
    cursor: pointer;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: .25s ease;
}

.popup-btn.main {
    background: var(--accent);
    color: #fff;
}

.popup-btn.secondary {
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
}



/* ============================================
   SECTION HEADER
============================================ */

section .header{
    margin-bottom: 1rem;
    color: var(--text);
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
}

.sub-header{
    max-width: 600px;
    margin: auto;
    text-align: center;
    color: var(--text-light);
}

/* ============================================
   USLUGE – GRID + DROPDOWN SISTEM
============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* DROP ITEM */

.drop-item {
    background: var(--bg-secondary);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 1.4rem;
    overflow: hidden;
    transition: .3s ease;
}

.drop-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(29,78,216,0.25);
}

.drop-header {
    width: 100%;
    background: transparent;
    padding: 1.3rem;
    font-size: 1.25rem;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.drop-header i {
    font-size: 1.5rem;
}

.arrow {
    transition: .3s ease;
}

.drop-item.active .arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* DROP BODY */

.drop-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.3rem; /* ovo je OK kada je zatvoren */
    transition: max-height .4s ease, opacity .3s ease, padding .3s ease;

    /* NOVO — da ne bude zbijeno */
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}


.drop-item.active .drop-body {
    max-height: 900px;
    opacity: 1;
    padding: 1.4rem 2rem 1.8rem 2rem !important; 
    background: rgba(255,255,255,0.03); /* blaga pozadina */
    border-radius: 0 0 12px 12px;
}


.drop-body ul {
    padding-left: 1.2rem;
}

.drop-body li {
    margin-bottom: 0.8rem;
    line-height: 1.65rem;
    font-size: 1rem;
}


/* ============================================
   ABOUT BOX
============================================ */

.about-box {
    margin-top: 3rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--card-border);
    color: var(--text-light);
    line-height: 1.8rem;
}

/* ============================================
   KONTAKT STRANA
============================================ */

.contact-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--card-border);
    color: var(--text-light);
}

.contact-info i {
    color: var(--accent);
    margin-right: 8px;
}

.social-title {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.socials-contact a {
    color: var(--text);
    font-size: 1.7rem;
    margin-right: 1rem;
}

.contact-map {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
}



/* ============================================
   COOKIE BANNER
============================================ */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;

    background: var(--banner-bg);
    color: var(--text);
    padding: 1rem 1.5rem;
    border-radius: 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    border: 1px solid var(--accent);
    backdrop-filter: blur(6px);
    z-index: 99999;
    animation: fadeUp .4s ease;
}

.cookie-banner a {
    color: #60a5ff;
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
}

.cookie-banner button:hover {
    background: #1e40af;
}

.cookie-banner.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all .3s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE — TABLET
============================================ */

@media (max-width: 1024px) {
    .container {
        padding: 4rem 1.5rem;
    }

    header {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    header .image img {
        max-width: 420px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE — TABLET SMALL (900px)
============================================ */

@media (max-width: 900px) {

    nav {
        padding: 1rem 1.3rem;
        left: 0;
        transform: none;
        max-width: 100%;
    }

    .nav-links {
        display: none;
    }

    header {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    header .image {
        order: -1;
        margin-bottom: 1rem;
    }

    header .image img {
        max-width: 320px;
        margin: auto;
    }

    header .content h1 {
        text-align: center;
        line-height: 3rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer .column {
        margin-bottom: 2rem;
    }
}

/* ============================================
   RESPONSIVE — PHONE (600px)
============================================ */

@media (max-width: 600px) {

    .contour-background {
        top: 58px;
        height: 820px;
        opacity: 0.68;
    }

    .theme-toggle {
        right: 14px;
        bottom: 16px;
        padding: .65rem .8rem;
    }

    .container {
        padding: 3rem 1.2rem;
    }

    header .content h1 {
        font-size: 2.2rem;
        line-height: 2.8rem;
    }

    header .content p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    header .image img {
        max-width: 250px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .features .card {
        padding: 1.3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    #blur-bg {
        width: 450px;
        height: 450px;
        top: -80px;
        left: -80px;
        filter: blur(90px);
        opacity: .45;
    }
}

/* ============================================
   RESPONSIVE — TINY PHONES (400px)
============================================ */

@media (max-width: 400px) {

    header .content h1 {
        font-size: 1.9rem;
        line-height: 2.4rem;
    }

    header .content p {
        font-size: 0.88rem;
    }

    .features .card {
        padding: 1.1rem;
    }

    #blur-bg {
        width: 380px;
        height: 380px;
        left: -60px;
        top: -60px;
    }

    .popup-box {
        padding: 1.4rem;
    }
}

/* ============================================
   HAMBURGER MENI (FULL RIGHT SIDEBAR)
============================================ */

.burger {
    display: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    z-index: 99999;
}

@media (max-width: 900px) {
    .burger {
        display: block;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;

    background: var(--bg-secondary);
    box-shadow: -5px 0 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-left: 2rem;
    transition: right .35s ease;

    z-index: 99998;
}

.mobile-menu.active {
    right: 0;
}

body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 99990;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    margin: 1.2rem 0;
}

.mobile-menu a {
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 600;
    transition: .2s ease;
}

.mobile-menu a:hover {
    color: var(--accent);
}

.burger i {
    transition: transform .3s ease;
}

.burger.active i {
    transform: rotate(90deg);
}

/* ============================================
   POPUP — GLOW PLAVO
============================================ */

.popup {
    position: fixed;
    inset: 0;
    display: none; /* zatvoren dok JS ne prikaže */
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
}

.popup.show {
    display: flex;
}

.popup-box {
    background: #18181b;
    border-radius: 18px;
    padding: 2rem 2.4rem;
    max-width: 520px;
    width: 90%;
    border: 1px solid var(--accent);
    box-shadow: 0 0 35px rgba(29,78,216,0.55);
    text-align: left;
}

.popup-btn.secondary {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
}

.popup-box h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.popup-box p {
    color: #ccc;
    font-size: 0.98rem;
    line-height: 1.6rem;
}

/* Dugmad */

.popup-buttons {
    margin-top: 1.8rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.popup-btn {
    cursor: pointer;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    transition: .25s ease;
}

.popup-btn.main {
    background: var(--accent);
    color: #fff;
}

.popup-btn.main:hover {
    background: #1e40af;
    transform: translateY(-1px);
}


.popup-btn.secondary:hover {
    border-color: var(--accent);
    color: #fff;
}


/* ============================================
   LEP LINK ZA KONTAKT U USLUGAMA
============================================ */

.drop-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: 0.25s ease;
}

.drop-body a:hover {
    color: #fff;
    border-bottom: 2px solid var(--accent);
    text-shadow: 0 0 8px rgba(29,78,216,0.6);
}

/* LINKOVI UNUTAR USLUGA */
.services-grid a,
.drop-item a,
.drop-body a {
    color: var(--accent) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: .25s ease;
}

.services-grid a:hover,
.drop-item a:hover,
.drop-body a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(29,78,216,0.8);
}

/* Unutrašnji padding u otvorenom dropdown-u */
.drop-body {
    padding: 1.5rem 2rem !important;
}

/* Da list-items dobiju vertikalni razmak */
.drop-body li {
    margin-bottom: 0.9rem !important;
}

/* Razmak između headera i teksta */
.drop-item.active .drop-body {
    margin-top: 0.8rem;
}

/* ================================
   PARTNERS / CLIENT LOGOS SECTION
================================= */

.partners-section {
    margin-top: 4rem;
}

.partners-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.partner-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease;
}

.partner-card img {
    max-width: 130px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: .3s ease;
}

.partner-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(29,78,216,0.45);
    transform: translateY(-4px);
}

.partner-card:hover img {
    opacity: 1;
    filter: brightness(1);
}

/* Responsive */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= PARTNERI ================= */

.partners-section {
    margin-top: 4rem;
    text-align: center;
}

.partners-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
    padding: 1rem 0 1.6rem;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.partners-track {
    display: flex;
    gap: 2rem;
    width: max-content;

    animation: slidePartners 18s linear infinite;
}

.partner-card {
    min-width: 180px;
    height: 110px;

    background: var(--bg-secondary);
    border: 2px solid var(--card-border);
    border-radius: 12px;

    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: .35s ease;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(18, 32, 51, .045);
}

.partner-card img {
    max-width: 130px;
    max-height: 90px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: .3s ease;
}

.partner-card:hover {
    transform: translateY(-6px);
    border-color: rgba(29, 78, 216, .55);
    box-shadow: 0 16px 34px rgba(29, 78, 216, .13), 0 0 0 4px rgba(29, 78, 216, .07);
}

.partner-card:hover img {
    filter: brightness(1);
}

/* Infinite scroll */
@keyframes slidePartners {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


.partners-section {
    margin-top: 80px;
    padding-top: 20px;
}

.partner-card {
    overflow: hidden;
    position: relative;
    border-radius: 14px;
    transition: 0.3s ease;
    padding: 8px;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(29, 78, 216, 0.13), 0 0 0 4px rgba(29, 78, 216, .07);
}


.about-box {
    max-width: 900px;
    margin: 40px auto; /* OVO GA CENTRIRA */
    background: var(--bg-secondary);
    color: var(--text-light);
    padding: 40px 50px;
    border-radius: 16px;
    text-align: left; /* ili center ako želiš centralni tekst */
}



/* --- TEAM SECTION --- */
.team-section {
    text-align: center;
    margin-top: 4rem;
}

.team-wrapper {
    max-width: 980px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.6rem;
    margin: 3rem auto 0;
}

.team-card {
    background: var(--bg-secondary);
    padding: 1rem 1rem 1.25rem;
    border-radius: 20px;
    text-align: center;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: span 2;
}

.team-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
}

.team-photo {
    position: relative;
    width: 100%;
    height: 245px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: linear-gradient(145deg, rgba(29,78,216,.13), rgba(30,164,255,.07));
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ============================================
   MOBILE SIDEBAR — FINAL POLISH
============================================ */
@media (max-width: 900px) {
    .mobile-menu {
        width: min(88vw, 370px);
        height: 100vh;
        height: 100dvh;
        padding: calc(5.8rem + env(safe-area-inset-top)) 1rem calc(5.5rem + env(safe-area-inset-bottom));
        background:
            radial-gradient(circle at 100% 0%, rgba(29, 78, 216, .18), transparent 34%),
            linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 98%, #172554 2%), var(--bg-secondary));
        border-left: 1px solid color-mix(in srgb, var(--accent) 24%, var(--card-border));
        box-shadow: -22px 0 55px rgba(0, 0, 0, .42);
        justify-content: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-menu::before {
        content: "";
        position: absolute;
        top: 72px;
        left: 1rem;
        right: 1rem;
        height: 1px;
        background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent), transparent);
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: .25rem;
        width: 100%;
        margin: 0;
    }

    .mobile-menu li {
        width: 100%;
        margin: 0;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: .68rem .85rem;
        border: 1px solid transparent;
        border-radius: 12px;
        color: var(--text);
        font-size: 1rem;
        line-height: 1.2;
        font-weight: 650;
        transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus-visible {
        color: var(--accent);
        background: color-mix(in srgb, var(--accent) 10%, transparent);
        border-color: color-mix(in srgb, var(--accent) 24%, transparent);
        transform: translateX(3px);
        outline: none;
    }

    .mobile-menu li:nth-last-child(2) {
        margin-top: .55rem;
    }

    .mobile-menu .svoj-btn {
        justify-content: center;
        min-height: 46px;
        padding: .72rem 1rem;
        color: #fff !important;
        background: linear-gradient(135deg, var(--accent), #2563eb);
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 10px 24px rgba(29, 78, 216, .22);
        font-weight: 750;
    }

    .mobile-menu li:last-child .svoj-btn {
        color: var(--accent) !important;
        background: color-mix(in srgb, var(--accent) 10%, transparent);
        border-color: color-mix(in srgb, var(--accent) 35%, transparent);
        box-shadow: none;
    }

    .mobile-menu .svoj-btn:hover,
    .mobile-menu .svoj-btn:focus-visible {
        color: #fff !important;
        background: linear-gradient(135deg, #2563eb, var(--accent));
        transform: translateY(-1px);
    }

    body.menu-open::before {
        background: rgba(3, 7, 18, .62);
        backdrop-filter: blur(6px);
    }
}

@media (max-width: 600px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        right: max(16px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
        display: grid;
        place-items: center;
        gap: 0;
        padding: 0;
        border-radius: 50%;
        line-height: 1;
    }

    .theme-toggle i {
        grid-area: 1 / 1;
        width: 1em;
        height: 1em;
        display: grid;
        place-items: center;
        margin: 0;
        line-height: 1;
    }

    .theme-toggle .theme-label {
        display: none;
    }
}

.team-photo img[src$="martinn.jpeg"] {
    object-position: center 34%;
}

.team-photo img[src$="jelena.jpeg"] {
    object-position: center 22%;
}

.team-photo img[src$="bogdan.jpg"] {
    object-fit: cover;
    object-position: center 24%;
    padding: 0;
}

.team-photo img[src$="tijana.jpeg"] {
    object-position: center 32%;
}

.team-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background:
        radial-gradient(circle at 50% 35%, rgba(51,135,255,.24), transparent 38%),
        linear-gradient(145deg, rgba(17,24,39,.96), rgba(29,78,216,.20));
    color: var(--accent);
}

.team-placeholder i {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(29,78,216,.16);
    font-size: 2rem;
}

.team-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .1em;
}

.team-photo.missing-photo img {
    display: none;
}

.team-photo.missing-photo .team-placeholder {
    display: flex;
}

.team-card h3 {
    margin-top: 1.1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.role {
    color: var(--text-light);
    min-height: 3rem;
    margin-top: .35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone {
    margin-top: .55rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    background: rgba(29,78,216,.08);
    border-radius: 999px;
    padding: .4rem .8rem;
}

.team-socials {
    margin-top: 1.15rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: var(--text-light);
    background: rgba(29,78,216,.07);
    border-radius: 50%;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}

.team-socials a:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .team-wrapper {
        grid-template-columns: repeat(2, minmax(230px, 1fr));
    }

    .team-card,
    .team-card:nth-last-child(2):nth-child(3n + 1) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .team-wrapper {
        grid-template-columns: 1fr;
        max-width: 330px;
    }
}



/* CTA dugme na početnoj – potpuno u stilu sajta */
.cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 12px;

    background: transparent;
    border: 2px solid #3a7afe;
    color: #fff;

    cursor: pointer;
    transition: 0.25s ease;
    text-decoration: none;
}

/* Hover efekat */
.cta-btn:hover {
    background: #3a7afe;
    color: #fff;
    box-shadow: 0 0 20px rgba(58, 122, 254, 0.7);
    transform: translateY(-2px);
}


/* HAMBURGER */
.burger {
    display: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    z-index: 99999;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }
}

/* MOBILNI MENI */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;

    background: var(--bg-secondary);
    box-shadow: -5px 0 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-left: 2rem;
    transition: right .35s ease;

    z-index: 99998;
}

.mobile-menu.active {
    right: 0;
}

/* OTVARANJE BACKDROP-A */
body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 99990;
}

/* Linkovi */
.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin: 1.2rem 0;
}

.mobile-menu a {
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 600;
    transition: 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent);
}





/* ISTAKNUTO DUGME — SVOJ NA SVOME */
.svoj-btn {
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 600;
    transition: .3s ease;
}

.svoj-btn:hover {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(29,78,216,0.55);
}

/* Mobilni meni verzija */
.mobile-menu .svoj-btn {
    color: var(--accent) !important;
    border: none;
    font-weight: 700;
}



/* GOOGLE LIVE REVIEWS — slider */
.google-live h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-slider {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.review-item {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.review-item.active {
    opacity: 1;
    transform: translateY(0);
}

.review-author {
    margin-top: .6rem;
    font-weight: 600;
    color: var(--accent);
}

.review-btn {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 10px;
    font-weight: 600;
    transition: .3s ease;
}

.review-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(29,78,216,0.45);
}

.zakazivanje-btn {
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    transition: .3s;
}

.zakazivanje-btn:hover {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(29,78,216,0.55);
}


/* ================================
   ZAKAZIVANJE — PAGE STILOVI
================================ */

.zakazivanje-page {
    max-width: 1120px;
    margin-top: 3rem;
    animation: fadePage .6s ease;
}

@keyframes fadePage {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.booking-shell {
    margin-top: 2.8rem;
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    align-items: stretch;
}

.booking-info-card,
.booking-main-card {
    border: 1px solid var(--card-border);
    border-radius: 26px;
    background: var(--bg-secondary);
    box-shadow: 0 18px 42px rgba(18, 32, 51, .07);
}

.booking-info-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.booking-info-card::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -90px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, .2), transparent 68%);
}

.booking-kicker {
    display: inline-flex;
    padding: .45rem .75rem;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(29, 78, 216, .09);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.booking-info-card h3 {
    margin-top: 1.2rem;
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1.2;
}

.booking-info-card p {
    margin-top: 1rem;
    color: var(--text-light);
    line-height: 1.65;
}

.booking-info-list {
    margin-top: 2rem;
    display: grid;
    gap: .85rem;
}

.booking-info-list span {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--text);
    font-weight: 600;
}

.booking-info-list i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: rgba(29, 78, 216, .09);
}

.booking-main-card {
    padding: 1.4rem;
}

.zakazivanje-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.zak-btn {
    min-height: 86px;
    padding: 1rem;
    border-radius: 18px;
    font-size: .98rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    text-decoration: none;
    border: 1px solid var(--card-border);
    background: rgba(29, 78, 216, .055);
    color: var(--text);
}

.zak-btn i {
    font-size: 1.6rem;
    color: var(--accent);
}

.zak-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 78, 216, .55);
    box-shadow: 0 16px 32px rgba(29, 78, 216, .12);
}

/* ==========================
   BRZA PRIJAVA — FORMA
========================== */

.zakazivanje-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 1.5rem .4rem .3rem;
    margin-top: 1.2rem;
}

.zakazivanje-form h3 {
    text-align: left;
    font-size: 1.7rem;
    margin-bottom: .3rem;
}

.zakazivanje-form .sub-header {
    text-align: left;
    margin-bottom: 1.2rem;
}

.input-group {
    position: relative;
    margin-top: 1rem;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.3rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 45px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 1rem;
    transition: .25s;
}

.input-group select {
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
}

.booking-slots-wrap {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(29, 78, 216, .035);
}

.booking-slots-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: .85rem;
}

.booking-slots-head i {
    color: var(--accent);
    font-size: 1.25rem;
}

.booking-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
}

.booking-slot {
    min-height: 42px;
    border: 1px solid rgba(29, 78, 216, .28);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.booking-slot:hover:not(:disabled) {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(29, 78, 216, .13);
}

.booking-slot.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.booking-slot.booked {
    opacity: .55;
    color: var(--text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
    background: rgba(255, 255, 255, .035);
}

.booking-status {
    margin-top: .8rem;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.booking-status.error {
    color: #ef4444;
}

.booking-status.success {
    color: #22c55e;
}

/* Submit dugmad */

.zak-submit {
    margin-top: 1.4rem;
    width: 100%;
    padding: 1.1rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent);
    color: #fff;
}

.zak-submit:hover {
    background: var(--accent);
    box-shadow: 0 16px 32px rgba(29, 78, 216, .22);
}

.zak-submit:disabled {
    opacity: .6;
    cursor: wait;
    box-shadow: none;
}

.zak-submit.booking-submit {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--accent), #1ea4ff);
}

.service-popup {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(9, 11, 18, .62);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.service-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.service-popup-card {
    position: relative;
    width: min(520px, 100%);
    padding: 2rem;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background: var(--bg-secondary);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.service-popup-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.service-popup-card h3 {
    margin-top: 1rem;
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1.22;
}

.service-popup-card p {
    margin-top: .8rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-popup-actions {
    margin-top: 1.4rem;
    display: flex;
    gap: .8rem;
    align-items: center;
    flex-wrap: wrap;
}

.service-popup-later {
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.document-request-shell {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.48fr);
}

.parcel-finder {
    position: relative;
    margin: 1rem 0;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(29, 78, 216, .32);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(30, 164, 255, .13), transparent 38%),
        linear-gradient(135deg, rgba(29, 78, 216, .09), rgba(29, 78, 216, .025));
}

.parcel-finder::after {
    content: "";
    position: absolute;
    top: -32px;
    right: -28px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(30, 164, 255, .18);
    border-radius: 50%;
    pointer-events: none;
}

.parcel-finder-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.parcel-finder-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(30, 164, 255, .28);
    border-radius: 13px;
    background: rgba(29, 78, 216, .14);
    color: #3caeff;
    font-size: 1.35rem;
}

.parcel-finder-kicker {
    display: block;
    margin-bottom: .2rem;
    color: #4eb6ff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.parcel-finder h4 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
}

.parcel-finder-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.parcel-finder-steps li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: var(--text-light);
    font-size: .82rem;
    line-height: 1.45;
}

.parcel-finder-steps strong {
    color: var(--text);
}

.parcel-step-number {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.parcel-search-example {
    position: relative;
    z-index: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-light);
    font-size: .88rem;
}

.parcel-search-example i {
    color: var(--accent);
    font-size: 1.05rem;
}

.parcel-map-link {
    position: relative;
    z-index: 1;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-top: .75rem;
    padding: .7rem 1rem;
    border: 1px solid rgba(30, 164, 255, .38);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #168ee6);
    box-shadow: 0 10px 22px rgba(29, 78, 216, .2);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.parcel-map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(29, 78, 216, .28);
}

.parcel-map-link:focus-visible {
    outline: 3px solid rgba(30, 164, 255, .35);
    outline-offset: 3px;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

.hidden {
    display: none !important;
}

.textarea-group i {
    top: 1.35rem;
    transform: none;
}

.input-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 45px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    font: inherit;
    resize: vertical;
    min-height: 120px;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
}

.pickup-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(29, 78, 216, .035);
}

.property-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(29, 78, 216, .035);
}

.property-panel > strong {
    display: block;
    margin-bottom: .75rem;
    color: var(--text);
}

.property-panel .form-grid {
    margin-top: 1rem;
}

.pickup-panel > strong {
    display: block;
    margin-bottom: .75rem;
    color: var(--text);
}

.pickup-options {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.pickup-options label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem .9rem;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
}

.pickup-options input {
    accent-color: var(--accent);
}

.delivery-fields {
    margin-top: 1rem;
}

.delivery-note {
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: 14px;
    background: rgba(245, 158, 11, .08);
    color: var(--text);
    line-height: 1.5;
}

/* Viber dugme u formi */
.zak-submit.viber-alt {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(29, 78, 216, .45);
}

.zak-submit.viber-alt:hover {
    background: rgba(29, 78, 216, .08);
    box-shadow: none;
}

/* ==========================
   POPUP — USPEŠNO POSLATO
========================== */

.popup-success {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    animation: fadeIn .35s ease;
}

.popup-success.active {
    display: flex;
}

.popup-success .popup-box {

    background: #1f1f22;
    border: 2px solid #1ED760;
    box-shadow: 0 0 25px rgba(30, 215, 96, .45);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    animation: pop .4s ease;
}

.popup-box i {
    font-size: 3rem;
    color: #1ED760;
}

.popup-box p {
    margin-top: .6rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

@keyframes pop {
    from { transform: scale(.75); opacity: .3; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* FEJD IN ANIMACIJE */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove .8s ease forwards;
}

@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ============================
   SUCCESS POPUP
============================ */

.popup-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.45);

    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 999999;
}

.popup-success.active {
    opacity: 1;
    pointer-events: all;
}

.popup-success-box {
    background: #1f1f22;
    padding: 2rem 2.8rem;
    border-radius: 18px;

    border: 1px solid var(--accent);
    box-shadow: 0 0 28px rgba(29,78,216,0.55);

    text-align: center;
    animation: popupScale .35s ease;
}

.checkmark {
    font-size: 3.5rem;
    color: #3bff7f;
    margin-bottom: 0.6rem;

    text-shadow: 0 0 12px rgba(0,255,130,0.5);
}

.popup-success h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

@keyframes popupScale {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}


/* =============================
   INFO POPUP – PLAVI
============================= */
.info-popup-box {
    background: #18181b;
    border: 2px solid var(--accent);
    box-shadow: 0 0 35px rgba(29, 78, 216, 0.55);

    border-radius: 18px;
    padding: 2rem 2.4rem;
    text-align: left;
}

.info-popup-box h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.info-popup-box p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7rem;
    margin-bottom: .6rem;
}

.info-popup-box .popup-buttons {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
}

.info-popup-box .popup-btn {
    cursor: pointer;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    transition: .25s ease;
}

.info-popup-box .popup-btn.main {
    background: var(--accent);
    color: #fff;
}

.info-popup-box .popup-btn.main:hover {
    background: #1e40af;
}

.info-popup-box .popup-btn.secondary {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
}

.info-popup-box .popup-btn.secondary:hover {
    border-color: var(--accent);
    color: #fff;
}



/* ===== GOOGLE RECENZIJE – SLIDER ===== */
.reviews-section {
    margin-top: 4rem;
    text-align: center;
}

.reviews-slider {
    position: relative;
    height: 160px;
    margin-top: 2rem;
}

.review {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .6s ease, transform .6s ease;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(29,78,216,0.25);
}

.review.active {
    opacity: 1;
    transform: translateY(0);
}

.review-text {
    font-size: 1rem;
    line-height: 1.6rem;
    color: var(--text);
}

.review-author {
    margin-top: .8rem;
    display: block;
    font-weight: 600;
    color: var(--accent);
}

.reviews-dots {
    margin-top: 1rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
}

.reviews-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #666;
    cursor: pointer;
    transition: .3s ease;
}

.reviews-dots button.active {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(29,78,216,0.6);
}

.review-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: .7rem 1.4rem;
    border-radius: 12px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    transition: .3s;
}

.review-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(29,78,216,0.5);
}


.review-slider button,
.review-slider *:focus,
.review-slider *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}



/* =========================================
   NEW FOOTER — GeoMaster
========================================= */

.gm-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

.gm-footer-top {
    max-width: 1400px;
    margin: auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
}

.gm-footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text);
}

.gm-footer-col a {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    transition: .25s ease;
}

.gm-footer-col a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(29,78,216,.6);
}

.gm-footer-logo {
    width: 120px;
    margin-bottom: 1rem;
}

.gm-footer-text {
    color: var(--text-light);
    max-width: 260px;
}

.gm-socials a {
    margin-right: 12px;
    font-size: 1.5rem;
    color: var(--text-light);
    transition: .3s;
}

.gm-socials a:hover {
    color: var(--accent);
}

.gm-firm-info p {
    color: var(--text-light);
    margin-top: .4rem;
    font-size: .95rem;
}

.gm-reviews h4 {
    margin-bottom: 1rem;
}

.gm-review-box {
    background: var(--bg);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.45rem;
    box-shadow: 0 0 20px rgba(29,78,216,0.15);
}

.gm-review-author {
    display: block;
    margin-top: .8rem;
    color: var(--accent);
    font-weight: 600;
}

.gm-review-dots {
    margin-top: .8rem;
}

.gm-review-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #555;
}

.gm-review-dots .active {
    background: var(--accent);
}

.gm-review-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    transition: .25s ease;
}

.gm-review-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Bottom strip */
.gm-footer-bottom {
    text-align: center;
    padding: 1.4rem;
    font-size: .95rem;
    background: var(--bg-secondary);
    color: var(--text-light);
    border-top: 1px solid var(--card-border);
}

/* Responsive */
@media (max-width: 1100px) {
    .gm-footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gm-footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .gm-socials {
        justify-content: center;
        display: flex;
        gap: 1.4rem;
    }
}



/* ===========================
       FOOTER
=========================== */

.footer {
    background: #16181d;
    padding: 60px 0 20px;
    margin-top: 70px;
    color: #ccc;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.3rem;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #fff;
}

.footer-contact-title {
    margin-top: 20px;
}

.footer-contact p {
    line-height: 1.45;
}

.footer-contact a {
    display: inline;
}

.footer-col a {
    display: block;
    margin: 6px 0;
    color: #b6b6b6;
    transition: .3s;
}

.footer-col a:hover {
    color: #4d7cff;
}

/* Logo */
.footer-logo {
    width: 110px;
    margin-bottom: 10px;
}

.footer-desc {
    margin-bottom: 20px;
}

/* Social icons */
.footer-socials a {
    margin-right: 10px;
    font-size: 1.3rem;
    color: #fff;
}

.footer-socials a:hover {
    color: #4d7cff;
}

/* Google Review Card */
.reviews #review-card {
    background: #1f2229;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 60, 255, 0.2);
    min-height: 130px;
}

#review-text {
    font-size: 0.95rem;
    line-height: 1.4rem;
}

#review-author {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #4d7cff;
}

/* Dots under reviews */
.review-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
}

.review-dots span {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    transition: .3s;
}

.review-dots .active {
    background: #4d7cff;
}

/* Review button */
.review-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #4d7cff;
    border-radius: 8px;
    color: white !important;
    text-align: center;
}

/* Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* Responsive */
@media (max-width: 1000px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
}


/* FOOTER – Unapređena verzija */
.footer {
    background: var(--footer-bg);
    padding: 4rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 3rem;
}

/* Kolone */
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-col a,
.footer-col p {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.45rem;
    transition: 0.2s ease;
}

/* Hover link glow */
.footer-col a:hover {
    color: #2563ff;
    transform: translateX(3px);
}

/* Opis + logo */
.footer-logo {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-light);
    max-width: 260px;
    line-height: 1.4;
}

/* Social icons */
.footer-socials a {
    color: var(--text);
    font-size: 1.5rem;
    margin-right: 0.7rem;
    transition: 0.2s;
}

.footer-socials a:hover {
    color: #2563ff;
    text-shadow: 0 0 10px rgba(37,99,255,0.5);
}

/* Review box */
.review-box .review-card {
    background: var(--review-bg);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
    transition: 0.25s;
}

.review-box .review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(37,99,255,0.25);
}

.review-stars {
    color: #f6c343;
    font-size: 0.95rem;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.review-author {
    display: block;
    margin-top: 0.5rem;
    color: #7da2ff;
    font-size: 0.9rem;
}

.review-btn {
    display: inline-block;
    background: #2563ff;
    color: #fff;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.25s;
}

.review-btn:hover {
    background: #1b4cd0;
    box-shadow: 0 0 16px rgba(37,99,255,0.5);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    color: var(--text-light);
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.95rem;
}

.review-box {
    min-height: 160px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.review-box.show {
    opacity: 1;
}

.review-author {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #fff;
}




.lang-switch {
    position: absolute;
    top: 22px;
    right: 40px;
    z-index: 100000;
}

.lang-btn {
    min-width: 142px;
    background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 8px 11px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 12px 28px var(--soft-shadow);
    transition: border-color .25s ease, box-shadow .25s ease, color .25s ease, transform .25s ease;
    backdrop-filter: blur(12px);
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.lang-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-btn:hover,
.lang-switch.active .lang-btn {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 16px 34px rgba(29,78,216,.16);
    transform: translateY(-1px);
}

.lang-menu {
    position: absolute;
    margin-top: 8px;
    right: 0;
    background: color-mix(in srgb, var(--bg-secondary) 94%, transparent);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 7px;
    width: 176px;
    display: none;
    box-shadow: 0 18px 40px var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 11px;
    color: var(--text-light);
    font-size: .9rem;
    font-weight: 700;
    transition: .2s;
}

.lang-menu a:hover,
.lang-menu a.active {
    background: rgba(29,78,216,.1);
    color: var(--accent);
}

.lang-menu a.active::after {
    content: "✓";
    margin-left: auto;
    color: var(--accent);
    font-weight: 900;
}

.lang-switch.active .lang-menu {
    display: block;
}

body.light-mode .lang-btn {
    background: rgba(255,255,255,.92);
    border-color: rgba(29,78,216,.18);
}

body.light-mode .lang-menu {
    background: rgba(255,255,255,.96);
    border-color: rgba(29,78,216,.16);
}

/* ============================================
   DAY / NIGHT THEME FINISHES
============================================ */

body.light-mode .features .card,
body.light-mode .drop-item,
body.light-mode .contact-info,
body.light-mode .about-box,
body.light-mode .zakazivanje-form,
body.light-mode .sidebar-box,
body.light-mode .blog-card,
body.light-mode .team-card {
    box-shadow: 0 10px 30px rgba(18, 32, 51, 0.04);
}

body.light-mode .contact-info h3,
body.light-mode .contact-info h4 {
    color: var(--text) !important;
}

body.light-mode .cta-btn {
    color: var(--accent);
}

body.light-mode .popup-box,
body.light-mode .info-popup-box {
    background: var(--bg-secondary);
}

body.light-mode .popup-box h2,
body.light-mode .popup-box p,
body.light-mode .info-popup-box h2,
body.light-mode .info-popup-box p {
    color: var(--text);
}

body.light-mode .popup-btn.secondary {
    color: var(--text-light);
    border-color: var(--card-border);
}

/* ============================================
   USEFUL LINKS PAGE
============================================ */

.useful-links-page {
    position: relative;
    isolation: isolate;
    max-width: 1160px;
    min-height: 720px;
    padding-top: 4.5rem;
    padding-bottom: 6rem;
}

.useful-links-page::before,
.useful-links-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.useful-links-page::before {
    width: 520px;
    height: 520px;
    top: 80px;
    left: -260px;
    background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 68%);
    animation: usefulGlow 8s ease-in-out infinite alternate;
}

.useful-links-page::after {
    width: 440px;
    height: 440px;
    right: -220px;
    bottom: 10px;
    background: radial-gradient(circle, rgba(14, 165, 233, .11), transparent 68%);
    animation: usefulGlow 9s 1s ease-in-out infinite alternate-reverse;
}

.useful-links-page .header,
.useful-links-page .sub-header {
    animation: usefulIntro .7s both;
}

.useful-links-page .sub-header {
    animation-delay: .08s;
}

.useful-links-page .tabs {
    position: relative;
    max-width: 840px !important;
    gap: .45rem !important;
    padding: .5rem;
    border-radius: 999px;
    background: rgba(35, 37, 43, .72);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(18px);
    animation: usefulIntro .7s .16s both;
}

.useful-links-page .tab-btn {
    min-width: 210px;
    min-height: 58px;
    padding: .75rem 1.5rem !important;
    background: transparent !important;
    color: var(--text-light) !important;
    border: 0 !important;
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: -.01em;
    position: relative;
    overflow: hidden;
    transition: color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.useful-links-page .tab-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, #2563eb, #1d4ed8 60%, #0ea5e9);
    opacity: 0;
    transform: scale(.82);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.useful-links-page .tab-btn:hover,
.useful-links-page .tab-btn.active {
    background: transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(29, 78, 216, .25);
    transform: translateY(-2px);
}

.useful-links-page .tab-btn:hover::before,
.useful-links-page .tab-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

.useful-links-page .tab-btn:focus-visible {
    outline: 3px solid rgba(96, 165, 250, .8);
    outline-offset: 3px;
}

.useful-links-page .tabs-content {
    margin-top: 4rem;
}

.useful-links-page .links-grid {
    max-width: 980px !important;
    width: 100% !important;
    min-width: 0;
}

.useful-links-page .tab-content.is-entering {
    animation: usefulPanelIn .55s cubic-bezier(.2, .8, .2, 1) both;
}

.useful-links-page .link-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 2.4rem;
    align-items: center;
    min-height: 340px;
    padding: 3rem 3.2rem !important;
    background: linear-gradient(145deg, rgba(39, 41, 47, .96), rgba(28, 30, 36, .96)) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 30px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .04);
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .45s ease, box-shadow .45s ease;
}

.useful-links-page .link-card::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: -240px;
    left: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .25), transparent 70%);
    transition: transform .7s ease, opacity .7s ease;
    pointer-events: none;
}

.useful-links-page .link-card:hover {
    background: linear-gradient(145deg, rgba(41, 44, 52, .98), rgba(28, 31, 38, .98)) !important;
    border-color: rgba(59, 130, 246, .48) !important;
    box-shadow: 0 36px 90px rgba(0, 0, 0, .3), 0 0 50px rgba(29, 78, 216, .09);
    transform: translateY(-8px);
}

.useful-links-page .link-card:hover::before {
    transform: translate(60px, 55px) scale(1.18);
}

.useful-links-page .link-card h3,
.useful-links-page .link-card p,
.useful-links-page .link-card a {
    grid-column: 1;
}

.useful-links-page .link-card h3 {
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: .9rem;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1.25;
}

.useful-links-page .link-card h3 i {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #60a5fa;
    background: linear-gradient(145deg, rgba(37, 99, 235, .2), rgba(14, 165, 233, .08));
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .13), 0 12px 28px rgba(0, 0, 0, .16);
    animation: usefulIcon 3.2s ease-in-out infinite;
}

.useful-links-page .link-card p {
    color: var(--text-light) !important;
    max-width: 620px;
    margin: .4rem 0 1rem;
    font-size: 1.08rem;
    line-height: 1.75;
    min-width: 0;
    overflow-wrap: break-word;
}

.useful-links-page .qr-box {
    position: relative;
    overflow: hidden;
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0 !important;
    padding: 1.2rem;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(37, 99, 235, .12), rgba(15, 23, 42, .3));
    border: 1px solid rgba(96, 165, 250, .13);
    box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .18);
    animation: usefulFloat 4.5s ease-in-out infinite;
}

.useful-links-page .qr-box::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    height: 2px;
    top: 12%;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    box-shadow: 0 0 14px #38bdf8;
    opacity: .75;
    animation: usefulScan 3s ease-in-out infinite;
}

.useful-links-page .qr-box img {
    display: block;
    width: 174px !important;
    height: 174px !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.useful-links-page .btn-blue {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: fit-content;
    min-height: 52px;
    padding: .9rem 1.5rem !important;
    border-radius: 999px !important;
    background: var(--accent) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8 62%, #0ea5e9) !important;
    box-shadow: 0 16px 36px rgba(29, 78, 216, .28);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.useful-links-page .btn-blue::after {
    content: "\ea6c";
    font-family: "remixicon";
    font-weight: 400;
    font-size: 1.05rem;
}

.useful-links-page .btn-blue:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 36px rgba(29, 78, 216, .3);
}

body.light-mode .useful-links-page .link-card,
body.light-mode .useful-links-page .tab-btn {
    background: rgba(255, 255, 255, .92) !important;
}

body.light-mode .useful-links-page .tabs {
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 14px 34px rgba(18, 32, 51, .06);
}

body.light-mode .useful-links-page .tab-btn:hover,
body.light-mode .useful-links-page .tab-btn.active {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

body.light-mode .useful-links-page .link-card {
    box-shadow: 0 18px 46px rgba(18, 32, 51, .08);
}

@keyframes usefulIntro {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes usefulPanelIn {
    from { opacity: 0; transform: translateY(24px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes usefulGlow {
    to { transform: translate3d(45px, 20px, 0) scale(1.08); opacity: .7; }
}

@keyframes usefulFloat {
    50% { transform: translateY(-8px) rotate(.4deg); }
}

@keyframes usefulScan {
    0%, 100% { top: 12%; opacity: 0; }
    15%, 85% { opacity: .8; }
    50% { top: 86%; }
}

@keyframes usefulIcon {
    50% { transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(59, 130, 246, .35)); }
}

@media (max-width: 820px) {
    .useful-links-page { padding-top: 3rem; }
    .useful-links-page .tabs { border-radius: 24px; flex-direction: column; }
    .useful-links-page .tab-btn { width: 100%; min-width: 0; }
    .useful-links-page .tabs-content { margin-top: 2.5rem; }
    .useful-links-page .link-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem !important;
        text-align: center;
    }
    .useful-links-page .link-card h3 { justify-content: center; flex-direction: column; }
    .useful-links-page .link-card p { margin-left: auto; margin-right: auto; }
    .useful-links-page .btn-blue { margin: 0 auto; }
    .useful-links-page .qr-box { grid-column: 1; grid-row: auto; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
    .useful-links-page *,
    .useful-links-page::before,
    .useful-links-page::after { animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================
   REFERENCES FALLBACKS
============================================ */

.fade-slider {
    max-width: 980px;
    min-height: 360px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    box-shadow: 0 14px 36px rgba(18, 32, 51, .06);
}

.fade-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

.fade-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.fade-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade-caption {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 2;
    padding: .65rem 1rem;
    border-radius: 999px;
    background: rgba(18, 24, 32, .82);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.reference-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 35%, rgba(29, 78, 216, .18), transparent 40%),
        linear-gradient(145deg, rgba(29, 78, 216, .1), rgba(30, 164, 255, .035));
}

.reference-placeholder i {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: rgba(29, 78, 216, .11);
    font-size: 2.4rem;
}

.reference-placeholder small {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reference-placeholder span {
    max-width: 520px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}

.fade-slide.missing-reference .fade-caption {
    display: none;
}

.reference-card-slider {
    max-width: 1080px;
    min-height: 470px;
    padding: 1.2rem;
    background: linear-gradient(145deg, rgba(29, 78, 216, .06), rgba(255, 255, 255, .02));
}

.reference-card-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.reference-project-card {
    min-height: 315px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 28px rgba(18, 32, 51, .055);
}

.reference-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-project-card .fade-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    text-align: center;
}

.reference-project-card.missing-reference .fade-caption {
    display: none;
}

.reference-project-card .reference-placeholder {
    position: absolute;
    inset: 0;
}

.reference-showcase {
    position: relative;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.reference-showcase .fade-slide {
    display: none;
}

.reference-showcase-stage {
    position: relative;
    height: 390px;
    max-width: 1080px;
    margin: 0 auto;
    perspective: 1200px;
}

.reference-showcase-nav {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.reference-arrow {
    position: absolute;
    top: 42%;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(20, 24, 31, .84);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28), 0 0 0 5px rgba(29, 78, 216, .08);
    backdrop-filter: blur(10px);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.reference-arrow i {
    font-size: 1.9rem;
    line-height: 1;
}

.reference-arrow:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 78, 216, .75);
    background: rgba(29, 78, 216, .94);
}

.reference-arrow-prev {
    left: clamp(.35rem, 8vw, 5.5rem);
}

.reference-arrow-next {
    right: clamp(.35rem, 8vw, 5.5rem);
}

.reference-showcase .reference-project-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(520px, 54%);
    height: 360px;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(.78);
    transition: transform .75s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, filter .45s ease, box-shadow .45s ease;
    will-change: transform, opacity;
}

.reference-showcase .reference-project-card.is-active {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    box-shadow: 0 26px 70px rgba(29, 78, 216, .16);
}

.reference-showcase .reference-project-card.is-prev {
    z-index: 2;
    opacity: .58;
    transform: translateX(-112%) scale(.82) rotateY(8deg);
    filter: saturate(.9);
}

.reference-showcase .reference-project-card.is-next {
    z-index: 2;
    opacity: .58;
    transform: translateX(12%) scale(.82) rotateY(-8deg);
    filter: saturate(.9);
}

.reference-showcase .reference-project-card.is-hidden {
    opacity: 0;
    transform: translateX(-50%) scale(.72);
}

.reference-showcase .reference-project-card .reference-placeholder {
    background:
        radial-gradient(circle at 50% 28%, rgba(29, 78, 216, .20), transparent 36%),
        linear-gradient(145deg, rgba(29, 78, 216, .09), rgba(255, 255, 255, .04));
}

.reference-showcase-dots {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-top: .65rem;
}

.reference-showcase-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(29, 78, 216, .22);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.reference-showcase-dots button.active {
    width: 30px;
    background: var(--accent);
}

.reference-map-section {
    padding-top: 2.5rem;
}

.reference-map-row {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
    margin-top: 3rem;
}

.reference-map-row.reverse {
    grid-template-columns: minmax(420px, 1.18fr) minmax(280px, .82fr);
}

.reference-map-copy {
    color: var(--text);
}

.reference-map-copy span {
    display: inline-flex;
    margin-bottom: .9rem;
    padding: .42rem .75rem;
    border-radius: 999px;
    background: rgba(29, 78, 216, .10);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reference-map-copy h3 {
    max-width: 620px;
    margin-bottom: .9rem;
    color: var(--text);
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    line-height: 1.16;
}

.reference-map-copy p {
    max-width: 660px;
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.75;
}

.reference-map-figure {
    position: relative;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: var(--bg-secondary);
    box-shadow: 0 22px 54px rgba(18, 32, 51, .10);
}

.reference-map-figure img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.reference-video-section {
    padding-top: 0;
}

.reference-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    max-width: 940px;
    margin: 2.4rem auto 0;
}

.reference-video-card {
    min-height: 260px;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(29, 78, 216, .10), rgba(255, 255, 255, .035));
    box-shadow: 0 18px 42px rgba(18, 32, 51, .08);
}

.reference-video-frame {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(29, 78, 216, .24), transparent 38%),
        linear-gradient(145deg, rgba(17, 24, 39, .74), rgba(17, 24, 39, .92));
}

.reference-video-frame i {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.9rem;
    background: rgba(29, 78, 216, .82);
    box-shadow: 0 16px 40px rgba(29, 78, 216, .28);
}

.reference-video-card h3 {
    margin: 1rem 1.1rem .25rem;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.25;
}

.reference-video-card p {
    margin: 0 1.1rem 1.1rem;
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.45;
}

.pointcloud-video-card {
    max-width: 1080px;
    margin: 2.6rem auto 0;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(29, 78, 216, .12), rgba(255, 255, 255, .035)),
        var(--bg-secondary);
    box-shadow: 0 26px 70px rgba(18, 32, 51, .12);
}

.pointcloud-video-frame {
    position: relative;
    overflow: hidden;
    background: #101216;
    aspect-ratio: 16 / 9;
}

.pointcloud-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pointcloud-video-copy {
    position: relative;
    margin: -1.25rem 1.25rem 1.25rem;
    padding: 1.35rem 1.45rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(29, 78, 216, .16), rgba(255, 255, 255, .045)),
        rgba(18, 24, 32, .88);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
}

.pointcloud-video-copy span {
    display: inline-flex;
    margin-bottom: .75rem;
    padding: .42rem .78rem;
    border-radius: 999px;
    border: 1px solid rgba(75, 136, 255, .30);
    background: rgba(29, 78, 216, .18);
    color: #8ab4ff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pointcloud-video-copy h3 {
    margin-bottom: .65rem;
    color: var(--text);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.2;
}

.pointcloud-video-copy p {
    max-width: 860px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   SERVICES ACCORDION
============================================ */

.drop-body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.drop-item.active .drop-body {
    padding-top: 1.25rem !important;
    padding-bottom: 1.45rem !important;
}

.services-page {
    max-width: 1040px;
    padding-top: 3.5rem;
}

.services-page .sub-header {
    margin-bottom: 2.4rem;
}

.services-page .drop-item {
    margin: 0 auto 1rem;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(18, 32, 51, 0.035);
}

.services-page .drop-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    column-gap: 1rem;
    min-height: 76px;
    padding: .85rem 1.2rem;
    text-align: left;
    font-size: 1.08rem;
    font-weight: 500;
}

.services-page .drop-header > i:not(.arrow) {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: rgba(29, 78, 216, .09);
}

.services-page .drop-header .arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    justify-self: end;
    border-radius: 50%;
    color: var(--text-light);
    background: rgba(29, 78, 216, .05);
}

.services-page .drop-item.active {
    border-color: rgba(29, 78, 216, .5);
    box-shadow: 0 12px 32px rgba(29, 78, 216, .12);
}

.services-page .drop-item.active .drop-header {
    color: var(--accent);
}

.services-page .drop-body {
    margin-top: 0;
    border-top: 1px solid transparent;
    color: var(--text-light);
    line-height: 1.65;
}

.services-page .drop-item.active .drop-body {
    margin-top: 0;
    border-top-color: var(--card-border);
    background: rgba(29, 78, 216, .025);
}

.services-page .drop-item.active .drop-body {
    max-height: none !important;
}

.services-page .drop-body ul {
    margin: 0;
    padding-left: 1.25rem;
}

.services-page .drop-body li {
    margin-bottom: .45rem !important;
    padding-left: .25rem;
}

.services-page .drop-body p {
    margin-bottom: .5rem;
}

body.light-mode .services-page .drop-item {
    box-shadow: 0 12px 30px rgba(18, 32, 51, .045);
}

.faq-page {
    max-width: 980px;
    padding-top: 3.5rem;
}

.faq-page .sub-header {
    margin-bottom: 2.4rem;
}

.faq-wrapper {
    display: grid;
    gap: 1rem;
}

.faq-page .drop-item {
    margin: 0;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(29, 78, 216, .055), rgba(255, 255, 255, .025)),
        var(--bg-secondary);
    box-shadow: 0 8px 24px rgba(18, 32, 51, .04);
}

.faq-page .drop-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    column-gap: 1rem;
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: .85rem 1.2rem;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.faq-page .drop-header > span {
    min-width: 0;
    overflow-wrap: break-word;
}

.faq-page .drop-header > i:not(.arrow) {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: rgba(29, 78, 216, .09);
    font-size: 1.35rem;
}

.faq-page .drop-header .arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    justify-self: end;
    border-radius: 50%;
    color: var(--text-light);
    background: rgba(29, 78, 216, .05);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.faq-page .drop-item.active {
    border-color: rgba(29, 78, 216, .5);
    box-shadow: 0 12px 32px rgba(29, 78, 216, .12);
}

.faq-page .drop-item.active .drop-header {
    color: var(--accent);
}

.faq-page .drop-item.active .drop-header .arrow {
    color: #fff;
    background: var(--accent);
}

.faq-page .drop-body {
    margin-top: 0;
    border-top: 1px solid transparent;
    color: var(--text-light);
    line-height: 1.7;
    overflow: hidden;
}

.faq-page .drop-item.active .drop-body {
    margin-top: 0;
    border-top-color: var(--card-border);
    background: rgba(29, 78, 216, .025);
    max-height: none !important;
}

.faq-page .drop-body p {
    margin: 0 0 .7rem;
    max-width: 780px;
}

.faq-page .drop-body p:last-child {
    margin-bottom: 0;
}

body.light-mode .faq-page .drop-item {
    box-shadow: 0 12px 30px rgba(18, 32, 51, .045);
}

@media (max-width: 600px) {
    .services-page .drop-header,
    .faq-page .drop-header {
        grid-template-columns: 44px minmax(0, 1fr) 32px;
        column-gap: .7rem;
        min-height: 68px;
        padding: .75rem;
        font-size: .98rem;
    }

    .services-page .drop-header > i:not(.arrow),
    .faq-page .drop-header > i:not(.arrow) {
        width: 40px;
        height: 40px;
        font-size: 1.18rem;
    }

    .faq-page {
        padding-top: 2.5rem;
    }

    .faq-page .sub-header {
        margin-bottom: 1.8rem;
    }

    .faq-page .drop-body {
        font-size: .95rem;
    }
}

/* ============================================
   MOBILE POLISH
============================================ */

@media (max-width: 1250px) {
    nav {
        left: 0;
        transform: none;
        max-width: 100%;
        padding: 1rem 1.3rem;
    }

    .nav-links {
        display: none !important;
    }

    .burger {
        display: block !important;
    }

    .lang-switch {
        right: 78px;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 82px !important;
    }

    nav {
        width: 100%;
        padding: .8rem 1rem;
    }

    .nav-logo {
        max-width: 82px;
    }

    .lang-switch {
        top: 18px;
        right: 68px;
    }

    .lang-btn {
        min-width: 126px;
        padding: 6px 9px;
        font-size: .78rem;
    }

    .mobile-menu {
        width: min(82%, 330px);
    }

    .container {
        max-width: 100%;
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    section .header {
        font-size: 2rem;
        line-height: 1.15;
    }

    .sub-header {
        font-size: .96rem;
        line-height: 1.55;
    }

    .about-box,
    .contact-info,
    .features .card,
    .drop-item,
    .link-card,
    .team-card {
        border-radius: 16px;
    }

    .contact-grid {
        gap: 1.3rem;
    }

    .partners-wrapper {
        margin-top: 2rem;
    }

    .fade-slider {
        min-height: 340px;
        border-radius: 18px;
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
        text-align: left;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 76px !important;
        overflow-x: hidden;
    }

    section .header {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .partners-section .header,
    .zakazivanje-page .header {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .partners-section .sub-header,
    .zakazivanje-page .sub-header {
        max-width: 320px;
        overflow-wrap: break-word;
        word-break: normal;
        padding-left: .6rem;
        padding-right: .6rem;
    }

    .zakazivanje-page {
        overflow: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .booking-shell,
    .booking-info-card,
    .booking-main-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .booking-shell {
        width: min(100%, 350px);
        margin-left: auto;
        margin-right: auto;
    }

    .booking-info-card h3,
    .booking-info-card p,
    .booking-info-list span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .booking-info-card {
        overflow: hidden;
    }

    .burger {
        font-size: 1.75rem;
    }

    .mobile-menu a {
        font-size: 1.08rem;
    }

    .lang-switch {
        right: 56px;
    }

    .lang-btn {
        min-width: 112px;
        padding-inline: 8px;
    }

    header.container {
        padding-top: 2.5rem;
    }

    header .content h1,
    .parallax-title {
        max-width: 100%;
        font-size: 1.72rem;
        line-height: 2.15rem;
        overflow-wrap: anywhere;
    }

    header .image img {
        max-width: 210px;
    }

    .features,
    .partners-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-section {
        margin-top: 2rem;
    }

    .team-photo {
        height: 220px;
    }

    .useful-links-page .tabs {
        margin-top: 2rem !important;
        display: grid !important;
        grid-template-columns: 1fr;
        max-width: 320px !important;
        width: 100% !important;
        border-radius: 24px;
    }

    .useful-links-page .tab-btn {
        min-width: 0;
        text-align: center;
        padding: .75rem 1rem !important;
    }

    .useful-links-page .tabs-content {
        margin-top: 1.8rem !important;
        width: 100% !important;
        min-width: 0;
    }

    .useful-links-page,
    .useful-links-page .links-grid,
    .useful-links-page .tab-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }

    .useful-links-page .link-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.2rem !important;
        max-width: 100%;
        overflow: hidden;
    }

    .useful-links-page .link-card h3,
    .useful-links-page .link-card p,
    .useful-links-page .link-card a,
    .useful-links-page .qr-box {
        grid-column: 1;
        grid-row: auto;
    }

    .useful-links-page .link-card h3 {
        align-items: flex-start;
        font-size: 1.05rem;
        line-height: 1.35;
        min-width: 0;
    }

    .useful-links-page .link-card p {
        max-width: 100%;
        font-size: .95rem !important;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .useful-links-page .btn-blue {
        width: 100%;
        min-height: 50px;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding-left: .8rem !important;
        padding-right: .8rem !important;
    }

    .useful-links-page .qr-box {
        justify-self: center;
        width: fit-content;
        max-width: 100%;
    }

    .fade-slider {
        min-height: 280px;
        margin-top: 2rem;
    }

    .reference-card-slider {
        min-height: 430px;
        padding: .85rem;
        overflow: hidden;
    }

    .reference-card-grid {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .reference-project-card {
        min-height: 230px;
    }

    .reference-showcase-stage {
        height: 330px;
        overflow: hidden;
    }

    .reference-arrow {
        top: 38%;
        width: 42px;
        height: 42px;
    }

    .reference-arrow i {
        font-size: 1.65rem;
    }

    .reference-arrow-prev {
        left: .35rem;
    }

    .reference-arrow-next {
        right: .35rem;
    }

    .reference-showcase .reference-project-card {
        width: min(320px, 86%);
        height: 300px;
    }

    .reference-showcase .reference-project-card.is-prev {
        opacity: .18;
        transform: translateX(-102%) scale(.72);
    }

    .reference-showcase .reference-project-card.is-next {
        opacity: .18;
        transform: translateX(2%) scale(.72);
    }

    .reference-map-section {
        padding-top: 1rem;
    }

    .reference-map-row,
    .reference-map-row.reverse {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 1.55rem;
        overflow: hidden;
        border: 1px solid var(--card-border);
        border-radius: 18px;
        background: rgba(39, 39, 42, .58);
        box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
    }

    .reference-map-row .reference-map-figure,
    .reference-map-row.reverse .reference-map-figure {
        order: 1;
    }

    .reference-map-row .reference-map-copy,
    .reference-map-row.reverse .reference-map-copy {
        order: 2;
    }

    .reference-map-copy {
        padding: 1.05rem 1rem 1.2rem;
    }

    .reference-map-copy span {
        margin-bottom: .55rem;
        padding: .34rem .62rem;
        font-size: .67rem;
        line-height: 1.2;
        letter-spacing: .06em;
    }

    .reference-map-copy h3 {
        margin-bottom: .55rem;
        font-size: 1.22rem;
        line-height: 1.28;
    }

    .reference-map-copy p {
        font-size: .92rem;
        line-height: 1.55;
    }

    .reference-map-figure {
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #dfe5e8;
    }

    .reference-map-figure img {
        height: auto;
        min-height: 0;
        object-fit: contain;
    }

    .reference-video-section {
        padding-top: 1.2rem;
    }

    .reference-video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.6rem;
    }

    .reference-video-card {
        min-height: 230px;
        border-radius: 16px;
    }

    .reference-video-frame {
        min-height: 165px;
    }

    .pointcloud-video-card {
        margin-top: 1.6rem;
        border-radius: 18px;
    }

    .pointcloud-video-frame {
        aspect-ratio: 4 / 3;
    }

    .pointcloud-video-copy {
        margin: -.7rem .8rem .8rem;
        padding: 1rem 1rem 1.15rem;
        border-radius: 15px;
    }

    .pointcloud-video-copy span {
        margin-bottom: .55rem;
        padding: .34rem .62rem;
        font-size: .67rem;
        line-height: 1.2;
        letter-spacing: .06em;
    }

    .pointcloud-video-copy h3 {
        margin-bottom: .55rem;
        font-size: 1.22rem;
        line-height: 1.28;
    }

    .pointcloud-video-copy p {
        font-size: .92rem;
        line-height: 1.55;
    }

    .booking-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .booking-info-card,
    .booking-main-card {
        border-radius: 20px;
    }

    .booking-info-card {
        padding: 1.4rem;
    }

    .booking-info-card h3 {
        font-size: 1.35rem;
    }

    .zakazivanje-buttons {
        grid-template-columns: 1fr;
    }

    .zakazivanje-form {
        padding-left: 0;
        padding-right: 0;
    }

    .booking-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fade-caption {
        left: .8rem;
        right: .8rem;
        bottom: .8rem;
        text-align: center;
        border-radius: 14px;
    }

    .reference-placeholder i {
        width: 68px;
        height: 68px;
        font-size: 2rem;
    }

    .reference-placeholder small {
        font-size: .7rem;
    }

    .reference-placeholder span {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 1.2rem 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.7rem;
    }

    .footer-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-socials {
        display: flex;
        justify-content: center;
        gap: .7rem;
    }

    .footer-socials a {
        margin-right: 0;
    }

    .cookie-banner {
        width: calc(100% - 1.4rem);
        bottom: 80px;
        flex-direction: column;
        text-align: center;
        padding: .9rem 1rem;
    }

    .theme-toggle {
        font-size: 0;
        width: 48px;
        height: 48px;
        justify-content: center;
        padding: 0;
    }

    .theme-toggle i {
        font-size: 1.25rem;
    }
}

/* ============================================
   GLOBAL MOBILE SAFETY OVERRIDES
============================================ */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body,
.container,
section,
header,
footer,
nav,
.mobile-menu,
.features,
.card,
.drop-item,
.drop-header,
.drop-body,
.about-box,
.contact-info,
.team-card,
.partner-card,
.link-card,
.blog-card,
.reference-project-card,
.booking-info-card,
.booking-main-card,
.footer-col {
    min-width: 0;
}

h1,
h2,
h3,
h4,
p,
a,
span,
li,
button,
input,
.header,
.sub-header,
.drop-header,
.fade-caption,
.review-card,
.footer-col {
    overflow-wrap: break-word;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
}

@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        overflow-x: clip;
    }

    main,
    section,
    header,
    footer {
        max-width: 100vw;
    }

    nav {
        min-height: 72px;
        gap: .8rem;
    }

    .nav-logo {
        flex: 0 0 auto;
    }

    .burger {
        margin-left: auto;
    }

    .lang-switch {
        top: 17px;
        right: 64px;
    }

    .lang-btn {
        min-width: 120px;
        max-width: 136px;
        min-height: 38px;
        padding: 7px 10px;
        font-size: .8rem;
    }

    .lang-current {
        min-width: 0;
    }

    .lang-menu {
        width: 168px;
    }

    .mobile-menu {
        width: min(84vw, 330px);
        padding: 5.5rem 1.35rem 2rem;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .mobile-menu li {
        margin: .85rem 0;
    }

    .mobile-menu a {
        display: inline-flex;
        max-width: 100%;
        font-size: 1.08rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 600px) {
    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    section,
    header {
        max-width: 100%;
    }

    section .header,
    .header,
    header .content h1,
    .parallax-title {
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.18;
        letter-spacing: 0;
        text-wrap: balance;
    }

    .sub-header,
    header .content p,
    .drop-body,
    .features .card p,
    .team-card p,
    .about-box p,
    .contact-info p,
    .footer-col p {
        max-width: 100%;
        font-size: .95rem;
        line-height: 1.55;
    }

    .features .card,
    .drop-item,
    .about-box,
    .contact-info,
    .team-card,
    .partner-card,
    .link-card,
    .blog-card,
    .reference-project-card,
    .booking-info-card,
    .booking-main-card {
        max-width: 100%;
        overflow: hidden;
    }

    .drop-header {
        grid-template-columns: 42px minmax(0, 1fr) 28px;
        gap: .7rem;
        align-items: center;
        font-size: .98rem;
        line-height: 1.25;
    }

    .drop-header > span,
    .drop-header > strong,
    .drop-header h3,
    .drop-header p {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .btn,
    .cta-btn,
    .zak-btn,
    .zak-submit,
    .review-btn,
    .useful-links-page .btn-blue {
        max-width: 100%;
        white-space: normal;
        line-height: 1.2;
    }

    .input-group input,
    .input-group select {
        min-width: 0;
        font-size: 16px;
    }

    .lang-switch {
        right: 54px;
    }

    .lang-btn {
        min-width: 104px;
        max-width: 118px;
        height: 36px;
        padding: 6px 8px;
        gap: 5px;
        font-size: .76rem;
    }

    .lang-menu {
        width: 156px;
        right: -4px;
    }

    .lang-menu a {
        padding: 9px 10px;
        font-size: .84rem;
    }

    .footer,
    .footer-container,
    .footer-grid {
        max-width: 100%;
        overflow: hidden;
    }

    .footer-grid,
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .footer-col a,
    .footer-col p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .partners-section,
    .partners-wrapper,
    .partners-track {
        max-width: 100%;
    }

    .partners-section,
    .partners-wrapper {
        overflow: hidden;
    }

    .partners-wrapper {
        margin-top: 1.6rem;
        padding: .75rem 0 1.1rem;
    }

    .partners-track {
        width: max-content;
        max-width: none;
        gap: .85rem;
        animation-duration: 24s;
    }

    .partner-card {
        flex: 0 0 138px;
        width: 138px;
        min-width: 138px;
        height: 82px;
        padding: .65rem;
        border-radius: 12px;
    }

    .partner-card img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 112px;
        max-height: 62px;
        object-fit: contain;
        filter: none;
    }
}

@media (max-width: 600px) {
    .form-grid.two,
    .document-request-shell {
        grid-template-columns: 1fr;
    }

    .service-popup-card {
        padding: 1.5rem;
    }

    .service-popup-actions .cta-btn,
    .service-popup-later {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .parcel-finder {
        padding: 1rem;
    }

    .parcel-finder-steps {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .parcel-finder-steps li {
        font-size: .86rem;
    }

    .parcel-map-link {
        width: 100%;
    }
}
/* Blog — stranica u izradi */
.blog-construction {
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 6rem;
    text-align: center;
}

.blog-construction h1 {
    max-width: 760px;
    margin: .7rem auto 1rem;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
}

.blog-construction > p:not(.blog-status) {
    max-width: 690px;
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.blog-status {
    margin-top: 2rem;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.survey-animation {
    position: relative;
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.survey-animation i {
    position: relative;
    z-index: 3;
    font-size: 3.2rem;
    animation: surveyPulse 2s ease-in-out infinite;
}

.survey-ring,
.survey-cross,
.survey-scan {
    position: absolute;
    display: block;
}

.survey-ring {
    inset: 22px;
    border: 1px solid rgba(29, 78, 216, .55);
    border-radius: 50%;
    animation: surveyRing 2.4s ease-out infinite;
}

.survey-ring-two {
    animation-delay: 1.2s;
}

.survey-cross-horizontal {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(29, 78, 216, .7), transparent);
}

.survey-cross-vertical {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(transparent, rgba(29, 78, 216, .7), transparent);
}

.survey-scan {
    inset: 14px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 82%, rgba(29, 78, 216, .32) 100%);
    animation: surveyScan 3s linear infinite;
}

.blog-home-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 2rem;
    padding: .8rem 1.35rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-home-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(29, 78, 216, .35);
}

@keyframes surveyScan {
    to { transform: rotate(360deg); }
}

@keyframes surveyRing {
    0% { opacity: 0; transform: scale(.55); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.35); }
}

@keyframes surveyPulse {
    50% { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(29, 78, 216, .7)); }
}

@media (prefers-reduced-motion: reduce) {
    .survey-animation * { animation: none !important; }
}

@media (max-width: 600px) {
    .blog-construction { min-height: 62vh; padding-top: 3rem; padding-bottom: 4rem; }
    .survey-animation { width: 120px; height: 120px; }
}

/* Mobilna zaštita za stranicu Korisni linkovi */
@media (max-width: 820px) {
    .useful-links-page {
        width: 100% !important;
        max-width: 100vw !important;
        min-height: 0;
        margin-inline: 0 !important;
        padding-left: max(1rem, env(safe-area-inset-left)) !important;
        padding-right: max(1rem, env(safe-area-inset-right)) !important;
        overflow: hidden;
        overflow: clip;
    }

    .useful-links-page::before,
    .useful-links-page::after {
        max-width: 80vw;
        max-height: 80vw;
    }

    .useful-links-page .header,
    .useful-links-page .sub-header,
    .useful-links-page .tabs-wrapper,
    .useful-links-page .tabs-content,
    .useful-links-page .tabs,
    .useful-links-page .links-grid,
    .useful-links-page .tab-content,
    .useful-links-page .link-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0;
        margin-right: 0;
    }

    .useful-links-page .tabs-wrapper,
    .useful-links-page .tabs-content {
        overflow: hidden;
    }

    .useful-links-page .tab-btn,
    .useful-links-page .btn-blue {
        max-width: 100%;
        min-width: 0 !important;
        white-space: normal;
    }

    .useful-links-page .link-card {
        overflow: hidden;
    }

    .useful-links-page .link-card::before {
        width: 240px;
        height: 240px;
        left: -100px;
        top: -150px;
    }
}

/* Keep the sidebar polish above older responsive fallbacks in the cascade. */
@media (max-width: 900px) {
    .mobile-menu {
        width: min(88vw, 370px);
        padding: calc(5.8rem + env(safe-area-inset-top)) 1rem calc(5.5rem + env(safe-area-inset-bottom));
    }

    .mobile-menu ul {
        gap: .25rem;
    }

    .mobile-menu li {
        margin: 0;
    }

    .mobile-menu a {
        display: flex;
        width: 100%;
        max-width: none;
        font-size: 1rem;
    }

    .mobile-menu .svoj-btn {
        color: #fff !important;
    }

    .mobile-menu li:last-child .svoj-btn {
        color: var(--accent) !important;
    }
}

@media (max-width: 600px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        display: grid;
        place-items: center;
        gap: 0;
    }
}
