/* Kondicioni trener, doc. dr Ivan Zarić */

:root {
  --ink: #04070e;
  --navy: #0a1530;
  --navy-2: #12224a;
  --line: #1d2f5c;
  --blue: #2d6bff;
  --blue-hi: #86a9ff;
  --red: #e3262e;
  --paper: #edf1f8;
  --muted: #95a3bf;
  --silver: #c9cfda;
  --bronze: #cd8c52;
  --gold: #e2b84a;

  --display: "Saira Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --gap: clamp(28px, 4vw, 56px);
  --section: clamp(72px, 10vw, 140px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 800; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.65rem; font-weight: 600; line-height: 1.08; }

p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--text);
  padding: 16px 24px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: #1f57e0; border-color: #1f57e0; color: #fff; }
.btn--ghost { background: transparent; border-color: #3a4c78; color: var(--paper); }
.btn--ghost:hover { background: var(--navy-2); border-color: var(--blue-hi); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 7, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 47, 92, 0.6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--paper); line-height: 1; }
.brand { border-left: 4px solid var(--blue); padding-left: 12px; }
.brand__name { font: 800 1.7rem/0.9 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.brand__by { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
.brand:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav a, .nav__drop {
  display: block; padding: 10px 14px; color: var(--paper); text-decoration: none;
  font: 500 0.98rem/1 var(--text); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav__drop:hover { color: var(--blue-hi); }
.nav a[aria-current="page"], .nav__drop.is-current { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); }
.nav__drop::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.nav__sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; left: 0; top: 100%; min-width: 290px;
  background: var(--navy); border: 1px solid var(--line);
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__sub a { padding: 11px 18px; font-size: 0.97rem; }
.nav__item--drop:hover .nav__sub,
.nav__item--drop:focus-within .nav__sub,
.nav__item--drop.is-open .nav__sub { visibility: visible; opacity: 1; transform: none; }
.nav .nav__cta { margin-left: 10px; padding: 12px 18px; border: 1px solid var(--blue); border-radius: 2px; }
.nav .nav__cta:hover { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--paper);
  padding: 10px 14px; font: 600 0.95rem/1 var(--text); border-radius: 2px; cursor: pointer;
}

@media (max-width: 980px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--ink);
    flex-direction: column; align-items: stretch; padding: 16px var(--pad) 40px;
    overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav a, .nav__drop { padding: 16px 0; font-size: 1.25rem; border-bottom: 1px solid var(--navy-2); width: 100%; text-align: left; }
  .nav a[aria-current="page"], .nav__drop.is-current { box-shadow: none; color: var(--blue-hi); }
  .nav__sub { position: static; visibility: visible; opacity: 1; transform: none; display: none; border: 0; padding: 0 0 8px 16px; background: none; min-width: 0; }
  .nav__item--drop.is-open .nav__sub { display: block; }
  .nav__item--drop:hover .nav__sub { display: none; }
  .nav__item--drop.is-open:hover .nav__sub { display: block; }
  .nav__sub a { font-size: 1.05rem; color: var(--muted); }
  .nav .nav__cta { margin: 24px 0 0; text-align: center; border-bottom: 1px solid var(--blue); }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; position: relative; z-index: 2; }
.hero__who { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.hero__who strong { color: var(--paper); font-weight: 600; }
.hero h1 { margin-bottom: 28px; max-width: 11ch; }
.hero__lead { font-size: 1.2rem; max-width: 36rem; color: #cdd6e6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__photo { position: relative; margin: 0; align-self: stretch; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.hero__frame { display: block; position: relative; }
.hero__frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--blue); z-index: -1;
}
.hero__photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 30px; }

.curve { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--navy-2); }
.curve svg { display: block; width: 100%; height: auto; }
.curve__grid line { stroke: var(--navy-2); stroke-width: 1; }
.curve__line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.curve__pt { fill: var(--ink); stroke: var(--blue-hi); stroke-width: 2.5; }
.curve__pt--peak { stroke: var(--red); fill: var(--red); }
.curve__lbl { fill: var(--paper); font-family: var(--text); font-weight: 600; }
.curve__val { fill: var(--muted); font-family: var(--text); }
.curve__axis { fill: var(--muted); font-family: var(--text); }
.curve__narrow { display: none !important; }
@media (max-width: 900px) { .curve__wide { display: none !important; } .curve__narrow { display: block !important; max-width: 640px; } }
.curve__note { font-size: 0.85rem; color: var(--muted); padding: 10px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .curve__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.6,.05,.25,1) .3s forwards; }
  .curve__area { opacity: 0; animation: fadein 1s ease 1.6s forwards; }
  .curve__mark { opacity: 0; animation: fadein .5s ease forwards; }
  .curve__mark:nth-of-type(2) { animation-delay: .5s; }
  .curve__mark:nth-of-type(3) { animation-delay: 1.5s; }
  .curve__mark:nth-of-type(4) { animation-delay: 1.75s; }
  .curve__mark:nth-of-type(5) { animation-delay: 2.3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

@media (max-width: 480px) {
  .brand__name { font-size: 1.45rem; }
  .hero__frame::before { inset: 10px -10px -10px 10px; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; }
  .hero h1 { max-width: none; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section--navy { background: var(--navy); }
.section__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 168px; gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head > p { grid-column: 2 / -1; }
.section__head p { color: #c4cde0; max-width: 38rem; margin: 0; }
.section__head h2 { margin: 0; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; gap: 18px; } .section__head > p { grid-column: auto; } }

/* Medals */
.medals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.medal {
  display: grid; grid-template-columns: 110px 160px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.medal__year { font: 800 2.6rem/1 var(--display); color: var(--paper); }
.medal__type { font: 700 1.5rem/1 var(--display); display: inline-flex; align-items: center; gap: 12px; }
.medal__type::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: currentColor; flex: none; }
.medal--srebro .medal__type { color: var(--silver); }
.medal--bronza .medal__type { color: var(--bronze); }
.medal--zlato .medal__type { color: var(--gold); }
.medal__event { font-weight: 600; }
.medal__team { color: var(--muted); }
@media (max-width: 760px) {
  .medal { grid-template-columns: 80px minmax(0, 1fr); gap: 6px 18px; }
  .medal__year { grid-row: span 3; font-size: 2.1rem; }
}

.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 36px; color: #c4cde0; }
.facts a { color: var(--paper); }

/* Services index */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-2); }
.service { border-bottom: 1px solid var(--navy-2); }
.service a {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 168px; gap: var(--gap); align-items: center;
  padding: 28px 0; color: var(--paper); text-decoration: none;
}
.service__title { font: 700 clamp(1.9rem, 3.4vw, 2.9rem)/1 var(--display); transition: color .15s; }
.service__text { color: var(--muted); margin: 0; }
.service__img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.35) brightness(.85); transition: filter .2s; }
.service a:hover .service__title, .service a:focus-visible .service__title { color: var(--blue-hi); }
.service a:hover .service__img { filter: none; }
@media (max-width: 760px) {
  .service a { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px 18px; }
  .service__text { grid-column: 1; }
  .service__img { width: 96px; grid-column: 2; grid-row: 1 / span 2; }
}

/* Method steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 28px 28px 0 0; border-top: 2px solid var(--line); position: relative; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; top: -17px; left: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); border: 2px solid var(--blue); font: 700 1rem/1 var(--display); color: var(--paper);
}
.section:not(.section--navy) .step::before { background: var(--ink); }
.step:last-child { border-top-color: var(--blue); }
.step h3 { margin-top: 8px; }
.step p { color: #c4cde0; font-size: 1rem; }
.method-note { margin-top: 40px; color: var(--muted); max-width: 44rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Tools / testing */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.tool { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.tool img { aspect-ratio: 1; object-fit: cover; }
.tool h3 { margin-bottom: 10px; }
.tool p { color: #c4cde0; font-size: 1rem; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tool { grid-template-columns: 1fr; } .tool img { max-width: 220px; } }

/* About teaser */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quote { margin: 0 0 28px; }
.quote p { font: 700 clamp(1.9rem, 3.4vw, 2.8rem)/1.05 var(--display); margin: 0 0 14px; }
.quote footer { color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Post list */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card a { color: var(--paper); text-decoration: none; display: block; }
.post-card img, .post-card .post-card__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; background: var(--navy-2); }
.post-card .post-card__ph { display: grid; place-items: end start; padding: 18px; font: 800 3rem/0.9 var(--display); color: var(--line); }
.post-card time { color: var(--muted); font-size: 0.9rem; }
.post-card h3 { margin: 6px 0 8px; font-size: 1.55rem; transition: color .15s; }
.post-card p { color: #b9c3d8; font-size: 0.98rem; margin: 0; }
.post-card a:hover h3 { color: var(--blue-hi); }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.more { margin-top: 40px; }

/* Gallery */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gallery { columns: 3 300px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; }
.gallery a { display: block; position: relative; }
.gallery img { width: 100%; }
.gallery figcaption { font-size: 0.92rem; color: var(--muted); padding: 8px 0 4px; }
.gallery a:hover img { outline: 2px solid var(--blue); outline-offset: -2px; }

.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(2, 4, 9, 0.95); color: var(--paper);
}
.lightbox::backdrop { background: rgba(2, 4, 9, 0.9); }
.lightbox__inner { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 64px 72px 24px; }
.lightbox__img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.lightbox__bar { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; color: var(--muted); }
.lightbox__cap { color: var(--paper); }
.lightbox button {
  position: absolute; background: rgba(10, 21, 48, 0.8); color: var(--paper); border: 1px solid var(--line);
  width: 52px; height: 52px; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 2px;
}
.lightbox button:hover { border-color: var(--blue-hi); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__inner { padding: 64px 12px 16px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; } }

/* Contact band */
.band { background: var(--blue); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.band__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.band h2 { margin: 0; }
.band dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 1.1rem; }
.band dt { opacity: .8; }
.band dd { margin: 0; font-weight: 600; }
.band a { color: #fff; }
.band .btn { background: var(--ink); border-color: var(--ink); margin-top: 28px; }
.band .btn:hover { background: var(--navy); border-color: var(--navy); }
@media (max-width: 860px) { .band__grid { grid-template-columns: 1fr; } }

/* Page header (inner pages) */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--navy-2); }
.page-head--media .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.page-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-head img.is-square { aspect-ratio: 1; max-height: 460px; object-fit: cover; }
.page-head img.is-wide { aspect-ratio: auto; }
.page-head__lead { font-size: 1.2rem; color: #cdd6e6; max-width: 38rem; margin: 0; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--paper); }
@media (max-width: 860px) { .page-head--media .wrap { grid-template-columns: 1fr; } }

/* Article layout */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); padding: clamp(48px, 6vw, 88px) 0 var(--section); align-items: start; }
.article--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } }

.prose { max-width: 42rem; font-size: 1.1rem; line-height: 1.7; color: #dde3ef; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 1.6em 0 0.5em; color: var(--paper); }
.prose h3 { font-size: 1.45rem; margin: 1.4em 0 0.4em; color: var(--paper); }
.prose > :first-child { margin-top: 0; }
.prose strong { color: #fff; font-weight: 600; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--blue-hi); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 3px solid var(--red); }
.prose figure { margin: 0 0 2em; }
.prose .timeline, .prose .papers, .prose .bio-facts { padding-left: 0; }
.prose .timeline li, .prose .papers li, .prose .bio-facts li { margin-bottom: 0; }

.aside { position: sticky; top: 100px; display: grid; gap: 28px; }
.aside__box { background: var(--navy); border: 1px solid var(--line); padding: 28px; }
.aside__box h2 { font-size: 1.9rem; margin-bottom: 12px; }
.aside__box p { color: #c4cde0; font-size: 1rem; }
.aside__box .btn { width: 100%; justify-content: center; margin-top: 6px; }
.aside__contact { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 1rem; }
.aside__nav h2 { font-size: 1.5rem; margin-bottom: 10px; }
.aside__nav ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--navy-2); }
.aside__nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--navy-2); color: var(--paper); text-decoration: none; }
.aside__nav a:hover { color: var(--blue-hi); }
.aside__nav a[aria-current="page"] { color: var(--blue-hi); }
@media (max-width: 960px) { .aside { position: static; } }

/* Biography */
.bio-facts { list-style: none; padding: 0; margin: 0 0 2em; border-top: 1px solid var(--navy-2); }
.bio-facts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--navy-2); }
.bio-facts__k { color: var(--muted); }
.bio-facts p { margin: 0; }
@media (max-width: 560px) { .bio-facts li { grid-template-columns: 1fr; gap: 2px; } }

.timeline { list-style: none; padding: 0; margin: 0 0 2em; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--blue); }
.timeline .is-srebro::before { background: var(--silver); border-color: var(--silver); }
.timeline .is-bronza::before { background: var(--bronze); border-color: var(--bronze); }
.timeline .is-zlato::before { background: var(--gold); border-color: var(--gold); }
.timeline .is-zlato .timeline__note { color: var(--gold); }
.timeline__season { display: block; color: var(--muted); font-size: 0.95rem; }
.timeline__team { font-weight: 600; color: var(--paper); }
.timeline__note { display: block; color: #c4cde0; }
.timeline .is-srebro .timeline__note { color: var(--silver); }
.timeline .is-bronza .timeline__note { color: var(--bronze); }

.papers { list-style: none; padding: 0; margin: 0; counter-reset: paper; border-top: 1px solid var(--navy-2); }
.papers li { counter-increment: paper; border-bottom: 1px solid var(--navy-2); }
.papers a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; color: #dde3ef; text-decoration: none; align-items: baseline; }
.papers a::before { content: counter(paper); font: 700 1.25rem/1 var(--display); color: var(--muted); }
.papers a:hover { color: #fff; }
.papers a:hover::before { color: var(--blue-hi); }
.papers__meta { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.papers__tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 2px; margin-right: 8px; }
.papers__tag--rvanje { border-color: #5a2a33; }
@media (max-width: 600px) { .papers a { grid-template-columns: 32px minmax(0, 1fr); } .papers__meta { grid-column: 2; } }

/* Post */
.post-meta { color: var(--muted); margin: 0 0 22px; }
.post-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-2); }
.post-nav a { color: var(--paper); text-decoration: none; }
.post-nav span { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.post-nav strong { font: 700 1.35rem/1.1 var(--display); }
.post-nav a:hover strong { color: var(--blue-hi); }
.post-nav__next { text-align: right; }

.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--navy-2); }
.post-row a { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--navy-2); color: var(--paper); text-decoration: none; align-items: start; }
.post-row img, .post-row .post-card__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--navy-2); }
.post-row .post-card__ph { display: grid; place-items: end start; padding: 12px; font: 800 2rem/0.9 var(--display); color: var(--line); }
.post-row time { color: var(--muted); font-size: 0.9rem; }
.post-row h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 4px 0 8px; transition: color .15s; }
.post-row p { color: #b9c3d8; margin: 0; font-size: 1rem; }
.post-row a:hover h2 { color: var(--blue-hi); }
@media (max-width: 600px) { .post-row a { grid-template-columns: 1fr; gap: 14px; } }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); padding: clamp(48px, 6vw, 88px) 0; }
.contact dl { margin: 0 0 32px; display: grid; gap: 22px; }
.contact dt { color: var(--muted); font-size: 0.95rem; margin-bottom: 2px; }
.contact dd { margin: 0; font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--display); }
.contact dd a { color: var(--paper); text-decoration: none; }
.contact dd a:hover { color: var(--blue-hi); }
.contact dd small { display: block; font: 400 1rem/1.5 var(--text); color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form h2 { font-size: 2.2rem; margin: 0 0 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.98rem; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--text); color: var(--paper);
  background: var(--navy); border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.25); }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form__status { padding: 14px 16px; border-left: 3px solid var(--blue); background: var(--navy); margin: 0; }
.form__status[hidden] { display: none; }
.form__status--error { border-left-color: var(--red); }
.form .btn[disabled] { opacity: .6; cursor: progress; }

.map { border-top: 1px solid var(--navy-2); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* 404 */
.notfound { padding: clamp(80px, 12vw, 160px) 0; }
.notfound p { color: #c4cde0; max-width: 34rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--navy-2); padding: 56px 0 40px; color: var(--muted); font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; }
.site-footer h2 { font: 600 1rem/1.3 var(--text); color: var(--paper); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer .brand { margin-bottom: 14px; }
.site-footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--navy-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

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