/* ==========================================================================
   Home Page Styles
   Уникальные стили главной страницы и её декоративных блоков.
   ========================================================================== */

.compact-slider-section {
  position: relative;
  padding: 64px 0 30px;
  overflow: hidden;
}

/* Декоративный фон hero-секции на главной странице */
.compact-slider-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(246, 250, 255, 0.5) 100%),
    url("../img/firstblock.png") center/cover no-repeat;
  transform: scale(1);
  transform-origin: center;
  animation: compactSectionBgZoom 18s ease-in-out infinite alternate;
  will-change: transform;
  filter: saturate(1.02) contrast(1.04);
}

.compact-slider-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%2312345e' fill-opacity='0.075'%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='44' cy='26' r='1'/%3E%3Ccircle cx='78' cy='14' r='1'/%3E%3Ccircle cx='112' cy='22' r='1'/%3E%3Ccircle cx='24' cy='48' r='1'/%3E%3Ccircle cx='60' cy='54' r='1'/%3E%3Ccircle cx='94' cy='44' r='1'/%3E%3Ccircle cx='126' cy='58' r='1'/%3E%3Ccircle cx='16' cy='84' r='1'/%3E%3Ccircle cx='46' cy='92' r='1'/%3E%3Ccircle cx='86' cy='80' r='1'/%3E%3Ccircle cx='118' cy='96' r='1'/%3E%3Ccircle cx='30' cy='118' r='1'/%3E%3Ccircle cx='70' cy='126' r='1'/%3E%3Ccircle cx='104' cy='114' r='1'/%3E%3Ccircle cx='132' cy='128' r='1'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.compact-slider-section > .container {
  position: relative;
  z-index: 1;
}

/* Анимация фонового зума */
@keyframes compactSectionBgZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* Увеличенная версия компактного слайдера специально для главной */
.compact-slide-card {
  min-height: 440px;
}

.compact-slide-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 30px;
  min-height: 440px;
}

.compact-slide-content h3 {
  font-size: clamp(30px, 3.3vw, 44px);
}

.compact-slide-content p {
  max-width: 680px;
}

/* Вводный текст об ассоциации на главной */
#about .lead-block {
  max-width: none;
}

#about .lead-block p {
  max-width: none;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.72;
  color: #4b6485;
}

/* Вводный блок перед карточками целей */
.goals-showcase {
  margin-bottom: 36px;
}

.goals-intro-panel {
  margin-bottom: 36px;
  padding: 24px 28px 24px 32px;
  border: 1px solid #dde7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 64, 117, 0.04);
  color: #365173;
}

.goals-intro-panel p {
  max-width: 900px;
  color: #365173;
  line-height: 1.62;
}

.goals-intro-panel .section-label {
  margin-bottom: 10px;
  color: #164075;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.goals-intro-panel::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #164075 0%, #59b5e8 100%);
}

.goals-intro-panel::after {
  display: none;
}

/* Сетка карточек с ключевыми целями */
.goals-card-grid {
  align-items: stretch;
}

.home-objective-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 22px 62px 22px 22px;
  border: 1px solid #dde7f2;
  background: #fff;
  box-shadow: 0 10px 22px rgba(22, 64, 117, 0.04);
}

.home-objective-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: #dfe9f5;
}

.home-objective-card .objective-card-num {
  background: #f2f7fc;
  color: #164075;
  box-shadow: inset 0 0 0 1px #d9e6f3;
}

.home-objective-badge {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  margin-bottom: 0;
}

.home-objective-badge i {
  font-size: 14px;
  line-height: 1;
}

.home-objective-card h3 {
  margin-bottom: 10px;
  padding-right: 28px;
  font-size: 17px;
  line-height: 1.3;
  color: #173e72;
}

.home-objective-card p {
  font-size: 14px;
  line-height: 1.58;
  color: #4b6485;
}

/* Раздел с разными форматами показа целей и задач */
.objectives-variants {
  background: #f3f6fb;
}

.variant-intro {
  max-width: 980px;
  font-size: 18px;
  line-height: 1.7;
  color: #28486f;
}

.variant-block + .variant-block {
  margin-top: 56px;
}

.variant-title {
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #164075;
}

/* Таймлайн, альтернативные карточки и списки целей */
.timeline-objectives {
  position: relative;
  padding-left: 74px;
}

.timeline-line {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 32px;
  width: 2px;
  background: #59b5e8;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  align-items: start;
}

.timeline-item + .timeline-item {
  margin-top: 28px;
}

.timeline-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2da8df;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  transform: translateY(12px);
  box-shadow: 0 10px 20px rgba(45, 168, 223, 0.22);
}

.timeline-content {
  padding-top: 8px;
}

.timeline-content h3,
.objective-card-alt h3,
.objective-list-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #173e72;
}

.timeline-content p,
.objective-card-alt p,
.objective-list-item p {
  margin: 0;
  color: #365173;
}

.objective-card-alt {
  height: 100%;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid #dbe5f2;
  background: #fff;
  box-shadow: 0 18px 38px rgba(22, 64, 117, 0.06);
}

.objective-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #164075;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.objective-list-block {
  height: 100%;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #dbe5f2;
  background: #fff;
  box-shadow: 0 18px 38px rgba(22, 64, 117, 0.06);
}

.objective-list-block.accent {
  background: linear-gradient(180deg, #164075 0%, #1f5a9d 100%);
  border-color: transparent;
}

.objective-list-item + .objective-list-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 64, 117, 0.12);
}

.objective-list-block.accent .objective-list-item + .objective-list-item {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.objective-list-block.accent .objective-list-item h3,
.objective-list-block.accent .objective-list-item p {
  color: #fff;
}

/* Планшетная адаптация главной страницы */
@media (max-width: 991.98px) {
  .hero-slider {
    padding: 0;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-content {
    padding: 54px 0;
  }

  .hero-carousel-full,
  .hero-carousel-full .carousel-inner,
  .hero-carousel-full .carousel-item,
  .hero-slide,
  .hero-slide-container {
    min-height: 58vh;
  }

  .timeline-objectives {
    padding-left: 28px;
  }

  .timeline-item {
    grid-template-columns: 74px 1fr;
  }

  .compact-slide-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
    min-height: 380px;
  }

  .goals-showcase {
    margin-bottom: 28px;
  }

  .goals-intro-panel {
    margin-bottom: 28px;
    padding: 22px 22px 22px 28px;
  }

  .home-objective-card {
    padding: 20px 54px 20px 20px;
  }
}

/* Мобильная адаптация главной страницы */
@media (max-width: 767.98px) {
  .hero-slide {
    padding: 0;
  }

  .slider-control {
    display: none;
  }

  .hero-content {
    padding: 44px 0 52px;
  }

  .variant-intro {
    font-size: 16px;
  }

  .timeline-objectives {
    padding-left: 0;
  }

  .timeline-line {
    left: 24px;
  }

  .timeline-item {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }

  .timeline-icon {
    width: 48px;
    height: 48px;
    font-size: 14px;
    transform: translateY(6px);
  }

  .timeline-content h3,
  .objective-card-alt h3,
  .objective-list-item h3 {
    font-size: 18px;
  }

  .objective-card-alt,
  .objective-list-block {
    padding: 22px;
  }

  .hero-carousel-full,
  .hero-carousel-full .carousel-inner,
  .hero-carousel-full .carousel-item,
  .hero-slide,
  .hero-slide-container {
    min-height: 50vh;
  }

  .compact-slider-section {
    padding: 40px 0 26px;
  }

  .compact-slide-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    min-height: 0;
  }

  .compact-slide-card {
    min-height: 0;
  }

  .compact-slide-media {
    width: 140px;
    max-width: 100%;
    margin: 0 auto;
  }

  .compact-slide-content {
    padding: 0 8px 18px;
  }

  .compact-slide-content h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  .compact-slide-links {
    gap: 12px 18px;
  }

  .compact-slide-links a {
    font-size: 12px;
  }

  #about .lead-block p {
    font-size: 16px;
    line-height: 1.66;
  }

  .goals-intro-panel,
  .home-objective-card {
    border-radius: 8px;
  }

  .home-objective-badge {
    top: 16px;
    right: 14px;
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .home-objective-badge i {
    font-size: 13px;
  }

  .goals-intro-panel {
    padding: 18px 18px 18px 24px;
  }

  .goals-intro-panel::before {
    top: 14px;
    bottom: 14px;
  }

  .home-objective-card {
    padding: 18px 48px 18px 18px;
  }

  .home-objective-card h3 {
    font-size: 16px;
    padding-right: 18px;
  }

}
