/* ============ OSNOVE ============ */
:root {
  --navy: #0d2137;
  --navy-deep: #071523;
  --ink: #16232f;
  --grey: #6b7885;
  --line: #e3e7ea;
  --white: #ffffff;
  --sand: #f6f5f2;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

a { text-decoration: none; color: inherit; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .22em;
  color: var(--white);
  transition: color .4s ease;
}

.logo span {
  font-weight: 200;
  letter-spacing: .18em;
  opacity: .7;
}

.site-header.scrolled .logo { color: var(--navy); }

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .3s ease, opacity .3s ease;
}

.nav a:hover { color: var(--white); }

.site-header.scrolled .nav a { color: var(--grey); }
.site-header.scrolled .nav a:hover { color: var(--navy); }

/* ============ GUMBI ============ */
.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 2px;
  transition: all .3s ease;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.45);
  color: var(--white) !important;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy) !important;
}

.site-header.scrolled .btn-outline {
  border-color: var(--navy);
  color: var(--navy) !important;
}

.site-header.scrolled .btn-outline:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  padding: 17px 40px;
  font-weight: 500;
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;

  /* ZAMIJENI OVDJE SVOJOM FOTOGRAFIJOM:
     stavi sliku u mapu images pod imenom hero.jpg
     i gradijent ispod ostaje kao tamni sloj preko nje */
  background-image:
    linear-gradient(180deg, rgba(7,21,35,.55) 0%, rgba(7,21,35,.72) 100%),
    url('images/hero.jpg');
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  max-width: 900px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 26px;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(38px, 6.2vw, 82px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 30px;
}

.lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  max-width: 560px;
  margin-bottom: 46px;
}

.hero-scroll {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
}

.hero-scroll span {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 30%;
  background: rgba(255,255,255,.9);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* ============ MOBILNI IZBORNIK ============ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all .3s ease;
}

.site-header.scrolled .menu-toggle span { background: var(--navy); }

@media (max-width: 900px) {
  .container { padding: 0 22px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 340px;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 0 34px;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
  }

  .nav.open { transform: translateX(0); }

  .nav a,
  .site-header.scrolled .nav a {
    color: rgba(255,255,255,.85);
    font-size: 15px;
  }

  .site-header.scrolled .btn-outline,
  .btn-outline {
    border-color: rgba(255,255,255,.45);
    color: var(--white) !important;
    margin-top: 12px;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .lead { font-size: 16px; }
}/* ============ ZAJEDNIČKI STILOVI SEKCIJA ============ */
.section {
  padding: 130px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 72px;
}

.eyebrow-dark {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 24px;
}

.section-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey);
}

/* ============ ANIMACIJA POJAVLJIVANJA ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1),
              transform .9s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.products-grid .reveal:nth-child(2) { transition-delay: .08s; }
.products-grid .reveal:nth-child(3) { transition-delay: .16s; }
.products-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ============ PRODUCTS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}

.product-card {
  cursor: default;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  margin-bottom: 28px;
  overflow: hidden;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}

.product-card:hover .product-media {
  transform: scale(1.015);
}

.product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,33,55,0) 55%, rgba(13,33,55,.18) 100%);
}

.product-body h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 25px;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: 12px;
}

.product-body p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey);
  max-width: 460px;
}

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .product-media { margin-bottom: 22px; }
  .section-lead, .product-body p { font-size: 15.5px; }
}
/* ============ JEZIČNI PREKIDAČ ============ */
.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .1em;
  margin-left: 4px;
}

.lang-active {
  color: var(--white);
  font-weight: 500;
}

.lang-sep {
  color: rgba(255,255,255,.35);
}

.lang a {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: none;
}

.lang a:hover { color: var(--white); }

.site-header.scrolled .lang-active { color: var(--navy); }
.site-header.scrolled .lang-sep { color: var(--line); }
.site-header.scrolled .lang a { color: var(--grey); }
.site-header.scrolled .lang a:hover { color: var(--navy); }

/* ============ CUSTOM FABRICATION ============ */
.section-alt {
  background: var(--sand);
}

.section-head-flush {
  margin-bottom: 0;
  max-width: 720px;
}

.section-lead-next {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .lang {
    margin-top: 20px;
  }
  .lang-active,
  .site-header.scrolled .lang-active { color: var(--white); }
  .lang a,
  .site-header.scrolled .lang a { color: rgba(255,255,255,.55); }
  .lang-sep,
  .site-header.scrolled .lang-sep { color: rgba(255,255,255,.3); }
}
/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 110px;
}

.about-image {
  aspect-ratio: 3 / 4;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}

.about-text .eyebrow-dark { margin-bottom: 20px; }
.about-text .section-title { margin-bottom: 26px; }

/* ============ CAPABILITIES ============ */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability {
  padding: 42px 40px 46px 0;
  border-bottom: 1px solid var(--line);
}

.capability:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
  padding-right: 40px;
}

.capability:not(:nth-child(3n+1)) {
  padding-left: 40px;
}

.cap-index {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--grey);
  opacity: .55;
  margin-bottom: 18px;
}

.capability h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 11px;
}

.capability p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey);
}

.capabilities .reveal:nth-child(2) { transition-delay: .06s; }
.capabilities .reveal:nth-child(3) { transition-delay: .12s; }
.capabilities .reveal:nth-child(5) { transition-delay: .06s; }
.capabilities .reveal:nth-child(6) { transition-delay: .12s; }

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 64px;
  }

  .about-image { aspect-ratio: 4 / 3; }

  .br-desk { display: none; }

  .capabilities { grid-template-columns: 1fr; }

  .capability,
  .capability:not(:nth-child(3n)),
  .capability:not(:nth-child(3n+1)) {
    padding: 32px 0 34px 0;
    border-right: none;
  }
}

/* ============ CONTACT ============ */
.contact {
  background: var(--navy-deep);
  padding: 130px 0 110px;
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: start;
}

.contact .eyebrow { margin-bottom: 22px; }

.contact-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 26px;
}

.contact-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
  max-width: 460px;
  margin-bottom: 52px;
}

.contact-details {
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.16);
  margin-bottom: 44px;
}

.contact-details p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,.72);
}

.contact-company {
  font-family: 'Outfit', sans-serif;
  font-size: 17px !important;
  color: var(--white) !important;
  margin-bottom: 6px;
}

.contact-details a {
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 1px;
  transition: color .3s ease, border-color .3s ease;
}

.contact-details a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

.contact-place { opacity: .6; }

.contact-footnote {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.42);
  max-width: 380px;
}

/* ============ FORMA ============ */
.hp-field { display: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 9px;
}

.field label span { color: rgba(255,255,255,.3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding: 11px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--white);
  border-radius: 0;
  transition: border-color .3s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'><path d='M1 1l4.5 4.5L10 1' stroke='rgba(255,255,255,0.45)' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.field select option {
  background: var(--navy);
  color: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: rgba(255,255,255,.75);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--navy-deep) inset;
}

/* ============ GDPR CHECKBOX ============ */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 10px 0 38px;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  cursor: pointer;
  border-radius: 1px;
  transition: all .25s ease;
  position: relative;
}

.consent input:checked {
  background: var(--white);
  border-color: var(--white);
}

.consent input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid var(--navy-deep);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.consent label {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  cursor: pointer;
}

.policy-link {
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.28);
}

.policy-link:hover { color: var(--white); }

/* ============ SEND GUMB ============ */
.btn-send {
  background: var(--white);
  color: var(--navy);
  padding: 16px 42px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border-radius: 2px;
}

.btn-send:hover {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

/* ============ PORUKA NAKON SLANJA ============ */
.form-success {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 38px;
}

.form-success h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 16px;
}

.form-success p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,.65);
}

.form-success a {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.35);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 34px 0 38px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
}

.footer-meta {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.38);
}

.footer-meta a {
  color: rgba(255,255,255,.55);
  transition: color .3s ease;
}

.footer-meta a:hover { color: var(--white); }

.footer-dot { padding: 0 8px; opacity: .5; }

@media (max-width: 900px) {
  .contact { padding: 88px 0 76px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .contact-lead { margin-bottom: 40px; }
  .contact-details { margin-bottom: 34px; }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .btn-send { width: 100%; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* ============ PORUKA O GRESCI U FORMI ============ */
[hidden] { display: none !important; }

.form-error {
  margin: -6px 0 26px;
  padding: 2px 0 2px 16px;
  border-left: 1px solid rgba(255,255,255,.45);
}

.form-error p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
}

.form-error a {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px;
}

.form-error a:hover { border-color: var(--white); }

.btn-send:disabled {
  opacity: .45;
  cursor: default;
}

.btn-send:disabled:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

/* ============ PRAVNA / TEKSTUALNA STRANICA ============ */
.legal {
  padding: 170px 0 120px;
  background: var(--white);
}

.legal-inner {
  max-width: 790px;
  margin: 0 auto;
}

.legal-head {
  padding-bottom: 40px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 20px;
}

.legal-updated {
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--grey);
  opacity: .8;
}

.legal h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.3;
  color: var(--navy);
  margin: 56px 0 18px;
}

.legal h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--navy);
  margin: 32px 0 12px;
}

.legal p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
  opacity: .88;
  margin-bottom: 18px;
}

.legal ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.legal li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
  opacity: .88;
  margin-bottom: 7px;
}

.legal a {
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color .3s ease;
}

.legal a:hover { border-bottom-color: var(--navy); }

.legal-box {
  background: var(--sand);
  padding: 30px 34px;
  margin: 26px 0 12px;
}

.legal-box p {
  margin-bottom: 4px;
  font-size: 15.5px;
  line-height: 1.75;
}

.legal-box p:first-child {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  color: var(--navy);
  opacity: 1;
  margin-bottom: 10px;
}

.legal-note {
  font-size: 14.5px !important;
  color: var(--grey) !important;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

@media (max-width: 900px) {
  .legal { padding: 120px 0 80px; }
  .legal-head { margin-bottom: 40px; padding-bottom: 30px; }
  .legal h2 { font-size: 22px; margin: 44px 0 14px; }
  .legal p, .legal li { font-size: 15.5px; }
  .legal-box { padding: 24px 22px; }
}

/* ============ GALERIJA — TRIGGER NA KARTICI ============ */
.product-media.has-gallery {
  cursor: pointer;
}

.product-media.has-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(7,21,35,0);
  transition: background .5s ease;
}

.product-card:hover .product-media.has-gallery::before {
  background: rgba(7,21,35,.14);
}

.product-media.has-gallery .gal-hint,
.product-media.has-gallery::after {
  content: '';
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(7,21,35,.28);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
  /* diskretan znak povecala */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><circle cx='7' cy='7' r='4.6' fill='none' stroke='white' stroke-width='1.1'/><path d='M10.4 10.4L14 14' stroke='white' stroke-width='1.1'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.product-card:hover .product-media.has-gallery::after {
  opacity: 1;
  transform: none;
}

.product-media.has-gallery:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (hover: none) {
  .product-media.has-gallery::after { display: none; }
}

/* ============ GALERIJA — LIGHTBOX ============ */
body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,11,19,.97);
  opacity: 0;
  transition: opacity .3s ease;
}

.lightbox.is-open { opacity: 1; }

.lb-stage {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 84px;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
}

.lb-img.is-in {
  opacity: 1;
  transform: none;
}

.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .3s ease;
}

.lb-close:hover,
.lb-nav:hover { color: var(--white); }

.lb-close:focus-visible,
.lb-nav:focus-visible {
  outline: 1px solid rgba(255,255,255,.6);
  outline-offset: 4px;
  color: var(--white);
}

.lb-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-counter {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .16em;
  color: rgba(255,255,255,.45);
}

@media (max-width: 900px) {
  .lb-stage { padding: 66px 14px 74px; }

  .lb-close {
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
  }

  .lb-nav {
    width: 46px;
    height: 46px;
    top: auto;
    bottom: 14px;
    transform: none;
    color: rgba(255,255,255,.45);
  }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }

  .lb-counter { bottom: 30px; font-size: 11px; }
}
