/* ==========================================================================
   ОГЛАВЛЕНИЕ (block-09.css) — Блок 9: Подвал (footer)
   1. Блок «О школе» с фото
   2. Четыре колонки с иконками (2×2 на планшете)
   3. Кнопка «Купить курс» — белая, текст оранжевый при hover
   4. Анимация: блики и частицы
   ========================================================================== */

.block-09 {
  background: linear-gradient(180deg, #060608 0%, #030306 40%, #020204 100%);
  padding: calc(var(--gap-xl) * 1.35) 0 var(--gap-lg);
  border-top: 1px solid rgba(255, 159, 61, 0.18);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.block-09__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.block-09__particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 159, 61, 0.55);
  box-shadow: 0 0 10px rgba(255, 107, 26, 0.4);
  animation: b09Particle 8s ease-in-out infinite;
}
.block-09__particles span:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; }
.block-09__particles span:nth-child(2) { left: 22%; top: 65%; animation-delay: 1.6s; }
.block-09__particles span:nth-child(3) { left: 55%; top: 30%; animation-delay: 3.2s; }
.block-09__particles span:nth-child(4) { left: 78%; top: 55%; animation-delay: 0.8s; }
.block-09__particles span:nth-child(5) { left: 92%; top: 18%; animation-delay: 2.4s; }

@keyframes b09Particle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
  50% { opacity: 0.85; transform: translateY(-12px) scale(1); }
}

.block-09 .container {
  position: relative;
  z-index: 1;
}

/* 1. О школе — фото + текст */
.block-09__intro {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  margin-bottom: calc(var(--gap-xl) * 1.25);
  padding-bottom: var(--gap-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
@media (max-width: 640px) {
  .block-09__intro {
    flex-direction: column;
    text-align: center;
  }
}

.block-09__intro-media {
  flex-shrink: 0;
  position: relative;
}
.block-09__intro-media::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 159, 61, 0.35);
  animation: b09RingPulse 4s ease-in-out infinite;
}
.block-09__intro-media img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

@keyframes b09RingPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

.block-09__intro-eyebrow {
  margin: 0 0 0.35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
}
.block-09__intro-title {
  margin: 0 0 0.5rem;
  font-size: var(--text-xl);
  color: #f4f4f6;
  line-height: 1.25;
}
.block-09__intro-desc {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 52ch;
}

/* 2. Колонки */
.block-09__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xl) var(--gap-lg);
  margin-bottom: var(--gap-xl);
}
@media (max-width: 900px) {
  .block-09__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .block-09__grid { grid-template-columns: 1fr; }
}

.block-09__col h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-gold);
  margin-bottom: var(--gap-md);
  min-height: 1.5rem;
}
.block-09__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.block-09__col a:not(.block-09__buy-btn) {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.55rem;
  padding: 0.15rem 0;
  transition: color var(--duration-fast), transform var(--duration-fast);
}
.block-09__col a:not(.block-09__buy-btn):hover {
  color: var(--color-accent-light);
  transform: translateX(3px);
}
.block-09__link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity var(--duration-fast);
}
.block-09__col a:not(.block-09__buy-btn):hover .block-09__link-icon {
  opacity: 0.9;
}

/* 3. Кнопка «Купить курс» */
.block-09__buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  color: #0a0a0f;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.block-09__buy-btn:hover,
.block-09__buy-btn:focus-visible {
  color: var(--color-accent);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.22);
}

.block-09__bottom {
  text-align: center;
  padding-top: var(--gap-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.block-09__bottom a {
  color: var(--color-text-muted);
}
.block-09__bottom a:hover {
  color: var(--color-accent-light);
}

.block-09__shine {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
  animation: footerShine 6s linear infinite;
}
@keyframes footerShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
