﻿@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --hdr-h: 82px;
  --hdr-h-sm: 68px;

  --white: #ffffff;
  --paper: #f7f8f9;
  --paper-2: #f0f3f5;

  --ink: #17212c;
  --ink-2: #324252;
  --ink-3: #607285;

  --brand: #0e3d62;
  --brand-2: #1f5a7f;
  --accent: #1f7a53;
  --accent-soft: rgba(31, 122, 83, .14);

  --line: rgba(23, 33, 44, .14);
  --line-2: rgba(23, 33, 44, .22);

  --grid-gap: 14px;
  --grid-image-h: 220px;
  --grid-image-h-sm: 200px;
  --grid-card-h: 420px;
  --grid-info-card-h: 280px;

  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;

  --shadow-sm: 0 8px 20px rgba(12, 24, 36, .06);
  --shadow: 0 16px 38px rgba(12, 24, 36, .1);
  --shadow-lg: 0 26px 56px rgba(12, 24, 36, .14);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.2, .85, .25, 1.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.72;
  padding-top: var(--hdr-h);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../images/products/fas/Staklene-fasade4.jpg') center/cover no-repeat;
  opacity: .08;
  filter: grayscale(100%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.01em;
}

#site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--hdr-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: height .24s var(--ease), box-shadow .24s var(--ease), background .24s var(--ease);
}
#site-header.compact {
  height: var(--hdr-h-sm);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1320px;
  height: 100%;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo-wordmark {
  display: inline-flex;
  color: var(--brand);
  line-height: 0;
}
.logo-wordmark svg {
  width: 156px;
  height: auto;
  display: block;
}
.header-inner .logo-wordmark svg {
  width: 168px;
}
#site-header.compact .logo-wordmark svg {
  width: 158px;
}
.footer-brand .logo-wordmark {
  color: var(--ink);
}

#mainNav {
  display: flex;
  align-items: center;
  gap: 4px;
}
#mainNav > a,
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--spring);
}
#mainNav > a:hover,
#mainNav > a.active,
.nav-drop-toggle:hover,
.nav-drop-toggle.active {
  background: var(--paper-2);
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-drop { position: relative; }
.nav-drop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.chev { width: 10px; height: 6px; transition: transform .2s var(--ease); }
.nav-drop.open .chev,
.nav-drop:hover .chev { transform: rotate(180deg); }

.drop-menu {
  list-style: none;
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  width: 280px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 1200;
}
.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu,
.nav-drop.open .drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.drop-menu a {
  display: block;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.drop-menu a:hover {
  background: var(--paper-2);
  color: var(--brand);
}

.lang-switcher {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: .82rem;
  font-weight: 600;
}
.lang-btn { color: var(--ink-3); }
.lang-btn.active,
.lang-btn:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn,
.btn-ghost,
.btn-steel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: transform .2s var(--spring), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn {
  padding: 12px 22px;
  color: #fff;
  background: var(--brand);
  box-shadow: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-ghost {
  padding: 11px 20px;
  border: 1.4px solid var(--line-2);
  color: var(--ink);
  background: var(--white);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-steel {
  padding: 12px 22px;
  color: #fff;
  background: #15334a;
  box-shadow: none;
}
.btn-steel:hover { transform: translateY(-2px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.lead { color: var(--ink-2); }

section.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 24px 68px;
}
section.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/products/fas/Staklene-fasade4.jpg') center/cover no-repeat;
  opacity: .02;
  filter: grayscale(100%);
  pointer-events: none;
}
.hero-shape-1,
.hero-shape-2,
.hero-shape-3 {
  display: none;
}

.hero {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy > * {
  animation: heroIn .7s var(--ease) both;
}
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .16s; }

.hero-title {
  margin-top: 14px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  max-width: 14ch;
  color: #0e2338;
}
.hero-lead {
  margin-top: 16px;
  max-width: 58ch;
}
.hero-cta-group {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-badge {
  margin-top: 18px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--white);
  font-size: .8rem;
}

.hero-diagonal {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero-diagonal::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.45);
  pointer-events: none;
}
.hero-diagonal-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: #fff;
}
.hero-diagonal-overlay {
  display: none;
}

.about-section,
.products-section,
.references-v3,
.references-section,
.contact-section,
.references-catalog-section,
.why-section {
  padding: 86px 24px 0;
}

.about-inner,
.products-head,
.products-grid,
.references-head,
.references-bento,
.contact-inner,
.references-catalog-inner,
.footer-inner,
.footer-bottom,
.why-inner {
  max-width: 1320px;
  margin: auto;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 44px;
  align-items: center;
}
.about-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}
.about-copy p { margin-top: 12px; }
.about-visual {
  min-height: 470px;
}
.about-img-main,
.about-img-accent {
  position: static;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-img-main {
  width: 100%;
  height: 470px;
  border-radius: var(--radius);
}
.about-img-accent {
  display: none;
}

.products-head { text-align: center; }
.products-head h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}
.products-head .lead {
  margin: 12px auto 0;
  max-width: 70ch;
}

.products-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.prod-card {
  height: var(--grid-card-h);
  height: 420px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s var(--ease), border-color .28s var(--ease), transform .28s var(--spring) !important;
  pointer-events: auto;
  cursor: pointer;
}
.prod-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(14, 61, 98, .36) !important;
  box-shadow: var(--shadow-lg) !important;
}
.prod-card-img {
  width: 100%;
  height: var(--grid-image-h);
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}
.prod-card-body {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.prod-card-body h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}
.prod-card-body p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: .9rem;
  flex: 1;
}
.prod-card-arrow {
  margin-top: 12px;
  display: inline-block;
  color: var(--brand);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.why-section {
  margin-top: 8px;
  background: var(--paper);
  padding-bottom: 70px;
}
.why-section h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}
.why-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.why-card {
  height: var(--grid-info-card-h);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s var(--ease), transform .28s var(--spring);
}
.why-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.why-card-num {
  color: var(--brand);
  font-weight: 800;
}
.why-card h3 {
  margin-top: 8px;
  font-size: 1.2rem;
}
.why-card p {
  margin-top: 8px;
  color: var(--ink-3);
  flex: 1;
}

.references-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.references-head h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.references-head .lead {
  margin-top: 12px;
  max-width: 64ch;
}

.references-bento {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.ref-card {
  height: var(--grid-card-h);
  height: 420px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s var(--ease), transform .28s var(--spring) !important;
  pointer-events: auto;
  cursor: pointer;
}
.ref-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: var(--shadow-lg) !important;
}
.ref-card-img {
  width: 100%;
  height: var(--grid-image-h);
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}
.ref-card-body {
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ref-card-type {
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}
.ref-card-body h3 {
  margin-top: 6px;
  font-size: 1.12rem;
}
.ref-card-body p {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: .9rem;
  flex: 1;
}

.references-catalog-head {
  text-align: center;
  max-width: 900px;
  margin: auto;
}
.references-catalog-head h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.references-catalog-head p {
  margin-top: 12px;
  color: var(--ink-2);
}

.references-uniform-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.reference-uniform-card {
  height: var(--grid-card-h);
  height: 420px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s var(--ease), transform .28s var(--spring);
}
.reference-uniform-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.reference-uniform-card img {
  width: 100%;
  height: var(--grid-image-h);
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}
.reference-uniform-body {
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reference-uniform-type {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--accent);
}
.reference-uniform-body h3 {
  margin-top: 6px;
  font-size: 1.1rem;
}
.reference-uniform-body p {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: .9rem;
  flex: 1;
}

.section-head-v3 {
  max-width: 1320px;
  margin: auto;
}

.section-head-v3 h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.references-v3-wrap {
  --ref-panels-h: clamp(560px, calc(100vh - var(--hdr-h) - 48px), 740px);
  max-width: 1320px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: var(--grid-gap);
}

.ref-projects-panel,
.ref-viewer {
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 0;
  height: var(--ref-panels-h);
}

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

.ref-projects-head p {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.ref-projects-head span {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: .82rem;
}

.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 var(--line);
  background: var(--white);
  padding: 12px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--spring);
}

.ref-project-item.active,
.ref-project-item:hover {
  border-color: rgba(14, 61, 98, .4);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ref-project-item-index {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 700;
}

.ref-project-item h3 {
  color: var(--ink);
  font-size: 1rem;
}

.ref-project-item p {
  margin-top: 6px;
  color: var(--ink-3);
  line-height: 1.58;
  font-size: .86rem;
}

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

.ref-viewer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ref-viewer-kicker {
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .68rem;
  color: var(--ink-3);
}

.ref-viewer-top h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
}

.ref-viewer-meta {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: .86rem;
}

.ref-viewer-link {
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.ref-slider {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  background: #dfe5ea;
  border: 1px solid var(--line);
}

.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: 38px;
  height: 38px;
  border: 0;
  background: rgba(23, 33, 44, .65);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.ref-viewer-summary {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: .93rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.ref-thumb {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #eef2f5;
  cursor: pointer;
  padding: 0;
}

.ref-thumb.active {
  border-color: rgba(14, 61, 98, .5);
}

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

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

.ref-viewer-counter {
  color: var(--ink-3);
  font-size: .85rem;
}

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

.ref-gallery-modal.open { display: block; }

.ref-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, .82);
  backdrop-filter: blur(4px);
}

.ref-gallery-dialog {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: #0f1a27;
  border: 0;
  padding: 18px 72px 58px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  overflow: hidden;
}

.ref-gallery-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.ref-gallery-dialog h4 {
  color: rgba(255, 255, 255, .95);
  margin: 0;
  padding-right: 40px;
}

.ref-gallery-main {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.ref-gallery-main img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #0a111a;
}

.ref-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(8, 14, 24, .74);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

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

.ref-gallery-thumbs {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-height: 150px;
  overflow: auto;
}

.ref-gallery-thumb {
  border: 1px solid rgba(255, 255, 255, .28);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #1a2735;
}

.ref-gallery-thumb.active {
  border-color: rgba(255, 255, 255, .7);
}

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

.ref-project-inline {
  margin: 6px 0 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
}

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

.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;
  background: rgba(23, 33, 44, .62);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.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: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .68rem;
}
.ref-project-inline-body h4 { margin: 6px 0 0; color: var(--ink); font-size: 1.05rem; }
.ref-project-inline-meta { margin: 6px 0 0; color: var(--ink-3); font-size: .84rem; }
.ref-project-inline-summary { margin: 10px 0 0; color: var(--ink-2); line-height: 1.66; font-size: .9rem; }

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

.ref-project-inline-thumb {
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #eef2f5;
}

.ref-project-inline-thumb.active {
  border-color: rgba(14, 61, 98, .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: var(--ink-3);
  font-size: .82rem;
}

.ref-project-inline-cta {
  margin-top: 12px;
  width: 100%;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: start;
}
.contact-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}
.contact-copy .lead { margin-top: 12px; }

.contact-meta {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.contact-meta-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.contact-meta-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-map {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 61, 98, .12);
}
.form-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.form-note {
  font-size: .82rem;
  color: var(--ink-3);
}
.form-status {
  margin-top: 8px;
  min-height: 1.2em;
  color: var(--brand);
  font-size: .84rem;
}

#site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 52px 24px 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { margin-top: 12px; color: var(--ink-3); }
.footer-col h5 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
}
.footer-col ul {
  margin-top: 10px;
  list-style: none;
  /* display: grid; */
  gap: 6px;
}
.footer-col a,
.footer-col address {
  color: var(--ink-3);
  font-style: normal;
}
.footer-col address { margin-top: 10px; display: block; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: .8rem;
}

.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: #e7f4ed;
  color: #12573b;
  border: 1px solid rgba(18, 87, 59, .18);
  box-shadow: var(--shadow-lg);
  z-index: 1700;
  align-items: center;
  justify-content: center;
}
.call-fab svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
}

body.modal-open { overflow: hidden; }
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}
.quote-modal.open { display: block; }
.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 39, .42);
}
.quote-modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.quote-modal-title {
  margin-top: 6px;
  font-size: 2rem;
}
.quote-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.quote-modal-form { margin-top: 16px; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-diagonal { min-height: 360px; }

  .about-inner,
  .contact-inner,
  .footer-inner { grid-template-columns: 1fr 1fr; }

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

  .references-bento { grid-template-columns: 1fr 1fr; }

  .references-v3-wrap {
    grid-template-columns: 1fr;
    --ref-panels-h: clamp(500px, calc(100vh - var(--hdr-h) - 110px), 640px);
  }

  .references-uniform-grid { grid-template-columns: 1fr 1fr; }

  .prod-card-img,
  .ref-card-img,
  .reference-uniform-card img {
    height: var(--grid-image-h-sm);
    height: 200px;
    flex-shrink: 0;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: var(--hdr-h-sm);
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  #site-header { height: var(--hdr-h-sm); }

  .nav-toggle { display: inline-flex; }
  #mainNav {
    display: none;
    position: fixed;
    top: var(--hdr-h-sm);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--hdr-h-sm));
    min-height: calc(100vh - var(--hdr-h-sm));
    max-height: calc(100dvh - var(--hdr-h-sm));
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--line);
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow);
  }
  #mainNav.open { display: flex; }
  #mainNav > a,
  .nav-drop-toggle {
    width: 100%;
    border-radius: 0;
    padding: 18px 16px;
    font-size: 1.02rem;
    font-weight: 600;
  }

  .drop-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: var(--paper);
    border-color: var(--line);
    width: 100%;
    display: none;
    margin-top: 6px;
    max-height: 46vh;
    overflow-y: auto;
  }
  .drop-menu li a {
    display: block;
    padding: 16px 16px;
    font-size: 1rem;
  }
  .nav-drop.open .drop-menu { display: block; }
  .lang-switcher { 
    margin: 14px 0 0; 
    padding: 16px 16px;
    font-size: 1rem;
  }
  .lang-switcher a {
    padding: 8px 12px;
    font-weight: 600;
  }

  .about-inner,
  .contact-inner,
  .footer-inner,
  .why-cards { grid-template-columns: 1fr; }
  .footer-inner { gap: 24px; }
  .footer-col:nth-child(3) h5 { display: none; }
  .footer-col:nth-child(3) ul { margin-top: 0; }
  .about-visual { min-height: 360px; }

  .products-grid { grid-template-columns: 1fr; }
  .prod-card,
  .ref-card,
  .reference-uniform-card,
  .why-card {
    height: auto;
    min-height: 0;
  }
  .references-bento { grid-template-columns: 1fr; }
  .references-head { flex-direction: column; align-items: flex-start; }

  .ref-viewer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .ref-thumbs { grid-template-columns: repeat(2, 1fr); }
  .ref-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }

  .form-grid { grid-template-columns: 1fr; }
  .call-fab { display: inline-flex; }

  .prod-card-img,
  .ref-card-img,
  .reference-uniform-card img {
    height: var(--grid-image-h-sm);
    height: 200px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .references-v3-wrap { --ref-panels-h: auto; }
  .ref-projects-panel,
  .ref-viewer {
    height: auto;
    max-height: none;
  }
  .ref-project-list { max-height: none; }
  .ref-viewer { display: none; }

  .ref-gallery-dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 14px 50px 46px;
  }

  .ref-gallery-nav {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

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

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

@media (max-width: 640px) {
  .hero,
  .about-section,
  .products-section,
  .references-v3,
  .references-section,
  .contact-section,
  .references-catalog-section,
  .why-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  #site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group .btn,
  .hero-cta-group .btn-ghost { width: 100%; }

  .hero {
    justify-items: center;
  }

  .hero-diagonal {
    max-width: 100%;
    width: 100%;
  }

  .references-uniform-grid { grid-template-columns: 1fr; }
  .prod-card-img,
  .ref-card-img,
  .reference-uniform-card img {
    height: var(--grid-image-h-sm);
    height: 200px;
    flex-shrink: 0;
  }

  .ref-gallery-dialog {
    padding: 12px 50px 44px;
  }

  .ref-gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
    max-height: 128px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .st-reveal,
  .st-left,
  .st-right,
  .st-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
