/* =========================================================
   TestDaF Beograd – stilovi
   ========================================================= */

:root {
  --navy: #3D4A8A;
  --navy-dark: #2C3668;
  --navy-ink: #1B2150;
  --orange: #E8792B;
  --orange-hover: #F08A40;
  --red: #E53A2F;
  --gray: #9A9A9A;

  --text: #3D4A8A;
  --text-body: #3A3F5C;
  --muted: #5E6275;
  --bg: #FFFFFF;
  --bg-alt: #F5F6FB;
  --border: #E2E4EF;
  --success: #1E7B4A;
  --error: #C62D24;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 33, 80, .05), 0 8px 24px rgba(27, 33, 80, .07);
  --shadow-lg: 0 18px 48px rgba(27, 33, 80, .14);
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Pokret: jake krive umesto ugrađenih ease/ease-in-out */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

/* Kontrole: bez kašnjenja tapa i bez selektovanja teksta dugim pritiskom */
button, .btn, .acc-btn, .nav-toggle, .chat-chip, .chat-launcher {
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 6.2vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
/* Landscape na telefonima sa notch-om (uz viewport-fit=cover) */
@supports (padding: max(0px)) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  @media (min-width: 768px) {
    .container { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.muted { color: var(--muted); }
.small { font-size: .9rem; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Motif: 4 kvadrata ---------- */
.squares { display: inline-flex; gap: 4px; vertical-align: middle; }
.squares i { width: 10px; height: 10px; display: block; border-radius: 2px; }
.squares i:nth-child(1) { background: var(--orange); }
.squares i:nth-child(2) { background: var(--red); }
.squares i:nth-child(3) { background: var(--navy); }
.squares i:nth-child(4) { background: var(--gray); }
.squares-lg i { width: 16px; height: 16px; border-radius: 3px; }
.section-head .squares,
.split .squares,
.business .squares,
.inquiry-intro .squares { margin-bottom: 14px; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 10px;
  padding: 12px 22px; line-height: 1.2;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
/* Tamni tekst na narandžastoj zbog kontrasta (WCAG AA) */
.btn-primary { background: var(--orange); color: var(--navy-ink); box-shadow: 0 6px 16px rgba(232, 121, 43, .3); }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--orange-hover); }
  .btn-ghost:hover { border-color: var(--navy); }
}
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 700; text-decoration: none; color: var(--navy); white-space: nowrap; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: .3em; color: var(--orange); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { transform: translateX(4px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 4px 18px rgba(27, 33, 80, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo .squares { flex-direction: row; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.logo-text small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.logo-light { color: #fff; }
.logo-light small { color: rgba(255, 255, 255, .75); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 8px 16px 20px;
  display: none;
}
.site-nav.is-open {
  display: block;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(-6px); }
}
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); }
.site-nav .btn { width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 28px; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: 24px; margin: 0; }
  .site-nav li a { padding: 6px 0; border: 0; font-size: .95rem; position: relative; }
  .site-nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out);
  }
  .site-nav.is-open { transition: none; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .site-nav li a:hover::after { transform: scaleX(1); }
}
@media (min-width: 900px) {
  .site-nav .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(61, 74, 138, .08), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(232, 121, 43, .07), transparent 60%),
    #fff;
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 7px; flex: none;
  background:
    linear-gradient(var(--orange), var(--orange)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--red), var(--red)) 9px 0 / 7px 7px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 18px 0 / 7px 7px no-repeat,
    linear-gradient(var(--gray), var(--gray)) 27px 0 / 7px 7px no-repeat;
}
.section-navy .eyebrow, .business .eyebrow { color: rgba(255, 255, 255, .8); }
.section-navy .eyebrow::before, .business .eyebrow::before {
  background:
    linear-gradient(var(--orange), var(--orange)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--red), var(--red)) 9px 0 / 7px 7px no-repeat,
    linear-gradient(#fff, #fff) 18px 0 / 7px 7px no-repeat,
    linear-gradient(var(--gray), var(--gray)) 27px 0 / 7px 7px no-repeat;
}
.icon { width: 22px; height: 22px; flex: none; display: block; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-visual { position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 4 / 5; }
.hero-visual .photo-frame {
  display: block; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #ECEDF1;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.04); transform-origin: 100% 0%; }
.hero-visual.no-photo .photo-fallback { display: grid; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: 18px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.hero-badge {
  position: absolute; left: 12px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-lg);
  font-size: .85rem; line-height: 1.3; color: var(--muted);
}
.hero-badge strong { display: block; color: var(--navy); font-size: .95rem; }
.hero-badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; }
.hero-name {
  position: absolute; right: 16px; top: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border-radius: 10px; padding: 8px 12px; font-size: .78rem; line-height: 1.3; color: var(--muted); text-align: right;
}
.hero-name strong { display: block; color: var(--navy); font-size: .85rem; }
@media (min-width: 900px) { .hero-badge { left: -36px; } }

/* Traka poverenja */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: .93rem; line-height: 1.3; }
.trust-list .icon { color: var(--navy); opacity: .85; }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

@media (min-width: 900px) {
  .hero { padding: 96px 0 112px; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 72px; }
}

/* ---------- Sekcije ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

/* Šta je TestDaF */
.section-head > p { font-size: 1.08rem; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.facts li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.facts strong { display: block; color: var(--navy); font-size: 1.02rem; }
.facts p { margin: 4px 0 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.fact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); color: var(--navy); margin-bottom: 16px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Kursevi */
.card-featured {
  display: grid; gap: 24px; align-items: center; margin-bottom: 20px;
  background: #fff; border: 1.5px solid var(--orange); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow);
}
.card-featured h3 { font-size: 1.5rem; }
.card-featured p { color: var(--muted); margin: 0; max-width: 56ch; }
.card-featured .card-tag { background: var(--orange); color: var(--navy-ink); }
.featured-side { display: grid; gap: 18px; }
.exam-parts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.exam-parts li { border: 1px solid var(--border); background: var(--bg-alt); color: var(--navy); font-weight: 600; font-size: .88rem; border-radius: 999px; padding: 6px 14px; }
@media (min-width: 900px) {
  .card-featured { grid-template-columns: 1.5fr 1fr; padding: 40px 44px; gap: 48px; }
  .featured-side { justify-items: start; }
}
.cards { display: grid; gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
}
.card p { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 20px; }
.card-tag { display: inline-block; align-self: flex-start; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); background: var(--bg-alt); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.price-note { margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Za firme */
.business {
  display: grid; gap: 32px; align-items: center;
  background: var(--navy); color: rgba(255, 255, 255, .88);
  border-radius: 24px; padding: 40px 24px; position: relative; overflow: hidden;
}
.business h2 { color: #fff; }
.business .squares i:nth-child(3) { background: #fff; }
.business-cta { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 24px; position: relative; z-index: 1; }
.business-cta p { color: #fff; font-weight: 500; }
@media (min-width: 900px) {
  .business { grid-template-columns: 1.4fr 1fr; padding: 56px; gap: 56px; }
}

.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%231B2150' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist-light li { color: rgba(255, 255, 255, .92); }
.checklist-light strong { color: #fff; }

/* Predavač */
.teacher { display: grid; gap: 40px; align-items: center; }
.teacher-photo {
  position: relative; margin: 0; max-width: 420px; width: 100%; justify-self: center;
  aspect-ratio: 3 / 4; border-radius: 20px; overflow: visible;
}
.teacher-photo .photo-frame {
  display: block; width: 100%; height: 100%; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative; z-index: 1; background: #ECEDF1;
}
/* Lice je u originalnoj fotografiji levo od centra (~42%) – blagi zoom ga vraća u sredinu kadra */
.teacher-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transform: scale(1.12); transform-origin: 0% 0%;
}
@media (max-width: 899px) { .teacher-photo { max-width: 340px; } }
.photo-fallback {
  position: absolute; inset: 0; border-radius: 20px; display: none; place-items: center;
  background: linear-gradient(145deg, #E9EBF5, #D6DAEC); color: var(--navy); font-size: 4rem; font-weight: 800; letter-spacing: .04em;
}
.teacher-photo.no-photo .photo-fallback { display: grid; }
.teacher-photo .squares { position: absolute; left: -10px; bottom: -14px; z-index: 2; background: #fff; padding: 8px; border-radius: 8px; box-shadow: var(--shadow); }
.teacher-bio > p { font-size: 1.04rem; color: var(--muted); }
.teacher-bio > p.teacher-lead { font-size: 1.15rem; color: var(--text-body); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.stats div { margin: 0; }
.stats dt { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.stats dd { margin: 8px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.teacher { align-items: start; }
.teacher-intro h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .4em; }
.teacher-role { color: var(--muted); font-weight: 600; margin: 0; }
@media (min-width: 900px) {
  .teacher { grid-template-columns: 5fr 7fr; gap: 72px; }
}

/* Format nastave */
.formats { display: grid; gap: 18px; }
.format-main {
  background: linear-gradient(150deg, var(--navy), var(--navy-dark)); color: #fff;
  border-radius: 20px; padding: 32px 26px; box-shadow: var(--shadow-lg);
}
.format-main h3 { color: #fff; font-size: 1.6rem; }
.pill { display: inline-block; background: var(--orange); color: var(--navy-ink); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.format-side { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px; padding: 32px 26px; display: flex; flex-direction: column; }
.format-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--navy); border: 1px solid var(--border); margin-bottom: 18px; }
.format-side h3 { font-size: 1.4rem; }
.format-note { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 0; color: var(--muted); }
.format-note .icon { color: var(--navy); margin-top: 2px; }
.format-note span { flex: 1; }
.format-side p { color: var(--muted); }
@media (min-width: 900px) {
  .formats { grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
  .format-main, .format-side { padding: 44px; }
}

/* Koraci */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.15rem;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* FAQ */
.faq { display: grid; gap: 32px; }
.faq-head p { color: var(--muted); max-width: 34ch; }
@media (min-width: 900px) {
  .faq { grid-template-columns: 1fr 1.7fr; gap: 72px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item h3 { margin: 0; font-size: 1.05rem; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; padding: 20px 4px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--navy);
}
.acc-btn::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--orange); font-size: 1.3rem; font-weight: 700; transition: transform 200ms var(--ease-out);
}
.acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-panel { padding: 0 4px 20px; color: var(--muted); }
.acc-panel:not([hidden]) {
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(-4px); }
}
.acc-panel p { margin: 0; }

/* Upit */
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .88); }
.section-navy h2 { color: #fff; }
.inquiry { display: grid; gap: 40px; }
.inquiry-intro .squares i:nth-child(3) { background: #fff; }
.inquiry-intro > p { font-size: 1.08rem; }
@media (min-width: 900px) { .inquiry { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; } }

.form {
  background: #fff; color: var(--text-body); border-radius: 20px; padding: 26px 20px; box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .form { padding: 36px; } }
.form-note { font-size: .88rem; color: var(--muted); }
.req { color: var(--error); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text-body); background: #fff;
  border: 1.5px solid #CDD1E2; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%233D4A8A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(61, 74, 138, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.error { color: var(--error); font-size: .86rem; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
::placeholder { color: #8A8EA3; }

.radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radio {
  display: inline-flex !important; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid #CDD1E2; border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 600 !important; margin: 0 !important;
  transition: border-color .2s, background-color .2s;
}
.radio:has(input:checked) { border-color: var(--navy); background: var(--bg-alt); }
.radio input, .checkbox input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; flex: none; }
.checkbox { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 500 !important; color: var(--text-body) !important; cursor: pointer; }
.checkbox input { margin-top: 3px; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status:not([hidden]), #company-field:not([hidden]) {
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(-4px); }
}
.form-status.is-success { background: #E7F5EC; color: var(--success); border: 1px solid #BFE3CD; }
.form-status.is-error { background: #FDECEB; color: var(--error); border: 1px solid #F5C6C2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .78); padding: 56px 0 90px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 32px; }
.footer-tagline { margin-top: 16px; max-width: 34ch; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 12px; letter-spacing: 0; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.placeholder { background: rgba(232, 121, 43, .2); color: #FFC79E; padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, Consolas, monospace; font-size: .88em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0 0 6px; }
.muted-light { color: rgba(255, 255, 255, .6); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.4fr 1.3fr 1fr; }
  .site-footer { padding-bottom: 40px; }
}

/* ---------- Plutajuće dugme (mobilni) ---------- */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  padding: 14px; box-shadow: 0 10px 28px rgba(27, 33, 80, .3);
  transition: transform 250ms var(--ease-out), opacity 200ms ease;
}
.fab.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- Animacije ---------- */
/* Ulazak sekcija pri skrolu: jednom, kratko, sa malim pomakom */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Kartice u istom redu ulaze kaskadno */
.cards > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 60ms; }
.cards > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 120ms; }
.cards > .reveal:nth-child(4) { transition-delay: 180ms; }

/* Hero: animira se odmah pri učitavanju (CSS), ne čeka JS */
.hero-enter { animation: hero-in 600ms var(--ease-out) both; }
.hero-enter + .hero-enter { animation-delay: 100ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }

/* Smanjen pokret: zadržavamo pretapanje, uklanjamo pomeranje */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .hero-enter { animation-name: hero-fade; }
  @keyframes hero-fade { from { opacity: 0; } }
  .btn:active:not(:disabled) { transform: none; }
  .fab.is-hidden { transform: none; }
  .site-nav.is-open, .acc-panel:not([hidden]), .form-status:not([hidden]), #company-field:not([hidden]) {
    @starting-style { transform: none; }
  }
}

/* ---------- Hero: naslov gore, predavač ispod ---------- */
.hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero-copy .hero-actions { justify-content: center; margin-bottom: 0; }
.hero-teacher {
  display: grid; gap: 28px; align-items: center; margin-top: 56px;
  background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 20px; box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.hero-teacher .hero-visual { max-width: none; aspect-ratio: 4 / 5; }
.hero-teacher .hero-visual::before { display: none; }
.hero-teacher .photo-frame { border-radius: 20px; box-shadow: none; }
.hero-teacher .hero-badge { left: 14px; bottom: 14px; }
.hero-teacher .teacher-bio { padding: 4px 8px 12px; }
.hero-teacher .teacher-bio h2 { margin-bottom: .5em; }
.hero-teacher .stats { margin-top: 24px; }
@media (min-width: 900px) {
  .hero-teacher { grid-template-columns: 5fr 7fr; gap: 56px; padding: 24px; margin-top: 72px; }
  .hero-teacher .teacher-bio { padding: 16px 32px 16px 0; }
}

/* Mobilni: kraći hero – kvadratna fotografija i skraćena biografija */
@media (max-width: 899px) {
  .hero-teacher .hero-visual { aspect-ratio: 1 / 1; }
  .hero-teacher .hero-visual img { object-position: center 4%; transform: scale(1.04); transform-origin: 30% 0%; }
  .hero-teacher .hero-badge { bottom: 10px; left: 10px; padding: 8px 12px 8px 8px; }
  .hero-teacher .hero-badge-icon { width: 32px; height: 32px; }
  .hero-teacher .teacher-bio > p:not(.eyebrow):not(.teacher-lead) { display: none; }
}

/* Hero: pločice sa ispitima */
.exam-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 880px; margin: 24px auto 0; }
.exam-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px;
  text-decoration: none; text-align: center; background: #fff; color: var(--navy);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .16s;
}
.exam-tile strong { font-size: 1.05rem; line-height: 1.25; }
.exam-tile small { color: var(--muted); font-size: .8rem; }
.exam-tile-main { grid-column: 1 / -1; border: 1.5px solid var(--orange); background: #FFF8F2; }
.exam-tile:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .exam-tile:hover { border-color: var(--navy); } .exam-tile-main:hover { border-color: var(--orange-hover); } }
@media (min-width: 760px) { .exam-tiles { grid-template-columns: 1.9fr repeat(4, 1fr); max-width: 980px; } .exam-tile-main { grid-column: auto; } }
.hero-copy .exam-tiles + .hero-actions { margin-top: 24px; }
.featured-also { margin-top: 12px !important; color: var(--text-body) !important; font-size: .95rem; }

.hero-copy .lead { max-width: 46ch; text-wrap: balance; }

/* Mobilni: bez dugmeta ispod pločica – plutajuće dugme "Pošaljite upit" je stalno na ekranu */
@media (max-width: 899px) { .hero-copy .exam-tiles + .hero-actions { display: none; } }
