/* ==========================================================================
   Страница «Информация для благополучателей» (desktop 1680px, макет Figma).
   Фон страницы серый (--bg). Белые блоки — это секции с закруглёнными
   верхними и нижними углами: эллиптические радиусы дают изогнутые
   переходы из макета (купол сверху и «прогиб» снизу).
   Высоты секций зафиксированы по макету, внутри — flex и grid.
   ========================================================================== */

.ben {
  background: transparent;
}

.ben .container {
  width: 1160px;
}

/* Общая секция: белый блок с изогнутыми краями */
.ben-hero,
.ben-who,
.ben-do,
.ben-how,
.ben-steps,
.ben-get {
  position: relative;
}

/* Первый экран: серый фон страницы */
.ben-hero {
  height: 869px;
  padding-top: 100px;
}

.ben-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 110px;
  line-height: 140px;
  text-transform: uppercase;
  color: var(--green);
  white-space: normal;
}

.ben-hero__row {
  display: grid;
  grid-template-columns: 560px 1fr;
  margin-top: 26px;
}

.ben-hero__art {
  width: 414px;
  height: 365px;
}

.ben-hero__nav {
  padding-top: 123px;
}

.ben-hero__nav li {
  display: flex;
  align-items: center;
  height: 33px;
  margin-bottom: 10px;
}

.ben-hero__nav li::before {
  content: '';
  flex: 0 0 auto;
  width: 122px;
  height: 1px;
  background: var(--green-line);
  margin-right: 18px;
}

.ben-hero__nav li:nth-child(2) {
  padding-left: 60px;
}

.ben-hero__nav li:nth-child(2)::before {
  width: 62px;
}

.ben-hero__nav a {
  font-size: 24px;
  line-height: 33px;
  color: #333;
  text-decoration: none;
}

.ben-hero__nav a:hover {
  color: var(--green);
}

/* Белые секции с изогнутыми краями (радиус — высота изгиба по вертикали) */
.ben-who {
  min-height: 967px;
  padding-top: 127px;
  padding-bottom: 110px;
  background: var(--white);
  border-radius: 50% 50% 50% 50% / 55px 55px 22px 22px;
}

.ben-how {
  height: 1837px;
  padding-top: 128px;
  background: var(--white);
  border-radius: 50% 50% 50% 50% / 132px 132px 150px 150px;
}

.ben-get {
  height: 810px;
  padding-top: 145px;
  background: var(--white);
  border-radius: 50% 50% 50% 50% / 85px 85px 80px 80px;
}

/* Секции без фона: видна серая подложка страницы */
.ben-do {
  height: 1211px;
  padding-top: 145px;
}

.ben-steps {
  height: 850px;
  padding-top: 161px;
}

.ben-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 83px;
  text-transform: uppercase;
  color: var(--green);
  white-space: normal;
}

/* Кому мы помогаем ------------------------------------------------------- */
.ben-lead {
  width: 689px;
  margin-top: 50px;
  font-size: 24px;
  line-height: 34px;
  color: #555;
}

.ben-dots {
  display: grid;
  grid-template-columns: 560px 1fr;
  margin-top: 28px;
}

.ben-dots__col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ben-dots li {
  position: relative;
  padding-left: 44px;
  font-size: 24px;
  line-height: 33px;
  color: #333;
}

.ben-dots li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
}

/* Что мы делаем --------------------------------------------------------- */
.ben-cards {
  display: grid;
  grid-template-columns: 530px 530px;
  gap: 30px;
  margin-top: 50px;
}

.ben-card {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 140px;
  padding-left: 30px;
  border-radius: 20px;
  background: var(--white);
}

.ben-card img {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
}

.ben-card p {
  width: 340px;
  font-size: 24px;
  line-height: 33px;
  color: #333;
}

.ben-h2--learn {
  margin-top: 100px;
}

/* Чему мы учим собак ---------------------------------------------------- */
.ben-checks {
  display: grid;
  grid-template-columns: 560px 1fr;
  row-gap: 52px;
  margin-top: 52px;
}

.ben-checks li {
  position: relative;
  padding-left: 58px;
  font-size: 24px;
  line-height: 33px;
  color: #333;
}

.ben-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #597350;
}

.ben-checks li::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 5px;
  width: 9px;
  height: 17px;
  border-right: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: rotate(45deg);
}

/* Как получить помощь --------------------------------------------------- */
.ben-step {
  margin-top: 49px;
  padding: 60px 60px 60px;
  border-radius: 20px;
  background: var(--bg);
}

.ben-how .ben-step + .ben-step {
  margin-top: 50px;
}

.ben-step__head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
}

.ben-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #597350;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}

.ben-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  text-transform: uppercase;
  color: var(--green);
}

.ben-step p {
  font-size: 20px;
  line-height: 27px;
  color: #555;
}

.ben-step p + p {
  margin-top: 36px;
}

.ben-step__last {
  margin-top: 7px !important;
}

/* Этапы участия --------------------------------------------------------- */
.ben-flow {
  display: grid;
  grid-template-columns: 248px 53px 90px 67px 246px 76px 90px 67px 223px;
  grid-template-rows: auto auto;
  row-gap: 86px;
  margin-top: 106px;
}

.ben-flow__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ben-flow__item span {
  margin-top: 31px;
  font-size: 24px;
  line-height: 33px;
  color: #333;
}

.ben-flow__item--1 { grid-column: 1; grid-row: 1; }
.ben-flow__item--2 { grid-column: 5; grid-row: 1; }
.ben-flow__item--3 { grid-column: 9; grid-row: 1; }
.ben-flow__item--4 { grid-column: 1; grid-row: 2; }
.ben-flow__item--5 { grid-column: 5; grid-row: 2; }
.ben-flow__item--6 { grid-column: 9; grid-row: 2; }

.ben-flow__arrow {
  position: relative;
  grid-row: 1;
  align-self: start;
  height: 10px;
  margin-top: 63px;
}

.ben-flow__arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 6px;
  top: 4px;
  height: 1px;
  background: var(--green);
}

.ben-flow__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--green);
  border-top: 1px solid var(--green);
  transform: rotate(45deg);
}

.ben-flow__arrow--1 { grid-column: 3; }
.ben-flow__arrow--2 { grid-column: 7; }
.ben-flow__arrow--4 { grid-column: 3; grid-row: 2; margin-top: 42px; }
.ben-flow__arrow--5 { grid-column: 7; grid-row: 2; margin-top: 42px; }

/* Получение помощи: форма ----------------------------------------------- */
.ben-get__inner {
  display: grid;
  grid-template-columns: 560px 1fr;
}

.ben-get__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 82px;
  text-transform: uppercase;
  color: #597350;
}

.ben-get__info p {
  width: 460px;
  margin-top: 50px;
  font-size: 20px;
  line-height: 27px;
  color: #666;
}

.ben-get__info p + p {
  margin-top: 43px;
}

.ben-form {
  display: flex;
  flex-direction: column;
  width: 460px;
}

.ben-form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 33px;
  color: #597350;
}

.ben-form__input {
  width: 460px;
  height: 80px;
  margin-top: 10px;
  padding: 0 30px;
  border: 0;
  border-radius: 40px;
  background: #f4f6f2;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--green);
}

.ben-form__input::placeholder {
  color: #a7bba4;
  font-weight: 300;
  opacity: 1;
}

.ben-form__title + .ben-form__input {
  margin-top: 33px;
}

.ben-form__agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-caption);
  font-size: 14px;
  font-weight: 300;
  color: #333;
}

.ben-form__agree input {
  width: 30px;
  height: 30px;
  margin: 0;
  accent-color: var(--green);
}

.ben-form__agree u {
  color: var(--green);
}

.ben-form__submit {
  width: 460px;
  height: 80px;
  margin-top: 20px;
  font-size: 20px;
  border: 0;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .ben-hero__title {
    font-size: 80px;
    line-height: 100px;
  }

  .ben-hero__row,
  .ben-dots,
  .ben-checks,
  .ben-get__inner,
  .ben-cards {
    grid-template-columns: 1fr;
  }

  .ben-flow {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .ben-flow__item--1,
  .ben-flow__item--2,
  .ben-flow__item--3,
  .ben-flow__item--4,
  .ben-flow__item--5,
  .ben-flow__item--6 {
    grid-column: 1;
  }

  .ben-flow__arrow {
    display: none;
  }
}

/* Подпись «Первичная консультация с кинологом» в макете занимает две строки */
.ben-flow__item--5 span {
  width: 281px;
}

/* ==========================================================================
   Адаптив: на узких экранах секции теряют фиксированную высоту по макету,
   а сетки перестраиваются. Изогнутые края сохраняются.
   ========================================================================== */
@media (max-width: 1200px) {
  .ben-hero,
  .ben-do,
  .ben-steps {
    height: auto;
    padding-bottom: 80px;
  }

  .ben-who,
  .ben-how,
  .ben-get {
    height: auto;
    padding-bottom: 120px;
  }

  .ben-hero__title {
    font-size: 92px;
    line-height: 115px;
    white-space: normal;
  }

  .ben-h2 {
    font-size: 56px;
    line-height: 70px;
    white-space: normal;
  }

  .ben-dots,
  .ben-checks,
  .ben-get__inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .ben-dots li,
  .ben-checks li {
    max-width: none;
  }

  .ben-cards {
    grid-template-columns: 1fr 1fr;
  }

  .ben-card p {
    width: auto;
    flex: 1;
  }

  .ben-flow {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 60px;
  }

  .ben-flow__item,
  .ben-flow__item--1,
  .ben-flow__item--2,
  .ben-flow__item--3,
  .ben-flow__item--4,
  .ben-flow__item--5,
  .ben-flow__item--6 {
    grid-column: auto;
    grid-row: auto;
  }

  .ben-flow__item span {
    width: auto !important;
  }

  .ben-flow__arrow {
    display: none;
  }
}

@media (max-width: 1024px) {
  .ben-hero__title {
    font-size: 72px;
    line-height: 92px;
  }

  .ben-h2 {
    font-size: 48px;
    line-height: 58px;
  }

  .ben-dots,
  .ben-checks,
  .ben-get__inner,
  .ben-cards {
    grid-template-columns: 1fr;
  }

  .ben-flow {
    grid-template-columns: 1fr 1fr;
  }

  .ben-form,
  .ben-form__input,
  .ben-form__submit {
    width: 100%;
    max-width: 460px;
  }

  .ben-step {
    padding: 40px 32px;
  }

  .ben-step h3 {
    font-size: 32px;
    line-height: 42px;
  }
}

@media (max-width: 1024px) {
  .ben-get__info p {
    width: auto;
  }

  .ben-form {
    width: 100%;
  }

  .ben-form__input,
  .ben-form__submit {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .ben-hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .ben-h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .ben-hero__nav li {
    height: auto;
    align-items: flex-start;
  }

  .ben-hero__nav li::before,
  .ben-hero__nav li:nth-child(2)::before {
    width: 24px;
    margin-right: 10px;
    margin-top: 16px;
  }

  .ben-hero__nav li:nth-child(2) {
    padding-left: 24px;
  }

  .ben-flow {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .ben-flow__item span {
    width: auto !important;
  }

  .ben-step {
    padding: 32px 24px;
  }

  .ben-step h3 {
    font-size: 26px;
    line-height: 34px;
  }

  .ben-step__head {
    gap: 14px;
  }

  .ben-cards {
    grid-template-columns: 1fr;
  }

  .ben-card {
    height: auto;
    padding: 20px;
  }

  .ben-card p {
    width: auto;
  }

  .ben-checks li {
    padding-left: 50px;
  }

  .ben-checks li::before {
    width: 30px;
    height: 30px;
  }

  .ben-checks li::after {
    left: 11px;
    top: 4px;
  }
}

@media (max-width: 480px) {
  .ben-get__title {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (max-width: 320px) {
  .ben-hero__title {
    font-size: 24px;
    line-height: 32px;
  }

  .ben-h2,
  .ben-get__title {
    font-size: 30px;
    line-height: 38px;
  }
}

/* Узкие экраны: колонки могут сжиматься, ничего не выходит за край */
@media (max-width: 480px) {
  .ben .container {
    width: auto;
    max-width: calc(100% - 40px);
  }

  .ben-lead,
  .ben-get__info p {
    width: auto;
    max-width: 100%;
  }

  .ben-dots,
  .ben-checks,
  .ben-get__inner,
  .ben-cards,
  .ben-flow,
  .ben-hero__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ben-form {
    width: 100%;
    min-width: 0;
  }

  .ben-form__input,
  .ben-form__submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ben-h2,
  .ben-step h3 {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .ben-step h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .ben-step {
    min-width: 0;
  }
}

@media (max-width: 320px) {
  .ben .container {
    max-width: calc(100% - 32px);
  }
}

/* Заголовки шагов не разрываем внутри слова */
@media (max-width: 480px) {
  .ben-step h3 {
    overflow-wrap: normal;
    word-break: normal;
    font-size: 20px;
    line-height: 28px;
  }
}

/* Один столбец списка «кому мы помогаем»: отступ между двумя группами */
@media (max-width: 1024px) {
  .ben-dots__col + .ben-dots__col {
    margin-top: 30px;
  }
}

/* Карточки «что мы делаем» на узких экранах: текст не выходит за карточку */
@media (max-width: 480px) {
  .ben-card {
    padding: 16px;
    gap: 14px;
  }

  .ben-card p {
    min-width: 0;
    flex: 1 1 0;
    font-size: 20px;
    line-height: 28px;
  }
}

/* На узких экранах форма идёт после текста: отступ между ними */
@media (max-width: 1024px) {
  .ben-form {
    margin-top: 40px;
  }
}

/* Форма заявки: ошибки, подтверждение, ловушка для ботов. */
.ben-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.ben-form__input.is-invalid,
.ben-form__agree.is-invalid { outline: 2px solid #b3261e; outline-offset: 2px; }
.ben-form__error { margin: 12px 0 0; color: #b3261e; font-size: 16px; line-height: 22px; }
.ben-form__ok { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; background: #e7f3e6; color: var(--green); font-size: 18px; }
.ben-form-wrap { position: relative; }
