/* =========================================================================
   sections.css — sve sekcije sajta
   ========================================================================= */

/* ================================================================ NAV ==== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color var(--d) var(--ease), box-shadow var(--d) var(--ease),
              border-color var(--d) var(--ease), height var(--d) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}
/* širinu daje .container — ovde se ne postavlja width */
.nav__inner { display: flex; align-items: center; gap: var(--s5); }

.logo {
  font-family: var(--ff-script);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.logo:hover { color: var(--teal); }

.nav__links { display: none; gap: clamp(.6rem, 1.6vw, 1.6rem); margin-inline: auto; }
@media (min-width: 1080px) { .nav__links { display: flex; } }
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  padding: .35rem 0;
  transition: color var(--d-fast) var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--d) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--teal); font-weight: 600; }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.nav__tools { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
@media (min-width: 1080px) { .nav__tools { margin-left: 0; } }

.langsw {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--surface);
}
.langsw button {
  padding: .35rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  transition: background-color var(--d-fast) linear, color var(--d-fast) linear;
}
.langsw button.is-active { background: var(--teal-dark); color: #fff; }
:root[data-theme="dark"] .langsw button.is-active { background: var(--teal); color: #08211E; }

.iconbtn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  transition: color var(--d-fast) linear, border-color var(--d-fast) linear;
}
.iconbtn:hover { color: var(--teal); border-color: var(--teal); }
.iconbtn svg { width: 17px; height: 17px; }
.nav__cv { display: none; }
@media (min-width: 720px) { .nav__cv { display: inline-flex; } }

.burger { display: grid; }
@media (min-width: 1080px) { .burger { display: none; } }

/* mobilni meni */
.drawer {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg);
  padding: calc(var(--nav-h) + var(--s5)) var(--gutter) var(--s7);
  overflow-y: auto;
  animation: fade var(--d) var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer__list li + li { border-top: 1px solid var(--line-soft); }
.drawer__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) 0;
  font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em;
}
.drawer__list a:hover { color: var(--teal); }
.drawer__close { position: fixed; top: 18px; right: var(--gutter); }

/* =============================================================== HERO ==== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3.5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% 8%, var(--teal-soft), transparent 62%),
    linear-gradient(180deg, var(--bg-tint), var(--bg) 78%);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero__hi { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.hero__name { margin-bottom: .2em; }
.hero__role { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); margin-bottom: var(--s4); }
.hero__role em { font-style: normal; color: var(--teal); }
.hero__lede { margin-bottom: var(--s5); }
.hero__chips { margin-bottom: var(--s6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero__figure { position: relative; }
.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
  aspect-ratio: 4 / 5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.hero__blob { width: 340px; height: 340px; background: var(--teal); opacity: .16; top: -40px; right: -60px; }
.hero__blob--2 { width: 240px; height: 240px; background: var(--warm); opacity: .13; bottom: -50px; left: -50px; }

.hero__note {
  margin-top: var(--s4);
  max-width: 22rem;
  margin-left: auto;
  text-align: right;
  transform: rotate(-1.5deg);
}
@media (prefers-reduced-motion: reduce) { .hero__note { transform: none; } }

.hero__scroll {
  display: none;
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  color: var(--muted);
}
@media (min-width: 900px) { .hero__scroll { display: block; } }
.hero__scroll svg { width: 20px; height: 20px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll svg { animation: none; } }

/* ============================================================== ABOUT ==== */
.about__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 880px) { .about__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .9fr); } }

.about__photo { position: relative; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.about__note { position: absolute; left: -10px; bottom: -28px; max-width: 11rem; transform: rotate(-6deg); }
@media (max-width: 879px) { .about__note { position: static; transform: none; margin-top: var(--s4); max-width: none; } }

.traits { display: grid; gap: var(--s3); }
.trait {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform var(--d) var(--ease), border-color var(--d) var(--ease);
}
.trait:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); }
.trait__ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--teal-soft); color: var(--teal); }
.trait__ico svg { width: 19px; height: 19px; }
.trait__t { font-size: var(--fs-sm); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__v { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1.1; }
.stat__v .sfx { color: var(--teal); }
.stat__l { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

/* ============================================================= SKILLS ==== */
.skillgrid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.skillcard { padding: var(--s5); }
.skillcard__h { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.skillcard__ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--teal-soft); color: var(--teal); }
.skillcard__ico svg { width: 18px; height: 18px; }
.skillcard h3 { font-size: var(--fs-h4); }
.skillcard li {
  display: flex; align-items: center; gap: var(--s3);
  padding: .42rem 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.skillcard li + li { border-top: 1px dashed var(--line-soft); }
.skl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--teal); opacity: .28; }
.skl-dot[data-lvl="1"] { opacity: 1; }
.skl-dot[data-lvl="2"] { opacity: .62; }
.skl-dot[data-lvl="3"] { opacity: .32; }
.skl-legend { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s4); }
.skl-legend span { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--muted); }

/* =========================================================== PROJECTS ==== */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.filters__btn {
  padding: .45rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
  transition: all var(--d-fast) var(--ease);
}
.filters__btn:hover { border-color: var(--teal); color: var(--teal); }
.filters__btn.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
:root[data-theme="dark"] .filters__btn.is-active { background: var(--teal); border-color: var(--teal); color: #08211E; }
.filters__count { margin-left: auto; align-self: center; font-size: var(--fs-xs); color: var(--muted); }

.projgrid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.proj { display: flex; flex-direction: column; overflow: hidden; }
.proj__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.proj__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--ease); }
.proj:hover .proj__cover img { transform: scale(1.05); }
.proj__cover svg { width: 100%; height: 100%; display: block; }
.proj__badge {
  position: absolute; top: 12px; left: 12px;
  padding: .25rem .6rem;
  border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.88); color: var(--teal-dark);
  backdrop-filter: blur(6px);
}
.proj__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.proj__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.proj__t { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.02em; }
.proj__go { color: var(--muted); flex: none; transition: color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease); }
.proj:hover .proj__go { color: var(--teal); transform: translate(3px, -3px); }
.proj__go svg { width: 18px; height: 18px; }
.proj__d { font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj__flag { font-size: var(--fs-xs); font-weight: 600; color: var(--warm); }
.proj__tags { margin-top: auto; padding-top: var(--s2); }

/* ============================================================ SYSTEMS ==== */
.sys { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sysc { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.sysc__h { display: flex; align-items: center; gap: var(--s3); }
.sysc__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--teal-soft); color: var(--teal); }
.sysc__ico svg { width: 20px; height: 20px; }
.sysc__tag { font-size: var(--fs-xs); color: var(--teal); font-weight: 600; }
.sysc__d { font-size: var(--fs-sm); color: var(--muted); }
.sysc__pts li { display: flex; gap: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); padding: .3rem 0; }
.sysc__pts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; margin-top: .62em; }

/* dijagram */
.pipe { padding: var(--s6) var(--s5); margin-bottom: var(--s6); }
.pipe__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.pipe__badge { font-size: var(--fs-xs); font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: .3rem .75rem; border-radius: var(--r-pill); }
.pipe__svg { width: 100%; height: auto; overflow: visible; }
.pipe__legend { display: grid; gap: var(--s4); margin-top: var(--s5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pipe__step h4 { font-size: var(--fs-sm); margin-bottom: 2px; }
.pipe__step p { font-size: var(--fs-xs); color: var(--muted); }
.pipe__step .n { font-size: .7rem; font-weight: 800; color: var(--teal); letter-spacing: .1em; }

/* ========================================================= EXPERIENCE ==== */
.xp { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 980px) { .xp { grid-template-columns: .85fr 1.15fr; align-items: start; } }

.xp__aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.xp__note { margin-top: var(--s5); transform: rotate(-2deg); }

.tl { position: relative; padding-left: 1.75rem; }
.tl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.tl__item { position: relative; padding-bottom: var(--s6); }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot { position: absolute; left: -1.75rem; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.tl__item.is-current .tl__dot { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); }
.tl__role { font-size: var(--fs-h4); font-weight: 700; }
.tl__co { color: var(--teal); font-weight: 600; }
.tl__period { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s3); }
.tl__sum { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--s3); }
.tl__list li { display: flex; gap: var(--s3); font-size: var(--fs-sm); color: var(--muted); padding: .22rem 0; }
.tl__list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: .5; flex: none; margin-top: .68em; }
.tl__tags { margin-top: var(--s4); }
.tl__badge { display: inline-block; margin-left: var(--s2); padding: .12rem .5rem; border-radius: var(--r-pill); background: var(--teal-soft); color: var(--teal-ink); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* ========================================================== EDUCATION ==== */
.eduwrap { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .eduwrap { grid-template-columns: 1.1fr .9fr; } }
.edu { display: grid; gap: var(--s4); }
.educard { padding: var(--s5); display: flex; gap: var(--s4); }
.educard__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--teal-soft); color: var(--teal); }
.educard__ico svg { width: 21px; height: 21px; }
.educard__meta { font-size: var(--fs-xs); color: var(--muted); margin: 2px 0 var(--s3); }
.educard__note { font-size: var(--fs-sm); color: var(--ink-2); }

.courses { display: grid; gap: var(--s3); }
.course { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); }
.course__ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: .8rem; }
.course__n { font-size: var(--fs-sm); font-weight: 700; }
.course__o { font-size: var(--fs-xs); color: var(--muted); }

/* ======================================================== BEYOND CODE ==== */
.beyond__intro { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .beyond__intro { grid-template-columns: .9fr 1.1fr; } }

.pcards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pcard { padding: var(--s5) var(--s4); text-align: center; }
.pcard__ico { width: 44px; height: 44px; margin: 0 auto var(--s3); display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.pcard__ico svg { width: 22px; height: 22px; }
.pcard h3 { font-size: var(--fs-sm); margin-bottom: 2px; }
.pcard p { font-size: var(--fs-xs); color: var(--muted); }

/* ------------------------------------------------------------ mapa ------ */
.travel { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 1040px) { .travel { grid-template-columns: 1.35fr .85fr; } }

.map {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map svg { width: 100%; height: auto; display: block; }
.map .land { fill: var(--surface-2); stroke: var(--line); stroke-width: .4; vector-effect: non-scaling-stroke; }
.map .visited {
  fill: color-mix(in srgb, var(--teal) 24%, transparent);
  stroke: var(--teal); stroke-width: 1; vector-effect: non-scaling-stroke;
  cursor: pointer; outline: none;
  transition: fill var(--d) linear;
}
.map .visited:hover, .map .visited:focus-visible, .map .visited.is-on { fill: var(--teal); }
.map .home { fill: color-mix(in srgb, var(--warm) 34%, transparent); stroke: var(--warm); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map .dot { fill: var(--teal); }
.map .dot--home { fill: var(--warm); }
.map .ring { fill: none; stroke: var(--teal); stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }
.map .pin.is-on .ring { opacity: .8; animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { 0% { r: 4; opacity: .8; } 100% { r: 14; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map .pin.is-on .ring { animation: none; opacity: .5; } }
.map .iso { font-family: var(--ff); font-size: 8.5px; font-weight: 700; letter-spacing: .06em; fill: var(--muted); pointer-events: none; }
.map .pin.is-on .iso { fill: var(--teal); }
.map .leader { stroke: var(--line); stroke-width: .5; vector-effect: non-scaling-stroke; }

.map__zoom {
  position: absolute; right: 12px; bottom: 12px;
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
}
.map__zoom:hover { color: var(--teal); border-color: var(--teal); }
.map__hint { position: absolute; left: 14px; top: 12px; font-size: var(--fs-xs); color: var(--muted); }

.cplate { padding: var(--s5); min-height: 26rem; }
.cplate__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.cplate__flag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--teal); background: var(--teal-soft); padding: .2rem .55rem; border-radius: var(--r-pill); }
.cplate__flag.is-home { color: var(--warm); background: color-mix(in srgb, var(--warm) 15%, transparent); }
.cplate__city { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s3); }
.cplate__note { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--s4); }
.cplate__ph { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.cplate__ph.n1 { grid-template-columns: 1fr; }
.cplate__fig { cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; position: relative; }
.cplate__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform var(--d-slow) var(--ease); }
.cplate__fig:hover img { transform: scale(1.06); }
.cplate__fig figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1.4rem .55rem .45rem;
  font-size: .7rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(8,20,22,.82), transparent);
}
.cplate__body { transition: opacity var(--d) linear, transform var(--d) var(--ease); }
.cplate.is-swap .cplate__body { opacity: 0; transform: translateY(8px); }

.cflags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.cflag {
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
  transition: all var(--d-fast) var(--ease);
}
.cflag:hover, .cflag.is-on { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.cflag .cc { font-weight: 800; color: var(--teal); margin-right: .4em; }
.cflag.is-home .cc { color: var(--warm); }

.tcards { display: none; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s4); }
.tcards .cplate { flex: 0 0 82%; scroll-snap-align: start; min-height: 0; }
@media (max-width: 820px) {
  .map, .cflags, .travel > .cplate { display: none; }
  .tcards { display: flex; }
}

/* ------------------------------------------------------------ sport ----- */
.sport { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 980px) { .sport { grid-template-columns: .95fr 1.05fr; } }

.bignum { display: flex; align-items: baseline; gap: .35rem; }
.bignum__v { font-size: clamp(3.2rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.bignum__u { font-size: 1.25rem; font-weight: 700; color: var(--teal); }
.bignum__c { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s2); }

.sptl { margin-top: var(--s6); }
.sptl__i { display: flex; gap: var(--s4); padding-bottom: var(--s5); position: relative; }
.sptl__i:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.sptl__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); position: relative; z-index: 1; }
.sptl__ic svg { width: 18px; height: 18px; }
.sptl__y { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.sptl__t { font-size: var(--fs-sm); font-weight: 700; margin: 2px 0; }
.sptl__x { font-size: var(--fs-sm); color: var(--muted); }

.races { margin-bottom: var(--s5); }
.races th, .races td { text-align: left; padding: .7rem var(--s4) .7rem 0; font-size: var(--fs-sm); }
.races th { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); }
.races td { border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.races tbody tr { cursor: pointer; transition: background-color var(--d-fast) linear; }
.races tbody tr:hover, .races tbody tr.is-on { background: var(--teal-soft); }
.races .ocr { color: var(--teal); font-weight: 700; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 620px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; position: relative; transition: opacity 200ms linear, box-shadow 200ms linear; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform var(--d-slow) var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1.5rem .55rem .5rem;
  font-size: .7rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(8,20,22,.85), transparent);
}
.shots.is-dim .shot { opacity: .28; }
.shots.is-dim .shot.is-match { opacity: 1; box-shadow: 0 0 0 3px var(--teal); }

/* kolaž fotografija */
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: center; }
.collage figure { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-md); cursor: zoom-in; }
.collage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform var(--d-slow) var(--ease); }
.collage figure:hover img { transform: scale(1.05); }
.collage figure:nth-child(1) { transform: rotate(-3deg); }
.collage figure:nth-child(2) { transform: translateY(-14px) rotate(2deg); }
.collage figure:nth-child(3) { transform: rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .collage figure { transform: none !important; } }

/* ============================================================ CONTACT ==== */
.contact {
  background:
    radial-gradient(800px 380px at 12% 0%, rgba(255,255,255,.07), transparent 60%),
    var(--teal-deep);
  color: var(--on-deep);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.contact h2, .contact .h2 { color: #fff; }
.contact .eyebrow { color: var(--on-deep-mute); }
.contact__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.15fr .85fr .9fr; } }
.contact__p { color: var(--on-deep-mute); font-size: var(--fs-sm); margin-top: var(--s3); max-width: 34ch; }

.crow { display: flex; align-items: center; gap: var(--s3); padding: .5rem 0; font-size: var(--fs-sm); color: var(--on-deep); }
.crow svg { width: 17px; height: 17px; color: var(--on-deep-mute); flex: none; }
.crow a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.socials { display: flex; gap: var(--s3); margin-top: var(--s4); }
.social {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: var(--on-deep);
  transition: background-color var(--d-fast) linear, transform var(--d-fast) var(--ease);
}
.social:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

.cform { display: grid; gap: var(--s3); }
.cfield label { font-size: var(--fs-xs); color: var(--on-deep-mute); display: block; margin-bottom: 4px; }
.cfield input, .cfield textarea {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: var(--fs-sm);
}
.cfield input::placeholder, .cfield textarea::placeholder { color: rgba(255,255,255,.4); }
.cfield textarea { min-height: 6.5rem; resize: vertical; }
.cfield input:focus, .cfield textarea:focus { outline: 2px solid rgba(255,255,255,.5); outline-offset: 0; }

.foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
  font-size: var(--fs-xs); color: var(--on-deep-mute);
}
.foot .script { color: var(--on-deep-mute); }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-dark); color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d) var(--ease), visibility var(--d), transform var(--d) var(--ease);
  transform: translateY(10px);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .totop { background: var(--teal); color: #08211E; }

/* =========================================================== LIGHTBOX ==== */
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 18, 20, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: clamp(1rem, 4vw, 2.5rem);
}
.lb.is-open { display: flex; }
.lb__inner { display: flex; flex-direction: column; gap: var(--s3); max-width: min(94vw, 980px); }
.lb__img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; border-radius: var(--r); }
.lb__bar { display: flex; align-items: center; gap: var(--s3); color: #fff; flex-wrap: wrap; }
.lb__cap { flex: 1; font-size: var(--fs-sm); color: rgba(255,255,255,.85); min-width: 12ch; }
.lb__btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.28); color: #fff;
}
.lb__btn:hover { background: rgba(255,255,255,.16); }
.lb__btn svg { width: 18px; height: 18px; }
