/**
 * section_first.css — Стили для hero-секции
 * Методология: БЭМ (Блок-Элемент-Модификатор)
 */

/* Блок: section-first */
.section-first {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Элемент: контейнер контента */
.section-first__content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

/* Адаптив: десктоп */
@media (min-width: 768px) {
  .section-first__content {
    width: 66%;
  }
}

/* Элемент: заголовок H1 */
/* font-size берётся из global.css (36px) */
.section-first__title {
  margin: 0 !important;
  padding: 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  text-align: left;
}

/* Элемент: подзаголовок */
/* font-size берётся из global.css (14px для p) */
.section-first__subtitle {
  margin: 0 !important;
  padding: 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.6;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  text-align: left;
}

/* Элемент: CTA-кнопка (базовые стили позиционирования) */
.section-first__button {
  align-self: flex-start;
}

/* Элемент: фоновое изображение */
.section-first__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.section-first__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

/* Эффект при наведении на секцию */
.section-first:hover .section-first__background img {
  transform: scale(1.01);
}

/* Элемент: градиентный оверлей */
.section-first__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: opacity 0.5s ease;
}

.section-first:hover .section-first__overlay {
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Хлебные крошки (.breadcrumbs)
   Выводятся в section_first.php, всегда видимы независимо от hero-секции.
   ══════════════════════════════════════════════════════════════════════════════ */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 12px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: #6b7280;
}

/* Ссылки */
.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Разделитель «/» между элементами, кроме последней ссылки */
.breadcrumbs a:not(:last-child)::after {
  content: "/";
  margin: 0 6px;
  color: #d1d5db;
  font-weight: 400;
}

/* Текущая страница (последний элемент) */
.breadcrumbs span {
  color: #374151;
}

/* Крошки внутри hero-секции: белый текст поверх фона */
.section-first:not(.section-first--no-hero) .breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.section-first:not(.section-first--no-hero) .breadcrumbs a:hover {
  color: #ffffff;
}

.section-first:not(.section-first--no-hero) .breadcrumbs a:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.5);
}

.section-first:not(.section-first--no-hero) .breadcrumbs span {
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Модификатор: только крошки, без hero-секции */
.section-first--no-hero .section-first__content {
  padding: 12px 24px;
}

@media (min-width: 768px) {
  .section-first--no-hero .section-first__content {
    width: 100%;
  }
}
