/* ==========================================================================
   CTA БЛОК — Призыв к действию над футером (Светлый стиль)
   ========================================================================== */

.cta-block-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f8faff 0%, #eef3ff 50%, #f0faf5 100%);
  position: relative;
  overflow: hidden;
}

/* Декоративные фоновые кружки */
.cta-block-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-block-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(39, 174, 96, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ==========================================================================
   ЛЕВАЯ ЧАСТЬ
   ========================================================================== */

.cta-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-tagline-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  width: fit-content;
}

.cta-tagline-badge span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-blue);
  letter-spacing: 0.02em;
}

.cta-headline {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0;
}

.cta-headline span {
  color: var(--color-green);
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 440px;
}

/* Список преимуществ */
.cta-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.cta-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cta-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(0, 113, 227, 0.05));
  border: 1px solid rgba(0, 113, 227, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cta-feature-item:hover .cta-feature-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.18), rgba(0, 113, 227, 0.1));
}

.cta-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-feature-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.cta-feature-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Нижняя подпись */
.cta-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.cta-footer-note span {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   ПРАВАЯ ЧАСТЬ
   ========================================================================== */

.cta-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* ==========================================================================
   ИЛЛЮСТРАЦИЯ: 3D АКАДЕМИЧЕСКАЯ ШАПКА
   ========================================================================== */

.cta-illustration-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Орбитальные кольца */
.cta-orbit-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(0, 113, 227, 0.12);
  animation: ctaOrbitSpin 20s linear infinite;
  pointer-events: none;
}

.cta-orbit-ring-2 {
  width: 200px;
  height: 200px;
  border-color: rgba(39, 174, 96, 0.15);
  animation-direction: reverse;
  animation-duration: 14s;
}

@keyframes ctaOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3D Академическая шапка */
.cta-grad-cap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: capFloat 5s ease-in-out infinite;
  z-index: 5;
}

@keyframes capFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* Квадратная доска шапки */
.cap-board {
  position: absolute;
  width: 140px;
  height: 140px;
  background: linear-gradient(145deg, #1a2340 0%, #0f172a 60%, #1e293b 100%);
  border-radius: 14px;
  transform: rotate(-10deg) perspective(300px) rotateX(20deg);
  box-shadow:
    0 20px 50px rgba(0, 0, 50, 0.25),
    0 8px 20px rgba(0, 0, 50, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  top: 10px;
  left: 20px;
}

.cap-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,113,227,0.15) 0%, transparent 60%);
  border-radius: 14px;
}

/* Навершие шапки */
.cap-top {
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  border-radius: 50%;
  top: 4px;
  left: 85px;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.4), 0 0 24px rgba(52, 152, 219, 0.3);
  z-index: 6;
}

/* Кисточка */
.cap-tassel {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tassel-button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  box-shadow: 0 0 6px rgba(243, 156, 18, 0.5);
}

.tassel-string {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, #f39c12, #2ecc71);
  border-radius: 1px;
}

.tassel-end {
  width: 12px;
  height: 16px;
  background: linear-gradient(180deg, #2ecc71, #27ae60);
  border-radius: 0 0 6px 6px;
  position: relative;
  overflow: hidden;
}

.tassel-end::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.3);
}

/* Свечение под шапкой */
.cap-glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(39, 174, 96, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

/* ==========================================================================
   ПЛАВАЮЩИЕ КАРТОЧКИ
   ========================================================================== */

.cta-float-card {
    position: absolute;
    background: rgb(255 255 255 / 80%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 50, 0.08), 0 2px 6px rgba(0, 0, 50, 0.04);
    z-index: 10;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-float-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 50, 0.12);
}

.cta-float-card-1 {
  top: 10px;
  left: -10px;
  animation: ctaCardFloat1 7s ease-in-out infinite;
}

.cta-float-card-2 {
  top: 10px;
  right: -10px;
  animation: ctaCardFloat2 6s ease-in-out infinite;
}

.cta-float-card-3 {
  bottom: 10px;
  right: -10px;
  animation: ctaCardFloat3 8s ease-in-out infinite;
}

@keyframes ctaCardFloat1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ctaCardFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes ctaCardFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cta-fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cta-fc-gold {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(230, 126, 34, 0.1));
  color: #e67e22;
}

.cta-fc-blue {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(52, 152, 219, 0.08));
  color: var(--color-blue);
}

.cta-fc-purple {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.12), rgba(142, 68, 173, 0.08));
  color: #9b59b6;
}

.cta-fc-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cta-fc-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.cta-fc-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: normal;
  max-width: 110px;
}

/* ==========================================================================
   CTA ПАНЕЛЬ (БЛОК ДЕЙСТВИЯ)
   ========================================================================== */

.cta-action-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 50, 0.08), 0 2px 8px rgba(0, 0, 50, 0.04);
  position: relative;
  overflow: hidden;
  z-index:2;
}

.cta-action-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), #2ecc71);
  border-radius: 20px 20px 0 0;
}

.cta-action-texts {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.cta-action-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.cta-action-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-green);
}

.cta-action-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.cta-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-order-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.3);
  white-space: nowrap;
}

.cta-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.cta-guard-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.cta-guard-badge i {
  color: var(--color-blue);
  font-size: 1rem;
}

.cta-guard-badge span {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

@media (max-width: 1024px) {
  .cta-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .cta-left {
    align-items: center;
  }

  .cta-subtitle {
    margin: 0 auto;
  }

  .cta-features-list {
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-footer-note {
    justify-content: center;
  }

  .cta-illustration-wrap {
    height: 280px;
  }

  .cta-float-card-1 { left: 20px; }
  .cta-float-card-2 { right: 20px; }
  .cta-float-card-3 { right: 20px; }
}

@media (max-width: 768px) {
  .cta-block-section {
    padding: 50px 0 40px;
  }
  
  .cta-action-title {
    font-size: 15px;
  }

  .cta-headline {
    font-size: 2rem;
  }

  .cta-illustration-wrap {
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
  }

  .cta-orbit-ring {
    display: none !important;
  }

  .cta-student-image-wrapper,
  .cta-grad-cap {
    position: relative !important;
    order: 1;
    margin-bottom: 12px;
  }

  .cta-float-card {
    position: static !important;
    display: flex !important;
    width: 100%;
    max-width: 320px;
    animation: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 50, 0.04);
    background: white;
    border: 1px solid rgba(0, 113, 227, 0.12);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 0 auto;
    text-align: left;
  }

  .cta-float-card-1 { order: 2; }
  .cta-float-card-2 { order: 3; }
  .cta-float-card-3 { order: 4; }
}

@media (max-width: 480px) {
  .cta-headline {
    font-size: 1.7rem;
  }

  .cta-action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-order-btn {
    width: 100%;
    text-align: center;
  }
}
