:root {
  --bg: #07090d;
  --bg-2: #0d1118;
  --panel: #111722;
  --panel-2: #151d2a;
  --text: #f7f9fc;
  --muted: #a7b0bf;
  --dark-text: #111827;
  --dark-muted: #5b6575;
  --line: rgba(255, 255, 255, .12);
  --blue: #1d9bff;
  --blue-2: #006bd6;
  --silver: #d8dde7;
  --white: #fff;
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: #fff;
  color: var(--dark-text);
  line-height: 1.6
}

body.menu-open {
  overflow: hidden
}

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

img,
video {
  max-width: 100%;
  display: block
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto
}

.narrow {
  width: min(860px, calc(100% - 40px))
}

.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden
}

.section-dark {
  background: var(--bg);
  color: var(--text)
}

.section-muted {
  background: #f4f7fb
}

.angled-top {
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
  padding-top: 130px
}

.angled-bottom {
  clip-path: polygon(0 0, 100% 5vw, 100% calc(100% - 5vw), 0 100%);
  padding-bottom: 130px
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px 0;
  background: rgba(7, 9, 13, .62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background .25s ease, box-shadow .25s ease
}

.site-header.scrolled {
  background: rgba(7, 9, 13, .94);
  box-shadow: 0 10px 45px rgba(0, 0, 0, .34)
}

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

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  line-height: 0
}

.brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .42))
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #dce6f5;
  font-weight: 700;
  font-size: 14px
}

.main-nav a:not(.nav-cta) {
  opacity: .88;
  transition: .2s
}

.main-nav a:not(.nav-cta):hover {
  opacity: 1;
  color: #fff
}

.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #02111f;
  box-shadow: 0 0 20px rgba(29, 155, 255, .35)
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0;
  border-radius: 99px;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 160px 0 90px;
  isolation: isolate
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 12, .94) 0%, rgba(4, 7, 12, .78) 42%, rgba(4, 7, 12, .34) 100%), radial-gradient(circle at 25% 35%, rgba(29, 155, 255, .22), transparent 35%);
  z-index: -2
}

.hero-content {
  max-width: 820px;
  margin-left: max(20px, calc((100% - var(--container))/2))
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .15em
}

.eyebrow:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue)
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: .95;
  letter-spacing: -.07em;
  margin-bottom: 24px
}

h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: 18px
}

h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 12px
}

.hero p,
.section-heading p {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #7bd0ff);
  color: #03101d;
  box-shadow: 0 8px 20px rgba(29, 155, 255, .2)
}

.btn-secondary {
  background: #111827;
  color: #fff
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  background: rgba(255, 255, 255, .06)
}

.btn-full {
  width: 100%;
  margin-top: auto
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px
}

.hero-badges span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .11);
  color: #e8eef8;
  font-size: 13px;
  font-weight: 800
}

.trust-bar {
  background: #0b0f16;
  color: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.trust-grid div {
  padding: 28px 24px;
  border-left: 1px solid var(--line)
}

.trust-grid div:last-child {
  border-right: 1px solid var(--line)
}

.trust-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #fff
}

.trust-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700
}

.section-heading {
  margin-bottom: 42px
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto
}

.section-heading.centered p {
  margin-inline: auto
}

.section-heading.light p {
  color: var(--muted)
}

.service-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px
}

.service-tabs button {
  border: 1px solid #d8e0eb;
  background: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
  cursor: pointer;
  color: #263244;
  transition: .2s
}

.service-tabs button.active,
.service-tabs button:hover {
  background: #111827;
  color: #fff;
  border-color: #111827
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.packages-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease
}

.service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 155, 255, .16), transparent 45%);
  opacity: 0;
  transition: .35s;
  pointer-events: none
}

.service-card:hover {
  transform: translateY(-14px) scale(1.015);
  box-shadow: 0 30px 75px rgba(15, 23, 42, .18);
  border-color: rgba(29, 155, 255, .55)
}

.service-card:hover:before {
  opacity: 1
}

.service-card:hover .service-media {
  transform: scale(1.05);
  filter: saturate(1.14)
}

.service-card:hover .btn-primary {
  box-shadow: 0 22px 52px rgba(29, 155, 255, .42)
}

.service-card.featured {
  border-color: rgba(29, 155, 255, .75);
  box-shadow: 0 18px 55px rgba(29, 155, 255, .16)
}

.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--blue);
  color: #02111f;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900
}

.service-media {
  height: 180px;
  transition: transform .45s ease, filter .45s ease
}

.image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #141b27, #25364d 55%, #0b7ee8);
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 160px
}

.service-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1
}

.service-kicker {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em
}

.service-card p {
  color: var(--dark-muted);
  font-size: 15px
}

.service-card ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none
}

.service-card li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: #253244;
  font-weight: 650;
  font-size: 14px
}

.service-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900
}

.service-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid #e6edf5;
  padding-top: 16px
}

.service-price span {
  color: var(--dark-muted);
  font-size: 13px;
  font-weight: 800
}

.service-price strong {
  font-size: 22px;
  line-height: 1;
  color: #0b1220
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 58px;
  align-items: center
}

.split-layout.reverse {
  grid-template-columns: 1.05fr 1fr
}

.steps-list {
  display: grid;
  gap: 14px
}

.step-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid #e1e8f2;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06)
}

.step-card>span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 48px
}

.step-card p {
  color: var(--dark-muted);
  margin-bottom: 0
}

.equipment-section {
  background: radial-gradient(circle at 80% 20%, rgba(29, 155, 255, .25), transparent 28%), #07090d
}

.equipment-visual.large {
  /* min-height: 470px; */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line)
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.feature-grid.small {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px
}

.feature-grid div {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 22px
}

.feature-grid strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px
}

.feature-grid span {
  color: var(--muted);
  font-size: 14px
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 18px
}

.gallery-item {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .13)
}

.gallery-item.tall {
  grid-row: span 2
}

.gallery-item.wide {
  grid-column: span 2
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.review-card {
  background: #fff;
  border: 1px solid #e1e8f2;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06)
}

.stars {
  color: #ffb400;
  letter-spacing: .06em;
  font-weight: 900;
  margin-bottom: 14px
}

.review-card p {
  color: #3d4858
}

.review-card strong {
  display: block;
  margin-top: 18px
}

.area-panel {
  background: #0c111a;
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow)
}

.area-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.area-tags span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 800;
  font-size: 14px
}

.faq-list {
  display: grid;
  gap: 12px
}

.faq-list details {
  background: #fff;
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05)
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 17px
}

.faq-list p {
  color: var(--dark-muted);
  margin: 12px 0 0
}

.final-cta {
  text-align: center
}

.cta-box {
  max-width: 880px
}

.centered-actions {
  justify-content: center
}

.site-footer {
  background: #05070b;
  color: #dce6f5;
  padding: 58px 0 24px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr .9fr;
  gap: 40px
}

.site-footer p {
  color: var(--muted);
  max-width: 480px
}

.site-footer h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff
}

.site-footer a,
.site-footer span {
  display: block;
  color: var(--muted);
  margin: 8px 0;
  font-weight: 650
}

.site-footer a:hover {
  color: #fff
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center
}

.footer-brand {
  margin-bottom: 18px
}

@media (max-width:820px) {

  .container,
  .narrow {
    width: min(100% - 28px, var(--container))
  }

  .menu-toggle {
    display: flex
  }

  .main-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 78px;
    display: grid;
    gap: 0;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: .22s
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0)
  }

  .main-nav a {
    padding: 13px;
    border-radius: 14px
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px
  }

  .hero {
    min-height: 92vh;
    padding-top: 130px
  }

  .hero-content {
    margin-inline: auto
  }

  .hero p,
  .section-heading p {
    font-size: 16px
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .trust-grid div {
    border-bottom: 1px solid var(--line)
  }

  .section {
    padding: 72px 0
  }

  .angled-top,
  .angled-bottom {
    clip-path: none;
    padding-top: 72px;
    padding-bottom: 72px
  }

  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    gap: 34px
  }

  .services-grid,
  .reviews-grid,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto
  }

  .footer-bottom {
    display: grid
  }

  .hero-actions .btn {
    width: 100%
  }
}

@media (max-width:520px) {
  h1 {
    font-size: 43px
  }

  .trust-grid {
    grid-template-columns: 1fr
  }

  .service-body {
    padding: 18px
  }

  .feature-grid,
  .feature-grid.small {
    grid-template-columns: 1fr
  }

  .hero-badges span {
    width: 100%;
    text-align: center
  }

  .site-header {
    padding: 10px 0
  }
}

@media (max-width:640px) {
  .brand-logo {
    width: 165px
  }
}


/* Scroll reveal / prelazi između sekcija - smooth verzija */
.section,
.trust-bar,
.site-footer {
  opacity: 0;
  transform: translateY(10px);
  filter: none;
  transition:
    opacity .52s cubic-bezier(.16, 1, .3, 1),
    transform .52s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.section.is-visible,
.trust-bar.is-visible,
.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

/* Hero treba odmah da bude vidljiv, ali sadržaj ulazi malo elegantnije */
.hero {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero .eyebrow,
.hero h1,
.hero p,
.hero .hero-actions,
.hero .hero-badges {
  opacity: 0;
  transform: translateY(16px);
  animation: ss-hero-in .55s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero h1 {
  animation-delay: .08s;
}

.hero p {
  animation-delay: .16s;
}

.hero .hero-actions {
  animation-delay: .24s;
}

.hero .hero-badges {
  animation-delay: .32s;
}

@keyframes ss-hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Unutrašnji elementi sekcija dobijaju blagi stagger efekat */
.reveal-item,
.section-heading,
.service-card,
.step-card,
.feature-grid>div,
.gallery-item,
.review-card,
.area-panel,
.faq-list details,
.cta-box {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .44s cubic-bezier(.16, 1, .3, 1),
    transform .44s cubic-bezier(.16, 1, .3, 1),
    box-shadow .28s ease,
    border-color .28s ease,
    background .28s ease;
}

.is-visible .reveal-item,
.is-visible .section-heading,
.is-visible .service-card,
.is-visible .step-card,
.is-visible .feature-grid>div,
.is-visible .gallery-item,
.is-visible .review-card,
.is-visible .area-panel,
.is-visible .faq-list details,
.is-visible .cta-box {
  opacity: 1;
  transform: translateY(0);
}

.is-visible .service-card:nth-child(2),
.is-visible .step-card:nth-child(2),
.is-visible .review-card:nth-child(2),
.is-visible .feature-grid>div:nth-child(2),
.is-visible .gallery-item:nth-child(2),
.is-visible .faq-list details:nth-child(2) {
  transition-delay: .025s;
}

.is-visible .service-card:nth-child(3),
.is-visible .step-card:nth-child(3),
.is-visible .review-card:nth-child(3),
.is-visible .feature-grid>div:nth-child(3),
.is-visible .gallery-item:nth-child(3),
.is-visible .faq-list details:nth-child(3) {
  transition-delay: .05s;
}

.is-visible .service-card:nth-child(4),
.is-visible .step-card:nth-child(4),
.is-visible .review-card:nth-child(4),
.is-visible .feature-grid>div:nth-child(4),
.is-visible .gallery-item:nth-child(4),
.is-visible .faq-list details:nth-child(4) {
  transition-delay: .075s;
}

.is-visible .service-card:nth-child(5),
.is-visible .gallery-item:nth-child(5),
.is-visible .faq-list details:nth-child(5) {
  transition-delay: .1s;
}

.is-visible .service-card:nth-child(6),
.is-visible .gallery-item:nth-child(6),
.is-visible .faq-list details:nth-child(6) {
  transition-delay: .125s;
}

.is-visible .service-card:nth-child(7),
.is-visible .faq-list details:nth-child(7) {
  transition-delay: .15s;
}

.is-visible .service-card:nth-child(8),
.is-visible .faq-list details:nth-child(8) {
  transition-delay: .175s;
}

/* Vizuelni prelaz između sekcija - svetlosna linija kao loading/shine */
.section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%) scaleX(.45);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(29, 155, 255, .55), rgba(255, 255, 255, .18), transparent);
  opacity: 0;
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.16, 1, .3, 1);
}

.section.is-visible::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.section-dark::after {
  background: linear-gradient(90deg, transparent, rgba(29, 155, 255, .65), rgba(255, 255, 255, .14), transparent);
}

/* Malo jači premium hover na karticama usluga, kao sekcija koja se učitava/diše */
.service-card {
  isolation: isolate;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -60% -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .42) 48%, rgba(29, 155, 255, .24) 52%, transparent 65%);
  transform: translateX(-70%) rotate(8deg);
  opacity: 0;
  transition:
    opacity .16s ease,
    transform .48s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::after {
  opacity: 1;
  transform: translateX(70%) rotate(8deg);
}

.service-card .service-media {
  position: relative;
  z-index: 1;
}

.service-card .service-body {
  position: relative;
  z-index: 2;
}

/* FIX: popular badge preko media dela */
.service-card .popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  bottom: auto;
  width: auto;
  max-width: calc(100% - 28px);
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #7bd0ff);
  color: #02111f;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(29, 155, 255, .22);
  z-index: 8;
}

/* Filter kartice prilikom promene taba */
.service-card.is-filtering {
  opacity: 0;
  transform: translateY(10px) scale(.99);
}

/* ================================
   FOOTER FIX
================================ */

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  line-height: 1;
}

.site-footer .footer-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .36));
}

.footer-bottom {
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .site-footer .footer-logo {
    width: 165px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section,
  .trust-bar,
  .site-footer,
  .reveal-item,
  .section-heading,
  .service-card,
  .step-card,
  .feature-grid>div,
  .gallery-item,
  .review-card,
  .area-panel,
  .faq-list details,
  .cta-box,
  .hero .eyebrow,
  .hero h1,
  .hero p,
  .hero .hero-actions,
  .hero .hero-badges {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .section::after,
  .service-card::after {
    display: none;
  }
}

/* ================================
   RESPONSIVE POLISH ADD-ON
   Dodati na kraj postojećeg onepage.css
   Ne menja postojeće vrednosti iznad, samo ih pregazi po breakpointima.
================================ */

@media (max-width: 1280px) {
  :root {
    --container: 1080px;
  }

  .main-nav {
    gap: 14px;
    font-size: 13px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content {
    max-width: 760px;
  }
}

@media (max-width:1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 980px) {

  .container,
  .narrow {
    width: min(100% - 32px, var(--container));
  }

  .menu-toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: grid;
    gap: 4px;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 13px;
    border-radius: 14px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    min-height: 92svh;
    padding: 135px 0 74px;
  }

  .hero-content {
    margin-inline: auto;
    max-width: min(760px, calc(100% - 32px));
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .angled-top,
  .angled-bottom {
    clip-path: none;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid div {
    border-bottom: 1px solid var(--line);
  }

  .service-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 2px 8px;
    scrollbar-width: none;
  }

  .service-tabs::-webkit-scrollbar {
    display: none;
  }

  .service-tabs button {
    flex: 0 0 auto;
  }

  .services-grid,
  .reviews-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    display: grid;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {

  .container,
  .narrow {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding: 10px 0;
  }

  .hero {
    min-height: 90svh;
    padding: 118px 0 58px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
    letter-spacing: -.06em;
  }

  h2 {
    font-size: clamp(31px, 10vw, 44px);
  }

  .hero p,
  .section-heading p {
    font-size: 16px;
  }

  .hero-badges span {
    width: 100%;
    text-align: center;
  }

  .service-body,
  .area-panel {
    padding: 18px;
  }

  .feature-grid,
  .feature-grid.small {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 390px) {

  .container,
  .narrow {
    width: min(100% - 22px, var(--container));
  }

  h1 {
    font-size: 38px;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }

  .service-card:hover {
    transform: translateY(-6px) scale(1.005);
  }
}

@media (hover: none),
(pointer: coarse) {
  .service-card:hover {
    transform: none;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
  }

  .service-card:hover .service-media {
    transform: none;
    filter: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-height: 680px) and (min-width: 821px) {
  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 70px;
  }
}

/* ================================
   RESPONSIVE FIXES 912 / 820 / 768
   Dodato na kraj CSS-a da ne dira postojeće izmene
================================ */

/* Footer na tablet dimenzijama: 912px i 820px ostaje u jednom redu */
@media (min-width: 769px) and (max-width: 980px) {
  .site-footer {
    padding-top: 46px;
  }

  .footer-grid {
    grid-template-columns: minmax(250px, .95fr) minmax(145px, .55fr) minmax(185px, .7fr);
    align-items: start;
    gap: 22px;
  }

  .site-footer p {
    max-width: 320px;
    font-size: 15px;
    line-height: 1.55;
  }

  .site-footer h3 {
    font-size: 13px;
    letter-spacing: .14em;
  }

  .site-footer a,
  .site-footer span {
    font-size: 14px;
  }

  .site-footer .footer-logo {
    width: 155px;
  }
}

/* Trust bar / benefit grid: dodaje desni border drugom elementu u redu */
@media (max-width: 980px) {
  .trust-grid div:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
}

/* Service tabs na 768px: centrirano i bez osećaja da je zalepljeno levo */
@media (max-width: 768px) {
  .service-tabs {
    justify-content: center;
    overflow-x: visible;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Na uskim telefonima tabovi se razvuku uredno u 2 kolone */
@media (max-width: 430px) {
  .service-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .service-tabs button {
    width: 100%;
    padding-inline: 12px;
  }
}

/* ================================
   MOBILE OVERFLOW FIX
================================ */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-header,
.section,
.trust-bar,
.site-footer {
  width: 100%;
  max-width: 100%;
}

.container,
.narrow,
.hero-content,
.header-inner,
.footer-grid,
.trust-grid,
.services-grid,
.gallery-grid,
.reviews-grid {
  min-width: 0;
}

.trust-grid>div,
.service-card,
.review-card,
.gallery-item,
.area-panel {
  min-width: 0;
}

.trust-grid strong,
.trust-grid span,
.hero p,
.section-heading p,
.service-card p,
.site-footer p,
.site-footer a,
.site-footer span {
  overflow-wrap: anywhere;
}

/* Mali razmak između sačuvanih vozila */
.booking-modal #saved-vehicles-options {
  display: grid;
  gap: 10px;
}

/* Razmak između forme/polja i napomene za obavezna polja */
.booking-modal #customer-step .required-note {
  margin-top: 22px !important;
}

@media (max-width: 520px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 430px) {
  .trust-grid div {
    padding: 24px 20px;
  }

  .hero-content {
    max-width: calc(100% - 28px);
  }
}

@media (max-width: 520px) {

  h1,
  h2,
  h3 {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (max-width: 640px) {

  .hero-video,
  .hero-poster {
    object-position: 68% center;
  }
}

/* ================================
   FINAL CTA PHONE BUTTON
================================ */
.final-cta .centered-actions {
  align-items: stretch;
}

.final-cta .btn {
  min-width: 180px;
}

.btn-call {
  min-height: 58px;
  padding: 8px 22px;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.btn-call-title,
.btn-call-phone {
  display: block;
}

.btn-call-title {
  font-size: 15px;
}

.btn-call-phone {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, .78);
  letter-spacing: .01em;
}

@media (hover: hover) and (pointer: fine) {
  .btn-call {
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .final-cta .btn {
    width: 100%;
    min-width: 0;
  }

  .btn-call {
    pointer-events: auto;
    cursor: pointer;
  }
}

.service-card .btn {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .06em;
}

/* ================================
   HEADER NAV LINK HOVER
================================ */

.main-nav a:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 2px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 800;
  color: #dce6f5;
  opacity: .92;
  transition:
    color .22s ease,
    opacity .22s ease,
    transform .22s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #7bd0ff);
  box-shadow: 0 0 12px rgba(29, 155, 255, .55);
  transform: translateX(-50%);
  transition: width .24s ease;
}

.main-nav a:not(.nav-cta):hover {
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

/* Da se ne smanji na 13px zbog postojećeg @media max-width:1280 */
@media (max-width: 1280px) {
  .main-nav a:not(.nav-cta) {
    font-size: 15px;
  }
}

/* U mobilnom meniju ne treba donja crtica, jer linkovi idu kao blokovi */
@media (max-width: 980px) {
  .main-nav a:not(.nav-cta) {
    font-size: 13px;
    padding: 8px;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .main-nav a:not(.nav-cta):hover {
    transform: none;
    background: rgba(255, 255, 255, .06);
  }
}

/* ================================
   GALLERY EQUAL GRID
   4 iste kartice: 2 gore, 2 dole
================================ */

.gallery-grid.gallery-grid-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid.gallery-grid-equal .gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .13);
}

.gallery-grid.gallery-grid-equal .gallery-item picture,
.gallery-grid.gallery-grid-equal .gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-grid.gallery-grid-equal .gallery-item img {
  object-fit: cover;
  object-position: center center;
}

/* Specifična pozicija za slike koje imaju bitan kadar */
.gallery-grid.gallery-grid-equal .gallery-item-headlights img {
  object-position: center center;
}

.gallery-grid.gallery-grid-equal .gallery-item-engine img {
  object-position: center center;
}

@media (max-width: 768px) {
  .gallery-grid.gallery-grid-equal {
    grid-template-columns: 1fr;
  }

  .gallery-grid.gallery-grid-equal .gallery-item {
    aspect-ratio: 4 / 3;
  }
}

/* ================================
   FINAL FIX: GALLERY IMAGE GRID
================================ */

.gallery-section {
  overflow: visible !important;
}

.gallery-section .gallery-grid.gallery-grid-equal {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 18px !important;
}

.gallery-section .gallery-grid.gallery-grid-equal .gallery-item {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
}

.gallery-section .gallery-grid.gallery-grid-equal picture,
.gallery-section .gallery-grid.gallery-grid-equal img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.gallery-section .gallery-grid.gallery-grid-equal img {
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 768px) {
  .gallery-section .gallery-grid.gallery-grid-equal {
    grid-template-columns: 1fr !important;
  }
}

/* ================================
   EQUIPMENT IMAGE FINAL FIX
   Slika se nikad ne seče, samo se proporcionalno smanjuje
================================ */

.equipment-section .equipment-visual.large {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden;
  display: block;
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.equipment-section .equipment-visual.large picture {
  width: 100%;
  height: auto;
  display: block;
}

.equipment-section .equipment-visual.large img {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: inherit;
}

/* Na tablet širinama oprema ide u jednu kolonu */
@media (max-width: 1280px) {

  .equipment-section .split-layout,
  .equipment-section .split-layout.reverse {
    grid-template-columns: 1fr !important;
    gap: 34px;
  }
}

/* ================================
   FOOTER SOCIAL ICONS
================================ */

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
}

.site-footer .footer-socials a {
  width: 42px;
  height: 42px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #dce6f5;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    box-shadow .22s ease;
}

.site-footer .footer-socials a:hover {
  color: #fff;
  background: rgba(29, 155, 255, .16);
  border-color: rgba(29, 155, 255, .55);
  box-shadow: 0 10px 24px rgba(29, 155, 255, .16);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

@media (max-width: 768px) {
  .footer-socials {
    margin-top: 16px;
  }

  .site-footer .footer-socials a {
    width: 44px;
    height: 44px;
  }
}

/* ================================
   MOBILE REVEAL SAFETY FIX
   Sprečava praznu sekciju usluga ako IntersectionObserver na mobilnom ne okine.
================================ */
@media (max-width: 768px) {

  .services-booking-section,
  .services-booking-section .section-heading,
  .services-booking-section .service-tabs,
  .services-booking-section .service-card {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}