/* ==========================================================================
   Section: Pre-footer CTA (ГОТОВ К НОВЫМ ПОБЕДАМ?)
   ========================================================================== */

.cta-banner {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  min-height: clamp(22rem, 30vw, 28rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid rgba(212, 168, 83, 0.4);
  border-bottom: 2px solid rgba(212, 168, 83, 0.4);
  box-shadow:
    inset 0 0 30px rgba(124, 58, 237, 0.2);
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero/foot.png') center center / cover no-repeat;
  z-index: 0;
  filter: brightness(1.15) saturate(1.3) contrast(1.1);
}

.cta-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 5, 25, 0.5) 0%,
    rgba(10, 5, 25, 0.15) 40%,
    rgba(10, 5, 25, 0.15) 60%,
    rgba(10, 5, 25, 0.5) 100%
  );
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.75rem, 2vh, 1.25rem);
}

.cta-banner__title {
  font-family: 'Trajan Pro', 'TrajanPro-Regular', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);
  paint-order: stroke fill;
  text-shadow:
    0 0 15px rgba(200, 200, 208, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(124, 58, 237, 0.25);
}

.cta-banner__text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.875rem, 1.8vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  max-width: 32rem;
}

/* CTA button with image */
.cta-banner__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(0.5rem, 1.5vh, 1rem);
  width: clamp(14rem, 50%, 24rem);
  aspect-ratio: 1959 / 544;
  padding: 2.5% 4%;
  background: url('../assets/images/hero/button.png') center / 100% 100% no-repeat;
  border: none;
  box-shadow: none;
  overflow: hidden;
  transition: transform var(--transition-base), filter var(--transition-base);
  text-decoration: none;
}

.cta-banner__btn-text {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  font-size: clamp(0.7rem, 2.2vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 10px rgba(168, 85, 247, 0.4);
  pointer-events: none;
  white-space: nowrap;
}

.cta-banner__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* Corner ornaments for section border */
.cta-banner__corner {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 3px;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.7);
}

.cta-banner__corner--tl {
  top: -2px;
  left: clamp(1rem, 3vw, 3rem);
}

.cta-banner__corner--tr {
  top: -2px;
  right: clamp(1rem, 3vw, 3rem);
}

.cta-banner__corner--bl {
  bottom: -2px;
  left: clamp(1rem, 3vw, 3rem);
}

.cta-banner__corner--br {
  bottom: -2px;
  right: clamp(1rem, 3vw, 3rem);
}

/* ─── Tablet ─── */
@media (max-width: 1024px) {
  .cta-banner {
    min-height: clamp(18rem, 28vw, 24rem);
  }

  .cta-banner__btn {
    width: clamp(14rem, 55%, 22rem);
  }
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
  .cta-banner {
    padding-block: clamp(2rem, 5vw, 3rem);
    min-height: 16rem;
  }

  .cta-banner__btn {
    width: 85%;
  }

  .cta-banner__btn-text {
    font-size: clamp(0.6rem, 4.5vw, 0.85rem);
    letter-spacing: 0.05em;
  }
}
