/* Sokol Media — svijetla tema, plavo-indigo akcenti, Outfit + Literata */

:root {
  --bg: #eef2f8;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #94a3b8;
  --border: #e2e8f0;

  --accent: #ea580c;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --primary: #1d4ed8;
  --primary-soft: rgba(29, 78, 216, 0.1);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.12);

  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 10px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.15);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1120px;

  --font-body: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Literata', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 100% -10%, rgba(29, 78, 216, 0.07), transparent 55%),
    radial-gradient(700px 380px at 0% 30%, rgba(234, 88, 12, 0.06), transparent 50%);
  color: var(--text);
  line-height: 1.65;
}

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(29, 78, 216, 0.18);
  color: var(--text);
}

:where(a, button, input, textarea, select, summary):focus { outline: none; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 10px;
}

ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}

/* ——— Sticky CTA ——— */
.sticky-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1200;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: transform 220ms ease, opacity 220ms ease;
}

.sticky-cta.is-hidden {
  opacity: 0;
  transform: translateY(16px);
}

.sticky-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-cta__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sticky-cta__badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6366f1);
}

.sticky-cta__text {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.sticky-cta__btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.sticky-cta__btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.sticky-cta__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sticky-cta__close:hover { background: var(--border); color: var(--text); }

@media (max-width: 640px) {
  .sticky-cta__text { white-space: normal; line-height: 1.3; font-size: 13px; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.reveal--in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.header-mid {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}

.logo__mark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo__brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

.nav__link[aria-current="page"]::after { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.4);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-mobile { display: none; }
.nav-mobile.is-open { display: block; }
.nav-mobile__panel {
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
}
.nav-mobile__list { display: grid; gap: 8px; }

.nav-mobile__cta {
  padding: 12px 0 0;
  margin-top: 4px;
}

.header-cta--block {
  display: flex !important;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.nav-mobile__link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav-mobile__link:hover { border-color: var(--primary); color: var(--text); }

.page {
  padding-top: 78px;
}

/* ——— Hero (home) ——— */
.hero {
  position: relative;
  overflow: hidden;
}

.hero--home .hero__bg {
  background:
    linear-gradient(180deg, #dbeafe 0%, rgba(238, 242, 248, 0) 65%),
    linear-gradient(135deg, rgba(29, 78, 216, 0.06) 0%, transparent 50%),
    var(--bg);
  filter: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Subpage hero: light wash over image */
.hero--page {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero--page .hero__bg {
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.hero--page .hero__content {
  padding-top: 40px;
  padding-bottom: 32px;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 0 36px;
}

.hero-home {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 36px;
  align-items: center;
}

.hero-home__text { max-width: 38rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.hero-stat {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-stat__num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.hero-stat__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.hero-home__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  max-height: 420px;
}

.hero-home__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(8px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hero-chip span:first-child { font-size: 16px; }

/* Legacy hero grid (inner pages) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  color: var(--text);
}

.h1 em {
  font-style: italic;
  color: var(--primary);
}

.lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--muted-2);
  box-shadow: var(--shadow);
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.05);
  border-color: transparent;
}

.btn--primary::after { display: none; }

.hero-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-side__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-side__list { margin-top: 14px; display: grid; gap: 10px; }

.hero-side__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.hero-side__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(29, 78, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hero-side__label { font-weight: 700; font-size: 15px; color: var(--text); }
.hero-side__desc { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ——— Sections ——— */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--band {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
  text-align: center;
}

.section-head--left {
  text-align: left;
}

.section-head--left .section-head__sub {
  margin-left: 0;
}

.section-head__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  color: var(--text);
}

.section-head__sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento__item {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.bento__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento__item--wide {
  grid-column: span 3;
}

.bento__item--accent {
  background: linear-gradient(145deg, #eff6ff 0%, var(--surface) 55%);
  border-color: rgba(29, 78, 216, 0.2);
}

.bento__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.bento__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--text);
}

.bento__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.bento__link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bento__link:hover { text-decoration: underline; }

/* Legacy cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  border: 1px solid rgba(13, 148, 136, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 8px;
  color: var(--primary);
}

.card__text { margin: 0; color: var(--muted); font-size: 15px; }

.card__link {
  margin-top: 14px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--text);
}

.panel p { margin: 0; color: var(--muted); }

.feature-list { margin-top: 16px; display: grid; gap: 10px; }

.feature { display: flex; gap: 12px; align-items: flex-start; }

.feature__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature__text { color: var(--muted); font-size: 15px; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 999px;
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
}

.timeline__num {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.timeline__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 6px 0 8px;
  color: var(--text);
}

.timeline__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Legacy steps (fallback) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step__num {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step__text { margin: 0; color: var(--muted); font-size: 14px; }

.quote {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quote__stars { color: var(--accent); letter-spacing: 0.12em; }

.quote__text {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
}

.quote__by {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.faq { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }

.faq-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.form { display: grid; gap: 16px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.check input { margin-top: 3px; accent-color: var(--primary); }
.check span { color: var(--muted); font-weight: 600; font-size: 14px; }

.form-status {
  display: none;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.form-status.is-visible { display: block; }

.form-status--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-status--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.footer {
  padding: 48px 0 28px;
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-company {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.footer h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}

.footer p, .footer a { color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer a:hover { color: var(--primary); }

.footer__links { display: grid; gap: 8px; }

.footer .logo__mark { color: var(--primary); }
.footer .logo__brand { color: var(--text); }

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-2);
}

.legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-links a { color: var(--muted-2); }
.legal-links a:hover { color: var(--primary); }

.cta-strip {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 50%, #4338ca 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-strip .section-head__kicker { color: #fed7aa; }
.cta-strip .section-head__title { color: #fff; margin-top: 6px; }
.cta-strip .section-head__sub { color: rgba(255, 255, 255, 0.85); max-width: 480px; }

.cta-strip .btn {
  background: #fff;
  color: var(--primary);
  border-color: transparent;
  font-weight: 800;
}

.cta-strip .btn--primary {
  background: var(--accent);
  color: #fff;
}

.cta-strip .btn:hover { filter: brightness(1.08); }

.cta-strip .btn--ghost {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}

.cta-strip .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  filter: none;
}

@media (max-width: 980px) {
  /* Više zraka od ivice ekrana u fiksnom headeru (tablet + mobitel) */
  .site-header .container {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }

  .header-mid {
    display: none;
  }
  .hero-home {
    grid-template-columns: 1fr;
  }
  .hero-home__visual { max-height: 320px; aspect-ratio: 16/10; }
  .hero-stats { grid-template-columns: 1fr; }
  .bento__item,
  .bento__item--wide {
    grid-column: span 6;
  }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile { display: none; }
  .cta-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-strip > div:last-child {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
  }

  /* prostor da zadnji sadržaj ne bude ispod sticky trake */
  .page {
    padding-bottom: 100px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: max(22px, env(safe-area-inset-left, 0px));
    padding-right: max(22px, env(safe-area-inset-right, 0px));
  }

  .site-header .container {
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }

  .page {
    padding-top: 72px;
    padding-bottom: 108px;
  }

  .section {
    padding: 42px 0;
  }

  .section--tight {
    padding: 32px 0;
  }

  .hero__content {
    padding: 32px 0 28px;
  }

  .hero--page .hero__content {
    padding-top: 26px;
    padding-bottom: 22px;
  }

  .hero-home {
    gap: 24px;
  }

  .hero-actions {
    margin-top: 20px;
    gap: 10px;
  }

  .hero-stats {
    margin-top: 22px;
    gap: 12px;
  }

  .hero-stat {
    padding: 14px 16px;
  }

  .hero-chips {
    margin-top: 22px;
    padding-top: 20px;
    gap: 8px;
  }

  .hero-chip {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero-home__badge {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .h1 {
    font-size: clamp(1.55rem, 5.8vw, 2.1rem);
    margin: 10px 0 12px;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head__title {
    margin: 8px 0 10px;
  }

  .section-head__sub {
    font-size: 0.98rem;
  }

  .panel {
    padding: 18px 16px;
  }

  .bento__item {
    padding: 18px 16px;
  }

  .bento {
    gap: 12px;
  }

  .card {
    padding: 18px 16px;
  }

  .cards {
    gap: 12px;
  }

  .quote {
    padding: 18px 16px;
  }

  .cta-strip {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .timeline {
    padding-left: 22px;
    max-width: none;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline__item::before {
    left: -20px;
  }

  .faq-item {
    padding: 16px 14px;
  }

  .footer {
    padding: 36px 0 28px;
    margin-top: 36px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .logo__mark {
    font-size: 18px;
  }

  .logo__brand {
    font-size: 14px;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-inner {
    gap: 8px;
    padding: 12px 0;
  }

  .sticky-cta {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta__inner {
    padding: 10px 12px;
    gap: 10px;
    align-items: flex-start;
  }

  .sticky-cta__right {
    flex-shrink: 0;
    margin-left: auto;
  }

  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checkboxes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .container {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }

  .site-header .container {
    padding-left: max(22px, env(safe-area-inset-left, 0px));
    padding-right: max(22px, env(safe-area-inset-right, 0px));
  }

  .header-cta {
    padding: 8px 10px;
    font-size: 10px;
  }

  .logo__brand {
    max-width: 36vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
