/* ==========================================================================
   Produkt BG Inženjering — style.css
   Design grammar modelled on mageba-group.com, in Produkt BG brand colors.
   ========================================================================== */

:root {
  /* Brand palette (sampled from assets/images/logo.png) */
  --c-primary: #0B3672;
  --c-primary-dark: #061E42;
  --c-primary-light: #1D5AA8;
  --c-accent: #00AAF8;
  --c-accent-dark: #0077B6;
  --c-text: #141A23;
  --c-muted: #5B6573;
  --c-line: #D3D9E0;
  --c-line-soft: #E4E8ED;
  --c-line-brand: rgba(29, 90, 168, .24);
  --c-light: #EEF1F4;
  --c-white: #FFFFFF;
  --c-overlay-link: #8FA6C9;
  --c-error: #C0392B;
  --c-ok: #2E9D57;

  --font: "Fira Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Type scale */
  --fs-display: clamp(2.25rem, 1.35rem + 2.4vw, 4rem);      /* 36 → 64 */
  --fs-h2: clamp(1.75rem, 1.25rem + 1.3vw, 2.875rem);        /* 28 → 46 */
  --fs-h3: clamp(1.625rem, 1.2rem + 1.05vw, 2.5rem);         /* 26 → 40 */
  --fs-h4: clamp(1.25rem, 1.1rem + .4vw, 1.625rem);          /* 20 → 26 */
  --fs-lead: clamp(1.125rem, 1rem + .35vw, 1.375rem);        /* 18 → 22 */
  --fs-body: clamp(1rem, .95rem + .2vw, 1.1875rem);          /* 16 → 19 */
  --fs-small: .9375rem;                                      /* 15 */
  --fs-label: .875rem;                                       /* 14 */
  --ls-label: .1em;
  --lh-tight: 1.12;
  --lh-body: 1.6;
  --measure: 65ch;

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 120px;
  --section-pad: clamp(64px, 3vw + 48px, 120px);
  --card-pad: clamp(28px, 1.4vw + 16px, 46px);

  /* Layout — header geometry drives every left edge */
  --header-h: 88px;
  --header-h-compact: 72px;
  --hh: var(--header-h);
  --burger-w: 105px;
  --logo-pad: 38px;
  --logo-x: calc(var(--burger-w) + var(--logo-pad));   /* left edge of the header logo */
  --gutter: 50px;
  --edge: var(--logo-x);                                /* left edge of all content */
  --container: 1634px;
  --hero-bottom-offset: 16px;                           /* shared by hero card, hero controls, assistant, back-to-top */
  --hero-delay: 6000ms;
  --btn-h: 54px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 6px 24px rgba(6, 30, 66, .12);
  --shadow-lift: 0 16px 40px rgba(6, 30, 66, .16);
}
@media (max-width: 1280px) { :root { --logo-pad: 24px; } }
@media (max-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 768px) {
  :root { --header-h: 64px; --header-h-compact: 56px; --burger-w: 64px; --logo-pad: 16px; --gutter: 20px; --edge: var(--gutter); --btn-h: 48px; }
}
body.is-scrolled { --hh: var(--header-h-compact); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-compact) + 24px); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400;
  color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
::selection { background: var(--c-primary); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-primary-light); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: var(--lh-tight); font-weight: 400; color: var(--c-primary); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--c-primary); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Thin scrollbars on panels */
.overlay, .assistant__msgs, .assistant__chips, .search-results, .modal__dialog { scrollbar-width: thin; scrollbar-color: rgba(143,166,201,.55) transparent; }
.overlay::-webkit-scrollbar, .assistant__msgs::-webkit-scrollbar, .modal__dialog::-webkit-scrollbar { width: 6px; height: 6px; }
.overlay::-webkit-scrollbar-thumb, .assistant__msgs::-webkit-scrollbar-thumb, .modal__dialog::-webkit-scrollbar-thumb { background: rgba(143,166,201,.55); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hh);
  background: var(--c-white); display: flex; align-items: stretch;
  transition: height .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--c-line-soft), 0 8px 28px rgba(6,30,66,.10); }
.header__burger {
  width: var(--burger-w); flex: none; border: 0; border-right: 1px solid var(--c-line-soft); background: var(--c-white);
  display: grid; place-items: center; color: var(--c-primary); transition: background .3s var(--ease), color .3s;
}
.header__burger:hover { background: var(--c-light); }
.burger { position: relative; width: 34px; height: 24px; }
.burger span { position: absolute; left: 0; width: 100%; height: 3px; background: currentColor; transition: transform .4s var(--ease), opacity .2s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 10.5px; } .burger span:nth-child(3) { top: 21px; }
.menu-open .header__burger { background: var(--c-primary-dark); color: #fff; border-right-color: var(--c-primary-dark); }
.menu-open .burger span:nth-child(1) { top: 10.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-open .burger span:nth-child(3) { top: 10.5px; transform: rotate(-45deg); }
.header__logo { display: flex; align-items: center; padding: 0 var(--logo-pad); margin-right: auto; }
.header__logo img { width: 220px; height: auto; transition: width .35s var(--ease); }
.site-header.is-scrolled .header__logo img { width: 196px; }
.header__nav { display: flex; align-items: stretch; }
.header__item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 0 34px; border-left: 1px solid var(--c-line-soft);
  font-size: 1.1875rem; font-weight: 600; color: var(--c-primary); background: none; border-top: 0; border-right: 0; border-bottom: 0;
  transition: background .25s, color .25s;
}
.header__item:hover { background: var(--c-light); color: var(--c-primary); }
.header__label { position: relative; }
.header__label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.header__item:hover .header__label::after, .header__item:focus-visible .header__label::after { transform: scaleX(1); }
.header__item--search { width: 110px; justify-content: center; padding: 0; }
.header__item--lang { cursor: default; }
.header__item--lang a { color: inherit; padding: 6px 2px; position: relative; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lang-switch .is-active { color: var(--c-primary); }
.lang-switch .lang-off { color: var(--c-muted); font-weight: 400; }
.lang-switch .lang-off:hover { color: var(--c-primary); }
.lang-switch .sep { color: var(--c-line); font-weight: 300; }
.tooltip {
  position: absolute; top: calc(100% + 8px); right: 50%; white-space: nowrap; background: var(--c-primary-dark); color: #fff; font-size: var(--fs-small); font-weight: 400;
  padding: 8px 12px; opacity: 0; transform: translate(50%, -6px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.tooltip::after { content: ""; position: absolute; bottom: 100%; right: calc(50% - 6px); border: 6px solid transparent; border-bottom-color: var(--c-primary-dark); }
.tooltip.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (max-width: 1280px) {
  .header__item { padding: 0 22px; font-size: 1.0625rem; }
  .header__logo img { width: 190px; }
  .site-header.is-scrolled .header__logo img { width: 176px; }
}
@media (max-width: 1024px) {
  .header__item .header__label { display: none; }
  .header__item { padding: 0 24px; }
}
@media (max-width: 768px) {
  .burger { width: 26px; height: 18px; }
  .burger span { height: 2px; }
  .burger span:nth-child(2) { top: 8px; } .burger span:nth-child(3) { top: 16px; }
  .menu-open .burger span:nth-child(1), .menu-open .burger span:nth-child(3) { top: 8px; }
  .header__logo img, .site-header.is-scrolled .header__logo img { width: 150px; }
  .header__item:not(.header__item--search) { display: none; }
  .header__item--search { width: 64px; }
}

/* ---------- Overlay menu ---------- */
.overlay {
  position: fixed; inset: var(--hh) 0 0 0; z-index: 90; background: var(--c-primary-dark); color: #fff;
  overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.menu-open .overlay { visibility: visible; opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.overlay__inner { max-width: 1340px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.overlay__close {
  position: absolute; top: 24px; right: 32px; width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background .2s;
}
.overlay__close:hover { background: rgba(255,255,255,.1); }
.overlay-search { position: relative; max-width: 440px; margin-bottom: 96px; }
.overlay-search label { display: flex; align-items: center; gap: 18px; padding-bottom: 12px; }
.overlay-search .icon { width: 26px; height: 26px; color: #fff; stroke-width: 2.2; }
.overlay-search input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font-size: 2rem; font-weight: 300; padding: 0; outline: none; }
.overlay-search input::placeholder { color: var(--c-overlay-link); }
.uline { position: relative; height: 1px; background: rgba(255,255,255,.28); }
.uline::after { content: ""; position: absolute; left: 0; top: -1.5px; height: 4px; width: 30px; background: var(--c-accent); transition: width .5s var(--ease); }
.overlay-search:focus-within .uline::after { width: 100%; }
.search-results { list-style: none; margin: 18px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-results li a { display: block; padding: 10px 0; color: #fff; font-size: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.search-results li a small { display: block; color: var(--c-overlay-link); font-size: var(--fs-small); }
.search-results li a:hover { color: var(--c-accent); }
.search-results .empty { color: var(--c-overlay-link); padding: 10px 0; }
.overlay__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 48px; }
.overlay__col { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.menu-open .overlay__col { opacity: 1; transform: none; }
.menu-open .overlay__col:nth-child(1) { transition-delay: .06s; } .menu-open .overlay__col:nth-child(2) { transition-delay: .12s; }
.menu-open .overlay__col:nth-child(3) { transition-delay: .18s; } .menu-open .overlay__col:nth-child(4) { transition-delay: .24s; }
.menu-open .overlay__col:nth-child(5) { transition-delay: .30s; } .menu-open .overlay__col:nth-child(6) { transition-delay: .36s; }
.overlay__col h2 { margin: 0; }
.overlay__col h2 button { all: unset; display: block; cursor: default; color: #fff; font-size: 2.125rem; font-weight: 400; padding-bottom: 14px; }
.overlay__col .uline::after { width: 50%; }
.overlay__col:hover .uline::after { width: 100%; }
.overlay__col ul { list-style: none; padding: 0; margin: 26px 0 0; }
.overlay__col li a { display: inline-block; color: var(--c-overlay-link); font-size: 1.5rem; font-weight: 600; line-height: 1.75; transition: color .2s, transform .25s var(--ease); }
.overlay__col li a:hover, .overlay__col li a[aria-current="page"] { color: #fff; transform: translateX(6px); }
.overlay__meta { margin-top: 88px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--c-overlay-link); font-size: 1.0625rem; }
.overlay__meta a { color: #fff; }
@media (max-width: 1024px) { .overlay__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .overlay__inner { padding: 40px var(--gutter) 72px; }
  .overlay__close { top: 14px; right: 14px; }
  .overlay-search { margin: 20px 0 48px; }
  .overlay-search input { font-size: 1.5rem; }
  .overlay__grid { grid-template-columns: 1fr; gap: 0; }
  .overlay__col h2 button { cursor: pointer; font-size: 1.625rem; padding: 18px 0 14px; width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
  .overlay__col h2 button::after { content: "+"; font-size: 1.75rem; font-weight: 300; transition: transform .35s var(--ease); }
  .overlay__col.is-open h2 button::after { transform: rotate(45deg); }
  .overlay__col ul { margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s var(--ease); }
  .overlay__col.is-open ul { max-height: 520px; opacity: 1; }
  .overlay__col ul li:first-child { padding-top: 14px; } .overlay__col ul li:last-child { padding-bottom: 14px; }
  .overlay__col li a { font-size: 1.25rem; min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--btn-h); padding: 0 34px;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  border: 1px solid var(--c-line); background: transparent; color: var(--c-primary); border-radius: 0;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.btn--fill { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn--fill:hover { background: var(--c-primary-light); border-color: var(--c-primary-light); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--light:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); }
.btn--accent:hover { background: #fff; border-color: #fff; color: var(--c-primary-dark); }
.btn[disabled], .btn:disabled { opacity: .55; pointer-events: none; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.center { text-align: center; }
@media (max-width: 768px) { .btn { padding: 0 24px; font-size: 1rem; } }

.arrow-link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 1.0625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary);
}
.arrow-link .icon { width: 24px; height: 24px; stroke-width: 2; transition: transform .3s var(--ease); }
.arrow-link:hover .icon, .card:hover .arrow-link .icon, .split:hover .arrow-link .icon, .ref-card:hover .arrow-link .icon { transform: translateX(8px); }

/* ---------- Sections & type ---------- */
.section { padding: var(--section-pad) 0; }
.section--light { background: var(--c-light); }
.section--brand { background: var(--c-primary); color: #fff; }
.section--dark { background: var(--c-primary-dark); color: #fff; }
.section--tight-bottom { padding-bottom: 0; }
.section-head { text-align: center; margin-bottom: var(--s-8); }
.section-title { font-size: var(--fs-h2); font-weight: 400; color: var(--c-primary); margin: 0; letter-spacing: -.005em; }
.section--brand .section-title, .section--dark .section-title { color: #fff; }
.section-lead { max-width: var(--measure); margin: var(--s-5) auto 0; color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.5; }
.section--brand .section-lead { color: rgba(255,255,255,.82); }
.label {
  display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-label); font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--c-accent-dark);
}
.label .icon { width: 20px; height: 20px; }
.prose { max-width: 860px; }
.prose p, .prose li { max-width: var(--measure); }
.prose h3 { font-size: var(--fs-h4); font-weight: 500; margin: 1.6em 0 .55em; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--c-accent); }
.prose ol li { margin-bottom: .5em; }
.show-all { text-align: center; padding: var(--s-8) 0 var(--section-pad); }

/* ---------- Carousel dots ---------- */
.dots { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: var(--s-6); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; background: #DDE2E8; transition: background .25s, transform .25s var(--ease), width .35s var(--ease); position: relative; }
.dot::before { content: ""; position: absolute; inset: -15px; }
.dot:hover { transform: scale(1.15); }
.dot.is-active { background: var(--c-primary); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; overflow: hidden; color: #fff; background: var(--c-primary-dark); }
@supports (height: 100svh) { .hero { height: 100svh; } }
@supports (height: 100dvh) { .hero { height: 100dvh; } }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide picture, .hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide img { transform: scale(1); transform-origin: 40% 60%; will-change: transform; }
.hero__slide.is-active img { animation: kenburns calc(var(--hero-delay) + 900ms) linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,30,66,.92) 0%, rgba(6,30,66,.78) 30%, rgba(6,30,66,.38) 58%, rgba(6,30,66,.12) 100%),
    linear-gradient(to top right, rgba(6,30,66,.6) 0%, rgba(6,30,66,0) 55%);
}
.hero__content { position: absolute; z-index: 3; left: var(--logo-x); right: var(--gutter); top: calc(var(--header-h) + 10vh); max-width: 720px; }
.hero__text { position: absolute; inset: 0 auto auto 0; width: 100%; visibility: hidden; transition: visibility 0s .35s; }
.hero__text.is-active { position: relative; visibility: visible; transition: none; }
.hero__text > * { opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.hero__text.is-active > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.hero__text.is-active > *:nth-child(1) { transition-delay: .38s; }
.hero__text.is-active > *:nth-child(2) { transition-delay: .46s; }
.hero__text.is-active > *:nth-child(3) { transition-delay: .54s; }
.hero__text.is-active > *:nth-child(4) { transition-delay: .62s; }
.hero__text.is-entering > * { opacity: 0; transform: translateY(18px); transition: none; }
.hero__text .label { color: var(--c-accent); margin-bottom: var(--s-5); }
.hero__title { font-size: var(--fs-display); font-weight: 300; line-height: 1.06; letter-spacing: -.01em; color: #fff; margin: 0 0 var(--s-5); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,.92); max-width: 620px; margin-bottom: var(--s-6); }
.hero .btn:not(.btn--fill) { border-color: rgba(255,255,255,.8); color: #fff; }
.hero .btn:not(.btn--fill):hover { background: #fff; color: var(--c-primary); }
.hero .btn--fill { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); }
.hero .btn--fill:hover { background: #fff; border-color: #fff; color: var(--c-primary-dark); }

.hero-card {
  position: absolute; z-index: 3; right: 0; bottom: var(--hero-bottom-offset); left: max(57%, calc(50% + 160px)); height: 210px; display: flex;
  background: var(--c-light); color: var(--c-text); box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transition: opacity .45s var(--ease), transform .45s var(--ease), box-shadow .3s;
}
.hero-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,.32); }
.hero-card.is-swapping { opacity: 0; transform: translateY(10px); }
.hero-card__img { width: 38%; max-width: 320px; flex: none; overflow: hidden; background: #cfd6de; }
.hero-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-card:hover .hero-card__img img { transform: scale(1.04); }
.hero-card__body { flex: 1; padding: 26px 34px 22px; position: relative; min-width: 0; }
.hero-card__country { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.hero-card__title { font-size: clamp(1.375rem, 1rem + .7vw, 1.875rem); font-weight: 600; color: var(--c-primary); margin: 0 0 8px; line-height: 1.15; }
.hero-card__excerpt { font-size: 1.0625rem; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 40px; }
.hero-card__arrow { position: absolute; right: 30px; bottom: 20px; color: var(--c-accent-dark); }
.hero-card__arrow .icon { width: 34px; height: 34px; stroke-width: 1.4; transition: transform .3s var(--ease); }
.hero-card:hover .hero-card__arrow .icon { transform: translateX(8px); }
.hero-card a.stretched::after { content: ""; position: absolute; inset: 0; }

/* Controls: prev · dots · next, centered at the bottom */
.hero__controls { position: absolute; z-index: 4; left: 50%; bottom: var(--hero-bottom-offset); transform: translateX(-50%); display: flex; align-items: center; gap: 18px; }
.hero__arrow { width: 56px; height: 56px; display: grid; place-items: center; background: rgba(6,30,66,.35); border: 1px solid rgba(255,255,255,.4); color: #fff; transition: background .2s, border-color .2s, color .2s; }
.hero__arrow:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); }
.hero__arrow .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.hero__dots { display: flex; align-items: center; gap: 14px; margin: 0; }
.hero__dots .dot { width: 12px; height: 12px; background: rgba(255,255,255,.55); overflow: hidden; }
.hero__dots .dot::before { display: none; }
.hero__dots .dot.is-active { width: 40px; border-radius: 6px; background: rgba(255,255,255,.35); transform: none; }
.dot__fill { position: absolute; inset: 0; background: var(--c-accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hero__dots .dot.is-active .dot__fill { animation: dotfill var(--hero-delay) linear forwards; }
.hero.is-paused .dot__fill, .pl-lock .dot__fill { animation-play-state: paused !important; }
@keyframes dotfill { to { transform: scaleX(1); } }

@media (max-height: 820px) and (min-width: 1025px) {
  .hero__content { top: calc(var(--header-h) + 6vh); }
  .hero__title { font-size: clamp(2.125rem, 1.2rem + 2.2vw, 3.125rem); margin-bottom: 18px; }
  .hero__lead { margin-bottom: 24px; font-size: 1.125rem; }
  .hero-card { height: 160px; }
  .hero-card__excerpt { -webkit-line-clamp: 1; }
}
@media (max-height: 700px) and (min-width: 1025px) { .hero-card { display: none; } }
@media (max-width: 1024px) {
  .hero::after { background: linear-gradient(0deg, rgba(6,30,66,.92) 0%, rgba(6,30,66,.72) 45%, rgba(6,30,66,.35) 100%), linear-gradient(90deg, rgba(6,30,66,.5) 0%, rgba(6,30,66,0) 70%); }
  .hero__content { top: auto; bottom: calc(var(--hero-bottom-offset) + 56px + 48px); max-width: 720px; }
  .hero-card { display: none; }
}
@media (max-width: 768px) {
  .hero__content { bottom: calc(var(--hero-bottom-offset) + 44px + 40px); }
  .hero__title { font-size: clamp(2rem, 8.5vw, 2.625rem); }
  .hero__lead { font-size: 1.0625rem; margin-bottom: 26px; }
  .hero__controls { gap: 12px; }
  .hero__arrow { width: 44px; height: 44px; }
}
@media (max-width: 768px) and (max-height: 700px) { .hero__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }

/* ---------- Carousel (generic) ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform .8s var(--ease); will-change: transform; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__nav { position: absolute; z-index: 5; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(255,255,255,.94); border: 1px solid var(--c-line); color: var(--c-primary); transition: background .2s, color .2s, border-color .2s; }
.carousel__nav:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.carousel__nav .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.carousel--split .carousel__nav { bottom: 24px; }
.carousel--split .carousel__nav--prev { right: 88px; }
.carousel--split .carousel__nav--next { right: 24px; }
@media (max-width: 768px) { .carousel__nav { display: none; } }

/* ---------- 50/50 cards ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.split--40 { grid-template-columns: 40fr 60fr; min-height: 640px; }
.split__text { position: relative; display: flex; flex-direction: column; padding: 60px 50px 56px var(--edge); background: var(--c-light); }
.split--reverse .split__text { order: 2; padding: 60px var(--edge) 56px 50px; }
.split__text > .label { margin-bottom: var(--s-4); color: var(--c-primary); }
.split__text > .label .icon { color: var(--c-accent-dark); }
.split__title { font-size: var(--fs-h3); font-weight: 600; color: var(--c-primary); margin: 0 0 var(--s-5); letter-spacing: -.005em; max-width: 22ch; }
.split__excerpt { font-size: var(--fs-body); max-width: var(--measure); }
.split__more { margin-top: auto; padding-top: var(--s-6); }
.split__media { position: relative; overflow: hidden; background: #D7DDE4; min-height: 320px; }
.split__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split:hover .split__media > img, .split:hover .media-frame__img { transform: scale(1.04); }
.split--brand .split__text { background: var(--c-primary); color: #fff; }
.split--brand .split__text > .label, .split--brand .split__title, .split--brand .arrow-link, .split--brand .hero-card__country { color: #fff; }
.split--brand .split__text > .label .icon { color: var(--c-accent); }
.split--white .split__text { background: #fff; }
.modal .split__text, .modal .split--reverse .split__text { padding: 50px; }
@media (max-width: 1024px) { .split--40 { grid-template-columns: 1fr 1fr; } .split__text { padding: 48px 40px 44px var(--edge); } .split--reverse .split__text { padding: 48px var(--edge) 44px 40px; } }
@media (max-width: 768px) {
  .split, .split--40 { grid-template-columns: 1fr; min-height: 0; }
  .split__text, .split--reverse .split__text, .modal .split__text { padding: 36px var(--edge) 40px; }
  .split--reverse .split__text { order: 0; }
  .split__media { min-height: 260px; aspect-ratio: 4 / 3; order: -1; }
}

/* Media frame: small archive photos centred on a blurred enlargement of themselves */
.media-frame { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 36px; overflow: hidden; background: var(--c-primary-dark); }
.media-frame__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) saturate(.9) brightness(.55); transform: scale(1.1); }
.media-frame__img { position: relative; justify-self: center; align-self: center; max-width: min(100%, 680px); max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 50px rgba(0,0,0,.4); background: #fff; transition: transform 1.2s var(--ease); }
.media-frame--light { background: var(--c-light); }
.media-frame--light .media-frame__bg { filter: blur(30px) saturate(.6) brightness(1.15); opacity: .5; }
.media-frame--doc .media-frame__img { border: 1px solid var(--c-line); }

/* ---------- Tables ---------- */
.spec { width: 100%; border-collapse: collapse; margin: 6px 0 0; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--c-line-brand); background: none; }
.spec th { width: 11.5em; font-weight: 600; padding-left: 0; }
.split--brand .spec th, .split--brand .spec td { border-color: rgba(255,255,255,.3); }
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); }
.data-table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); min-width: 640px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 9px 12px; border-bottom: 1px solid var(--c-line-soft); text-align: center; white-space: nowrap; }
.data-table thead th { background: var(--c-primary); color: #fff; font-weight: 500; }
.data-table thead tr + tr th { background: var(--c-primary-light); }
.data-table tbody tr:nth-child(even) { background: var(--c-light); }
.data-table tbody th { font-weight: 600; color: var(--c-primary); }

/* ---------- Products band ---------- */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tile {
  flex: 0 1 300px; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; text-align: center;
  background: var(--c-light); color: var(--c-primary); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.tile:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); transform: translateY(-4px); }
.tile .icon { width: 22px; height: 22px; stroke-width: 2; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--ease), margin .3s var(--ease); margin-right: -34px; }
.tile:hover .icon { opacity: 1; transform: none; margin-right: 0; }
@media (max-width: 1024px) { .tile { flex-basis: calc(33.333% - 8px); } }
@media (max-width: 768px) { .tile { flex-basis: 100%; min-height: 64px; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; padding: var(--card-pad); background: #fff; color: var(--c-text); min-height: 400px; transition: background .3s var(--ease), color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { background: var(--c-primary); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lift); z-index: 1; }
.card__icon { width: 64px; height: 64px; color: var(--c-primary); margin-bottom: var(--s-6); transition: color .3s; }
.card__icon .icon { width: 64px; height: 64px; stroke-width: 1.3; }
.card:hover .card__icon { color: var(--c-accent); }
.card__title { font-size: var(--fs-h4); font-weight: 600; color: var(--c-primary); margin-bottom: var(--s-4); transition: color .3s; }
.card:hover .card__title, .card:hover .arrow-link { color: #fff; }
.card p { font-size: 1.0625rem; }
.card .arrow-link { margin-top: auto; padding-top: var(--s-4); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }
.card__meta { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--c-accent-dark); margin-bottom: 8px; }
@media (max-width: 1280px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .cards, .cards--3, .cards--2 { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- "Tu smo za vas" band ---------- */
.here { background: var(--c-primary); color: #fff; padding: var(--section-pad) 0; }
.here .section-title { color: #fff; text-align: center; margin-bottom: var(--s-9); }
.here__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--s-7) var(--s-8); }
.here h3 { color: #fff; font-size: var(--fs-h3); font-weight: 400; margin-bottom: var(--s-5); }
.here .btn { width: 100%; max-width: 340px; margin-bottom: 22px; }
.here address { font-style: normal; font-size: var(--fs-body); line-height: 1.55; }
.here address p { margin-bottom: 14px; }
.here a:not(.btn) { color: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.here a:not(.btn):hover { border-color: var(--c-accent); }
@media (max-width: 1024px) { .here__grid { grid-template-columns: 1fr 1fr; } .here__grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 768px) { .here .section-title { margin-bottom: var(--s-7); } .here__grid { grid-template-columns: 1fr; gap: 36px; } .here .btn { max-width: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--c-line-soft); }
.footer__bar { display: flex; align-items: center; gap: 28px 34px; flex-wrap: wrap; min-height: 128px; padding-top: 24px; padding-bottom: 24px; }
.footer__logo img { width: 150px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 1.0625rem; margin: 0; padding: 0; list-style: none; }
.footer__links a, .footer__links span { color: var(--c-text); display: inline-flex; min-height: 44px; align-items: center; }
.footer__links a:hover { color: var(--c-primary-light); }
.footer__social { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; }
.footer__social a { width: 46px; height: 46px; display: grid; place-items: center; background: #4A4F57; color: #fff; transition: background .2s, transform .25s var(--ease); }
.footer__social a:hover { background: var(--c-primary); transform: translateY(-2px); }
.footer__social .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
@media (max-width: 768px) { .footer__bar { flex-direction: column; align-items: flex-start; padding-bottom: 96px; } .footer__social { margin-left: 0; } }

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--c-primary); color: #fff; padding: calc(var(--header-h) + 72px) 0 72px; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 44%; background: linear-gradient(115deg, transparent 0 30%, rgba(0,170,248,.12) 30% 31%, transparent 31% 46%, rgba(255,255,255,.05) 46% 100%); pointer-events: none; }
.page-header h1 { color: #fff; font-size: var(--fs-display); font-weight: 300; letter-spacing: -.01em; margin: 18px 0 0; max-width: 20ch; }
.page-header p { max-width: var(--measure); margin: 20px 0 0; font-size: var(--fs-lead); color: rgba(255,255,255,.86); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 0; font-size: var(--fs-small); color: rgba(255,255,255,.7); }
.breadcrumb li + li::before { content: "/"; margin-right: 12px; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: var(--c-accent); }
@media (max-width: 768px) { .page-header { padding: calc(var(--header-h) + 44px) 0 48px; } }

/* Sticky sub-navigation (product sub-types) */
.subnav { background: #fff; border-bottom: 1px solid var(--c-line-soft); position: sticky; top: var(--hh); z-index: 20; transition: top .35s var(--ease), box-shadow .3s; }
.is-scrolled .subnav { box-shadow: 0 6px 18px rgba(6,30,66,.06); }
.subnav ul { list-style: none; display: flex; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li:first-child a { padding-left: 0; }
.subnav a { position: relative; display: flex; align-items: center; min-height: 60px; white-space: nowrap; padding: 0 22px; font-size: 1rem; font-weight: 600; color: var(--c-primary); }
.subnav a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.subnav li:first-child a::after { left: 0; }
.subnav a:hover::after, .subnav a.is-active::after { transform: scaleX(1); }

/* Product block */
.product { padding: var(--section-pad) 0; border-bottom: 1px solid var(--c-line-soft); }
.product:nth-of-type(even) { background: var(--c-light); }
.product__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-8) 72px; align-items: start; }
.product__head .label { margin-bottom: var(--s-3); }
.product__title { font-size: var(--fs-h2); font-weight: 400; margin-bottom: var(--s-3); letter-spacing: -.005em; }
.product__subtitle { font-size: var(--fs-lead); color: var(--c-muted); margin-bottom: var(--s-6); font-weight: 300; }
.product__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; position: sticky; top: calc(var(--hh) + 84px); }
.product__gallery figure { margin: 0; background: #fff; border: 1px solid var(--c-line-soft); display: flex; flex-direction: column; transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.product__gallery figure:hover { border-color: var(--c-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.product__gallery figure.wide { grid-column: 1 / -1; }
.product__gallery a { display: grid; place-items: center; padding: 16px; flex: 1; aspect-ratio: 4 / 3; cursor: zoom-in; overflow: hidden; }
.product__gallery figure.wide a { aspect-ratio: 16 / 7; }
.product__gallery img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform .5s var(--ease); }
.product__gallery a:hover img { transform: scale(1.04); }
.product__gallery figcaption { font-size: .875rem; color: var(--c-muted); padding: 10px 14px; border-top: 1px solid var(--c-line-soft); }
.product__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }
.note { background: var(--c-light); border-left: 3px solid var(--c-accent); padding: 18px 22px; font-size: 1.0625rem; max-width: var(--measure); }
.product:nth-of-type(even) .note { background: #fff; }
.details { border-top: 1px solid var(--c-line); margin-top: var(--s-5); }
.details details { border-bottom: 1px solid var(--c-line); }
.details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 10px 0; font-size: 1.25rem; font-weight: 500; color: var(--c-primary); transition: color .2s; }
.details summary:hover { color: var(--c-primary-light); }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.75rem; font-weight: 300; transition: transform .35s var(--ease); }
.details details[open] summary::after { transform: rotate(45deg); }
.details .details__body { padding: 0 0 22px; animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) { .product__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .product__gallery { position: static; } }
@media (max-width: 560px) { .product__gallery { grid-template-columns: 1fr; } }

/* Intro block */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.intro__lead { font-size: clamp(1.375rem, 1.1rem + .7vw, 1.75rem); font-weight: 300; line-height: 1.4; color: var(--c-primary); max-width: 34ch; text-wrap: balance; }
@media (max-width: 1024px) { .intro { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.stat { padding: 34px 30px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.stat__num { font-size: clamp(2.375rem, 1.6rem + 1.8vw, 3.5rem); font-weight: 300; color: var(--c-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: 1rem; color: var(--c-muted); }
@media (max-width: 1024px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--c-line); }
.timeline li { position: relative; padding: 0 0 34px 34px; max-width: var(--measure); }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--c-accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--c-accent); }
.timeline strong { display: block; font-size: 1.375rem; color: var(--c-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Filters / reference grid ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--s-7); }
.filter { min-height: 48px; padding: 10px 22px; font-size: 1rem; font-weight: 600; background: #fff; color: var(--c-primary); border: 1px solid var(--c-line); transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--c-primary); }
.filter.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.filter .count { font-weight: 400; opacity: .7; margin-left: 4px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ref-card { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--c-light); border: 0; padding: 0; color: var(--c-text); transition: background .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.ref-card:hover { background: var(--c-primary); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lift); z-index: 1; }
.ref-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; width: 100%; }
.ref-card:hover .media-frame__img { transform: scale(1.04); }
.ref-card__body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; width: 100%; }
.ref-card__title { font-size: 1.4375rem; font-weight: 600; color: var(--c-primary); margin: 4px 0 10px; line-height: 1.2; transition: color .3s; text-wrap: balance; }
.ref-card:hover .ref-card__title, .ref-card:hover .arrow-link, .ref-card:hover .card__meta { color: #fff; }
.ref-card p { font-size: 1rem; margin-bottom: 16px; }
.ref-card .arrow-link { margin-top: auto; font-size: 1rem; }
.ref-card[hidden] { display: none; }
@media (max-width: 1024px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ref-grid { grid-template-columns: 1fr; } }

/* ---------- Modal / lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(6,30,66,.82); }
.modal.is-open { display: flex; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__dialog { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: rise .4s var(--ease); }
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
.modal__close { position: absolute; top: 0; right: 0; z-index: 3; width: 56px; height: 56px; display: grid; place-items: center; background: var(--c-primary); color: #fff; border: 0; transition: background .2s; }
.modal__close:hover { background: var(--c-primary-light); }
.modal .split { min-height: 520px; }
@media (max-width: 768px) { .modal { padding: 0; } .modal__dialog { max-height: 100vh; height: 100%; } }

.lightbox { position: fixed; inset: 0; z-index: 210; display: none; background: rgba(4,14,32,.95); color: #fff; }
.lightbox.is-open { display: grid; grid-template-rows: 1fr auto; animation: fadeIn .3s var(--ease); }
.lightbox__stage { display: grid; place-items: center; padding: 70px 90px 10px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__caption { text-align: center; padding: 14px 20px 26px; font-size: 1.0625rem; color: rgba(255,255,255,.85); }
.lightbox__btn { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.lightbox__btn:hover { background: var(--c-accent); color: var(--c-primary-dark); border-color: var(--c-accent); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) { .lightbox__stage { padding: 70px 12px 10px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 70px; transform: none; } }

/* ---------- Gallery ---------- */
.gallery { columns: 4 280px; column-gap: 12px; }
.gallery__item { break-inside: avoid; margin: 0 0 12px; display: block; position: relative; background: #fff; border: 1px solid var(--c-line-soft); cursor: zoom-in; overflow: hidden; transition: box-shadow .3s var(--ease); }
.gallery__item:hover { box-shadow: var(--shadow-lift); }
.gallery__item img { width: 100%; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font-size: 1rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(6,30,66,.9)); transform: translateY(100%); transition: transform .35s var(--ease); }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { transform: none; }
@media (hover: none) { .gallery__item figcaption { transform: none; } }

/* ---------- Documents / downloads ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); transition: border-color .25s, box-shadow .3s var(--ease), transform .35s var(--ease); color: var(--c-text); }
.doc:hover { border-color: var(--c-primary); box-shadow: var(--shadow-lift); transform: translateY(-4px); color: var(--c-text); }
.doc__thumb { aspect-ratio: 3 / 4; background: var(--c-light); display: grid; place-items: center; padding: 22px; overflow: hidden; border-bottom: 1px solid var(--c-line-soft); }
.doc__thumb img { max-height: 100%; width: auto; box-shadow: 0 6px 20px rgba(6,30,66,.18); transition: transform .5s var(--ease); }
.doc:hover .doc__thumb img { transform: scale(1.04); }
.doc__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.doc__type { font-size: .8125rem; font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-accent-dark); }
.doc__title { font-size: 1.1875rem; font-weight: 600; color: var(--c-primary); margin: 6px 0 8px; line-height: 1.25; }
.doc__desc { font-size: var(--fs-small); color: var(--c-muted); margin-bottom: 14px; }
.doc .arrow-link { margin-top: auto; font-size: var(--fs-small); }
.doc:hover .arrow-link .icon { transform: translateY(3px); }
@media (max-width: 1280px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .doc-grid { grid-template-columns: 1fr; } }

/* CE strip */
.ce-strip { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.ce-mark { width: 120px; height: 120px; display: grid; place-items: center; border: 1px solid var(--c-line); background: #fff; color: var(--c-primary); }
.ce-mark svg { width: 86px; height: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.contact-grid__form { padding: var(--s-9) 70px var(--s-9) var(--edge); background: #fff; }
.contact-grid__info { background: var(--c-light); display: flex; flex-direction: column; }
.contact-info { padding: var(--s-9) var(--edge) 40px 70px; }
.contact-info dl { display: grid; grid-template-columns: 150px 1fr; gap: 14px 20px; margin: 0; font-size: 1.125rem; }
.contact-info dt { font-weight: 600; }
.contact-info dd { margin: 0; }
.map { flex: 1; min-height: 380px; position: relative; border-top: 1px solid var(--c-line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .04em; color: var(--c-primary); }
.field label .req, .check .req { color: var(--c-accent-dark); }
.field input, .field select {
  width: 100%; height: 52px; border: 1px solid #C3CBD5; background: #fff; padding: 0 16px; font-size: 1.0625rem; border-radius: 0; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B3672' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; }
.field textarea { width: 100%; min-height: 160px; resize: vertical; border: 1px solid #C3CBD5; padding: 14px 16px; font-size: 1.0625rem; border-radius: 0; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA6B5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,170,248,.22); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--c-error); box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field__error { font-size: .875rem; color: var(--c-error); }
.field__error:empty { display: none; }
.check { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--c-primary); }
.check.is-invalid { color: var(--c-error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; padding: 16px 20px; font-size: 1.0625rem; display: none; }
.form__status.is-ok { display: block; background: #E6F5EC; color: #1E6B3A; border-left: 3px solid var(--c-ok); }
.form__status.is-err { display: block; background: #FBEAEA; color: #8E2A20; border-left: 3px solid var(--c-error); }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid__form { padding: var(--s-8) var(--edge); } .contact-info { padding: var(--s-7) var(--edge) 32px; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .contact-info dl { grid-template-columns: 1fr; gap: 2px; } .contact-info dd { margin-bottom: 12px; } }

/* ---------- Floating: assistant (bottom-left) ---------- */
.assistant-fab {
  position: fixed; left: 16px; bottom: var(--hero-bottom-offset); z-index: 150; height: 58px; display: inline-flex; align-items: center; gap: 12px; padding: 0 22px 0 16px;
  border: 0; border-radius: 0; background: var(--c-primary); color: #fff; font-weight: 600; font-size: 1.0625rem; letter-spacing: .02em; box-shadow: 0 10px 30px rgba(6,30,66,.35);
  transition: background .2s, transform .25s var(--ease), opacity .25s; animation: floatIn .5s var(--ease) .2s both;
}
.assistant-fab:hover { background: var(--c-primary-light); transform: translateY(-2px); }
.assistant-fab .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.assistant-fab .pulse { position: absolute; top: 10px; left: 36px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 2px var(--c-primary); }
.assistant-open .assistant-fab { opacity: 0; pointer-events: none; }
.pl-lock .assistant-fab { animation-play-state: paused; }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) { .assistant-fab { width: 56px; height: 56px; padding: 0; justify-content: center; } .assistant-fab .fab-label { display: none; } .assistant-fab .pulse { left: 33px; top: 11px; } }

.assistant {
  position: fixed; left: 16px; bottom: var(--hero-bottom-offset); z-index: 160; width: 400px; height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #fff; box-shadow: 0 24px 70px rgba(6,30,66,.35); border-radius: 0; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px); transform-origin: bottom left; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.assistant-open .assistant { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.assistant__head { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; background: var(--c-primary); color: #fff; }
.assistant__avatar { width: 46px; height: 46px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.assistant__avatar img { width: 30px; height: 30px; }
.assistant__title { font-weight: 600; font-size: 1.0625rem; line-height: 1.2; }
.assistant__sub { font-size: .8125rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.assistant__sub::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; }
.assistant__close { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #fff; }
.assistant__close:hover { background: rgba(255,255,255,.12); }
.assistant__msgs { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: var(--c-light); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 14px; font-size: .9375rem; line-height: 1.5; word-wrap: break-word; animation: msgIn .3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg--bot { background: #fff; color: var(--c-text); align-self: flex-start; box-shadow: 0 1px 2px rgba(6,30,66,.08); border-left: 2px solid var(--c-accent); }
.msg--user { background: var(--c-primary); color: #fff; align-self: flex-end; }
.msg a { color: var(--c-accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg li { margin: 2px 0; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); animation: blink 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .2s; } .msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.assistant__chips { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: #fff; border-top: 1px solid var(--c-line-soft); }
.chip { flex: none; min-height: 38px; padding: 0 14px; font-size: .875rem; font-weight: 500; border: 1px solid var(--c-line); background: #fff; color: var(--c-primary); border-radius: 0; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.assistant__form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.assistant__form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--c-line); border-radius: 0; padding: 0 14px; font-size: .9375rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.assistant__form input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,170,248,.2); }
.assistant__send { width: 44px; height: 44px; flex: none; border-radius: 0; border: 0; background: var(--c-primary); color: #fff; display: grid; place-items: center; transition: background .2s; }
.assistant__send:hover { background: var(--c-primary-light); }
.assistant__send .icon { width: 20px; height: 20px; }
@media (max-width: 768px) {
  .chip { min-height: 44px; }
  .assistant { left: 0; right: 0; bottom: 0; width: 100%; height: min(86vh, 640px); height: min(86dvh, 640px); transform: translateY(100%); }
  .assistant-open .assistant { transform: none; }
}

/* ---------- Floating: back-to-top (bottom-right) ---------- */
.float-right { position: fixed; right: 16px; bottom: var(--hero-bottom-offset); z-index: 140; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.to-top { width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 0; background: var(--c-primary); color: #fff; box-shadow: 0 8px 22px rgba(6,30,66,.3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.to-top:hover { background: var(--c-accent); color: var(--c-primary-dark); }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.menu-open .float-right, .menu-open .assistant-fab { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--c-primary-dark); color: #fff; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; }
.notfound__code { font-size: clamp(110px, 18vw, 240px); font-weight: 200; line-height: 1; color: var(--c-accent); }
.notfound h1 { color: #fff; font-weight: 300; font-size: var(--fs-h2); }

/* ---------- Reveal (one system) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .hero__text > *, .overlay__col { opacity: 1 !important; transform: none !important; }
  .hero__slide.is-active img { animation: none; }
  .hero__dots .dot.is-active .dot__fill { animation: none; transform: scaleX(1); }
}
