:root {
  --ink: #0b2541;
  --navy: #071a32;
  --muted: #4e6274;
  --aqua: #63e0e1;
  --blue: #0e7d9b;
  --pale: #edf6f8;
  --edge: #dbe7ec;
  --paper: #fcfefe;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Inter", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #1493ad; outline-offset: 4px; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(1150px, calc(100% - 96px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--edge); }
.nav { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: block; width: 158px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: 29px; align-items: center; font-size: .88rem; font-weight: 650; }
nav a:hover { color: var(--blue); }
.nav-contact { border: 1px solid var(--edge); border-radius: 7px; padding: 10px 14px; }
.hero, .contact { color: white; background: var(--navy); }
.hero { overflow: hidden; background: radial-gradient(ellipse at 78% 70%, #123851, var(--navy) 59%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 550px; position: relative; }
.hero-copy { padding: 76px 0 86px; position: relative; z-index: 1; }
.kicker { color: #b8dbe5; text-transform: uppercase; letter-spacing: .15em; font-size: .74rem; font-weight: 730; display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.kicker span { width: 18px; height: 2px; background: var(--aqua); }
.kicker.ink { color: #17637c; }
.kicker.ink span { background: #239ab1; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(3.7rem, 7vw, 7rem); font-weight: 650; line-height: .98; letter-spacing: -.075em; }
h1 span { color: var(--aqua); }
h2 { font-size: clamp(2.2rem, 4.7vw, 4rem); font-weight: 650; line-height: 1.04; letter-spacing: -.055em; }
h3 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.025em; }
.intro { color: #d0e1eb; max-width: 435px; font-size: 1.13rem; line-height: 1.65; margin: 25px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; gap: 13px; align-items: center; padding: 13px 17px; border-radius: 7px; border: 1px solid transparent; font-size: .88rem; font-weight: 700; }
.primary { background: var(--aqua); color: var(--navy); }
.primary:hover { background: #98f2f1; }
.outline { border-color: #56788e; }
.outline:hover { border-color: var(--aqua); }
.hero-art { position: relative; width: min(100%, 510px); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; }
.hero-art img { width: 63%; height: auto; position: relative; filter: drop-shadow(0 8px 24px #061324); }
.hero-wave { position: absolute; top: 50%; left: 50%; display: block; width: 138%; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.section { padding-block: 84px; }
.specialties { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.specialties article { padding: 24px 20px; border: 1px solid var(--edge); border-radius: 10px; background: white; }
.line { display: block; width: 24px; height: 3px; margin-bottom: 22px; border-radius: 5px; background: #269db3; }
.specialties p, .muted, .topics p { color: var(--muted); line-height: 1.65; }
.specialties p { font-size: .93rem; margin: 12px 0 0; }
.profile { background: var(--pale); }
.profile-inner, .education, .contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 35px; }
.profile-inner { padding-block: 70px; }
.publications { border-bottom: 1px solid var(--edge); background: #e0ebf3; background: color-mix(in srgb, var(--pale) 93%, var(--ink)); }
.publications > .section { padding-block: clamp(32px, 5vw, 60px); }
#naslov-sekcije-radovi { margin: 0; font-size: clamp(1.1rem, 2.35vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.publications button { min-height: 44px; cursor: pointer; font: inherit; }
.publications #otvori-radove { display: flex; align-items: center; gap: 16px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.publications #otvori-radove:hover { text-decoration: underline; }
.publications #otvori-radove span { color: var(--blue); }
html:has(.publications-dialog[open]) { overflow: hidden; }
.publications-dialog { width: min(46rem, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--edge); border-radius: 14px; background: var(--paper); color: var(--ink); }
.publications-dialog::backdrop { background: #061321bd; }
.publications-panel { display: flex; flex-direction: column; max-height: min(44rem, calc(100dvh - 26px)); }
.publications-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(12px, 3vw, 24px); border-bottom: 1px solid var(--edge); }
.publications-header h2 { margin: 0; font-size: clamp(1rem, 3.5vw, 1.45rem); line-height: 1.25; }
.publications-header button { padding: 0 10px; border: 1px solid #7897a7; border-radius: 7px; background: var(--pale); color: var(--ink); white-space: nowrap; }
.publication-list { overflow-y: auto; overscroll-behavior: contain; padding: 16px clamp(12px, 3vw, 24px) 24px; font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }
.publication-list h3 { margin: 18px 0 8px; font-size: 1rem; }
.publication-list h3:first-child { margin-top: 0; }
.publication-list ol { padding-inline-start: 1.9em; }
.publication-list li + li { margin-top: 12px; }
.publication-list a { color: var(--ink); text-decoration: underline; }
.place { font-weight: 650; margin: 15px 0 0; }
.bio { font-size: 1.07rem; line-height: 1.7; }
.bio p { margin: 0 0 15px; }
.bio p:last-child { margin-bottom: 0; }
.topics { border-top: 1px solid var(--edge); }
details { border-bottom: 1px solid var(--edge); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 0; font-weight: 680; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.35rem; line-height: 1; }
details[open] summary::after { content: "−"; }
.bio-more { border: 0; }
.bio-more summary { display: inline-flex; min-height: 44px; padding: 7px 13px; border: 1px solid #7897a7; border-radius: 7px; color: var(--ink); font-size: .92rem; }
.bio-more summary:hover { background: #ffffffa0; }
.bio-more:not([open]) .bio-hide, .bio-more[open] .bio-show { display: none; }
.bio-remainder { margin-top: 15px; }
.bio-signoff { display: flex; align-items: center; width: fit-content; }
.bio-signoff img { display: block; width: clamp(112px, 15vw, 138px); height: auto; margin-inline-start: -17px; }
.topics p { margin: 0 0 17px; }
.contact-inner { align-items: center; padding-block: 60px; }
.contact-inner p:last-child { color: #d0e1eb; line-height: 1.6; }
.footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 24px; color: var(--muted); font-size: .86rem; }
.footer .brand { width: 125px; }
@media (max-width: 920px) {
  .specialties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { width: calc(100% - 56px); }
  .hero-inner { min-height: 465px; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 36px); }
  .nav { align-items: flex-start; flex-direction: column; gap: 13px; padding-block: 15px; }
  nav { gap: 10px 17px; font-size: .82rem; }
  .nav-contact { padding: 5px 8px; }
  .hero-inner, .profile-inner, .education, .contact-inner { grid-template-columns: 1fr; gap: 14px; }
  .hero-copy { padding: 54px 0 0; }
  .hero-art { width: min(82%, 310px); justify-self: center; }
  .section, .profile-inner, .contact-inner { padding-block: 52px; }
  .specialties { gap: 9px; }
  .specialties article { padding: 17px 13px; }
  h3 { font-size: 1.05rem; }
}
@media (max-width: 360px) {
  h1 { font-size: 3.15rem; }
  .specialties { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-family: var(--font, "Inter", system-ui, sans-serif); }
.contact-copy { white-space: pre-line; }
.contact-form { display: grid; gap: 16px; min-width: 0; }
.contact-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-field { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.contact-field :is(input, textarea) { box-sizing: border-box; width: 100%; padding: 11px 12px; border: 1px solid #6e8599; border-radius: 7px; background: #fff; color: #0b2541; font: inherit; font-weight: 400; }
.contact-field textarea { resize: vertical; min-height: 116px; }
.contact-form .button { justify-self: start; cursor: pointer; }
.contact-form .button:disabled { opacity: .75; cursor: default; }
.contact-privacy { margin: 0; color: #d3e2ef; font-size: .84rem; line-height: 1.55; }
.contact-consent, .contact-privacy-more { font-size: .8rem; }
.contact-privacy-more { border: 0; margin-top: -8px; }
.contact-privacy-more summary { display: inline-flex; min-height: 44px; padding: 0; color: var(--aqua); font-size: inherit; }
.contact-privacy-more summary::after { color: inherit; font-size: 1rem; }
.contact-privacy h3 { margin: 0 0 6px; color: #fff; font-size: .92rem; }
.contact-privacy p { margin: 0 0 8px; }
.contact-privacy p:last-child { margin-bottom: 0; }
.contact-privacy a { text-decoration: underline; }
.contact-feedback { margin: 0; padding: 10px 12px; border-left: 3px solid var(--aqua); background: #ffffff14; }
.brand { max-height: 65px; object-fit: contain; object-position: left; }
.profile-photo { display: block; width: min(100%, 350px); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; margin-top: 24px; border-radius: 12px; }
.hero-photo img { width: 100%; max-height: 430px; object-fit: contain; filter: none; }
.hero-center .hero-inner { grid-template-columns: 1fr; text-align: center; }
.hero-center .hero-copy { padding-bottom: 24px; }
.hero-center .hero-art { width: min(78%, 340px); justify-self: center; }
.hero-center .hero-copy :is(.kicker, .actions) { justify-content: center; }
.hero-center .intro { margin-inline: auto; }
.spacing-compact :is(.section, .profile-inner, .contact-inner) { padding-block: clamp(32px, 5vw, 58px); }
.spacing-airy :is(.section, .profile-inner, .contact-inner) { padding-block: clamp(70px, 10vw, 120px); }
@media (min-width: 661px) {
  .hero-left .hero-art { grid-column: 1; grid-row: 1; justify-self: start; }
  .hero-left .hero-copy { grid-column: 2; grid-row: 1; }
}
@media (min-width: 921px) {
  .specialties { grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); }
}
