.data-visuals {
  border-block: 1px solid #d4dde9;
  background: linear-gradient(145deg, #edf2f8, #e2e9f3);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.chart-card {
  min-width: 0;
  margin: 0;
  padding: 23px;
  border: 1px solid #ccd7e4;
  border-radius: 21px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 32px rgba(9, 11, 16, .07);
}

.chart-type {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8edf5;
  color: #344e78;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.chart-card h3 {
  margin: 0 0 4px;
  color: #090b10;
  font-size: 1.18rem;
}

.chart-context {
  min-height: 44px;
  margin: 0 0 12px;
  color: #646d7b;
  font-size: .84rem;
}

.chart-canvas-wrap {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid #d9e0e9;
  border-radius: 14px;
  background: #fbfcfe;
}

.chart-card canvas {
  display: block;
  width: 100%;
  height: 260px;
}

.chart-card figcaption {
  margin-top: 15px;
  color: #202a3a;
  font-size: .87rem;
  line-height: 1.55;
}

.chart-card figcaption strong { color: #090b10; }

.illustrative-note {
  display: block;
  margin-top: 8px;
  color: #747d8a;
  font-size: .73rem;
}

.graph-method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 24px;
}

.graph-step {
  padding: 17px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .72);
  color: #344e78;
  font-size: .85rem;
  font-weight: 750;
}

.graph-step strong {
  display: block;
  margin-bottom: 4px;
  color: #090b10;
}

@media (max-width: 940px) {
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .chart-card:last-child { grid-column: 1 / -1; }
  .graph-method { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card:last-child { grid-column: auto; }
  .chart-context { min-height: 0; }
  .graph-method { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .chart-card { scroll-behavior: auto; }
}
