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

:root {
  --blue:    #1a3a5c;
  --blue2:   #1d4e89;
  --accent:  #e8a020;
  --gray:    #f4f4f4;
  --dark:    #222;
  --text:    #555;
  --white:   #fff;
  --home-section-space: 70px;
  --home-section-space-mobile: 46px;
}

body { font-family: 'Open Sans', sans-serif; color: var(--text); }
body.menu-open { overflow: hidden; }

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

/* ── HEADER ── */
header {
  background: var(--blue);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-icon {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 800; color: #fff; font-size: 20px;
}
.logo-text { color: #fff; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 22px; }
.logo-text span { color: var(--accent); }

nav { display: flex; gap: 4px; align-items: center; }
nav a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
nav a:hover, nav a.active {
  background: var(--accent); color: #fff;
}

/* ── DROPDOWN ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.dropdown-arrow {
  width: 10px;
  height: 6px;
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 4px 4px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 999;
}
/* nevidljivi most koji premošćava gap između toggle-a i menija */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  border-radius: 0;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.dropdown-menu li a:hover {
  background: var(--accent);
  color: #fff;
}
.dropdown-menu li + li {
  border-top: 1px solid rgba(255,255,255,.06);
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  padding: 4px 10px;
}
.lang-sep {
  color: rgba(255,255,255,.25);
  font-size: 11px;
  user-select: none;
}
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  text-decoration: none;
  padding: 1px 3px;
  border-radius: 2px;
  transition: color .2s;
  letter-spacing: .04em;
}
.lang-btn.active {
  color: #fff;
  font-weight: 700;
  background: none;
}
.lang-btn.disabled {
  cursor: default;
  pointer-events: none;
  opacity: .35;
}
.lang-btn:not(.disabled):hover { color: var(--accent); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 6px;
}
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── HERO ── */
.hero {
  min-height: 560px;
  background: linear-gradient(135deg, #0d2740 0%, #1a3a5c 55%, #1d5480 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 60px);
}
/* decorative building lines */
.hero::after {
  content: '';
  position: absolute; right: -40px; bottom: 0;
  width: 500px; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 560'%3E%3Crect x='60' y='150' width='120' height='410' fill='rgba(255,255,255,0.04)'/%3E%3Crect x='200' y='80' width='140' height='480' fill='rgba(255,255,255,0.05)'/%3E%3Crect x='360' y='200' width='100' height='360' fill='rgba(255,255,255,0.03)'/%3E%3Crect x='75' y='185' width='10' height='30' fill='rgba(232,160,32,0.5)'/%3E%3Crect x='100' y='185' width='10' height='30' fill='rgba(232,160,32,0.5)'/%3E%3Crect x='125' y='185' width='10' height='30' fill='rgba(232,160,32,0.5)'/%3E%3Crect x='75' y='240' width='10' height='30' fill='rgba(232,160,32,0.5)'/%3E%3Crect x='100' y='240' width='10' height='30' fill='rgba(232,160,32,0.5)'/%3E%3Crect x='125' y='240' width='10' height='30' fill='rgba(232,160,32,0.5)'/%3E%3Crect x='215' y='115' width='14' height='40' fill='rgba(232,160,32,0.4)'/%3E%3Crect x='245' y='115' width='14' height='40' fill='rgba(232,160,32,0.4)'/%3E%3Crect x='275' y='115' width='14' height='40' fill='rgba(232,160,32,0.4)'/%3E%3Crect x='305' y='115' width='14' height='40' fill='rgba(232,160,32,0.4)'/%3E%3C/svg%3E") no-repeat bottom right;
  background-size: contain;
  opacity: .6;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp .8s ease;
}
.hero-content h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-content h1 span { color: var(--accent); }
.hero-divider {
  width: 70px; height: 3px;
  background: var(--accent); margin: 18px auto;
  border-radius: 2px;
}
.hero-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px; margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  cursor: pointer;
}
.btn:hover { background: #c8880e; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sticky-call-btn {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.3);
  z-index: 3000;
}
.sticky-call-btn:hover {
  background: #c8880e;
  transform: translateY(-2px);
}
.sticky-call-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* ── INFO CARDS below hero ── */
.info-strip {
  background: #fff;
  border-bottom: 3px solid var(--accent);
}
.info-strip-inner {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.info-card {
  padding: 36px 30px;
  border-right: 1px solid #e8e8e8;
  transition: background .2s;
}
.info-card:last-child { border-right: none; }
.info-card:hover { background: #fafafa; }
.info-card-icon {
  width: 50px; height: 50px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.info-card-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.info-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.info-card p { font-size: .9rem; line-height: 1.7; color: #666; }

/* ── SECTION TITLE ── */
.section-header {
  text-align: center; padding: 60px 20px 40px;
}
.section-header .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-header p {
  max-width: 680px; margin: 16px auto 0;
  color: #777; font-size: .95rem; line-height: 1.75;
}
.divider {
  width: 60px; height: 3px;
  background: var(--accent); margin: 14px auto 0;
  border-radius: 2px;
}

/* ── PRODUCTS GRID ── */
.products-section,
.features-section,
.references-section,
.aludrvo-section,
.contact-strip {
  padding-top: var(--home-section-space);
  padding-bottom: var(--home-section-space);
}

.products-section .section-header,
.features-section .section-header,
.references-section .section-header {
  padding-top: 0;
}

.products-section { background: var(--gray); }
.products-grid {
  max-width: 1200px; margin: auto; padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.product-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.product-card-thumb {
  height: 160px;
  background: var(--blue2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card-thumb svg { width: 64px; height: 64px; opacity: .7; }
.product-card-thumb .overlay {
  position: absolute; inset: 0;
  background: rgba(29,78,137,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.product-card:hover .overlay { opacity: 1; }
.overlay span {
  color: #fff; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border: 2px solid var(--accent); padding: 6px 16px; border-radius: 3px;
}

/* different bg colors per card */
.pc-1 .product-card-thumb { background: linear-gradient(135deg, #1a3a5c, #2a5a9c); }
.pc-2 .product-card-thumb { background: linear-gradient(135deg, #1d4e89, #3a7ac4); }
.pc-3 .product-card-thumb { background: linear-gradient(135deg, #14344e, #1d6080); }
.pc-4 .product-card-thumb { background: linear-gradient(135deg, #1a3a5c, #2a7060); }
.pc-5 .product-card-thumb { background: linear-gradient(135deg, #2a1a5c, #4a2a9c); }
.pc-6 .product-card-thumb { background: linear-gradient(135deg, #5c1a1a, #9c4a2a); }
.pc-7 .product-card-thumb { background: linear-gradient(135deg, #1a5c3a, #2a9c5a); }
.pc-8 .product-card-thumb { background: linear-gradient(135deg, #3a3a1a, #7c7c2a); }
.pc-9 .product-card-thumb { background: linear-gradient(135deg, #1a4040, #2a7070); }

/* Explicit hover override for all cards to ensure proper specificity */
.product-card.pc-1:hover,
.product-card.pc-2:hover,
.product-card.pc-3:hover,
.product-card.pc-4:hover,
.product-card.pc-5:hover,
.product-card.pc-6:hover,
.product-card.pc-7:hover,
.product-card.pc-8:hover,
.product-card.pc-9:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.product-card.pc-1:hover .overlay,
.product-card.pc-2:hover .overlay,
.product-card.pc-3:hover .overlay,
.product-card.pc-4:hover .overlay,
.product-card.pc-5:hover .overlay,
.product-card.pc-6:hover .overlay,
.product-card.pc-7:hover .overlay,
.product-card.pc-8:hover .overlay,
.product-card.pc-9:hover .overlay {
  opacity: 1 !important;
}

.product-card-body { padding: 18px; }
.product-card-body h4 {
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.4;
}
.product-card-body p { font-size: .82rem; color: #888; margin-top: 6px; line-height: 1.6; }
.product-card-link {
  display: inline-block; margin-top: 10px;
  font-size: .78rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .5px;
}
.product-card-link:hover { color: #c8880e; }

/* ── FEATURES SECTION ── */
.features-section {
  background: var(--blue);
  padding-left: 20px;
  padding-right: 20px;
}
.features-section .section-header h2 { color: #fff; }
.features-section .section-header p { color: rgba(255,255,255,.7); }
.features-section .divider { background: var(--accent); }
.features-grid {
  max-width: 1100px; margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
  transition: background .2s, transform .2s;
}
.feature-box:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.feature-box-icon {
  width: 70px; height: 70px;
  background: rgba(232,160,32,.15);
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.feature-box-icon svg { width: 32px; height: 32px; fill: var(--accent); }
.feature-box h4 {
  font-family: 'Raleway', sans-serif;
  font-size: .9rem; font-weight: 700;
  color: #fff;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}
.feature-box p { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ── REFERENCES SECTION ── */
.references-section {
  background: linear-gradient(180deg, #eef3f8 0%, #ffffff 100%);
  padding-left: 20px;
  padding-right: 20px;
}
.references-grid {
  max-width: 1200px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ref-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(10, 28, 48, .1);
  color: inherit;
  display: block;
  transition: transform .22s ease, box-shadow .22s ease;
  clip-path: polygon(0 0, 92% 0, 100% 9%, 100% 100%, 8% 100%, 0 91%);
}
.ref-card.is-open {
  box-shadow: 0 14px 34px rgba(10, 28, 48, .18);
}
.ref-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 34px rgba(10, 28, 48, .18);
}
.ref-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.ref-card-body {
  padding: 16px 16px 18px;
}
.ref-type {
  display: inline-block;
  background: rgba(232,160,32,.15);
  color: #5a3600;
  border: 1px solid rgba(232,160,32,.4);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.ref-card h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--blue);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ref-card p {
  color: #6b7580;
  font-size: .84rem;
  line-height: 1.65;
}
.rc-2, .rc-6 { transform: translateY(14px); }
.rc-4, .rc-8 { transform: translateY(28px); }
.rc-2:hover, .rc-6:hover { transform: translateY(8px) scale(1.01); }
.rc-4:hover, .rc-8:hover { transform: translateY(22px) scale(1.01); }

.ref-mobile-detail {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 28, 48, .14);
}
.ref-mobile-detail-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.ref-mobile-detail-body {
  padding: 16px;
}
.ref-mobile-detail-body h4 {
  font-family: 'Raleway', sans-serif;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  margin: 2px 0 8px;
}
.ref-mobile-detail-body p {
  color: #6b7580;
  font-size: .88rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.ref-mobile-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.references-v3-wrap {
  max-width: 1200px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
}

.ref-projects-panel,
.ref-viewer {
  background: #fff;
  border: 1px solid rgba(20, 45, 72, .12);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 28, 48, .08);
  min-height: 0;
  height: clamp(560px, 72vh, 720px);
}

.ref-projects-panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.ref-projects-head p {
  color: var(--blue);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ref-projects-head span {
  display: block;
  margin-top: 4px;
  color: #6d7782;
  font-size: .8rem;
}

.ref-project-list {
  margin-top: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.ref-project-item {
  width: 100%;
  border: 1px solid rgba(20, 45, 72, .14);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.ref-project-item.active,
.ref-project-item:hover {
  border-color: rgba(29, 78, 137, .45);
}

.ref-project-item-index {
  color: var(--accent);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.ref-project-item h3 {
  color: var(--blue);
  font-family: 'Raleway', sans-serif;
  font-size: .92rem;
  text-transform: uppercase;
  line-height: 1.35;
}

.ref-project-item p {
  margin-top: 6px;
  color: #6b7580;
  font-size: .82rem;
  line-height: 1.6;
}

.ref-viewer {
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto auto auto;
  gap: 12px;
  overflow: hidden;
}

.ref-viewer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ref-viewer-kicker {
  color: #6d7782;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .67rem;
}

.ref-viewer-top h3 {
  margin-top: 6px;
  color: var(--blue);
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  text-transform: uppercase;
}

.ref-viewer-meta {
  margin-top: 5px;
  color: #6d7782;
  font-size: .84rem;
}

.ref-viewer-link {
  background: var(--blue2);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 10px 14px;
  align-self: flex-start;
  white-space: nowrap;
}

.ref-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(20, 45, 72, .12);
  background: #e8edf2;
}

.ref-slider img,
.ref-slider-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-slider img.is-revealing { z-index: 1; animation: ref-image-in .45s ease both; }
.ref-slider-ghost { z-index: 2; pointer-events: none; animation: ref-image-out .45s ease both; }

@keyframes ref-image-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ref-image-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.ref-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 28, 43, .62);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.ref-slider-nav.prev { left: 10px; }
.ref-slider-nav.next { right: 10px; }

.ref-viewer-summary {
  margin: 0;
  color: #5f6b78;
  line-height: 1.7;
  font-size: .92rem;
}

.ref-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ref-thumb {
  border: 1px solid rgba(20, 45, 72, .14);
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f7;
  padding: 0;
  cursor: pointer;
}

.ref-thumb.active { border-color: rgba(29, 78, 137, .5); }

.ref-thumb img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}

.ref-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-viewer-counter {
  color: #6d7782;
  font-size: .82rem;
}

.ref-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.ref-gallery-modal.open { display: block; }

.ref-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, .72);
}

.ref-gallery-dialog {
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 5vh auto;
  background: #fff;
  border: 1px solid rgba(20, 45, 72, .2);
  border-radius: 14px;
  padding: 16px;
}

.ref-gallery-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #3a4652;
  font-size: 1.9rem;
  cursor: pointer;
}

.ref-gallery-dialog h4 {
  color: var(--blue);
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
}

.ref-gallery-main {
  margin-top: 12px;
  min-height: 420px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.ref-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 28, 43, .62);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.ref-gallery-nav.prev { left: 10px; }
.ref-gallery-nav.next { right: 10px; }

.ref-gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.ref-gallery-thumb {
  border: 1px solid rgba(20, 45, 72, .14);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.ref-gallery-thumb.active { border-color: rgba(29, 78, 137, .5); }

.ref-gallery-thumb img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  display: block;
}

.ref-project-inline {
  margin: 6px 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(20, 45, 72, .14);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 28, 48, .14);
}

.ref-project-inline-slider {
  position: relative;
  background: #e8edf2;
}

.ref-project-inline-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.ref-project-inline-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 28, 43, .62);
  color: #fff;
  font-size: 1.1rem;
}

.ref-project-inline-nav.prev { left: 10px; }
.ref-project-inline-nav.next { right: 10px; }

.ref-project-inline-body { padding: 14px; }
.ref-project-inline-type {
  color: #6d7782;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .66rem;
}
.ref-project-inline-body h4 {
  margin: 6px 0 0;
  color: var(--blue);
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  font-size: .95rem;
}
.ref-project-inline-meta {
  margin-top: 5px;
  color: #6d7782;
  font-size: .83rem;
}
.ref-project-inline-summary {
  margin-top: 10px;
  color: #5f6b78;
  font-size: .88rem;
  line-height: 1.65;
}
.ref-project-inline-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ref-project-inline-thumb {
  border: 1px solid rgba(20, 45, 72, .14);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}
.ref-project-inline-thumb.active { border-color: rgba(29, 78, 137, .5); }
.ref-project-inline-thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  display: block;
}
.ref-project-inline-counter {
  display: inline-block;
  margin-top: 8px;
  color: #6d7782;
  font-size: .82rem;
}
.ref-project-inline-cta {
  margin-top: 12px;
  width: 100%;
}

/* ── ALU-DRVO SECTION ── */
.aludrvo-section { background: #fff; padding-left: 20px; padding-right: 20px; }
.aludrvo-inner {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.aludrvo-text h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.aludrvo-text .divider { margin: 0 0 20px; }
.aludrvo-text p { font-size: .95rem; color: #666; line-height: 1.8; margin-bottom: 12px; }
.aludrvo-map {
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.aludrvo-map iframe {
  width: 100%; height: 340px; border: none; display: block;
}

/* ── CONTACT STRIP ── */
.contact-strip {
  background: var(--accent);
  padding-left: 20px;
  padding-right: 20px;
}
.contact-strip-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.contact-strip h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: #fff; text-transform: uppercase;
}
.contact-strip p { color: rgba(255,255,255,.85); font-size: .95rem; }
.btn-white {
  background: #fff; color: var(--accent);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .5px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-white:hover { background: var(--blue); color: #fff; }

/* ── FOOTER ── */
footer { background: #111d2b; padding: 50px 20px 20px; }
.footer-inner {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text { color: #fff; font-size: 20px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.7; margin-top: 14px; }
.footer-col h5 {
  color: var(--accent); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col address {
  font-style: normal; font-size: .87rem;
  color: rgba(255,255,255,.55); line-height: 2;
}
.footer-col address a { color: rgba(255,255,255,.55); }
.footer-col address a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 20px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.35); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .references-v3-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .products-section,
    .features-section,
    .references-section,
    .aludrvo-section,
    .contact-strip {
      padding-top: var(--home-section-space-mobile);
      padding-bottom: var(--home-section-space-mobile);
    }

    .products-section .section-header,
    .features-section .section-header,
    .references-section .section-header {
      padding-top: 0;
    }

  .header-inner {
    padding: 0 14px;
    height: 64px;
  }
  .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .logo-text {
    font-size: 20px;
  }
  nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #13314f 0%, #102942 100%);
    padding: 12px;
    overflow-y: auto;
    gap: 8px;
  }
  nav.open { display: flex; }
  nav a {
    font-size: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
  }
  .hamburger { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; }
  .dropdown-menu {
    position: static;
    display: none;
    border-top: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,.15);
    padding: 0;
    margin: 2px 0 4px 10px;
    min-width: unset;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
  .dropdown-menu li a {
    font-size: 12px;
    padding: 11px 12px;
  }
  .lang-switcher {
    margin: 8px 0 0;
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
  }

  .hero {
    min-height: 72vh;
    padding-top: 8px;
  }
  .hero::after {
    display: none;
  }
  .hero-content {
    padding: 26px 16px 28px;
  }
  .hero-content h1 {
    font-size: clamp(1.9rem, 12vw, 2.6rem);
    letter-spacing: 1px;
  }
  .hero-content p {
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .hero .btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    text-align: center;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .sticky-call-btn {
    width: 56px;
    height: 56px;
    right: 12px;
  }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .info-strip {
    padding: 10px 10px 0;
    border-bottom: 0;
    background: #f5f7fa;
  }
  .info-strip-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .info-card {
    padding: 20px 16px;
    border-right: none;
    border-bottom: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(10, 28, 48, .08);
  }
  .references-grid { grid-template-columns: 1fr; gap: 18px; }
  .ref-projects-panel,
  .ref-viewer {
    height: auto;
    max-height: none;
  }
  .ref-project-list { max-height: none; }
  .ref-viewer { display: none; }
  .ref-gallery-dialog {
    margin: 4vh auto;
    width: calc(100% - 20px);
  }
  .ref-gallery-main { min-height: 300px; }
  .ref-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }

  .rc-2, .rc-4, .rc-6, .rc-8 { transform: translateY(0); }
  .rc-2:hover, .rc-4:hover, .rc-6:hover, .rc-8:hover { transform: translateY(-6px) scale(1.01); }
  .ref-mobile-detail.is-open {
    display: block;
    margin-top: -4px;
    margin-bottom: 10px;
    animation: fadeUp .2s ease;
  }
  .ref-card.is-open {
    transform: translateY(-2px);
  }
  .ref-card.is-open:hover {
    transform: translateY(-2px);
  }
  .section-header {
    padding: 44px 16px 26px;
  }
  .section-header h2 {
    font-size: clamp(1.3rem, 7.4vw, 1.8rem);
    line-height: 1.3;
  }
  .section-header p {
    font-size: .9rem;
    line-height: 1.65;
  }
  .product-card-thumb {
    height: 130px;
  }
  .feature-box {
    padding: 22px 14px;
  }
  .feature-box p {
    font-size: .84rem;
  }
  .ref-card {
    clip-path: none;
    border-radius: 10px;
  }
  .ref-card img {
    height: 150px;
  }
  .aludrvo-inner { grid-template-columns: 1fr; gap: 30px; }
  .aludrvo-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .aludrvo-map iframe {
    height: 260px;
  }
  .contact-strip {
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact-strip h3 {
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .contact-strip p {
    font-size: .86rem;
  }
  .btn-white {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }
  footer {
    padding: 38px 16px 18px;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col ul li a,
  .footer-col address,
  .footer-brand p {
    font-size: .92rem;
  }
}
@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .header-inner {
    height: 60px;
  }
  nav {
    top: 60px;
  }
  .hero {
    min-height: 68vh;
  }
  .hero-content {
    padding-top: 22px;
  }
  .sticky-call-btn { width: 54px; height: 54px; }
  .section-header .tag {
    letter-spacing: 1.2px;
  }
}
