/* =========================================================
   MTronix – Kjer preciznost šteje
   Paleta: skoraj črna + oranžna · Montserrat (ena pisava za vse)
   ========================================================= */

/* ---------- Pisava (gostimo sami; Montserrat variabilni woff2, subset: latin + č/š/ž/ć/đ + ločila) ---------- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Nadomestna pisava s prilagojenimi metrikami – manjši preskok ob zamenjavi pisave */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); size-adjust: 112%; ascent-override: 85%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --bg: #03060d;
  --bg-2: #080c16;
  --bg-3: #0e1320;
  --card: #3a3a3a;
  --card-border: #cfcfcf;        /* po lastnikovi skici */
  --line: rgba(255, 255, 255, .09);
  --field-border: #5b616d;       /* 3,3:1 na ozadju (WCAG 1.4.11) */
  --text: #ffffff;
  --muted: #a3a9b6;              /* 8,6:1 */
  --muted-2: #8b93a1;            /* ≥4,5:1 tudi na #010309 */
  --accent: #ff8c42;
  --accent-2: #ffa766;
  --accent-ink: #03060d;         /* besedilo na oranžni (8,8:1) */
  --danger: #fca5a5;
  --radius: 8px;
  --radius-lg: 14px;
  --font-display: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --font-body: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1240px, 92%); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .7rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Placeholderji: enotno označeni [v oglatih oklepajih] + diskretna pikčasta podčrta za lažje iskanje */
.ph { text-decoration: underline dotted rgba(255, 140, 66, .55); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: var(--radius);
  padding: .9rem 2rem;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn::after { /* sijaj, ki zdrsne čez gumb */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 12px 40px -10px rgba(255, 140, 66, .6); }
.btn:hover::after { transform: translateX(120%); }
.btn-xl { font-size: clamp(1.05rem, 1.6vw, 1.4rem); padding: 1em 3.2em; }
.btn-lg { font-size: 1.05rem; padding: 1rem 2.4rem; }
.btn-full { width: 100%; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--accent-ink); box-shadow: none; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn.is-loading .btn-label::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .6rem; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

/* ---------- Navigacija ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
/* Vsebina v lastni plasti pod navigacijo – animirani (transformirani) elementi ne morejo prekriti glave */
main { position: relative; z-index: 0; }
.nav.scrolled { background: rgba(3, 6, 13, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; display: inline-flex; align-items: center; min-height: 44px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: #d3d7df; transition: color .2s; position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a[data-spy]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: #fff; }
.nav-links a[data-spy]:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-phone { gap: .5rem; color: #fff !important; font-weight: 700 !important; }
.nav-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-cta { border: 1.5px solid rgba(255,255,255,.3); padding: 0 1.2rem; border-radius: var(--radius); transition: border-color .2s, background-color .2s, color .2s !important; }
.nav-cta:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink) !important; }
.nav-cta[aria-current="true"] { border-color: var(--accent); color: var(--accent) !important; }
.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 80%;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(255, 140, 66, .10), transparent 70%),
    radial-gradient(30% 40% at 20% 10%, rgba(255, 255, 255, .04), transparent 70%);
  pointer-events: none;
}
.hero::after { /* fina tehnična mreža */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
/* H1 in kartice (LCP) so vidni takoj. Pred uvodom skrijemo samo dekorativne dele;
   varovalka: po 2 s so vidni v vsakem primeru (tudi če JS odpove). */
.js .hero-tagline, .js .hero-cta, .js .works-hint { opacity: 0; animation: hero-failsafe .3s 2s forwards; }
@keyframes hero-failsafe { to { opacity: 1; } }

.hero-title {
  font-size: clamp(3.2rem, min(10vw, 13svh), 7.5rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1;
  font-kerning: none;
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, min(4.2vw, 6svh), 3.6rem);
  letter-spacing: -.02em; line-height: 1.15;
  margin-top: .35em;
}
.hl { color: var(--accent); position: relative; display: inline-block; }
.brush { position: absolute; left: -2%; width: 104%; height: .32em; bottom: -.22em; overflow: visible; }
.brush-path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.js .brush-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: brush-failsafe .6s 2s forwards; } /* pathLength="1" */
@keyframes brush-failsafe { to { stroke-dashoffset: 0; } }
.brush-path--thin { stroke-width: 2.4; opacity: .7; }

/* ---------- Pred / po kartice ---------- */
.works-wrap { width: min(1180px, 100%, 132svh); display: flex; flex-direction: column; align-items: center; margin-top: clamp(1.75rem, 4.5svh, 4.5rem); }
.works {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 1.6vw, 1.4rem);
  width: 100%;
}
.work {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer; padding: 0; text-align: center;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s, box-shadow .4s;
}
.work:hover, .work.is-active { border-color: var(--accent); box-shadow: 0 24px 60px -24px rgba(255, 140, 66, .45); }
.work:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-color: var(--accent); }
.work-media {
  position: absolute; inset: 0; z-index: 1;
  transform-origin: 50% 0%;
  clip-path: inset(0% 0% 0% 0% round 0px);
  background: var(--card);
}
.work-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.work-img--pred { opacity: 0; visibility: hidden; }
.work-img.is-missing { display: none; }
.work-shade { /* senca za berljivost oznake (v aktivnem stanju ugasne) */
  position: absolute; inset: 45% 0 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}
.work-state { /* izven skaliranega elementa – vedno berljiva; v aktivnem stanju se poravna s sliko (GSAP) */
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(3, 6, 13, .86);
  border: 1px solid rgba(255,255,255,.2);
  padding: .38rem .7rem; border-radius: 999px;
  display: grid;
}
.work-state b { grid-area: 1 / 1; text-align: center; }
.work-state .s-po { color: var(--accent); }
.work-state .s-pred { color: #fff; opacity: 0; visibility: hidden; }
.work-caption { /* naslov nad opisom */
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: grid; gap: .3rem; padding: 0 .9rem;
}
.work-label {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.work-extra { display: block; height: 0; overflow: hidden; opacity: 0; visibility: hidden; }
.work-desc { display: block; font-size: clamp(.95rem, 1vw, 1rem); line-height: 1.38; color: #e6e8ee; }
.work-more { display: block; margin-top: .3rem; font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--accent); }
.more-touch { display: none; }
@media (hover: none) { .more-hover { display: none; } .more-touch { display: inline; } }
/* Ozke kartice (≈ 200–300 px): krajši napis namesto pretankega traku slike */
@media (min-width: 961px) and (max-width: 1400px), (min-width: 961px) and (max-height: 860px) {
  .work-desc { font-size: .85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .work-more { display: none; }
  .work-caption { bottom: 10px; gap: .2rem; }
}

.works-dots { display: none; gap: 8px; margin-top: 1rem; }
.works-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background-color .3s, transform .3s; }
.works-dots span.is-on { background: var(--accent); transform: scale(1.15); }

.works-hint { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.works-hint b { color: var(--accent); margin-right: .3rem; }
.works-hint em { font-style: normal; font-weight: 700; color: #fff; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.hero-cta { margin-top: clamp(1.25rem, 3svh, 2.6rem); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Številke ---------- */
.stats { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-block: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.stats-bg {
  position: absolute; inset: -20% 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3,6,13,.94), rgba(3,6,13,.82), rgba(3,6,13,.94)), url("assets/img/robot.webp") center / cover no-repeat;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: .5rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; color: #fff; letter-spacing: -.03em; }
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label { color: var(--muted); font-size: .95rem; }

/* ---------- Sekcije ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2, .why-text h2, .contact-info h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; margin-bottom: 1.1rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; }

/* ---------- Storitve ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service {
  padding: 2.2rem 1.9rem 2.2rem;
  background: var(--bg);
  position: relative; display: flex; flex-direction: column;
  transition: background-color .4s;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover { background: var(--bg-2); }
.service:hover::before { transform: scaleX(1); }
.service-ico { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.2rem; }
.service-num { font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--muted-2); letter-spacing: .1em; }
.service h3 { font-size: 1.3rem; font-weight: 700; margin: .5rem 0 .8rem; min-height: 2.3em; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; max-width: 46ch; }
.service ul { margin-bottom: 1.6rem; }
.service-more summary { display: none; }
.service-more summary::-webkit-details-marker { display: none; }
.service.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 30% { background-color: rgba(255,140,66,.12); } 100% { background-color: var(--bg); } }
.service li { font-size: .92rem; padding: .55rem 0; border-top: 1px solid var(--line); display: flex; gap: .7rem; align-items: center; color: #d9dce3; }
.service li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; flex: none; transform: rotate(45deg); }
.service-link { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--accent); display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.service-link span { transition: transform .3s var(--ease); }
.service-link:hover span { transform: translateX(4px); }

/* ---------- Zakaj mi ---------- */
.why { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.why-media { position: relative; }
.why-img-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.why-img-wrap img { width: 100%; height: 120%; object-fit: cover; }
.why-badge {
  position: absolute; right: -1.2rem; bottom: 2rem;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 1.1rem 1.4rem; border-radius: var(--radius); max-width: 220px; line-height: 1.3;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.why-badge b { display: block; font-size: 1.5rem; font-weight: 800; }
.why-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.2rem; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.why-list li { display: flex; flex-direction: column; gap: .35rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.why-list b { font-family: var(--font-display); font-size: 1.15rem; }
.why-list li > span { color: var(--muted); font-size: .93rem; }

/* ---------- Postopek ---------- */
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
/* črta teče od središča 01 do središča 04 */
.steps-line { position: absolute; top: 28px; left: 29px; right: calc((100% - 6rem) / 4 - 29px); height: 2px; background: var(--line); }
.steps-line-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; }
.steps li { position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  background: var(--bg); color: var(--accent);
  border: 2px solid var(--accent);
  margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .95rem; max-width: 250px; }

/* ---------- CTA trak ---------- */
.cta-band { position: relative; padding: clamp(6rem, 13vw, 9.5rem) 0; overflow: hidden; text-align: center; isolation: isolate; }
.cta-bg {
  position: absolute; inset: -15% 0; z-index: -1;
  background: linear-gradient(rgba(3,6,13,.72), rgba(3,6,13,.88)), url("assets/img/hala.webp") center / cover no-repeat;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.cta-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1.14; letter-spacing: -.02em; }
.cta-line { display: block; overflow: hidden; padding-bottom: .06em; }
.cta-line > span { display: inline-block; }
.cta-line--accent { color: var(--accent); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-note { color: var(--muted); font-size: .92rem; margin-top: -.8rem; }

/* ---------- Mnenja strank ---------- */
.reviews-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.reviews-head h2 { margin-bottom: 0; }
.g-rating {
  display: grid; grid-template-columns: auto auto; column-gap: .9rem; align-items: center;
  padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2);
  transition: border-color .3s;
}
.g-rating:hover { border-color: rgba(255,140,66,.55); }
.g-score { grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.g-stars { color: var(--accent); letter-spacing: .12em; font-size: 1rem; }
.g-count { color: var(--muted); font-size: .85rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.review-stars { color: var(--accent); letter-spacing: .12em; }
.review blockquote { font-size: 1.02rem; line-height: 1.6; color: #e6e8ee; flex: 1; }
.review blockquote p::before { content: "„"; }
.review blockquote p::after { content: "“"; }
.review-who { display: grid; gap: .1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-who b { font-family: var(--font-display); }
.review-who > span { color: var(--muted); font-size: .88rem; }
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2.5rem; }
.logo-strip li { display: grid; place-items: center; height: 72px; border: 1px dashed rgba(255,255,255,.14); border-radius: var(--radius); color: var(--muted); font-size: .85rem; }
.logo-strip img { max-height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .3s, filter .3s; }
.logo-strip li:hover img { opacity: 1; filter: none; }

/* ---------- Certifikati in garancije ---------- */
.trust { background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.trust-grid li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .3rem; align-content: start;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg);
  transition: border-color .3s;
}
.trust-grid li:hover { border-color: rgba(255,140,66,.5); }
.trust-ico { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,140,66,.12); }
.trust-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-grid strong { font-family: var(--font-display); font-size: 1.05rem; }
.trust-grid li > span:not(.trust-ico) { color: var(--muted); font-size: .92rem; }
.trust-grid a { color: var(--accent); text-decoration: underline; }

/* ---------- Pogosta vprašanja ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.3rem 0; min-height: 56px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.15rem);
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: 6px; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--muted); padding: 0 2.5rem 1.5rem 0; }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-2); }
.contact .contact-form { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.4rem; }
.contact-list { display: grid; gap: .6rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; position: relative; min-height: 60px; border-radius: var(--radius); }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.contact-list a, .contact-list div > span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.row-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* cela vrstica klikljiva */
.contact-list li:hover .row-link { color: var(--accent); }
.ci { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; position: relative; }
.form-legend { font-size: .82rem; color: var(--muted); }
.form-legend span, .req { color: var(--accent); }
.opt { color: var(--muted-2); font-weight: 500; font-size: .78rem; }
.field { display: grid; gap: .45rem; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label, legend { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: #d9dce3; }
legend { margin-bottom: .5rem; }
input, textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--field-border); border-radius: var(--radius);
  padding: .85rem 1rem; width: 100%; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, textarea:hover { border-color: #7a8190; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 140, 66, .18); }
[aria-invalid="true"] { border-color: #f87171 !important; }
.err { color: var(--danger); font-size: .82rem; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--field-border); font-size: .88rem; font-weight: 600; color: #d9dce3;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: rgba(255,140,66,.7); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:checked + span::before { content: "✓"; margin-right: .4rem; font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.form-privacy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form-privacy a:hover { color: var(--accent); }
.form-note { font-size: .9rem; color: var(--muted); }
.form-note:empty { display: none; }
.form-note.is-error { color: var(--danger); }
.form-note a { color: #fff; text-decoration: underline; }
.form-success { text-align: center; display: grid; justify-items: center; gap: .9rem; padding: 2rem 1rem; }
.form-success svg { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--muted); max-width: 380px; }

body.menu-open { overflow: hidden; }

/* ---------- Lepljiva mobilna vrstica ---------- */
.mbar { display: none; }

/* ---------- Pravne strani ---------- */
.legal { max-width: 820px; padding: 150px 0 100px; line-height: 1.75; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: .6rem; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 2.6rem 0 .8rem; }
.legal p, .legal li { color: #c9ced8; margin-bottom: .75rem; }
.legal strong { color: #fff; }
.legal ul { list-style: none; padding-left: 0; }
.legal ul li { position: relative; padding-left: 1.3rem; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-meta { color: var(--muted); font-size: .95rem; margin-bottom: 2.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9ced8; }
.legal th { font-family: var(--font-display); color: #fff; font-weight: 600; background: var(--bg-2); }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--muted) !important; text-decoration: none !important; }
.legal-back:hover { color: var(--accent) !important; }

/* ---------- Noga ---------- */
.footer { background: #010309; border-top: 1px solid var(--line); padding: 4rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-h { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.footer ul { display: grid; gap: 0; }
.footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--accent); }
.footer-tag { color: var(--muted); margin-top: .4rem; }
.footer-company { color: var(--muted); display: grid; gap: .35rem; line-height: 1.5; align-content: start; }
.footer-company-name { color: #fff; font-weight: 600; }
.footer-company a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 1.2rem 0 1.6rem; color: var(--muted-2); font-size: .86rem; }
.footer-legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: #c9ced8; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-links .to-top { text-decoration: none; }

/* =========================================================
   Odzivnost
   ========================================================= */
@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 1.4rem; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .nav-phone-item { display: none; }
}
/* Tablica pokončno: vse 4 kartice v vrsti, da je gumb nad pregibom (opis se skrije) */
@media (min-width: 700px) and (max-width: 960px) and (min-height: 900px) {
  .works-wrap { width: 100%; }
}
@media (min-width: 700px) and (max-width: 960px) {
  .works { grid-template-columns: repeat(4, 1fr); }
  .work-extra { display: none; }
  .work-label { font-size: .95rem; line-height: 1.15; }
  .work-state { font-size: .62rem; padding: .3rem .55rem; top: 7px; left: 7px; }
}
@media (max-width: 960px) {
  .why-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .why-img-wrap { aspect-ratio: 16 / 10; }
  .why-badge { right: 1rem; bottom: -1.5rem; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps-line { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .stat:nth-child(3) { border-left: 0; }
  .trust-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #03060d; /* polno ozadje – vsebina pod menijem ne sme sijati skozi */
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0,0,0,.55);
    padding: .5rem 4% 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .3s, visibility 0s; }
  .nav-links li { width: 100%; }
  .nav-links a { display: flex; min-height: 54px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a[data-spy]::after { display: none; }
  .nav-cta { margin-top: 1rem; justify-content: center; border-bottom: 1.5px solid rgba(255,255,255,.3) !important; }
  .nav, .nav.scrolled { background: #03060d; backdrop-filter: none; -webkit-backdrop-filter: none; } /* brez backdrop-filter na telefonu: zelo drag za izris; polno ozadje, da besedilo ne sije skozi (brez transform – sicer se pokvari fixed meni) */

  .mbar {
    position: fixed; inset: auto 0 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    padding: .6rem 4% calc(.6rem + env(safe-area-inset-bottom));
    background: #03060d;
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mbar.show { transform: none; }
  .mbar a {
    min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  }
  .mbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mbar-call { border: 1.5px solid rgba(255,255,255,.35); }
  .mbar-form { background: var(--accent); color: var(--accent-ink); }
  body { padding-bottom: 76px; }
}
@media (max-width: 699px) {
  /* Telefon: kartice v vodoravnem drsniku (swipe) */
  .works {
    display: flex; gap: .9rem;
    width: 100vw; max-width: none;
    margin-inline: calc(50% - 50vw);
    padding: 10px 11vw 8px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 11vw;
    scrollbar-width: none;
  }
  .works::-webkit-scrollbar { display: none; }
  .works > li { flex: 0 0 78vw; max-width: 340px; scroll-snap-align: center; }
  .works-wrap { width: 100%; }
  .works-dots { display: flex; }
}
@media (max-width: 560px) {
  .hero { padding-top: 92px; }
  .work-label { font-size: 1.15rem; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 1.4rem 1.3rem 1.2rem; }
  .service-ico { position: absolute; top: 1.3rem; right: 1.3rem; width: 30px; height: 30px; margin: 0; }
  .service h3 { margin: .35rem 0 .6rem; padding-right: 2.4rem; }
  .service h3 { min-height: 0; }
  .service-lead { margin-bottom: .8rem !important; }
  .service-more summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: #d9dce3; border-top: 1px solid var(--line);
  }
  .service-more summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; transition: transform .3s var(--ease); }
  .service-more[open] summary::after { transform: rotate(45deg); }
  .service-more ul { margin-bottom: .6rem; }
  .why-list, .field-row, .steps, .trust-grid, .review-grid { grid-template-columns: 1fr; }
  .steps { row-gap: 1.6rem; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: start; }
  .steps li::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: -1.6rem; width: 2px; background: var(--line); }
  .steps li:last-child::before { display: none; }
  .step-num { width: 44px; height: 44px; font-size: .85rem; margin: 0; grid-row: span 2; }
  .steps h3 { margin: .55rem 0 .3rem; }
  .steps p { max-width: none; }
  .logo-strip { grid-template-columns: repeat(4, 1fr); }
  .logo-strip li { grid-column: span 2; }
  .logo-strip li:last-child:nth-child(odd) { grid-column: 2 / span 2; } /* liho število: zadnji na sredini */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer { padding-top: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; padding-bottom: 1.6rem; }
  .footer-grid > *, .footer-company { grid-column: 1 / -1; }
  .footer nav ul { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .footer-legal-dup { display: none; }
  .footer-tag { margin-top: 0; }
  .btn-xl { padding: 1em 2em; width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .faq-body p { padding-right: 0; }
  .reviews-head { align-items: start; }
}
@media (max-height: 780px) {
  .scroll-cue { display: none; }
}
@media (min-width: 1800px) {
  html { font-size: 106.25%; }
  .container { width: min(1440px, 88%); }
  .hero-title { font-size: clamp(7.5rem, min(7vw, 14svh), 10rem); }
  .hero-tagline { font-size: clamp(3.6rem, min(3.2vw, 6svh), 4.6rem); }
  .works-wrap { width: min(1400px, 100%, 132svh); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .btn, .btn::after { transition: none; }
  .btn::after { display: none; }
  .mbar { transition: none; }
  .js .hero-tagline, .js .hero-cta, .js .works-hint { opacity: 1; animation: none; }
  .js .brush-path { stroke-dashoffset: 0; animation: none; }
}

/* Pravne strani: navigacija ostane vidna tudi na telefonu (brez JS menija) */
.nav-links--static { display: flex; }
@media (max-width: 760px) {
  .nav-links.nav-links--static {
    position: static; flex-direction: row; align-items: center; gap: 1.2rem;
    opacity: 1; visibility: visible; transform: none;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; padding: 0;
  }
  .nav-links--static li { width: auto; }
  .nav-links--static a { min-height: 44px; border: 0; font-size: .9rem; }
  .nav-links--static .nav-cta { margin: 0; padding: 0 .9rem; border: 1.5px solid rgba(255,255,255,.3) !important; }
  .legal-page body, body.legal-page { padding-bottom: 0; }
}

/* ---------- Stran 404 ---------- */
.error-page { min-height: calc(100svh - 90px); display: grid; place-items: center; padding: 120px 0 60px; text-align: center; }
.error-inner { display: grid; justify-items: center; gap: 1.2rem; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 12rem); line-height: .9; letter-spacing: -.05em; }
.error-code span { color: var(--accent); }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.error-text { color: var(--muted); max-width: 520px; font-size: 1.05rem; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .8rem; }
.error-page + .footer { padding-top: 0; }

/* ---------- Zmogljivost: noga se izriše šele blizu pogleda ----------
   (samo noga: content-visibility na sekcijah bi ob prvem obisku pokvaril skoke na sidra) */
.footer { content-visibility: auto; contain-intrinsic-size: auto 420px; }
