/* Спикеры — паритет Elementor 24cde98 + #sp1k. Статус: закрыт (§22). */

.soz-speakers {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 100px 0;
  color: #fff;
  box-sizing: border-box;
  background-color: transparent;
  background-image: url("/wp-content/uploads/2023/09/Слой-2.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center top;
}

.soz-speakers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 33, 64, 0.78);
  pointer-events: none;
}

.soz-speakers__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.soz-speakers .soz-speakers__live-title,
.soz-speakers .soz-speakers__year-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;
}

.soz-speakers__live,
.soz-speakers__archive-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.soz-speaker {
  width: calc(25% - 15px);
  max-width: 260px;
  min-width: 0;
  height: 255px;
  box-sizing: border-box;
  border-radius: 20px;
  overflow: hidden;
  background: #1e3360;
  transition: background-color 0.3s ease;
}

.soz-speaker--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: default;
}

.soz-speaker--logo:hover,
.soz-speaker--logo:focus-visible {
  background-color: #16367c;
}

.soz-speaker--logo img {
  width: 73%;
  max-width: 73%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.soz-speaker--flip {
  position: relative;
  cursor: pointer;
}

/* Elementor flip-box--effect-fade: оборот только opacity, без zoom */
.soz-speaker__front,
.soz-speaker__back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 20px;
}

.soz-speaker__front {
  padding: 15px;
  background: #1e3360;
  opacity: 1;
  z-index: 1;
}

.soz-speaker__logo {
  width: 73%;
  max-width: 73%;
  max-height: 70%;
  object-fit: contain;
}

.soz-speaker__back {
  padding: 15px;
  background-color: #2059f4;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.soz-speaker__back::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #0000007d;
  pointer-events: none;
}

.soz-speaker--flip:hover .soz-speaker__back,
.soz-speaker--flip:focus .soz-speaker__back,
.soz-speaker--flip:focus-visible .soz-speaker__back {
  opacity: 1;
}

.soz-speaker--flip:focus,
.soz-speaker--flip:focus-visible {
  outline: none;
}

.soz-speaker__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-width: 0;
  color: #fff;
}

.soz-speaker__name {
  margin: 0 0 5px;
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.soz-speaker__role {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.soz-speakers__archive {
  margin-top: 28px;
}

.soz-speakers__year + .soz-speakers__year {
  margin-top: 28px;
}

.soz-speakers__archive-grid .soz-speaker--archive {
  display: flex;
  flex: 0 1 calc((100% - 20px) / 2);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: calc((100% - 20px) / 2);
  max-width: 360px;
  min-width: 0;
  height: auto;
  min-height: 88px;
  padding: 12px 14px;
  background: transparent;
  border-radius: 0;
  transform: none;
  text-align: center;
}

.soz-speaker--archive:hover,
.soz-speaker--archive:focus-visible {
  background: transparent;
  transform: none;
}

.soz-speaker--archive .soz-speaker__name {
  font-size: 16px;
  text-transform: none;
}

.soz-speaker--archive .soz-speaker__role {
  font-size: 12px;
  opacity: 0.9;
}

.soz-speakers .cms-speaker-toggle,
.soz-speakers .hide-show-btn {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 10px 18px;
  border: 1px solid #f2295b;
  border-radius: 0;
  background: transparent;
  color: #f2295b;
  font: 16px / 1.3 Roboto, sans-serif;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.soz-speakers .cms-speaker-toggle:hover,
.soz-speakers .cms-speaker-toggle:focus,
.soz-speakers .hide-show-btn:hover,
.soz-speakers .hide-show-btn:focus {
  background: transparent;
  color: #f2295b;
  border-color: #f2295b;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .soz-speakers {
    padding: 50px 0;
    background-size: cover;
  }

  .soz-speakers::before {
    background: rgba(19, 33, 64, 0);
  }

  .soz-speaker {
    width: calc(33.333% - 14px);
    height: 250px;
  }

  .soz-speaker__name {
    font-size: 16px;
  }
}

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

  .soz-speakers .soz-speakers__live-title,
  .soz-speakers .soz-speakers__year-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-speakers__live {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
  }

  .soz-speakers__archive-grid {
    align-items: center;
    gap: 10px;
  }

  .soz-speakers__live .soz-speaker {
    flex: 0 1 calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    max-width: 300px;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    container-type: inline-size;
    container-name: speaker-card;
  }

  .soz-speaker__front,
  .soz-speaker__back {
    border-radius: 10px;
    padding: 12px 14px;
  }

  .soz-speaker__back::before {
    border-radius: 10px;
  }

  .soz-speaker__name {
    font-size: clamp(12px, 5.5cqi, 18px);
    margin-bottom: 4px;
  }

  .soz-speaker__role {
    font-size: clamp(10px, 4.2cqi, 14px);
    line-height: 1.25;
  }

  .soz-speakers__archive-grid .soz-speaker--archive {
    flex: 0 1 calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    max-width: none;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .soz-speaker--archive .soz-speaker__name {
    font-size: 15px;
    line-height: 1.25;
  }

  .soz-speaker--archive .soz-speaker__role {
    font-size: 12px;
    line-height: 1.35;
  }
}

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

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

  .soz-speakers__archive-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
  }

  .soz-speakers__archive-grid .soz-speaker--archive {
    flex: 0 0 auto;
    width: min(100%, 360px);
    max-width: 360px;
  }
}
