/* ============================================================
   SECTION 6 — PROBLEMI (Rješavamo probleme)
   ============================================================
   BG: #ffffff, white text on white bg — dark text
   Same spacing as section 2/5. Centered.
   ============================================================ */

.section-problemi {
  background: #f4f4f4;
  width: 100%;
  width: 100%;
  margin: 0 auto;
  padding-top: 90px;
  padding-bottom: 120px;
}

/* ── TAG BUTTON (if needed later) ── */

/* ── HEADING — centered, one line ── */
.problemi__heading {
  margin: 0 0 50px 0;
  padding: 0;
  font-weight: var(--fw-regular);
  display: block;
  text-align: center;
}

.problemi__heading-line {
  display: block;
}

.problemi__heading-line .h2-mont {
  font-family: var(--font-mont);
  font-size: var(--fs-h2-mont);
  font-weight: 400;
  line-height: var(--lh-h2-mont);
  letter-spacing: -0.07em;
  color: #111111;
}

.problemi__heading-line .h2-dutch {
  font-family: var(--font-dutch);
  font-size: var(--fs-h2-dutch);
  font-weight: 400;
  font-style: italic;
  line-height: var(--lh-h2-mont);
  letter-spacing: var(--ls-default);
  color: #111111;
}

.problemi__heading-line .h2-anchor {
  font-family: var(--font-mont);
  font-size: var(--fs-h2-mont);
  font-weight: 400;
  line-height: var(--lh-h2-mont);
  color: transparent;
  user-select: none;
  pointer-events: none;
  width: 0;
  overflow: hidden;
  display: inline-block;
}

/* ── SUB TEXT — centered ── */
.problemi__sub {
  font-family: var(--font-mont);
  font-size: calc(var(--fs-p) * 0.96);
  font-weight: var(--fw-regular);
  line-height: var(--lh-p);
  letter-spacing: var(--ls-default);
  color: #111111;
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.section-problemi.will-animate .problemi__heading,
.section-problemi.will-animate .problemi__sub {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.section-problemi.anim-visible .problemi__heading {
  opacity: 1;
}

.section-problemi.anim-visible .problemi__sub {
  opacity: 0.9;
  transition-delay: 0.12s;
}


/* ══════════════════════════════════════════════════
   PROBLEMI GRID — 3×2
   448px wide boxes, 14px gap, 12px radius, 20px padding
   Same as sections 3 & 4
   ══════════════════════════════════════════════════ */

.problemi__grid {
  display: grid;
  grid-template-columns: repeat(3, 448px);
  grid-template-rows: repeat(2, 247px);
  gap: 14px;
  width: 1372px;   /* 3×448 + 2×14 */
  margin: 70px auto 0;
}

.pr-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pr-box__header {
  display: block;
  font-family: var(--font-mont);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: var(--ls-default);
  color: #111111;
  line-height: 1.05;
}

.pr-box__sub {
  margin-top: 20px;
  font-family: var(--font-mont);
  font-size: 13.9px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-default);
  color: #555555;
  line-height: 1.5;
}

/* ── BOX 6 CTA — same as section 4 box 1 but black bg, white text ── */
.pr-box__cta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mont);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-default);
  color: #ffffff;
  background: #111111;
  border: none;
  border-radius: 5px;
  padding: 12px 25px;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  line-height: 1.2;
  text-decoration: none;
}

.pr-box__cta .btn-track {
  position: relative;
  display: block;
  height: 1.2em;
  overflow: hidden;
}

.pr-box__cta .btn-track__inner {
  display: block;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.pr-box__cta .btn-track__inner > span {
  display: block;
  height: 1.2em;
  line-height: 1.2;
}

.pr-box__cta:hover .btn-track__inner {
  transform: translateY(-1.2em);
}

/* Shift content up to make room for button */


/* ── NUMBER BUTTON — top left, same as section 4 ── */
.pr-box__num {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: #d2d2d2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mont);
  font-size: 13.2px;
  font-weight: var(--fw-medium);
  color: #000000;
  text-decoration: none;
  z-index: 2;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pr-box__num:hover {
  background: #111111;
  color: #ffffff;
}

/* ── Box 6 button — flow layout so gap matches header→sub gap ── */
.pr-box--6 .pr-box__cta {
  position: static;
  margin-top: 20px;
}

/* ── GRID FADE UP ── */
.section-problemi.will-animate .problemi__grid {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s ease-out 0.2s, transform 1.4s ease-out 0.2s;
}

.section-problemi.anim-visible .problemi__grid {
  opacity: 1;
  transform: translateY(0);
}
