.partners-page {
  background: #ffffff;
}

.partners-hero {
  position: relative;
  min-height: 420px;
  height: min(54vh, 590px);
  overflow: hidden;
  background: #252f70;
}

.partners-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.partners-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 21, 42, 0.2) 0%,
    rgba(18, 21, 42, 0.76) 100%
  );
}

.partners-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 170px 0 58px;
  color: #ffffff;
}

.partners-eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-left: 4px solid #f39337;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.partners-title {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.partners-section {
  padding: 58px 0 76px;
}

.partners-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.partners-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7e9f0;
}

.partners-section-title {
  margin: 0;
  color: #252f70;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
}

.partners-count {
  flex: 0 0 auto;
  color: #f39337;
  font-size: 14px;
  font-weight: 800;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
}

.partner-card {
  list-style: none;
}

.partner-card-link {
  min-height: 172px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e7e9f0;
  border-radius: 8px;
  background: #ffffff;
  color: #252f70;
  text-decoration: none;
  box-shadow: rgba(15, 18, 36, 0.05) 0 8px 22px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.partner-card-link:hover,
.partner-card-link:focus {
  transform: translateY(-4px);
  border-color: rgba(243, 147, 55, 0.55);
  box-shadow: rgba(15, 18, 36, 0.12) 0 16px 34px;
  color: #252f70;
}

.partner-logo-wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  max-width: 100%;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #eef0f5;
}

.partner-name {
  margin: 0;
  color: #252f70;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

.partner-arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f39337;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.partners-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cfd4e3;
  border-radius: 8px;
  color: #252f70;
  font-weight: 700;
}

@media (max-width: 991px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .partners-hero {
    min-height: 350px;
    height: 46vh;
  }

  .partners-hero-inner {
    width: calc(100% - 28px);
    padding: 120px 0 38px;
  }

  .partners-section {
    padding: 40px 0 54px;
  }

  .partners-shell {
    width: calc(100% - 28px);
  }

  .partners-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .partner-card-link {
    min-height: 156px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}
