:root {
  --bg: #e7ebea;
  --surface: #f3f5f4;
  --panel: #d5dbda;
  --panel-2: #e1e6e5;
  --line: #97a09e;
  --line-strong: #525b5a;
  --line-soft: rgba(82, 91, 90, 0.18);
  --text: #121516;
  --muted: #5a6160;
  --muted-2: #6a7270;
  --dark: #1b2021;
  --dark-2: #2a3031;
  --accent: #26b7c6;
  --accent-soft: rgba(38, 183, 198, 0.1);
  --shadow-soft: 0 10px 24px rgba(18, 21, 22, 0.06);
  --shadow-mid: 0 16px 34px rgba(18, 21, 22, 0.1);
  --max: 1280px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0)),
    repeating-linear-gradient(
      90deg,
      rgba(18, 21, 22, 0.03) 0,
      rgba(18, 21, 22, 0.03) 1px,
      transparent 1px,
      transparent 84px
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

/* HEADER */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(231, 235, 234, 0.9);
  border-bottom: 1px solid var(--line-strong);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transform: translateY(3px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.2rem;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.34);
}

.lang-btn {
  min-width: 64px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--line-strong);
}

.lang-btn:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.lang-btn.active {
  background: var(--dark);
  color: #fff;
}

/* HERO */

.hero {
  position: relative;
  overflow: clip;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.frame {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(0, 0, 0, 0) 42%),
    var(--surface);
  position: relative;
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
  z-index: 1;
}

.frame::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
  z-index: 2;
}

.hero-copy {
  padding: 2.1rem;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

h1 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.subhead {
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(38, 183, 198, 0.45);
}


.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.5rem 0 0;
}

.meta-block {
  border: 1px solid var(--line);
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.34);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.meta-block:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.56);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.meta-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border: 1px solid var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #111516;
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 21, 22, 0.18);
}

.btn-primary:hover {
  background: #1b2122;
  box-shadow: 0 14px 28px rgba(17, 21, 22, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* DESNI HERO BLOK */

.hero-visual {
  min-height: 620px;
  padding: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(38, 183, 198, 0.08), transparent 25%),
    linear-gradient(135deg, rgba(29, 34, 35, 0.05), rgba(255, 255, 255, 0.3)),
    var(--panel);
}

.product-stage.no-box {
  position: relative;
  width: 100%;
  min-height: 420px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(29, 34, 35, 0.05) 0,
      rgba(29, 34, 35, 0.05) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(29, 34, 35, 0.04) 0,
      rgba(29, 34, 35, 0.04) 1px,
      transparent 1px,
      transparent 72px
    );
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.product-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  max-width: 122%;
  max-height: 122%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.28));
  transition: transform 400ms ease;
}

.product-stage:hover .product-image {
  transform: translate(-50%, -50%) scale(1.14);
}

/* SEKCIJE */

.section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.section-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.section-aside,
.section-main {
  min-width: 0;
}

.section-aside .frame,
.section-main .frame {
  height: 100%;
}

.section-label-box,
.section-content {
  padding: 1.4rem;
}

.section-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.85rem;
  display: inline-block;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.section-label-box .section-kicker,
.section-label-box h2 {
  position: relative;
  left: 0.65rem;
}

.section-content p,
.section-content li,
.benefit p,
.spec p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.no-panel {
  padding: 0;
  background: none;
}

/* PREGLED IZDELKA */

.overview-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
  align-items: stretch;
}

.overview-copy {
  padding: 1.2rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0)),
    transparent;
}

.overview-copy p {
  margin: 0 0 1rem;
  max-width: 58ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.overview-copy p:first-child {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--dark-2);
}

.overview-copy p:last-child {
  margin-bottom: 0;
}

#problem .overview-note,
#pregled .overview-note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.34);
}

#problem .overview-note strong {
  color: var(--dark);
}

#problem .overview-copy p:first-child {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--dark-2);
}

.overview-note {
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  display: grid;
  align-content: start;
  min-height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.overview-note strong {
  display: block;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  line-height: 1.2;
}

.overview-list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overview-list li {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0 0.15rem;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.overview-list li:hover {
  color: var(--text);
  transform: translateX(3px);
}

/* ENOTEN KARTIČNI SISTEM: PREDNOSTI + TEHNIČNO */

.benefit-grid,
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.benefit,
.spec {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.3rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(38, 183, 198, 0.06), transparent 32%),
    var(--surface);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.benefit:hover,
.spec:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(18, 21, 22, 0.08);
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(38, 183, 198, 0.1), transparent 34%),
    #f6f8f7;
}

.benefit::before,
.spec::before {
  content: attr(data-index);
  position: absolute;
  right: 0.9rem;
  top: 0.65rem;
  font-size: 2.55rem;
  font-weight: 900;
  color: rgba(29, 34, 35, 0.06);
  line-height: 1;
  pointer-events: none;
  transition: color var(--transition);
}

.benefit:hover::before,
.spec:hover::before {
  color: rgba(38, 183, 198, 0.14);
}

.benefit::after,
.spec::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  opacity: 0.75;
}

.benefit-top,
.spec-top {
  display: grid;
  gap: 0.5rem;
  padding-right: 3.4rem;
  min-height: 95px;
  align-content: start;
}

.benefit small,
.spec-code {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 800;
  display: block;
  margin: 0;
}

.benefit h3,
.spec h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.benefit p,
.spec p {
  margin: 1rem 0 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 30ch;
}

/* GALERIJA – ENOTEN SISTEM */

.gallery-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
}

.gallery-main,
.gallery-stack {
  display: grid;
  gap: 1rem;
}

.gallery-card {
  min-height: 260px;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(0, 0, 0, 0) 40%),
    var(--surface);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.gallery-card.large {
  min-height: 540px;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(18, 21, 22, 0.08);
}

.gallery-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  z-index: 3;
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2.4rem 2rem 2rem;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.22));
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.28));
}

/* KONTAKT */

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1rem;
  align-items: stretch;
}

.contact-intro {
  max-width: 42ch;
  color: var(--muted);
  margin: 0;
  line-height: 1.74;
}

.contact-block,
.form-shell {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(0, 0, 0, 0) 42%),
    var(--surface);
  padding: 1.4rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-block::before,
.form-shell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  opacity: 0.35;
}

.form-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.form-status.success {
  color: #2e7d32;
}

.form-status.error {
  color: #c62828;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.contact-data {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-item {
  padding-top: 0.95rem;
  padding-bottom: 0.15rem;
  border-top: 1px solid var(--line);
}

.contact-item:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-item strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text);
}

.contact-item strong a {
  transition: color var(--transition);
}

.contact-item strong a:hover {
  color: var(--accent);
}

.contact-item span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

.form-shell .btn {
  width: 100%;
  margin-top: 0.2rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
  min-height: 54px;
  padding: 0.95rem 1rem;
  color: var(--text);
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(38, 183, 198, 0.08);
}

/* FOOTER */

.footer {
  padding: 1rem 0 2rem;
}

.footer-box {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0) 42%),
    var(--surface);
  padding: 1rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.footer-box::before {
  display: none;
}

.footer-box-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-box-inline span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1120px) {
  .hero-grid,
  .overview-grid,
  .gallery-layout,
  .contact-layout,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy,
  .hero-visual {
    min-height: auto;
  }

  .overview-copy {
    padding-bottom: 0.4rem;
  }

  .topbar-inner {
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    justify-content: flex-start;
  }

}

@media (max-width: 760px) {
  .hero-meta .meta-value {
    font-size: 0.95rem;
  }

  .nav a {
    font-size: 0.72rem;
  }

  .gallery-label {
    font-size: 0.66rem;
    padding: 0.4rem 0.5rem;
  }

  .contact-intro {
    max-width: none;
  }

  .container {
    width: min(100% - 1rem, var(--max));
  }

  .topbar-inner {
    align-items: flex-start;
    padding: 0.8rem 0;
    height: auto;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
  }

  .nav {
    gap: 0.7rem 1rem;
  }

  .lang-switch {
    margin-top: 0.3rem;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero-copy,
  .hero-visual,
  .section-label-box,
  .section-content,
  .contact-block,
  .form-shell,
  .overview-copy,
  .overview-note {
    padding: 1rem;
  }

  .hero-meta,
  .benefit-grid,
  .spec-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card.large {
    min-height: 360px;
  }

  h1 {
    font-size: clamp(2.4rem, 16vw, 4.8rem);
  }

  .product-stage.no-box {
    min-height: 320px;
  }

  .product-image {
    max-width: 96%;
    max-height: 96%;
    transform: translate(-50%, -50%) scale(1.02);
  }

  .product-stage:hover .product-image {
    transform: translate(-50%, -50%) scale(1.05);
  }

  .brand-logo {
    height: 40px;
  }

  .overview-copy p:first-child {
    padding-left: 0.8rem;
  }

  .section-label-box .section-kicker,
  .section-label-box h2 {
    left: 0;
  }

  .footer-box-inline span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .overview-copy p {
    text-align: left;
    hyphens: none;
  }
}