/* ==========================================================================
   Provera domena — Webolution
   Paleta je izvedena iz loga (#0CB4D1). Sve boje su u :root — izmena jedne
   vrednosti menja ceo interfejs.
   ========================================================================== */

:root {
  /* Brend */
  --brand:        #0CB4D1;  /* boja iz loga — akcenti, fokus, oznake */
  --brand-ink:    #087E93;  /* dugmad i linkovi: belo na ovome je 4,76:1 */
  --brand-strong: #0A6E80;  /* hover */
  --brand-soft:   #E3F6FA;
  --brand-line:   #9FDFEC;

  /* Status. Značenje nose reči „slobodan / zauzet", boja samo pomaže. */
  --free:        #0F7B3F;
  --free-soft:   #E7F5ED;
  --taken:       #6B7484;
  --taken-soft:  #F1F3F6;
  --unknown:     #96540A;
  --unknown-soft:#FFF4E3;

  /* Površine */
  --paper:   #FFFFFF;
  --surface: #F5F7F9;
  --raised:  #FFFFFF;
  --ink:     #0E1B2A;
  --ink-2:   #556172;
  --ink-3:   #838E9E;
  --line:    #E2E7EC;
  --line-2:  #EDF0F3;

  --shadow-soft: 0 1px 2px rgba(14,27,42,.04), 0 10px 30px -18px rgba(14,27,42,.30);
  --shadow-lift: 0 2px 4px rgba(14,27,42,.05), 0 18px 44px -22px rgba(14,27,42,.35);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 20px;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --wrap:   1400px;
  --search: 640px;
}

[data-theme="dark"] {
  --brand:        #22D3EE;
  --brand-ink:    #22D3EE;
  --brand-strong: #67E3F7;
  --brand-soft:   rgba(34,211,238,.14);
  --brand-line:   rgba(34,211,238,.45);

  --free:        #4ADE80;
  --free-soft:   rgba(74,222,128,.13);
  --taken:       #8A94A6;
  --taken-soft:  rgba(255,255,255,.05);
  --unknown:     #FBBF24;
  --unknown-soft:rgba(251,191,36,.13);

  --paper:   #0B1220;
  --surface: #121B2C;
  --raised:  #151F33;
  --ink:     #E9EEF7;
  --ink-2:   #A6B0C2;
  --ink-3:   #7B8699;
  --line:    #24314A;
  --line-2:  #1B2539;

  --shadow-soft: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -20px rgba(0,0,0,.8);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 22px 50px -26px rgba(0,0,0,.9);
}

/* ── Osnova ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ── Zaglavlje ───────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap); width: 100%;
  margin: 0 auto;
  padding: 20px 28px;
}

.brand img { height: 28px; width: auto; }
[data-theme="dark"] .brand img { filter: brightness(1.18) saturate(1.1); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ic-moon { display: none; }
[data-theme="dark"] .ic-sun { display: none; }
[data-theme="dark"] .ic-moon { display: block; }

/* ── Dugmad ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 11px 20px;
  font-weight: 500;
  font-size: .93rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-primary:disabled { opacity: .5; cursor: default; }
[data-theme="dark"] .btn-primary { color: #06212A; font-weight: 600; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }

.btn-sm { padding: 7px 13px; font-size: .84rem; border-radius: 7px; }

.btn-free {
  background: var(--brand-ink); color: #fff;
  padding: 7px 14px; font-size: .84rem; border-radius: 7px;
}
.btn-free:hover { background: var(--brand-strong); }
[data-theme="dark"] .btn-free { color: #06212A; font-weight: 600; }

.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: .84rem;
  padding: 6px 9px; border-radius: 6px;
  transition: color .15s, background-color .15s;
}
.link-btn:hover { color: var(--ink); background: var(--surface); }

/* ── Hero: pretraga je centar strane ─────────────────────────────────── */
main { flex: 1; display: flex; flex-direction: column; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px 40px;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
}

/* Pre prve pretrage blok stoji u optičkoj sredini strane. */
body:not(.has-results) .hero {
  min-height: min(56vh, 470px);
}

.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
  max-width: 16ch;
}

.lede {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 46ch;
  font-size: 1rem;
}

.search {
  margin-top: 28px;
  width: 100%;
  max-width: var(--search);
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1; min-width: 0;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 17px 20px;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--ink-3); letter-spacing: 0; }
.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.search .btn-primary {
  padding-inline: 32px;
  border-radius: var(--r);
  font-size: 1rem;
}

/* Grupe ekstenzija */
.groups {
  border: 0;
  padding: 0;
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 7px;
  justify-content: center;
  max-width: 820px;
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .855rem;
  cursor: pointer;
  color: var(--ink-2);
  user-select: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip em {
  font-style: normal; font-size: .74rem;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-on,
.chip:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-ink);
  font-weight: 500;
}
.chip.is-on em,
.chip:has(input:checked) em { color: inherit; opacity: .7; }
.chip:focus-within,
.chip:has(input:focus-visible) { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

.chip-plain { border-style: dashed; color: var(--ink-3); }

/* Tri kratka objašnjenja ispod pretrage — samo dok nema rezultata */
.hints {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 880px;
  width: 100%;
  text-align: left;
  font-size: .875rem;
}
.hint {
  padding-top: 12px;
  border-top: 2px solid var(--brand);
}
.hints dt { font-weight: 500; color: var(--ink); }
.hints dd { margin: 5px 0 0; color: var(--ink-3); }
.hints em { font-style: normal; color: var(--ink-2); }
.hints kbd {
  font-family: var(--mono); font-size: .78rem;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; background: var(--surface);
}

/* Zbijeno stanje čim krenu rezultati */
body.has-results .hero { padding-bottom: 20px; }
body.has-results .hero h1 { font-size: 1.35rem; letter-spacing: -.02em; max-width: none; }
body.has-results .lede,
body.has-results .hints { display: none; }
body.has-results .search { margin-top: 18px; }
body.has-results .groups { margin-top: 14px; }

/* ── Traka izvršavanja ───────────────────────────────────────────────── */
.run {
  max-width: var(--wrap);
  width: 100%;
  margin: 12px auto 0;
  padding: 0 28px;
}

.run-bar { display: flex; align-items: center; gap: 14px; }

.progress {
  flex: 1; height: 3px;
  background: var(--line-2);
  border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: var(--brand);
  transition: width .25s ease;
}
.run.is-done .progress { opacity: 0; transition: opacity .4s .3s; }

.run-status {
  font-size: .85rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Filteri ostaju vidljivi dok se skroluje duga lista */
.tally {
  position: sticky; top: 0; z-index: 20;
  margin-top: 14px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  background: var(--paper);
}

.tally-item {
  background: none; border: none; cursor: pointer;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-sm);
  display: flex; align-items: baseline; gap: 7px;
  color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.tally-item:hover { background: var(--surface); }
.tally-item.is-active { background: var(--surface); color: var(--ink); }
.tally-item strong {
  font-size: 1.2rem; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.tally-item span { font-size: .82rem; }
.t-free { color: var(--free); }
.t-taken { color: var(--taken); }
.t-unknown { color: var(--unknown); }

.tally-tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Rezultati ───────────────────────────────────────────────────────── */
.results-wrap { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 28px; }
.results { list-style: none; padding: 0; margin: 0; }

.row {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) 124px minmax(0, 1.3fr) 196px;
  align-items: center;
  gap: 0 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}
.row:last-child { border-bottom: none; }

.row-mark { align-self: stretch; border-radius: 2px; background: transparent; }
.row[data-state="free"] .row-mark { background: var(--free); }
.row[data-state="unknown"] .row-mark { background: var(--unknown); }

.row-domain {
  font-size: 1.02rem; font-weight: 500;
  letter-spacing: -.012em; overflow-wrap: anywhere;
  padding-left: 13px;
}
.row[data-state="taken"] .row-domain { color: var(--ink-2); font-weight: 400; }
.row[data-state="free"] .row-domain { font-weight: 600; }

.row-status {
  font-size: .82rem; font-weight: 500;
  border-radius: 999px; padding: 3px 11px;
  justify-self: start; white-space: nowrap;
}
.row[data-state="free"]    .row-status { background: var(--free-soft);    color: var(--free); }
.row[data-state="taken"]   .row-status { background: var(--taken-soft);   color: var(--taken); }
.row[data-state="unknown"] .row-status { background: var(--unknown-soft); color: var(--unknown); }
.row[data-state="pending"] .row-status {
  background: var(--line-2); color: transparent;
  min-width: 76px; height: 22px;
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .5 } 50% { opacity: 1 } }

.row-meta {
  font-size: .84rem; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.row.is-hidden { display: none; }

@keyframes settle {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}
.row.is-resolved > * { animation: settle .22s ease both; }

.empty {
  padding: 46px 0; color: var(--ink-3);
  text-align: center; font-size: .95rem;
}

/* ── Detaljan WHOIS ──────────────────────────────────────────────────── */
.detail { max-width: var(--wrap); width: 100%; margin: 30px auto 0; padding: 0 28px; }

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-lift);
}

.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.card-head h2 {
  font-size: 1.45rem; font-weight: 600;
  letter-spacing: -.024em; overflow-wrap: anywhere;
}
.card-head .row-status { font-size: .84rem; padding: 5px 13px; }
.card-head[data-state="free"]    .row-status { background: var(--free-soft);    color: var(--free); }
.card-head[data-state="taken"]   .row-status { background: var(--taken-soft);   color: var(--taken); }
.card-head[data-state="unknown"] .row-status { background: var(--unknown-soft); color: var(--unknown); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--raised);
}
.fact {
  padding: 14px 16px;
  box-shadow: 1px 0 0 var(--line-2), 0 1px 0 var(--line-2);
}
.fact dt { font-size: .77rem; color: var(--ink-3); margin-bottom: 3px; }
.fact dd { font-size: .93rem; margin: 0; overflow-wrap: anywhere; }
.fact dd.warn { color: var(--unknown); }
.fact dd.good { color: var(--free); }

.ns-list {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ns-list li {
  font-family: var(--mono); font-size: .8rem;
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 4px 10px; border-radius: 6px; color: var(--ink-2);
}

.raw-toggle { margin-top: 20px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.raw-toggle summary {
  cursor: pointer; font-size: .9rem; color: var(--ink-2);
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.raw-toggle summary::-webkit-details-marker { display: none; }
.raw-toggle summary::before {
  content: ''; width: 6px; height: 6px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); transition: transform .18s;
}
.raw-toggle[open] summary::before { transform: rotate(45deg); }

.raw {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 18px;
  font-family: var(--mono);
  font-size: .78rem; line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 460px; overflow-y: auto;
}

.card-cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card-note { font-size: .86rem; color: var(--ink-3); }

/* ── Podnožje ────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 30px 28px;
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  justify-content: space-between;
  font-size: .86rem; color: var(--ink-3);
}
.foot p { max-width: 46ch; }
.foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--brand-ink); }

/* ── Toast ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 999px;
  font-size: .88rem;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
  opacity: 0; transition: opacity .2s, transform .2s;
  z-index: 60;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Prilagođavanje ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hints { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 40px; max-width: 520px; }

  .row {
    grid-template-columns: 3px minmax(0, 1fr) auto;
    grid-template-areas:
      "mark domain status"
      "mark meta   meta"
      "mark act    act";
    row-gap: 6px; padding: 14px 0;
  }
  .row-mark { grid-area: mark; }
  .row-domain { grid-area: domain; padding-left: 12px; }
  .row-status { grid-area: status; justify-self: end; }
  .row-meta { grid-area: meta; padding-left: 12px; white-space: normal; }
  .row-meta:empty { display: none; }
  .row-actions { grid-area: act; justify-content: flex-start; padding-left: 6px; }
  .row-actions:empty { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar { padding: 14px 18px; }
  .hero { padding: 12px 18px 32px; }
  body:not(.has-results) .hero { min-height: 0; }
  .search { flex-direction: column; }
  .search .btn-primary { padding-block: 15px; }
  .run, .results-wrap, .detail, .foot-inner { padding-inline: 18px; }
  .tally { gap: 2px; padding: 8px 0; }
  .tally-item { padding: 6px 10px; }
  .tally-tools { margin-left: 0; width: 100%; padding-top: 6px; }
  .card { padding: 20px; border-radius: var(--r); }
  /* Prečica sa tastature nema smisla na dodirnom ekranu. */
  .hint:last-child { display: none; }
  /* Udobnija dodirna meta za izbor grupa. */
  .chip { padding: 9px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar, .search, .groups, .hints, .tally-tools, .foot, .run-bar { display: none; }
  .tally { position: static; }
  .row { break-inside: avoid; }
}


/* ══════════════════════════════════════════════════════════════════════
   Sadržaj ispod alata
   ══════════════════════════════════════════════════════════════════════ */

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 84px 28px 88px;
}
body.has-results .prose { padding-top: 96px; border-top: 1px solid var(--line-2); margin-top: 72px; }

.prose-block + .prose-block { margin-top: 52px; }

.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.012em;
}
.prose p { color: var(--ink-2); margin-bottom: 12px; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: normal; font-family: var(--mono); font-size: .92em; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-strong); }

/* Koraci — sadržaj jeste redosled, pa numeracija nosi informaciju */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: korak; }
.steps li {
  counter-increment: korak;
  position: relative;
  padding-left: 46px;
  padding-bottom: 22px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(korak);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: .88rem; font-weight: 600;
}
.steps li::after {
  content: '';
  position: absolute; left: 15px; top: 34px; bottom: 6px;
  width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps p { margin: 4px 0 0; }

/* Tri statusa */
.statuses { display: grid; gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; }
.status-row {
  background: var(--paper);
  padding: 16px 18px 16px 20px;
  border-left: 3px solid transparent;
}
.status-row[data-state="free"]    { border-left-color: var(--free); }
.status-row[data-state="taken"]   { border-left-color: var(--taken); }
.status-row[data-state="unknown"] { border-left-color: var(--unknown); }
.status-row dt { font-weight: 600; margin-bottom: 3px; }
.status-row[data-state="free"] dt    { color: var(--free); }
.status-row[data-state="taken"] dt   { color: var(--taken); }
.status-row[data-state="unknown"] dt { color: var(--unknown); }
.status-row dd { margin: 0; color: var(--ink-2); }

.tips { margin: 0; padding-left: 20px; color: var(--ink-2); }
.tips li { margin-bottom: 9px; }
.tips li:last-child { margin-bottom: 0; }

/* Česta pitanja */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 34px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute; right: 6px; top: 24px;
  width: 8px; height: 8px;
  border-right: 1.7px solid var(--ink-3);
  border-bottom: 1.7px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq summary h3 { display: inline; }
.faq summary:hover h3 { color: var(--brand-ink); }
.faq details > p { padding: 0 34px 18px 0; margin: -4px 0 0; }

/* Poziv na akciju */
.cta {
  margin-top: 60px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 32px;
}
.cta h2 { margin-bottom: 10px; }
.cta p { margin-bottom: 20px; }
/* .prose a (0,1,1) inače nadjača .btn-primary (0,1,0) i obriše belu boju teksta. */
.prose a.btn-primary { color: #fff; text-decoration: none; }
[data-theme="dark"] .prose a.btn-primary { color: #06212A; }

.noscript-note {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .prose { padding: 56px 18px 60px; }
  body.has-results .prose { padding-top: 60px; margin-top: 48px; }
  .prose-block + .prose-block { margin-top: 40px; }
  .prose h2 { font-size: 1.28rem; }
  .cta { padding: 24px 20px; border-radius: var(--r); margin-top: 44px; }
}
