/* Početna (one-page) — dizajn: Main.html (1440) i PocetnaMobilni.html (390).
   Hero je za sada tamni preliv (fotografija još nije izabrana — 10-otvorena-pitanja.md). */

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background: var(--hero-bg);
}

/* Mesto za buduću fotografiju desno; levo ostaje tamno za tekst */
.hero::after {
  top: 0;
  bottom: 0;
  right: 0;
  width: 58%;
  background: var(--hero-fade);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  min-height: 680px;
  padding-top: clamp(72px, 10vw, 152px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

.hero__title {
  max-width: 11em;
  text-wrap: balance;
}

.hero__title-muted {
  color: var(--muted);
}

.hero__lead {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Izdvojeno
   ============================================================ */
.featured {
  padding-top: var(--section-space);
}

.featured__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ============================================================
   RUO sekcija
   ============================================================ */
.ruo-section {
  margin-top: var(--section-space);
  padding: var(--section-space) 0;
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ruo-section__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.ruo-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
}

.ruo-section__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 680px;
}

.ruo-section__lead {
  color: var(--muted);
}

.ruo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ruo-grid__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--bg);
}

.ruo-grid__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ruo-grid__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.ruo-grid__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--muted);
}

.ruo-section__note {
  padding: 16px 20px;
  line-height: 1.6;
}

/* ============================================================
   Kako poručiti
   ============================================================ */
.how-to {
  padding: var(--section-space) 0;
}

.how-to__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
}

.steps__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.steps__item--active {
  margin-top: -1px;
  border-top: 2px solid var(--accent);
}

.steps__number {
  font-family: var(--font-display);
  font-size: 56px;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.steps__item--active .steps__number {
  color: var(--text);
}

.steps__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.steps__desc {
  max-width: 340px;
  line-height: 1.6;
  color: var(--muted);
}

.how-to__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* ============================================================
   Telefon (390 px)
   ============================================================ */
@media (max-width: 640px) {
  .hero__inner {
    min-height: 640px;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 32px;
  }

  .hero::before {
    background: var(--hero-bg-mobile);
  }

  .hero::after {
    top: auto;
    left: 0;
    width: auto;
    height: 70%;
    background: var(--hero-fade-mobile);
  }

  .hero__title {
    line-height: 1;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .featured__inner {
    gap: 24px;
  }

  .ruo-section {
    padding: 56px 0;
  }

  .ruo-section__inner {
    gap: 28px;
  }

  .ruo-section__intro {
    gap: 14px;
  }

  .ruo-section .badge--ruo-large {
    height: 24px;
    padding: 0 9px;
    border-radius: 12px;
    font-size: 11px;
  }

  .ruo-section .h2 {
    font-size: 28px;
    line-height: 1.15;
  }

  .ruo-section__lead {
    font-size: 15px;
  }

  .ruo-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    background: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }

  .ruo-grid__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    background: none;
    border-bottom: 1px solid var(--line);
  }

  .ruo-grid__text {
    gap: 4px;
  }

  .ruo-grid__title {
    font-size: 15px;
  }

  .ruo-grid__desc {
    line-height: 1.55;
  }

  .ruo-section__note {
    gap: 10px;
    padding: 14px 16px;
    font-size: var(--fs-xs);
    line-height: 1.55;
  }

  .ruo-section__note .icon {
    width: 18px;
    height: 18px;
  }

  .how-to {
    padding: 64px 0;
  }

  .how-to__inner {
    gap: 32px;
  }

  .how-to .h2 {
    font-size: 28px;
    line-height: 1.15;
  }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding-top: 16px;
  }

  .steps__item--active {
    margin-top: 0;
  }

  .steps__number {
    font-size: 36px;
  }

  .steps__text {
    gap: 4px;
  }

  .steps__title {
    font-size: 18px;
  }

  .steps__desc {
    max-width: none;
    font-size: 15px;
  }

  .how-to__actions .button {
    width: 100%;
  }
}
