:root {
  --color-dark: #000;
  --color-white: #fff;
  --color-accent-primary: #701725;
  --color-accent-primary-light: #9a112d;
  --color-dark-grey: #363636;
  --color-bg: #e2e0e0;
  --serivce-gradient-c1: #000000b3;
  --serivce-gradient-c2: #000000b3;
  --vh: 100vh;
  --items: 1;
  --gap: 16px;
}

.benefit,
.team-member__link {
  align-items: center;
  display: flex;
}

.team-member__link {
  justify-content: space-between;
}

.team-member,
.team-member__box,
.team-member__position,
.team-member__link-wrap {
  flex-direction: column;
  display: flex;
}

.benefit {
  flex-direction: column;
}

.benefits__list,
.team__list--grid {
  flex-wrap: wrap;
  display: flex;
}

.hero,
.benefit,
.team__box,
.team-member__img-wrap {
  position: relative;
}

.hero:before,
.hero:after,
.benefit:not(:last-of-type):before,
.team-member__img-desc,
.team-member__img-desc:before {
  position: absolute;
}

.team-member__link,
.team-member__link svg {
  transition: var(--transition--100, 0.1s linear);
}

.benefits__list,
.team__list--grid {
  gap: var(--gap);
}

.benefit,
.team__item--grid {
  flex-basis: calc((100% - var(--gap, 16px) * (var(--items, 1) - 1)) / var(--items, 1));
  width: calc((100% - var(--gap, 16px) * (var(--items, 1) - 1)) / var(--items, 1));
}

.team__box {
  --height-img: 400px;
  margin: 0 auto;
}

@media (width >= 768px) {
  .team__box--swiper,
  .team__box--leader {
    --height-img: 480px;
  }

  .team__box--swiper {
    max-width: 400px;
  }
}

@media (width >= 1024px) {
  .team__box--swiper {
    max-width: 800px;
  }
}

@media (width >= 1440px) {
  .team__box--swiper,
  .team__box--leader {
    --height-img: 652px;
  }

  .team__box--swiper {
    max-width: initial;
  }
}

.team__msg {
  text-align: center;
  margin-bottom: 36px;
  font-size: 20px;
  line-height: 24px;
}

@media (width >= 768px) {
  .team__list--grid {
    --items: 2;
    --gap: 20px;
    row-gap: 48px;
  }
}

@media (width >= 1024px) {
  .team__list--grid {
    --items: 3;
    row-gap: 64px;
  }
}

@media (width >= 1440px) {
  .team__list--grid {
    --gap: 32px;
  }
}

.team-member {
  gap: 32px;
}

@media (width >= 768px) {
  .team-member--leader {
    flex-direction: row;
  }
}

@media (width >= 1024px) {
  .team-member.swiper-slide {
    flex-direction: row;
  }
}

.team-member__box {
  width: 100%;
}

.team-member__name {
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.team-member__position {
  color: #7e8492;
  text-transform: uppercase;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.team-member__position:after {
  content: '';
  background-color: var(--color-accent-primary, #701725);
  width: 80px;
  height: 2px;
  display: block;
}

.team-member__img {
  width: 100%;
  height: var(--height-img);
  max-width: initial;
  object-fit: cover;
  border-radius: 8px;
}

.team-member__img-desc {
  --padding: 4px;
  left: var(--padding);
  bottom: var(--padding);
  width: calc(100% - var(--padding) * 2);
  color: var(--color-white, #fff);
  font-feature-settings: 'liga' off, 'clig' off;
  background: var(--color-accent-primary, #701725);
  border-radius: 4px;
  padding: 12px 8px 12px 74px;
}

.team-member__img-desc:before {
  --background-image-url: url('/assets/images/icons/icon-youtube2.svg');
  content: '';
  background-color: var(--color-white, #fff);
  background-image: var(--background-image-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: block;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

@media (width >= 768px) {
  .team-member__img-desc {
    --padding: 8px;
    padding: 12px 12px 12px 74px;
    font-weight: 600;
    line-height: 28px;
  }

  .team-member__img-desc svg {
    left: 38px;
  }
}

@media (width >= 1024px) {
  .team-member__img-desc {
    width: calc(100% - 32px);
    bottom: 16px;
    left: 16px;
  }
}

@media (width >= 1440px) {
  .team-member__img-desc {
    width: calc(100% - 56px);
    padding: 20px 20px 20px 100px;
    bottom: 28px;
    left: 28px;
  }

  .team-member__img-desc:before {
    left: 28px;
  }
}

.team-member__link-wrap {
  margin-top: auto;
}

.team-member__link {
  color: inherit;
  border-bottom: 1px solid var(--color-dark-grey, #363636);
  padding: 18px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.team-member__link svg {
  fill: currentColor;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.team-member__link:hover {
  color: var(--color-accent-primary, #701725);
  border-color: var(--color-accent-primary, #701725);
}

.team-member__link:hover svg {
  transform: translateX(4px);
}

.team-member__link:active {
  color: var(--color-accent-primary-light, #a91d3a);
  border-color: var(--color-accent-primary-light, #a91d3a);
}

@media (width <= 1023px) {
  .team-swiper-pagination.swiper-pagination-bullets {
    top: calc(var(--height-img) + 12px);
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.team__box .swiper-btn {
  top: calc((var(--height-img) - 32px) / 2);
  transform: initial;
}

.benefits {
  color: var(--color-white, #fff);
  background-color: #000;
  background-image: linear-gradient(0deg, #1f1c1de6 0% 100%), url('/assets/images/bg-benefits.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover, auto 1200px;
  background-attachment: fixed;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  padding: 120px 0;
}

@media (width >= 1024px) {
  .benefits {
    background-size: cover;
  }
}

.benefits__subtitle {
  text-align: center;
}

.benefits__list {
  --gap: 20px;
}

@media (width >= 768px) {
  .benefits__list {
    --gap: 88px;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (width >= 1024px) {
  .benefits__list {
    --items: 3;
    --gap: 52px;
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

@media (width >= 1440px) {
  .benefits__list {
    --items: 3;
    --gap: 64px;
    max-width: none;
    margin: 0;
    padding: 0 64px;
  }
}

.benefit {
  text-align: center;
  gap: 12px;
}

.benefit:not(:last-of-type):before {
  content: '';
  top: calc(100% + var(--gap) / 2);
  background-color: currentColor;
  height: 1px;
  display: block;
  left: 50%;
  transform: translateX(-50%);
}

.benefit:first-of-type {
  transition-delay: 0s;
}

.benefit:nth-of-type(2) {
  transition-delay: 40ms;
}

.benefit:nth-of-type(3) {
  transition-delay: 80ms;
}

.benefit:nth-of-type(4) {
  transition-delay: 0.12s;
}

.benefit:nth-of-type(5) {
  transition-delay: 0.16s;
}

.benefit:nth-of-type(6) {
  transition-delay: 0.2s;
}

.benefit:nth-of-type(7) {
  transition-delay: 0.24s;
}

.benefit:nth-of-type(8) {
  transition-delay: 0.28s;
}

.benefit:nth-of-type(9) {
  transition-delay: 0.32s;
}

.benefit:nth-of-type(10) {
  transition-delay: 0.36s;
}

.benefit:nth-of-type(11) {
  transition-delay: 0.4s;
}

.benefit:nth-of-type(12) {
  transition-delay: 0.44s;
}

.benefit:nth-of-type(13) {
  transition-delay: 0.48s;
}

.benefit:nth-of-type(14) {
  transition-delay: 0.52s;
}

.benefit:nth-of-type(15) {
  transition-delay: 0.56s;
}

.benefit:nth-of-type(16) {
  transition-delay: 0.6s;
}

.benefit:nth-of-type(17) {
  transition-delay: 0.64s;
}

.benefit:nth-of-type(18) {
  transition-delay: 0.68s;
}

.benefit:nth-of-type(19) {
  transition-delay: 0.72s;
}

.benefit:nth-of-type(20) {
  transition-delay: 0.76s;
}

.benefit:nth-of-type(21) {
  transition-delay: 0.8s;
}

.benefit:nth-of-type(22) {
  transition-delay: 0.84s;
}

.benefit:nth-of-type(23) {
  transition-delay: 0.88s;
}

.benefit:nth-of-type(24) {
  transition-delay: 0.92s;
}

.benefit:nth-of-type(25) {
  transition-delay: 0.96s;
}

.benefit:nth-of-type(26) {
  transition-delay: 1s;
}

.benefit:nth-of-type(27) {
  transition-delay: 1.04s;
}

.benefit:nth-of-type(28) {
  transition-delay: 1.08s;
}

.benefit:nth-of-type(29) {
  transition-delay: 1.12s;
}

.benefit:nth-of-type(30) {
  transition-delay: 1.16s;
}

@media (width >= 1024px) {
  .benefit:not(:last-of-type):before {
    top: 50%;
    left: calc(100% + var(--gap) / 2);
    width: 2px;
    height: 96px;
    transform: translateY(-50%);
  }
}

.benefit__value {
  font-size: 52px;
  font-weight: 600;
}

@media (width >= 768px) {
  .benefit__value {
    font-size: 64px;
    line-height: 72px;
  }
}

@media (width >= 1024px) {
  .benefit__value {
    font-size: 56px;
  }
}

@media (width >= 1440px) {
  .benefit__value {
    font-size: 64px;
  }
}

.benefit__text {
  font-size: 20px;
  font-weight: 600;
}

@media (width >= 768px) {
  .benefit__text {
    line-height: 28px;
  }
}

@media (width >= 1024px) {
  .benefit__text {
    font-size: 16px;
  }
}

@media (width >= 1440px) {
  .benefit__text {
    font-size: 20px;
  }
}

.hero {
  background: #c5c5c5;
  justify-content: flex-start;
}

.hero:before {
  content: '';
  background-image: url('/assets/images/polina-2.webp');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
  width: 280px;
  height: 320px;
  display: block;
  bottom: 0;
  left: calc(50% - 250px);
}

.hero:after {
  content: '';
  --serivce-gradient-c1: #0000001a;
  --serivce-gradient-c2: #00000080;
  background: linear-gradient(to bottom, var(--serivce-gradient-c1, #0006) 0%, var(--serivce-gradient-c2, #0006) 100%);
  width: 100%;
  height: 100%;
  display: block;
  bottom: 0;
  left: 0;
}

@media (width >= 768px) {
  .hero:before {
    width: 444px;
    height: 444px;
    left: calc(50% - 410px);
  }
}

@media (width >= 1024px) {
  .hero:before {
    width: 580px;
    height: 580px;
    left: calc(50% - 550px);
  }
}

@media (width >= 1440px) {
  .hero:before {
    width: 742px;
    height: 742px;
    left: calc(50% - 778px);
  }
}

.hero__box {
  z-index: 1;
  max-width: 190px;
  margin-left: auto;
  position: relative;
}

@media (width >= 768px) {
  .hero__box {
    max-width: 400px;
  }
}

@media (width >= 1024px) {
  .hero__box {
    max-width: 500px;
  }
}

@media (width >= 1440px) {
  .hero__box {
    max-width: 624px;
  }
}
