/* ===== Authors list ===== */
.authors-list {
  padding: 8px 0 60px;
}

.authors-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.authors-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(43, 34, 28, 0.08);
  transition: box-shadow .2s ease, transform .2s ease;
}

.authors-card:hover {
  box-shadow: 0 10px 28px rgba(43, 34, 28, 0.12);
  transform: translateY(-2px);
}

.authors-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #ececec;
  overflow: hidden;
}

.authors-card__photo img,
.authors-card__photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.authors-card__body {
  padding: 18px 18px 22px;
}

.authors-card__name {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #332914;
}

.authors-card__position {
  margin-top: 4px;
  color: #332914;
  opacity: 0.5;
  font-size: 14px;
}

.authors-card__text {
  margin-top: 10px;
  color: #332914;
  font-size: 14px;
  line-height: 1.45;
}

.authors-list__empty {
  color: #6b635c;
}

.authors-list__pager {
  margin-top: 28px;
}

/* ===== Author detail (Figma: Страница автора) ===== */
.page:has(.author-page) {
  background: #f5f5f8;
}

.page:has(.author-page) .page-head,
.page:has(.authors-list) .page-head {
  background: #f5f5f8;
}

.page:has(.authors-list) {
  background: #f5f5f8;
}

.page:has(.author-page) .bx-breadcrumb-item-last,
.page:has(.authors-list) .bx-breadcrumb-item-last {
  display: inline;
  color: #332914;
}

.author-page {
  background: #f5f5f8;
  padding: 20px 0 80px;
}

.author-hero {
  padding: 0;
  margin: 0;
}

.author-hero__grid {
  display: grid;
  grid-template-columns: 333px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.author-hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 333 / 420;
  border-radius: 30px;
  overflow: hidden;
  background: #ececec;
  box-shadow: 0 0 6.2px rgba(0, 0, 0, 0.25);
}

.author-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 30px;
}

.author-hero__photo-placeholder {
  width: 100%;
  height: 100%;
}

.author-hero__content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 20px 0;
  min-width: 0;
}

.author-hero__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author-hero__name {
  margin: 0;
  font-size: 48px;
  line-height: 1.2;
  color: #332914;
  font-weight: 700;
}

.author-hero__position {
  margin: 0;
  color: #332914;
  opacity: 0.5;
  font-size: 22px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.author-hero__profiles-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #332914;
}

.author-socials {
  display: flex;
  gap: 5px;
  margin: 0;
  align-items: center;
}

.author-socials__link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 40px;
  background: transparent center / contain no-repeat;
}

.author-socials__link--site {
  background-image: url("images/social-site.svg");
}

.author-socials__link--vk {
  background-image: url("images/social-vk.svg");
}

.author-socials__link--tg {
  background-image: url("images/social-tg.svg");
}

.author-hero__bio {
  max-width: 900px;
  color: #332914;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.author-hero__bio p {
  margin: 0 0 0.6em;
}

.author-hero__bio p:last-child {
  margin-bottom: 0;
}

/* Articles */
.author-articles {
  padding: 100px 0 0;
  margin: 0;
  background: transparent;
}

.author-articles__title {
  margin: 0 0 40px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #332914;
}

.author-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.author-article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 120px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 6.2px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease;
}

.author-article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.author-article-card__title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #332914;
}

.author-article-card__date {
  align-self: flex-end;
  color: rgba(51, 41, 20, 0.45);
  font-size: 14px;
  white-space: nowrap;
}

.author-articles__empty {
  color: #6b635c;
}

.author-articles__pager {
  margin-top: 28px;
}

@media (max-width: 1200px) {
  .author-hero__grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
  }
  .author-hero__name {
    font-size: 40px;
  }
  .author-articles__title {
    font-size: 36px;
  }
}

@media (max-width: 992px) {
  .authors-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-page {
    padding: 32px 0 56px;
  }

  .author-hero__grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .author-hero__content {
    gap: 28px;
    padding: 0;
  }

  .author-hero__head {
    gap: 12px;
  }

  .author-hero__name {
    font-size: 32px;
  }

  .author-hero__position,
  .author-hero__bio {
    font-size: 18px;
  }

  .author-articles {
    padding-top: 56px;
  }

  .author-articles__title {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .author-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .authors-list__grid,
  .author-articles__grid {
    grid-template-columns: 1fr;
  }

  .author-hero__grid {
    grid-template-columns: 1fr;
  }

  .author-hero__photo {
    max-width: 280px;
  }

  .author-hero__name {
    font-size: 28px;
  }

  .author-socials__link {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}
