/* ==========================================================================
   Uniplast Serbia — LAYOUT
   Header (po referenci), navigacija, mega meni, mobilni meni, hero, footer
   Mere su za 1440×810; skaliraju se preko clamp()/vw.
   ========================================================================== */

/* ============================================================ 1. HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  padding: 18px 34px;
  transition: transform var(--d-2) var(--ease-out),
              background var(--d-2) var(--ease-out),
              padding var(--d-2) var(--ease-out),
              border-color var(--d-2) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Kompaktna staklena traka posle 80px skrola */
.site-header.is-stuck {
  padding: 8px 34px;
  background: rgba(19,20,51,.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.1);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 52px;
  position: relative;
  transition: height var(--d-2) var(--ease-out);
}
.site-header.is-stuck .header-inner { height: 52px; }

/* ---- Logo ---- */
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; z-index: 2; }
.logo-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
  background: var(--brand-500);
  transition: box-shadow var(--d-1) var(--ease-out), transform var(--d-1) var(--ease-out);
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.brand:hover .logo-tile { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  letter-spacing: -.01em;
  white-space: nowrap;
}
@media (max-width: 1099px) { .brand-word { display: none; } }

/* ---- Centralna bela pilula navigacije ---- */
.nav-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 52px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(8,9,30,.16);
  display: flex;
  align-items: center;
  z-index: 1;
}
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; position: relative; }
.nav-list > li { margin: 0; position: relative; }

.nav-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--d-1) var(--ease-out);
  background: none;
}
.nav-link .icon-chev { width: 14px; height: 14px; transition: transform var(--d-1) var(--ease-out); }
.nav-item.is-open > .nav-link .icon-chev { transform: rotate(180deg); }

/* Aktivna stavka = puna --brand-500 pilula, beli tekst */
.nav-link.is-current { color: #fff; }

/* Klizni indikator */
.nav-indicator {
  position: absolute;
  top: 0; left: 0;
  height: 42px;
  border-radius: var(--r-pill);
  background: var(--brand-500);
  z-index: 1;
  transition: transform var(--d-2) var(--ease-out), width var(--d-2) var(--ease-out),
              height var(--d-2) var(--ease-out), opacity var(--d-1) var(--ease-out);
  pointer-events: none;
  will-change: transform, width;
}
.nav-indicator[hidden] { display: none; }
/* Dok indikator stoji ispod stavke koja NIJE aktivna, ta stavka postaje bela */
.nav-link.is-hovered { color: #fff; }

/* ---- Desna grupa ---- */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; z-index: 2; }

.hdr-icon {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.28);
  transition: background var(--d-1) var(--ease-out), transform var(--d-1) var(--ease-out);
}
.hdr-icon:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.hdr-icon .initials { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .02em; }

.btn-kontakt {
  min-width: 170px;
  height: 52px;
  padding: 0 var(--s-6);
  border-radius: var(--r-pill);
  background: var(--brand-900);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--d-1) var(--ease-out), transform var(--d-1) var(--ease-out);
}
.btn-kontakt:hover { background: var(--brand-700); transform: translateY(-2px); }

/* Hamburger (mobilni) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.28);
}

/* ================================================== 2. DROPDOWN / MEGA */
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(.98);
  min-width: 260px;
  padding: var(--s-5);
  border-radius: 24px;
  background: rgba(19,20,51,.88);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 24px 60px rgba(8,9,30,.4);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), visibility var(--d-2);
  z-index: 5;
}
.nav-item.is-open > .nav-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
@supports not (backdrop-filter: blur(1px)) { .nav-panel { background: rgba(19,20,51,.97); } }

.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel li { margin: 0; }
.panel-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,.86);
  transition: background var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out);
}
.panel-link:hover, .panel-link:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.panel-link .icon { color: var(--brand-300); }

/* Mega meni "Program" */
.mega {
  min-width: min(1080px, calc(100vw - 68px));
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s-6);
  padding: var(--s-6);
}
.mega-lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.mega-tile {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 10px;
  border-radius: var(--r-media);
  transition: background var(--d-1) var(--ease-out);
}
.mega-tile:hover, .mega-tile:focus-visible { background: rgba(255,255,255,.12); }
.mega-tile-media {
  width: 64px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
}
.mega-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.mega-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand-300);
}
.mega-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.mega-desc { font-size: 12.5px; color: rgba(255,255,255,.62); line-height: 1.35; margin-top: 2px; }

.mega-side {
  border-left: 1px solid rgba(255,255,255,.14);
  padding-left: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.mega-side-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand-300); font-weight: 600; margin-bottom: var(--s-2);
}
.mega-side .btn { margin-top: auto; }

/* Dropdown prodavnice: 2 kolone + izdvojeni proizvod */
.shop-panel { min-width: min(720px, calc(100vw - 68px)); display: grid; grid-template-columns: 1fr 1fr 220px; gap: var(--s-5); padding: var(--s-6); }
.shop-panel-feature {
  border-left: 1px solid rgba(255,255,255,.14);
  padding-left: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.shop-feature-card {
  border-radius: var(--r-media);
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: var(--s-3);
}
.shop-feature-card .ff-media { height: 84px; border-radius: 12px; overflow: hidden; margin-bottom: var(--s-3);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); display: grid; place-items: center; }
.shop-feature-card .ff-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.shop-feature-card .ff-price { font-size: 12px; color: var(--brand-300); margin-top: 3px; }

/* ============================================= 3. MOBILNI MENI (<1024) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) + 5);
  background: var(--brand-900);
  color: #fff;
  overflow-y: auto;
  padding: calc(92px + env(safe-area-inset-top, 0px)) var(--gutter) calc(var(--s-8) + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), visibility var(--d-2);
}
.mobile-menu::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 20% 10%, rgba(62,64,149,.5), transparent 70%),
    radial-gradient(50% 40% at 85% 85%, rgba(62,64,149,.4), transparent 70%);
  pointer-events: none;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu > * { position: relative; }

.mm-list { list-style: none; margin: 0 0 var(--s-8); padding: 0; }
.mm-list > li {
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(14px);
}
.mobile-menu.is-open .mm-list > li { animation: mmIn 500ms var(--ease-out) forwards; }
.mobile-menu.is-open .mm-list > li:nth-child(1) { animation-delay: 60ms; }
.mobile-menu.is-open .mm-list > li:nth-child(2) { animation-delay: 110ms; }
.mobile-menu.is-open .mm-list > li:nth-child(3) { animation-delay: 160ms; }
.mobile-menu.is-open .mm-list > li:nth-child(4) { animation-delay: 210ms; }
.mobile-menu.is-open .mm-list > li:nth-child(5) { animation-delay: 260ms; }
.mobile-menu.is-open .mm-list > li:nth-child(6) { animation-delay: 310ms; }
@keyframes mmIn { to { opacity: 1; transform: none; } }

.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 7vw, 32px);
  letter-spacing: -.01em;
  width: 100%;
  text-align: left;
}
.mm-link .icon { color: var(--brand-300); transition: transform var(--d-2) var(--ease-out); }
.mm-item.is-open .mm-link .icon { transform: rotate(180deg); }

.mm-sub { list-style: none; margin: 0; padding: 0 0 var(--s-4); display: none; }
.mm-item.is-open .mm-sub { display: block; }
.mm-sub a { display: block; padding: 10px 0 10px 2px; font-size: 16px; color: rgba(255,255,255,.76); }
.mm-sub a:hover { color: #fff; }

.mm-shop-row { display: flex; gap: var(--s-3); margin-bottom: var(--s-7); flex-wrap: wrap; }
.mm-contact { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); font-size: 15px; }
.mm-contact a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.84); }
.mm-contact .icon { color: var(--brand-300); }
.mm-social { display: flex; gap: var(--s-3); }
.mm-social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff;
  transition: background var(--d-1) var(--ease-out);
}
.mm-social a:hover { background: var(--brand-500); }

@media (max-width: 1023px) {
  .nav-pill { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .hdr-icon[data-hide-mobile] { display: none; }
  .btn-kontakt { display: none; }
  .site-header { padding: 14px var(--gutter); }
  .site-header.is-stuck { padding: 8px var(--gutter); }
}

/* ============================================================== 4. HERO */
.hero {
  --mission-w: 650px;          /* jedan izvor istine: širina kartice misije */
  position: relative;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-900);
}

/* --- pozadinske slike --- */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms var(--ease-in-out);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide picture {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide.is-active img { animation: kenburns 8000ms var(--ease-out) forwards; }
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(1%, .6%, 0); }
  to   { transform: scale(1)    translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; transform: none; }
}

/* --- overlay-i za čitljivost (sekcija 6) --- */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--hero-ov-1), var(--hero-ov-2), var(--hero-ov-3);
}

.hero-ui { position: absolute; inset: 0; z-index: var(--z-hero-ui); pointer-events: none; }
.hero-ui > * { pointer-events: auto; }

/* --- Levi blok naslova --- */
.hero-title-block {
  position: absolute;
  left: 34px;
  top: 105px;
  /* Naslov se zaustavlja pre kartice misije: 34px levo + 34px razmaka + širina kartice
     + 24px njenog desnog odmaka. Bez ovoga se blokovi preklapaju na 1024–1200 px. */
  max-width: min(700px, calc(100vw - var(--mission-w) - 92px));
  width: calc(100% - 68px);
}
.hero-h1 {
  margin: 0;
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform var(--d-3) var(--ease-out);
}
.hero-h1.is-in .line > span { transform: translateY(0); }
.hero-h1.is-in .line:nth-child(1) > span { transition-delay: 0ms; }
.hero-h1.is-in .line:nth-child(2) > span { transition-delay: 90ms; }
.hero-h1.is-in .line:nth-child(3) > span { transition-delay: 180ms; }
.hero-h1.is-in .line:nth-child(4) > span { transition-delay: 270ms; }
.hero-h1.is-out .line > span { transform: translateY(-105%); transition-duration: var(--d-2); }

/* 4. red = poslednja reč + mali pasus U ISTOM REDU */
.hero-h1 .line-last { display: flex; align-items: flex-end; gap: 0 var(--s-5); overflow: visible; flex-wrap: wrap; }
.hero-h1 .line-last > .word { display: block; overflow: hidden; }
.hero-h1 .line-last > .word > span { display: block; transform: translateY(105%); transition: transform var(--d-3) var(--ease-out) 270ms; }
.hero-h1.is-in .line-last > .word > span { transform: translateY(0); }
.hero-h1.is-out .line-last > .word > span { transform: translateY(-105%); }

.hero-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.3;
  max-width: 240px;
  color: rgba(255,255,255,.9);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding-bottom: .5em;
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--d-3) var(--ease-out) 300ms, filter var(--d-3) var(--ease-out) 300ms;
}
.hero-h1.is-in .hero-note { opacity: 1; filter: blur(0); }
.hero-h1.is-out .hero-note { opacity: 0; filter: blur(8px); transition-delay: 0ms; }

/* --- Kartica misije (gore desno) --- */
.hero-mission {
  position: absolute;
  top: 103px;
  right: 24px;
  width: var(--mission-w);
  max-width: calc(100vw - 48px);
  min-height: 210px;
  padding: 22px 22px 22px 40px;
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.hero-mission .m-text { flex: 1; min-width: 0; }
.hero-mission .eyebrow { color: #fff; margin-bottom: var(--s-3); }
.hero-mission .eyebrow::before { background: #fff; }
.hero-mission p { font-size: 16px; line-height: 1.45; max-width: 300px; margin-bottom: var(--s-4); color: #fff; }
.hero-mission .m-thumb {
  width: 250px; height: 180px;
  flex: none;
  border-radius: var(--r-media);
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.1);
}
.hero-mission .m-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1400ms var(--ease-in-out);
}
.hero-mission .m-thumb img.is-active { opacity: 1; }

/* --- Donja leva kartica (poravnata sa ivicom ekrana) --- */
.hero-bl {
  position: absolute;
  left: 0;
  top: 64%;
  width: 400px;
  max-width: calc(100vw - 24px);
  padding: 28px 34px;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
}
.hero-bl p { font-size: 16px; line-height: 1.45; color: #fff; margin-bottom: var(--s-4); }

.slide-ind { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); }
.slide-ind .num {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.72);
  font-variant-numeric: tabular-nums;
}
.slide-ind .bars { display: flex; gap: 6px; }
.slide-ind .bar {
  width: 28px; height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.slide-ind .bar i { display: block; height: 100%; width: 0; background: #fff; }
.slide-ind .bar.is-active i { width: 100%; transition: width var(--slide-dur, 6500ms) linear; }
.slide-ind .bar.is-past i { width: 100%; }

/* --- Centralni CTA --- */
.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  width: 290px;
  height: 72px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transition: transform var(--d-1) var(--ease-out), box-shadow var(--d-2) var(--ease-out);
  max-width: calc(100vw - 40px);
}
.hero-cta:hover { box-shadow: 0 18px 44px rgba(0,0,0,.34); }
.hero-cta .icon { transition: transform var(--d-1) var(--ease-out); }
.hero-cta:hover .icon { transform: translate(3px, -3px); }

/* --- Društvena kolona --- */
.hero-social {
  position: absolute;
  right: 34px;
  top: 62%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out), transform var(--d-1) var(--ease-out);
}
.hero-social a:hover { background: var(--brand-500); color: #fff; transform: translateY(-2px); }

/* --- Donja desna kartica --- */
.hero-br {
  position: absolute;
  right: 24px;
  bottom: 36px;
  width: 420px;
  max-width: calc(100vw - 48px);
  height: 130px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.hero-br p { font-size: 16px; line-height: 1.35; color: #fff; margin: 0; flex: 1; min-width: 0; }
.hero-br .br-thumb {
  width: 130px; height: 100px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.1);
}
.hero-br .br-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1400ms var(--ease-in-out);
}
.hero-br .br-thumb img.is-active { opacity: 1; }

/* --- Parallax nosači (desktop) --- */
.hero-media, .hero-ui .parallax-card { will-change: transform; }

/* =================================== 5. HERO — RESPONSIVE (sekcija 13) */
/* Kartica misije se sužava ranije nego ostatak heroja, da bi potpisni pasus
   ostao u istom redu sa poslednjom rečju naslova (kao na referenci). */
@media (max-width: 1365px) {
  .hero { --mission-w: 520px; }
  .hero-mission { padding: 20px 20px 20px 28px; }
  .hero-mission .m-thumb { width: 200px; height: 150px; }
}

@media (max-width: 1279px) {
  .hero-bl { width: 360px; }
  .hero-br { width: 380px; }
}

@media (max-width: 1023px) {
  /* Gornji deo hero-a prelazi u normalan tok; donje kartice ostaju pozicionirane. */
  .hero-ui {
    display: flex;
    flex-direction: column;
    padding-top: 112px;
    pointer-events: none;
  }
  .hero-title-block {
    position: static;
    width: 100%;
    max-width: 640px;
    padding-inline: var(--gutter);
    pointer-events: auto;
  }
  .hero-h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
  /* Mali pasus PADA ISPOD poslednjeg reda */
  .hero-h1 .line-last { display: block; }
  .hero-note { max-width: 420px; padding-bottom: 0; margin-top: var(--s-5); }

  /* Kartica misije postaje kompaktna, bez slike */
  .hero-mission {
    position: static;
    width: auto;
    max-width: 480px;
    min-height: 0;
    margin: var(--s-6) var(--gutter) 0;
    padding: var(--s-5);
    pointer-events: auto;
  }
  .hero-mission .m-thumb { display: none; }
  .hero-mission p { max-width: none; }

  .hero-social { display: none; }
  .hero-br { right: var(--gutter); bottom: 24px; width: 340px; }
  .hero-bl, .hero-br, .hero-cta { pointer-events: auto; }
}

@media (max-width: 899px) {
  .hero-mission { display: none; }
}

@media (max-width: 767px) {
  .hero { min-height: 640px; }
  .hero-br { display: none; }
  .hero-bl {
    position: absolute;
    left: 0; right: 0;
    top: auto;
    bottom: 150px;
    width: 100%;
    max-width: none;
    border-radius: 0;
    padding: var(--s-5) var(--gutter);
    border-right: 0;
  }
  .hero-cta {
    left: 20px; right: 20px;
    bottom: 40px;
    width: auto;
    max-width: none;
    transform: none;
    height: 64px;
  }
  .hero-title-block { top: 104px; }
}

@media (max-width: 479px) {
  .hero-h1 { font-size: clamp(2rem, 8.5vw, 2.4rem); }
  .hero-bl { bottom: 140px; }
}

/* ======================================= 6. PODSTRANIČNI HERO (9.x) */
.subhero {
  position: relative;
  height: 68svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-900);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.subhero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.subhero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-8);
  align-items: flex-end;
}
.subhero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  margin: var(--s-5) 0 0;
}
.subhero .hero-note { opacity: 1; filter: none; }
.subhero-card {
  width: 340px;
  padding: var(--s-6);
  flex: none;
}
.subhero-card .eyebrow { color: #fff; }
.subhero-card .eyebrow::before { background: var(--brand-300); }
.subhero-card p { color: rgba(255,255,255,.88); font-size: var(--fs-small); margin-bottom: var(--s-4); }

@media (max-width: 1023px) {
  .subhero { min-height: 440px; height: auto; padding-top: 140px; }
  .subhero-inner { grid-template-columns: 1fr; }
  .subhero-card { display: none; }
  .subhero h1 .title-inline { display: block; }
  .subhero .hero-note { margin-top: var(--s-4); padding-bottom: 0; }
}

/* ============================================================ 7. FOOTER */
.site-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,.76);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -1px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 80px);
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 55% at 15% 0%,  rgba(62,64,149,.5), transparent 70%),
    radial-gradient(45% 50% at 85% 20%, rgba(62,64,149,.35), transparent 70%);
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; gap: var(--s-4); align-items: flex-start; }
.footer-brand .logo-tile { width: 56px; height: 56px; border-radius: 14px; }
.footer-brand p { font-size: var(--fs-small); max-width: 420px; margin: var(--s-2) 0 0; }
.footer-brand .fb-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: #fff; }

.newsletter { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.newsletter label { display: block; font-size: var(--fs-small); color: #fff; font-weight: 600; margin-bottom: var(--s-2); width: 100%; }
.newsletter input {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  color: #fff;
}
.newsletter input::placeholder { color: rgba(255,255,255,.48); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-7);
  padding-block: var(--s-8);
}
.footer-col h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand-300);
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: var(--fs-small); transition: color var(--d-1) var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-col .fc-contact { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); margin-bottom: var(--s-3); }
.footer-col .fc-contact .icon { color: var(--brand-300); flex: none; margin-top: 2px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding-block: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background var(--d-1) var(--ease-out), transform var(--d-1) var(--ease-out);
}
.footer-social a:hover { background: var(--brand-500); transform: translateY(-2px); }
.footer-credit a { color: var(--brand-300); }
.footer-credit a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
}
@media (max-width: 479px) {
  .footer-cols { grid-template-columns: 1fr; }
  .site-footer { border-top-left-radius: 28px; border-top-right-radius: 28px; }
}

/* Glavni sadržaj ne sme da klizne ispod fiksnog headera na podstranicama */
.page-offset { padding-top: 92px; }
