/* will9.ru — approach «Подход» desktop 2340:5379 / tablet 2393:17553 / mobile 2393:18354 */

.block--approach {
  padding: 0 0 140px;
}

.approach {
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--color-grey-01);
  box-sizing: border-box;
}

.approach__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 827px;
}

.approach__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.approach__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.approach__item:not(:last-child) {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--color-gray);
}

.approach__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.approach__logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.approach__text {
  margin: 0;
  width: min(100%, 622px);
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .block--approach {
    padding: 0 0 80px;
  }

  .block--approach .container {
    width: calc(100% - (var(--header-pad-tablet) * 2));
  }

  .approach {
    gap: 32px;
    padding: 16px;
    border-radius: 16px;
  }

  .approach__title {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  .approach__row {
    gap: 32px;
  }

  .approach__text {
    width: min(100%, 460px);
    font-size: var(--fs-body-sm);
  }
}

@media (max-width: 767px) {
  .block--approach {
    padding: 0 0 64px;
  }

  .block--approach .container {
    width: calc(100% - (var(--header-pad-mobile) * 2));
  }

  .approach {
    gap: 52px;
    padding: 16px;
    border-radius: 16px;
  }

  .approach__head {
    max-width: none;
  }

  .approach__title {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  .approach__item:not(:last-child) {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .approach__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .approach__text {
    width: 100%;
    font-size: var(--fs-body-sm);
  }
}
