/* ============================================
   Gimnazija "Stojan Cerović" Nikšić
   Moderna implementacija — 2026
   ============================================ */

/* -------- Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

/* -------- Design Tokens -------- */
:root {
  /* Brand */
  --navy-900: #06142e;
  --navy-800: #0b1f3b;
  --navy-700: #132a52;
  --navy-600: #1d3a6e;
  --gold-500: #d4a547;
  --gold-400: #e1b863;
  --gold-600: #b8892f;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;

  /* Neutrals */
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-alt: #f4f3ee;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-soft: #eef0f3;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 4px 10px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 10px 30px -10px rgba(15,23,42,.15), 0 4px 10px -4px rgba(15,23,42,.08);
  --shadow-lg: 0 25px 60px -15px rgba(11,31,59,.25), 0 10px 20px -8px rgba(11,31,59,.12);
  --shadow-gold: 0 20px 40px -20px rgba(212,165,71,.6);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Transitions */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --transition: .4s var(--ease);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --header-h: 72px;
}

/* -------- Typography -------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); }
h4 { font-size: 1.125rem; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); line-height: 1.65; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-600);
  padding: .45rem 1rem;
  border: 1px solid rgba(212,165,71,.3);
  background: rgba(212,165,71,.08);
  border-radius: var(--radius-full);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,71,.2);
}

.section-title {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  margin-bottom: 3rem;
}
.section-title.center { align-items: center; text-align: center; margin-inline: auto; max-width: 700px; }
.section-title h2 {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p { max-width: 62ch; }

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.005em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 25px 50px -15px rgba(212,165,71,.8); }
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-dark {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-dark:hover { background: var(--navy-700); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid rgba(11,31,59,.18);
}
.btn-ghost:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.btn-light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }

.btn .arrow {
  display: inline-flex;
  transition: transform var(--transition);
}
.btn:hover .arrow { transform: translateX(4px); }

/* -------- Enrollment alert banner (above header) -------- */
.alert-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-500));
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  color: var(--navy-900);
  padding: .5rem 1rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform .4s var(--ease);
}
.alert-bar.is-hidden { transform: translateY(-100%); }
.alert-bar .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #d64545;
  animation: pulseRed 1.6s ease-in-out infinite;
}
@keyframes pulseRed { 0%, 100% { box-shadow: 0 0 0 0 rgba(214,69,69,.7); } 50% { box-shadow: 0 0 0 8px rgba(214,69,69,0); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.alert-bar a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.alert-bar .close-alert {
  position: absolute; right: .5rem; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--navy-900);
  font-size: .9rem;
  opacity: .7;
}
.alert-bar .close-alert:hover { opacity: 1; background: rgba(0,0,0,.08); }

body.has-alert .site-header { top: 36px; }
body.has-alert .hero { padding-top: calc(var(--header-h) + 36px + 1rem); }

/* -------- Header -------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease), top .4s var(--ease);
}
/* Transparent state on dark hero — use white text */
body.has-dark-hero .site-header:not(.is-scrolled) .brand .name strong { color: #fff; }
body.has-dark-hero .site-header:not(.is-scrolled) .brand .name span { color: rgba(255,255,255,.7); }
body.has-dark-hero .site-header:not(.is-scrolled) .brand-text strong { color: #fff; }
body.has-dark-hero .site-header:not(.is-scrolled) .brand-text span { color: rgba(255,255,255,.7); }
body.has-dark-hero .site-header:not(.is-scrolled) .nav-list a { color: rgba(255,255,255,.85); }
body.has-dark-hero .site-header:not(.is-scrolled) .nav-list a:hover { color: #fff; background: rgba(255,255,255,.12); }
body.has-dark-hero .site-header:not(.is-scrolled) .nav-list a.active { color: #fff; background: rgba(212,165,71,.22); }
body.has-dark-hero .site-header:not(.is-scrolled) .hamburger { background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.has-dark-hero .site-header:not(.is-scrolled) .hamburger span { background: #fff; }
body.has-dark-hero .site-header:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }

.site-header.is-scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 10px 30px -20px rgba(15,23,42,.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  max-width: 1400px;
  margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 44px; width: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.08); }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-display);
}
.brand-text strong {
  font-size: .95rem;
  color: var(--navy-900);
  letter-spacing: -.01em;
  font-weight: 700;
}
.brand-text span {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}
@media (max-width: 480px) {
  .brand-text strong { font-size: .82rem; }
  .brand-text span { font-size: .62rem; }
}

.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-list a {
  position: relative;
  padding: .55rem 1rem;
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover { color: var(--navy-900); background: rgba(11,31,59,.05); }
.nav-list a.active { color: var(--navy-900); background: rgba(212,165,71,.12); }
.nav-list a.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--gold-500);
}

/* ===== Dropdown triggers (desktop) ===== */
.nav-list li { list-style: none; }
.nav-has-dropdown { position: relative; }
.nav-trigger {
  position: relative;
  padding: .55rem 1rem;
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: inherit;
  transition: color var(--transition), background var(--transition);
}
.nav-trigger:hover,
.nav-has-dropdown.is-open .nav-trigger,
.nav-has-dropdown:hover .nav-trigger {
  color: var(--navy-900);
  background: rgba(11,31,59,.05);
}
.nav-trigger.is-parent-active {
  color: var(--navy-900);
  background: rgba(212,165,71,.12);
}
.nav-trigger.is-parent-active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--gold-500);
}
.nav-chevron {
  transition: transform .35s var(--ease);
}
.nav-has-dropdown.is-open .nav-chevron,
.nav-has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dark-hero variant */
body.has-dark-hero .site-header:not(.is-scrolled) .nav-trigger { color: rgba(255,255,255,.85); }
body.has-dark-hero .site-header:not(.is-scrolled) .nav-trigger:hover,
body.has-dark-hero .site-header:not(.is-scrolled) .nav-has-dropdown.is-open .nav-trigger,
body.has-dark-hero .site-header:not(.is-scrolled) .nav-has-dropdown:hover .nav-trigger {
  color: #fff;
  background: rgba(255,255,255,.12);
}
body.has-dark-hero .site-header:not(.is-scrolled) .nav-trigger.is-parent-active {
  color: #fff;
  background: rgba(212,165,71,.22);
}

/* ===== Dropdown panel ===== */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 300px;
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(11,31,59,.06);
  border-radius: 18px;
  box-shadow:
    0 25px 50px -20px rgba(11,31,59,.35),
    0 10px 20px -10px rgba(11,31,59,.15),
    0 0 0 1px rgba(255,255,255,.5) inset;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .3s var(--ease),
    transform .35s var(--ease),
    visibility .3s;
  z-index: 110;
}
/* Invisible bridge so hover doesn't break when crossing gap */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 12px;
}
/* Tiny pointer arrow */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: inherit;
  border-left: 1px solid rgba(11,31,59,.06);
  border-top: 1px solid rgba(11,31,59,.06);
  border-top-left-radius: 3px;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.is-open .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.nav-dd-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  color: var(--ink);
  transition: all .25s var(--ease);
  position: relative;
}
.nav-dd-item + .nav-dd-item { margin-top: 2px; }
.nav-dd-item:hover {
  background: linear-gradient(135deg, rgba(212,165,71,.1), rgba(11,31,59,.04));
  transform: translateX(2px);
}
.nav-dd-item.active {
  background: linear-gradient(135deg, rgba(212,165,71,.18), rgba(212,165,71,.06));
  color: var(--navy-900);
}
.nav-dd-ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,165,71,.18), rgba(212,165,71,.06));
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.nav-dd-ic svg { width: 18px; height: 18px; }
.nav-dd-item:hover .nav-dd-ic {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}
.nav-dd-item.active .nav-dd-ic {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
}
.nav-dd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}
.nav-dd-text strong {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -.005em;
}
.nav-dd-text span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-cta { display: inline-flex; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  align-items: center; justify-content: center;
  position: relative;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--navy-900);
  position: absolute;
  transition: transform .4s var(--ease), top .4s var(--ease), opacity .3s;
  border-radius: 2px;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile nav — grid with icons, modern */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, #040d1f 100%);
  color: #fff;
  z-index: 99;
  padding: calc(var(--header-h) + 1.25rem) 1.25rem 1.5rem;
  transform: translateY(-110%);
  transition: transform .6s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 260px;
  background: radial-gradient(circle at 80% 20%, rgba(212,165,71,.25), transparent 60%);
  pointer-events: none;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.mobile-nav-list li { list-style: none; }
/* Simple (no-submenu) links — match dropdown trigger style: full-width row */
.mobile-nav-list > li > a {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > a.active {
  background: linear-gradient(135deg, rgba(212,165,71,.22), rgba(212,165,71,.08));
  border-color: rgba(212,165,71,.5);
  transform: translateX(3px);
}
.mobile-nav-list > li > a .mn-ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(212,165,71,.15);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-nav-list > li > a.active .mn-ic { background: var(--gold-500); color: var(--navy-900); }
.mobile-nav-list a span.txt { line-height: 1.2; }

/* Mobile accordion groups */
.mobile-nav-list .mn-group { list-style: none; }
.mn-group-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.mn-group-trigger:hover,
.mn-group.is-open .mn-group-trigger {
  background: linear-gradient(135deg, rgba(212,165,71,.22), rgba(212,165,71,.06));
  border-color: rgba(212,165,71,.4);
}
.mn-group.has-active .mn-group-trigger {
  background: linear-gradient(135deg, rgba(212,165,71,.22), rgba(212,165,71,.08));
  border-color: rgba(212,165,71,.5);
}
.mn-g-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.mn-g-ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(212,165,71,.15);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mn-group.has-active .mn-g-ic,
.mn-group.is-open .mn-g-ic {
  background: var(--gold-500);
  color: var(--navy-900);
}
.mn-chev {
  flex-shrink: 0;
  color: rgba(255,255,255,.7);
  transition: transform .4s var(--ease);
}
.mn-group.is-open .mn-chev { transform: rotate(180deg); color: var(--gold-400); }

.mn-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), margin-top .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-left: .75rem;
  border-left: 2px solid rgba(212,165,71,.25);
  margin-left: 1.1rem;
}
.mn-group.is-open .mn-sub {
  max-height: 500px;
  margin-top: .5rem;
}
.mn-sub a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  transition: all .25s var(--ease);
  min-height: 0 !important;
  flex-direction: row !important;
}
.mn-sub a:hover,
.mn-sub a.active {
  background: linear-gradient(135deg, rgba(212,165,71,.2), rgba(212,165,71,.06));
  border-color: rgba(212,165,71,.4);
  color: #fff;
  transform: translateX(3px);
}
.mn-sub a .mn-sub-ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(212,165,71,.12);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mn-sub a.active .mn-sub-ic { background: var(--gold-500); color: var(--navy-900); }

/* Override card look for group-wrapped layout: single items should still use 2-col grid */
.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.mobile-nav-contact strong { color: #fff; font-size: .9rem; }

/* -------- Hero (full-bleed cinematic, centered) -------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 5rem;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

/* Background slideshow */
.hero-slides {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: kenburns 12s ease-out forwards paused;
}
.hero-slide.is-active img { animation-play-state: running; }
@keyframes kenburns {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1%, -1%); }
  100% { transform: scale(1.18) translate(-2%, -2%); }
}

/* Overlays on slideshow for readability — centered hero needs balanced dark */
.hero-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,20,46,.55) 0%, rgba(6,20,46,.45) 35%, rgba(6,20,46,.85) 100%);
}
.hero-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(6,20,46,.55), rgba(6,20,46,.25) 60%, transparent 90%);
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent, black 40%, black 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 40%, black 60%, transparent);
  opacity: .5;
}

/* Content positioning */
.hero .container.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  display: flex;
  justify-content: center;
}
.hero-text {
  max-width: 860px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-text .hero-cta { justify-content: center; }

/* Slide indicators - bottom center, progress bars */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 3;
}
.hero-dot {
  width: 40px; height: 3px;
  background: rgba(255,255,255,.25);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: width .4s var(--ease);
}
.hero-dot::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--gold-500);
  transition: width .2s linear;
}
.hero-dot.is-active { width: 60px; }
.hero-dot.is-active::before {
  animation: slideProgress 5.2s linear forwards;
}
@keyframes slideProgress { from { width: 0; } to { width: 100%; } }

/* Slide counter */
.hero-counter {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 3;
  font-family: var(--font-display);
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .15em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-counter strong { color: #fff; font-size: 1.1rem; font-weight: 700; }
.hero-counter .bar { width: 30px; height: 1px; background: rgba(255,255,255,.3); }
.hero-location {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .82rem;
  color: rgba(255,255,255,.95);
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
  font-weight: 500;
}
.hero-location .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,71,.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(212,165,71,.3); } 50% { box-shadow: 0 0 0 7px rgba(212,165,71,.1); } }

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  text-shadow: 0 4px 30px rgba(6,20,46,.4);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.hero h1 .accent {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 50%, var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.01em;
  text-shadow: none;
}
.hero .lead {
  color: rgba(255,255,255,.92);
  max-width: 58ch;
  margin-bottom: 2.25rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  text-shadow: 0 2px 20px rgba(6,20,46,.4);
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem 1rem;
  padding: 1.4rem 1.75rem;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--radius-lg);
  max-width: 720px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.3);
}
.hero-stat { position: relative; padding-left: 1rem; }
.hero-stat:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0; top: 10%;
  width: 1px; height: 80%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.2), transparent);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gold-400);
  line-height: 1;
}
.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.78);
  margin-top: .4rem;
  letter-spacing: .04em;
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  z-index: 2;
}
.hero-scroll .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: lineDown 2s ease-in-out infinite;
}
@keyframes lineDown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.01% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* -------- Page hero (inner pages) -------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  animation: heroParallax 20s ease-in-out infinite alternate;
  opacity: .55;
}
@keyframes heroParallax {
  0% { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1.5%, -1%); }
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(6,20,46,.85), rgba(11,31,59,.7) 60%, rgba(11,31,59,.85)),
    radial-gradient(600px circle at 80% 10%, rgba(212,165,71,.22), transparent 55%),
    radial-gradient(500px circle at 10% 100%, rgba(59,130,246,.18), transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}
.page-hero h1 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-400);
}
.page-hero p { color: rgba(255,255,255,.8); max-width: 62ch; margin-top: 1rem; }
.breadcrumbs {
  display: flex; gap: .5rem; align-items: center;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
}
.breadcrumbs a:hover { color: var(--gold-400); }
.breadcrumbs span { opacity: .5; }

/* -------- Cards / Features -------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-4-fixed { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(212,165,71,.15), rgba(212,165,71,.05));
  color: var(--gold-600);
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { margin-bottom: .5rem; }

/* Program cards (smjerovi) */
.program-card {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: all .5s var(--ease);
  isolation: isolate;
}
.program-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-card:hover::before { opacity: 1; }
.program-card:hover h3, .program-card:hover p, .program-card:hover .pc-num { color: #fff; }
.program-card:hover .pc-num { opacity: .3; }
.program-card:hover .pc-more { color: var(--gold-400); }

.pc-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: .6;
  transition: color .5s var(--ease), opacity .5s var(--ease);
  letter-spacing: -.05em;
}
.program-card h3, .program-card p { transition: color .5s var(--ease); }
.program-card p { margin: .75rem 0 1.25rem; font-size: .95rem; }
.pc-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 600; color: var(--gold-600);
  transition: color .5s var(--ease), gap .3s var(--ease);
}
.program-card:hover .pc-more { gap: .7rem; }

/* Step / process cards */
.step-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  text-align: left;
  transition: all var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.step-num {
  width: 48px; height: 48px;
  background: var(--navy-900);
  color: var(--gold-400);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed var(--gold-500);
  opacity: .6;
}
.step-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.step-card p { font-size: .95rem; }

/* News cards */
.news-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}
.news-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,20,46,.3));
}
.news-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.news-card .date {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.news-card h3 { font-size: 1.1rem; line-height: 1.35; }
.news-card:hover h3 { color: var(--navy-700); }
.news-card .read-more {
  margin-top: auto;
  font-size: .85rem; font-weight: 600; color: var(--gold-600);
  display: inline-flex; align-items: center; gap: .35rem;
}

/* -------- Featured about split -------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-split:hover .about-media img { transform: scale(1.04); }
.about-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(210deg, transparent 40%, rgba(11,31,59,.35));
}
.about-media .tag {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-900);
  display: flex; align-items: center; gap: .5rem;
}
.about-media .tag .stamp {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}

.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text .stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.about-text .stat {
  padding: 1.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.about-text .stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.03em;
  line-height: 1;
}
.about-text .stat .label { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* -------- Gallery (uniform grid) -------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--surface-alt);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,20,46,.75) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .view {
  position: absolute;
  bottom: .7rem; left: .7rem; right: .7rem;
  padding: .5rem .9rem;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 600;
  color: var(--navy-900);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  gap: .35rem;
}
.gallery-item:hover .view { opacity: 1; transform: translateY(0); }
.gallery-item .view svg { width: 14px; height: 14px; }

/* Infinite scroll sentinel */
.gallery-sentinel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: .9rem;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.gallery-sentinel.is-active { opacity: 1; }
.gallery-sentinel.is-done {
  opacity: 1;
  color: var(--navy-900);
  font-weight: 600;
}
.gallery-sentinel.is-done .gs-spinner { display: none; }
.gs-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: lbSpin .9s linear infinite;
}

/* Fade in for gallery items when loaded */
.gallery-item { opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); transform: translateY(10px); }
.gallery-item.in { opacity: 1; transform: translateY(0); }

/* -------- Lightbox (rich, with controls) -------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(4, 12, 28, .96);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  flex-direction: column;
}
.lightbox.is-open { display: flex; animation: fadeIn .3s ease; }
.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: transform .4s var(--ease);
  object-fit: contain;
}
.lightbox-img.is-zoomed { cursor: zoom-out; transform: scale(1.6); }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
}
.lb-btn:hover { background: rgba(255,255,255,.22); transform: scale(1.08); }
.lb-btn:active { transform: scale(.95); }
.lb-prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

.lightbox-topbar {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.lb-counter {
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .1em;
}
.lb-counter strong { color: #fff; font-size: 1.1rem; }
.lightbox-controls { display: flex; gap: .5rem; }
.lb-tool {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.lb-tool:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.lb-close { background: rgba(214, 69, 69, .25); border-color: rgba(214,69,69,.4); }
.lb-close:hover { background: rgba(214, 69, 69, .45); }

.lightbox-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  padding: .5rem;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  width: 60px; height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  opacity: .4;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.lb-thumb.is-active { opacity: 1; border-color: var(--gold-500); }
.lb-thumb:hover { opacity: .85; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Loading state */
.lb-loading {
  position: absolute;
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: lbSpin .9s linear infinite;
  opacity: 0;
}
.lb-loading.show { opacity: 1; }
@keyframes lbSpin { to { transform: rotate(360deg); } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Toast (for share copy success) */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-900);
  color: #fff;
  padding: .8rem 1.25rem;
  border-radius: var(--radius);
  z-index: 1100;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .lightbox-stage { height: calc(100vh - 140px); }
  .lb-btn { width: 44px; height: 44px; }
  .lightbox-thumbs { display: none; }
}

/* -------- Document preview modal -------- */
.doc-viewer {
  position: fixed; inset: 0;
  background: rgba(4, 12, 28, .95);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.doc-viewer.is-open {
  display: flex;
  animation: fadeIn .3s ease;
}
.dv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  background: rgba(6, 20, 46, .65);
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 1rem;
  flex-wrap: wrap;
}
.dv-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  flex: 1;
}
.dv-title svg {
  width: 22px; height: 22px;
  color: var(--gold-400);
  flex-shrink: 0;
}
.dv-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dv-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.dv-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  transition: all var(--transition);
}
.dv-btn:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.dv-btn.dv-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-color: transparent;
}
.dv-btn.dv-primary:hover { box-shadow: 0 15px 30px -10px rgba(212,165,71,.6); }
.dv-btn.dv-close {
  background: rgba(214, 69, 69, .22);
  border-color: rgba(214, 69, 69, .4);
  padding: .55rem .75rem;
}
.dv-btn.dv-close:hover { background: rgba(214, 69, 69, .4); }
.dv-frame-wrap {
  flex: 1;
  padding: 1rem;
  display: flex;
  background: rgba(0,0,0,.5);
  overflow: hidden;
  position: relative;
}
.dv-frame {
  width: 100%; height: 100%;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: opacity .3s var(--ease);
}
.dv-frame[hidden] { display: none; }

/* Image viewer with zoom/pan */
.dv-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at center, rgba(20,30,50,.2), rgba(0,0,0,.5)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 10px, transparent 10px 20px);
  cursor: zoom-in;
  user-select: none;
  touch-action: none;
}
.dv-img-wrap.is-zoomed { cursor: grab; }
.dv-img-wrap.is-dragging { cursor: grabbing; }
.dv-img-wrap[hidden] { display: none; }
.dv-img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1), opacity .3s var(--ease);
  box-shadow: 0 25px 60px -20px rgba(0,0,0,.6);
  border-radius: 6px;
  background: #fff;
  will-change: transform;
}
.dv-img-wrap.is-dragging .dv-img { transition: none; }

/* Zoom control group */
.dv-zoom-group {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  margin-right: .5rem;
}
.dv-zoom-group[hidden] { display: none; }
.dv-zoom-group .dv-btn {
  padding: .4rem .55rem;
  background: transparent;
  border: 0;
}
.dv-zoom-group .dv-btn:hover {
  background: rgba(212,165,71,.2);
}
.dv-zoom-label {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  min-width: 42px;
  text-align: center;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.dv-loading {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.dv-loading .spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: lbSpin .9s linear infinite;
}

@media (max-width: 640px) {
  .dv-topbar { padding: .7rem .85rem; }
  .dv-title { font-size: .85rem; }
  .dv-title svg { width: 18px; height: 18px; }
  .dv-btn { padding: .5rem .8rem; font-size: .78rem; }
  .dv-btn span.label { display: none; }
  .dv-frame-wrap { padding: .5rem; }
  .dv-zoom-label { min-width: 36px; font-size: .72rem; }
  .dv-zoom-group { margin-right: .25rem; }
}

/* ============================================
   Časopis / Magazine — featured + grid + viewer
   ============================================ */

/* Floating pages in hero */
.casopis-hero { overflow: hidden; }
.ch-page {
  position: absolute;
  width: clamp(70px, 9vw, 130px);
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #fff, #f1f5f9);
  border-radius: 4px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  z-index: 1;
}
.ch-page::after {
  content: '';
  position: absolute; inset: 14px;
  background:
    linear-gradient(#dee2e6 1px, transparent 1px) 0 0 / 100% 10px,
    linear-gradient(90deg, var(--gold-500) 50%, transparent 50%) 0 0 / 30% 3px no-repeat;
  opacity: .6;
}
.ch-p1 { top: 15%; right: 8%; transform: rotate(6deg); animation: chFloat 7s ease-in-out infinite; }
.ch-p2 { top: 30%; right: 18%; transform: rotate(-10deg); animation: chFloat 9s ease-in-out infinite -2s; opacity: .8; }
.ch-p3 { bottom: 20%; right: 5%; transform: rotate(14deg); animation: chFloat 11s ease-in-out infinite -5s; opacity: .65; }
@keyframes chFloat {
  0%,100% { transform: translateY(0) rotate(var(--r,6deg)); }
  50% { transform: translateY(-15px) rotate(var(--r,6deg)); }
}
@media (max-width: 760px) {
  .ch-page { display: none; }
}

/* ===== Featured magazine ===== */
.mag-featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -30px rgba(11,31,59,.45);
}
.mag-featured::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.3), transparent 70%);
  z-index: -1;
}
.mag-featured::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  z-index: -1;
}

/* 3D Book Mockup */
.mag-book {
  position: relative;
  width: clamp(200px, 22vw, 280px);
  aspect-ratio: 3/4;
  perspective: 1500px;
  cursor: pointer;
}
.mag-book-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
  transform: rotateY(-18deg);
}
.mag-book:hover .mag-book-inner { transform: rotateY(-30deg); }
.mag-book-cover {
  position: absolute;
  inset: 0;
  border-radius: 2px 10px 10px 2px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,.6),
    inset -8px 0 16px -4px rgba(0,0,0,.3),
    inset 3px 0 0 0 rgba(255,255,255,.1);
  background: #000;
  transform: translateZ(20px);
}
.mag-book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mag-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.1) 100%);
  pointer-events: none;
  animation: magShine 5s ease-in-out infinite;
}
@keyframes magShine {
  0%,100% { opacity: .6; }
  50% { opacity: .9; }
}
.mag-book-page {
  position: absolute;
  inset: 0;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  box-shadow: 0 25px 50px -20px rgba(0,0,0,.5);
  background: #fff;
}
.mag-book-page img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mag-page-1 {
  transform: translateZ(14px) translateX(4px) translateY(4px);
  transition: transform .6s var(--ease);
}
.mag-page-2 {
  transform: translateZ(8px) translateX(8px) translateY(8px);
  transition: transform .6s var(--ease);
}
.mag-book:hover .mag-page-1 { transform: translateZ(14px) translateX(8px) translateY(4px) rotateY(-5deg); }
.mag-book:hover .mag-page-2 { transform: translateZ(8px) translateX(14px) translateY(8px) rotateY(-3deg); }

.mag-book-spine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 20px;
  background: linear-gradient(90deg, #000, #2a3550 50%, #000);
  border-radius: 2px 0 0 2px;
  transform: rotateY(-90deg) translateZ(-10px);
  transform-origin: left center;
}
.mag-book-shadow {
  position: absolute;
  bottom: -20px; left: 10%; right: 10%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.4), transparent 70%);
  filter: blur(6px);
  z-index: -1;
  transition: all .6s var(--ease);
}
.mag-book:hover .mag-book-shadow {
  left: 0; right: 0; height: 30px; bottom: -25px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
}
.mag-book-hint {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  font-size: .78rem;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: all .4s var(--ease);
  white-space: nowrap;
}
.mag-book:hover .mag-book-hint { opacity: 1; bottom: -2.5rem; }
.mag-book-hint svg { color: var(--gold-400); }

/* Meta content right side */
.mag-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.mag-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  background: rgba(212,165,71,.18);
  border: 1px solid rgba(212,165,71,.35);
  border-radius: var(--radius-full);
  color: var(--gold-400);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-self: flex-start;
}
.mag-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,71,.3);
  animation: dmPulseDot 1.5s ease-in-out infinite;
}
.mag-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
  line-height: 1;
  margin: 0;
}
.mag-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mag-sub { color: rgba(255,255,255,.85); font-size: 1rem; margin: 0; }

.mag-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.mag-stat { text-align: center; position: relative; }
.mag-stat:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.ms-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}
.ms-lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  margin-top: .3rem;
  letter-spacing: .05em;
}

.mag-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

@media (max-width: 820px) {
  .mag-featured { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mag-meta { align-items: center; }
  .mag-actions { justify-content: center; }
}

/* Hint text aligns below book */
@media (max-width: 820px) {
  .mag-book { margin: 0 auto 3rem; }
  .mag-book-hint { bottom: -2.75rem; }
}

/* =========================================
   MAGAZINE — CLOSED BOOK + FULLSCREEN READER
   ========================================= */

/* Featured wrap (closed book + meta side by side) */
.mag-feature-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}
@media (max-width: 820px) {
  .mag-feature-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ===== CLOSED BOOK (trigger) ===== */
.closed-book {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  perspective: 1600px;
}

.cb-scene {
  position: relative;
  width: clamp(220px, 26vw, 340px);
  aspect-ratio: 3/4;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.cb-book {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.closed-book:hover .cb-book {
  transform: rotateY(-24deg) rotateX(3deg);
}

/* Front cover */
.cb-cover {
  position: absolute;
  inset: 0;
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,.5),
    inset -12px 0 20px -8px rgba(0,0,0,.4),
    inset 2px 0 0 0 rgba(255,255,255,.08);
  transform: translateZ(16px);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  background: #000;
}
.cb-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.closed-book:hover .cb-cover {
  transform: translateZ(16px) rotateY(-18deg);
}

/* Gloss overlay on cover */
.cb-gloss {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.15) 0%, transparent 35%, transparent 65%, rgba(255,255,255,.08) 100%);
  pointer-events: none;
}

/* Peek pages (visible on hover) */
.cb-peek {
  position: absolute;
  inset: 0;
  border-radius: 2px 6px 6px 2px;
  background: linear-gradient(90deg, #f1f5f9 0%, #fff 8%, #f8fafc 100%);
  box-shadow:
    0 20px 40px -20px rgba(0,0,0,.4),
    inset -6px 0 12px -4px rgba(0,0,0,.1);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.cb-peek-1 { transform: translateZ(12px) rotateY(0deg); }
.cb-peek-2 { transform: translateZ(8px) rotateY(0deg); }
.cb-peek-3 { transform: translateZ(4px) rotateY(0deg); }
.closed-book:hover .cb-peek-1 { transform: translateZ(12px) rotateY(-8deg); }
.closed-book:hover .cb-peek-2 { transform: translateZ(8px) rotateY(-5deg); }
.closed-book:hover .cb-peek-3 { transform: translateZ(4px) rotateY(-2deg); }

/* Spine */
.cb-spine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 16px;
  background: linear-gradient(90deg, #0b1f3b, #132a52 50%, #0b1f3b);
  transform: rotateY(-90deg) translateZ(-8px);
  transform-origin: left center;
  border-radius: 2px 0 0 2px;
}

/* Book shadow on ground */
.cb-shadow {
  position: absolute;
  bottom: -20px;
  left: 8%; right: 8%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45), transparent 70%);
  filter: blur(8px);
  transition: all .5s var(--ease);
  z-index: -1;
}
.closed-book:hover .cb-shadow {
  left: 0; right: 0;
  height: 30px;
  bottom: -28px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%);
}

/* Click hint — only visible on hover */
.cb-hint {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -8px rgba(212,165,71,.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  pointer-events: none;
}
.closed-book:hover .cb-hint,
.closed-book:focus-visible .cb-hint {
  opacity: 1;
  transform: translateY(0);
}
/* Touch devices — show briefly on tap via JS, but kept accessible via focus */

/* Featured meta (right side of closed book) */
.mag-feature-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mfm-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: flex-start;
  padding: .45rem 1rem;
  background: rgba(212,165,71,.15);
  border: 1px solid rgba(212,165,71,.35);
  border-radius: var(--radius-full);
  color: var(--gold-600);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .mfm-chip { align-self: center; }
}
.mfm-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--navy-900);
  margin: 0;
}
.mfm-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-600);
}
.mfm-sub { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; margin: 0; max-width: 52ch; }
.mfm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  max-width: 400px;
}
@media (max-width: 820px) {
  .mfm-stats { margin: 0 auto; }
}
.mfm-stat { text-align: center; }
.mfm-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.03em;
  line-height: 1;
}
.mfm-lbl {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .3rem;
  letter-spacing: .05em;
}
.mfm-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 820px) {
  .mfm-actions { justify-content: center; }
}

/* ===== FULLSCREEN READER ===== */
.fs-reader {
  position: fixed; inset: 0;
  z-index: 2000;
  background: linear-gradient(135deg, #06101f 0%, #0a1830 50%, #0b1f3b 100%);
  display: none;
  flex-direction: column;
  animation: fadeIn .3s ease;
}
.fs-reader.is-open { display: flex; }
.fs-reader::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px circle at 20% 20%, rgba(212,165,71,.12), transparent 60%),
    radial-gradient(600px circle at 80% 80%, rgba(59,130,246,.1), transparent 60%);
  pointer-events: none;
}

.fs-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  background: rgba(6,20,46,.4);
}
.fs-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  min-width: 0;
}
.fs-title svg { color: var(--gold-400); flex-shrink: 0; }
.fs-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-actions { display: flex; gap: .5rem; }
.fs-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.fs-btn:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.fs-btn.fs-close { background: rgba(248,113,113,.2); border-color: rgba(248,113,113,.35); }
.fs-btn.fs-close:hover { background: rgba(248,113,113,.4); }

/* Stage — book centered with arrows on sides */
.fs-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.fs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.fs-arrow:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 15px 35px -10px rgba(212,165,71,.5);
}
.fs-arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.fs-arrow:disabled:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: translateY(-50%) scale(1);
  box-shadow: none;
}
.fs-arrow-left { left: 1.5rem; }
.fs-arrow-right { right: 1.5rem; }

/* Book wrap — container for StPageFlip */
.fs-book-wrap {
  position: relative;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.fs-book {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5));
  user-select: none;
  -webkit-user-select: none;
}

/* Constrain the reader stage properly */
.fs-reader { overflow: hidden; }
.fs-stage {
  min-height: 0;
  position: relative;
}
.fs-stage.is-zoomed {
  overflow: auto;
  cursor: grab;
  /* Book arrows (page flip) become harder to target when scrolling, reduce their z-index */
  padding: 0;
  display: block; /* remove centering flex so scroll works from top-left */
}
.fs-stage.is-zoomed:active { cursor: grabbing; }

/* When zoomed, hide page-flip arrows (use pan arrows instead) */
.fs-stage.is-zoomed .fs-arrow { display: none; }

/* Book element — smooth zoom transitions */
.fs-book {
  transition: transform .3s var(--ease);
}

/* Pan arrows — visible only when zoomed */
.fs-pan-arrows {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 10;
  inset: 0;
}
.fs-stage.is-zoomed ~ .fs-pan-arrows,
.fs-reader:has(.is-zoomed) .fs-pan-arrows {
  opacity: 1;
  pointer-events: none; /* container itself is passthrough */
}
.fs-pan-btn {
  position: fixed;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.15);
  transition: all .3s var(--ease);
  z-index: 15;
  pointer-events: auto;
}
.fs-pan-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px -8px rgba(0,0,0,.55), 0 0 0 3px rgba(212,165,71,.35);
}
.fs-pan-btn:active { transform: scale(.95); }

.fs-pan-up    { top: 90px; left: 50%; transform: translateX(-50%); }
.fs-pan-down  { bottom: 100px; left: 50%; transform: translateX(-50%); }
.fs-pan-left  { left: 30px; top: 50%; transform: translateY(-50%); }
.fs-pan-right { right: 30px; top: 50%; transform: translateY(-50%); }

.fs-pan-up:hover    { transform: translateX(-50%) scale(1.1); }
.fs-pan-down:hover  { transform: translateX(-50%) scale(1.1); }
.fs-pan-left:hover  { transform: translateY(-50%) scale(1.1); }
.fs-pan-right:hover { transform: translateY(-50%) scale(1.1); }

/* Default: hide pan arrows. Show only when reader has zoomed stage */
.fs-pan-btn { display: none; }
.fs-reader .fs-pan-arrows { display: none; }
.fs-reader.is-zoomed-open .fs-pan-arrows { display: block; }
.fs-reader.is-zoomed-open .fs-pan-btn { display: flex; }

@media (max-width: 640px) {
  .fs-pan-btn { width: 44px; height: 44px; }
  .fs-pan-up    { top: 80px; }
  .fs-pan-down  { bottom: 90px; }
  .fs-pan-left  { left: 15px; }
  .fs-pan-right { right: 15px; }
}

/* Zoom level indicator + divider */
.fs-zoom-level {
  padding: 0 .7rem;
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-width: 50px;
  justify-content: center;
}
.fs-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.12);
  margin: 0 .4rem;
}

@media (max-width: 640px) {
  .fs-zoom-level { padding: 0 .35rem; font-size: .75rem; min-width: 40px; }
  .fs-divider { margin: 0 .2rem; }
}

/* StPageFlip native pages — edge-to-edge images, no white margins */
.fs-book .stf__parent {
  margin: 0 auto;
  border-radius: 3px;
  overflow: visible;
  background: transparent;
}
.fs-book .stf__block {
  background: transparent;
}
.fs-book .page,
.fs-book .stf__block > div {
  background: #fff;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}
.fs-book .page img,
.fs-book .stf__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  /* Crisp rendering — avoid browser's fuzzy downscale */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
/* Device pixel ratio aware */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .fs-book .page img,
  .fs-book .stf__item img {
    image-rendering: auto; /* browser's hi-dpi rendering is better at 2x+ */
  }
}

/* Loading spinner — visible while StPageFlip initializes */
.fs-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  pointer-events: none;
  z-index: 5;
}
.fs-loading .spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: lbSpin .9s linear infinite;
}

/* Bottom bar with page info + slider */
.fs-bottombar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .9rem 2rem;
  color: #fff;
  backdrop-filter: blur(12px);
  background: rgba(6,20,46,.4);
  border-top: 1px solid rgba(255,255,255,.06);
}
.fs-page-info {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.fs-page-info .fs-cur { color: var(--gold-400); font-size: 1.1rem; }
.fs-slider { flex: 1; }
#fs-slider-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  outline: none;
}
#fs-slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212,165,71,.6);
  transition: transform .2s;
}
#fs-slider-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
#fs-slider-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(212,165,71,.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .fs-topbar { padding: .7rem 1rem; }
  .fs-title { font-size: .82rem; }
  .fs-btn { width: 36px; height: 36px; }
  .fs-stage { padding: 1rem clamp(.5rem, 3vw, 1rem); }
  .fs-arrow {
    width: 42px; height: 42px;
    background: rgba(0,0,0,.5);
  }
  .fs-arrow-left { left: .5rem; }
  .fs-arrow-right { right: .5rem; }
  .fs-book {
    aspect-ratio: 3/4;
    width: calc(100% - 1rem);
    max-height: calc(100vh - 180px);
    height: auto;
  }
  /* On narrow screens, show ONE page at a time — single portrait page */
  .fs-book::after { display: none; }
  .fs-book .fs-backdrop-left,
  .fs-book .fs-backdrop-right { width: 100%; left: 0; right: 0; border-radius: 3px; }
  .fs-leaf { left: 0; width: 100%; }
  .fs-page-num { font-size: .65rem; padding: 3px 8px; }
  .fs-bottombar { padding: .7rem 1rem; gap: .8rem; }
  .fs-page-info { font-size: .8rem; }
  .fs-page-front .fs-page-gradient,
  .fs-page-back .fs-page-gradient { background: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== ARCHIVE — v2 (index-promo style) ===== */
.mag-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.mag-v2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: linear-gradient(135deg, #2a1a4a, #1a1346 40%, #0b1f3b 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -25px rgba(26,19,70,.45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mag-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -25px rgba(26,19,70,.6);
}
.mag-v2::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.32), transparent 70%);
  z-index: -1;
  animation: dmFloat 12s ease-in-out infinite;
}
.mag-v2::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.28), transparent 70%);
  z-index: -1;
  animation: dmFloat 14s ease-in-out infinite -3s;
}

.mag-v2-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
}

.mag-v2-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  padding: .4rem 1rem;
  background: rgba(212,165,71,.18);
  border: 1px solid rgba(212,165,71,.35);
  border-radius: var(--radius-full);
  color: var(--gold-400);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mag-v2-chip svg { width: 13px; height: 13px; }

.mag-v2-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}
.mag-v2-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-400), #fff, var(--gold-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.mag-v2-meta {
  display: flex;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  flex-wrap: wrap;
}
.mag-v2-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.mag-v2-meta svg { color: var(--gold-400); }

.mag-v2-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  margin: 0;
}

.mag-v2-actions {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.mag-v2-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.mag-v2-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-1px);
}
.mag-v2-btn.primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-color: transparent;
  box-shadow: 0 10px 25px -8px rgba(212,165,71,.6);
}
.mag-v2-btn.primary:hover {
  box-shadow: 0 15px 30px -10px rgba(212,165,71,.8);
}

/* 3D book visual on right */
.mag-v2-visual {
  position: relative;
  width: clamp(140px, 16vw, 180px);
  aspect-ratio: 3/4;
  perspective: 1200px;
  flex-shrink: 0;
}
.mag-v2-book {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(4deg);
  transition: transform .7s var(--ease);
}
.mag-v2:hover .mag-v2-book { transform: rotateY(-35deg) rotateX(4deg); }
.mag-v2-cover {
  position: absolute;
  inset: 0;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,.7),
    inset -8px 0 16px -4px rgba(0,0,0,.3);
  background: #000;
  transform: translateZ(16px);
}
.mag-v2-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-v2-pages {
  position: absolute;
  inset: 0;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #e5e7eb 0%, #fff 5%, #f1f5f9 100%);
  transform: translateZ(8px) translateX(3px);
}
.mag-v2-spine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 16px;
  background: linear-gradient(90deg, #000, #2a3550);
  transform: rotateY(-90deg) translateZ(-8px);
  transform-origin: left center;
}
.mag-v2-book::after {
  content: '';
  position: absolute;
  bottom: -15px; left: 8%; right: 8%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  filter: blur(5px);
}

@media (max-width: 500px) {
  .mag-v2 { grid-template-columns: 1fr; }
  .mag-v2-visual { margin: 0 auto; }
}

/* ===== Magazine grid cards (legacy, still used as fallback) ===== */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  position: relative;
}
.mag-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}
.mag-card-book {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  overflow: hidden;
  padding: 1.75rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.mag-card-book::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212,165,71,.22), transparent 60%);
  z-index: -1;
}
.mag-card-cover {
  position: relative;
  width: clamp(120px, 50%, 180px);
  aspect-ratio: 3/4;
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  box-shadow: 0 25px 50px -15px rgba(0,0,0,.6), inset -4px 0 10px -3px rgba(0,0,0,.3);
  z-index: 2;
  transform: rotate(-4deg);
  transition: transform .5s var(--ease);
}
.mag-card:hover .mag-card-cover { transform: rotate(-6deg) scale(1.04); }
.mag-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-card-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 40%);
  pointer-events: none;
}

/* Pages behind the cover (stack effect) */
.mag-card-pages {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 50%, 180px);
  aspect-ratio: 3/4;
  z-index: 1;
}
.mag-card-page {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 0 15px 30px -10px rgba(0,0,0,.3);
  transition: transform .5s var(--ease);
}
.mag-card-page:nth-child(1) { transform: rotate(-4deg) translate(6px, 4px); opacity: .85; }
.mag-card-page:nth-child(2) { transform: rotate(-4deg) translate(10px, 8px); opacity: .7; }
.mag-card-page:nth-child(3) { transform: rotate(-4deg) translate(14px, 12px); opacity: .55; }
.mag-card:hover .mag-card-page:nth-child(1) { transform: rotate(-8deg) translate(10px, 6px); }
.mag-card:hover .mag-card-page:nth-child(2) { transform: rotate(-12deg) translate(16px, 10px); }
.mag-card:hover .mag-card-page:nth-child(3) { transform: rotate(-16deg) translate(22px, 14px); }

.mag-card-spine {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(calc(-50% - 24px), -50%) rotate(-4deg);
  width: clamp(120px, 50%, 180px);
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, rgba(0,0,0,.5), transparent 25%);
  border-radius: 2px 0 0 2px;
  pointer-events: none;
  z-index: 3;
}

.mag-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.mag-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.mag-card-badge {
  display: inline-block;
  padding: .3rem .7rem;
  background: rgba(212,165,71,.15);
  color: var(--gold-600);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.mag-card-meta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.mag-card-body h3 {
  font-size: 1.3rem;
  color: var(--navy-900);
  letter-spacing: -.02em;
  margin: 0;
}
.mag-card-body h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-600);
}
.mag-card-body p {
  font-size: .88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.mag-card-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding-top: .5rem;
}
.mag-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--navy-900);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  text-decoration: none;
}
.mag-btn:hover { background: var(--line); transform: translateY(-1px); }
.mag-btn-primary {
  flex: 1;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.mag-btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 20px 40px -10px rgba(212,165,71,.7);
}

/* Empty state for grid */
.mag-empty {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}
.mag-empty svg { color: var(--line); margin-bottom: 1rem; }
.mag-empty h3 { color: var(--navy-900); margin-bottom: .5rem; }

/* ===== Magazine viewer modal ===== */
.mag-viewer {
  position: fixed; inset: 0;
  background: rgba(4, 12, 28, .96);
  z-index: 1000;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mag-viewer.is-open {
  display: flex;
  animation: fadeIn .3s ease;
}
.mv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  background: rgba(6, 20, 46, .65);
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 1rem;
  flex-wrap: wrap;
}
.mv-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  flex: 1;
}
.mv-title svg { width: 22px; height: 22px; color: var(--gold-400); flex-shrink: 0; }
.mv-title .mv-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.mv-frame-wrap {
  flex: 1;
  padding: 1rem;
  display: flex;
  background: rgba(0,0,0,.5);
  overflow: hidden;
  position: relative;
}
.mv-frame {
  width: 100%; height: 100%;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .mv-topbar { padding: .7rem .85rem; }
  .mv-title { font-size: .85rem; }
  .mv-actions .dv-btn span.label { display: none; }
  .mv-frame-wrap { padding: .5rem; }
}

/* ===== Promo card on index ===== */
.mag-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #2a1a4a, #1a1346 40%, #0b1f3b 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -30px rgba(26,19,70,.5);
  text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mag-promo:hover {
  transform: translateY(-6px);
  box-shadow: 0 50px 100px -30px rgba(26,19,70,.6);
}
.mag-promo::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.35), transparent 70%);
  z-index: -1;
  animation: dmFloat 12s ease-in-out infinite;
}
.mag-promo::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.3), transparent 70%);
  z-index: -1;
  animation: dmFloat 14s ease-in-out infinite -3s;
}

.mp-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  padding: .45rem 1rem;
  background: rgba(212,165,71,.18);
  border: 1px solid rgba(212,165,71,.35);
  border-radius: var(--radius-full);
  color: var(--gold-400);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mp-eyebrow svg { width: 14px; height: 14px; }
.mp-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}
.mp-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-400), #fff, var(--gold-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.mp-text {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: rgba(255,255,255,.85);
  max-width: 50ch;
  margin: 0;
  line-height: 1.6;
}
.mp-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .95rem;
  margin-top: .5rem;
  align-self: flex-start;
  box-shadow: 0 15px 35px -10px rgba(212,165,71,.7);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.mag-promo:hover .mp-cta { transform: translateY(-2px); box-shadow: 0 25px 50px -15px rgba(212,165,71,.85); }
.mp-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.5), transparent 60%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
}
.mag-promo:hover .mp-cta::before { transform: translateX(100%); }

/* Right visual — 3D book */
.mp-visual {
  position: relative;
  width: clamp(180px, 25vw, 280px);
  aspect-ratio: 3/4;
  perspective: 1200px;
  flex-shrink: 0;
}
.mp-book {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(5deg);
  transition: transform .8s var(--ease);
}
.mag-promo:hover .mp-book { transform: rotateY(-35deg) rotateX(5deg); }
.mp-book-cover {
  position: absolute;
  inset: 0;
  border-radius: 2px 10px 10px 2px;
  overflow: hidden;
  box-shadow:
    0 35px 70px -15px rgba(0,0,0,.7),
    inset -8px 0 16px -4px rgba(0,0,0,.3);
  background: #000;
  transform: translateZ(18px);
}
.mp-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-book-pages {
  position: absolute;
  inset: 0;
  border-radius: 0 10px 10px 0;
  background:
    linear-gradient(90deg, #e5e7eb 0%, #fff 5%, #f1f5f9 100%);
  transform: translateZ(9px) translateX(3px);
}
.mp-book-spine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 18px;
  background: linear-gradient(90deg, #000, #2a3550);
  transform: rotateY(-90deg) translateZ(-9px);
  transform-origin: left center;
  border-radius: 2px 0 0 2px;
}
.mp-book::after {
  content: '';
  position: absolute;
  bottom: -15px; left: 8%; right: 8%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  filter: blur(6px);
}

/* Floating stickers */
.mp-sticker {
  position: absolute;
  padding: .4rem .75rem;
  background: #fff;
  color: var(--navy-900);
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 15px 30px -10px rgba(0,0,0,.4);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  z-index: 5;
}
.mp-sticker svg { color: var(--gold-500); }
.mp-sticker.ms-1 {
  top: -10px; right: -20px;
  transform: rotate(8deg);
  animation: mpSticker 4s ease-in-out infinite;
}
.mp-sticker.ms-2 {
  bottom: 10%; left: -30px;
  transform: rotate(-8deg);
  animation: mpSticker 5s ease-in-out infinite -2s;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
}
@keyframes mpSticker {
  0%,100% { transform: rotate(var(--r,8deg)) translateY(0); }
  50% { transform: rotate(var(--r,8deg)) translateY(-6px); }
}

@media (max-width: 820px) {
  .mag-promo { grid-template-columns: 1fr; text-align: center; }
  .mp-body { align-items: center; }
  .mp-eyebrow, .mp-cta { align-self: center; }
  .mp-visual { margin: 0 auto; }
}
@media (max-width: 480px) {
  .mp-sticker.ms-1 { right: -10px; }
  .mp-sticker.ms-2 { left: -10px; }
}

/* -------- Documents table -------- */
.docs-list {
  display: flex; flex-direction: column; gap: .75rem;
}
.doc-item {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.doc-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-500);
}
.doc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,165,71,.15), rgba(212,165,71,.05));
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-body { flex: 1; min-width: 0; }
.doc-body h4 { color: var(--navy-900); font-size: 1rem; margin-bottom: .15rem; font-weight: 600; }
.doc-body p { font-size: .82rem; color: var(--muted); }
.doc-action {
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}
.doc-item:hover .doc-action { color: var(--gold-600); transform: translateX(4px); }

/* -------- Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-info {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-info::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.3), transparent 70%);
  z-index: -1;
}
.contact-info h3 { color: #fff; margin-bottom: 1rem; }
.contact-info p { color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item .ic {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(212,165,71,.15);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .lbl { font-size: .78rem; color: rgba(255,255,255,.6); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: .25rem; }
.contact-item .val { color: #fff; font-weight: 500; }

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(2rem, 3.5vw, 3rem);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .95rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,71,.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* -------- Upis Mega card (home) — animated, single focused CTA -------- */
.upis-mega {
  display: block;
  position: relative;
  border-radius: clamp(18px, 2.5vw, 32px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem);
  min-height: 380px;
  display: flex;
  align-items: center;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 30px 80px -30px rgba(11,31,59,.4), 0 10px 25px -15px rgba(11,31,59,.3);
  text-decoration: none;
}
.upis-mega:hover {
  transform: translateY(-6px);
  box-shadow: 0 45px 100px -30px rgba(11,31,59,.55), 0 15px 35px -15px rgba(11,31,59,.35);
}

.mega-bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
}
.mega-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: megaFloat 14s ease-in-out infinite;
}
.mega-orb.mo-1 {
  width: 480px; height: 480px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(212,165,71,.45), transparent 70%);
}
.mega-orb.mo-2 {
  width: 380px; height: 380px;
  bottom: -120px; left: -80px;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%);
  animation-delay: -4s;
  animation-duration: 18s;
}
@keyframes megaFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.1); }
}

.mega-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: .5;
}

.mega-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mega-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mega-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: flex-start;
  padding: .55rem 1.1rem;
  background: rgba(212,165,71,.15);
  border: 1px solid rgba(212,165,71,.35);
  border-radius: var(--radius-full);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
}
.mega-eyebrow .pulse-dot { background: #ff5252; }

.mega-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}
.mega-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-400));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.mega-text {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,.82);
  max-width: 50ch;
  margin: 0;
  line-height: 1.6;
}

.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: 1.05rem 1.9rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 15px 35px -10px rgba(212,165,71,.7);
}
.mega-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.5), transparent 60%);
  transform: translateX(-100%);
  transition: transform .7s var(--ease);
}
.upis-mega:hover .mega-cta { transform: translateY(-2px) scale(1.03); box-shadow: 0 25px 50px -15px rgba(212,165,71,.85); }
.upis-mega:hover .mega-cta::before { transform: translateX(100%); }
.mega-arrow {
  display: inline-flex;
  transition: transform .3s var(--ease);
}
.upis-mega:hover .mega-arrow { transform: translateX(6px); }

/* Animated "papers" on the right */
.mega-right {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-doc {
  position: absolute;
  width: 180px;
  height: 230px;
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  box-shadow: 0 25px 50px -15px rgba(0,0,0,.4);
  transition: transform .6s var(--ease);
}
.mega-doc .md-header {
  width: 55%; height: 10px; border-radius: 3px;
  background: var(--navy-800);
  margin-bottom: .9rem;
}
.mega-doc .md-line {
  width: 100%; height: 6px; border-radius: 3px;
  background: #e5e7eb;
  margin-bottom: .6rem;
}
.mega-doc .md-line.md-l-2 { width: 85%; }
.mega-doc .md-line.md-l-3 { width: 70%; }
.mega-doc .md-check {
  position: absolute;
  bottom: .9rem; right: .9rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.mega-doc-1 {
  transform: translate(-40%, 10%) rotate(-10deg);
  z-index: 3;
  animation: docFloat1 7s ease-in-out infinite;
}
.mega-doc-2 {
  transform: translate(0%, -12%) rotate(2deg);
  z-index: 2;
  opacity: .92;
  animation: docFloat2 8s ease-in-out infinite;
}
.mega-doc-3 {
  transform: translate(40%, 12%) rotate(12deg);
  z-index: 1;
  opacity: .85;
  animation: docFloat3 9s ease-in-out infinite;
}
@keyframes docFloat1 {
  0%,100% { transform: translate(-40%, 10%) rotate(-10deg); }
  50%     { transform: translate(-42%, 5%) rotate(-12deg); }
}
@keyframes docFloat2 {
  0%,100% { transform: translate(0%, -12%) rotate(2deg); }
  50%     { transform: translate(0%, -17%) rotate(1deg); }
}
@keyframes docFloat3 {
  0%,100% { transform: translate(40%, 12%) rotate(12deg); }
  50%     { transform: translate(42%, 7%) rotate(14deg); }
}

.upis-mega:hover .mega-doc-1 { transform: translate(-50%, 8%) rotate(-14deg); }
.upis-mega:hover .mega-doc-2 { transform: translate(0%, -18%) rotate(0deg); }
.upis-mega:hover .mega-doc-3 { transform: translate(50%, 10%) rotate(16deg); }

.mega-star {
  position: absolute;
  top: -10px;
  right: 10%;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 4;
  box-shadow: 0 15px 30px -10px rgba(212,165,71,.7);
  animation: starPulse 3s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(12deg); }
}

@media (max-width: 840px) {
  .mega-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .mega-right { display: none; }
}
@media (max-width: 520px) {
  .mega-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .mega-cta { align-self: stretch; justify-content: center; width: 100%; }
}

/* -------- Upis action cards (home) — legacy -------- */
.upis-action {
  display: flex;
  gap: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.upis-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--mx, 80%) var(--my, 20%), rgba(212,165,71,.14), transparent 55%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.upis-action:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.upis-action:hover::before { opacity: 1; }

.upis-primary {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-color: transparent;
}
.upis-primary::after {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.35), transparent 70%);
  z-index: -1;
  transition: transform .8s var(--ease);
}
.upis-primary:hover::after { transform: scale(1.3); }
.upis-primary .ua-ic {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
}
.upis-primary h3 { color: #fff; }
.upis-primary p { color: rgba(255,255,255,.8); }
.upis-primary .ua-label { color: var(--gold-400); }
.upis-primary .ua-more { color: var(--gold-400); }

.upis-secondary .ua-ic {
  background: linear-gradient(135deg, rgba(212,165,71,.15), rgba(212,165,71,.05));
  color: var(--gold-600);
}
.upis-secondary h3 { color: var(--navy-900); }
.upis-secondary .ua-label { color: var(--gold-600); }
.upis-secondary .ua-more { color: var(--gold-600); }

.ua-ic {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--ease);
}
.upis-action:hover .ua-ic { transform: scale(1.08) rotate(-5deg); }

.ua-body { flex: 1; min-width: 0; }
.ua-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .4rem;
}
.ua-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.ua-body p {
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.ua-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .95rem;
  transition: gap .3s var(--ease);
}
.upis-action:hover .ua-more { gap: .7rem; }
.ua-more .arrow { transition: transform .3s var(--ease); }
.upis-action:hover .ua-more .arrow { transform: translateX(4px); }

/* -------- Social cards (IG / FB) -------- */
.social-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.sc-ic {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .5s var(--ease);
  position: relative;
}
.social-card:hover .sc-ic { transform: scale(1.08) rotate(-5deg); }

.social-ig .sc-ic {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
  box-shadow: 0 15px 35px -10px rgba(238,42,123,.5);
}
.social-ig:hover { border-color: #ee2a7b; }

.social-fb .sc-ic {
  background: linear-gradient(135deg, #1877f2, #0d5dc1);
  box-shadow: 0 15px 35px -10px rgba(24,119,242,.5);
}
.social-fb:hover { border-color: #1877f2; }

.sc-body { flex: 1; min-width: 0; }
.sc-eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: .3rem;
}
.sc-body h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.sc-body p {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
}
.sc-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .4s var(--ease);
}
.social-card:hover .sc-arrow {
  background: var(--navy-900);
  color: #fff;
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .upis-action { flex-direction: column; }
  .social-card .sc-arrow { display: none; }
}

/* =====================================
   KOLEKTIV — profesori, uprava, stručna
   ===================================== */

/* Sticky filter bar — stays at top when scrolling */
.kol-filter-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding: .9rem 0;
  margin-top: -1rem;
  box-shadow: 0 8px 24px -20px rgba(11,31,59,.2);
}

/* Filter chips */
.kol-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1rem;
}
.kol-chip {
  padding: .6rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.kol-chip svg { color: var(--muted); transition: color var(--transition); }
.kol-chip:hover {
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-1px);
}
.kol-chip.is-active {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px -10px rgba(11,31,59,.4);
}
.kol-chip.is-active svg { color: var(--gold-400); }

/* Section (category block) */
.kol-section {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.kol-section:first-child {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: 0;
}
.kol-section-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  position: relative;
  padding-left: .25rem;
}
.kol-section-ic {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px -16px rgba(11,31,59,.45), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.kol-section-ic svg {
  width: 26px; height: 26px;
}
.kol-section-ic::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid var(--gold-400);
  opacity: .35;
  pointer-events: none;
}
.kol-section-text { flex: 1; min-width: 0; }
.kol-section-eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: .35rem;
}
.kol-section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 .4rem 0;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: .85rem;
  flex-wrap: wrap;
}
.kol-section-count {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  padding: .28rem .7rem;
  border-radius: var(--radius-full);
  letter-spacing: .02em;
}
/* Grid */
.kol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 0;
}

/* Empty-category state */
.kol-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
}
.kol-empty svg { color: var(--gold-500); margin-bottom: .5rem; }
.kol-empty h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy-900);
  margin: .25rem 0 .35rem;
}
.kol-empty p { color: var(--muted); font-size: .92rem; margin: 0; }

@media (max-width: 560px) {
  .kol-section-head { flex-direction: column; gap: .75rem; }
  .kol-section-ic { width: 46px; height: 46px; border-radius: 12px; }
  .kol-section-ic svg { width: 22px; height: 22px; }
  .kol-filter-sticky { padding: .65rem 0; }
  .kol-chip { padding: .5rem .9rem; font-size: .82rem; }
}

/* Card */
.kol-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.kol-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(11,31,59,.25);
  border-color: var(--gold-500);
}

/* Photo wrapper — fixed aspect ratio for consistency */
.kol-photo-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-alt), var(--line));
}
.kol-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.kol-card:hover .kol-photo {
  transform: scale(1.06);
  filter: brightness(1.03) contrast(1.03);
}

/* Gold accent ribbon */
.kol-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  z-index: 2;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.kol-card:hover .kol-photo-wrap::before { opacity: 1; }

/* Hover overlay with CTA */
.kol-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,20,46,.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.kol-card:hover .kol-photo-overlay { opacity: 1; }
.kol-photo-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.35);
  transform: translateY(10px);
  transition: transform .4s var(--ease) .05s;
}
.kol-card:hover .kol-photo-cta { transform: translateY(0); }

/* Card body */
.kol-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.kol-role {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: .15rem;
}
.kol-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0;
}
.kol-short {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: .25rem 0 0;
  flex: 1;
}
.kol-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 0 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold-600);
  font-weight: 600;
  font-size: .85rem;
  transition: gap .3s var(--ease);
  align-self: flex-start;
}
.kol-card:hover .kol-more { gap: .6rem; }

/* Empty state */
.kol-empty {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}
.kol-empty svg { color: var(--line); margin-bottom: 1rem; }
.kol-empty h3 { color: var(--navy-900); margin-bottom: .4rem; }

/* "Continuously updating" note */
.kol-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(212,165,71,.08), rgba(11,31,59,.03));
  border: 1px solid rgba(212,165,71,.2);
  border-radius: var(--radius);
}
.kol-note svg {
  color: var(--gold-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.kol-note strong {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: .25rem;
}
.kol-note p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

/* ===================================
   MODAL (km) — premium redesign
   =================================== */
.km {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 2.5vw, 2rem);
  overflow-y: auto;
}
.km.is-open { display: flex; }

.km-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,165,71,.15), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(59,130,246,.12), transparent 50%),
    rgba(6, 20, 46, .85);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  z-index: -1;
  animation: kmBackdropIn .4s var(--ease);
  cursor: pointer;
}
@keyframes kmBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.km-card {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--surface);
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08);
  animation: kmCardIn .6s cubic-bezier(.2, .8, .2, 1);
  margin: auto;
}
@keyframes kmCardIn {
  0%   { transform: translateY(30px) scale(.94); opacity: 0; }
  60%  { transform: translateY(0) scale(1.01); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Hero banner ===== */
.km-hero {
  position: relative;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.km-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: blur(24px) saturate(1.2) brightness(.9);
  transform: scale(1.15);
  opacity: .55;
  animation: kmHeroFloat 12s ease-in-out infinite alternate;
}
@keyframes kmHeroFloat {
  from { transform: scale(1.15) translateX(0); }
  to { transform: scale(1.2) translateX(-20px); }
}
.km-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,31,59,.35) 0%, rgba(11,31,59,.75) 100%),
    radial-gradient(ellipse at center top, rgba(212,165,71,.18), transparent 60%);
}
.km-hero-ornament {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,165,71,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,165,71,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

/* ===== Close button ===== */
.km-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s var(--ease);
}
.km-close:hover {
  background: rgba(255,255,255,.25);
  transform: rotate(90deg) scale(1.1);
}

/* ===== Row: portrait + details ===== */
.km-row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(240px, 30vw, 320px) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* ===== Portrait ===== */
.km-portrait {
  position: relative;
  z-index: 3;
  margin-top: -100px; /* overlap hero */
  display: flex;
  justify-content: center;
  align-self: flex-start;
  animation: kmPortraitIn .8s cubic-bezier(.2,.8,.2,1) .1s both;
}
@keyframes kmPortraitIn {
  from { transform: translateY(20px) rotate(-2deg); opacity: 0; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}
.km-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(11,31,59,.5),
    0 0 0 6px #fff,
    0 0 0 7px rgba(212,165,71,.3);
}
.km-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* ===== Details ===== */
.km-details {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  animation: kmDetailsIn .7s var(--ease) .25s both;
}
@keyframes kmDetailsIn {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.km-role {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  padding: .4rem .85rem;
  background: linear-gradient(135deg, rgba(212,165,71,.2), rgba(212,165,71,.08));
  border: 1px solid rgba(212,165,71,.35);
  color: var(--gold-600);
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.km-role::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,71,.2);
}

.km-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-900);
  line-height: 1.05;
  margin: 0 0 .45rem;
}

.km-subject {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--gold-600);
  margin-bottom: 1.1rem;
}

.km-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: kmFadeIn .5s var(--ease) .5s forwards;
}
.km-divider::before,
.km-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.km-divider span {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  box-shadow: 0 0 0 4px rgba(212,165,71,.15);
}
@keyframes kmFadeIn {
  to { opacity: 1; }
}

.km-bio {
  font-size: .98rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.km-bio p {
  margin: 0 0 .9rem;
  animation: kmFadeUp .5s var(--ease) both;
}
.km-bio p:nth-child(1) { animation-delay: .35s; }
.km-bio p:nth-child(2) { animation-delay: .45s; }
.km-bio p:nth-child(3) { animation-delay: .55s; }
.km-bio p:nth-child(4) { animation-delay: .65s; }
.km-bio p:last-child { margin-bottom: 0; }
@keyframes kmFadeUp {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.km-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.km-meta-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  animation: kmFadeUp .5s var(--ease) both;
}
.km-meta-item:nth-child(1) { animation-delay: .7s; }
.km-meta-item:nth-child(2) { animation-delay: .78s; }
.km-meta-item:nth-child(3) { animation-delay: .86s; }
.km-meta-item:nth-child(4) { animation-delay: .94s; }
.km-meta-item:hover {
  background: #fff;
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(11,31,59,.15);
}
.km-meta-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,165,71,.18), rgba(212,165,71,.06));
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.km-meta-ic svg { width: 18px; height: 18px; }
.km-meta-text { flex: 1; min-width: 0; }
.km-meta-lbl {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.km-meta-val {
  font-size: .9rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-top: .18rem;
  line-height: 1.4;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .km-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }
  .km-hero { height: 120px; }
  .km-portrait { margin-top: -80px; }
  .km-portrait-frame { max-width: 200px; }
  .km-details { padding-top: 0; text-align: center; }
  .km-role { align-self: center; }
  .km-meta { grid-template-columns: 1fr; }
}
@keyframes kolZoomIn {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}

.kol-modal-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow-y: auto;
  max-height: 90vh;
}
.kol-modal-role {
  display: inline-block;
  padding: .4rem .85rem;
  background: rgba(212,165,71,.15);
  color: var(--gold-600);
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.kol-modal-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-900);
  line-height: 1.1;
  margin: 0 0 .4rem;
}
.kol-modal-subject {
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.kol-modal-bio {
  font-size: .98rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.kol-modal-bio p {
  margin: 0 0 1rem;
}
.kol-modal-bio p:last-child { margin-bottom: 0; }

.kol-modal-meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.kol-meta-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.kol-meta-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,165,71,.15), rgba(212,165,71,.05));
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kol-meta-ic svg { width: 18px; height: 18px; }
.kol-meta-text { flex: 1; min-width: 0; }
.kol-meta-lbl {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.kol-meta-val {
  font-size: .92rem;
  color: var(--navy-900);
  font-weight: 500;
  margin-top: .2rem;
}

/* Keep modal at a reasonable minimum height so photo column has decent width */
.kol-modal-inner {
  min-height: min(580px, 85vh);
}

@media (max-width: 760px) {
  .kol-modal-inner {
    grid-template-columns: 1fr;
    max-height: 95vh;
    min-height: 0;
  }
  .kol-modal-photo {
    max-height: 50vh;
    aspect-ratio: 4/5;
  }
  .kol-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .kol-modal-body { max-height: none; }
}

/* -------- Empty state -------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  gap: 1.25rem;
}
.es-visual {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.es-icon {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px -20px rgba(11,31,59,.45);
  animation: esBob 3s ease-in-out infinite;
}
.es-icon svg { width: 50px; height: 50px; }
@keyframes esBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
.es-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 1;
}
.es-orb-1 {
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(212,165,71,.4), transparent 70%);
  top: -10px; left: -20px;
  animation: esFloat 5s ease-in-out infinite;
}
.es-orb-2 {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(37,99,235,.3), transparent 70%);
  bottom: -20px; right: -30px;
  animation: esFloat 7s ease-in-out infinite reverse;
}
@keyframes esFloat {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(10px, -10px); }
}
.es-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -.02em;
  color: var(--navy-900);
}
.es-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-600);
}
.es-text {
  max-width: 54ch;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.es-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* -------- Enrollment highlight (home) -------- */
.enrol-highlight {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #fff 0%, #fefbf3 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.enrol-highlight::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.22), transparent 70%);
  pointer-events: none;
}
.eh-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  background: rgba(212,165,71,.15);
  border: 1px solid rgba(212,165,71,.3);
  color: var(--gold-600);
  border-radius: var(--radius-full);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d64545;
  animation: pulseRed 1.6s ease-in-out infinite;
}
.eh-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-900);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.eh-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-600);
}
.eh-text { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 56ch; }
.eh-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.eh-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 1rem;
}
.eh-card {
  position: absolute;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
  min-width: 130px;
  transition: transform .5s var(--ease);
}
.eh-card .eh-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.eh-card .eh-lbl {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: .4rem;
}
.eh-card-1 {
  top: 0; left: 10%;
  transform: rotate(-6deg);
  animation: ehFloat1 5s ease-in-out infinite;
}
.eh-card-2 {
  top: 38%; right: 8%;
  transform: rotate(4deg);
  animation: ehFloat2 6s ease-in-out infinite;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-color: transparent;
}
.eh-card-2 .eh-num {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eh-card-2 .eh-lbl { color: rgba(255,255,255,.85); }
.eh-card-3 {
  bottom: 0; left: 22%;
  transform: rotate(-2deg);
  animation: ehFloat3 4.5s ease-in-out infinite;
}
@keyframes ehFloat1 { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-8px); } }
@keyframes ehFloat2 { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-10px); } }
@keyframes ehFloat3 { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-6px); } }

.eh-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,165,71,.12), transparent 60%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .enrol-highlight { grid-template-columns: 1fr; }
  .eh-visual { min-height: 200px; }
  .eh-card { min-width: 110px; padding: 1rem 1.15rem; }
  .eh-card .eh-num { font-size: 1.5rem; }
}

/* -------- CTA banner -------- */
.cta-band {
  position: relative;
  margin-block: var(--section-y);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at 90% 0%, rgba(212,165,71,.3), transparent 60%);
  z-index: -1;
}
.cta-band .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.25rem); max-width: 28ch; }
.cta-band h2 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-400);
}
.cta-band p { color: rgba(255,255,255,.7); margin-top: .75rem; max-width: 42ch; }

/* -------- Footer -------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer-brand img { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9rem; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  color: #fff;
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul li a {
  font-size: .88rem;
  display: inline-block;
  padding: .35rem 0;
  transition: color var(--transition), padding var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-400); padding-left: .3rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: var(--gold-400); }

/* -------- Animations / Reveal -------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }

.scale-in { opacity: 0; transform: scale(.92); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.scale-in.in { opacity: 1; transform: scale(1); }

/* Marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-full);
  border: 1px solid var(--line-soft);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-item .star { color: var(--gold-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------- Kalkulator page (standalone) -------- */
.kalk-hero { overflow: hidden; }
.kalk-float {
  position: absolute;
  z-index: 1;
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  box-shadow: 0 20px 40px -15px rgba(212,165,71,.65);
  pointer-events: none;
}
.kalk-float span { filter: drop-shadow(0 1px 0 rgba(255,255,255,.2)); }
.kalk-float.kf-1 { top: 30%; left: 6%; transform: rotate(-14deg); animation: kfFloat 6s ease-in-out infinite; }
.kalk-float.kf-2 { top: 18%; right: 10%; transform: rotate(10deg); animation: kfFloat 7s ease-in-out infinite -2s; background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); color: #fff; box-shadow: 0 20px 40px -15px rgba(37,99,235,.65); }
.kalk-float.kf-3 { bottom: 18%; right: 18%; transform: rotate(-8deg); animation: kfFloat 8s ease-in-out infinite -4s; font-size: 2rem; }
@keyframes kfFloat {
  0%,100% { transform: translate(0,0) rotate(var(--rot,-14deg)); }
  50% { transform: translate(6px,-10px) rotate(var(--rot,-14deg)); }
}
@media (max-width: 760px) {
  .kalk-float { display: none; }
}

/* Progress nav */
.kalk-progress {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 720px;
  margin: 0 auto;
}
.kalk-progress::-webkit-scrollbar { display: none; }
.kp-step {
  display: flex; align-items: center; gap: .5rem;
  flex: 0 0 auto;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  padding: .2rem .4rem;
  border-radius: var(--radius-full);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.kp-step .kp-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--line);
  transition: all .3s var(--ease);
  position: relative;
}
.kp-step.is-done .kp-dot {
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,71,.2);
}
.kp-step.is-done .kp-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--navy-900);
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
}
.kp-step.is-active {
  color: var(--navy-900);
  background: rgba(212,165,71,.12);
}
.kp-step.is-active .kp-dot {
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212,165,71,.25);
  animation: kpPulse 1.5s ease-in-out infinite;
}
@keyframes kpPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(212,165,71,.25); }
  50% { box-shadow: 0 0 0 7px rgba(212,165,71,.1); }
}

/* Smjer picker */
.smjer-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.smjer-opt input { position: absolute; opacity: 0; }
.smjer-opt .so-card {
  position: relative;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s var(--ease);
  height: 100%;
  overflow: hidden;
}
.smjer-opt .so-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,165,71,.1), rgba(212,165,71,.04));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.smjer-opt:hover .so-card { border-color: var(--gold-500); transform: translateY(-2px); }
.smjer-opt input:checked + .so-card {
  border-color: var(--gold-500);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  box-shadow: 0 20px 40px -15px rgba(11,31,59,.35);
  transform: translateY(-3px);
}
.smjer-opt input:checked + .so-card::before {
  opacity: 1;
  background: radial-gradient(circle at top right, rgba(212,165,71,.3), transparent 70%);
}
.smjer-opt input:checked + .so-card .so-num { color: var(--gold-400); }
.smjer-opt input:checked + .so-card span { color: rgba(255,255,255,.8); }
.so-card .so-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: .5rem;
  transition: color .3s var(--ease);
}
.so-card strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.so-card span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; transition: color .3s var(--ease); }

/* Subject groups with icons */
.subj-group {
  margin-bottom: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  animation: subjAppear .4s var(--ease) both;
}
@keyframes subjAppear {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.subj-group[open] {
  border-color: var(--gold-500);
  box-shadow: 0 5px 15px -8px rgba(212,165,71,.3);
}
.subj-group summary {
  padding: .9rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s var(--ease);
}
.subj-group summary::-webkit-details-marker { display: none; }
.subj-group summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold-600);
  transition: transform .3s var(--ease);
  font-weight: 400;
}
.subj-group[open] summary::after { content: '−'; }
.subj-group[open] summary { background: rgba(212,165,71,.06); }
.subj-group .grades-grid { padding: .25rem 1rem 1rem; }
.subj-label { display: inline-flex; align-items: center; gap: .6rem; }
.subj-ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,165,71,.15), rgba(212,165,71,.05));
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.subj-ic svg { width: 14px; height: 14px; }
.subj-group[open] .subj-ic {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  transform: scale(1.05);
}

/* Smjer rules card */
.smjer-rules {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(11,31,59,.04), rgba(212,165,71,.04));
  border: 1px solid rgba(212,165,71,.2);
  border-radius: var(--radius);
  animation: rulesAppear .45s var(--ease);
}
@keyframes rulesAppear {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rules-head {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy-900);
  margin-bottom: .75rem;
}
.rules-ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rules-ic svg { width: 16px; height: 16px; }
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.rules-list li {
  padding-left: 1.25rem;
  position: relative;
}
.rules-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.rules-list strong { color: var(--navy-900); font-weight: 700; }

/* Auto-fill hint */
.auto-fill-hint {
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(212,165,71,.06));
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .88rem;
  color: var(--ink);
  animation: afhAppear .4s var(--ease);
}
.auto-fill-hint svg { color: #16a34a; flex-shrink: 0; margin-top: 1px; }
.auto-fill-hint strong { color: #16a34a; }
@keyframes afhAppear {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Result status badge */
.cr-status {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  transition: all .45s var(--ease);
  position: relative;
  overflow: hidden;
}
.cr-status .crs-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .4s var(--ease);
}
.cr-status .crs-ic svg {
  width: 24px; height: 24px;
  color: rgba(255,255,255,.7);
  transition: color .3s var(--ease);
}
.cr-status .crs-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cr-status strong { font-size: .95rem; color: #fff; font-family: var(--font-display); }
.cr-status span { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.4; }

/* Pending state (default) */
.cr-status-pending { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }

/* Pass state — GREEN */
.cr-status-pass {
  background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(34,197,94,.08));
  border-color: rgba(74,222,128,.45);
  animation: statusPassPop .6s var(--ease);
}
.cr-status-pass .crs-ic {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  box-shadow: 0 10px 25px -8px rgba(34,197,94,.5);
}
.cr-status-pass .crs-ic svg { color: #fff; }
.cr-status-pass strong { color: #86efac; }
.cr-status-pass span { color: rgba(255,255,255,.85); }
.cr-status-pass::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.2), transparent);
  transform: translateX(-100%);
  animation: statusShine 2.5s ease-out;
}

/* Fail state — RED */
.cr-status-fail {
  background: linear-gradient(135deg, rgba(239,68,68,.25), rgba(239,68,68,.08));
  border-color: rgba(248,113,113,.5);
  animation: statusFailShake .5s var(--ease);
}
.cr-status-fail .crs-ic {
  background: linear-gradient(135deg, #ef4444, #f87171);
  box-shadow: 0 10px 25px -8px rgba(239,68,68,.55);
  animation: crsPulse 2s ease-in-out infinite;
}
.cr-status-fail .crs-ic svg { color: #fff; }
.cr-status-fail strong { color: #fca5a5; }
.cr-status-fail span { color: rgba(255,255,255,.85); }

/* Panel color shift when failing */
#result-panel.is-fail {
  border-color: rgba(248,113,113,.35);
  box-shadow: 0 30px 70px -20px rgba(239,68,68,.3), 0 0 0 1px rgba(248,113,113,.15);
}
#result-panel.is-fail .cr-shine {
  background: radial-gradient(circle, rgba(239,68,68,.3), transparent 70%);
}
#result-panel.is-pass .cr-shine {
  background: radial-gradient(circle, rgba(74,222,128,.3), transparent 70%);
}

@keyframes statusPassPop {
  0% { transform: scale(.96); opacity: 0; }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes statusFailShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
@keyframes statusShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes crsPulse {
  0%, 100% { box-shadow: 0 10px 25px -8px rgba(239,68,68,.55); }
  50% { box-shadow: 0 10px 30px -5px rgba(239,68,68,.8); }
}

/* Requirements (in result panel) */
.cr-requirements {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255,255,255,.15);
}
.req-head {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  margin-bottom: .75rem;
}
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.req-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  line-height: 1.45;
  padding: .4rem .6rem;
  border-radius: 8px;
  transition: background .3s var(--ease);
}
.req-list .req-ic {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
}
.req-list .req-ic svg { width: 18px; height: 18px; }
.req-list .req-ok { color: rgba(255,255,255,.9); }
.req-list .req-ok .req-ic { color: #4ade80; }
.req-list .req-ok { background: rgba(34,197,94,.08); }
.req-list .req-miss { color: rgba(255,255,255,.75); }
.req-list .req-miss .req-ic { color: #fb7185; }
.req-list .req-miss { background: rgba(244,63,94,.08); }

/* Luča custom check */
.luca-check { display: block; cursor: pointer; }
.luca-check input { position: absolute; opacity: 0; }
.luca-check .lc-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface-alt);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.luca-check:hover .lc-box { border-color: var(--gold-500); }
.luca-check input:checked + .lc-box {
  background: linear-gradient(135deg, rgba(212,165,71,.15), rgba(212,165,71,.05));
  border-color: var(--gold-500);
  box-shadow: 0 10px 25px -10px rgba(212,165,71,.4);
}
.lc-star {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 2px dashed var(--line);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: all .3s var(--ease);
  flex-shrink: 0;
}
.luca-check input:checked + .lc-box .lc-star {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-color: transparent;
  animation: luchaPop .5s var(--ease);
}
@keyframes luchaPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1); }
}
.lc-box strong { display: block; font-size: .98rem; color: var(--navy-900); }
.lc-box span { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* Glowing input effect */
.calc-glow {
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.calc-glow.is-filled {
  border-color: var(--gold-500);
  background: rgba(212,165,71,.04);
  box-shadow: 0 5px 15px -5px rgba(212,165,71,.2);
}

/* Result panel V2 */
.calc-result-v2 {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700) 70%, #0b2651 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(212,165,71,.25);
  box-shadow: 0 30px 70px -20px rgba(11,31,59,.45);
}
.cr-shine {
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.35), transparent 70%);
  z-index: -1;
  animation: crShine 10s ease-in-out infinite;
}
@keyframes crShine {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.2); }
}
.calc-result-v2 h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.calc-total {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500), #fff1c9, var(--gold-500));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: crTotalShine 4s linear infinite;
}
@keyframes crTotalShine { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

.cr-meter {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
  position: relative;
}
.cr-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 4px;
  transition: width .8s var(--ease);
  box-shadow: 0 0 15px rgba(212,165,71,.5);
  position: relative;
}
.cr-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: barShine 2s linear infinite;
}
@keyframes barShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.cr-percent {
  margin-top: .5rem;
  text-align: right;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
.cr-percent span {
  color: var(--gold-400);
  font-size: 1rem;
  font-weight: 800;
}

.br-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: .5rem;
  vertical-align: middle;
}
.br-dot.d1 { background: #a78bfa; }
.br-dot.d2 { background: #60a5fa; }
.br-dot.d3 { background: #34d399; }
.br-dot.d4 { background: var(--gold-400); }
.br-dot.d5 { background: #f472b6; }
.br-dot.d6 { background: #fb923c; }

.br-row {
  padding: .4rem 0;
  animation: brFadeIn .5s var(--ease) forwards;
}
@keyframes brFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------- Calculator (Upis) -------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: start;
}
.calc-form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.calc-step {
  padding-block: 1.5rem;
  border-bottom: 1px dashed var(--line);
}
.calc-step:last-child { border-bottom: none; }
.calc-step h3 {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.calc-step h3 .st-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 800;
}
.calc-help {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: .75rem .9rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500);
}

.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
}
.grade-field {
  display: flex; flex-direction: column; gap: .35rem;
}
.grade-field label { font-size: .8rem; font-weight: 600; color: var(--ink); }
.grade-select, .calc-input {
  padding: .75rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .95rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.grade-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,71,.15);
}

.checkbox-row { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; font-size: .95rem; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--gold-500); cursor: pointer; }

.calc-result {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(212,165,71,.2);
}
.calc-result::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,71,.3), transparent 70%);
  z-index: -1;
}
.calc-result h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.calc-total {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: -.04em;
  line-height: 1;
  margin-block: .5rem;
}
.calc-total-lbl { font-size: .85rem; color: rgba(255,255,255,.65); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.calc-breakdown { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: .6rem; }
.br-row { display: flex; justify-content: space-between; font-size: .9rem; }
.br-row span:first-child { color: rgba(255,255,255,.7); }
.br-row span:last-child { color: #fff; font-weight: 600; }
.br-row.total { padding-top: .75rem; border-top: 1px dashed rgba(255,255,255,.15); }

.calc-hint {
  margin-top: 1.25rem;
  padding: .85rem;
  background: rgba(212,165,71,.1);
  border: 1px solid rgba(212,165,71,.2);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: rgba(255,255,255,.8);
}

/* -------- Smjerovi details -------- */
.smjer-hero {
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}
.smjer-hero .tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  padding: .35rem .85rem;
  background: rgba(212,165,71,.1);
  color: var(--gold-600);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(212,165,71,.2);
}

.criteria-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.criteria-list li {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--ink-soft);
}
.criteria-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(212,165,71,.15);
  display: grid; place-items: center;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(212,165,71,.35);
}
.criteria-list li strong { color: var(--navy-900); font-weight: 700; }

/* -------- Club / Digital Minds -------- */
.club-tile {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.club-tile.active::before {
  content: 'Aktivno';
  position: absolute; top: 1rem; right: 1rem;
  padding: .25rem .75rem;
  background: rgba(34,197,94,.12);
  color: #15803d;
  border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.club-tile.coming::before {
  content: 'U izradi';
  position: absolute; top: 1rem; right: 1rem;
  padding: .25rem .75rem;
  background: rgba(100,116,139,.1);
  color: var(--muted);
  border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.club-tile.active { border-color: var(--gold-500); }
.club-tile.active:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.club-tile .ic-lg {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(37,99,235,.04));
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
}

/* ===== Digital Minds — featured custom tile ===== */
.dm-featured {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #05122d 0%, #0b1f3b 50%, #132a52 100%);
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(11,31,59,.5), 0 15px 30px -15px rgba(11,31,59,.3);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dm-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 50px 100px -30px rgba(11,31,59,.6), 0 20px 40px -15px rgba(11,31,59,.35);
}

/* Animated tech background */
.dm-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dm-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.dm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: dmFloat 10s ease-in-out infinite;
}
.dm-orb.dm-o1 {
  width: 400px; height: 400px;
  top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(59,130,246,.45), transparent 70%);
}
.dm-orb.dm-o2 {
  width: 320px; height: 320px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(168,85,247,.35), transparent 70%);
  animation-delay: -3s;
}
@keyframes dmFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}

/* Code text in background */
.dm-code {
  position: absolute;
  top: 50%; right: 8%;
  transform: translateY(-50%);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: .82rem;
  color: rgba(96,165,250,.15);
  line-height: 1.8;
  user-select: none;
  display: flex; flex-direction: column;
  letter-spacing: .02em;
}
.dm-code .dm-line { display: block; }
.dm-code em {
  color: rgba(212,165,71,.3);
  font-style: normal;
}

/* Content layout */
.dm-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}

.dm-left { display: flex; flex-direction: column; gap: 1rem; }

/* Badge */
.dm-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  align-self: flex-start;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(74,222,128,.35);
  border-radius: var(--radius-full);
  color: #86efac;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dm-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.3);
  animation: dmPulseDot 1.5s ease-in-out infinite;
}
@keyframes dmPulseDot {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,.1); }
}

.dm-logo-hero {
  padding: .5rem 0;
}
.dm-logo-hero img {
  height: clamp(56px, 7vw, 80px);
  width: auto;
  filter: drop-shadow(0 15px 30px rgba(59,130,246,.4));
  transition: transform .5s var(--ease);
}
.dm-featured:hover .dm-logo-hero img { transform: scale(1.05) rotate(-3deg); }

.dm-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: #fff;
  margin: 0;
}
.dm-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dm-desc {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}
.dm-desc strong { color: #fff; font-weight: 700; }

/* Tags */
.dm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0;
}
.dm-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: all .3s var(--ease);
}
.dm-tag:hover {
  background: rgba(96,165,250,.15);
  border-color: rgba(96,165,250,.4);
  color: #60a5fa;
  transform: translateY(-1px);
}
.dm-tag svg { color: var(--gold-400); flex-shrink: 0; }

.dm-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* Right side — fake device with code */
.dm-right {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-device {
  position: relative;
  width: 100%;
  max-width: 320px;
  animation: dmDeviceFloat 6s ease-in-out infinite;
}
@keyframes dmDeviceFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.dm-screen {
  background: #0a1833;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(96,165,250,.2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
.dm-screen::before {
  content: '';
  position: absolute;
  top: -100%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(135deg, transparent 30%, rgba(96,165,250,.1) 50%, transparent 70%);
  animation: dmShine 5s ease-in-out infinite;
}
@keyframes dmShine {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40%, 40%); }
}

.dm-dots {
  display: flex; gap: .4rem; margin-bottom: .85rem;
}
.dm-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.dm-dots span:nth-child(1) { background: #ef4444; }
.dm-dots span:nth-child(2) { background: #eab308; }
.dm-dots span:nth-child(3) { background: #22c55e; }

.dm-code-mini {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}
.dm-code-mini .dm-key { color: #c084fc; }
.dm-code-mini .dm-fn { color: #60a5fa; }
.dm-code-mini .dm-str { color: #4ade80; }
.dm-caret { color: var(--gold-400); margin-top: .3rem; }
.dm-caret span { animation: dmBlink 1s steps(2) infinite; }
@keyframes dmBlink {
  50% { opacity: 0; }
}

.dm-device-base {
  height: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.2));
  border-radius: 0 0 14px 14px;
  margin: -2px 20px 0;
  transform: perspective(200px) rotateX(20deg);
  filter: blur(1px);
}

/* Decorative floating icons */
.dm-icon {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.3);
}
.dm-icon.dm-ic-1 {
  top: 8%; left: 8%;
  transform: rotate(-8deg);
  animation: dmIcFloat 5s ease-in-out infinite;
}
.dm-icon.dm-ic-2 {
  bottom: 12%; left: 4%;
  transform: rotate(6deg);
  animation: dmIcFloat 6s ease-in-out infinite -2s;
  color: #60a5fa;
}
.dm-icon.dm-ic-3 {
  top: 50%; right: 2%;
  transform: rotate(-4deg);
  animation: dmIcFloat 7s ease-in-out infinite -4s;
  color: #a78bfa;
}
@keyframes dmIcFloat {
  0%,100% { transform: translateY(0) rotate(var(--r,-8deg)); }
  50% { transform: translateY(-10px) rotate(var(--r,-8deg)); }
}

@media (max-width: 900px) {
  .dm-content { grid-template-columns: 1fr; gap: 2rem; }
  .dm-right { min-height: 260px; }
  .dm-code { display: none; }
}
@media (max-width: 520px) {
  .dm-right { display: none; }
  .dm-actions { flex-direction: column; align-items: stretch; }
  .dm-actions .btn { justify-content: center; }
}
.club-tile.coming .ic-lg { background: var(--surface-alt); color: var(--muted); }

/* -------- Useful links -------- */
.useful-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.useful-link {
  padding: .6rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.useful-link:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); transform: translateY(-2px); }
.useful-link svg { transition: transform var(--transition); }
.useful-link:hover svg { transform: translate(2px, -2px); }

/* -------- Responsive -------- */
@media (max-width: 960px) {
  .nav-list, .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
  .about-split { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 4/3; max-height: 500px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-result { position: relative; top: auto; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .gallery-item.sz-lg { grid-column: span 6; }
  .gallery-item.sz-md { grid-column: span 3; }
  .gallery-item.sz-sm { grid-column: span 3; }
  .gallery-item.sz-tall { grid-column: span 6; grid-row: auto; aspect-ratio: 4/3; }
  .gallery-item.sz-wide { grid-column: span 6; }
}
@media (max-width: 640px) {
  :root { --gutter: 1.1rem; --header-h: 64px; }
  .hero {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 6rem;
    min-height: 92vh;
  }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.08; }
  .hero .lead { font-size: .95rem; line-height: 1.55; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-counter { display: none; }
  .hero-dots { bottom: 1.25rem; }
  .page-hero { padding-top: calc(var(--header-h) + 3rem); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.sz-lg, .gallery-item.sz-md, .gallery-item.sz-sm, .gallery-item.sz-tall, .gallery-item.sz-wide { grid-column: span 2; aspect-ratio: 1; grid-row: auto; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .brand .name span { display: none; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.sz-lg, .gallery-item.sz-md, .gallery-item.sz-sm, .gallery-item.sz-tall, .gallery-item.sz-wide { grid-column: span 1; }
  .brand .name { display: none; }
  .brand img { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .scale-in { opacity: 1; transform: none; }
}

/* =====================================
   ALUMNI KLUB — vintage-modern yearbook card
   ===================================== */
.alumni-promo {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.alumni-card {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 4rem);
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  color: var(--navy-900);
  /* Cream paper background with subtle warmth */
  background:
    radial-gradient(ellipse at 15% 12%, rgba(212,165,71,.14), transparent 55%),
    radial-gradient(ellipse at 85% 88%, rgba(11,31,59,.06), transparent 60%),
    linear-gradient(180deg, #fbf6ec 0%, #f4ecd8 100%);
  box-shadow:
    0 40px 80px -30px rgba(11,31,59,.35),
    0 10px 25px -12px rgba(11,31,59,.15),
    inset 0 0 0 1px rgba(212,165,71,.25);
  isolation: isolate;
}

/* Paper grain texture */
.alumni-paper {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(11,31,59,.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(212,165,71,.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(11,31,59,.02) 1px, transparent 1px);
  background-size: 24px 24px, 28px 28px, 32px 32px;
  opacity: .7;
}

/* Subtle animated rays */
.alumni-rays {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(212,165,71,.04) 20deg, transparent 40deg,
    transparent 120deg, rgba(212,165,71,.03) 140deg, transparent 160deg,
    transparent 240deg, rgba(212,165,71,.04) 260deg, transparent 280deg);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  animation: alumniRays 45s linear infinite;
}
@keyframes alumniRays {
  to { transform: rotate(360deg); }
}

/* Ornamental corners */
.alumni-corner {
  position: absolute;
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  color: var(--gold-500);
  opacity: .6;
  z-index: 1;
  pointer-events: none;
}
.corner-tl { top: 14px;   left: 14px; }
.corner-tr { top: 14px;   right: 14px; }
.corner-bl { bottom: 14px;left: 14px; }
.corner-br { bottom: 14px;right: 14px; }

/* Layout */
.alumni-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* ===== LEFT: intro ===== */
.alumni-intro { position: relative; }

.alumni-seal {
  width: 72px; height: 72px;
  margin-bottom: 1.25rem;
  color: var(--gold-600);
  animation: alumniSealFloat 6s ease-in-out infinite;
}
.alumni-seal svg { width: 100%; height: 100%; }
@keyframes alumniSealFloat {
  0%,100% { transform: rotate(-4deg); }
  50%     { transform: rotate(4deg); }
}

.alumni-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 1.25rem;
}
.ae-line {
  display: inline-block;
  width: 32px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.ae-line:last-child {
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.alumni-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--navy-900);
}
.alumni-title .at-serif {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--navy-700);
  font-size: .72em;
  letter-spacing: -.01em;
  margin-bottom: .1em;
}
.alumni-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-600);
  position: relative;
}
.alumni-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -.02em;
  height: .12em;
  background: linear-gradient(90deg, transparent, rgba(212,165,71,.4), transparent);
  border-radius: 2px;
}

.alumni-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}
.alumni-desc strong {
  color: var(--navy-900);
  font-weight: 700;
}

.alumni-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 2rem;
}
.alumni-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.55rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  box-shadow:
    0 18px 32px -12px rgba(11,31,59,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.alumni-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: 0;
}
.alumni-btn > * { position: relative; z-index: 1; }
.alumni-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -12px rgba(212,165,71,.45);
  color: var(--navy-900);
}
.alumni-btn:hover::before { opacity: 1; }
.ab-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--gold-400);
  transition: all .35s var(--ease);
}
.alumni-btn:hover .ab-arrow {
  transform: translateX(4px);
  background: var(--navy-900);
  color: var(--gold-400);
}
.alumni-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: .9rem 1.4rem;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(11,31,59,.2);
  transition: all .3s var(--ease);
}
.alumni-btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  background: rgba(212,165,71,.08);
}

/* Stats */
.alumni-stats {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(212,165,71,.4);
}
.as-item {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.as-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
  line-height: 1;
}
.as-lbl {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.as-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--gold-500), transparent);
  opacity: .5;
}

/* ===== RIGHT: polaroid stack ===== */
.alumni-showcase {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashed connection path behind photos */
.alumni-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--gold-500);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
  animation: alumniPath 20s linear infinite;
}
@keyframes alumniPath {
  to { stroke-dashoffset: -200; }
}

.polaroid {
  position: absolute;
  width: 210px;
  padding: 10px 10px 48px;
  background: #fff;
  box-shadow:
    0 18px 40px -12px rgba(11,31,59,.3),
    0 4px 8px -4px rgba(11,31,59,.15),
    inset 0 0 0 1px rgba(11,31,59,.05);
  transition: all .5s cubic-bezier(.3, 1, .4, 1);
  z-index: 1;
}
.polaroid::before {
  content: '';
  position: absolute;
  inset: 10px 10px 48px 10px;
  background: linear-gradient(180deg, rgba(212,165,71,.06), transparent 40%);
  pointer-events: none;
  z-index: 2;
}
.pp-photo {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface-alt);
}
.pp-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(.1) saturate(.95) contrast(1.02);
  transition: transform .8s var(--ease);
}
.polaroid:hover .pp-photo img {
  transform: scale(1.08);
  filter: sepia(0) saturate(1) contrast(1.05);
}
.pp-caption {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  text-align: center;
}
.pp-caption strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--navy-900);
  font-size: .92rem;
  letter-spacing: -.005em;
}
.pp-caption span {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
/* Tape on top */
.pp-tape {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 70px; height: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(212,165,71,.2));
  border: 1px solid rgba(212,165,71,.15);
  opacity: .85;
  z-index: 3;
}

/* Positions — fanned layout */
.polaroid-1 { top: 2%;  left: 4%;  transform: rotate(-9deg);  animation: pFloat1 7s ease-in-out infinite; }
.polaroid-2 { top: 0%;  right: 4%; transform: rotate(6deg);   animation: pFloat2 8.5s ease-in-out infinite; z-index: 2; }
.polaroid-3 { bottom: 3%;left: 6%; transform: rotate(4deg);   animation: pFloat3 9s ease-in-out infinite; z-index: 3; }
.polaroid-4 { bottom: 1%;right: 3%;transform: rotate(-6deg);  animation: pFloat4 8s ease-in-out infinite; z-index: 2; }

@keyframes pFloat1 {
  0%,100% { transform: rotate(-9deg) translateY(0); }
  50%     { transform: rotate(-7deg) translateY(-8px); }
}
@keyframes pFloat2 {
  0%,100% { transform: rotate(6deg) translateY(0); }
  50%     { transform: rotate(8deg) translateY(-10px); }
}
@keyframes pFloat3 {
  0%,100% { transform: rotate(4deg) translateY(0); }
  50%     { transform: rotate(2deg) translateY(-6px); }
}
@keyframes pFloat4 {
  0%,100% { transform: rotate(-6deg) translateY(0); }
  50%     { transform: rotate(-4deg) translateY(-12px); }
}

.polaroid:hover {
  animation-play-state: paused;
  transform: rotate(0deg) translateY(-8px) scale(1.04) !important;
  box-shadow:
    0 28px 60px -12px rgba(11,31,59,.4),
    0 8px 16px -4px rgba(11,31,59,.2),
    inset 0 0 0 1px rgba(212,165,71,.3);
  z-index: 5;
}

/* Responsive */
@media (max-width: 960px) {
  .alumni-layout { grid-template-columns: 1fr; }
  .alumni-showcase { min-height: 360px; order: 2; }
  .alumni-corner { width: 36px; height: 36px; }
}
@media (max-width: 560px) {
  .alumni-card { padding: 2rem 1.25rem; }
  .alumni-showcase { min-height: 320px; }
  .polaroid { width: 150px; padding: 7px 7px 36px; }
  .pp-caption strong { font-size: .78rem; }
  .pp-caption span { font-size: .58rem; }
  .polaroid-1 { top: 5%;  left: 0%; }
  .polaroid-2 { top: 2%;  right: 0%; }
  .polaroid-3 { bottom: 4%;left: 2%; }
  .polaroid-4 { bottom: 2%;right: 0%; }
  .alumni-stats { flex-wrap: wrap; gap: .75rem 1rem; }
  .as-divider { display: none; }
  .alumni-seal { width: 58px; height: 58px; }
}

/* =====================================
   VIDEO GALERIJA — cards + YouTube modal
   ===================================== */
.video-section { padding-block: clamp(3rem, 6vw, 5rem); }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 2rem;
}

/* YouTube eyebrow icon */
.yt-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  margin-right: .45rem;
  vertical-align: middle;
}

/* Video card */
.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 55px -20px rgba(11,31,59,.25);
  border-color: var(--gold-500);
}

/* Thumbnail */
.vc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.vc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.video-card:hover .vc-thumb img {
  transform: scale(1.08);
  filter: brightness(1.05);
}
.vc-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(11,31,59,.35) 100%),
    linear-gradient(180deg, transparent 55%, rgba(11,31,59,.55) 100%);
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

/* Play button overlay */
.vc-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 16px 35px -8px rgba(0,0,0,.5),
    inset 0 0 0 2px rgba(212,165,71,.25);
  transition: all .45s cubic-bezier(.2, .9, .3, 1.2);
  z-index: 2;
}
.vc-play::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  animation: vcPulse 2.2s ease-in-out infinite;
}
.vc-play svg {
  width: 30px; height: 30px;
  margin-left: 3px; /* optical center */
}
.video-card:hover .vc-play {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 20px 45px -8px rgba(212,165,71,.55),
    inset 0 0 0 2px rgba(255,255,255,.25);
}
@keyframes vcPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0; }
}

/* YouTube badge corner */
.vc-badge {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: var(--radius-full);
  z-index: 2;
}
.vc-badge svg { color: #ff4444; }

/* Body */
.vc-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.vc-date {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.vc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-900);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vc-cta {
  margin-top: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-600);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.video-card:hover .vc-cta {
  gap: .6rem;
  color: var(--navy-900);
}

/* ===== Modal player ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 2rem);
}
.video-modal.is-open { display: flex; }
.vm-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(212,165,71,.12), transparent 55%),
    rgba(6, 20, 46, .92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  cursor: pointer;
  animation: vmBackdropIn .35s var(--ease);
}
@keyframes vmBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.vm-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  animation: vmWrapIn .55s cubic-bezier(.2,.9,.3,1);
}
@keyframes vmWrapIn {
  from { opacity: 0; transform: translateY(25px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.vm-frame-wrap {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: clamp(12px, 1.5vw, 20px);
  background: #000;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 0 8px rgba(212,165,71,.12);
}
.vm-frame {
  width: 100%; height: 100%;
  display: block;
  border: 0;
}
.vm-close {
  position: absolute;
  top: -48px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s var(--ease);
  z-index: 2;
}
.vm-close:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: rotate(90deg) scale(1.08);
}

@media (max-width: 640px) {
  .vm-close { top: auto; bottom: -50px; right: 50%; transform: translateX(50%); }
  .vm-close:hover { transform: translateX(50%) rotate(90deg); }
  .vc-play { width: 56px; height: 56px; }
  .vc-play svg { width: 24px; height: 24px; }
}

/* Video CTA card (YouTube channel promo on videoteka.html) */
.video-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.video-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(255,0,0,.06), transparent 50%);
  pointer-events: none;
}
.vcc-left { flex: 1; min-width: 280px; position: relative; z-index: 1; }
.vcc-left h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--navy-900);
  margin: .35rem 0 .5rem;
}
.vcc-left p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 52ch;
}

/* Selection */
::selection { background: var(--gold-500); color: var(--navy-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--navy-800); border-radius: 8px; border: 3px solid var(--surface-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-700); }
