/* Авторы: blocks/templates/t_author.php, blocks/authors/html_authors.php, карточка в статье - authors_print_article_card() */

.authors-page {
  padding-bottom: 40px;
  padding-top: 20px;
}

.authors-page__title {
  margin: 10px 0 16px;
}

.authors-page__intro {
  margin-bottom: 24px;
}

.authors-empty {
  padding: 40px 0;
  color: #777;
}

/* ---------- список ---------- */

.authors-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: box-shadow .16s ease-in-out, transform .3s ease-in-out;
}

.author-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: #000;
}

.author-card__photo {
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #F0D0AA;
}

.author-card__photo picture,
.author-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card__name {
  font: 600 18px/24px 'Museo Sans Cyrl', sans-serif;
  margin-bottom: 6px;
}

.author-card__position {
  font: 14px/20px 'Museo Sans Cyrl', sans-serif;
  color: #CB856C;
  margin-bottom: 12px;
}

.author-card__text {
  font: 14px/21px 'Museo Sans Cyrl', sans-serif;
  color: #555;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.author-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px 'Museo Sans Cyrl', sans-serif;
  color: #CB856C;
  transition: color .16s ease-in-out;
}

.author-card:hover .author-card__more {
  color: #FFB169;
}

.author-card .author-card__more path {
  transition: fill .16s ease-in-out;
}

.author-card:hover .author-card__more path {
  fill: #FFB169;
}

.authors-pagination {
  float: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.authors-pagination .left_side_arrow {
  order: -1;
}

.authors-pagination span#left_side,
.authors-pagination span#right_side {
  display: block;
  width: 20px;
  height: 20px;
  top: 0;
}

/* ---------- страница автора ---------- */

.author-profile {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 48px;
  margin: 10px 0 30px;
  background: #fff;
  border-radius: 24px;
}

.author-profile__photo {
  width: 320px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #F0D0AA;
}

.author-profile__photo picture,
.author-profile__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.author-profile__info {
  flex: 1;
  min-width: 0;
}

.author-profile__name {
  margin: 0 0 8px;
  font: 600 32px / 40px 'Museo Sans Cyrl', sans-serif;
  padding: 0 !important;
}

.author-profile__position {
  font: 18px/26px 'Museo Sans Cyrl', sans-serif;
  color: #CB856C;
  margin-bottom: 24px;
}

.author-profile__text {
  font: 16px/26px 'Museo Sans Cyrl', sans-serif;
}

.author-profile__text p {
  margin-bottom: 12px;
}

.author-profile__text img {
  max-width: 100%;
  height: auto;
}

.author-profile__back {
  font: 600 14px 'Museo Sans Cyrl', sans-serif;
  color: #CB856C;
}

.author-profile__back:hover {
  color: #FFB169;
}

/* ---------- карточка автора в статье ---------- */

.author-card.author-card--row {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin: 0 0 30px;
  padding: 24px 28px;
  text-align: left;
  border: none;
}

.author-card--row:hover {
  transform: none;
}

.author-card--row .author-card__photo {
  width: 120px;
  height: 120px;
  margin-bottom: 0;
}

.author-card--row .author-card__body {
  flex: 1;
  min-width: 0;
}

.author-card__label {
  font: 12px/16px 'Museo Sans Cyrl', sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #888;
  margin-bottom: 4px;
}

.author-card--row .author-card__position {
  margin-bottom: 8px;
}

.author-card--row .author-card__text {
  -webkit-line-clamp: 3;
  margin-bottom: 8px;
}

/* ---------- адаптив ---------- */

@media (max-width: 1199px) {
  .authors-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .authors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .author-profile {
    gap: 32px;
    padding: 32px;
  }

  .author-profile__photo {
    width: 240px;
  }
}

@media (max-width: 767px) {
  .author-card {
    padding: 24px 12px 16px;
  }

  .author-card__photo {
    width: 110px;
    height: 110px;
    margin-bottom: 14px;
  }

  .author-card__name {
    font-size: 15px;
    line-height: 20px;
  }

  .author-card__position,
  .author-card__text {
    font-size: 13px;
    line-height: 18px;
  }

  .author-profile {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 15px;
    text-align: center;
  }

  .author-profile__photo {
    width: 200px;
    border-radius: 50%;
    aspect-ratio: 1;
  }

  .author-profile__name {
    font-size: 24px;
    line-height: 30px;
  }

  .author-profile__text {
    text-align: left;
    font-size: 15px;
    line-height: 24px;
  }
}

@media (max-width: 767px) {
  .author-card.author-card--row {
    gap: 16px;
    padding: 16px;
    align-items: flex-start;
  }

  .author-card--row .author-card__photo {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 420px) {
  .authors-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
