.blog-author {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 16px;
  align-items: start;
  padding: 28px;
  margin: 36px 0;
  border: 1px solid #e6e6e2;
  border-top: 3px solid #ffcb05;
  border-radius: 16px;
  background: #fafaf7;
  color: #111;
  font-family: inherit;
  line-height: 1.5;
}

.blog-author--empty {
  display: block;
  font-size: 0.9375rem;
}

.blog-author .blog-author__photo {
  display: flex;
  grid-row: 1 / span 3;
  align-items: center;
  justify-content: center;
  width: 132px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #ecece6;
  text-decoration: none !important;
}

.blog-author .blog-author__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.blog-author__initials {
  font-size: 2rem;
  font-weight: 700;
  color: #777;
}

.blog-author__info,
.blog-author__contacts,
.blog-author__actions {
  grid-column: 2;
  min-width: 0;
}

.blog-author__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-author__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
}

.blog-author .blog-author__name {
  font-size: 1.375rem;
  line-height: 1.3;
}

.blog-author .blog-author__name a,
.blog-author .blog-author__contacts a {
  color: #111;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.blog-author .blog-author__name a:hover,
.blog-author .blog-author__contacts a:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.blog-author__role {
  color: #666;
  font-size: 0.875rem;
}

.blog-author__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.875rem;
}

.blog-author__contacts a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
}

.blog-author__contact-label {
  font-size: 0.6875rem;
  color: #777;
}

.blog-author .blog-author__offers {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #ffcb05;
  color: #111;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}

.blog-author__offers-label,
.blog-author__offers-icon {
  flex: none;
}

.blog-author .blog-author__offers:hover {
  background: #ffd84d;
  color: #111;
}

.blog-author a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

@media (max-width: 575.98px) {
  .blog-author {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 20px 16px;
    padding: 20px;
  }

  .blog-author .blog-author__photo {
    grid-row: 1;
    width: 80px;
  }

  .blog-author .blog-author__name {
    font-size: 1.125rem;
  }

  .blog-author__contacts,
  .blog-author__actions {
    grid-column: 1 / -1;
  }

  .blog-author .blog-author__offers {
    width: 100%;
  }
}
