.community-section {
  background: #f5f6f7;
  color: #171c20;
  padding: 56px 0 58px;
  color-scheme: only light;
}

.community-section h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.025em;
  text-align: center;
  margin: 0 0 36px;
  text-wrap: balance;
}

.community-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1040px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}

.community-benefit {
  text-align: center;
  min-width: 0;
}

.community-benefit h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 12px 0 10px;
}

.community-benefit p {
  color: #69717a;
  font-size: 15px;
  line-height: 1.5;
  max-width: 290px;
  margin-inline: auto;
  text-wrap: balance;
}

.community-badge {
  width: 116px;
  height: 116px;
  margin-inline: auto;
  perspective: 720px;
}

.community-badge-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  animation: community-coin-turn 9s linear infinite;
}

.community-benefit:nth-child(2) .community-badge-rotor {
  animation-delay: -.55s;
}

.community-benefit:nth-child(3) .community-badge-rotor {
  animation-delay: -1.1s;
}

.community-badge-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(1px);
}

.community-badge-face--back {
  transform: rotateY(180deg) translateZ(1px);
}

.community-benefit:hover .community-badge-rotor {
  animation-play-state: paused;
}

@keyframes community-coin-turn {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@media (max-width: 650px) {
  .community-section { padding: 38px 0 40px; }
  .community-section h2 { margin-bottom: 25px; font-size: 24px; }
  .community-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .community-benefit:last-child { grid-column: 1 / -1; max-width: 340px; justify-self: center; }
  .community-badge { width: 104px; height: 104px; }
  .community-benefit h3 { font-size: 18px; margin: 9px 0 8px; }
  .community-benefit p { font-size: 13px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .community-badge-rotor { animation: none; }
}
