/* ============================================================
   ZAMRZAVANJE CEVI — "technical datasheet" light theme
   ============================================================ */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d6;
  --card: #fbf8f2;
  --ink: #1d1814;
  --ink-soft: #6c6258;
  --line: #d9cebd;
  --line-soft: rgba(29, 24, 20, .07);
  --red: #d8392a;
  --red-deep: #b22c1f;
  --teal: #157f8c;
  --teal-soft: #d6ecee;
  --warm: #ffd79c;
  --container: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 22px 50px -30px rgba(29, 24, 20, .5);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Anton", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* graph-paper grid */
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 30px 30px;
  line-height: 1.6;
  font-size: clamp(15px, 1vw, 16.5px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }

/* ---------- Mono helpers ---------- */
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 22px; }
.label::before { content: ""; width: 22px; height: 2px; background: var(--red); }

.disp { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
.h2 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; line-height: .94; letter-spacing: .01em; font-size: clamp(2.1rem, 6vw, 4rem); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { --p: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: var(--p); font-weight: 600; font-size: .9rem; border-radius: 2px; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn--sm { --p: 9px 16px; font-size: .82rem; }
.btn--lg { --p: 16px 28px; font-size: .98rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* ---------- Tape (top utility) ---------- */
.tape { border-bottom: 1px solid var(--line); background: rgba(244,239,230,.7); }
.tape__in { display: flex; align-items: center; gap: 18px; padding: 8px 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tape__sp { flex: 1; }
.tape__tel { color: var(--ink); font-weight: 700; }
.tape__tel:hover { color: var(--red); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 900; border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s, padding .3s; padding: 16px 0; }
.nav.scrolled { background: rgba(244,239,230,.85); backdrop-filter: saturate(160%) blur(10px); border-color: var(--line); padding: 10px 0; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__name { font-family: var(--disp); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a:not(.btn) { position: relative; padding: 8px 13px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); transition: color .2s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--red); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 76px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero__blob { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; right: -180px; top: -140px; width: 540px; height: 540px; background: radial-gradient(circle at 35% 35%, rgba(255,196,130,.55), transparent 62%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero__title { font-family: var(--disp); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .005em; font-size: clamp(2.7rem, 8.5vw, 6rem); margin-bottom: 22px; }
.hero__title b { color: var(--red); font-weight: 400; }
.hero__title u { text-decoration: none; box-shadow: inset 0 -.16em 0 var(--warm); }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__spec { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.hero__spec div { flex: 1 1 120px; padding: 16px 16px 16px 0; border-right: 1px dashed var(--line); }
.hero__spec div:last-child { border-right: none; }
.hero__spec dt { font-family: var(--disp); font-size: 2rem; line-height: 1; }
.hero__spec .acc { color: var(--teal); }
.hero__spec dd { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 7px; }

/* technical figure */
.fig { position: relative; background: var(--card); border: 1px solid var(--line); padding: clamp(16px, 3vw, 30px); box-shadow: var(--shadow); }
.fig::before, .fig::after { content: "+"; position: absolute; font-family: var(--mono); color: var(--red); font-size: 1rem; line-height: 1; }
.fig::before { top: -8px; left: -8px; }
.fig::after { bottom: -8px; right: -8px; }
.fig__cap { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fig__art { width: 100%; height: auto; }
.fig__art .lead { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.fig__art .ann { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--ink); text-transform: uppercase; }
.fig__art .ann--red { fill: var(--red); }
.fig__art .ann--teal { fill: var(--teal); }
.heat { animation: heat 3s var(--ease) infinite; }
@keyframes heat { 0%,100% { opacity: .3 } 50% { opacity: .95 } }
.flake { animation: tw 2.4s ease-in-out infinite; }
@keyframes tw { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

/* ---------- SECTION shell ---------- */
.section { padding: clamp(58px, 8vw, 104px) 0; position: relative; }
.sectionhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 56px); }
.sectionhead p.muted { max-width: 360px; }

/* ---------- SERVICES datasheet ---------- */
.sheet { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 86px 1fr 130px; gap: clamp(14px, 3vw, 30px); align-items: center; padding: clamp(20px, 3vw, 30px) clamp(8px, 2vw, 18px); border-bottom: 1px solid var(--line); position: relative; transition: background .25s var(--ease), padding-left .25s var(--ease); }
.row:hover { background: var(--card); padding-left: clamp(14px, 3vw, 28px); }
.row__no { font-family: var(--disp); font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--line); line-height: 1; transition: color .25s; }
.row:hover .row__no { color: var(--red); }
.row__main h3 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 2.6vw, 1.85rem); line-height: 1; margin-bottom: 8px; letter-spacing: .01em; }
.row__main p { color: var(--ink-soft); font-size: .96rem; max-width: 560px; }
.row__tag { display: inline-block; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; margin-left: 10px; padding: 4px 8px; border-radius: 2px; }
.row__tag--star { background: var(--red); color: #fff; }
.row__tag--alt { background: var(--teal-soft); color: var(--teal); }
.row__ref { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-align: right; display: flex; flex-direction: column; gap: 4px; }
.row__ref b { color: var(--ink); font-weight: 700; }

/* ---------- METHOD ---------- */
.method { background: var(--paper-2); border-block: 1px solid var(--line); }
.method__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.method__text .h2 { margin-bottom: 20px; }
.method__text .muted { margin-bottom: 26px; max-width: 460px; }
.ticks { display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border: 1.5px solid var(--teal); border-radius: 2px; }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 3px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* ---------- PROCESS grid ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--card); }
.cell { padding: clamp(22px, 3vw, 32px); border-right: 1px solid var(--line); position: relative; transition: background .25s; }
.cell:last-child { border-right: none; }
.cell:hover { background: var(--paper); }
.cell__no { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--red); margin-bottom: 18px; display: block; }
.cell h3 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; line-height: 1; margin-bottom: 8px; }
.cell p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- GALLERY ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.frame { position: relative; border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.frame--tall { grid-row: span 2; }
.frame--wide { grid-column: span 2; }
.frame::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(29,24,20,.045) 0 1px, transparent 1px 13px); }
.frame__cap { position: absolute; left: 12px; bottom: 11px; z-index: 2; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 5px 10px; }
.frame__ph { position: absolute; top: 12px; right: 12px; z-index: 2; font-family: var(--mono); font-size: .58rem; color: var(--ink-soft); }

/* ---------- CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
.bigtel { display: inline-block; font-family: var(--disp); text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 4rem); line-height: .9; margin: 10px 0 14px; transition: color .2s; }
.bigtel:hover { color: var(--red); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.specs div { background: var(--paper); padding: 16px 18px; }
.specs dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.specs dd { font-weight: 600; }
.form { background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); display: grid; gap: 15px; position: relative; }
.form::before { content: "FORMULAR / UPIT"; position: absolute; top: -1px; left: -1px; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; background: var(--ink); color: var(--paper); padding: 5px 10px; }
.field { position: relative; margin-top: 4px; }
.field input, .field textarea { width: 100%; padding: 18px 14px 8px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); border-radius: 2px; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical; }
.field textarea { min-height: 104px; }
.field label { position: absolute; left: 14px; top: 15px; color: var(--ink-soft); pointer-events: none; transition: .18s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(21,127,140,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: .68rem; color: var(--teal); font-family: var(--mono); letter-spacing: .06em; }
.form__note { font-size: .88rem; font-weight: 600; min-height: 1.1em; }
.form__note.ok { color: #1a8f4e } .form__note.err { color: var(--red) }

/* ---------- FOOTER ---------- */
.footer { border-top: 2px solid var(--ink); background: var(--paper); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; flex-wrap: wrap; }
.footer__brand { font-family: var(--disp); font-size: 1.3rem; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.footer__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.footer__nav a { padding: 7px 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); transition: color .2s; }
.footer__nav a:hover { color: var(--red); }
.footer__tel { font-family: var(--disp); font-size: 1.4rem; color: var(--red); }
.footer__bar { border-top: 1px solid var(--line); }
.footer__barin { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); flex-wrap: wrap; }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 800; width: 54px; height: 54px; border-radius: 50%; display: none; place-items: center; background: var(--red); color: #fff; box-shadow: 0 14px 28px -10px rgba(216,57,42,.75); }

/* ---------- Reveal (additive, never permanently hides) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__fig { max-width: 520px; }
  .method__grid { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .cell:nth-child(2) { border-right: none; }
  .cell:nth-child(1), .cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .tape__hideable { display: none; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(84vw, 320px); flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper); border-left: 1px solid var(--line); padding: 84px 20px 30px; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow); }
  .nav__links.open { transform: translateX(0); }
  .nav__links a:not(.btn) { padding: 13px; font-size: .92rem; }
  .nav__cta { margin: 10px 0 0; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .fab { display: grid; }
  .row { grid-template-columns: 54px 1fr; }
  .row__ref { display: none; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid4 { grid-template-columns: 1fr; }
  .cell { border-right: none; border-bottom: 1px solid var(--line); }
  .cell:last-child { border-bottom: none; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 170px; }
  .frame--tall, .frame--wide { grid-column: auto; grid-row: auto; }
  .hero__spec div { flex-basis: 50%; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
