/* Biomarker – stil sajta
   Paleta je izvedena iz bojenja preparata: hematoksilin (plavo-ljubičasta),
   DAB (smeđa) i ćilibar iz logotipa, na hladnoj beloj boji predmetnog stakla. */

:root {
    --staklo: #f6f7f9;
    --belo: #ffffff;
    --mastilo: #1d2033;
    --hematoksilin: #33366b;
    --dab: #7a3e0e;
    --cilibar: #e8a23a;
    --siva: #5b5f73;
    --linija: #d9dce4;

    --serif: "Spectral", Georgia, "Times New Roman", serif;
    --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --sirina: 72rem;
    --zaglavlje: 4.5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--zaglavlje);
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--mastilo);
    background: var(--staklo);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--dab); text-underline-offset: 0.2em; }
a:hover { color: var(--mastilo); }

:focus-visible {
    outline: 3px solid var(--cilibar);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.omotac {
    width: 100%;
    max-width: var(--sirina);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.preskoci {
    position: absolute;
    left: 1rem; top: -3rem;
    background: var(--mastilo);
    color: var(--belo);
    padding: 0.5rem 1rem;
    z-index: 100;
}
.preskoci:focus { top: 1rem; }

/* Zaglavlje */

.zaglavlje {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 247, 249, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--linija);
}

.zaglavlje-red {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--zaglavlje);
}

.brend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--mastilo);
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
}
.brend img { border-radius: 50%; }

.meni {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.meni a {
    color: var(--mastilo);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
}
.meni a:hover { color: var(--dab); }

.meni .meni-tel {
    border: 1.5px solid var(--mastilo);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.meni .meni-tel:hover { background: var(--mastilo); color: var(--belo); }

.meni-dugme {
    display: none;
    background: none;
    border: 0;
    padding: 0.75rem;
    cursor: pointer;
}

.meni-ikona,
.meni-ikona::before,
.meni-ikona::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mastilo);
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}
.meni-ikona::before, .meni-ikona::after { content: ""; position: absolute; }
.meni-ikona::before { top: -7px; }
.meni-ikona::after { top: 7px; }

.meni-dugme[aria-expanded="true"] .meni-ikona { background: transparent; }
.meni-dugme[aria-expanded="true"] .meni-ikona::before { transform: translateY(7px) rotate(45deg); }
.meni-dugme[aria-expanded="true"] .meni-ikona::after { transform: translateY(-7px) rotate(-45deg); }

/* Uvod */

.uvod {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
    overflow: hidden;
}

.uvod-red {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.uvod-mesto {
    color: var(--dab);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.uvod h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.2rem);
    max-width: 14ch;
    margin-bottom: 1.5rem;
}

.uvod-opis {
    font-size: 1.15rem;
    color: var(--siva);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.uvod-akcije {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.dugme {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dugme-glavno { background: var(--mastilo); color: var(--belo); }
.dugme-glavno:hover { background: var(--hematoksilin); color: var(--belo); }

.dugme-sporedno { color: var(--mastilo); box-shadow: inset 0 0 0 1.5px var(--linija); }
.dugme-sporedno:hover { box-shadow: inset 0 0 0 1.5px var(--mastilo); color: var(--mastilo); }

.uvod-cinjenice {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--linija);
}
.uvod-cinjenice dt { font-size: 0.85rem; color: var(--siva); }
.uvod-cinjenice dd { margin: 0; font-weight: 600; }

/* Logo u "vidnom polju mikroskopa" */
.okular {
    margin: 0;
    justify-self: center;
    width: min(100%, 30rem);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: clamp(10px, 1.6vw, 18px);
    background: var(--mastilo);
    box-shadow:
        0 0 0 clamp(6px, 1vw, 10px) var(--staklo),
        0 0 0 calc(clamp(6px, 1vw, 10px) + 1px) var(--linija),
        0 30px 60px -20px rgba(29, 32, 51, 0.45);
}
.okular img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: izostravanje 1.4s ease-out both;
}

@keyframes izostravanje {
    from { filter: blur(14px); transform: scale(1.06); }
    to { filter: blur(0); transform: scale(1); }
}

/* Sekcije */

.sekcija { padding: clamp(4rem, 9vw, 7rem) 0; }
.sekcija-tonirana { background: var(--belo); border-block: 1px solid var(--linija); }

/* O nama */

.o-nama {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem 4rem;
}

.o-nama-tekst { max-width: 40rem; }

.o-nama-tekst .istaknuto {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.3vw, 1.7rem);
    line-height: 1.4;
    margin-bottom: 1.75rem;
}

.o-nama-tekst p:not(.istaknuto) { color: var(--siva); line-height: 1.7; }

.o-nama-tekst .potpis {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dab);
    margin-top: 1.5rem;
}

/* Usluge */

.usluge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2.5rem;
    border-top: 1px solid var(--linija);
}

.usluge article {
    padding: 1.75rem 1.75rem 1.75rem 0;
    border-bottom: 1px solid var(--linija);
}
.usluge article:not(:nth-child(3n + 1)) {
    padding-left: 1.75rem;
    border-left: 1px solid var(--linija);
}

.usluge h3 { margin-bottom: 0.6rem; }
.usluge p { color: var(--siva); margin: 0; font-size: 1rem; }

/* Cenovnik */

.cenovnik-zaglavlje {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.napomena { color: var(--siva); margin: 0.5rem 0 0; }

.pretraga input {
    width: min(100vw - 3rem, 22rem);
    font: inherit;
    font-size: 1rem;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid var(--linija);
    border-radius: 999px;
    background: var(--belo);
    color: var(--mastilo);
}
.pretraga input:focus { outline: none; border-color: var(--mastilo); }
.pretraga input::placeholder { color: #8a8ea0; }

.cene {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 4rem;
    border-top: 1px solid var(--mastilo);
}

.cene li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--linija);
    break-inside: avoid;
}
.cene li[hidden] { display: none; }

.cene li span:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}
.cene li span:last-child::after {
    content: " RSD";
    font-weight: 400;
    font-size: 0.85em;
    color: var(--siva);
}

.bez-rezultata { margin-top: 1.5rem; color: var(--siva); }

/* Kontakt */

.sekcija-tamna {
    background: var(--mastilo);
    color: #e7e8ef;
}
.sekcija-tamna h2 { color: var(--belo); }
.sekcija-tamna a { color: var(--cilibar); }
.sekcija-tamna a:hover { color: var(--belo); }

.kontakt {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem 5rem;
    align-items: start;
}

.kontakt-uvod { color: #b8bacb; margin: 1rem 0 2rem; font-size: 1.1rem; }

.kontakt-lista { margin: 0; }
.kontakt-lista > div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.kontakt-lista dt { color: #9a9db2; font-size: 0.95rem; }
.kontakt-lista dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

.kontakt-mapa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.kontakt-foto { margin: 0; }
.kontakt-foto img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
}
.kontakt-foto figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #9a9db2;
}

.mapa {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
}
.mapa { background: #2a2e45; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Podnožje */

.podnozje {
    background: var(--mastilo);
    color: #9a9db2;
    font-size: 0.92rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.podnozje-red {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.75rem;
}
.podnozje p { margin: 0; }
.podnozje a { color: #c9cbd8; }

/* Tablet */

@media (max-width: 960px) {
    .usluge { grid-template-columns: repeat(2, 1fr); }
    .usluge article:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
    .usluge article:nth-child(2n) { padding-left: 1.75rem; border-left: 1px solid var(--linija); }

    .kontakt { grid-template-columns: 1fr; }
}

/* Mobilni */

@media (max-width: 900px) {
    .meni-dugme { display: block; }

    .meni {
        position: absolute;
        top: var(--zaglavlje);
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
        background: var(--staklo);
        border-bottom: 1px solid var(--linija);
        display: none;
    }
    .meni.otvoren { display: flex; }
    .meni a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--linija); font-size: 1.05rem; }
    .meni .meni-tel { margin-top: 1rem; width: auto; border-bottom: 1.5px solid var(--mastilo); padding: 0.6rem 1.2rem; }

    .uvod-red { grid-template-columns: 1fr; }
    .okular { order: -1; width: min(70%, 18rem); }

    .o-nama { grid-template-columns: 1fr; }

    .cene { columns: 1; }
}

@media (max-width: 600px) {
    .usluge { grid-template-columns: 1fr; }
    .usluge article,
    .usluge article:nth-child(2n) { padding: 1.5rem 0; border-left: 0; }

    .kontakt-mapa { gap: 0.75rem; }
    .mapa { aspect-ratio: 1; }

    .kontakt-lista > div { grid-template-columns: 1fr; gap: 0.2rem; }

    .dugme { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .okular img { animation: none; }
}

/* Antitela */

.antitela-zaglavlje {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem 4rem;
    align-items: end;
}

.antitela-uvod { color: var(--siva); margin: 0.75rem 0 0; max-width: 34rem; }

.antitela-uslovi {
    display: flex;
    margin: 0;
    background: var(--mastilo);
    color: var(--belo);
    border-radius: 6px;
}
.antitela-uslovi > div {
    padding: 1rem 1.5rem;
}
.antitela-uslovi > div + div { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.antitela-uslovi dt { font-size: 0.85rem; color: #b8bacb; }
.antitela-uslovi dd {
    margin: 0.15rem 0 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cilibar);
    white-space: nowrap;
}

.antitela-napomena { color: var(--siva); margin: 1.25rem 0 0; }

.antitela {
    columns: 3;
    column-gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--mastilo);
}

.antitela-grupa {
    break-inside: avoid;
    margin-bottom: 2.5rem;
}

.antitela-grupa h3 {
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid var(--dab);
}

.antitela-grupa ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.antitela-grupa li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--linija);
    font-size: 0.98rem;
}

.sekcija-tonirana .pretraga input { background: var(--staklo); }

@media (max-width: 960px) {
    .antitela-zaglavlje { grid-template-columns: 1fr; }
    .antitela-uslovi { justify-self: start; }
    .antitela { columns: 2; }
}

@media (max-width: 600px) {
    .antitela { columns: 1; }
    .antitela-uslovi { width: 100%; }
    .antitela-uslovi > div { flex: 1; padding: 0.9rem 0.8rem; }
    .antitela-uslovi dd { font-size: 1.2rem; white-space: normal; }
}

.cene li span.eur::after { content: " €"; }

/* Česta pitanja */

.pitanja {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem 4rem;
    align-items: start;
}

.pitanja-uvod p { color: var(--siva); margin-top: 1rem; max-width: 22rem; }

.pitanja-lista { border-top: 1px solid var(--mastilo); }

.pitanja-lista details { border-bottom: 1px solid var(--linija); }

.pitanja-lista summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.15rem 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
}
.pitanja-lista summary::-webkit-details-marker { display: none; }

.pitanja-lista summary::after {
    content: "";
    flex: none;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid var(--dab);
    border-bottom: 2px solid var(--dab);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s ease;
}
.pitanja-lista details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.pitanja-lista summary:hover { color: var(--dab); }

.pitanja-lista details p {
    margin: 0 0 1.25rem;
    color: var(--siva);
    max-width: 38rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .pitanja { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) and (min-width: 901px) {
    .meni { gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pitanja-lista summary::after { transition: none; }
}
