:root {
  --ink: #0f1720;
  --ink-2: #1a2430;
  --text: #2a3440;
  --muted: #5d6875;
  --line: #e4e7eb;
  --bg: #fbfaf8;
  --tint: #f2f0ec;
  --card: #ffffff;
  --brand: #2f6db5;
  --brand-dark: #23558f;
  --candle: #e8a33d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 32, .04), 0 8px 24px -8px rgba(15, 23, 32, .12);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 32px; } }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}

/* ---------- Glava ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: rgba(251, 250, 248, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 32, .25); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(15, 23, 32, .06); color: var(--ink); }
.nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--brand); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; position: relative; width: 44px; height: 44px; cursor: pointer; }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: ""; position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px;
    background: var(--ink); transition: transform .25s, opacity .25s;
  }
  .nav-toggle-label span { top: 21px; }
  .nav-toggle-label span::before { left: 0; top: -7px; }
  .nav-toggle-label span::after { left: 0; top: 7px; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--brand); border-radius: 8px; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -18px rgba(15, 23, 32, .35);
    display: none;
  }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding: 140px 0 96px;
  background: var(--ink); color: #e9edf2;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 23, 32, .96) 0%, rgba(15, 23, 32, .82) 42%, rgba(15, 23, 32, .25) 100%),
    linear-gradient(0deg, rgba(15, 23, 32, .9) 0%, rgba(15, 23, 32, 0) 35%),
    url("images/bg.jpg") 70% center / cover no-repeat;
}
.hero-bg::after {
  /* topel sij sveče */
  content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(232, 163, 61, .22), transparent 65%);
}
.hero-inner { max-width: var(--max); width: 100%; }
.hero .eyebrow { color: var(--candle); }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(40px, 6.4vw, 76px);
  color: #fff;
}
.hero h1 em { font-style: italic; color: #c9d6e6; }
.hero-sub { max-width: 540px; margin: 26px 0 38px; font-size: clamp(17px, 1.6vw, 19px); color: #b9c3ce; }

.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn.btn-lg { padding: 17px 30px; font-size: 18px; box-shadow: 0 12px 32px -12px rgba(232, 163, 61, .7); }
.btn.btn-ghost { background: transparent; color: #e9edf2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hero-note { margin: 20px 0 0; font-size: 14px; color: #8794a1; letter-spacing: .02em; }

/* ---------- Sekcije ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.tinted { background: var(--tint); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); }
.lead { margin: 18px 0 0; font-size: 18px; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: #eaf1fa; color: var(--brand);
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Kako deluje */
.split { display: grid; gap: 56px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.step-link { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.steps li:first-child { background: #fff; border-color: rgba(47, 109, 181, .35); box-shadow: var(--shadow); }

.device { margin: 0; position: relative; }
.device::before {
  content: ""; position: absolute; inset: 8% 4% 4%; z-index: 0; border-radius: 40px;
  background: radial-gradient(circle at 50% 40%, rgba(47, 109, 181, .22), transparent 70%);
  filter: blur(20px);
}
.device img { position: relative; width: min(88%, 440px); margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(15, 23, 32, .25)); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .device img { width: min(70%, 360px); }
}

/* Pokritost */
.map-card { margin: 0; padding: clamp(16px, 4vw, 48px); }
.map-card img { width: 100%; }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 24px; padding: 32px clamp(24px, 4vw, 44px); border-radius: var(--radius);
  background: var(--ink); color: #b9c3ce;
}
.cta h3 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.cta p { margin: 8px 0 0; max-width: 620px; }
.cta a:not(.btn) { color: #fff; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--candle); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #f1b55a; color: var(--ink); transform: translateY(-2px); }

/* Kontakt */
.section.dark { background: var(--ink); }
.section.dark h2 { color: #fff; }
.section.dark .eyebrow { color: var(--candle); }
.contacts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact {
  display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: var(--ink-2); border-color: rgba(255, 255, 255, .08); box-shadow: none;
  color: #e9edf2; text-decoration: none; transition: border-color .2s, transform .2s;
}
.contact .icon { margin-bottom: 14px; background: rgba(255, 255, 255, .06); color: var(--candle); }
a.contact:hover { color: #fff; border-color: rgba(232, 163, 61, .5); transform: translateY(-3px); }
.contact-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8794a1; }
.contact-value { font-size: 18px; line-height: 1.5; }

/* Noga */
.footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08); color: #8794a1; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 26px; }
.footer a { color: #b9c3ce; text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Animacije ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding: 120px 0 72px; }
  .hero-bg {
    background:
      linear-gradient(0deg, rgba(15, 23, 32, .97) 30%, rgba(15, 23, 32, .55) 100%),
      url("images/bg.jpg") 72% center / cover no-repeat;
  }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
}
