.reveal .detector-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.reveal .detector-card {
  display: grid;
  grid-template-rows: 250px auto;
  gap: 0.35rem;
  align-items: end;
  margin: 0;
  text-align: center;
}

.reveal .detector-card img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.reveal .detector-card figcaption {
  font-size: 0.56em;
  line-height: 1.2;
}

.reveal .detector-card strong {
  font-size: 1.08em;
}

/* Пошаговая модель фотонной диффузии */
.reveal .photon-diffusion-tabs {
  margin-top: 0.35rem;
}

.reveal .photon-diffusion-tabs > .panel-tabset-tabby {
  gap: 0.18rem;
  margin-bottom: 0;
  font-size: 0.72em;
}

.reveal .photon-diffusion-tabs > .panel-tabset-tabby a {
  padding: 0.34rem 0.78rem;
  font-weight: 720;
}

.reveal .photon-diffusion-tabs > .tab-content {
  min-height: 610px;
  padding: 0.72rem 1.02rem 0.62rem;
  border: 1px solid rgba(67, 217, 255, 0.25);
  border-top: 0;
  border-radius: 0 0 0.42rem 0.42rem;
  background: linear-gradient(135deg, rgba(9, 25, 37, 0.92), rgba(5, 14, 24, 0.94));
}

.reveal .photon-diffusion-tabs > .tab-content > div {
  min-height: 565px;
}

.reveal .photon-diffusion-tabs p,
.reveal .photon-diffusion-tabs li {
  font-size: 0.88em;
  line-height: 1.24;
}

.reveal .photon-diffusion-tabs .math.display {
  margin: 0.46rem 0;
  font-size: 1.04em;
}

.reveal .photon-diffusion-tabs .takeaway {
  margin-top: 0.58rem;
  font-size: 0.80em;
}

.reveal .photon-diffusion-tabs .small {
  font-size: 0.66em;
  line-height: 1.22;
}

.reveal .photon-diffusion-tabs figure,
.reveal .photon-diffusion-tabs figure p {
  margin: 0;
}

.reveal .photon-diffusion-tabs table {
  width: 88%;
  margin: 0.55rem auto;
  font-size: 0.75em;
}

.reveal .photon-diffusion-tabs th,
.reveal .photon-diffusion-tabs td {
  padding: 0.30rem 0.55rem;
}

.reveal .photon-history-tabs > .tab-content {
  border-color: rgba(255, 178, 28, 0.28);
}
