/* =========================================================
   Auto škola Miletić — kopija sajta (čist HTML/CSS)
   Boje, tipografija i layout prate original autoskolamiletic.rs
   ========================================================= */

/* ---------- Design tokeni ---------- */
:root {
  --yellow: #ffcb00;
  --yellow-dark: #e6b700;
  --dark: #111111;
  --black: #000000;
  --gray-bg: #f6f6f8;
  --gray-line: #e0e0e0;
  --gray-text: #6b6b6b;
  --white: #ffffff;

  --font-head: "Anek Bangla", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(17, 17, 17, .08);
  --shadow-sm: 0 8px 24px rgba(17, 17, 17, .06);
  --header-h: 86px;
  --t: .3s ease; /* mesto za buduće tranzicije */
}

/* ---------- 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-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
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, h5, h6 {
  font-family: var(--font-head);
  margin: 0 0 .4em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--dark);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 90px 0; position: relative; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }

/* ---------- Scroll-reveal tranzicije ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Eyebrow / naslovi sekcija ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--yellow);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--dark); }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--gray-text); font-size: 1.05rem; }
.section--dark .section-head p { color: #c9c9c9; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--dark); }
.btn--primary:hover { background: var(--dark); color: var(--yellow); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--yellow); color: var(--dark); }
.btn--outline { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--dark); }
.btn--light:hover { background: var(--yellow); }
.btn .arrow { font-size: 1.1em; line-height: 1; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid #262626;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease;
  will-change: transform;
}
/* senka kad se odskroluje od vrha */
.site-header.scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
/* sakriven header (skrol naniže) — klizne naviše van ekrana */
.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 img { height: 62px; width: auto; display: block; }
.main-nav > ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  color: var(--white);
  transition: color var(--t);
}
.main-nav a:hover, .main-nav .active > a { color: var(--yellow); }
.main-nav .active > a::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
}
/* dropdown */
.has-drop { position: relative; }
.has-drop > a::before {
  /* mali znak strelice */
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.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: 8px;
  color: var(--dark);
}
.dropdown li a:hover { background: var(--gray-bg); }
.dropdown li a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--t);
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  background: var(--gray-bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding-top: 70px;
}
.hero-content { max-width: 600px; }
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.12rem; color: var(--gray-text); margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-media { position: relative; align-self: center; padding: 20px 0 40px; }
.hero-media .hero-person {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(17, 17, 17, .22);
}
/* žuti zaobljeni akcenat iza fotografije */
.hero-blob {
  position: absolute;
  z-index: 1;
  right: 4%;
  top: 0;
  width: 76%;
  height: 82%;
  background: var(--yellow);
  border-radius: 28px;
}

/* plutajuća kartica rejtinga */
.hero-card {
  position: absolute;
  z-index: 3;
  bottom: 60px;
  left: -10px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  max-width: 250px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-card img { width: 38px; }
.hero-card strong { display: block; font-size: .95rem; line-height: 1.3; }
.hero-card span { font-size: .8rem; color: var(--gray-text); }

/* ===========================================================
   GOOGLE OCENE / TRAKA RECENZIJA
   =========================================================== */
.reviews-bar { background: var(--dark); color: var(--white); padding: 36px 0; }
.reviews-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.rating-score { display: flex; align-items: center; gap: 16px; }
.rating-score .num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; }
.stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.1rem; }
/* puna širina trake + suptilni fade na ivicama */
.reviews-marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reviews-track {
  display: flex;
  width: max-content;
  animation: reviews-scroll 45s linear infinite;
}
/* pauza kad se pređe mišem */
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.review-card {
  flex: 0 0 300px;
  margin-right: 20px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 22px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 203, 0, .55);
  background: #1d1d1d;
}
.review-card .g { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; opacity: .85; }
.review-card .head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding-right: 24px; }
.review-card .head img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #2e2e2e; }
.review-card .name { font-weight: 600; font-size: .95rem; }
.review-card .date { font-size: .75rem; color: #9a9a9a; }
.review-card .stars { font-size: .9rem; margin-bottom: 8px; }
.review-card p { font-size: .92rem; color: #d7d7d7; margin: 0; }
/* poštuj korisnike koji isključuju animacije */
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; }
}

/* ===========================================================
   O NAMA (about) sekcija
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  right: -10px; bottom: 30px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 16px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge .big { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; }
.feature-list { display: grid; gap: 22px; margin: 26px 0; }
.feature-item { display: flex; gap: 16px; }
.feature-item .ico {
  flex: 0 0 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--yellow);
  border-radius: 14px;
  font-size: 1.5rem;
}
.feature-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature-item p { color: var(--gray-text); margin: 0; font-size: .98rem; }

/* ===========================================================
   KARTICE (obuka / kursevi)
   =========================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-line);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card .thumb { aspect-ratio: 3/2; overflow: hidden; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .thumb img { transform: scale(1.06); }
.course-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card h3 { margin: 0; }
.course-card p { color: var(--gray-text); margin: 0; font-size: .96rem; flex: 1; }
.course-card .more {
  font-weight: 600; color: var(--dark);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap var(--t), color var(--t);
}
.course-card .more:hover { color: var(--yellow-dark); gap: 14px; }

/* ===========================================================
   KAKO FUNKCIONIŠE (koraci)
   =========================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  border: 1px solid var(--gray-line);
}
.step .num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--gray-text); margin: 0; font-size: .96rem; }

/* ===========================================================
   PREDNOSTI (benefits)
   =========================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.benefit img.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.benefit::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05));
  z-index: 1;
}
.benefit .inner { position: relative; z-index: 2; padding: 26px; }
.benefit h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.benefit p { font-size: .92rem; color: #eee; margin: 0; }

/* ===========================================================
   CENE (pricing)
   =========================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.price-card.featured {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.price-card.featured h3, .price-card.featured .amount { color: var(--white); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.3rem; }
.price-card .desc { color: var(--gray-text); font-size: .92rem; min-height: 60px; }
.price-card.featured .desc { color: #c9c9c9; }
.price-card .amount {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 700;
  margin: 12px 0 18px;
}
.price-card .amount small { font-size: 1rem; font-weight: 500; }
.price-list { display: grid; gap: 12px; margin-bottom: 24px; flex: 1; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.price-list li::before { content: "✓"; color: var(--yellow); font-weight: 700; }
.price-note {
  margin-top: 36px;
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 24px 30px;
  text-align: center;
  font-weight: 500;
}
.price-note strong { font-weight: 700; }

/* ===========================================================
   UTISCI / TESTIMONIJALI
   =========================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.testi-media { position: relative; }
.testi-media img { border-radius: var(--radius-lg); width: 100%; }
.testi-media .float {
  position: absolute; left: -16px; bottom: 30px;
  background: var(--white); color: var(--dark);
  border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.testi-media .float .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; }
.testi-list { display: grid; gap: 20px; }
.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 26px;
}
.testi-card .stars { color: var(--yellow); margin-bottom: 10px; }
.testi-card blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .who .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-head);
}
.testi-card .who strong { display: block; }
.testi-card .who span { font-size: .85rem; color: var(--gray-text); }

/* ===========================================================
   KONTAKT CTA blok
   =========================================================== */
.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.contact-feature { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-feature .ico {
  flex: 0 0 54px; height: 54px; border-radius: 14px;
  background: var(--yellow); display: grid; place-items: center; font-size: 1.4rem; color: var(--dark);
}
.contact-feature h3 { margin-bottom: 4px; font-size: 1.15rem; }
.contact-feature p { margin: 0; color: #c9c9c9; }
.section--dark .contact-feature p { color: #c9c9c9; }
.call-box {
  background: var(--yellow);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.call-box h3 { color: var(--dark); }
.call-box .phone { font-family: var(--font-head); font-size: 2rem; font-weight: 700; display: block; margin: 10px 0 20px; }

/* ===========================================================
   FAQ akordeon
   =========================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.faq-media img { border-radius: var(--radius-lg); width: 100%; }
.faq-item {
  border: 1px solid var(--gray-line);
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--white);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 24px;
  font-size: 1.08rem;
  font-weight: 600;
  font-family: var(--font-head);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--dark);
}
.faq-q .sign {
  flex: 0 0 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--yellow); border-radius: 50%;
  font-size: 1.2rem; transition: transform var(--t);
}
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--gray-text);
}
.faq-a .inner { padding: 0 24px 20px; }

/* ===========================================================
   PAGE HERO (podstranice)
   =========================================================== */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumb { color: var(--yellow); font-size: .95rem; }
.breadcrumb a { color: #cfcfcf; }
.breadcrumb a:hover { color: var(--yellow); }

/* ===========================================================
   GALERIJA
   =========================================================== */
.gallery-grid {
  columns: 3;
  column-gap: 20px;
}
@media (max-width: 992px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px) { .gallery-grid { columns: 1; } }
.gallery-grid figure {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.07); }
/* hover nagoveštaj da je slika klikabilna */
.gallery-grid figure { position: relative; cursor: zoom-in; }
.gallery-grid figure::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(17, 17, 17, .42);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-grid figure::after {
  content: "+";
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  color: #fff; font-size: 3rem; font-weight: 300; 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); }

/* ---------- DUGME "NA VRH" ---------- */
.to-top {
  position: fixed;
  bottom: 96px;
  right: 30px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  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(--dark); color: var(--yellow); transform: translateY(-3px); }
@media (max-width: 600px) {
  .to-top { bottom: 82px; right: 18px; width: 46px; height: 46px; }
}

/* ---------- CHATBOT WIDGET ---------- */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  transition: transform .25s ease, background .25s ease;
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.04); }
.chat-launcher svg { width: 30px; height: 30px; }
.chat-launcher .badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  background: #22c55e;
  border: 2px solid var(--white);
  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: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .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(--dark);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); color: var(--dark);
  display: grid; place-items: center; flex: 0 0 40px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.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: var(--white);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
  transition: background .2s ease;
}
.chat-close:hover { background: rgba(255, 255, 255, .25); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--gray-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 82%;
  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: var(--white); border: 1px solid var(--gray-line); border-bottom-left-radius: 5px; }
.chat-msg.user { align-self: flex-end; background: var(--yellow); color: var(--dark); border-bottom-right-radius: 5px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--white); border: 1px solid var(--gray-line); border-radius: 16px; border-bottom-left-radius: 5px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #bbb; 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(--gray-bg); }
.chat-suggest button {
  background: var(--white); border: 1px solid var(--gray-line); color: var(--dark);
  padding: 7px 12px; border-radius: 50px; font-size: .8rem; cursor: pointer; font-family: inherit;
  transition: background .2s ease, border-color .2s ease;
}
.chat-suggest button:hover { background: var(--yellow); border-color: var(--yellow); }

.chat-input {
  display: flex; gap: 8px; padding: 12px; background: var(--white); border-top: 1px solid var(--gray-line);
}
.chat-input input {
  flex: 1; border: 1px solid var(--gray-line); border-radius: 50px; padding: 11px 16px;
  font-family: inherit; font-size: .92rem; background: var(--gray-bg);
}
.chat-input input:focus { outline: none; border-color: var(--yellow); background: var(--white); }
.chat-input button {
  flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--dark);
  cursor: pointer; font-size: 1.2rem; display: grid; place-items: center; transition: background .2s ease;
}
.chat-input button:hover { background: var(--dark); color: var(--yellow); }
.chat-input button:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
  .chat-launcher { bottom: 16px; right: 16px; width: 56px; height: 56px; }
  .chat-panel { bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(10, 10, 10, .92);
  -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: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  object-fit: contain;
  transform: scale(.92);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.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%;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--yellow); color: var(--dark); border-color: var(--yellow);
}
.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-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.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;
}
@media (max-width: 600px) {
  .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; }
}

/* ===========================================================
   KONTAKT stranica
   =========================================================== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-info-card .ico {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--yellow); border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
}
.contact-info-card h3 { font-size: 1.1rem; }
.contact-info-card .val { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; word-break: break-word; }
.contact-info-card p { color: var(--gray-text); font-size: .95rem; }

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--gray-bg);
  transition: border var(--t), background var(--t);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===========================================================
   COURSE DETAIL (podstranice obuke)
   =========================================================== */
.course-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  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-main h2 { margin-top: 36px; }
.unique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.unique-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 26px;
}
.unique-card .ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--yellow); display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.unique-card h3 { font-size: 1.1rem; }
.unique-card p { color: var(--gray-text); margin: 0; font-size: .95rem; }

.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 24px; }
.audience-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.audience-card .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2rem; color: var(--yellow); line-height: 1; margin-bottom: 12px;
}
.audience-card h3 { font-size: 1.12rem; }
.audience-card p { color: var(--gray-text); font-size: .92rem; }
.audience-card .tag { font-weight: 600; color: var(--dark); font-size: .9rem; }

/* sidebar */
.course-sidebar > div { margin-bottom: 26px; }
.side-box {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 26px;
}
.side-box h3 { font-size: 1.15rem; margin-bottom: 16px; }
.side-courses li { margin-bottom: 10px; }
.side-courses a {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 500;
  transition: var(--t);
}
.side-courses a:hover, .side-courses a.active { background: var(--yellow); }
.side-call {
  background: var(--dark); color: var(--white);
  border-radius: var(--radius); padding: 30px; text-align: center;
}
.side-call h3 { color: var(--white); }
.side-call .phone { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--yellow); }
.side-cta {
  background: var(--yellow); border-radius: var(--radius);
  padding: 30px; text-align: center;
}
.side-cta h3 { color: var(--dark); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--dark); color: #cfcfcf; padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.25fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-grid h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 20px; }
.site-footer p { color: #b6b6b6; font-size: .95rem; }
.footer-brand img { height: 56px; margin-bottom: 18px; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: #1f1f1f; display: grid; place-items: center;
  transition: var(--t); color: var(--white);
}
.social a:hover { background: var(--yellow); color: var(--dark); }
.footer-hours ul { margin-top: 4px; }
.footer-hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #262626;
  font-size: .95rem;
  white-space: nowrap;
}
.footer-hours li:last-child { border-bottom: 0; }
.footer-hours li span:first-child { color: #d6d6d6; }
.footer-hours li span:last-child { color: var(--yellow); font-weight: 600; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--yellow); }
.footer-news .news-form { display: flex; margin-top: 16px; background: #1f1f1f; border-radius: 50px; padding: 5px; }
.footer-news input {
  flex: 1; background: none; border: 0; color: var(--white);
  padding: 10px 16px; font-family: inherit; font-size: .95rem;
}
.footer-news input:focus { outline: none; }
.footer-news button {
  background: var(--yellow); border: 0; color: var(--dark);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
}
.footer-bottom {
  border-top: 1px solid #262626;
  padding: 22px 0;
  text-align: center;
  font-size: .88rem;
  color: #8f8f8f;
}
.footer-bottom a { color: var(--yellow); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-media { display: block; margin-top: 8px; padding: 0; align-self: stretch; }
  .hero-media .hero-person { max-width: 100%; aspect-ratio: 16 / 10; }
  .hero-blob, .hero-card { display: none; }
  .about-grid, .testi-grid, .faq-grid, .contact-cta-grid, .contact-form-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards-grid, .steps-grid, .benefits-grid, .pricing-grid, .gallery-grid, .contact-info-grid, .audience-grid { grid-template-columns: 1fr 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--header-h));
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform var(--t);
    padding: 24px;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray-line); color: var(--dark); }
  .main-nav a:hover, .main-nav .active > a { color: var(--yellow-dark); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 14px;
  }
  .header-actions .btn { display: none; }
  .main-nav .nav-cta { display: inline-flex; justify-content: center; width: 100%; margin-top: 16px; }
  .section { padding: 60px 0; }
  .cards-grid, .steps-grid, .benefits-grid, .pricing-grid, .gallery-grid,
  .contact-info-grid, .audience-grid, .unique-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .reviews-track { scroll-snap-type: none; }
  /* plutajući bedževi da ne prelaze ivicu */
  .about-badge { right: 12px; bottom: 12px; padding: 12px 16px; }
  .about-badge .big { font-size: 1.7rem; }
  .testi-media .float { left: 12px; }
  .container { padding: 0 18px; }
}
/* CTA u meniju vidljiv samo na mobilnom */
.nav-cta { display: none; }
