/* ============================================
   Raditi.HR — Global Stylesheet
   Tokens · Reset · Type · Components · Layout
   ============================================ */

/* -------- Design Tokens -------- */
:root {
  --brand: #0E8A56;
  --brand-dark: #0a6e44;
  --primary: #171513;
  --bg-light: #D8E7E0;
  --border: #DDE9E4;
  --dark-elem: #38483E;
  --light-elem: #CED2D0;
  --bg-body: #F4F4F4;
  --white: #ffffff;
  --muted: #6b6c70;

  --container: 1120px;
  --container-pad: 24px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-pill-s: 26px;
  --shadow-soft: 0px 0px 16px rgba(0, 16, 1, 0.05);
  --shadow-card: 0px 6px 16px rgba(0, 0, 0, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 520ms;

  --header-h: 76px;
}

/* -------- Reset / Base -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--primary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  font-size: 24px;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
}
.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--primary);
}
h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; line-height: 120%; font-weight: bold;}
h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: bold;}
h3 { font-size: 40px; line-height: 120%; letter-spacing: -0.02em; font-weight: bold;}
h4 { font-size: 30px; line-height: 145%; font-weight: bold;}
h5 { font-size: 24px; line-height: 1.2; }
h6 { font-size: 18px; line-height: 1.3; }

p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--dark-elem); }
.p-mid { font-size: 18px; line-height: 1.6; color: var(--dark-elem); }
.p-reg { font-size: 16px; line-height: 1.6; color: var(--dark-elem); }
h1, h2, h3, h4, h5, h6,
p, .p-mid, .p-reg,
.feat-card,
.partner-card,
.faq__btn,
.doc {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.label { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}



/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-perf {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}
.section-sm { padding: 48px 0; }
.section-tight { padding: 160px 0px 80px 0px; }
.center-text { text-align: center; }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  min-width: 0;
}
.btn span:not(.icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn .icon { font-size: 20px; }
.btn-icon-mail { display: none; }
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-med) var(--ease);
}
.btn-icon:active { transform: translateY(1px); }
.btn-icon-secondary {
  background: var(--bg-light);
  border: 1px solid transparent;
  color: var(--brand);
}
.btn-icon-secondary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.btn-icon .icon {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--white); }
.btn-lg { padding: 16px 20px 16px 24px; font-size: 16px; }
.btn-lg + .btn-icon,
.cta-row .btn-icon {
  width: 56px;
  height: 56px;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cta-row_l {
   gap: 16px; 
}

/* -------- Chips -------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}
.chip-soft {
  background: 1px solid rgba(17, 138, 85, 0.2);
  border-color: transparent;
  color: var(--dark-elem);
  border: 1px solid rgba(17, 138, 85, 0.1);
}

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 24px;
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 16px 18px 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}
.site-header__logo { display: flex; align-items: center; margin-top: -1px; }
.site-header__logo img { height: 25px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 10px; }
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 8px;
}
.lang-switcher button,
.lang-switcher a {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-elem);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-switcher button.is-active,
.lang-switcher a.is-active {
  background: var(--bg-light);
  color: var(--brand);
}
.lang-switcher button:hover,
.lang-switcher a:hover { color: var(--primary); }

/* -------- Hero -------- */
.hero { padding: 80px 0px 0px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: center;
}
.hero__left {
  background: transparent;
  border-radius: var(--radius-xl);
  padding: 82px 0px;
  padding-right: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}
.hero__left h1 {
  letter-spacing: 0em;
  font-weight: 500;
    -webkit-text-stroke: 1.5px var(--primary);
}
.hero__left h1 .hero__rotator-word {
    -webkit-text-stroke: 1.5px var(--brand);
}
.hero__rotator-word {
  display: inline-block;
  max-width: 100%;
  color: var(--brand);
  vertical-align: baseline;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
  transition: opacity 280ms var(--ease), transform 340ms var(--ease);
  will-change: transform, opacity;
}
.hero__rotator-word.is-leaving {
  opacity: 0;
  transform: translate3d(0, -0.28em, 0);
}
.hero__rotator-word.is-entering {
  opacity: 0;
  transform: translate3d(0, 0.28em, 0);
  transition: none;
}
.hero__sub {
  max-width: 460px;
}

.top_48 {
   margin-top: 48px;
}

.hero__cta { align-self: flex-start; }

.hero__right {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 480px;
  aspect-ratio: 3 / 4;
  perspective: 900px;
  align-self: center;
  /* No container styling — each work-card is its own standalone card */
}
.work-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--dark-elem);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translate3d(26px, 0, 0) scale(0.992) rotate(0.6deg);
  transform-origin: 50% 70%;
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1) 60ms,
    transform 640ms cubic-bezier(0.25, 1, 0.5, 1) 60ms;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 1;
}
.work-card.is-entering {
  opacity: 0;
  transform: translate3d(26px, 0, 0) scale(0.992) rotate(0.6deg);
  z-index: 2;
}
.work-card.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 3;
}
.work-card.is-leaving {
  opacity: 0;
  transform: translate3d(-16px, 3px, 0) scale(0.992) rotate(-0.3deg);
  transition:
    opacity 300ms cubic-bezier(0.4, 0, 0.7, 0.2),
    transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.work-card__photo {
  position: absolute;
  inset: 0;
  background-color: #2a3530;
}
.work-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%);
}
.work-card__plate {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: var(--white);
  border-radius: var(--radius-pill-s);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow-wrap: break-word;
  word-break: normal;
}
.work-card__name {  font-weight: 500; color: var(--primary); }
.work-card__meta { color: var(--dark-elem); margin-top: 10px; }

/* -------- Marquee chips (full-bleed, edge-to-edge, no fade mask) -------- */
.marquee {
  margin-top: 120px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw); /* break out of .container — full viewport width */
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  /* 3 identical sets in HTML → translate by exactly 1 set (= -33.333%)
     gives a seamless loop because every chip[N] lands where chip[N+7] was. */
  animation: marquee 75s linear infinite;
  will-change: transform;
}
.marquee__track .chip {
  min-width: 298px;
  justify-content: center;
  background: #D8E7E0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .work-card,
  .hero__rotator-word {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
@media (max-width: 600px) {
  .marquee__track .chip { min-width: 0; }
}

/* -------- Avatar Stack (intro section) -------- */
.intro-stack {
  position: relative;
  width: 224px;
  height: 56px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}
.intro-stack__item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--bg-body);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scale(0.96);
  transform-origin: center;
  transition:
    opacity 220ms var(--ease),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--avatar-delay, 0ms);
  will-change: transform;
  backface-visibility: hidden;
}
.intro-stack__item.is-center {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}
.intro-stack.is-spread .intro-stack__item {
  opacity: 1;
  transform: translate3d(calc(-50% + var(--avatar-x, 0px)), 0, 0) scale(1);
}
.intro-stack__item:nth-child(1) { z-index: 1; }
.intro-stack__item:nth-child(2) { z-index: 2; }
.intro-stack__item:nth-child(3) { z-index: 3; }
.intro-stack__item:nth-child(4) { z-index: 4; }
.intro-stack__item:nth-child(5) { z-index: 5; }

.intro-headline {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* -------- Section title block -------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.section-head_l {
  margin-bottom: 64px;
}

.t_align_left{
  text-align: left;
}
.t_align_left h2{
  width: 100%;
}

.section-head--left {
  align-items: flex-start;
  text-align: left;
}

/* -------- Big feature card (section 4) -------- */
.feature-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.feature-banner__text {
  min-height: 520px;
  padding: 40px 96px 32px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.feature-banner__text .stack-lg {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.feature-banner__text .stack-lg p:first-of-type {
  margin-top: auto;
}
.feature-banner__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #1a1a1a;
  min-height: 520px;
  position: relative;
}

  .stack-lg h4 {
    margin-bottom: 48px;
  }
.feature-banner__media video,
.feature-banner__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-banner__media video:not([src]) {
  background: #1a1a1a;
}

/* -------- Horizontal scroll rail -------- */
.rail-wrap {
  position: relative;
  width: calc(100vw - max(var(--container-pad), calc((100vw - var(--container)) / 2)));
  max-width: none;
}
.rail {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 4px max(var(--container-pad), calc((100vw - var(--container)) / 2)) 24px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.rail.is-dragging * { pointer-events: none; }
.rail > * {
  flex: 0 0 auto;
  transform: translateX(var(--rail-edge-offset, 0px));
}
.rail.is-settling > * {
  transition: transform 360ms var(--ease);
}
/* On touch devices: no rubber-band transform, no JS scroll interference */
@media (hover: none) {
  .rail {
    cursor: default;
    touch-action: auto;
    user-select: auto;
    overscroll-behavior-x: auto;
  }
  .rail > * {
    transform: none !important;
    transition: none !important;
  }
}

.rail-progress {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  min-width: 120px;
  max-width: 100%;
  overflow: visible;
}
.rail-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 12px;
  top: -3px;
  width: var(--rail-progress-width, 15%);
  background: var(--brand);
  border-radius: var(--radius-pill);
  transform: translate3d(var(--rail-progress-x, 0px), 0, 0);
  will-change: transform;
}

.rail-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  width: min(100%, var(--container));
  /* .rail-wrap is full-bleed to the viewport edge — without this padding
     the right-hand arrow would touch (or get clipped by) the screen edge.
     Mirrors the container side padding so controls stay inside the visible grid. */
  padding-right: 0px;
}
.rail-arrows { display: flex; gap: 8px; }
.rail-arrow {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.rail-arrow:hover { background: var(--bg-light); }
.rail-arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.rail-arrow .icon { font-size: 30px;     font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 24;}

/* -------- Generic feature card (used in rails) -------- */
.feat-card {
  width: 545px;
  max-width: 80vw;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px 24px 24px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  align-content: start;
  column-gap: 16px;
  row-gap: 20px;
  box-shadow: var(--shadow-soft);
}
.feat-card__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.feat-card__icon .icon { font-size: 32px; }
.feat-card h5,
.feat-card h6 { font-size: 20px; align-self: center; }
.feat-card p {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--dark-elem);
}
.rail-wrap--icon-stack {
  /* Spacing below the feature-banner that sits above this rail. */
  margin-top: 48px;
}
.rail-wrap--icon-stack .feat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}
.rail-wrap--icon-stack .feat-card__icon {
  margin-bottom: 4px;
}
.rail-wrap--icon-stack .feat-card h5,
.rail-wrap--icon-stack .feat-card h6 {
  align-self: auto;
}

/* -------- Partner card (rail) -------- */
.rail-wrap--partners .rail {
  gap: 32px;
  padding-top: 8px;
}
.partner-card {
  width: min(1280px, calc(100vw - (var(--container-pad) * 2)));
  min-height: 560px;
  max-width: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 0.38fr) minmax(520px, 0.7fr);
  grid-template-rows: auto 1fr auto;
  box-shadow: var(--shadow-soft);
}
.partner-card__media {
  grid-column: 2;
  grid-row: 1 / -1;
  height: 100%;
  min-height: 560px;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  overflow: hidden;
  background-color: var(--light-elem);
}
.partner-card .chip {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  margin: 40px 0 0 40px;
  padding: 14px 24px;
  background: var(--bg-light);
  color: var(--brand);
}
.partner-card .chip-dot { display: none; }
.partner-card h5 {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  margin: 32px 40px;
  font-size: 32px;
  line-height: 1.25;
  max-width: 380px;
}
.partner-card p {
  grid-column: 1;
  grid-row: 3;
  margin: 0 40px 44px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark-elem);
  max-width: 430px;
}

/* -------- Big image section -------- */
.big-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background-color: var(--light-elem);
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.12);
}

/* -------- Steps (sticky stacking cards) -------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.step-card {
  position: sticky;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.15fr);
  column-gap: 48px;
  row-gap: 32px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  align-items: center;
}
.step-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  grid-column: 1 / -1;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.step-card__title { font-size: 26px; font-weight: 500; }
.step-card__num {
  font-size: 22px;
  background: var(--brand);
  color: var(--bg-light);
  padding: 10px;
  font-weight: 500;
      width: 64px;
    height: 64px;
    text-align: center;
    border-radius: 100px;
    vertical-align: middle;
    line-height: 200%;
}
.step-card__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1 / 2;
}
.step-card__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--dark-elem);
}
.step-card__list .icon {
  font-size: 18px;
  color: var(--brand);
}

.icon_l, .step-card__list .icon_l{
  font-size: 32px;
  color: var(--dark-elem);
}



.step-card__media {
  grid-column: 2 / 3;
  grid-row: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--light-elem);
  align-self: center;
}

/* -------- FAQ accordion -------- */
.faq {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--t-fast) var(--ease);
}
.faq__item.is-open { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08); }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 148px;
  padding: 42px 64px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  text-align: left;
  gap: 32px;
  transition: background var(--t-fast) var(--ease);
}
.faq__btn:hover h4 { text-decoration: underline; }
.faq__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
}
.faq__icon .icon { font-size: 28px; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__panel {
  height: 0;
  overflow: hidden;
  contain: layout paint;
}
.faq__panel-inner {
  margin: 0 64px 46px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  font-size: 20px;
  line-height: 1.55;
  color: var(--dark-elem);
}

/* -------- Final CTA card -------- */
.final-cta {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0px 4px 84px rgba(14, 138, 86, 0.2);
}
.final-cta h3 { max-width: 448px; }
.final-cta p { max-width: 640px; }

.final-cta .cta-row {
  margin-top: 24px;
  justify-content: center;
}
.final-cta .cta-row .btn-lg {
  margin-top: 0;
}
.final-cta .btn-icon-secondary {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.final-cta .btn-icon-secondary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.brush_1{
    position: absolute;
    bottom: -4vw;
    left: -4vw;
}
.brush_2{
    position: absolute;
    right: -5vw;
    top: -4vw;
}

/* -------- Footer -------- */
.site-footer {
  padding: 0 0 72px;
  margin-top: 24px;
}
.site-footer__inner {
  max-width: none;

  padding: 56px 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 95%;
}
.site-footer p { font-size: 18px; color: var(--primary); }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  min-width: 0;
}
.site-footer__links a {
  font-size: 16px;
  color: var(--dark-elem);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
  max-width: 100%;
  overflow-wrap: break-word;
}
.site-footer__links a:hover { color: var(--primary); }

/* -------- Doc page (privacy / terms) -------- */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 0 96px;
}
.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color var(--t-fast) var(--ease);
}
.doc__back:hover { color: var(--brand); }
.doc__back .icon { font-size: 18px; }

.doc__head { margin-bottom: 32px; }
.doc__head h1 { font-size: 48px; line-height: 1.1; margin-bottom: 12px; font-weight: bold; }
.doc__meta { font-size: 14px; color: var(--muted); }

.doc__org {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 56px;
}
.doc__org-name { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.doc__org-line { font-size: 15px; color: var(--dark-elem); margin: 0 0 2px; }

.doc__group {
  margin: 56px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.doc__group h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0;
}

.doc__section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  /* Grid: badge + title share row 1 inline; everything else spans full width below */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 20px;
  row-gap: 16px;
}
.doc__section:first-of-type,
.doc__group + .doc__section { border-top: 0; padding-top: 8px; }
.doc__section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg-light);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;            /* row-gap of grid handles spacing now */
}
.doc__section h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}
/* Paragraphs / lists go on their own rows spanning the full width */
.doc__section > p,
.doc__section > ul {
  grid-column: 1 / -1;
}
.doc__section p {
  font-size: 16px;
  color: var(--dark-elem);
  line-height: 1.65;
  margin: 0 0 12px;
}
.doc__section ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.doc__section ul li {
  font-size: 16px;
  color: var(--dark-elem);
  line-height: 1.6;
  padding-left: 22px;
  margin-bottom: 8px;
  position: relative;
}
.doc__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-pill);
}

@media (max-width: 600px) {
.rail-controls{
padding-right: max(var(--container-pad), calc((100vw - var(--container)) / 2));
}

.chip{padding: 6px 16px;
font-size: 14px;}


.feat-card__icon .icon{
      font-size: 24px;
}

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



.feat-card__icon {
    width: 56px;
    height: 56px;  }

    .big-image {
        aspect-ratio: 16 / 16 !important;
    }

    .big-image img {
     object-position: 20% center;
    }

  .doc { padding: 32px 0 64px; }
  .doc__head h1 { font-size: 34px; }
  .doc__org { padding: 18px 20px; margin-bottom: 32px; }
  .doc__section { padding: 24px 0; }
  .doc__section h3 { font-size: 20px; }
  .doc__section { column-gap: 14px; row-gap: 12px; }
  .doc__section-num { width: 48px; height: 48px; font-size: 16px; }
  .doc__group { margin: 32px 0 16px; }
}

.rail-wrap--icon-stack{
  margin-top: 20px;
}
.rail-arrow .icon {
    font-size: 24px;}

.rail-arrow {
    width: 56px;
    height: 56px;  }

.section-sm {
    padding: 24px 0;
}

.reveal.is-in{
  gap:  24px;
}



/* -------- Cookie banner -------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: calc(100% - 48px);
  max-width: 480px;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform 520ms var(--ease), opacity 320ms var(--ease);
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.3;
}
.cookie-banner__text {
  font-size: 16px;
  color: var(--dark-elem);
  line-height: 1.55;
  margin: 0 0 12px;
}
.cookie-banner__text:last-of-type { margin-bottom: 18px; }
.cookie-banner__list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--dark-elem);
}
.cookie-banner__list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
  margin-bottom: 4px;
}
.cookie-banner__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-pill);
}
.cookie-banner a {
  color: var(--brand);
  text-decoration: underline;
}
.cookie-banner a:hover { color: var(--brand-dark); }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn {
  flex: 1 1 140px;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 20px 20px 18px;
  }
  .cookie-banner__title { font-size: 18px; }
  .cookie-banner__text,
  .cookie-banner__list { font-size: 14px; }
}

/* -------- Reveal-on-scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1180px) and (min-width: 961px) {
  .container {
    max-width: 100%;
    padding: 0 28px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 38vw, 400px);
    gap: clamp(20px, 3vw, 40px);
  }

  .hero__left {
    min-width: 0;
    min-height: 0;
    padding: 64px 0;
    padding-right: clamp(24px, 4vw, 48px);
    justify-content: center;
  }

  .hero__left h1 {
    font-size: clamp(44px, 4.4vw, 50px);
    line-height: 1.14;
  }

  .hero__right {
    min-height: 0;
    max-height: 560px;
  }

  .work-card {
    height: 100%;
  }

  .work-card__plate {
    padding: 18px 14px;
  }
}

@media (max-width: 960px) {
  h1 { font-size: 40px; }
  .hero h1{
       text-wrap-style: balance;
  }
  h2, h3 { font-size: 32px; }
  h4 { font-size: 26px; }

  .section { padding: 56px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 16px; }
  .hero__left { padding: 40px 28px; min-height: auto; }
  .hero__right { min-height: 480px; aspect-ratio: auto; max-width: 420px; margin: 0 auto; width: 100%; }

  .feature-banner { grid-template-columns: 1fr; gap: 16px; }
  .feature-banner__text { min-height: 360px; padding: 28px 24px; }
  .feature-banner__media { min-height: 0; aspect-ratio: 16 / 10; }
  .partner-card {
    --partner-card-pad: 24px;
    width: calc(100vw - (var(--container-pad) * 2));
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
  }
  .partner-card__media {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }
  .partner-card .chip {
    grid-row: 2;
    align-self: start;
    justify-self: start;
    margin: 28px var(--partner-card-pad) 0;
  }
  .partner-card h5 {
    grid-row: 3;
    align-self: start;
    justify-self: start;
    margin: 24px var(--partner-card-pad) 0;
    font-size: 26px;
    max-width: calc(100% - (var(--partner-card-pad) * 2));
  }
  .partner-card p {
    grid-row: 4;
    align-self: start;
    justify-self: start;
    margin: 14px var(--partner-card-pad) 28px;
    font-size: 16px;
    max-width: calc(100% - (var(--partner-card-pad) * 2));
  }

  .step-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .step-card__head { grid-column: 1; }
  .step-card__list { grid-column: 1; grid-row: auto; }
  .step-card__media {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
    margin-top: 16px;
  }
  .faq { gap: 16px; }
  .faq__btn {
    min-height: 112px;
    padding: 28px 32px;
    font-size: 22px;
    gap: 20px;
  }
  .faq__icon { width: 52px; height: 52px; }
  .faq__panel-inner {
    margin: 0 32px 32px;
    padding-top: 24px;
    font-size: 17px;
  }

  .big-image { aspect-ratio: 16 / 10; }

  .site-header__inner { padding: 8px 8px 8px 19px; }
  .site-header__logo img { height: 18px; }
  .site-header__nav { gap: 8px; }
  .lang-switcher { gap: 2px; }
  .lang-switcher button,
  .lang-switcher a { min-width: 38px; min-height: 38px; padding: 0 8px; font-size: 12px; }
}

@media (max-width: 600px) {



    .partner-card {
      --partner-card-pad: 16px;
    }

    .partner-card .chip {
      margin: 16px var(--partner-card-pad) 0;
      padding: 4px 12px;
      font-size: 14px;
    }

    .partner-card h5 {
      margin: 16px var(--partner-card-pad) 0;
    }

    .partner-card p {
      margin: 12px var(--partner-card-pad) 28px;
    }


  :root { --radius-xl: 16px; }

  h1 { font-size: 34px; line-height: 1.1; }
  h2, h3 { font-size: 28px; }
  h4 { font-size: 22px; }
  h5 { font-size: 20px; }
  .p-mid { font-size: 16px; }
  h1, h2, h3, h4, h5, h6,
  .doc,
  .feat-card,
  .partner-card,
  .faq__btn {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .hero {
    --hero-content-inset: 16px;
    padding: 16px 0;
  }
  .hero__left { padding: 32px 16px; border-radius: var(--radius-lg); }
  .hero__left h1 { min-height: var(--hero-title-reserve, 3.3em); }
  .top_48{
    margin-top: 32px;
  }
  .hero__left .cta-row{
    margin-top: 8px;
  }
  .hero__grid {
        gap: 8px;
    }
  .hero__rotator-word {
    display: block;
    min-height: 1.1em;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    -webkit-hyphens: manual;
  }
  .hero__right {
    width: calc(100% - (var(--hero-content-inset) * 2));
    max-width: calc(420px - (var(--hero-content-inset) * 2));
    min-height: 420px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
  }
      .section {
        padding: 48px 0;
    }

    .section_partners h2{
      width: 320px;
      max-width: 90%;
      margin-left: auto;
      margin-right: auto;
    }

.section-perf{
  padding-top: 0px;
}

.step-card__list {
    gap: 12px;}

.icon_l, .step-card__list .icon_l {
    font-size: 18px;  }

    .step-card__num{
      width: 48px;
      height: 48px;
          font-size: 18px;
              line-height: 160%;
    }

    .section_how_it_works{
     padding-bottom: 32px; 
    }

    .faq__icon .icon {
    font-size: 20px;
}

     .section_how_it_works h2{
      margin-bottom: 16px;
     }

    .section_how_it_works, .section_partners{
  padding-top: 16px;
}
    .section-tight{
      padding-bottom: 16px;
    }
    .section-head{
      margin-bottom: 24px;margin-top: 8px;
    }
    .intro-headline{
    max-width: 90%;
    width: 310px;
    }
  .marquee{margin-top: 64px;}
  .feature-banner__media { aspect-ratio: 1 / 1; }

  .container { padding: 0 16px; }
  .rail-wrap { --container-pad: 16px; }
  .rail,
  .rail-wrap--partners .rail { gap: 16px; }
  .site-header { top: 8px; padding: 0 12px; }
  .site-header__nav > .lang-switcher { order: 1; }
  .site-header__nav > .hero__cta { order: 2; }
  .site-header__nav > .hero__cta span:not(.icon) { display: none; }
  .site-header__nav > .hero__cta {
    width: 48px;
    height: 48px;
    padding: 16px;
  }
  .site-header__nav > .hero__cta .btn-icon-arrow { display: none; }
  .site-header__nav > .hero__cta .btn-icon-mail {
    display: block;
    font-size: 16px;
  }
  .btn-icon,
  .cta-row .btn-icon { width: 48px; height: 48px; }

  .cta-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cta-row .btn-lg {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 13px 12px 13px 16px;
    font-size: 14px;
  }

  .cta-row .btn-lg .icon { font-size: 16px; }

  .feat-card { width: 280px; padding: 20px; }
  .partner-card { width: calc(100vw - 32px); }
  .faq__btn {
    min-height: 92px;
    padding: 24px;
    font-size: 19px;
  }
  .faq__icon { width: 44px; height: 44px; }
  .faq__panel-inner {
    margin: 0 24px 26px;
    font-size: 16px;
  }
  .final-cta { padding: 40px 20px; }
  .site-footer {
    padding: 24px 0 40px;
    margin-top: 0px;
  }
  .site-footer__inner {
    min-height: 0;
    padding: 28px 24px 32px;
    align-items: flex-start;
    gap: 18px;
  }
  .site-footer p { font-size: 15px; }
  .site-footer__links {
    width: 100%;
    gap: 10px 16px;
  }
  .site-footer__links a { font-size: 14px; }
  .step-card {
    padding: 20px;
    top: calc(var(--header-h) + 16px) !important;
  }
  .step-card:nth-child(2) { top: calc(var(--header-h) + 24px) !important; }
  .step-card:nth-child(3) { top: calc(var(--header-h) + 32px) !important; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .rail-wrap { --container-pad: 12px; }
  .hero { --hero-content-inset: 20px; }

      .hero__right {
        min-height: 400px;}

  .site-footer {
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .site-footer__inner {
    padding: 24px 16px 28px;
  }
  .site-footer__links {
    gap: 8px 14px;
  }

  .site-header { padding: 0 8px; }
  .site-header__inner {
    gap: 6px;
    padding: 6px 6px 6px 16px;
  }
  .site-header__logo {
    min-width: 0;
    flex: 0 1 auto;
  }
  .site-header__logo img {
    height: 16px;
    max-width: 86px;
  }
  .site-header__nav {
    flex: 0 0 auto;
    gap: 4px;
  }


  .lang-switcher {
    gap: 0;
    padding: 3px;
  }
  .lang-switcher button,
  .lang-switcher a {
    min-width: 32px;
    min-height: 34px;
    padding: 0 5px;
    font-size: 11px;
  }
  .site-header__nav > .hero__cta {
    width: 42px;
    height: 42px;
    padding: 13px;
  }

  .hero__left { padding: 30px 20px; }
  .hero__right { overflow: hidden; }
  .work-card,
  .work-card.is-entering {
    transform: translate3d(10px, 0, 0) scale(0.992) rotate(0.4deg);
  }
  .work-card.is-leaving {
    transform: translate3d(-10px, 2px, 0) scale(0.992) rotate(-0.3deg);
  }
  .hero__left .cta-row .btn-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 340px) {

      .hero__right {
        min-height: 360px;}

  .hero { --hero-content-inset: 12px; }
  .hero__left { padding-left: 12px; padding-right: 12px; }
  .site-footer { padding-top: 20px; padding-bottom: 32px; }
  .site-footer__inner { padding: 24px 16px 28px; }
  .site-footer__links { gap: 8px 14px; }
}

/* =====================================================================
   Focus accessibility — :focus-visible only (keyboard nav), invisible
   on mouse click. Idle/hover stanja se NE mijenjaju. Outline u brand
   boji s offsetom da se ne prelama preko sadržaja kartice.
   ===================================================================== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Round/pill elements deserve a slightly bigger offset so the ring
   doesn't visually clip into the existing border-radius. */
.btn:focus-visible,
.btn-icon:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.lang-switcher a:focus-visible,
.rail-arrow:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
/* Cards (work, feat, partner, step, faq) get a softer offset */
.work-card:focus-visible,
.feat-card:focus-visible,
.partner-card:focus-visible,
.step-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.faq__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-radius: var(--radius-md);
}
/* Cookie banner sits on white card → primary outline reads better */
.cookie-banner__actions .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
/* Doc page back link */
.doc__back:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}
/* Logo link in header */
.site-header__logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
  border-radius: var(--radius-sm);
}
/* Footer legal links */
.site-footer__links a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  *:focus-visible { transition: outline-offset 120ms var(--ease); }
}
