/**
 * April 2.0 (tn-dom) — страница проекта.
 * Подключается вместо hero-1.css / project-single.css (April 1.0).
 */

.hero-project {
  position: relative;
}

/* Избранное / сравнение — справа в хлебных крошках */
.page__breadcrumbs-top--april2 .page__breadcrumbs-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.page__breadcrumbs-top--april2 .page__breadcrumbs-top__crumbs {
  flex: 1 1 auto;
  min-width: 0;
}

.page__breadcrumbs-top--april2 .page__breadcrumbs-top__crumbs .breadcrumbs {
  margin-bottom: 0;
}

.page__breadcrumbs-top--april2 .page__breadcrumbs-top__actions.hero-project__fav-compare {
  position: static;
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.page__breadcrumbs-top--april2 .hero__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid var(--orange, #e34f34);
  border-radius: 0;
  box-sizing: border-box;
  color: #fff;
  background: var(--orange, #e34f34);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page__breadcrumbs-top--april2 .hero__action-btn:hover {
  background: #c9452e;
  border-color: #c9452e;
  color: #fff;
}

.page__breadcrumbs-top--april2 .hero__action-btn svg {
  width: 22px;
  height: 22px;
}

.page__breadcrumbs-top--april2 .hero__action-btn svg path {
  fill: currentColor;
  transition: fill 0.2s ease;
}

.page__breadcrumbs-top--april2 .hero__favorite-btn:not(.in-favorites) svg path,
.page__breadcrumbs-top--april2 .hero__compare-btn:not(.in-compare) svg path {
  fill: #fff;
}

.page__breadcrumbs-top--april2 .hero__favorite-btn.in-favorites svg path,
.page__breadcrumbs-top--april2 .hero__compare-btn.in-compare svg path,
.page__breadcrumbs-top--april2 .hero__favorite-btn.in-favorites:hover svg path,
.page__breadcrumbs-top--april2 .hero__compare-btn.in-compare:hover svg path {
  fill: var(--orange, #e34f34);
}

.page__breadcrumbs-top--april2 .hero__action-text,
.page__breadcrumbs-top--april2 .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page__breadcrumbs-top--april2 .hero__favorite-btn.in-favorites,
.page__breadcrumbs-top--april2 .hero__compare-btn.in-compare {
  background: #fff;
  color: var(--orange, #e34f34);
  border-color: var(--orange, #e34f34);
}

.page__breadcrumbs-top--april2 .hero__favorite-btn.in-favorites:hover,
.page__breadcrumbs-top--april2 .hero__compare-btn.in-compare:hover {
  background: #fff;
  border-color: var(--orange, #e34f34);
  color: var(--orange, #e34f34);
  opacity: 0.85;
}

.hero-project .arrow__btn--new.hero-project__btn {
  max-width: unset;
  min-width: unset;
  width: 100%;
  border-radius: 0;
}

.hero-project .arrow__btn--new.hero-project__btn .arrow__btn-icn--new.hero-project__btn-icn {
  border-radius: 0;
}

@media (max-width: 768px) {
  .page__breadcrumbs-top--april2 .page__breadcrumbs-top__inner {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page__breadcrumbs-top--april2 .page__breadcrumbs-top__actions.hero-project__fav-compare {
    gap: 8px;
  }

  .page__breadcrumbs-top--april2 .hero__action-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

.descr-project .descr-project__content,
.descr-project .descr-project__content p {
  width: 100%;
  display: block;
  margin: 0;
  color: #2d3134;
  text-align: center;
  font-size: clamp(1rem, 0.75rem + 1.111vw, 2rem);
  font-weight: 400;
  line-height: 130%;
}
