:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --accent: #ec4899;
  --bg: #0f0f1a;
  --card-bg: #1a1a2e;
  --text: #e0e0e0;
  --text-light: #a0a0b0;
  --border: #2d2d44;
  --shadow: rgba(0, 0, 0, 0.3);
  --glow: rgba(99, 102, 241, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Фоновые эффекты */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Навигация */
.navbar {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

.nav-link:hover {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Стили для мобильного меню (бургер) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Анимация бургера при открытии */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-links .nav-link {
  color: white;
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45, 45, 68, 0.5);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, white 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 25px var(--glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Карточки курсов */
.course-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.course-card:hover {
  transform: translateY(-8px) perspective(1000px) rotateX(5deg);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--primary);
}

/* Демо и платный контент */
.demo-content {
  position: relative;
  padding: 20px;
  background: rgba(30, 30, 46, 0.8);
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin: 20px 0;
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 26, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.demo-content:hover .demo-overlay {
  opacity: 1;
}

.demo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.premium-badge {
  background: var(--secondary);
  color: white;
}

/* Сетка */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Секции с заголовком */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--glow); }
  70% { box-shadow: 0 0 0 15px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.pulse-effect {
  animation: pulse 2s infinite;
}

.float-effect {
  animation: float 6s ease-in-out infinite;
}

/* Скролл-ревеал */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Страница курсов */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.course-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.course-description {
  color: var(--text-light);
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Содержание курса */
.course-content {
  margin-top: 40px;
}

.module-list {
  margin-top: 20px;
}

.module-item {
  background: rgba(26, 26, 46, 0.7);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.module-item:hover {
  background: rgba(26, 26, 46, 0.9);
  transform: translateX(5px);
}

.module-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.locked-icon {
  color: var(--accent);
}

.unlocked-icon {
  color: var(--secondary);
}

/* Футер */
.footer {
  background: #1a1a2e;
  color: var(--text-light);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-link {
  display: block;
  padding: 8px 0;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
}



/* Адаптация для планшетов (1024px и меньше) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 1rem 15px;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .hero-section {
    padding: 5rem 1rem;
  }
  .footer-container {
    gap: 30px;
  }
  .course-card {
    padding: 20px;
  }
}

/* Адаптация для мобильных устройств (768px и меньше) */
@media (max-width: 768px) {
  /* Показываем бургер‑меню, скрываем основное */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 15px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .hero-section {
    padding: 3rem 1rem;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .grid-2,
  .grid-3,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .course-title {
    font-size: 1.3rem;
  }

  .course-meta {
    flex-direction: column;
    gap: 8px;
  }

  .module-item {
    padding: 12px 16px;
  }

  .social-links {
    justify-content: center;
  }
}

/* Очень маленькие экраны (480px и меньше) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  .course-card {
    padding: 12px;
  }
  .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
  .module-item {
    padding: 10px 15px;
  }
  .demo-badge,
  .premium-badge {
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  .footer-column h3 {
    font-size: 1.1rem;
  }
  .footer-link {
    padding: 6px 0;
  }
}

/* Смартфоны (320px и меньше) */
@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .course-title {
    font-size: 1rem;
  }
  body {
    font-size: 14px;
  }
}

/* Улучшение читаемости на мобильных */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .course-description {
    font-size: 0.95rem;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Анимация бургера при открытии */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 70px; /* высота шапки */
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg); /* тёмный фон, как у шапки */
    padding: 20px 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: none; /* изначально скрыто */
    z-index: 1000; /* поверх остального контента */
  }

  /* Стили для пунктов мобильного меню */
  .nav-links li {
    text-align: center;
    margin: 15px 0;
  }

  .nav-link {
    color: white;
    font-size: 1.1rem;
    padding: 12px 20px;
    display: block;
    transition: background-color 0.3s ease;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary);
  }

  .nav-link-accent {
    background: var(--primary);
    color: var(--bg) !important;
    border-radius: 8px;
  }
}
/* Базовый стиль для заблокированных тем */
.locked-topic {
  background: rgba(26, 26, 46, 0.6); /* полупрозрачный серый на фоне card-bg */
  border-left: 4px solid rgba(45, 45, 68, 0.8); /* приглушённая граница */
  opacity: 0.7; /* небольшая прозрачность */
  transition: all 0.3s ease;
}

/* Эффект при наведении на заблокированную тему */
.locked-topic:hover {
  opacity: 1;
  background: rgba(26, 26, 46, 0.8);
  transform: translateX(2px);
}

/* Стили для оверлея с сообщением о платном доступе */
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 26, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.locked-topic:hover .lock-overlay {
  opacity: 1;
}

/* Стиль для иконки замка */
.lock-icon {
  width: 24px;
  height: 24px;
  color: var(--accent); /* розовый цвет из переменных */
  flex-shrink: 0;
}

/* Стиль для текста сообщения */
.locked-message {
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
  padding: 0 20px;
}

/* Отдельный стиль для модулей с платным контентом */
.module-item.has-locked-topics .module-title::after {
  content: " (частично платно)";
  font-size: 0.85rem;
  color: var(--text-light);
  margin-left: 8px;
  font-weight: normal;
}
/* Стили для страницы оплаты */
.payment-page {
  padding: 40px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.info-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.highlight-box {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 25px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-box {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefits-section,
.steps-section {
  margin: 30px 0;
}

.section-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
}

.benefits-list,
.steps {
  list-style: none;
  padding-left: 0;
}

.benefit-item,
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.benefit-icon,
.step-number {
  flex-shrink: 0;
  font-weight: bold;
  color: var(--primary);
}

.cta-section {
  text-align: center;
  margin-top: 30px;
}

.btn-full-width {
  width: 100%;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .info-card {
    padding: 20px;
    margin: 0 15px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .highlight-box {
    flex-direction: column;
    gap: 8px;
  }
}

/* Стили для страницы преподавателей */
.teachers-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.teacher-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.teacher-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--primary);
}

.teacher-photo {
  text-align: center;
  margin-bottom: 20px;
}

.teacher-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.teacher-info {
  text-align: center;
}

.teacher-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.teacher-specialty {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 5px;
}

.teacher-experience {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.teacher-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .teachers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .teacher-photo img {
    width: 100px;
    height: 100px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
/* Стили для страницы темы — компактный вариант */
.topic-detail {
  padding: 40px 20px;
}

.topic-header {
  text-align: center;
  margin-bottom: 30px;
}

.topic-title {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}

.access-warning {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.4s ease-out;
  max-width: 550px;
  margin: 20px auto;
}

.warning-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 соотношение сторон */
  margin: 25px 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.content {
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

.topic-navigation {
  margin-top: 40px;
  text-align: center;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-nav {
  flex: 1;
  min-width: 160px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-prev {
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-prev:hover {
  background: var(--primary);
  color: white;
}

.btn-next {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.btn-next:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-next.locked {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.8;
}

.btn-back {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-back:hover {
  background: var(--border);
  color: white;
}

.btn-full-width {
  width: 100%;
  max-width: 350px;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .topic-detail {
    padding: 30px 15px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .btn-nav {
    width: 100%;
    max-width: none;
  }

  .topic-title {
    font-size: 1.6rem;
  }

  .video-container {
    margin: 20px 0;
  }

  .content {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .access-warning {
    padding: 10px 14px;
    gap: 8px;
  }

  .warning-icon {
    font-size: 1.2rem;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .topic-header {
    margin-bottom: 25px;
  }

  .topic-title {
    font-size: 1.4rem;
  }

  .nav-buttons {
    gap: 6px;
  }

  .btn-nav,
  .btn-full-width {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .content {
    line-height: 1.5;
  }
}
/* Контейнер для изображения курса — увеличенные размеры */
.course-image-container {
  width: 100%;
  height: 320px; /* увеличенная высота контейнера */
  display: flex;
  align-items: center; /* центрируем по вертикали */
  justify-content: center; /* центрируем по горизонтали */
  padding: 30px; /* большие отступы вокруг изображения */
  border-radius: 14px 14px 0 0;
  background: var(--card-bg); /* фон контейнера */
  border-bottom: 2px solid var(--border); /* заметная разделительная линия */
  margin-bottom: 12px; /* отступ снизу */
  position: relative;
}

/* Изображение курса — крупнее, с сохранением пропорций */
.course-image {
  max-width: 95%; /* занимает до 95 % ширины контейнера */
  max-height: 95%; /* занимает до 95 % высоты контейнера */
  height: auto; /* автоматическая высота */
  width: auto; /* автоматическая ширина */
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* плавная анимация */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25); /* выраженная тень */
  border-radius: 12px; /* скругление углов */
  border: 4px solid transparent; /* рамка для эффекта */
  z-index: 2; /* выше других элементов */
}

/* Эффект при наведении — заметное увеличение */
.course-card:hover .course-image {
  transform: scale(1.18); /* увеличение на 18 % */
  border-color: rgba(99, 102, 241, 0.6); /* полупрозрачная рамка при наведении */
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3); /* усиленная тень при наведении */
}

/* Заглушка для отсутствующего изображения — более крупная */
.placeholder-image {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem; /* увеличенный шрифт */
  padding: 40px; /* большие внутренние отступы */
  border: 3px dashed var(--border); /* пунктирная рамка */
  border-radius: 12px;
  min-width: 200px; /* минимальная ширина */
}

/* Метка скидки — более заметная */
.discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 10px 20px; /* увеличенные отступы */
  border-radius: 28px; /* более скруглённые углы */
  font-weight: 700; /* жирный шрифт */
  font-size: 1rem; /* увеличенный размер шрифта */
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4); /* усиленная тень */
  z-index: 10; /* поверх других элементов */
  animation: pulse 2s infinite; /* лёгкая пульсация */
}

/* Анимация пульсации для метки скидки */
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4); }
  50% { box-shadow: 0 12px 32px rgba(236, 72, 153, 0.6); }
  100% { box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4); }
}

/* Улучшенный эффект карточки при наведении */
.course-card:hover {
  transform: translateY(-15px) perspective(1500px) rotateX(4deg); /* увеличенное смещение */
  box-shadow: 0 30px 60px var(--shadow); /* усиленная тень */
  border-color: var(--primary);
}
/* Стили для медиа в карточках новостей */
.news-media-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 225px;
}

.news-image,
.news-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .news-image,
.course-card:hover .news-video {
    transform: scale(1.05);
}

/* Стили для детальной страницы */
.news-media-large-container {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
}

.news-image-large {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--shadow);
}

.video-large-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
}

.news-video-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Дополнительные стили для контента */
.content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 30px;
}

.content h2 {
    color: white;
    margin: 30px 0 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.content h3 {
    color: var(--primary);
    margin: 25px 0 10px;
    font-size: 1.3rem;
    font-weight: 500;
}

.content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.content ul,
.content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.content li {
    margin-bottom: 0.5em;
}

.content blockquote {
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--primary);
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-light);
    font-style: italic;
}

/* Стили для действий на детальной странице */
.news-actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
}

/* Сообщение при отсутствии новостей */
.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .news-media-container {
        height: 180px; /* Уменьшаем высоту превью на мобильных */
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }

    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .topic-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .news-media-container {
        height: 150px; /* Ещё меньше для очень маленьких экранов */
    }

    .grid-3 {
        grid-template-columns: 1fr; /* Одна колонка на очень маленьких экранах */
    }

    .section-title {
        font-size: 2rem;
    }

    .course-title {
        font-size: 1.3rem;
    }
}

/* Анимации для скролл‑ревеала */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержка анимации для элементов сетки */
.grid-3 .course-card:nth-child(1) .scroll-reveal { transition-delay: 0.1s; }
.grid-3 .course-card:nth-child(2) .scroll-reveal { transition-delay: 0.2s; }
.grid-3 .course-card:nth-child(3) .scroll-reveal { transition-delay: 0.3s; }
.grid-3 .course-card:nth-child(4) .scroll-reveal { transition-delay: 0.4s; }

/* Стили для секции новостей */
.news-section {
    padding: 60px 0;
}

.news-detail-section {
    padding: 40px 0;
}

/* Улучшение отображения видео */
.news-video,
.news-video-large {
    background: #000;
}

/* Фиксация для iframe видео (YouTube и т. д.) */
.video-large-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Стили для заголовка детальной страницы */
.topic-header {
    text-align: center;
    margin-bottom: 40px;
}

.topic-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}
/* Контейнер для медиа — фон в тон сайта, без белого */
.original-size-media-container {
  text-align: center;
  margin: 20px 0;
  padding: 12px;
  min-height: 250px; /* Гарантированная минимальная высота */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* Не обрезаем контент */
  border-radius: 12px;
  /* Убираем белый фон, делаем прозрачным или в тон сайта */
  background: transparent; /* Полностью прозрачный фон */
  /* Если нужно добавить лёгкий оттенок в тон сайта — раскомментируйте строку ниже и подберите цвет */
  /* background: rgba(240, 245, 255, 0.8); */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Изображения — оригинальный масштаб, сохранение пропорций */
.original-size-image {
  max-width: 100%; /* Не шире контейнера */
  max-height: 500px; /* Максимальная высота — достаточно большая */
  height: auto; /* Автоматическая высота */
  width: auto; /* Автоматическая ширина */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
  display: block;
}

/* Видео — оригинальный масштаб, сохранение пропорций */
.original-size-video {
  max-width: 100%; /* Не шире контейнера */
  max-height: 450px; /* Немного меньше, чем для фото — видео часто шире */
  height: auto; /* Автоматическая высота */
  width: auto; /* Автоматическая ширина */
  background: #000; /* Чёрный фон для видео — стандарт */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  vertical-align: middle;
  object-fit: contain; /* Сохраняем пропорции, без обрезки */
  display: block;
}

/* Эффект при наведении — лёгкое увеличение */
.original-size-media-container:hover .original-size-image,
.original-size-media-container:hover .original-size-video {
  transform: scale(1.03);
}

/* Адаптивность — плавное уменьшение на маленьких экранах */
@media (max-width: 768px) {
  .original-size-media-container {
    min-height: 220px;
    padding: 8px;
    margin: 15px 0;
  }
  .original-size-image,
  .original-size-video {
    max-height: 350px; /* Уменьшаем максимальную высоту */
  }
}

@media (max-width: 480px) {
  .original-size-media-container {
    min-height: 180px;
    padding: 6px;
    margin: 12px 0;
  }
  .original-size-image,
  .original-size-video {
    max-height: 260px; /* Ещё меньше на смартфонах */
  }
}
/* Секция последних новостей — наследует фон родителя */
.latest-news-section {
  padding: 60px 0;
  /* Фон наследуется от родительского контейнера */
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.news-all-link {
  font-size: 0.9rem;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--primary, #007bff);
  transition: color 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--primary, #007bff);
  border-radius: 8px;
  background-color: transparent;
}

.news-all-link:hover {
  color: white;
  background-color: var(--primary, #007bff);
}

/* Сетка новостей — повторяет стиль карточек курсов и особенностей */
.news-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Карточка новости — прозрачный фон, наследует фон секции */
.news-card-compact {
  background: transparent; /* УБРАНО: background: white */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Лёгкая граница для визуального разделения карточек */
}

.news-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Обёртка для медиаконтента */
.news-media-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

/* Изображения в карточках */
.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card-compact:hover .news-image {
  transform: scale(1.05);
}

/* Заглушка для отсутствия медиа — в цветах сайта, с полупрозрачностью */
.no-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 0, 123, 255), 0.8) 0%, rgba(108, 117, 125, 0.8) 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Информация о новости */
.news-info {
  padding: 18px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Метаданные новости */
.news-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9); /* Цвет текста адаптирован для тёмного фона */
}

.news-date {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.news-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
}

/* Заголовок новости */
.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: white; /* Белый цвет для лучшей читаемости на тёмном фоне */
  line-height: 1.4;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Текст анонса */
.news-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый для лучшей читаемости */
  margin-bottom: 16px;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Ссылка «Читать далее» */
.news-read-more {
  text-decoration: none;
  color: var(--primary, #007bff);
  font-weight: 500;
  align-self: start;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.news-read-more:hover {
  color: var(--primary-dark, #0056b3);
}

/* Адаптивность — повторяет стили других секций */
@media (max-width: 1024px) {
  .news-slider {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-media-wrapper {
    height: 140px;
  }
}

@media (max-width: 768px) {
  .latest-news-section {
    padding: 40px 0;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .news-slider {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .news-media-wrapper {
    height: 180px;
  }

  .news-info {
    padding: 16px 14px;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-excerpt {
    font-size: 0.85rem;
  }
}
/* Основной контейнер содержания курса */
.course-outline {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--bg) 0%, #121220 100%);
}

/* Список модулей */
.modules-list {
  list-style: none;
  padding: 0;
}

.module-item {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.module-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--shadow);
  border-color: var(--primary);
}

/* Заголовок модуля */
.module-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  padding: 20px 24px;
  background: rgba(79, 70, 229, 0.1);
  border-bottom: 1px solid var(--border);
  margin: 0;
}

/* Список тем */
.topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Элемент темы */
.topic-item {
  position: relative;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-item:hover {
  background: rgba(26, 26, 46, 0.7);
}

/* Доступная тема */
.accessible-topic .topic-title {
  color: var(--text);
}

.accessible-topic:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* Заблокированная тема */
.locked-topic .topic-title {
  color: var(--text-light);
  opacity: 0.8;
}

.locked-topic:hover {
  background: transparent;
}

/* Контент темы */
.topic-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topic-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
}

/* Кнопка просмотра */
.view-topic {
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

/* Оверлей блокировки */
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.locked-topic:hover .lock-overlay {
  opacity: 1;
  visibility: visible;
}

.lock-icon {
  fill: var(--accent);
}

.locked-message {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
  .course-outline {
    padding: 40px 0;
  }

  .module-title {
    font-size: 1.2rem;
    padding: 16px 20px;
  }

  .topic-item {
    padding: 14px 20px;
  }

  .topic-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .view-topic {
    align-self: stretch;
  }
}
/* Основной контейнер секции */
.promo-image-section {
    margin-top: 60px;
    padding: 80px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Фоновые пятна (мягкое свечение) — как у сертификата */
.promo-image-section::before,
.promo-image-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}
.promo-image-section::before {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -50px;
    left: -50px;
}
.promo-image-section::after {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
}

/* Сетка контента */
.promo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Текстовая часть */
.promo-text {
    text-align: left;
}

.promo-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.promo-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.promo-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Визуальная часть */
.promo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.floating-card {
    width: 100%;
    max-width: 450px;
    position: relative;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

/* Рамка */
.card-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: linear-gradient(45deg, transparent 0%, rgba(99, 102, 241, 0.1) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Контейнер для картинки — масштабирование целиком */
.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0f0f1a;
    overflow: hidden;
}

.promo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Картинка никогда не обрежется */
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Анимация парения */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Адаптив */
@media (max-width: 768px) {
    .promo-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .promo-text {
        text-align: center;
    }

    .floating-card {
        max-width: 100%;
        height: 320px;
        aspect-ratio: auto;
    }

    .image-container {
        padding: 10px;
    }
}
/* Основной контейнер секции */
.promo-image-section {
    margin-top: 60px;
    padding: 80px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Фоновые пятна (мягкое свечение) */
.promo-image-section::before,
.promo-image-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}
.promo-image-section::before {
    width: 400px;   /* Чуть крупнее, чтобы заполнять пространство */
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}
.promo-image-section::after {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
}

/* Сетка контента: фото 2 части, текст 1 часть */
.promo-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;  /* <-- ГЛАВНОЕ ИЗМЕНЕНИЕ */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1400px;  /* Чуть шире, чтобы вместить большое фото */
    margin: 0 auto;
}

.promo-text.compact-text {
    text-align: left;
    /* Текст теперь компактнее, потому что фото больше */
}

.promo-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.promo-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem); /* Чуть меньше, чтобы не спорил с большим фото */
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.promo-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Визуальная часть */
.promo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Увеличенная карточка */
.floating-card.large-card {
    width: 100%;
    max-width: 550px; /* <-- УВЕЛИЧЕНО с 450px до 550px */
    position: relative;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.4)); /* Тень чуть массивнее под большую карточку */
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: linear-gradient(45deg, transparent 0%, rgba(99, 102, 241, 0.12) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px; /* Чуть больше отступы, чтобы фото не прилипало к рамке */
    background: #0f0f1a;
    overflow: hidden;
}

.promo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); } /* Чуть выше подлетает из-за размера */
}

/* Адаптив */
@media (max-width: 992px) {
    .promo-wrapper {
        grid-template-columns: 1fr; /* На планшетах снова в одну колонку */
        gap: 40px;
        text-align: center;
    }

    .promo-text.compact-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .floating-card.large-card {
        max-width: 100%;
        height: 360px; /* Фиксированная высота на мобильном, чтобы было аккуратно */
        aspect-ratio: auto;
    }

    .image-container {
        padding: 12px;
    }

    .promo-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}
.course-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0; /* Чуть больше отступы, раз фото крупное */
}

.course-img {
    width: 70%;           /* Крупно: 70% от ширины карточки */
    max-width: 500px;    /* Но не больше 500px, чтобы не вылезало */
    height: auto;         /* Пропорции сохраняются */
    object-fit: contain;  /* Без обрезки */
    display: block;
    border-radius: 12px;  /* Чуть сильнее скругление под крупный размер */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Тень чуть заметнее */
}

@media (max-width: 768px) {
    .course-img {
        width: 90%;      /* На мобильном почти во всю ширину */
        max-width: 100%; /* Не больше ширины экрана */
        border-radius: 8px;
    }
}


/* === КОМПРЕССИЯ МОБИЛЬНОГО МЕНЮ === */
@media (max-width: 768px) {
  /* Убираем отступы между пунктами списка */
  .nav-links {
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Убираем отступы у самих элементов списка */
  .nav-links li {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Уменьшаем внутренние отступы у ссылок (чтобы текст был ближе к краям) */
  .nav-link {
    padding: 6px 10px !important;
    font-size: 1rem !important;
  }
}
