/* MW Key Figures - Front */

.mw-key-figures {
  --mw-kf-accent: #E63329;
  --mw-kf-bg: #ffffff;
  --mw-kf-text: #111111;
  --mw-kf-cols: 4;
  --mw-kf-duration: 1800ms;

  padding: 20px 0x;
  font-family: inherit;
  color: var(--mw-kf-text);
  box-sizing: border-box;
}

.mw-kf-section-header {
  text-align: center;
  margin-bottom: 10px;
}

.mw-kf-section-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(18px, 2.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--mw-kf-text);
  margin: 0;
  justify-content: center;
}

.mw-kf-section-title::before,
.mw-kf-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--mw-kf-accent);
  flex-shrink: 0;
}

.mw-kf-grid {
  display: grid;
  grid-template-columns: repeat(var(--mw-kf-cols), 1fr);
  gap: 1px;
  background: #eef0f2;
  border: 1px solid #eef0f2;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 1100px) { .mw-kf-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 760px) { .mw-kf-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 440px) { .mw-kf-grid { grid-template-columns: repeat(1, 1fr) !important; } }

.mw-key-figures .mw-kf-card {
  background: var(--mw-kf-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
  cursor: default;
}

.mw-key-figures .mw-kf-card:hover { background: color-mix(in srgb, var(--mw-kf-bg) 95%, #000); }

.mw-key-figures .mw-kf-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--mw-kf-text);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.mw-key-figures .mw-kf-card:hover .mw-kf-icon {
  transform: scale(1.1);
}
.mw-key-figures .mw-kf-card .mw-kf-value span {
  transition: color 0.25s ease, transform 0.35s ease;
}
.mw-key-figures .mw-kf-card:hover .mw-kf-value span {
  color: var(--mw-kf-accent);
}
.mw-key-figures .mw-kf-icon svg { width: 100%; height: 100%; }

.mw-key-figures .mw-kf-value--number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mw-key-figures .mw-kf-prefix,
.mw-key-figures .mw-kf-suffix {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  color: var(--mw-kf-text);
  letter-spacing: 0;
}

.mw-key-figures .mw-kf-number {
  font-size: clamp(34px, 3vw, 40px);
  font-weight: 900;
  color: var(--mw-kf-text);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mw-key-figures .mw-kf-value--text {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  color: var(--mw-kf-text);
  letter-spacing: 0;
  margin-bottom: 10px;
  line-height: 1.2;
}

.mw-key-figures .mw-kf-label {
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--mw-kf-text) 60%, transparent);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

.mw-key-figures .mw-kf-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--mw-kf-accent);
  transition: width 0.5s ease;
}
.mw-key-figures .mw-kf-card:hover .mw-kf-bar { width: 100%; }

@media (max-width: 760px) {
  .mw-key-figures { padding: 48px 16px 56px; }
  .mw-kf-section-title::before,
  .mw-kf-section-title::after { width: 24px; }
}
