/**
 * @file
 * Hero section styles.
 * Full-viewport hero with animated background and layered content.
 */

.re-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem var(--re-gutter) 4rem;
}

.re-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.re-hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.re-hero__arch {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 800px;
  opacity: 0.4;
}

/* === Hero Content Layout === */
.re-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--re-space-3xl);
  text-align: left;
  align-items: center;
}

.re-hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  border-radius: 0;
}

.re-hero__media .re-banner__slides {
  width: 100%;
  height: 100%;
}

.re-hero__media .re-banner__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.re-hero__media .re-banner__slide--active {
  opacity: 1;
  z-index: 1;
}

.re-hero__media .re-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.re-hero__text {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.re-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: 0;
  font-family: var(--re-font-body);
  font-size: var(--re-text-xs);
  font-weight: 600;
  letter-spacing: var(--re-tracking-wide);
  text-transform: uppercase;
  color: var(--re-red-light);
  margin-bottom: var(--re-space-lg);
  line-height: var(--re-leading-snug);
}

.re-hero__title {
  font-size: var(--re-text-3xl);
  font-weight: 800;
  line-height: var(--re-leading-tight);
  letter-spacing: var(--re-tracking-tight);
  color: var(--re-white);
  margin-bottom: var(--re-space-md);
}

.re-hero__title-line {
  display: block;
}

.re-hero__title-line--accent {
  color: var(--re-red);
  font-weight: 600;
}

.re-hero__subtitle {
  font-size: var(--re-text-base);
  line-height: var(--re-leading-relaxed);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--re-space-lg);
  font-weight: 400;
}

.re-hero__cta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: var(--re-space-2xl);
  flex-wrap: wrap;
}

/* === UTP Banner inside Hero === */
.re-hero__utp-banner {
  display: grid;
  border: 0 !important;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: var(--re-space-xl);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.re-hero__utp-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.re-hero__utp-value {
  font-family: var(--re-font-heading);
  font-size: var(--re-text-xl);
  font-weight: 700;
  color: var(--re-white);
  line-height: 1.2;
}

.re-hero__utp-label {
  font-family: var(--re-font-body);
  font-size: var(--re-text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: var(--re-tracking-wide);
  text-transform: uppercase;
  line-height: 1.3;
}

.re-hero__stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--re-space-lg);
  flex-wrap: wrap;
  padding-top: var(--re-space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #0a0a0a;
}

/* Когда stats внутри hero — убираем фон (фон у hero уже есть) */
.re-hero .re-hero__stats {
  background-color: transparent;
}

/* Когда stats отдельно между hero и properties */
body .re-hero__stats:not(.re-hero .re-hero__stats) {
  padding: var(--re-space-xl) 0;
}

body .re-hero__stats:not(.re-hero .re-hero__stats) .re-hero__stat-number {
  color: var(--re-white);
}

body .re-hero__stats:not(.re-hero .re-hero__stats) .re-hero__stat-label {
  color: rgba(255, 255, 255, 0.5);
}

body .re-hero__stats:not(.re-hero .re-hero__stats) .re-hero__stat-divider {
  background-color: rgba(255, 255, 255, 0.15);
}

.re-hero__stats-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--re-space-lg);
  flex-wrap: wrap;
  width: 100%;
}

.re-hero__stats.is-revealed {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--re-space-lg);
  flex-wrap: wrap;
}

.re-hero__stat {
  text-align: center;
}

.re-hero__stat-number {
  display: block;
  font-family: var(--re-font-heading);
  font-size: var(--re-text-3xl);
  font-weight: 700;
  color: var(--re-white);
  line-height: 1.15;
}

.re-hero__stat-label {
  display: block;
  font-family: var(--re-font-body);
  font-size: var(--re-text-xs);
  font-weight: 600;
  letter-spacing: var(--re-tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.375rem;
  line-height: var(--re-leading-snug);
}

.re-hero__stat-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
}

.re-banner__indicators {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.re-banner__indicator {
  width: 40px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
  padding: 0;
}

.re-banner__indicator--active {
  background-color: var(--re-red);
  width: 60px;
}

.re-banner__indicator:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* === Responsive === */
@media (max-width: 992px) {
  .re-hero__content {
    grid-template-columns: 1fr;
    gap: var(--re-space-2xl);
  }

  .re-hero__media {
    min-height: 380px;
    order: 2;
    grid-column: 1;
  }

  .re-hero__text {
    order: 1;
  }

  .re-hero__stats {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .re-hero {
    padding: 7rem var(--re-gutter) 3rem;
    min-height: auto;
    min-height: 100svh;
  }

  .re-hero__arch {
    width: 80%;
    opacity: 0.2;
  }

  .re-hero__utp-banner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .re-hero__utp-value {
    font-size: var(--re-text-lg);
  }

  .re-hero__stats {
    flex-direction: column;
    gap: var(--re-space-md);
    border-top: none;
    padding-top: 0;
  }

  .re-hero__stat-divider {
    width: 48px;
    height: 1px;
  }

  .re-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .re-hero__cta .re-btn {
    text-align: center;
  }
}
