/* Block: Statistika — a light, quiet strip right below the hero */
.rw-block-stats { padding: 0 0 8px; background: #fff; }
/* Right below the hero: the hero ends closer, so the strip reads as its foot */
.rw-block-hero:has(+ .rw-block-stats) { padding-bottom: 32px; }
.rw-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); background: var(--rw-soft); }
.rw-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 16px 18px; }
.rw-stat dd { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--rw-dark); font-variant-numeric: tabular-nums; }
.rw-stat dt { font-size: .9rem; line-height: 1.35; color: var(--rw-muted); }
/* A word instead of a number ("Cela Srbija"): pin icon + text, same size as the numbers */
.rw-stat-text dd .rw-i { flex: 0 0 auto; color: var(--rw-gold); }
.rw-stat-text dd .rw-i svg { width: .8em; height: .8em; }

@media (min-width: 768px) {
    .rw-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .rw-stat + .rw-stat { border-left: 1px solid var(--rw-line); }
}
@media (min-width: 1024px) {
    .rw-block-stats { padding-bottom: 16px; }
    .rw-stat { padding: 20px 28px; }
    .rw-stat dd { font-size: 1.85rem; }
}

/* Always 2 x 2 on phones, one row of four on tablets */
@media (max-width: 767px) {
    .rw-block-stats { padding-bottom: 4px; }
    .rw-stat { padding: 12px 14px; }
    .rw-stat:nth-child(even) { border-left: 1px solid var(--rw-line); }
    .rw-stat:nth-child(n + 3) { border-top: 1px solid var(--rw-line); }
    .rw-stat dd { font-size: 1.3rem; }
    .rw-stat dt { font-size: .875rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .rw-stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rw-stat { padding: 14px 16px; }
    .rw-stat dd { font-size: 1.45rem; }
}

/* Under a hero with a background image (1.28.0, e.g. Kompanija): one strong dark header */
.rw-block-hero.rw-hero-bg:has(+ .rw-block-stats) { padding-bottom: 24px; }
.rw-block-hero.rw-hero-bg + .rw-block-stats { padding: 0 0 48px; background: var(--rw-dark); }
.rw-hero-bg + .rw-block-stats .rw-stats { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.rw-hero-bg + .rw-block-stats .rw-stat + .rw-stat, .rw-hero-bg + .rw-block-stats .rw-stat { border-color: rgba(255, 255, 255, .14); }
.rw-hero-bg + .rw-block-stats .rw-stat dd { color: var(--rw-gold-light); }
.rw-hero-bg + .rw-block-stats .rw-stat dt { color: rgba(255, 255, 255, .78); }

/* Phones: a last number alone spans the row (2 x 2 rule, no lone cell) */
@media (max-width: 767px) {
    .rw-stat:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; border-left: 0; }
    .rw-block-hero.rw-hero-bg + .rw-block-stats { padding-bottom: 28px; }
}
