.top-section {
  position: relative;
}

.top-section .top-section__inner {
  padding: 127px 0 152px;
  text-align: center;
}

.top-section .top-section__img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.top-section .top-section__title {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 96px;
  line-height: 112%;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fff;
}

.top-section .top-section__subtitle {
  margin: 16px 0 0;
  font-family: var(--second-family);
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -0.04em;
  color: #f4f5fd;
}

.section-ear {
  position: relative;
}

.section-ear::before {
  content: '';
  position: absolute;
  left: 0;
  top: -96px;
  width: 100%;
  height: 96px;
  border-radius: 96px 96px 0 0;
}

.section-ear--dark::before {
  background: #000;
}

.section-ear--light::before {
  background: #f4f5fd;
}

.partners-list {
  background: #000;
  padding: 20px 0 143px;
}

.partners-list__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.partners-list__content {
  color: #fff;
  font-family: var(--second-family);
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.04em;
}

.partners-list__content p {
  margin: 0;
}

.partners-list__title,
.partners-list__subtitle,
.partners-list__tag-label,
.partners-list__card-title,
.partners-list__card-description,
.partners-list__card-tag,
.partners-list__card-more-text,
.partners-apply__title,
.partners-apply__text,
.partners-apply__step-title,
.partners-apply__step-text,
.partners-stack__title,
.partners-stack__button {
  /* Без переноса по слогам: браузер рвал и обычные слова ради ровной строки,
     оставляя огрызки вроде «клиен-тов». overflow-wrap ловит только те слова,
     что реально шире колонки. */
  hyphens: manual;
  overflow-wrap: break-word;
}

.partners-list__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  margin: 0 auto;
  border: 1px solid #6e6e84;
  border-radius: 200px;
  background: #00000033;
}

.partners-list__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid #e6f355;
  border-radius: 64px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.partners-list__tag--active {
  background: #e6f355;
  color: #232332;
}

.partners-list__tag-label,
.partners-list__tag-count {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.04em;
}

.partners-list__tag-count {
  margin-left: 8px;
  opacity: 0.6;
}

.partners-list__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.partners-list__card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  padding: 24px;
  border: 1px solid #6e6e84;
  border-radius: 24px;
  background: #000;
}

.partners-list__card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.partners-list__card-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
  color: #fff;
  text-transform: uppercase;
}

.partners-list__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  margin-top: 24px;
}

.partners-list__card-title {
  margin: 0;
  min-width: 0;
  color: #fff;
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partners-list__card-description {
  margin: 8px 0 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partners-list__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
}

.partners-list__card-tag {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 32px;
  background: var(--partners-tag-background, #ffffff33);
  color: var(--partners-tag-color, #fff);
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partners-list__card-more {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.partners-list__card-more-text {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.04em;
}

.partners-list__card-more-icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  opacity: 0.6;
}

.partners-list__card-more--disabled {
  pointer-events: none;
  opacity: 0.5;
}

.partners-list__actions {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.partners-list__load-more {
  padding: 16px 32px;
  border: 1px solid #e6f355;
  border-radius: 32px;
  background: transparent;
  color: #fff;
  font-family: Inter, var(--second-family), sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.04em;
  text-align: center;
  font-variant-numeric: lining-nums proportional-nums;
  cursor: pointer;
}

.partners-list__load-more[hidden] {
  display: none !important;
}

.partners-apply {
  position: relative;
  background: #f4f5fd;
  padding: 112px 0 143px;
  /* декоративные круги свечения шире секции — обрезаем их только по
     горизонтали, чтобы не появлялся горизонтальный скролл */
  overflow-x: clip;
  overflow-y: visible;
}

.partners-apply__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.partners-apply__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr);
  align-items: stretch;
}

.partners-apply__left {
  padding: 60.5px 62px 0 0;
}

.partners-apply__divider {
  width: 2px;
  background: rgba(35, 35, 50, 0.1);
}

.partners-apply__right {
  padding: 45px 0 45px 62px;
}

.partners-apply__title {
  margin: 0;
  color: #232332;
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -0.04em;
}

.partners-apply__text {
  margin: 24px 0 0;
  max-width: 515px;
  color: #232332;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.04em;
}

.partners-apply__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 16px 32px;
  min-height: 56px;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.04em;
}

.partners-apply__step {
  display: flex;
  align-items: flex-start;
}

.partners-apply__step + .partners-apply__step {
  margin-top: 32px;
}

.partners-apply__step-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22.5px;
  border-radius: 999px;
  background: #232332;
  color: #fff;
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
}

.partners-apply__step-content {
  margin-left: 16px;
  padding-top: 16px;
}

.partners-apply__step-title {
  color: #232332;
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.04em;
}

.partners-apply__step-text {
  margin: 10px 0 0;
  color: #232332;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.04em;
}

/* Мягкое свечение рисуется радиальным градиентом, а не filter: blur().

   Раньше здесь стоял blur с радиусом больше самого круга (162px на 213px и
   424px на 288px). При таком соотношении браузер отрисовывает слой во много
   раз больше элемента и обрезает его прямоугольником — на светлом фоне
   секции края этого слоя проступали серо-сиреневыми полосами. Градиент даёт
   ту же мягкую подсветку без лишнего слоя и без артефактов. */
.partners-apply__blur {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle closest-side,
    rgba(49, 63, 254, 0.16) 0%,
    rgba(49, 63, 254, 0.08) 45%,
    rgba(49, 63, 254, 0) 100%
  );
}

.partners-apply__blur--left {
  left: 3%;
  top: 50%;
  width: 760px;
  height: 760px;
  transform: translate(-45%, -50%);
}

.partners-apply__blur--right {
  right: 5%;
  bottom: 20%;
  width: 900px;
  height: 900px;
  transform: translate(35%, 25%);
}

.partners-stack {
  position: relative;
  background: #000;
  padding: 96px 0 196px;
  /* clip вместо visible: декоративный круг размытия (.partners-stack__blur)
     шире 420px и на узких экранах вылезал за края, давая горизонтальный
     скролл. clip обрезает только по горизонтали и, в отличие от hidden,
     не делает из секции контейнер прокрутки. */
  overflow-x: clip;
  overflow-y: visible;
}

.partners-stack__container {
  position: relative;
  z-index: 1;
  max-width: 996px;
  margin: 0 auto;
  padding: 0 24px;
}

.partners-stack__title {
  margin: 0;
  color: #fff;
  text-align: center;
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 80px;
  line-height: 88px;
  letter-spacing: 0;
}

.partners-stack__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.partners-stack__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 32px;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.04em;
}

.partners-stack__button--secondary {
  border: 1px solid #e6f355;
  color: #fff;
  background: transparent;
  border-radius: 999px;
}

.partners-stack__image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 74px;
}

.partners-stack__image {
  display: block;
  width: 100%;
  max-width: 912px;
}

.partners-stack__blur {
  position: absolute;
  left: 50%;
  bottom: -356px;
  width: 712px;
  height: 712px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #313ffe;
  filter: blur(424.1px);
  pointer-events: none;
}

@media (max-width: 992px) {
  .section-ear::before {
    top: -48px;
    height: 48px;
    border-radius: 48px 48px 0 0;
  }

  .partners-list,
  .partners-apply {
    padding: 72px 0 132px;
  }

  .partners-list {
    padding-top: 20px;
  }

  .partners-apply__inner {
    grid-template-columns: 1fr;
  }

  .partners-apply__left,
  .partners-apply__right {
    padding: 0;
  }

  .partners-apply__divider {
    width: 100%;
    height: 2px;
    margin: 32px 0;
  }

  .partners-apply__title {
    font-size: 40px;
    line-height: 46px;
  }

  .partners-list__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-stack {
    padding: 72px 0 128px;
  }

  .partners-stack__title {
    font-size: 56px;
    line-height: 62px;
  }
}

@media (max-width: 768px) {
  .top-section .top-section__inner {
    padding-top: 96px;
  }

  .top-section .top-section__title {
    font-size: 56px;
  }
}

@media (max-width: 650px) {
  .partners-list__container,
  .partners-apply__container,
  .partners-stack__container {
    padding: 0 16px;
  }

  .partners-list {
    padding-top: 16px;
  }

  .partners-list__tags {
    width: 100%;
    border-radius: 32px;
  }

  .partners-list__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .partners-list__content,
  .partners-apply__text,
  .partners-apply__step-text {
    font-size: 16px;
    line-height: 24px;
  }

  .partners-apply__title {
    font-size: 32px;
    line-height: 38px;
  }

  .partners-apply__button {
    width: 100%;
  }

  .partners-apply__step-badge {
    padding: 14px 20px;
    font-size: 18px;
    line-height: 22px;
  }

  .partners-list__card {
    padding: 20px;
  }

  .partners-list__card-footer {
    gap: 12px;
    padding-top: 20px;
  }

  .partners-list__card-more-text {
    font-size: 14px;
    line-height: 20px;
  }

  .partners-list__actions {
    margin-top: 40px;
  }

  .partners-list__load-more {
    width: 100%;
  }

  .partners-stack {
    padding: 72px 0 96px;
  }

  .partners-stack__title {
    font-size: 40px;
    line-height: 46px;
  }

  .partners-stack__actions {
    flex-direction: column;
  }

  .partners-stack__button {
    width: 100%;
  }

  .partners-stack__image-wrap {
    margin-top: 48px;
  }

  .partners-stack__blur {
    width: 420px;
    height: 420px;
    bottom: -210px;
  }
}

@media (max-width: 500px) {
  .top-section .top-section__inner {
    padding-top: 191px;
  }
}