:root {
  color-scheme: light;
  --ink: #17242a;
  --navy: #152129;
  --paper: #f8f8f4;
  --blue: #277cab;
  --ice: #9cd8f6;
  --panel: #5995c1;
  --muted: #45545b;
  --line: #c5ccc9;
  --gutter: clamp(20px, 4.8vw, 88px);
  --nav-h: clamp(62px, 5.4vw, 80px);
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px) }
body { margin: 0; line-height: 1.5 }
body.in-intro, body.in-viewer { overflow: hidden }
[hidden] { display: none !important }
a { color: inherit; text-underline-offset: .2em }
button { font: inherit; cursor: pointer }
:focus-visible { outline: 3px solid #1987c6; outline-offset: 4px }
h1, h2, p, figure { margin: 0 }
h1, h2 { font-weight: 590; line-height: .96; letter-spacing: -.06em }
.wrap { width: min(100%, 1720px); margin-inline: auto; padding-inline: var(--gutter) }
.skip { position: fixed; z-index: 99; top: -100px; left: 12px; padding: 10px; background: white }
.skip:focus { top: 12px }

.site-head {
  position: sticky; top: 0; z-index: 8; color: #f8fbfc;
  background: var(--navy); border-bottom: 1px solid #3b4950;
}
.head-in, .site-head nav, .social-links { display: flex; align-items: center }
.head-in { justify-content: space-between; gap: 16px; min-height: var(--nav-h) }
.brand { display: inline-flex; align-items: center; min-height: 44px }
.brand img { display: block; width: clamp(134px,13.2vw,205px); height: auto; filter: brightness(0) invert(1) }
.site-head nav { gap: clamp(17px,2.3vw,42px) }
.site-head nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: .93rem; font-weight: 590; text-decoration: none }
.site-head nav a:hover { color: var(--ice) }
.social-links { gap: 2px; border-left: 1px solid #52616a; padding-left: clamp(10px,1.4vw,24px) }
.social-links a { width: 35px }
.social-links svg { width: 19px; height: 19px }
.nav-cta { gap: 13px; padding-inline: 21px; border: 1px solid #77848c; border-radius: 100px }
.nav-cta:hover { border-color: var(--ice) }
.site-head :focus-visible, .hero :focus-visible, .contact :focus-visible { outline-color: var(--ice) }
.hero { color: #142f3e; background: linear-gradient(114deg,#d9eaf1,#a4cbdc 75%) }
.hero-layout { padding: 0; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) }
.hero-content { align-self: center; padding: clamp(40px,5.4vw,92px) var(--gutter) }
.hero-media { position: relative; isolation: isolate; overflow: hidden; background: #697070; min-height: clamp(410px,62svh,660px) }
.hero-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 59% }
.hero-media::after { content: ""; position: absolute; left: 18px; bottom: 18px; width: clamp(58px,6vw,88px); aspect-ratio: 2045/233; background: url("mediji/rubigrad-zig.png") center / contain no-repeat; opacity: .76; filter: drop-shadow(0 1px 2px #142328); pointer-events: none }
.film-toggle { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #fff9; border-radius: 50%; color: white; background: #172a35ba }
.film-toggle:hover { background: #162c39 }
.film-toggle svg { width: 19px; height: 19px }
.film-toggle .pause-icon, .film-toggle.is-playing .play-icon { display: none }
.film-toggle.is-playing .pause-icon { display: block }
.applications { display: flex; align-items: center; gap: 12px; font-size: clamp(.7rem,.85vw,.85rem); letter-spacing: .13em; font-weight: 650; text-transform: uppercase }
.applications::before { content: ""; width: 32px; height: 3px; background: #28799e }
#hero-title { font-size: clamp(58px,7.9vw,132px); letter-spacing: -.06em; line-height: .91; margin: clamp(19px,2vw,32px) 0 clamp(25px,3vw,45px) }
#hero-title span { color: #24688b }
.hero-cta { display: inline-flex; align-items: center; gap: 18px; min-height: 53px; border-radius: 100px; padding: 6px 7px 6px 22px; background: #183a4b; color: white; font-size: .96rem; font-weight: 670; text-decoration: none }
.hero-cta span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: #b5e1f7; color: #162b35; font-size: 1.25rem; line-height: 1; transition: transform .2s,background .2s }
.hero-cta:hover span { background: #88c9ed; transform: rotate(-10deg) }
.katalog { padding-bottom: clamp(58px,7vw,114px) }
.documents { display: grid; grid-template-columns: .85fr 1.35fr; align-items: center; column-gap: 24px; padding-block: clamp(17px,2vw,32px); border-bottom: 1px solid var(--line) }
#documents-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1rem,1.65vw,1.6rem); font-weight: 630; letter-spacing: -.045em }
#documents-title::before { content: ""; width: 4px; height: 1.07em; flex: none; background: var(--blue) }
.document-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 clamp(20px,3vw,44px) }
.document-links a { display: inline-flex; align-items: center; min-height: 44px; color: #175777; font-size: clamp(1rem,1.25vw,1.18rem); font-weight: 560; text-decoration: underline; text-underline-offset: .21em }
.document-links a:hover, .document-links a:focus-visible { color: #10374e; text-decoration-thickness: 2px }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: clamp(46px,6vw,98px) 0 clamp(22px,2.3vw,34px) }
h2 { font-size: clamp(43px,5.4vw,93px) }
.katalog-heading p, .category-info { color: var(--muted); font-size: .98rem; margin-top: 12px }
.category-info { margin: -5px 0 18px }
.tabs { display: inline-flex; align-items: stretch; gap: 2px; max-width: 100%; padding: 4px; border: 1px solid #c6cece; border-radius: 100px; flex: none }
.tabs :is(button,a) { display: inline-block; align-content: center; min-height: 44px; padding: 7px 15px; border: 0; background: transparent; color: #3f525c; font: inherit; font-size: .9rem; font-weight: 600; border-radius: 100px; text-align: center; text-decoration: none; white-space: nowrap }
.tabs [aria-pressed=true], .tabs [aria-current=page] { background: var(--ink); color: #fff }
.tabs :is(button,a):hover:not([aria-pressed=true],[aria-current=page]) { background: #e3ebeb }
.tab-count { margin-left: 6px; font-size: .73em; font-variant-numeric: tabular-nums; opacity: .83; vertical-align: .25em }
.info-main { padding-bottom: clamp(54px,7vw,105px) }
.info-head { align-items: center; margin-block: clamp(24px,4vw,54px) 24px }
.info-head .catalog-name { font-size: clamp(1.35rem,2vw,2rem); font-weight: 600; letter-spacing: -.045em }
.concrete-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,6vw,100px); align-items: center; padding: clamp(25px,4.5vw,78px); background: #d6e9f1; color: #163748; border-radius: 4px }
.concrete-intro h1 { max-width: 12ch; font-size: clamp(2.65rem,5.5vw,5.6rem); line-height: .99; letter-spacing: -.055em }
.concrete-intro p { max-width: 54ch; font-size: clamp(1rem,1.3vw,1.21rem); line-height: 1.56 }
.concrete-intro p + p { margin-top: .7em }
.concrete-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(25px,6vw,100px); margin: clamp(28px,4vw,68px) clamp(0px,2vw,32px) 0 }
.concrete-details section { border-top: 1px solid var(--line); padding-top: clamp(16px,2vw,26px) }
.concrete-details h2 { font-size: clamp(1.6rem,2.6vw,2.7rem); letter-spacing: -.045em }
.concrete-details ul { margin: 18px 0 0; padding-left: 1.15em; max-width: 54ch }
.concrete-details li { padding: 0 0 .6em .25em }
.concrete-details li::marker { color: var(--blue) }
@media (max-width: 980px) {
  .gallery-head { flex-direction: column; align-items: start }
}
.groups { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(18px,2.5vw,43px) clamp(11px,1.4vw,25px) }
.group { flex: 1 0 100%; min-width: 0 }
.group.solo { flex: 1 1 19% }
.group.duo { flex: 2 1 37% }
.group.trio { flex: 3 1 55% }
.tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(4px,.5vw,9px) }
.solo .tiles { grid-template-columns: 1fr }
.duo .tiles { grid-template-columns: repeat(2,minmax(0,1fr)) }
.trio .tiles { grid-template-columns: repeat(3,minmax(0,1fr)) }
.photo { display: block; position: relative; width: 100%; min-width: 0; max-height: 520px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: #d2d9d5; border: 0; border-radius: 3px; cursor: zoom-in }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease-out }
.number { position: absolute; left: 10px; bottom: 10px; color: white; background: #15242be8; border-radius: 3px; padding: 4px 7px; font-size: .73rem; font-variant-numeric: tabular-nums; font-weight: 560; line-height: 1.18; letter-spacing: .055em }
@media (hover:hover) {
  .photo:hover img { transform: scale(1.035) }
}
@media (min-width: 851px) {
  .group.trio:first-child { flex-basis: 100% }
  .group.trio:first-child .tiles { grid-template-columns: 1.65fr 1fr; grid-template-rows: repeat(2,clamp(145px,13vw,245px)) }
  .group.trio:first-child .photo:first-child { grid-row: span 2 }
  .group.trio:first-child .photo { aspect-ratio: auto; height: 100% }
}
.contact { position: relative; background: var(--navy); color: #f4f7f8; padding-block: clamp(46px,6vw,105px) clamp(26px,3vw,50px) }
#upit { position: absolute; top: 0 }
.contact-main { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.75fr); align-items: start; gap: 25px clamp(28px,6vw,100px) }
.contact-copy { align-self: end }
.contact h2 { font-size: clamp(45px,6vw,101px) }
.contact-copy p { max-width: 47ch; margin-top: 17px; font-size: clamp(1rem,1.3vw,1.16rem); color: #c4d0d6; line-height: 1.5 }
.contact-actions { grid-column: 1; display: flex; gap: 10px }
.contact-action { display: grid; place-items: center; width: clamp(55px,4.3vw,71px); aspect-ratio: 1; border: 1px solid #71838e; border-radius: 50%; color: white }
.contact-action.call { background: var(--ice); border-color: var(--ice); color: #142d3b }
.contact-action:hover { background: white; border-color: white; color: #142d3b }
.contact-action svg { width: 40%; height: 40% }
.contact-print { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 100%; height: auto; display: block; border-radius: 3px }
.company-details { margin-top: clamp(35px,4.6vw,75px); padding-top: clamp(20px,2.4vw,39px); border-top: 1px solid #52616b; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 20px; color: #c1cdd2; font-size: .93rem }
.company-details strong { font-size: 1.16rem; color: #fff }
.company-details address { font-style: normal }
.company-contact { display: grid; justify-items: start; gap: 3px }
.company-contact b { font-weight: 560; font-variant-numeric: tabular-nums }
.company-details a { color: #e4f5ff; text-decoration-color: #72848e }
.company-details a:hover { text-decoration-color: currentColor }
.company-details > a { text-decoration: none; align-self: start; min-height: 44px }

.cover-watermark::after, .watermark {
  pointer-events: none; position: absolute; aspect-ratio: 2045 / 233;
  background: url("mediji/rubigrad-zig.png") center / contain no-repeat;
  opacity: .87; filter: drop-shadow(0 1px 1px #13202ccc) drop-shadow(0 0 1px #162431ad);
}
.cover-watermark::after { content: ""; right: 2.8%; bottom: 3%; width: clamp(38px,12%,122px) }
.intro { position: fixed; inset: 0; z-index: 20; background: #17242a; overflow: hidden; transition: opacity .3s ease }
.intro.leaving { opacity: 0 }
.intro-pictures, .intro-pictures picture { position: absolute; inset: 0 }
.intro-pictures picture { display: block; opacity: 0 }
.intro-pictures picture.is-current { opacity: 1 }
.intro-pictures picture.is-current ~ picture.is-current { animation: photo-dissolve .32s ease-out both }
@keyframes photo-dissolve { from { opacity: 0 } to { opacity: 1 } }
.intro-pictures img { display: block; width: 100%; height: 100%; object-fit: cover }
.intro-pictures .cover-watermark::after { bottom: max(8%,78px) }
.skip-intro { position: absolute; z-index: 3; bottom: max(23px,env(safe-area-inset-bottom)); right: max(23px,env(safe-area-inset-right)); background: #172f40eb; color: white; border: 1px solid #fff7; border-radius: 100px; padding: 10px 17px }
#pregled { color: #f2f6f7; background: #17232a; border: 1px solid #51616a; padding: 0; width: min(1400px,96vw); height: min(91vh,1040px); height: min(91dvh,1040px); max-width: 100vw; max-height: 100dvh; border-radius: 8px }
#pregled::backdrop { background: #071014e8 }
.viewer { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto }
.viewer header, .viewer-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px clamp(12px,2vw,25px) }
.viewer header>div { display: flex; align-items: baseline; gap: 15px }
#broj { font-weight: 650; letter-spacing: -.025em }
#pozicija { font-size: .82rem; color: #bdcbd2; font-variant-numeric: tabular-nums }
.viewer button { border: 1px solid #62727c; border-radius: 100px; background: #192a33; color: white; padding: 6px 14px; min-height: 42px }
.viewer button:hover:not(:disabled) { background: #345163 }
.viewer :focus-visible { outline-color: var(--ice) }
.canvas { position: relative; background: #0d151a; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; user-select: none }
.canvas img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 50% 50%; pointer-events: none }
.canvas .prev, .canvas .next { position: absolute; top: 50%; transform: translateY(-50%); min-width: 46px; min-height: 46px; font-size: 1.8rem; line-height: 1; padding: 2px 10px 6px; background: #16262edb; border-color: #d6e8f18c }
.prev { left: 10px }
.next { right: 10px }
.zoom { display: flex; gap: 6px }
.zoom button { min-width: 44px }
.viewer-tools { justify-content: center }
.watermark { width: clamp(50px,12%,126px) }
.viewer button:disabled { opacity: .4 }
.canvas, .photo, .intro img, .brand img, .hero-media video { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none }
@media(max-width: 850px) {
  .tiles { grid-template-columns: repeat(3,minmax(0,1fr)) }
  .gallery-head { align-items: start }
  .contact-main { gap: 24px 32px; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr) }
  .docs-nav { display: none !important }
}
@media(max-width: 680px) {
  :root { --gutter: clamp(17px,5vw,30px); --nav-h: 59px }
  .site-head nav { gap: 10px }
  .site-head nav a { font-size: .86rem }
  .brand img { width: clamp(110px,33vw,148px) }
  .social-links { gap: 0; border: none; padding: 0 }
  .social-links a { width: 31px }
  .social-links svg { width: 17px; height: 17px }
  .nav-cta { padding-inline: 12px; gap: 6px }
  .hero-layout { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr; min-height: clamp(510px,76svh,680px); color: white }
  .hero-media { position: absolute; inset: 0; z-index: -1; min-height: 0 }
  .hero-media video { object-position: 45% 55% }
  .hero-media::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg,#0b1d29eb 0%,#102330c9 18%,#10233020 55%,transparent 68%) }
  .hero-media::after { top: 19px; bottom: auto; left: var(--gutter); width: 66px }
  .hero-content { align-self: end; padding: 28px var(--gutter); pointer-events: none }
  .hero-content a { pointer-events: auto }
  .hero-cta { background: white; color: #183a4b }
  #hero-title span { color: var(--ice) }
  .film-toggle { bottom: 28px; right: var(--gutter) }
  .applications { gap: 9px; font-size: .67rem; letter-spacing: .11em }
  .applications::before { width: 23px; height: 2px; background: var(--ice) }
  #hero-title { font-size: clamp(54px,15.6vw,103px); line-height: .92; margin-block: 16px 24px }
  .hero-cta { min-height: 47px; padding-left: 17px; font-size: .88rem }
  .hero-cta span { width: 33px; height: 33px }
  .documents { grid-template-columns: 1fr; gap: 2px; padding-block: 20px 12px }
  #documents-title { gap: 8px; font-size: 1.15rem }
  .gallery-head { flex-direction: column; gap: 16px; margin-block: 40px 16px }
  .katalog-heading p { margin-top: 8px; font-size: .93rem }
  .tabs :is(button,a) { padding-inline: clamp(5px,2vw,12px); font-size: .83rem; line-height: 1.2; white-space: normal }
  .info-head { margin-block: 26px 16px }
  .concrete-intro, .concrete-details { grid-template-columns: 1fr }
  .concrete-details { margin-inline: 0 }
  .groups { gap: 15px 9px }
  .group.solo { flex-basis: 42% }
  .group.duo, .group.trio { flex-basis: 100% }
  .tiles, .trio .tiles { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .trio .photo:first-child { grid-column: 1 / -1; aspect-ratio: 1.75 }
  .number { left: 6px; bottom: 6px; font-size: .67rem }
  .contact-main { grid-template-columns: 1fr; gap: 18px }
  .contact-copy p { margin-top: 13px }
  .contact-print { grid-column: 1; grid-row: auto; margin-top: 12px; max-width: 460px }
  .company-details { grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px }
  .company-details address, .company-contact { grid-column: 1 }
  .company-details > a { grid-column: 2; grid-row: 1 }
  .company-contact a { padding-block: 2px }
  #pregled { width: 100vw; height: 100dvh; margin: auto; border: 0; border-radius: 0 }
  .viewer-tools { padding-bottom: max(9px,env(safe-area-inset-bottom)) }
}
@media(max-width: 440px) {
  .site-head .catalog-nav { display: none }
  .head-in { gap: 8px }
}
@media(max-height: 500px) and (orientation: landscape) {
  .site-head { position: relative }
  .hero-media { min-height: 300px }
  .hero-content { padding-block: 38px }
  #hero-title { font-size: clamp(65px,9vw,100px) }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important }
}

