.trainer {
  padding: 80px 0;
  color: #fff;
  background: #000 url("../img/top/trainer_bck.webp") center / cover no-repeat;
}
.trainer__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.trainer__nav {
  display: flex;
  gap: 20px;
}
.trainer__nav_btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.trainer__icon-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 26px;
  height: 10px;
  overflow: hidden;
  transform: translate(-50%, -50%);
}
.trainer-prev .trainer__icon-wrapper {
  transform: translate(-50%, -50%) scaleX(-1);
}
.trainer__icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 28px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 1L18.5 6M18.5 6H1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 1L18.5 6M18.5 6H1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.trainer__icon--normal {
  transform: translate3d(0, 0, 0);
}
.trainer__icon--clone {
  transform: translate3d(-130%, 0, 0);
}
.trainer__nav_btn:hover .trainer__icon--normal {
  transform: translate3d(130%, 0, 0);
}
.trainer__nav_btn:hover .trainer__icon--clone {
  transform: translate3d(0, 0, 0);
}
.trainer-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.trainer__list {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.trainer__item {
  height: auto;
  cursor: default;
}
.trainer__item a[href] {
  cursor: pointer;
}
.trainer__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 240/330;
}
.trainer__thumb img {
  display: block;
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
}
.trainer__name_block {
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: center;
  height: 95px;
  padding: 26px 24px 0;
  background: linear-gradient(
    142deg,
    #4e4e4c 0%,
    #4e4e4e 35%,
    #3b3b3b 35%,
    #4e4e4e 72%,
    #3b3b3b 72%,
    #3b3b3b
  );
}
.trainer__role {
  position: absolute;
  top: -10px;
  left: 0;
  width: 105px;
  padding-right: 15px;
  color: var(--color-dark);
  background: var(--color-lime, #e2ff00);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  line-height: 25px;
  letter-spacing: 0.02em;
  text-align: center;
}
.trainer__name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.trainer__name_en {
  color: var(--color-lime);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.05em;
}
.trainer__foot {
  text-align: center;
}
@media (max-width: 1199px) {
  .trainer {
    background-size: 300%;
  }
}

@media (max-width: 1023px) {
  .trainer {
    padding: 45px 0;
  }
}

@media (max-width: 767px) {
  .trainer {
    padding: 45px 0 45px;
    background-size: auto;
  }
  .trainer__head {
    flex-flow: column;
    margin-bottom: 32px;
  }
  .trainer__head .section-label {
    width: 100%;
  }
}

.trainer__image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .trainer__item a[href]:hover .trainer__image--hover {
    opacity: 1;
  }
}
.trainer__item a:focus-visible .trainer__image--hover {
  opacity: 1;
}
