/* «~», а не «+»: между отзывами и вакансиями стоит скрытый попап #modalReviewView */
.main .reviews:has(~ .news.vacancy) {
  margin-bottom: 0;
}
.knowledge__slider .swiper-wrapper,
.news__slider .swiper-wrapper,
.articles__slider .swiper-wrapper {
  align-items: stretch;
}
.knowledge-card.swiper-slide,
.news-card.swiper-slide,
.article-card.swiper-slide {
  height: auto !important;
  display: flex;
  flex-direction: column;
}
.knowledge-card,
.news-card,
.article-card,
a.knowledge-card,
a.news-card,
a.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.knowledge .card-img,
.news .card-img,
.articles .card-img {
  width: 407px;
  max-width: 100%;
  aspect-ratio: 407 / 394;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
}
.knowledge .card-img img,
.news .card-img img,
.articles .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.knowledge .card-discr,
.news .card-discr,
.articles .card-discr {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.knowledge .title,
.news .title,
.articles .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news .card-discr .date,
.articles .card-discr .date {
  margin-top: auto;
}
.services a.service-item {
  text-decoration: none;
  color: inherit;
}
.container .p-about,
.container .ah-charity-top,
.container .ah-charity-body,
.section-content {
  max-width: var(--xlWidth, 1440px);
  margin: 0 auto;
  padding: 0 20px 60px;
}
.training-page,
.about-page,
.charity-page {
  padding-bottom: 60px;
}
.training-page img {
  max-width: 100%;
  height: auto;
  margin: 8px 4px;
  border-radius: 14px;
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.offer-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.offer-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 160px;
}
