/* ==========================================================================
   TehnoRešitve - slog
   Po podlagi stranke („Podlaga za spletno stran 2“, 29. 10. 2026): bela podlaga,
   brez vrstice s kontakti nad glavo (želja stranke), temno modra noga, velik logotip s sloganom,
   hero s fotografijo in besedilom levo, kartice vseh sedmih storitev, trak
   prednosti. Ena poudarjena barva (modra). Barve samo prek spremenljivk v :root.
   ========================================================================== */

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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;
}

:root {
  --c-bg: #ffffff;
  --c-tint: #f3f6fa;
  --c-border: #e1e6ee;
  --c-border-strong: #c9d2df;
  --c-text: #0f1e33;                /* 16:1 na beli */
  --c-text-muted: #4d5b71;          /* 6,9:1 na beli */
  --c-accent: #1659c7;              /* 6,1:1 na beli */
  --c-accent-hover: #0f479f;
  --c-accent-soft: #e8f0fc;
  --c-navy: #0b2447;
  --c-navy-2: #12325e;
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #c2cee0;       /* 9:1 na --c-navy */
  --c-on-dark-accent: #4db8ff;      /* 6,9:1 na --c-navy */
  --c-bulb: #f2c744;
  --c-focus: #1659c7;
  --c-shadow: rgb(15 30 51 / 0.08);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);   /* 17-18 px */
  --fs-lg: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --fs-h3: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);

  --lh-base: 1.6;
  --measure: 66ch;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-section: clamp(4.5rem, 3rem + 5vw, 8rem);

  --container: 1240px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --header-h: 104px;
  --r-card: 14px;
  --r-inner: 10px;
  --r-btn: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
}

/* --- Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; line-height: var(--lh-base); -webkit-font-smoothing: antialiased; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, li { overflow-wrap: break-word; }
:where(ul[role="list"], ol) { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

/* --- Osnova ----------------------------------------------------------------- */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  overflow-x: clip;
}

h1, h2, h3 { font-weight: 600; text-wrap: balance; color: var(--c-text); }
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }
.mute { color: var(--c-text-muted); }
.accent { color: var(--c-accent); }

p { max-width: var(--measure); text-wrap: pretty; color: var(--c-text-muted); }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.center { text-align: center; margin-inline: auto; }

.skip-link {
  position: absolute; left: var(--space-s); top: -100px; z-index: 100;
  background: var(--c-navy); color: var(--c-on-dark);
  padding: var(--space-2xs) var(--space-s); border-radius: 8px;
}
.skip-link:focus { top: var(--space-s); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ico { width: 20px; height: 20px; flex: none; }
.ico--round {
  width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-on-dark);
}
.ico--line { width: 40px; height: 40px; color: var(--c-accent); stroke-width: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow .ico { width: 12px; height: 12px; stroke-width: 2; }

/* --- Gumbi -------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: 48px; padding: 0.65rem 1.4rem;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  font-size: 1rem; font-weight: 500; line-height: 1.2;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--c-accent); color: var(--c-on-dark); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--ghost { border-color: rgb(255 255 255 / 0.5); color: var(--c-on-dark); }
.btn--ghost:hover { border-color: var(--c-on-dark); background: rgb(255 255 255 / 0.08); }
.btn--line { border-color: var(--c-border-strong); color: var(--c-text); }
.btn--line:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* --- Logotip ------------------------------------------------------------------- */
/* logotip je slika (img/logo/, predlog 1 iz _izvor/logo/narisi.py); višina določa velikost */
.logo { display: inline-block; line-height: 0; }
.logo img { display: block; width: auto; height: clamp(3.5rem, 2.5rem + 2.8vw, 6rem); }
.site-footer .logo img { height: 2.25rem; }

/* --- Glava ------------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px var(--c-shadow); }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding-block: var(--space-xs); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: clamp(1.5rem, 1rem + 2vw, 3rem); font-size: 1.0625rem; font-weight: 500; }
.nav__list a { position: relative; display: block; padding-block: 0.4rem; color: var(--c-text); transition: color var(--dur) var(--ease); }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current] { color: var(--c-accent); }
.nav__list a:hover::after, .nav__list a[aria-current]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: grid; place-items: center;
    width: 46px; height: 46px; border: 1px solid var(--c-border-strong); border-radius: 10px;
  }
  .nav-toggle__bars { width: 20px; height: 1.5px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
    transition: transform var(--dur) var(--ease);
  }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch;
    padding: var(--space-2xs) var(--gutter) var(--space-m);
    background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: 0 12px 24px var(--c-shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav__list { flex-direction: column; gap: 0; }
  .js .nav__list a { padding-block: var(--space-xs); font-size: var(--fs-lg); border-bottom: 1px solid var(--c-border); }
  .js .nav__list a::after { display: none; }
}

/* --- Hero (fotografija, besedilo levo na temno modrem prelivu) -------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 64vh, 640px);
  display: grid; align-items: center;
  padding-block: calc(var(--space-3xl) + var(--hero-slant)) var(--space-3xl);
  background: var(--c-navy);
  --hero-slant: clamp(1.75rem, 0.75rem + 3.5vw, 4rem);
}
/* zgornji rob kot na podlagi stranke: mehka krivulja, levo nižje, desno višje,
   s tanko svetlo črto. Je zunaj .hero__bg, da se pri parallaxu ne premika. */
.hero__edge { position: absolute; inset: 0 0 auto 0; z-index: 1; width: 100%; height: var(--hero-slant); pointer-events: none; }
.hero__edge-fill { fill: var(--c-bg); }
.hero__edge-line { fill: none; stroke: var(--c-on-dark-accent); stroke-width: 2; stroke-opacity: 0.9; vector-effect: non-scaling-stroke; }
/* nad poševnim robom glava nima črte, ker bi bila ravna */
body:has(.hero) .site-header:not(.is-scrolled) { border-bottom-color: transparent; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 75% at 72% 50%, rgb(77 184 255 / 0.18), transparent 70%),
    linear-gradient(90deg, rgb(11 36 71 / 0.95) 0%, rgb(11 36 71 / 0.88) 42%, rgb(11 36 71 / 0.3) 72%, rgb(18 50 94 / 0.45) 100%);
}
.hero__inner { display: grid; justify-items: start; gap: var(--space-m); }
.hero__kicker { font-size: var(--fs-lg); color: var(--c-on-dark); font-weight: 500; }
.hero h1 { max-width: 22ch; color: var(--c-on-dark); }
.hero h1 .accent { color: var(--c-on-dark-accent); }
.hero__lead { font-size: var(--fs-lg); line-height: 1.55; max-width: 44ch; color: var(--c-on-dark-muted); }
.hero .btn-row { margin-top: var(--space-2xs); }

/* --- Sekcije ------------------------------------------------------------------- */
.section { padding-block: var(--space-section) 0; }
section[id] { scroll-margin-top: var(--header-h); }
.section--tint { padding-block: var(--space-xl); background: var(--c-tint); }
.section--first { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.section--tight { padding-top: var(--space-2xl); }
main > .section:last-child { padding-bottom: var(--space-section); }
.section__head { display: grid; gap: var(--space-xs); justify-items: start; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 44rem; }
.section__head.center { justify-items: center; text-align: center; margin-inline: auto; }

/* --- Kartice storitev ---------------------------------------------------------------- */
.cards { --gap: var(--space-m); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.card {
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-card);
  box-shadow: 0 2px 6px var(--c-shadow);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: 0 14px 32px rgb(15 30 51 / 0.12); border-color: var(--c-border-strong); }
.card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media img[src*="videonadzor"] { object-position: 30% 25%; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-m) var(--space-m) var(--space-m); }
.card__title { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--c-navy); }
.card__text { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-text-muted); }
.card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: var(--space-s); font-size: var(--fs-sm); font-weight: 600; color: var(--c-accent); white-space: nowrap; }
.card__more .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.card:hover .card__more .ico { transform: translateX(3px); }

/* --- Trak prednosti ---------------------------------------------------------------- */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-block: var(--space-m);
  border-block: 1px solid var(--c-border);
}
.perks li { display: flex; align-items: center; gap: var(--space-s); padding: var(--space-xs) var(--space-m); font-size: var(--fs-sm); line-height: 1.4; color: var(--c-text-muted); }
.perks li + li { border-left: 1px solid var(--c-border); }
.perks b { display: block; font-weight: 600; color: var(--c-text); font-size: 1rem; }

/* --- Znamke -------------------------------------------------------------------------- */
.brands { display: grid; justify-items: center; gap: var(--space-s); }
.brands__label { font-size: var(--fs-sm); color: var(--c-text-muted); }
.marquee {
  width: min(100%, 46rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee__track { display: flex; align-items: center; width: max-content; }
.marquee__track li { flex: none; padding-inline: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.marquee__track a { display: block; padding-block: var(--space-xs); color: #6b778a; transition: color 0.2s ease; }
.marquee__track a:hover, .marquee__track a:focus-visible { color: var(--c-navy); }
.brands__logo { display: block; width: auto; height: 1.75rem; }
.brands__logo--hikvision { height: 1.125rem; }
.brands__logo--policetech { height: 2rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__copy { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- O nas --------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.about__body { display: grid; gap: var(--space-s); justify-items: start; }
.about__body h2 { margin-bottom: var(--space-2xs); }
.about__who { display: grid; gap: var(--space-s); margin-top: var(--space-s); }
.about__who li { display: flex; gap: var(--space-s); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-text-muted); }
.about__who b { display: block; font-size: 1rem; font-weight: 600; color: var(--c-text); }
.about__who .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); }

/* --- Potek --------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-s); counter-reset: none; }
.steps li {
  display: grid; align-content: start; gap: var(--space-xs);
  padding: var(--space-l) var(--space-m);
  background: var(--c-tint); border-radius: var(--r-card);
}
.steps__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-xs);
  border-radius: 50%; background: var(--c-accent); color: var(--c-on-dark);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps p { font-size: var(--fs-sm); }

/* --- Vprašanja ----------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); align-items: start; }
.faq__item { border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-s);
  padding: var(--space-m); cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 500; color: var(--c-text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { width: 18px; height: 18px; color: var(--c-accent); transition: transform 0.35s var(--ease); }
.faq__item[open] summary .ico { transform: rotate(45deg); }
.faq__item p { padding: 0 var(--space-m) var(--space-m); font-size: var(--fs-sm); }

/* --- Kontakt ------------------------------------------------------------------------- */
.cta {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-xl); align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: var(--r-card);
  background: var(--c-navy);
}
.cta h2 { color: var(--c-on-dark); }
.cta__body { display: grid; gap: var(--space-s); }
.cta__body p { color: var(--c-on-dark-muted); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.contact__card {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-s); align-items: center;
  padding: var(--space-m);
  border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--r-inner);
  background: rgb(255 255 255 / 0.05);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact__card:last-child { grid-column: 1 / -1; }
.contact__card .ico { grid-row: span 2; }
.contact__card:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.3); }
.contact__name { font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.contact__value { font-size: var(--fs-lg); font-weight: 600; color: var(--c-on-dark); overflow-wrap: anywhere; }

/* --- Podstrani ----------------------------------------------------------------------- */
.page-hero { padding-top: clamp(2rem, 1.5rem + 3vw, 4rem); }
.page-hero .container { display: grid; gap: var(--space-s); justify-items: start; }
.page-hero h1 { max-width: 16ch; }
.page-hero__sub { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); line-height: 1.35; max-width: 34ch; color: var(--c-text); font-weight: 500; text-wrap: balance; }
.page-hero .hero__lead { font-size: var(--fs-lg); line-height: 1.6; max-width: 62ch; color: var(--c-text-muted); }
.page-hero .btn-row { margin-top: var(--space-2xs); }
.hero__tel { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); font-size: var(--fs-sm); color: var(--c-text-muted); }
.hero__tel a:hover { color: var(--c-accent); }
.page-hero__media { width: 100%; margin-top: var(--space-l); }
.page-hero__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-card); }
.page-hero__media img[src*="videonadzor"] { object-position: 35% 25%; }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); font-size: var(--fs-sm); color: var(--c-text-muted); }
.crumbs a:hover { color: var(--c-accent); }
.crumbs [aria-current] { color: var(--c-text); }

.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-s); }
.item {
  display: grid; align-content: start; gap: var(--space-m);
  padding: var(--space-m);
  border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg);
}
.item__num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-accent-soft); color: var(--c-accent); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums;
}
.item__text { display: grid; gap: var(--space-2xs); }
.item p { font-size: var(--fs-sm); }
.item--img { padding: 0; gap: 0; overflow: hidden; }
.item--img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.item--img .item__text { padding: var(--space-m); }
/* liho število: zadnja kartica čez celo širino */
.item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.item--img:last-child:nth-child(odd) { grid-template-columns: 1fr 1fr; align-items: center; }
.item--img:last-child:nth-child(odd) img { height: 100%; }
.item--img:last-child:nth-child(odd) .item__text { padding: var(--space-m) var(--space-l); }

.note {
  margin-top: var(--space-s); padding: var(--space-l) var(--space-m);
  border-left: 3px solid var(--c-accent); border-radius: var(--r-inner);
  background: var(--c-accent-soft);
  display: grid; gap: var(--space-2xs);
}
.note p { color: var(--c-text); }
.note__title { font-size: var(--fs-h3); line-height: 1.25; }

.other__title { font-size: var(--fs-h3); margin-bottom: var(--space-m); }
.other { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); }
.other__link {
  display: flex; align-items: center; gap: var(--space-s); min-height: 60px;
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--c-border); border-radius: var(--r-inner); background: var(--c-bg);
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.other__link .ico { color: var(--c-accent); }
.other__link span { flex: 1; }
.other__link .ico--arrow { width: 16px; color: var(--c-text-muted); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.other__link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.other__link:hover .ico--arrow { transform: translateX(3px); color: var(--c-accent); }

/* --- Noga ------------------------------------------------------------------------ */
.site-footer { background: var(--c-navy); color: var(--c-on-dark); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-xl); padding-top: var(--space-2xl); }
.footer__about { display: grid; gap: var(--space-m); align-content: start; justify-items: start; }
.footer__about p { font-size: var(--fs-sm); max-width: 34ch; color: var(--c-on-dark-muted); }
.footer__title { font-size: 1.0625rem; color: var(--c-on-dark); margin-bottom: var(--space-s); }
.footer__list { display: grid; gap: var(--space-2xs); font-size: var(--fs-sm); color: var(--c-on-dark-muted); line-height: var(--lh-base); }
.footer__list a:hover { color: var(--c-on-dark); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s);
  margin-top: var(--space-2xl); padding-block: var(--space-m) var(--space-l);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--fs-sm); color: var(--c-on-dark-muted);
}
.footer__bottom a { color: var(--c-on-dark); }

/* --- 404 -------------------------------------------------------------------------- */
.not-found { min-height: 70vh; display: grid; align-items: center; padding-block: var(--space-3xl); }
.not-found > div { display: grid; gap: var(--space-m); justify-items: start; }
.not-found h1 { max-width: 16ch; }
.not-found .hero__lead { font-size: var(--fs-lg); color: var(--c-text-muted); }

/* --- Odzivnost --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .card { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks li:nth-child(3) { border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .other { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .card { flex-basis: calc((100% - var(--gap)) / 2); }
  .about { grid-template-columns: 1fr; }
  .faq, .items { grid-template-columns: 1fr; }
  .item--img:last-child:nth-child(odd) { grid-template-columns: 1fr; }
  .item--img:last-child:nth-child(odd) .item__text { padding: var(--space-m); }
  .hero__bg::after { background: linear-gradient(180deg, rgb(11 36 71 / 0.6) 0%, rgb(11 36 71 / 0.85) 45%, rgb(11 36 71 / 0.8) 100%); }
}

@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .logo img { height: 2.1rem; }
  .hero { min-height: 0; padding-block: calc(var(--space-2xl) + var(--hero-slant)) var(--space-2xl); }
  .cards { --gap: var(--space-s); }
  .card { flex-basis: 100%; flex-direction: row; }
  .card__media { flex: 0 0 36%; aspect-ratio: auto; }
  .card__body { padding: var(--space-s); gap: var(--space-3xs); }
  .card__title { font-size: 0.9375rem; }
  .card__more { padding-top: var(--space-2xs); font-size: 0.875rem; }
  .perks { grid-template-columns: 1fr; padding-block: var(--space-2xs); }
  .perks li { padding-inline: 0; }
  .perks li + li { border-left: 0; border-top: 1px solid var(--c-border); }
  .steps, .contact, .other, .footer__grid { grid-template-columns: 1fr; }
  .contact__card { padding: var(--space-s); }
  .contact__value { font-size: 1.0625rem; }
  .btn-row { width: 100%; }
  .btn-row .btn { width: 100%; }
  .page-hero__media img { aspect-ratio: 4 / 3; }
}

/* --- Animacije: začetna stanja ---------------------------------------------------------
   Razred .anim doda <head> skripta samo, če animacije lahko tečejo.               */
.anim [data-reveal],
.anim [data-hero],
.anim [data-hero-img],
.anim [data-stagger] > * { opacity: 0; }
.anim [data-hero-words] { visibility: hidden; }
.anim [data-hero-bg] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
