/* Контейнер для карточки */
.hero-news-card__container {
  width: 100%;
}

.hero-news-card {
  position: relative;
  width: 100%;
  min-height: 600px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-news-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-news-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(35, 35, 35, 0) 50%,
    rgba(35, 35, 35, 1) 100%
  );
  z-index: 2;
}

.hero-news-card__rating {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.hero-news-card__rating .post-rating-score {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 100px;
  margin: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  line-height: 1;
}

.hero-news-card__rating .post-rating-score__rating {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #232323;
  display: flex;
  margin-top: 3px;
}

.hero-news-card__content {
  position: relative;
  z-index: 3;
  padding: 60px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-top: auto;
  max-width: 100%;
}

.hero-news-card__content-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  max-width: 820px;
}

.hero-news-card__meta {
  margin: 0;
}

.news-card__meta--light .news-card__meta-item {
  color: #f4f4f4;
}

.news-card__meta--light .news-card__meta-item svg {
  fill: #f4f4f4;
}

.hero-news-card__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.275;
  color: var(--white);
  margin: 0;
}

.hero-news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.hero-news-card__title a:hover {
  opacity: 0.8;
}

.hero-news-card__button {
  width: fit-content;
  height: 50px;
  padding: 0 32px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.275;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .hero-news-card {
    min-height: 500px;
  }

  .hero-news-card__content {
    padding: 40px;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-news-card__content-main {
    max-width: 100%;
  }

  .hero-news-card__title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .hero-news-card {
    min-height: 440px;
  }

  .hero-news-card__overlay {
    background: linear-gradient(
      180deg,
      rgba(35, 35, 35, 0) 0%,
      rgba(35, 35, 35, 1) 100%
    );
  }

  .hero-news-card__content {
    padding: 20px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-news-card__title {
    font-size: 28px;
  }

  .hero-news-card__button {
    width: fit-content;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    max-width: none;
  }

  .hero-news-card__rating {
    top: 10px;
    right: 10px;
  }
}
@media (max-width: 480px) {
  .hero-news-card {
    min-height: 370px;
  }
}

/* Блок автора в hero-news-card */
.hero-news-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border-radius: 14px;
  flex-shrink: 0;
  min-width: 200px;
}

.hero-news-card__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-news-card__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-news-card__author-avatar--placeholder {
  width: 100%;
  height: 100%;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  border-radius: 100px;
}

.hero-news-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.hero-news-card__author-name {
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.275em;
  color: #232323;
}

.hero-news-card__author-position {
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.275em;
  color: #7d7d7d;
}

/* Адаптивность для блока автора */
@media (max-width: 1024px) {
  .hero-news-card__author {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-news-card__author {
    width: 100%;
    min-width: auto;
  }
}
