.lower-page--benefits,
.benefits-page { background: var(--color-cream); }

.benefits-page { position: relative; padding: 80px 0 120px; }
.benefits-page__inner { position: relative; width: min(calc(100% - 80px), 1224px); height: 100%; margin: 0 auto; }
.benefit-group { position: relative; margin-top: 0; padding: 40px 0 64px; border-top: 1px solid var(--color-line); }
.benefit-group--work { margin-top: 40px; }
.benefit-group--other { padding-bottom: 0; }
.benefit-group__heading { position: static; text-align: center; }
.benefit-group__heading span { display: block; color: #3b46e9; font-family: var(--font-latin); font-size: 12px; font-style: normal; line-height: 16px; letter-spacing: .05em; }
.benefit-group__heading h2 { margin: 5px 0 0; font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: .1em; }
.benefit-group__cards { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.benefit-card { position: relative; min-height: var(--benefit-card-height); overflow: hidden; padding: 38px 40px 28px; border-radius: 2px; background: #fff; box-shadow: 0 3px 6px rgb(201 201 201 / 16.1%); }
.benefit-card__decoration { position: absolute; top: 0; right: 16px; width: 160px; height: 120px; object-fit: contain; }
.benefit-card h3 { position: relative; z-index: 1; margin: 0; padding-bottom: 24px; background: repeating-linear-gradient(to right, #848beb 0 2px, transparent 2px 4px) bottom / 100% 1px no-repeat; color: var(--color-blue); font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: .1em; }
.benefit-card p { position: relative; z-index: 1; margin: 22px 0 0; font-size: 16px; line-height: 2; }
.benefit-card small { position: relative; z-index: 1; display: block; margin-top: 11px; font-size: 14px; }

@media (min-width: 1440px) {
  .benefits-page__inner { width: 1224px; height: auto; margin-right: 0; margin-left: max(108px, calc((100vw - 1224px) / 2)); padding-top: 0; }
}

@media (max-width: 1439px) {
  .benefits-page__inner { height: auto; }
  .benefit-card { min-height: max(220px, var(--benefit-card-height)); }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .benefit-card h3 { padding-right: 120px; }
}

@media (max-width: 1199px) {
  .benefit-card { min-height: 260px; padding: 32px; }
  .benefit-card h3 { padding-right: 104px; font-size: 18px; line-height: 1.6; }
  .benefit-card p { font-size: 15px; }
  .benefit-card__decoration { top: 8px; right: 16px; width: 120px; height: 90px; }
}

@media (max-width: 959px) {
  .benefit-group__cards { grid-template-columns: 1fr; }
  .benefit-card { width: min(100%, 760px); min-height: 0; justify-self: center; }
}

@media (max-width: 767px) {
  .benefits-page { padding: var(--lower-section-space-start) 0 var(--lower-section-space-end); }
  .benefits-page__inner { width: calc(100% - 48px); }
  .benefit-group { padding: 40px 0 64px; }
  .benefit-group--other { padding-bottom: 0; }
  .benefit-group__cards { gap: 16px; }
  .benefit-card { min-height: 0; padding: 28px 24px 32px; }
  .benefit-card__decoration { top: 8px; right: 8px; width: 96px; height: 72px; }
  .benefit-card h3 { padding-right: 80px; padding-bottom: 20px; font-size: 17px; }
  .benefit-card p { margin-top: 18px; font-size: 15px; line-height: 2; }
  .benefit-card small { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card { transition: none; }
}
