/* ==========================================================================
   SERŠ TEAM — site stylesheet
   Dark "championship night" theme by default, warm-paper light theme.
   ========================================================================== */

:root {
  --bg: #0a1f52;
  --bg-2: #0d2766;
  --surface: #12307a;
  --surface-2: #173a8c;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef3ff;
  --muted: #a9b9e0;
  --faint: #7088bf;
  --gold: #f5b82e;
  --gold-ink: #f5b82e;
  --gold-soft: rgba(245, 184, 46, .12);
  --blue: #6aa0ff;
  --blue-soft: rgba(61, 123, 255, .14);
  --red: #e5363d;
  --on-gold: #140e00;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --logo-filter: none;
  --hero-overlay: linear-gradient(180deg, rgba(8, 24, 70, .55) 0%, rgba(8, 24, 70, .35) 40%, rgba(8, 24, 70, .92) 88%, var(--bg) 100%);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f3ed;
  --bg-2: #eeebe2;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --line: rgba(10, 14, 25, .10);
  --line-strong: rgba(10, 14, 25, .2);
  --text: #0b0f1a;
  --muted: #4b5366;
  --faint: #7a8195;
  --gold: #e9a800;
  --gold-ink: #946a00;
  --gold-soft: rgba(233, 168, 0, .14);
  --blue: #1f55e0;
  --blue-soft: rgba(31, 85, 224, .09);
  --shadow: 0 30px 70px -35px rgba(20, 24, 40, .35);
  --logo-filter: brightness(0);
  --hero-overlay: linear-gradient(180deg, rgba(8, 24, 70, .55) 0%, rgba(8, 24, 70, .35) 40%, rgba(8, 24, 70, .9) 88%, #0a1f52 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .4s ease, color .4s ease;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--on-gold); }

[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.display {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
}
.h2 {
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: .95;
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}
.h3 { font-stretch: 110%; font-weight: 700; font-size: 1.3rem; line-height: 1.15; margin: 0 0 .4em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.gold { color: var(--gold-ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.eyebrow--plain::before { display: none; }
.mono { font-family: var(--mono); }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s ease; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 30px -10px rgba(245, 184, 46, .6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(245, 184, 46, .75); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.link-arrow:hover { border-color: var(--gold); gap: .7em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav--solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 34px; width: auto; filter: var(--logo-filter); transition: filter .3s; }
.nav:not(.is-scrolled):not(.nav--solid) .brand img { filter: none; }
.brand__txt { font-stretch: 125%; font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.nav:not(.is-scrolled):not(.nav--solid) { color: #fff; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: .5em .85em; border-radius: 999px;
  font-size: .9rem; font-weight: 600; opacity: .82; transition: opacity .2s, background-color .2s;
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  transition: background-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }
.lang-switch {
  height: 42px; min-width: 42px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  transition: background-color .2s;
}
.lang-switch:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.news-note { margin: 14px 0 0; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-btn { display: none; }
.menu-btn .icon-x { display: none; }
body.menu-open .menu-btn .icon-x { display: block; }
body.menu-open .menu-btn .icon-menu { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { color: var(--text); background: var(--bg); }
body.menu-open .nav .brand img { filter: var(--logo-filter); }
.mobile-menu a:not(.btn) {
  font-stretch: 120%; font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1.15;
  padding: .3em 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

@media (max-width: 1020px) {
  .nav__links, .nav__actions .btn { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- Hero ---------- */
.hero {
  /* The photo is always shown whole (no side cropping), and the text starts
     below the faces, which sit between 24% and 40% of the photo's height. */
  --hero-photo-h: calc(100vw * 1056 / 1613);
  --hero-photo-top: 0px;
  position: relative; color: #fff; overflow: hidden; isolation: isolate; background: #0a1f52;
  padding: calc(var(--hero-photo-top) + var(--hero-photo-h) * .44) 0 clamp(48px, 7vw, 96px);
}
.hero__media { position: absolute; top: var(--hero-photo-top); left: 0; right: 0; aspect-ratio: 1613 / 1056; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transform-origin: 50% 30%; animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
/* Keep faces clear; darken only below them, where the text sits, then fade into the page. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 70, .55) 0%, rgba(8, 24, 70, 0) 65%) 0 100% / 100% 58% no-repeat,
    linear-gradient(180deg, rgba(8, 24, 70, .35) 0%, rgba(8, 24, 70, 0) 14%, rgba(8, 24, 70, 0) 40%, rgba(8, 24, 70, .55) 55%, rgba(8, 24, 70, .88) 80%, #0a1f52 100%);
}
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 28px;
}
.hero__kicker b { background: var(--gold); color: var(--on-gold); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.hero__title { font-size: min(13vw, 8.5rem); }
@media (min-width: 1101px) {
  /* Wide screens: paragraph + buttons sit beside the title so the whole block
     fits under the faces and above the fold, even on short laptop screens. */
  .hero .wrap { max-width: 1440px; }
  .hero__grid { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); }
  .hero__side { padding-bottom: .4em; }
  .hero__title { font-size: min(8vw, 7.2rem, 15svh); }
  .hero__sub { margin-top: 0; }
  /* Medal in the top-right corner, over the mascot, clear of every face. */
  .hero .medal { position: absolute; top: calc(var(--nav-h) + 32px); right: var(--gutter); width: clamp(140px, 12vw, 190px); }
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .outline { color: transparent; -webkit-text-stroke: 2px var(--gold); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero__sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255, 255, 255, .82); animation: fade 1s .35s both; }
.hero__sub strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: fade 1s .5s both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.medal {
  position: relative; width: clamp(150px, 17vw, 220px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 45%, #b57f00 100%);
  color: var(--on-gold);
  box-shadow: 0 0 0 10px rgba(245, 184, 46, .15), 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: fade 1s .6s both;
}
.medal::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1.5px dashed rgba(20, 14, 0, .35); }
.medal__n { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(3.4rem, 6vw, 5rem); line-height: .8; }
.medal__n sup { font-size: .38em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.medal__t { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; font-weight: 700; }
.medal__ring { position: absolute; inset: -30px; overflow: visible; animation: spin 40s linear infinite; }
.medal__ring text { font-family: var(--mono); font-size: 7.2px; letter-spacing: 0; fill: rgba(255, 255, 255, .7); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  display: none;
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__scroll span { width: 1px; height: 28px; background: linear-gradient(rgba(255, 255, 255, .6), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* No spot that avoids both the faces and the full-width title; the "1. mesto" pill says it. */
  .hero .medal { display: none; }
}
@media (max-width: 760px) {
  /* Photo starts under the nav bar so the bar never covers heads. */
  /* ...and trim the empty sides of the photo (people stand between 18% and 80%
     of its width) so they are larger on small screens. */
  .hero { --hero-photo-top: var(--nav-h); --hero-photo-h: calc(100vw * 1056 / 1220); }
  .hero__media { aspect-ratio: 1220 / 1056; }
  .hero__kicker { font-size: .68rem; letter-spacing: .08em; }
  .hero__scroll { display: none; }
  .hero__title .outline { -webkit-text-stroke-width: 1.5px; }
}

/* Page hero (subpages) */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero__title { font-size: clamp(2.8rem, 9vw, 7.6rem); }
.page-hero .lead { margin-top: 28px; }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 65%); z-index: -1;
}

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); color: var(--on-gold); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .1); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__item { display: flex; align-items: center; gap: 28px; padding: 16px 14px; font-stretch: 120%; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; white-space: nowrap; letter-spacing: .01em; }
.ticker__item::after { content: "✦"; font-size: .8rem; margin-left: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .lead { justify-self: end; }
.section__head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section__head--center .lead { justify-self: center; }
.section__num { font-family: var(--mono); font-size: .76rem; color: var(--gold-ink); letter-spacing: .14em; }
@media (max-width: 860px) {
  .section__head { grid-template-columns: 1fr; }
  .section__head .lead { justify-self: start; }
}

/* ---------- Victory / story ---------- */
.story { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story__text p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }
.story__text p:first-child { color: var(--text); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 500; }
.story__text strong { color: var(--text); }
.story__quote {
  margin: 36px 0 0; padding: 26px 28px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.story__quote p { color: var(--text) !important; font-size: 1.1rem !important; font-weight: 500 !important; margin: 0 0 .6em; font-style: italic; }
.story__quote cite { font-style: normal; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.trophy {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.trophy__img { aspect-ratio: 4 / 5; background: #ecebe6; overflow: hidden; }
.trophy__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; cursor: zoom-in; }
.trophy__cap { padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.trophy__cap .h3 { margin: 0; }
.trophy__cap small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.flags { display: flex; align-items: center; gap: 6px; font-size: 1.6rem; line-height: 1; white-space: nowrap; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font); }
.flags span { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .trophy { position: relative; top: 0; max-width: 460px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.stat__n em { font-style: normal; color: var(--gold-ink); }
.stat__l { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; margin-top: clamp(56px, 8vw, 96px); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; pointer-events: none;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.gallery figure:hover figcaption, .gallery figure:hover::after { opacity: 1; transform: none; }
.g-a { grid-column: span 7; grid-row: span 4; }
.g-b { grid-column: span 5; grid-row: span 2; }
.g-c { grid-column: span 5; grid-row: span 2; }
.g-d { grid-column: span 4; grid-row: span 3; }
.g-e { grid-column: span 4; grid-row: span 3; }
.g-f { grid-column: span 4; grid-row: span 3; }
.g-g { grid-column: span 6; grid-row: span 3; }
.g-h { grid-column: span 6; grid-row: span 3; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery figure { grid-column: span 1; grid-row: span 1; }
  .gallery .g-a, .gallery .g-g { grid-column: span 2; grid-row: span 2; }
  .gallery .g-d, .gallery .g-e { grid-row: span 2; }
  .gallery figcaption { opacity: 1; transform: none; font-size: .6rem; }
  .gallery figure::after { opacity: 1; }
}

/* Mayor */
.mayor { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: clamp(72px, 10vw, 128px); }
.mayor__doc { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transform: rotate(-2deg); transition: transform .4s ease; max-width: 420px; }
.mayor__doc:hover { transform: rotate(0) scale(1.01); }
.mayor__doc img { width: 100%; height: auto; cursor: zoom-in; }
.mayor blockquote { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 500; text-wrap: pretty; }
.mayor blockquote::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.mayor figcaption { margin-top: 20px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .mayor { grid-template-columns: 1fr; }
  .mayor__doc { max-width: 320px; }
}

/* ---------- Robot ---------- */
.robot { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.robot__gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.robot__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 3 / 2; }

/* Slideshow */
.slider__track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline-offset: -3px; }
.slider__slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s, background-color .2s;
}
.slider__btn .icon { width: 20px; height: 20px; }
.slider__btn:hover { background: rgba(0, 0, 0, .7); }
.slider__prev { left: 14px; }
.slider__next { right: 14px; }
.robot__media:hover .slider__btn, .slider__btn:focus-visible { opacity: 1; }
@media (hover: none) { .slider__btn { opacity: 1; width: 38px; height: 38px; } }
.slider__count { position: absolute; top: 16px; right: 16px; pointer-events: none; }
.slider__count b { font-weight: 700; }
.slider__thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; scroll-behavior: smooth; }
.slider__thumb {
  flex: 0 0 auto; width: 84px; aspect-ratio: 3 / 2; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--surface); opacity: .55; transition: opacity .2s, border-color .2s;
}
.slider__thumb img { width: 100%; height: 100%; object-fit: cover; }
.slider__thumb:hover { opacity: .9; }
.slider__thumb.is-active { opacity: 1; border-color: var(--gold); }
.robot__tag { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .15);
}
.chip--gold { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 3px rgba(52, 210, 123, .25); }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, transform .3s;
}
.spec:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.spec__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.spec__icon .icon { width: 20px; height: 20px; }
.spec__k { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec__v { font-stretch: 112%; font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.spec__d { font-size: .92rem; color: var(--muted); margin: 0; }
.pipeline {
  grid-column: 1 / -1; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.pipeline__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pipeline__node { padding: 8px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.pipeline__node--hot { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.pipeline__arrow { color: var(--faint); font-family: var(--mono); }
@media (max-width: 960px) {
  .robot { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.member__photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--surface-2); position: relative; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); transition: filter .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.member:hover .member__photo img { filter: none; transform: scale(1.04); }
.member__role {
  position: absolute; top: 16px; left: 16px;
}
.member__body { padding: 22px 24px 26px; }
.member__name { font-stretch: 118%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; margin: 0 0 10px; }
.member__body p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.member--champ .member__photo::after {
  content: "Svetovni prvak 2026"; position: absolute; right: 16px; top: 16px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: var(--gold); color: var(--on-gold); padding: 6px 10px; border-radius: 999px;
}
html[lang="en"] .member--champ .member__photo::after { content: "World champion 2026"; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .team { grid-template-columns: 1fr; } }

.join {
  margin-top: 20px; padding: 28px clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.join .h3 { margin: 0 0 4px; }
.join p { margin: 0; color: var(--muted); }

/* ---------- History timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); position: relative; }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: .9; letter-spacing: -.02em; color: var(--faint); transition: color .3s; }
.tl-item:hover .tl-year { color: var(--text); }
.tl-body { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.tl-place { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tl-body h3, .tl-title { font-stretch: 110%; font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 0 0 6px; }
.tl-body p { margin: 0; color: var(--muted); max-width: 60ch; }
.tl-badge { justify-self: end; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.badge--gold { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.badge--silver { border-color: var(--gold); color: var(--gold-ink); }
.tl-item--now .tl-year { color: var(--gold-ink); }
.tl-more { margin: 28px 0 0; }
.tl-item--now { background: linear-gradient(90deg, var(--gold-soft), transparent 70%); }
@media (max-width: 700px) {
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .tl-body { grid-template-columns: 1fr; }
  .tl-badge { justify-self: start; margin-top: 8px; }
}


.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; }
.value { background: var(--bg-2); padding: 32px; }
.section:not(.section--alt) .value { background: var(--bg); }
.value .h3 { margin-top: 18px; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }
.value .icon { width: 26px; height: 26px; color: var(--gold-ink); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- Sponsors ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sponsor-tile {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: #fff; color: #0b0f1a; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.sponsor-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sponsor-tile__logo { flex: 1; display: grid; place-items: center; padding: 30px 24px; min-height: 150px; }
.sponsor-tile__logo img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.sponsor-tile__meta { padding: 12px 16px; border-top: 1px solid #ecebe6; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; }
.sponsor-tile__meta .icon { width: 14px; height: 14px; color: #8a90a0; transition: transform .25s, color .25s; }
.sponsor-tile:hover .sponsor-tile__meta .icon { transform: translate(2px, -2px); color: #0b0f1a; }
@media (max-width: 1020px) { .sponsor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .sponsor-grid { grid-template-columns: 1fr 1fr; } .sponsor-tile__logo { min-height: 120px; padding: 22px 16px; } .sponsor-tile__logo img { max-height: 48px; } }

.thanks {
  margin-top: 20px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.thanks p { color: var(--muted); margin: 0; }
.thanks .h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 118%; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 14px; }
.thanks__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 860px) { .thanks { grid-template-columns: 1fr; } .thanks__cta { justify-content: flex-start; } }

/* Sponsor page */
.partner-list { display: grid; gap: 16px; }
.partner {
  display: grid; grid-template-columns: 300px 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s;
}
.partner:hover { border-color: var(--line-strong); }
.partner__logo { background: #fff; border-radius: var(--radius); display: grid; place-items: center; height: 150px; padding: 24px; }
.partner__logo img { max-height: 70px; max-width: 100%; width: auto; }
.partner__k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.partner h3 { font-stretch: 118%; font-weight: 800; font-size: 1.8rem; text-transform: uppercase; margin: 0 0 6px; line-height: 1; }
.partner p { color: var(--muted); margin: 0; max-width: 56ch; }
@media (max-width: 860px) {
  .partner { grid-template-columns: 1fr; }
  .partner__logo { height: 130px; }
}

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: b; }
.benefit { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: b; position: relative; }
.benefit::before { content: "0" counter(b); font-family: var(--mono); font-size: .74rem; color: var(--gold-ink); letter-spacing: .1em; }
.benefit .icon { width: 28px; height: 28px; color: var(--text); display: block; margin: 26px 0 18px; }
.benefit p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1020px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.showcase figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--surface); }
.showcase img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.showcase figure { min-height: 460px; }
.showcase figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; }
.showcase figcaption strong { display: block; font-stretch: 115%; font-size: 1.15rem; }
.showcase figcaption span { font-size: .88rem; opacity: .8; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase figure { min-height: 0; aspect-ratio: 4 / 3; }
}

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.way { padding: 32px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.way--hot { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.way--hot p, .way--hot li { color: rgba(20, 14, 0, .78) !important; }
.way__k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.way h3 { font-stretch: 118%; font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; margin: 14px 0 12px; }
.way p { color: var(--muted); font-size: .95rem; }
.way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.way li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.way li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-ink); }
.way--hot li .icon { color: var(--on-gold); }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }

.pdf-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s;
}
.pdf-card:hover { border-color: var(--gold); }
.pdf-card__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.pdf-card__ic .icon { width: 22px; height: 22px; }
.pdf-card strong { display: block; }
.pdf-card span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: var(--on-gold); padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.cta-band .h2 { max-width: 16ch; }
.cta-band p { max-width: 54ch; font-size: 1.15rem; color: rgba(20, 14, 0, .78); }
.cta-band__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.btn--dark { background: #0a1f52; color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: #06143a; }
.btn--outline-dark { border-color: rgba(20, 14, 0, .35); color: var(--on-gold); }
.btn--outline-dark:hover { border-color: var(--on-gold); transform: translateY(-2px); }
.cta-band__big { position: absolute; right: -2vw; bottom: -4vw; font-stretch: 125%; font-weight: 900; font-size: 26vw; line-height: .8; color: rgba(20, 14, 0, .06); pointer-events: none; user-select: none; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.contact__list li { background: var(--bg); padding: 18px 0; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; }
.section--alt .contact__list li { background: var(--bg-2); }
.contact__list .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__list a:hover { color: var(--gold-ink); }
.socials { display: flex; gap: 8px; margin-top: 28px; }
.socials a { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.socials .icon { width: 18px; height: 18px; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: .85rem; color: var(--faint); margin: 0; }
.form .btn { width: 100%; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact__list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 44px; width: auto; filter: var(--logo-filter); margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 36ch; font-size: .95rem; }
.footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .95rem; opacity: .85; transition: opacity .2s, color .2s; }
.footer ul a:hover { opacity: 1; color: var(--gold-ink); }
.footer__word { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: min(11.6vw, 9.4rem); line-height: .8; letter-spacing: -.03em; margin: 64px 0 28px; color: transparent; -webkit-text-stroke: 1px var(--line-strong); white-space: nowrap; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--faint); padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- News (index + articles) ---------- */
.news { padding-top: 0; }
.news-years {
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px; margin: 0 0 clamp(32px, 5vw, 56px); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.news-years::-webkit-scrollbar { display: none; }
.news-years__btn {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.news-years__btn span { font-weight: 500; opacity: .6; margin-left: 4px; }
.news-years__btn:hover { color: var(--text); border-color: var(--line-strong); }
.news-years__btn.is-active { background: var(--gold); color: var(--on-gold); }
.news-years__btn.is-active span { opacity: .75; }

.news-year { display: grid; grid-template-columns: 140px 1fr; gap: 24px 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.news-year[hidden] { display: none; }
.news-year__label { margin: 0; font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: .9; letter-spacing: -.02em; color: var(--faint); position: sticky; top: calc(var(--nav-h) + 90px); align-self: start; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.news-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.news-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); }
.news-card__img--empty span { font-stretch: 125%; font-weight: 900; font-size: 3rem; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.news-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news-card__meta .badge { font-size: .62rem; padding: 3px 9px; }
.news-card__title { margin: 0; font-stretch: 108%; font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.news-card__excerpt { margin: 0; font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .news-year { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .news-year__label { position: static; }
  .news-years { border-radius: 16px; }
}

.article { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 9vw, 120px); }
.article__head { max-width: 860px; }
.article__back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; transition: color .2s; }
.article__back:hover { color: var(--gold-ink); }
.article__back .icon { width: 16px; height: 16px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.article__title { margin: 0; font-stretch: 118%; font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }
.article__body { max-width: 860px; margin-top: clamp(32px, 5vw, 56px); }

.prose { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.prose > * { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose strong { color: var(--text); }
.prose a { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figure { margin: 1.6em 0; max-width: 100%; }
.prose figure img { width: auto; max-width: 100%; max-height: 640px; height: auto; border-radius: var(--radius); cursor: zoom-in; background: var(--surface-2); }
.prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); }
.prose .news-gallery { max-width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 1.6em 0; }
.prose .news-gallery figure { margin: 0; }
.prose .news-gallery img { width: 100%; height: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.prose .news-video { max-width: 100%; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.prose .news-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.article-pager { max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(48px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.article-pager__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s; }
.article-pager__item:hover { border-color: var(--gold); }
.article-pager__item--next { text-align: right; }
.article-pager__item--empty { visibility: hidden; }
.article-pager__k { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.article-pager__t { font-weight: 700; line-height: 1.25; }
.article-pager__d { font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) { .article-pager { grid-template-columns: 1fr; } .article-pager__item--next { text-align: left; } .article-pager__item--empty { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 14, 44, .93);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100svh - 120px); width: auto; height: auto; border-radius: 12px; object-fit: contain; transform: scale(.97); transition: transform .3s; }
.lightbox.is-open img { transform: none; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: rgba(255, 255, 255, .75); font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 0 70px; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn .icon { width: 20px; height: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } .lightbox__cap { bottom: 72px; padding: 0 16px; } }

/* ---------- Page transition ----------
   Arriving: a dark panel wipes up to reveal a blue "SERŠ TEAM" panel, which
   then wipes up to reveal the page. Leaving (internal links): the dark panel
   slides up over the page first, so the two halves join into one motion. */
.pt { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.pt__brand, .pt__ink { position: absolute; inset: 0; will-change: transform; }
.pt__brand {
  background: #1f55e0; display: grid; place-items: center;
  animation: ptOut .585s cubic-bezier(.85, 0, .15, 1) .49s forwards;
}
.pt__brand span {
  font-family: var(--font); font-stretch: 75%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.5rem, 16vw, 11rem); line-height: .86; letter-spacing: -.01em; color: #fff;
}
.pt__brand span b { display: block; color: #0a1f52; font-weight: 900; }
.pt__ink { z-index: 2; background: #05091a; animation: ptOut .585s cubic-bezier(.85, 0, .15, 1) .08s forwards; }
@keyframes ptOut { to { transform: translateY(-100%); } }
@keyframes ptIn { from { transform: translateY(100%); } to { transform: none; } }

.pt.is-leaving { pointer-events: auto; }
.pt.is-leaving .pt__brand { animation: none; transform: translateY(100%); }
.pt.is-leaving .pt__ink { animation: ptIn .38s cubic-bezier(.85, 0, .15, 1) forwards; }

@media (prefers-reduced-motion: reduce) { .pt { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold); border: 0; display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
