/* Модераторы — паритет Elementor 0f83ceb / 9a8edd0 / 94b66bf. Статус: закрыт (§22). */

.soz-moderators {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 35px 0 0;
  padding: 0;
  color: #fff;
  box-sizing: border-box;
}

.soz-moderators__inner {
  width: 100%;
  max-width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.soz-moderators .soz-moderators__title {
  margin: 0 0 18px;
  max-width: 100%;
  text-align: center;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.soz-moderators__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.soz-moderator {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  /* Две карточки в ряд, не шире 300px. Ширина сжимается, высота следует за ней. */
  flex: 0 1 calc((100% - 20px) / 2);
  width: calc((100% - 20px) / 2);
  max-width: 300px;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: clamp(14px, 8cqi, 25px);
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  container-type: inline-size;
  container-name: moderator-card;
  background-color: #1e3360;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.soz-moderator::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.5;
  pointer-events: none;
}

.soz-moderator__name,
.soz-moderator__role,
.soz-moderator__logo {
  position: relative;
  z-index: 1;
}

.soz-moderator__name {
  font-family: Montserrat, sans-serif;
  font-size: clamp(14px, 8cqi, 24px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.soz-moderator__role {
  margin: -10px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(12px, 5.4cqi, 16px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.soz-moderator__logo {
  display: block;
  width: 25%;
  max-width: 120px;
  height: auto;
  margin-top: -10px;
}

@media (max-width: 767px) {
  .soz-moderators__inner {
    padding: 0 12px;
    min-width: 0;
  }

  .soz-moderators .soz-moderators__title {
    font-size: clamp(18px, 6.2vw, 28px);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.15;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .soz-moderator__logo {
    width: 28%;
    max-width: 72px;
    margin-top: 4px;
  }
}

@media (max-width: 520px) {
  .soz-moderators__list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
  }

  .soz-moderator {
    flex: 0 0 auto;
    width: min(100%, 300px);
    max-width: 300px;
  }
}
