/* ===============================================
   REBALANCING PAGE STYLES
   =============================================== */

/* ========== HERO INTRO SECTION ========== */
.re-intro {
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.re-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/desktop/rebalancing/osho.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px);
  opacity: 0.8;
  z-index: 0;
}

.re-intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/desktop/rebalancing/osho.jpeg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.re-intro .hero-content {
  display: block !important;
  text-align: center !important;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 3rem;
  border-radius: 12px;
  backdrop-filter: blur(3px);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transform: translateY(12.5%);
}

.re-intro .hero-content .hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
  text-align: center !important;
  display: block;
  width: 100%;
}

.re-intro .hero-content .hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  text-align: center !important;
  margin-bottom: 2rem;
  display: block;
  width: 100%;
}

.re-intro blockquote {
  margin-top: 2rem;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.6;
  text-align: center !important;
}

.re-intro blockquote footer {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ========== CONTENT SECTIONS ========== */
.re-section {
  padding: 80px 0;
}

.re-section--white {
  background: white;
}

.re-section--gray {
  background: linear-gradient(315deg, rgba(107, 78, 140, 0.7) 0%, rgba(78, 205, 196, 0.3) 100%);
}

.re-section--gradient {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: white;
}

.re-section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.re-section--gradient .re-section__title {
  color: white;
}

.re-section__content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.re-section__content p {
  margin-bottom: 1.5rem;
}

/* ========== CLOSING SECTION ========== */
.re-closing {
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.re-closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/desktop/rebalancing/ocean.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px);
  opacity: 0.8;
  z-index: 0;
}

.re-closing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/desktop/rebalancing/ocean.avif");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.re-closing__content {
  display: block !important;
  text-align: center !important;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.re-closing__text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: white;
  text-align: center !important;
}

.re-closing blockquote {
  margin-top: 2rem;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.6;
  text-align: center !important;
}

.re-closing blockquote footer {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ========== UNIFIED INFO SECTION ========== */

.re-info-unified {
  background-image: 
    linear-gradient(315deg, rgba(107, 78, 140, 0.7) 0%, rgba(78, 205, 196, 0.3) 100%),
    url('../images/desktop/index/re.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.re-info-unified .container {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl);
  box-shadow: var(--shadow-heavy);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.re-info-block {
  transition: all var(--transition-normal);
}

.re-info-block:first-child {
  padding-top: 50px;
}

.re-info-block:last-child {
  padding-bottom: 0;
}

.re-info-block--white {
  background-color: transparent;
}

.re-info-block--gray {
  background-color: transparent;
}


.re-info-block__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-light);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.re-info-block__content {
  max-width: 900px;
  margin: 0 auto;
}

.re-info-block__content p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  text-align: justify;
}

.re-info-block__content p:last-child {
  margin-bottom: 0;
}

/* ========== TEXT DIVIDER ========== */
.text-divider {
  display: block;
  margin: var(--spacing-xl) auto 0;
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: invert(1) brightness(1.2);
  opacity: 0.8;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .re-intro .hero-title {
    font-size: 2rem;
  }

  .re-intro .hero-subtitle {
    font-size: 1.2rem;
  }

  .re-section__title {
    font-size: 2rem;
  }

  .re-section__content {
    font-size: 1rem;
  }

  .re-closing__text {
    font-size: 1rem;
  }

  .re-intro,
  .re-section,
  .re-info-block,
  .re-closing {
    padding: 60px 0;
  }
  
  .re-intro .hero-content,
  .re-closing__content {
    padding: var(--spacing-lg);
  }

  .re-info-block__title {
    font-size: var(--font-size-h3);
  }

  .re-info-block__content p {
    font-size: var(--font-size-body-small);
  }

  /* Отключаем fixed фон на мобильных для лучшей производительности */
  .re-info-unified {
    background-attachment: scroll;
    padding: 60px 0;
  }

  .re-info-unified .container {
    padding: var(--spacing-lg);
  }

  /* Disable background images on mobile for rebalancing page */
  .re-intro::before,
  .re-intro::after,
  .re-closing::before,
  .re-closing::after,
  .re-info-unified {
    background-image: none !important;
  }
}
