:root {
  --green: #58c934;
  --green-dark: #43ad25;
  --black: #121212;
  --gray: #6f6f6f;
  --border: #e9e9e9;
  --shadow: 0 5px 22px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  color: var(--black);
  background: #ffffff;
}

.cooperation-page {
  width: min(100% - 64px, 1040px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

/* Hero */

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 42px;
  min-height: 210px;
}

.hero-section__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-section__lead {
  margin: 0;
  color: #777777;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-section__image {
  width: 100%;
  display: block;
}

/* Benefit cards */

.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 34px;
}

.benefit-card {
  position: relative;
  min-height: 260px;
  padding: 36px 28px 30px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--green);
}

.benefit-card__top {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 26px;
}

.benefit-card__number,
.small-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(88, 201, 52, 0.45);
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1;
}

.benefit-card__number {
  width: 44px;
  height: 44px;
  font-size: 16px;
  flex-shrink: 0;
}

.benefit-card__icon {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
}

.benefit-card__title {
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.benefit-card__text {
  margin: 0;
  color: #222222;
  font-size: 12px;
  line-height: 1.8;
  font-weight: 500;
}

/* Sections */

.steps-section {
  padding: 24px 0 34px;
}

.profit-section {
  position: relative;
  padding: 30px 0 38px;
}

.profit-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.section-title {
  margin: 0 0 26px;
  text-align: center;
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Steps */

.steps-section__grid {
  display: grid;
  grid-template-columns: 1fr 120px 1fr 120px 1fr;
  align-items: start;
  gap: 16px;
}

.step-card {
  text-align: center;
}

.round-icon {
  width: 95px;
  height: 95px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #ffffff 0 40%, #f5f7f4 100%);
  box-shadow: inset 0 7px 18px rgba(0, 0, 0, 0.05), 0 10px 18px rgba(0, 0, 0, 0.06);
}

.round-icon--sm {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
}

.step-card__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

.round-icon--sm .step-card__img {
  width: 76px;
  height: 76px;
}

.small-number {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  font-size: 13px;
}

.step-card__title,
.profit-item__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step-card__text,
.profit-item__text {
  margin: 0;
  color: #333333;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
}

.step-arrow {
  position: relative;
  height: 95px;
}

.step-arrow::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 15px;
  right: 21px;
  border-top: 2px dashed #b9b9b9;
}

.step-arrow::after {
  content: "";
  position: absolute;
  top: 39px;
  right: 13px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #b9b9b9;
}

/* Profit */

.profit-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.profit-item {
  min-height: 150px;
  padding: 0 24px;
  text-align: center;
}

.profit-item + .profit-item {
  border-left: 1px solid #dedede;
}

/* Partner */

.partner-section {
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  min-height: 205px;
  padding: 34px 46px;
  border-radius: 6px;
  background: linear-gradient(105deg, #f7faf6 0%, #ffffff 44%, #f2f7f0 100%);
  overflow: hidden;
}

.partner-section__title {
  margin: 0 0 14px;
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.partner-section__text {
  margin: 0 0 24px;
  color: #222222;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.partner-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 48px;
  padding: 0 28px;
  border-radius: 5px;
  background: linear-gradient(180deg, #6ed147 0%, #3fb623 100%);
  box-shadow: 0 8px 15px rgba(67, 173, 37, 0.28);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-section__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(67, 173, 37, 0.34);
}

.partner-visual {
  position: relative;
  height: 170px;
}

.partner-visual__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Adaptive */

@media (max-width: 900px) {
  .cooperation-page {
    width: min(100% - 32px, 720px);
  }

  .hero-section,
  .partner-section {
    grid-template-columns: 1fr;
  }

  .hero-section__image {
    max-width: 540px;
    margin: 0 auto;
  }

  .benefit-cards,
  .profit-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-section__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step-arrow {
    display: none;
  }

  .profit-item {
    padding: 20px 18px;
  }

  .profit-item + .profit-item {
    border-left: 0;
  }

  .profit-item:nth-child(even) {
    border-left: 1px solid #dedede;
  }

  .partner-visual {
    max-width: 440px;
  }
  .partner-visual__img {
    margin-top: 20px;
  }
}

@media (max-width: 620px) {
  .cooperation-page {
    width: min(100% - 24px, 420px);
    padding-top: 22px;
  }

  .hero-section {
    gap: 24px;
  }

  .benefit-cards,
  .profit-section__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .benefit-card {
    min-height: auto;
  }

  .profit-item,
  .profit-item:nth-child(even) {
    border-left: 0;
    border-bottom: 1px solid #eeeeee;
  }

  .profit-item:last-child {
    border-bottom: 0;
  }

  .partner-section {
    padding: 28px 20px;
  }

  .partner-visual {
    height: auto;
  }

  .partner-visual__img {
    margin-top: 20px;
  }
}