/* ==========================================================================
   Prepusti — stilovi
   Struktura: 1) fontovi i promenljive 2) osnova 3) layout i tipografija
   4) komponente (dugmad, kartice, navigacija) 5) sekcije 6) forma
   7) footer 8) animacije i pristupačnost
   ========================================================================== */

/* 1) Fontovi (lokalno, bez spoljnih servisa) ------------------------------ */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Boje brenda */
  --bg: #F7F5EF;
  --ink: #20231F;
  --accent: #185D45;
  --on-accent: #FFFFFF;        /* tekst na akcentnoj podlozi */
  --accent-light: #8CCBAF;     /* akcent na tamnoj podlozi */
  --card: #FFFFFF;

  /* Izvedene nijanse */
  --ink-soft: #4A4F47;         /* sekundarni tekst, kontrast > 7:1 na --bg */
  --ink-muted: #5E635A;        /* pomoćni tekst, kontrast > 5.5:1 */
  --line: #E4E0D4;             /* tanke linije i ivice */
  --line-strong: #CFCABB;
  --accent-soft: #E3EEE8;      /* svetla podloga akcenta */
  --accent-deep: #114533;      /* hover akcenta */
  --error: #B42318;
  --error-soft: #FDECEA;

  /* Tipografija */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Oblici i razmaci */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --shadow-card: 0 1px 0 rgba(32, 35, 31, 0.04), 0 12px 32px -18px rgba(32, 35, 31, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}

/* 2) Osnova ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.visually-hidden {
  position: absolute !important;
  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: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* 3) Layout i tipografija ---------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: calc(var(--section-y) / 2); }
.section:first-of-type { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }

.display,
.h2,
.h3,
.note-big,
.logo,
.step-num {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2.narrow { max-width: 820px; }

.h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 650;
}

.lead {
  font-size: clamp(1.075rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.hint {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.hint.center { text-align: center; }

.marker {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 58%, #BFDCCD 58%, #BFDCCD 92%, transparent 92%);
  padding-inline: 2px;
}

/* 4) Komponente --------------------------------------------------------- */

/* Dugmad — jedan sistem za sve CTA elemente */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  --btn-border: var(--btn-bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn-dark:hover { --btn-bg: #000; }

.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn-accent:hover { --btn-bg: var(--accent-deep); box-shadow: 0 10px 24px -14px rgba(32, 35, 31, 0.5); }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn-outline:hover { --btn-border: var(--ink); --btn-bg: var(--card); }

.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.link-btn {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Kartice */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.card p { color: var(--ink-soft); margin-top: 10px; }

.card-grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  transition: transform 0.25s var(--ease);
}
.logo:hover .logo-mark { transform: translateX(3px); }

/* Navigacija */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  transition: color 0.15s, background-color 0.15s;
}
.nav-list a:hover { color: var(--ink); background: rgba(32, 35, 31, 0.05); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 5) Sekcije ------------------------------------------------------------ */

/* B. Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero-sub {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.hero .lead { margin-top: 16px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
}

.hero-card-wrap { position: relative; }
.hero-card-wrap::before {
  /* Diskretna akcentna ploča iza kartice */
  content: "";
  position: absolute;
  inset: 26px -14px -14px 26px;
  border-radius: 24px;
  background: var(--accent);
  transform: rotate(2.5deg);
}
.hero-card {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -32px rgba(32, 35, 31, 0.35);
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mock-input {
  margin-top: 14px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  font-size: 1rem;
  line-height: 1.45;
}
.mock-caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--ink);
  animation: caret 1s steps(1) infinite;
}
.mock-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}
.mock-examples li {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.mock-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.mock-label { margin-top: 18px; font-size: 0.875rem; font-weight: 700; }
.mock-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mock-option {
  padding: 8px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}
.mock-option.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hero-card-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* C. Problem */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-weight: 650;
  font-size: 1.0625rem;
  box-shadow: var(--shadow-card);
}
.chip::before {
  content: "";
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  flex: none;
}
.note-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px 48px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #C6DDD1;
}
.note-big {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
}
.note-card p:last-child { font-size: 1.125rem; color: var(--ink-soft); }

/* E. Koraci */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  counter-reset: none;
}
.step {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.step p { margin-top: 10px; color: var(--ink-soft); }
.step-num {
  display: inline-grid;
  place-items: center;
  min-width: 52px; height: 52px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.15rem;
  font-weight: 700;
}
.step:not(:last-child)::after {
  /* jednostavna strelica između koraka */
  content: "→";
  position: absolute;
  top: 38px;
  right: -16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* F. Kategorije */
.tick-list { margin-top: 16px; padding: 0; list-style: none; }
.tick-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.tick-list li:first-child { border-top: 0; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(-45deg);
}
.category .h3 { padding-bottom: 4px; }

.other-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(14px, 2vw, 20px);
  padding: clamp(24px, 3vw, 32px);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
}
.other-card p { margin-top: 6px; color: var(--ink-soft); max-width: 56ch; }

/* G. Za koga */
.persona { display: flex; flex-direction: column; }
.persona .h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.persona .h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* H. Vrednost */
.value-block {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink);
  color: var(--bg);
}
.value-block::after {
  /* diskretan grafički detalj: krug u akcentnoj boji */
  content: "";
  position: absolute;
  right: -90px; bottom: -90px;
  width: 280px; height: 280px;
  border: 2px solid rgba(140, 203, 175, 0.45);
  border-radius: 50%;
  pointer-events: none;
}
.value-block .h2 { max-width: 760px; }
.eyebrow-light { color: #C9CCC2; }
.eyebrow-light::before { background: var(--accent-light); box-shadow: 0 0 0 4px rgba(140, 203, 175, 0.2); }
.value-text {
  max-width: 62ch;
  margin-top: 22px;
  font-size: clamp(1.075rem, 1.4vw, 1.2rem);
  color: #D9DBD3;
}
.value-emphasis {
  position: relative;
  display: inline-block;
  max-width: 640px;
  margin-top: 30px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
}

/* I. FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: box-shadow 0.2s;
}
.faq-item.is-open { box-shadow: var(--shadow-card); }
.faq-q { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 20px 18px 24px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-body);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.2s, transform 0.25s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-icon { background: var(--accent); }
.faq-q button[aria-expanded="true"] .faq-icon::before,
.faq-q button[aria-expanded="true"] .faq-icon::after { background: var(--on-accent); }
.faq-q button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--ink-soft); max-width: 64ch; }
.faq-a:not([hidden]) { animation: fade-down 0.28s var(--ease); }

/* 6) Forma -------------------------------------------------------------- */
.form-section { outline: none; }
.form-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(32, 35, 31, 0.35);
}
.form-intro .lead { margin-top: 18px; }
.form-intro { align-self: start; }

.task-form { display: grid; gap: 28px; min-width: 0; }

.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.field-label-sm { font-size: 0.975rem; margin-bottom: 8px; }
.req { color: var(--accent); font-weight: 800; }
.optional { font-weight: 500; color: var(--ink-muted); }
.field-help { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-muted); }
.field-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--error);
}
.field-error:not(:empty) { display: flex; }
.field-error:not(:empty)::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.task-form textarea,
.task-form input[type="email"],
.task-form input[type="text"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  font-size: 1rem; /* 16px sprečava zumiranje na iOS-u */
  line-height: 1.5;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.task-form textarea { min-height: 136px; resize: vertical; }
.task-form ::placeholder { color: #8A8E84; opacity: 1; }
.task-form textarea:hover,
.task-form input[type="email"]:hover,
.task-form input[type="text"]:hover { border-color: var(--ink-muted); }
.task-form textarea:focus,
.task-form input[type="email"]:focus,
.task-form input[type="text"]:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.task-form [aria-invalid="true"] {
  border-color: var(--error) !important;
  background: var(--error-soft) !important;
}
.task-form [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15) !important; }

/* Izbor fajla */
.file-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-btn { border-style: dashed; }
.file-input:focus-visible + .file-btn { outline: 3px solid var(--ink); outline-offset: 3px; }
.file-chosen {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.file-chosen[hidden] { display: none; }
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Opcije (radio dugmad kao kartice) */
.choice-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  font-weight: 650;
  font-size: 0.975rem;
  line-height: 1.3;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.choice span::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.choice:hover span { border-color: var(--ink-muted); }
.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.choice input:checked + span::before {
  border-color: var(--on-accent);
  background: var(--on-accent);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.field.has-error .choice span { border-color: var(--error); }

.budget-amount { margin-top: 18px; max-width: 320px; }
.budget-amount:not([hidden]) { animation: fade-down 0.25s var(--ease); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 72px !important; }
.input-suffix span {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  pointer-events: none;
}
.field[data-field="budget_type"] > .field-help { margin-top: 14px; }

/* Honeypot (skriveno od ljudi) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Poruka o grešci pri slanju */
.form-alert {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--error);
  background: var(--error-soft);
  color: #7A1810;
  font-weight: 600;
}
.form-alert strong { display: block; margin-bottom: 2px; }
.form-alert[hidden] { display: none; }

.form-submit { display: grid; gap: 12px; }

/* Stanje učitavanja */
.spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(32, 35, 31, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn[aria-disabled="true"] { cursor: progress; opacity: 0.85; transform: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn-accent .spinner { border-color: rgba(255, 255, 255, 0.35); border-top-color: var(--on-accent); }

/* Uspešno slanje */
.form-success {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-block: clamp(16px, 4vw, 48px);
  text-align: center;
  outline: none;
  animation: fade-up 0.4s var(--ease);
}
.form-success[hidden] { display: none; }
.form-success .lead { margin-inline: auto; }
.success-icon {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.form-card.is-success .form-intro,
.form-card.is-success .task-form { display: none; }

/* K. Završni CTA */
.final-cta {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}
.final-cta .h2 { max-width: 760px; }
.final-cta .lead { color: #DCEBE3; margin-inline: auto; }
.final-cta .hint { color: #DCEBE3; font-weight: 600; }
.final-cta .btn-light { --btn-bg: var(--bg); --btn-fg: var(--ink); }
.final-cta .btn-light:hover { --btn-bg: #FFFFFF; }

/* 7) Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: calc(var(--section-y) / 2);
  padding-block: clamp(48px, 7vw, 80px) 28px;
  background: var(--ink);
  color: var(--bg);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.logo-light .logo-mark { background: var(--accent-light); color: var(--ink); }
.footer-claim {
  max-width: 520px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.footer-sub { margin-top: 14px; color: #C9CCC2; }
.footer-nav {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  color: #D9DBD3;
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--accent-light); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 245, 239, 0.14);
  font-size: 0.9rem;
  color: #A9ADA3;
}

/* Responzivnost --------------------------------------------------------- */
@media (max-width: 1080px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(32, 35, 31, 0.35);
  }
  .main-nav.is-open { display: flex; animation: fade-down 0.22s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    color: var(--ink);
  }
  .nav-list a:hover { background: none; }
  .main-nav .btn { min-height: 52px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-card-wrap { max-width: 560px; }

  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after {
    content: "↓";
    top: auto; bottom: -22px;
    right: auto; left: 40px;
  }

  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; margin-bottom: 8px; }

  .form-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .card-grid.cols-3,
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .note-card { grid-template-columns: 1fr; }
  .chip { padding: 11px 16px 11px 13px; font-size: 1rem; }
  .chip-grid { gap: 10px; }
  .choice-group { grid-template-columns: 1fr; }
  .budget-amount { max-width: none; }
  .hero-actions .btn { width: 100%; }
  .other-card .btn { width: 100%; }
  .final-cta .btn { width: 100%; max-width: 360px; }
  .hero-card { padding: 20px; }
  .hero-card-wrap { margin-right: 8px; }
  .hero-card-wrap::before { inset: 18px -8px -10px 18px; transform: rotate(1.5deg); }
  .form-card { border-radius: var(--radius); }
}

/* 8) Animacije i pristupačnost ---------------------------------------- */
@keyframes caret { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Blago pojavljivanje sekcija pri skrolovanju (samo kad JS radi) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .mock-caret { animation: none; }
}

@media (forced-colors: active) {
  .choice input:checked + span { outline: 3px solid CanvasText; }
  .btn { border-color: ButtonText; }
}
