/* Блок автора статьи */
.author-box__container {
  margin-top: 24px;
}

.author-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border-radius: 14px;
}

.author-box__main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__avatar--placeholder {
  width: 100%;
  height: 100%;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  border-radius: 100px;
}

.author-box__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.author-box__name {
  font-family: "Onest", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.275em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-box__name:hover {
  color: var(--primary);
}

.author-box__position {
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.275em;
  color: var(--grey);
}

.author-box__socials {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-shrink: 0;
}

.author-box__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.author-box__social-link:hover {
  opacity: 0.7;
}

.author-box__social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-box__button {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 400;
}
.author-box__person {
  display: flex;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 530px) {
  .author-box__person {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
  }
  .author-box__avatar {
    width: 60px;
    height: 60px;
  }
  .author-box__button {
    width: 100%;
  }
  .author-box__socials {
    margin: 0 auto;
  }
}
