/* =========================================================
   Auto škola Leptir — čist HTML/CSS
   Boje i oblici dolaze iz logoa: teget + plava + leptir.
   ========================================================= */

/* ---------- Design tokeni ---------- */
:root {
  --navy-950: #031127;
  --navy: #052147;          /* teget iz logoa */
  --navy-700: #0b3168;
  --navy-600: #124389;
  --blue: #0d9aec;          /* plava iz logoa (leptir, linije) */
  --blue-600: #0a7fd0;
  --blue-700: #0868ad;
  --blue-50: #ecf6fe;
  --blue-100: #d6ecfd;
  --amber: #ffb81c;         /* samo za akciju */
  --amber-50: #fff6e0;

  --ink: #0a1a33;
  --text: #33415c;
  --muted: #64748b;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --white: #ffffff;

  --grad: linear-gradient(135deg, #0d9aec 0%, #1f6fe5 100%);
  --grad-navy: linear-gradient(155deg, #031127 0%, #052147 45%, #0b3168 100%);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 20px rgba(5, 33, 71, .06);
  --shadow: 0 18px 50px rgba(5, 33, 71, .10);
  --shadow-lg: 0 30px 80px rgba(5, 33, 71, .22);
  --shadow-blue: 0 14px 34px rgba(13, 154, 236, .32);
  --header-h: 82px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .3s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font);
  margin: 0 0 .45em;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.7rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--gray { background: var(--bg-soft); }
.section--dark { background: var(--grad-navy); color: #c9d6ea; overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }
.section-cta { margin-top: 48px; text-align: center; }

/* ---------- Scroll-reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Eyebrow / naslovi sekcija ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 7px 14px 7px 10px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 18px;
  background: url("../assets/img/favicon-32.png") center / contain no-repeat;
}
.section--dark .eyebrow, .eyebrow--light {
  color: #bfe4ff;
  background: rgba(13, 154, 236, .14);
  border-color: rgba(13, 154, 236, .35);
}
.section-head { max-width: 740px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.section--dark .section-head p { color: #b9c8df; }
/* linkovi unutar teksta (bazno a { color: inherit } bi ih sakrio) */
main p > a:not(.btn), main .doc-list li > a:not(.btn), main .check-list li > a:not(.btn),
main .faq-a .inner a:not(.btn), main .form-hint a:not(.btn), main .contact-info-card p a:not(.btn), .text-link {
  color: var(--blue-600); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color var(--t);
}
main p > a:not(.btn):hover, main .doc-list li > a:not(.btn):hover, main .faq-a .inner a:not(.btn):hover,
main .form-hint a:not(.btn):hover, main .contact-info-card p a:not(.btn):hover, .text-link:hover { color: var(--navy); }
.section--dark p > a:not(.btn), .drivers-box p > a:not(.btn), .benefit--feature p > a:not(.btn), .side-call p > a:not(.btn), .course-cover p > a:not(.btn) { color: #7cc8ff; }
.text-grad {
  background: linear-gradient(90deg, #39b2ff, #7cc8ff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: var(--white); box-shadow: var(--shadow-blue); }
.btn--primary:hover { box-shadow: 0 18px 40px rgba(13, 154, 236, .45); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--blue-50); }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.btn .arrow { font-size: 1.1em; line-height: 1; transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(227, 233, 242, .8);
  transition: transform .45s var(--ease), box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(5, 33, 71, .08); background: rgba(255, 255, 255, .95); }
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { height: 56px; width: 56px; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text small { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); }
.logo-text strong { font-size: 1.28rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block;
  font-weight: 600;
  font-size: .98rem;
  padding: 9px 15px;
  border-radius: 50px;
  color: var(--ink);
  transition: color var(--t), background var(--t);
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav .active > a { color: var(--blue-700); background: var(--blue-50); }
/* dropdown */
.has-drop { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.has-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; }
/* CTA u meniju vidljiv samo na mobilnom (pali ga media upit ispod) */
.main-nav .nav-cta { display: none; }
.header-call { padding: 12px 20px; font-size: .95rem; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: var(--blue-50);
  border: 0;
  border-radius: 12px;
  padding: 0 11px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: var(--t); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  background: var(--grad-navy);
  color: #c9d6ea;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
}
.hero::before { width: 720px; height: 720px; right: -180px; top: -260px; background: radial-gradient(circle, rgba(13, 154, 236, .38), transparent 65%); }
.hero::after { width: 560px; height: 560px; left: -220px; bottom: -300px; background: radial-gradient(circle, rgba(31, 111, 229, .32), transparent 65%); }
.hero-lines {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 56px;
  padding: 84px 24px 96px;
}
.hero-content { max-width: 620px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.h1-kicker { display: block; margin-bottom: 14px; color: #b9c8df; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.hero p.lead { font-size: 1.16rem; color: #c3d2e8; margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .95rem; font-weight: 600; color: #dbe7f7;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ok {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(13, 154, 236, .22); color: #6cc6ff;
  display: grid; place-items: center; font-size: .75rem;
}

.hero-media { position: relative; padding: 10px 30px 30px 40px; }
.hero-frame {
  position: relative;
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  max-width: 430px;
  margin-left: auto;
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 30% 30%;
  border-radius: 22px;
}
.hero-chip {
  position: absolute;
  z-index: 3;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex; gap: 12px; align-items: center;
}
.hero-chip strong { display: block; font-size: .98rem; line-height: 1.25; color: var(--ink); }
.hero-chip span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.hero-chip--rating { left: 0; bottom: 70px; }
.hero-chip--rating .g { width: 34px; height: 34px; }
.hero-chip--rating .stars { color: var(--amber); letter-spacing: 1px; font-size: .85rem; }
.hero-chip--price {
  right: 0; top: 34px;
  flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--amber);
}
.hero-chip--price .tag { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.hero-chip--price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.hero-chip--price span { color: var(--navy); font-weight: 600; }
.hero-fly {
  position: absolute; z-index: 4;
  width: 86px; top: -18px; left: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-fly { animation: fly-float 6s ease-in-out infinite; }
  .hero-chip--price { animation: chip-float 7s ease-in-out infinite; }
  .hero-chip--rating { animation: chip-float 8s ease-in-out -2s infinite; }
}
@keyframes fly-float {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(8px, -12px) rotate(4deg); }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===========================================================
   TRAKA ČINJENICA / GOOGLE OCENA (ispod hero-a)
   =========================================================== */
.facts-bar { position: relative; z-index: 5; margin-top: -44px; }
.facts-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact { display: flex; gap: 14px; align-items: center; padding: 24px 26px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .ico {
  flex: 0 0 48px; height: 48px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center;
}
.fact .ico svg { width: 24px; height: 24px; }
.fact strong { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.fact span { font-size: .86rem; color: var(--muted); line-height: 1.35; display: block; }

/* ===========================================================
   AKCIJA
   =========================================================== */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.promo-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.promo-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.promo-media figure:nth-child(2) { margin-top: 48px; }
.promo-media img { width: 100%; aspect-ratio: 912 / 985; object-fit: cover; transition: transform .6s var(--ease); }
.promo-media a:hover img { transform: scale(1.04); }
.price-big {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.04em;
  color: var(--navy); line-height: 1; margin: 6px 0 14px;
}
.price-big small { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; color: var(--blue-600); }
.badge-amber {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber); color: var(--navy);
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 50px; margin-bottom: 14px;
}
.check-list { display: grid; gap: 12px; margin: 22px 0 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list li::before {
  content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: 1px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Rezultati sa ispita (početna, #rezultati) ---------- */
.results-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; margin: 0 auto 44px; }
.result-stat {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 20px 18px; text-align: center;
}
.result-stat strong { display: block; color: var(--white); font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.result-stat strong em { color: var(--amber); font-style: normal; }
.result-stat span { display: block; margin-top: 6px; color: #b9c8df; font-size: .95rem; }
/* kolone u odnosu širina/visina slika, da obe budu iste visine */
.results-media { display: grid; grid-template-columns: 1190fr 750fr; gap: 20px; align-items: start; max-width: 1040px; margin: 0 auto; }
.results-media:has(> figure:only-child) { grid-template-columns: minmax(0, 480px); justify-content: center; }
.results-media figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); cursor: zoom-in;
}
.results-media img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.results-media figure:hover img { transform: scale(1.03); }
.section-cta.btn-row { justify-content: center; }

/* ===========================================================
   O NAMA
   =========================================================== */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; isolation: isolate; }
.about-media > img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1125 / 820; object-fit: cover; box-shadow: var(--shadow); }
.about-media::before {
  content: ""; position: absolute; z-index: -1;
  inset: 26px -18px -18px 26px; border-radius: var(--radius-lg);
  background: var(--grad); opacity: .14;
}
.about-badge {
  position: absolute;
  right: -14px; bottom: -22px;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
}
.about-badge .big { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.about-badge .stars { color: var(--amber); font-size: .85rem; letter-spacing: 1px; }
.about-badge small { display: block; color: #b9c8df; font-size: .8rem; }
.about-address {
  position: absolute; left: 18px; top: 18px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 50px; padding: 8px 16px 8px 10px;
  font-size: .88rem; font-weight: 700; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm);
}
.about-address .pin { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.feature-list { display: grid; gap: 22px; margin: 28px 0 32px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .ico {
  flex: 0 0 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
  border-radius: 14px;
}
.feature-item .ico svg { width: 26px; height: 26px; }
.feature-item h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature-item p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ===========================================================
   KARTICE OBUKE
   =========================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 34px 30px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.course-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.course-card:hover::after { transform: scaleX(1); }
.course-card .icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-blue); margin-bottom: 8px;
}
.course-card .icon svg { width: 32px; height: 32px; }
.course-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; margin: -14px -10px 6px; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .thumb img { transform: scale(1.05); }
.course-card .body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card h3 { margin: 0; }
.course-card p { color: var(--muted); margin: 0; font-size: .97rem; flex: 1; }
.course-card .more {
  font-weight: 700; color: var(--blue-600);
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  transition: gap var(--t), color var(--t);
}
.course-card .more:hover { color: var(--navy); gap: 14px; }
.course-card .more::after { content: ""; position: absolute; inset: 0; }

/* ===========================================================
   KAKO FUNKCIONIŠE
   =========================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.steps-grid::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-100) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step .num {
  width: 68px; height: 68px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue-100);
  color: var(--blue-600); font-weight: 800; font-size: 1.25rem;
  display: grid; place-items: center; position: relative; z-index: 1;
  box-shadow: 0 0 0 8px var(--white);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.section--gray .step .num { box-shadow: 0 0 0 8px var(--bg-soft); }
.step:hover .num { background: var(--grad); color: #fff; border-color: transparent; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===========================================================
   PREDNOSTI
   =========================================================== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit {
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.benefit .ico {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 18px;
}
.benefit .ico svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.18rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .96rem; }
.benefit--feature { background: var(--grad-navy); border-color: transparent; color: #c9d6ea; }
.benefit--feature h3 { color: #fff; }
.benefit--feature p { color: #b9c8df; }
.benefit--feature .ico { background: rgba(13, 154, 236, .2); color: #7cc8ff; }
.benefit--feature::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px;
  background: url("../assets/img/leptir-256.webp") center / contain no-repeat; opacity: .16; transform: rotate(-14deg);
}

/* ===========================================================
   CENE
   =========================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured {
  background: var(--grad-navy);
  color: #c9d6ea;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
  content: "Najvažniji deo obuke";
  position: absolute; top: -14px; left: 30px;
  background: var(--grad); color: #fff;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; box-shadow: var(--shadow-blue);
}
.price-card.featured h3, .price-card.featured .amount { color: var(--white); }
.price-card h3 { font-size: 1.25rem; }
.price-card .desc { color: var(--muted); font-size: .93rem; min-height: 64px; }
.price-card.featured .desc { color: #b9c8df; }
.price-card .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin: 10px 0 20px; line-height: 1; }
.price-card .amount small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--blue-600); }
.price-card.featured .amount small { color: #7cc8ff; }
.price-list { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; align-content: start; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.price-list li::before { content: "✓"; color: var(--blue); font-weight: 800; }
.price-card .btn { width: 100%; }
.price-note {
  margin-top: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--amber-50);
  border: 1px solid #ffe3a3;
  border-radius: var(--radius);
  padding: 24px 30px;
  color: var(--ink);
}
.price-note p { margin: 0; font-weight: 500; }
.price-note strong { font-weight: 800; color: var(--navy); }

/* stavke sa cenom desno (dodatni časovi) */
.price-list--rows { gap: 0; }
.price-list--rows li {
  justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.price-list--rows li:last-child { border-bottom: 0; }
.price-list--rows li::before { display: none; }
.price-list--rows b { color: var(--navy); font-weight: 800; white-space: nowrap; }

/* zbir: 16.000 + 5.000 + 62.000 + 5.000 = 88.000 */
.price-total {
  margin-top: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.pt-items { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.pt-item { display: flex; flex-direction: column; line-height: 1.2; }
.pt-item span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pt-item strong { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pt-op { font-size: 1.4rem; font-weight: 700; color: var(--blue); }
.pt-sum {
  background: var(--grad); color: #fff; border-radius: 16px; padding: 12px 20px; box-shadow: var(--shadow-blue);
}
.pt-sum span { color: rgba(255, 255, 255, .85); }
.pt-sum strong { color: #fff; font-size: 1.55rem; }
.pt-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }

/* časovi za one koji nisu kandidati */
.drivers-box {
  margin-top: 34px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
  background: var(--grad-navy); color: #c9d6ea;
  border-radius: var(--radius-lg); padding: 40px;
  position: relative; overflow: hidden; isolation: isolate;
}
.drivers-box::after {
  content: ""; position: absolute; z-index: -1; right: -40px; top: -50px; width: 200px; height: 200px;
  background: url("../assets/img/leptir-256.webp") center / contain no-repeat; opacity: .12; transform: rotate(18deg);
}
.drivers-box h3 { color: #fff; font-size: 1.5rem; }
.drivers-box p { color: #b9c8df; }
.drivers-prices { display: grid; gap: 10px; }
.drivers-prices li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 14px 18px;
}
.drivers-prices span { color: #dbe7f7; font-weight: 600; }
.drivers-prices strong { color: #fff; font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.drivers-prices li:last-child { background: rgba(13, 154, 236, .2); border-color: rgba(13, 154, 236, .45); }
@media (max-width: 992px) { .drivers-box { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .drivers-box { padding: 28px 20px; }
  .price-total { padding: 20px; }
  .pt-items { justify-content: flex-start; }
  .pt-op { display: none; }
  .pt-item { flex: 1 1 40%; }
  .pt-sum { flex-basis: 100%; }
}

/* ===========================================================
   GOOGLE RECENZIJE
   =========================================================== */
.reviews-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 40px;
}
.rating-score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rating-score img { width: 46px; height: 46px; }
.rating-score .num { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.rating-score .stars { color: var(--amber); font-size: 1.15rem; letter-spacing: 2px; }
.rating-score small { display: block; color: var(--muted); font-size: .9rem; }
.stars { color: var(--amber); letter-spacing: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.review-card.review-card--more {
  background: var(--grad-navy); border-color: transparent; color: #c9d6ea;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.review-card--more .big { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.review-card--more span { font-size: .9rem; }
.review-card--more .go { font-weight: 700; color: #7cc8ff; }
.review-card--more::after { content: ""; position: absolute; inset: 0; }
.review-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform var(--t), box-shadow var(--t);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card .g { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; }
.review-card .av {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 14px; font-size: 1.1rem;
}
.review-card .name { font-weight: 700; color: var(--ink); }
.review-card .stars { font-size: .95rem; margin: 2px 0 4px; }
.review-card .src { font-size: .8rem; color: var(--muted); }

/* ===========================================================
   KONTAKT CTA blok
   =========================================================== */
.contact-cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; }
.contact-feature { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-feature .ico {
  flex: 0 0 52px; height: 52px; border-radius: 14px;
  background: rgba(13, 154, 236, .18); color: #7cc8ff;
  display: grid; place-items: center;
}
.contact-feature .ico svg { width: 24px; height: 24px; }
.contact-feature h3 { margin-bottom: 4px; font-size: 1.12rem; }
.contact-feature p { margin: 0; color: #b9c8df; }
.call-box {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.call-box::before {
  content: ""; position: absolute; top: -40px; right: -24px; width: 110px; height: 110px;
  background: url("../assets/img/leptir-256.webp") center / contain no-repeat;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .3)); transform: rotate(12deg);
}
.call-box h3 { color: var(--ink); }
.call-box p { color: var(--muted); }
.call-box .phone { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy); display: block; margin: 8px 0 22px; }
.call-box .btn { width: 100%; }
.call-box .btn + .btn { margin-top: 10px; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-side .section-head { margin-bottom: 0; }
.faq-side .side-help {
  margin-top: 26px; padding: 26px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.faq-side .side-help strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.faq-side .side-help p { color: var(--muted); font-size: .95rem; }
.faq-media > img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq-list { min-width: 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item.open { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
.faq-q .sign {
  flex: 0 0 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); border-radius: 50%;
  font-size: 1.25rem; font-weight: 600; transition: transform var(--t), background var(--t), color var(--t);
}
.faq-item.open .faq-q .sign { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--muted); }
.faq-a .inner { padding: 0 22px 20px; }

/* ===========================================================
   PAGE HERO (podstranice)
   =========================================================== */
.page-hero {
  position: relative;
  background: var(--grad-navy);
  color: #c9d6ea;
  padding: 84px 0 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(13, 154, 236, .35), transparent 65%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; left: 7%; bottom: 18px;
  background: url("../assets/img/leptir-256.webp") center / contain no-repeat; opacity: .22; transform: rotate(-16deg);
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { max-width: 640px; margin: 0 auto 14px; color: #c3d2e8; }
.breadcrumb { color: #7cc8ff; font-size: .95rem; font-weight: 600; }
.breadcrumb a { color: #c3d2e8; }
.breadcrumb a:hover { color: #fff; }

/* ===========================================================
   GALERIJA
   =========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
  gap: 20px;
}
/* tačno 4 slike: 2x2 umesto 3+1 */
.gallery-grid:has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; }
.gallery-grid figure {
  margin: 0;
  align-self: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative; cursor: zoom-in;
  background: var(--white);
}
.gallery-grid img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(5, 33, 71, .55), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-grid figure::after {
  content: "+"; position: absolute; z-index: 2; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 400; line-height: 1;
  opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease;
}
.gallery-grid figure:hover::before { opacity: 1; }
.gallery-grid figure:hover::after { opacity: 1; transform: scale(1); }
.gallery-grid figcaption {
  position: absolute; z-index: 2; left: 18px; bottom: 18px; right: 72px;
  color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: none; }
.gallery-note {
  margin-top: 40px; text-align: center; color: var(--muted);
  padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- Dugme "na vrh" ---------- */
.to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 900;
  width: 50px; height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .25s ease, color .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy); color: #fff; }

/* ---------- Plutajuće dugme za poziv (mobilni) ---------- */
.mobile-call {
  display: none;
  position: fixed; left: 16px; bottom: 16px; z-index: 940;
  background: var(--grad); color: #fff;
  font-weight: 800; padding: 14px 20px; border-radius: 50px;
  box-shadow: var(--shadow-blue);
  align-items: center; gap: 8px;
}
.mobile-call svg { width: 18px; height: 18px; }
body.menu-open .mobile-call, body.menu-open .chat-launcher, body.menu-open .to-top { display: none; }

/* ---------- CHATBOT ---------- */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 950;
  width: 62px; height: 62px; border: 0; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-blue);
  transition: transform .25s ease;
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.04); }
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher .badge {
  position: absolute; top: 0; right: 0; width: 16px; height: 16px;
  background: #22c55e; border: 2px solid #fff; border-radius: 50%;
}
.chat-launcher.hidden { display: none; }
.chat-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 951;
  width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 48px);
  background: var(--white); border-radius: 22px;
  box-shadow: 0 24px 70px rgba(3, 17, 39, .35);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.98); transform-origin: bottom right;
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head { background: var(--grad-navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head .av {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  background: #fff url("../assets/img/favicon-192.png") center / 30px no-repeat;
}
.chat-head .t { flex: 1; line-height: 1.2; }
.chat-head .t strong { display: block; font-size: 1rem; }
.chat-head .t span { font-size: .78rem; color: #b9f5c4; display: inline-flex; align-items: center; gap: 5px; }
.chat-head .t span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.chat-close {
  background: rgba(255, 255, 255, .12); border: 0; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
}
.chat-close:hover { background: rgba(255, 255, 255, .25); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.chat-msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb3cc; animation: chat-bounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--bg-soft); }
.chat-suggest button {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: 7px 12px; border-radius: 50px; font-size: .8rem;
  transition: background .2s ease, border-color .2s ease;
}
.chat-suggest button:hover { background: var(--blue-50); border-color: var(--blue-100); }
.chat-input { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 50px; padding: 11px 16px;
  font-family: inherit; font-size: 16px; background: var(--bg-soft); color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--blue); background: #fff; }
.chat-input button {
  flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 1.2rem; display: grid; place-items: center;
}
.chat-input button:disabled { opacity: .5; cursor: default; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 30px;
  background: rgba(3, 17, 39, .93);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lb-img {
  max-width: 90vw; max-height: 80vh; width: auto; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); object-fit: contain;
  transform: scale(.94); transition: transform .35s var(--ease);
}
.lightbox.open .lb-img { transform: scale(1); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; border-radius: 50%; display: grid; place-items: center; line-height: 1;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; color: var(--navy); }
.lb-close { top: 22px; right: 26px; width: 48px; height: 48px; font-size: 2rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.4rem; }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(255, 255, 255, .12); padding: 6px 16px; border-radius: 50px; font-size: .9rem;
}

/* ---------- PROMO POPUP ---------- */
.promo-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 20px; }
.promo-modal.is-open { display: flex; }
.promo-backdrop {
  position: absolute; inset: 0; background: rgba(3, 17, 39, .8);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: promoFade .3s ease both;
}
.promo-dialog { position: relative; z-index: 1; max-width: min(420px, 100%); animation: promoPop .45s cubic-bezier(.2, .85, .3, 1.15) both; }
.promo-link { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.promo-dialog img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.promo-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 14px 30px; border-radius: 999px; box-shadow: var(--shadow-blue);
  transition: transform .2s ease;
}
.promo-link:hover .promo-cta { transform: translateY(-2px); }
.promo-close {
  position: absolute; top: -16px; right: -16px; width: 42px; height: 42px; border-radius: 50%;
  border: none; background: #fff; color: var(--navy); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .2s ease; z-index: 2;
}
.promo-close:hover { transform: scale(1.1) rotate(90deg); }
@keyframes promoFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes promoPop { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

/* ===========================================================
   KONTAKT stranica
   =========================================================== */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.contact-info-grid:last-child { margin-bottom: 0; }
.contact-info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-info-card .ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-blue);
}
.contact-info-card .ico svg { width: 28px; height: 28px; }
.contact-info-card h3 { font-size: 1.08rem; }
.contact-info-card .val { font-size: 1.22rem; font-weight: 800; color: var(--navy); word-break: break-word; display: block; }
.contact-info-card p { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-sm);
}
.contact-form h2 { font-size: 1.7rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 16px; background: var(--bg-soft); color: var(--ink);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(13, 154, 236, .14);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 14px; padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-status.ok { display: block; background: #e8f8ee; color: #166534; border: 1px solid #bbe7c9; }
.form-status.err { display: block; background: #fdecec; color: #991b1b; border: 1px solid #f5c2c2; }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.nojs-status { display: none; margin-top: 14px; padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; scroll-margin-top: 140px; }
.nojs-status:target { display: block; }
.nojs-status--ok { background: #e8f8ee; color: #166534; border: 1px solid #bbe7c9; }
.nojs-status--err { background: #fdecec; color: #991b1b; border: 1px solid #f5c2c2; }
.js .nojs-status { display: none !important; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 440px; height: 100%; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* ===========================================================
   PODSTRANICE OBUKE
   =========================================================== */
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: 54px; align-items: start; }
.course-main img.cover { border-radius: var(--radius-lg); margin-bottom: 30px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.course-cover {
  border-radius: var(--radius-lg); margin-bottom: 34px; padding: 40px;
  background: var(--grad-navy); color: #c9d6ea; position: relative; overflow: hidden;
  display: flex; gap: 24px; align-items: center;
}
.course-cover .icon {
  flex: 0 0 84px; height: 84px; border-radius: 22px; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-blue);
}
.course-cover .icon svg { width: 42px; height: 42px; }
.course-cover h2 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.course-cover p { margin: 0; color: #b9c8df; }
.course-cover::after {
  content: ""; position: absolute; right: -24px; bottom: -28px; width: 150px; height: 150px;
  background: url("../assets/img/leptir-256.webp") center / contain no-repeat; opacity: .18; transform: rotate(-12deg);
}
.course-main h2 { margin-top: 40px; }
.course-main .course-cover h2 { margin-top: 0; }
.course-main > p { color: var(--text); }
.unique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.unique-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.unique-card .ico {
  width: 50px; height: 50px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 14px;
}
.unique-card .ico svg { width: 24px; height: 24px; }
.unique-card h3 { font-size: 1.08rem; }
.unique-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.audience-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--white); }
.audience-card .num { font-weight: 800; font-size: 1.9rem; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.audience-card h3 { font-size: 1.08rem; }
.audience-card p { color: var(--muted); font-size: .93rem; }
.audience-card .tag { font-weight: 700; color: var(--navy); font-size: .88rem; }
.course-main > h3 { margin-top: 26px; margin-bottom: 4px; font-size: 1.18rem; }
.doc-list { list-style: none; display: grid; gap: 12px; margin: 18px 0 6px; padding: 0; }
.doc-list li { position: relative; padding-left: 28px; color: var(--text); line-height: 1.6; }
.doc-list li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 3px; background: var(--blue);
}
.doc-list--check li { padding-left: 36px; }
.doc-list--check li::before {
  content: "\2713"; left: 0; top: .12em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600); font-size: .8rem; font-weight: 800;
  display: grid; place-items: center;
}
.course-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.course-sidebar > div { margin-bottom: 22px; }
.side-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.side-box h3 { font-size: 1.1rem; margin-bottom: 16px; }
.side-courses li { margin-bottom: 10px; }
.side-courses a {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font-weight: 600; color: var(--ink); transition: var(--t);
}
.side-courses a:hover, .side-courses a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.side-call { background: var(--grad-navy); color: #c9d6ea; border-radius: var(--radius); padding: 30px; text-align: center; }
.side-call h3 { color: #fff; }
.side-call .phone { font-size: 1.5rem; font-weight: 800; color: #fff; display: block; margin: 6px 0 16px; }
.side-cta { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 30px; text-align: center; }
.side-cta h3 { color: var(--ink); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--navy-950); color: #a9b8cf; padding: 80px 0 0; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 154, 236, .18), transparent 65%);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr .9fr 1.2fr; gap: 44px; padding-bottom: 56px; position: relative; }
.footer-grid h3 { color: #fff; font-size: 1.08rem; margin-bottom: 20px; }
.site-footer p { color: #a9b8cf; font-size: .95rem; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small { color: #7cc8ff; }
.footer-contact { display: grid; gap: 10px; margin-top: 6px; font-size: .95rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; color: #dbe7f7; }
.footer-contact a:hover { color: #7cc8ff; }
.footer-contact svg { width: 18px; height: 18px; color: #7cc8ff; flex: 0 0 18px; }
.footer-hours li {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .95rem; white-space: nowrap;
}
.footer-hours li:last-child { border-bottom: 0; }
.footer-hours li span:first-child { color: #c9d6ea; }
.footer-hours li span:last-child { color: #7cc8ff; font-weight: 700; }
.footer-links li { margin-bottom: 8px; }
.footer-loc { min-width: 0; }
.footer-links a { color: #c9d6ea; transition: color var(--t); }
.footer-links a:hover { color: #7cc8ff; }
.footer-map {
  display: block; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid rgba(255, 255, 255, .12); margin-top: 4px;
}
.footer-map img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .85; transition: opacity var(--t), transform .6s var(--ease); }
.footer-map:hover img { opacity: 1; transform: scale(1.03); }
.footer-map span {
  position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--navy);
  font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 50px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 22px; padding-bottom: 22px; font-size: .88rem; color: #7f90aa;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
.footer-bottom a { color: #7cc8ff; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
  .main-nav a { padding: 9px 11px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 90px; }
  .hero-media { max-width: 520px; margin: 0 auto; padding: 10px 24px 20px 24px; }
  .hero-frame { margin: 0 auto; }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .promo-grid, .about-grid, .faq-grid, .contact-cta-grid, .contact-form-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq-side { position: static; }
  .cards-grid, .benefits-grid, .pricing-grid, .gallery-grid, .contact-info-grid, .audience-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps-grid::before { display: none; }
  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-badge { right: 12px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); right: 0;
    width: min(340px, 88vw);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #fff;
    box-shadow: -10px 0 40px rgba(5, 33, 71, .15);
    transform: translateX(105%);
    transition: transform var(--t);
    padding: 20px;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 13px 14px; border-radius: 12px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .has-drop.open-drop .dropdown { display: block; }
  .has-drop::after { display: none; }
  .header-actions .header-call { display: none; }
  .main-nav .nav-cta { display: flex; width: 100%; margin-top: 16px; padding: 15px 28px; color: #fff; }
  .main-nav .nav-cta:hover { color: #fff; background: var(--grad); }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .results-stats { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; }
  .result-stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; text-align: left; }
  .result-stat strong { flex: 0 0 auto; font-size: 1.25rem; }
  .result-stat span { margin-top: 0; font-size: .92rem; }
  .results-media { grid-template-columns: 1fr; gap: 16px; }
  .container { padding: 0 16px; }
  .hero-grid { padding: 44px 16px 84px; }
  .logo img { height: 48px; width: 48px; }
  .logo-text strong { font-size: 1.12rem; }
  .cards-grid, .steps-grid, .benefits-grid, .pricing-grid, .gallery-grid,
  .contact-info-grid, .audience-grid, .unique-grid, .form-row { grid-template-columns: 1fr; }
  .gallery-grid:has(> figure:nth-child(4):last-child) { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
  .fact + .fact { border-left: 0; border-top: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact .ico { flex: 0 0 auto; width: 42px; height: 42px; }
  .footer-bottom { padding-bottom: 96px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .promo-media figure:nth-child(2) { margin-top: 28px; }
  .hero-chip--rating { bottom: 30px; }
  .hero-chip--price { top: 14px; }
  .hero-chip--price strong { font-size: 1.3rem; }
  .hero-fly { width: 64px; }
  .contact-form { padding: 26px 20px; }
  .call-box { padding: 36px 24px; }
  .course-cover { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .course-cover .icon { width: 84px; height: 84px; flex: 0 0 auto; }
  .form-row { gap: 0; }
  .price-card.featured { margin-top: 10px; }
  .mobile-call { display: inline-flex; }
  .to-top { bottom: 90px; right: 18px; width: 46px; height: 46px; }
  .chat-launcher { bottom: 16px; right: 16px; width: 58px; height: 58px; }
  .chat-panel { bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.9rem; }
  .lb-close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .promo-close { top: -10px; right: -10px; width: 38px; height: 38px; font-size: 23px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .logo-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Cenovnik u bočnom okviru (/cena-vozacke-dozvole) */
.side-box .price-list { margin-bottom: 0; }
