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

:root {
  /* Brand Colors from "ФОРМУЛА МАСШТАБА" */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-card: #ffffff;
  --color-accent-primary: #c41e3a;
  --color-accent-primary-dark: #a01a2e;
  --color-accent-primary-light: #dc143c;
  --color-accent-secondary: #00c853;
  --color-checkmark: var(--color-accent-primary);
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;

  /* Typography */
  --font-heading: 'Oswald', 'Montserrat', Arial, sans-serif;
  --font-heading-alt: 'Montserrat Alternates', 'Montserrat', Arial, sans-serif;
  --font-body: 'Golos Text', sans-serif;

  /* Semantic Variables */
  --bg-body: var(--color-bg-primary);
  --bg-card: var(--color-bg-card);
  --text-heading: var(--color-text-primary);
  --text-body: var(--color-text-primary);
  --text-muted: var(--color-text-secondary);
  --button-primary-bg: var(--color-accent-primary);
  --button-primary-text: #ffffff;
  --button-primary-hover: var(--color-accent-primary-dark);
  --border-color: #e2e8f0;

  /* Legacy variables for compatibility */
  --bg-dark: var(--color-bg-secondary);
  --bg-darker: var(--color-bg-card);
  --accent-blue: var(--color-accent-primary);
  --accent-blue-light: var(--color-accent-primary);
  --accent-purple: var(--color-accent-secondary);
  --accent-orange: var(--color-accent-secondary);
  --accent-gold: var(--color-accent-secondary);
  --text-white: var(--color-text-primary);
  --text-light: var(--color-text-primary);
  --text-gray: var(--color-text-secondary);
  --text-dark-gray: var(--color-text-secondary);
}

body {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Музыкальный плеер */
.music-player {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.4s ease;
}

.music-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-accent-primary) 0%,
    var(--color-accent-primary-light) 100%
  );
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(196, 30, 58, 0.4),
    0 0 15px rgba(196, 30, 58, 0.3);
  transition: all 0.4s ease;
  overflow: visible;
  /* По умолчанию полупрозрачная */
  opacity: 0.15;
}

/* При наведении на область плеера - кнопка становится видимой */
.music-player:hover .music-toggle {
  opacity: 1;
  transform: scale(1.05);
}

/* При наведении непосредственно на кнопку */
.music-toggle:hover {
  transform: scale(1.1) !important;
  box-shadow:
    0 6px 25px rgba(196, 30, 58, 0.5),
    0 0 20px rgba(196, 30, 58, 0.4);
}

.music-toggle:active {
  transform: scale(0.95) !important;
}

.music-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
  position: absolute;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.music-toggle .play-icon {
  opacity: 1;
  transform: scale(1);
}

.music-toggle .pause-icon {
  opacity: 0;
  transform: scale(0);
}

.music-toggle.playing .play-icon {
  opacity: 0;
  transform: scale(0);
}

.music-toggle.playing .pause-icon {
  opacity: 1;
  transform: scale(1);
}

/* Анимированные волны */
.music-waves {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Волны видны только при наведении на плеер и когда музыка играет */
.music-player:hover .music-toggle.playing .music-waves {
  opacity: 1;
}

.music-waves span {
  width: 3px;
  background: #ffffff;
  border-radius: 2px;
  animation: wave 0.8s ease-in-out infinite;
}

.music-waves span:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.music-waves span:nth-child(2) {
  height: 10px;
  animation-delay: 0.2s;
}

.music-waves span:nth-child(3) {
  height: 8px;
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Анимация-подсказка при первой загрузке */
@keyframes initial-hint {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Показываем подсказку в первые 5 секунд */
.music-toggle.show-hint {
  animation: initial-hint 1.5s ease-in-out 3;
}

/* Регулятор громкости */
.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.music-player:hover .volume-control {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.volume-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.volume-slider {
  width: 100px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--color-accent-primary) 0%,
    var(--color-accent-primary) 50%,
    #e2e8f0 50%,
    #e2e8f0 100%
  );
  border-radius: 3px;
  outline: none;
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(196, 30, 58, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--color-accent-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(196, 30, 58, 0.5);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .music-player {
    bottom: 20px;
    right: 20px;
  }

  .music-toggle {
    width: 50px;
    height: 50px;
  }

  .volume-control {
    position: fixed;
    bottom: 85px;
    right: 20px;
    flex-direction: column;
    padding: 16px 12px;
  }

  .volume-slider {
    width: 6px;
    height: 100px;
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
  }
}

/* Навигационное меню */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-link {
  font-family: 'Golos Text', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link:hover {
  color: var(--color-accent-primary);
}

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

/* Бургер-меню */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-accent-primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: absolute;
  left: 0;
}

.burger-menu span:nth-child(1) {
  top: 0;
}

.burger-menu span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger-menu span:nth-child(3) {
  bottom: 0;
}

.burger-menu.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.burger-menu.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Блок 1: Главный экран (Оффер) */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f1f3f5 100%);
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(196, 30, 58, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(196, 30, 58, 0.03) 0%,
      transparent 50%
    );
  color: var(--text-body);
  padding: 100px 20px;
  padding-top: 150px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 650px;
  min-width: 500px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(196, 30, 58, 0.1);
  border: 2px solid rgba(196, 30, 58, 0.15);
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.hero-img-default {
  position: relative;
  opacity: 1;
  display: block;
}

.hero-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  display: block;
}

.hero-image:hover .hero-img-default {
  opacity: 0;
}

.hero-image:hover .hero-img-hover {
  opacity: 1;
}

.hero-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 16px;
  background: rgba(196, 30, 58, 0.08);
  border-left: 3px solid var(--color-accent-primary);
  border-radius: 4px;
}

.hero-start-dot {
  color: var(--color-accent-primary);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.hero-start-date {
  font-family: 'Golos Text', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-start-text {
  font-family: 'Golos Text', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  display: flex;
  flex-direction: column;
  gap: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-title-line {
  display: block;
  color: var(--text-heading);
}

.accent-primary {
  color: var(--color-accent-primary);
}

.hero-subtitle {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 35px;
  color: var(--text-secondary);
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.hero-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--color-accent-primary);
}

.hero-text {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 45px;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 600px;
}

/* Кнопка со свечением */
.btn-glow {
  font-family: 'Golos Text', sans-serif;
  background: linear-gradient(
    135deg,
    var(--color-accent-primary-dark) 0%,
    var(--color-accent-primary) 50%,
    var(--color-accent-primary-light) 100%
  );
  background-size: 200% 100%;
  color: #ffffff;
  border: none;
  padding: 26px 70px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 20px rgba(196, 30, 58, 0.5),
    0 0 20px rgba(196, 30, 58, 0.4),
    0 0 40px rgba(196, 30, 58, 0.2);
  animation:
    glow-red 2s ease-in-out infinite alternate,
    gradient-shift 3s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 320px;
  text-align: center;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2);
}

/* Сверкающий эффект - диагональная полоса света */
.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  animation: sparkle-shine 3s infinite;
  z-index: 0;
  pointer-events: none;
}

/* Пульсирующее свечение от центра */
.btn-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(
    135deg,
    var(--color-accent-primary) 0%,
    var(--color-accent-primary-light) 50%,
    #ff1744 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 8px 35px rgba(196, 30, 58, 0.7),
    0 0 30px rgba(196, 30, 58, 0.6),
    0 0 60px rgba(196, 30, 58, 0.3);
}

.btn-glow:active {
  transform: translateY(-1px) scale(1.01);
}

@keyframes glow-red {
  0% {
    box-shadow:
      0 4px 20px rgba(196, 30, 58, 0.5),
      0 0 20px rgba(196, 30, 58, 0.4),
      0 0 40px rgba(196, 30, 58, 0.2);
  }
  100% {
    box-shadow:
      0 8px 35px rgba(196, 30, 58, 0.7),
      0 0 30px rgba(196, 30, 58, 0.6),
      0 0 60px rgba(196, 30, 58, 0.4);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes sparkle-shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.btn-glow span {
  position: relative;
  z-index: 1;
}

/* Блок 2: Об авторе */
.about {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.2),
    transparent
  );
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 0 0 350px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(196, 30, 58, 0.1);
  border: 2px solid rgba(196, 30, 58, 0.15);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-text p {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
}

/* Блок 3: Для кого этот курс */
.for-whom {
  padding: 100px 20px;
  background-color: var(--bg-primary);
  position: relative;
  overflow: visible;
}

.for-whom .container {
  overflow: visible;
}

.for-whom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.2),
    transparent
  );
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.intro-text {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-body);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.problems-list {
  max-width: 1000px;
  margin: 0 auto;
}

/* Swiper Slider Styles */
.problems-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

/* Navigation controls wrapper - for grouping buttons */
.problems-nav-controls {
  display: contents; /* On desktop, acts as if children are direct flex items */
}

/* Desktop positioning for navigation buttons */
@media (min-width: 769px) {
  .problems-slider-container {
    position: relative;
  }

  .problems-nav-controls .problems-nav-prev {
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
  }

  .problems-nav-controls .problems-nav-next {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* For medium screens, bring buttons closer */
@media (min-width: 769px) and (max-width: 1024px) {
  .problems-slider-container {
    padding: 0 60px;
  }

  .problems-nav-controls .problems-nav-prev {
    left: 0;
  }

  .problems-nav-controls .problems-nav-next {
    right: 0;
  }
}

.problems-slider-wrapper {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  order: 0;
}

.problems-swiper {
  width: 100%;
  padding-bottom: 60px;
  overflow: visible;
}

.problems-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.problems-swiper .problem-group {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  margin: 0;
}

.problems-swiper .swiper-slide-active .problem-group {
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.12);
  border-color: var(--color-accent-primary);
}

/* Navigation Buttons */
.problems-nav-next,
.problems-nav-prev {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border: 2px solid var(--color-accent-primary);
  border-radius: 50%;
  color: var(--color-accent-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.problems-nav-next svg,
.problems-nav-prev svg {
  width: 24px;
  height: 24px;
}

.problems-nav-next:hover,
.problems-nav-prev:hover {
  background: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
  transform: scale(1.05);
}

.problems-nav-next:active,
.problems-nav-prev:active {
  transform: scale(0.95);
}

/* Pagination */
.problems-pagination {
  bottom: 20px !important;
  position: relative;
  margin-top: 20px;
}

.problems-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #e2e8f0;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 5px;
  border-radius: 50%;
}

.problems-pagination .swiper-pagination-bullet-active {
  background: var(--color-accent-primary);
  width: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.problem-group {
  margin-bottom: 50px;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 40px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.problem-group:hover {
  border-color: var(--color-accent-primary);
  background: var(--bg-secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.1);
}

.problem-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-heading);
  line-height: 1.3;
}

.problem-items {
  list-style: none;
  padding-left: 0;
}

.problem-items li {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 18px;
  padding-left: 35px;
  position: relative;
  color: var(--text-body);
}

.problem-items li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-checkmark);
  font-size: 1.5rem;
  font-weight: 900;
  top: -2px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(196, 30, 58, 0.3);
  filter: drop-shadow(0 0 2px rgba(196, 30, 58, 0.2));
}

/* Блок 4: Мотивационный блок */
.motivation {
  padding: 100px 20px;
  background: linear-gradient(
    135deg,
    rgba(196, 30, 58, 0.02) 0%,
    rgba(196, 30, 58, 0.01) 100%
  );
  position: relative;
}

.motivation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.2),
    transparent
  );
}

.motivation-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.motivation-image {
  flex: 0 0 40%;
  position: relative;
}

.motivation-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(196, 30, 58, 0.1);
  border: 2px solid rgba(196, 30, 58, 0.15);
  object-fit: cover;
}

.motivation-text-block {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.motivation-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-accent-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.motivation-text {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0;
  text-align: left;
}

.motivation-error {
  color: var(--color-accent-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-primary);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* Блок 5: Форматы участия (Тарифы) */
.tariffs {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
  position: relative;
}

.tariffs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.2),
    transparent
  );
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.tariff-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 40px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tariff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tariff-vip {
  border-color: var(--color-accent-primary);
  background: var(--bg-card);
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.15);
  border-width: 2px;
}

.tariff-vip:hover {
  border-color: var(--color-accent-primary);
  box-shadow:
    0 0 25px rgba(196, 30, 58, 0.25),
    0 15px 40px rgba(0, 0, 0, 0.1);
}

.tariff-framed {
  border-color: var(--color-accent-primary);
  background: var(--bg-card);
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.15);
  border-width: 2px;
}

.tariff-framed:hover {
  border-color: var(--color-accent-primary);
  box-shadow:
    0 0 25px rgba(196, 30, 58, 0.25),
    0 15px 40px rgba(0, 0, 0, 0.1);
}

.tariff-framed .tariff-badge {
  background: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.tariff-individual {
  border-color: var(--color-accent-primary);
  background: var(--bg-card);
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.15);
  border-width: 2px;
}

.tariff-individual:hover {
  border-color: var(--color-accent-primary);
  box-shadow:
    0 0 25px rgba(196, 30, 58, 0.25),
    0 15px 40px rgba(0, 0, 0, 0.1);
}

.tariff-badge {
  position: absolute;
  top: -18px;
  right: 30px;
  background: var(--color-accent-primary);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 25px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tariff-vip .tariff-badge {
  background: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.tariff-individual .tariff-badge {
  background: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.tariff-header {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tariff-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-heading);
  line-height: 1.2;
}

.tariff-subtitle {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.tariff-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent-primary);
  line-height: 1;
}

.tariff-vip .tariff-price {
  color: var(--color-accent-primary);
}

.tariff-individual .tariff-price {
  color: var(--color-accent-primary);
}

.tariff-content {
  flex: 1;
  margin-bottom: 25px;
}

.tariff-description {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-body);
}

.tariff-note {
  font-family: 'Golos Text', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(196, 30, 58, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--color-accent-primary);
}

.tariff-features {
  margin: 25px 0;
}

.tariff-features p {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--text-heading);
  font-size: 1.1rem;
}

.tariff-features ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.tariff-features li {
  font-family: 'Golos Text', sans-serif;
  padding-left: 32px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
}

.tariff-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-checkmark);
  font-weight: 900;
  font-size: 1.4rem;
  top: -1px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(196, 30, 58, 0.3);
  filter: drop-shadow(0 0 2px rgba(196, 30, 58, 0.2));
}

.tariff-vip .tariff-features li::before {
  color: var(--color-checkmark);
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(196, 30, 58, 0.4);
}

.tariff-individual .tariff-features li::before {
  color: var(--color-checkmark);
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(196, 30, 58, 0.4);
}

.tariff-access {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  color: var(--color-accent-primary);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 1.1rem;
}

.tariff-limit {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  color: var(--color-accent-primary);
  margin-top: 15px;
  font-size: 1rem;
}

.tariff-bonus {
  background: rgba(196, 30, 58, 0.08);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  color: var(--text-body);
  border: 1px solid rgba(196, 30, 58, 0.2);
}

.tariff-bonus strong {
  color: var(--color-accent-primary);
  font-weight: 700;
}

.tariff-btn {
  font-family: 'Golos Text', sans-serif;
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    135deg,
    var(--color-accent-primary-dark) 0%,
    var(--color-accent-primary) 100%
  );
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.tariff-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    var(--color-accent-primary) 0%,
    var(--color-accent-primary-light) 100%
  );
  box-shadow:
    0 6px 20px rgba(196, 30, 58, 0.4),
    0 0 15px rgba(196, 30, 58, 0.3);
}

.tariff-btn:active {
  transform: translateY(0);
}

/* Tariff 1 (19,900) - Silver Sparkling Button */
.tariff-card:nth-child(1) .tariff-btn {
  background: linear-gradient(
    135deg,
    #b8b8b8 0%,
    #e8e8e8 25%,
    #ffffff 50%,
    #e8e8e8 75%,
    #b8b8b8 100%
  );
  background-size: 200% 100%;
  color: #2c3e50;
  box-shadow:
    0 4px 20px rgba(184, 184, 184, 0.5),
    0 0 15px rgba(232, 232, 232, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8);
  animation: silver-sparkle 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.tariff-card:nth-child(1) .tariff-btn span {
  position: relative;
  z-index: 1;
}

.tariff-card:nth-child(1) .tariff-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 70%
  );
  animation: silver-shine 2.5s infinite;
  z-index: 0;
  pointer-events: none;
}

.tariff-card:nth-child(1) .tariff-btn:hover {
  background: linear-gradient(
    135deg,
    #c0c0c0 0%,
    #f0f0f0 25%,
    #ffffff 50%,
    #f0f0f0 75%,
    #c0c0c0 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 6px 25px rgba(192, 192, 192, 0.6),
    0 0 25px rgba(240, 240, 240, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.9);
  transform: translateY(-3px) scale(1.02);
}

@keyframes silver-sparkle {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 4px 20px rgba(184, 184, 184, 0.5),
      0 0 15px rgba(232, 232, 232, 0.4),
      inset 0 1px 3px rgba(255, 255, 255, 0.8);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 6px 30px rgba(192, 192, 192, 0.7),
      0 0 25px rgba(255, 255, 255, 0.6),
      inset 0 1px 3px rgba(255, 255, 255, 0.9);
  }
}

@keyframes silver-shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Tariff VIP (99,900) - Golden Glowing Button */
.tariff-vip .tariff-btn {
  background: linear-gradient(
    135deg,
    #d4af37 0%,
    #f4d03f 25%,
    #fffacd 50%,
    #f4d03f 75%,
    #d4af37 100%
  );
  background-size: 200% 100%;
  color: #1a1a1a;
  box-shadow:
    0 4px 25px rgba(212, 175, 55, 0.6),
    0 0 20px rgba(244, 208, 63, 0.5),
    0 0 40px rgba(255, 215, 0, 0.3),
    inset 0 1px 3px rgba(255, 250, 205, 0.8);
  animation: golden-glow 2s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
  font-weight: 800;
  text-shadow:
    0 1px 2px rgba(255, 250, 205, 0.8),
    0 0 10px rgba(255, 215, 0, 0.5);
}

.tariff-vip .tariff-btn span {
  position: relative;
  z-index: 1;
}

.tariff-vip .tariff-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 250, 205, 0.9) 50%,
    transparent 70%
  );
  animation: golden-shine 3s infinite;
  z-index: 0;
  pointer-events: none;
}

.tariff-vip .tariff-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.3) 0%,
    transparent 70%
  );
  animation: golden-pulse 2s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.tariff-vip .tariff-btn:hover {
  background: linear-gradient(
    135deg,
    #e5c158 0%,
    #ffe55c 25%,
    #fffef0 50%,
    #ffe55c 75%,
    #e5c158 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 6px 35px rgba(229, 193, 88, 0.8),
    0 0 30px rgba(255, 229, 92, 0.7),
    0 0 50px rgba(255, 215, 0, 0.5),
    inset 0 1px 3px rgba(255, 254, 240, 0.9);
  transform: translateY(-3px) scale(1.02);
}

@keyframes golden-glow {
  0% {
    background-position: 0% 50%;
    box-shadow:
      0 4px 25px rgba(212, 175, 55, 0.6),
      0 0 20px rgba(244, 208, 63, 0.5),
      0 0 40px rgba(255, 215, 0, 0.3),
      inset 0 1px 3px rgba(255, 250, 205, 0.8);
  }
  100% {
    background-position: 100% 50%;
    box-shadow:
      0 6px 35px rgba(229, 193, 88, 0.8),
      0 0 30px rgba(255, 229, 92, 0.7),
      0 0 60px rgba(255, 215, 0, 0.5),
      inset 0 1px 3px rgba(255, 254, 240, 0.9);
  }
}

@keyframes golden-shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes golden-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Tariff Individual (300,000) - Purple Sparkling Button */
.tariff-individual .tariff-btn {
  background: linear-gradient(
    135deg,
    #6a1b9a 0%,
    #8e24aa 25%,
    #ab47bc 50%,
    #ce93d8 75%,
    #e1bee7 100%
  );
  background-size: 200% 100%;
  color: #ffffff;
  box-shadow:
    0 4px 25px rgba(106, 27, 154, 0.6),
    0 0 20px rgba(142, 36, 170, 0.5),
    0 0 40px rgba(171, 71, 188, 0.3),
    inset 0 1px 3px rgba(225, 190, 231, 0.4);
  animation:
    purple-glow 2.5s ease-in-out infinite alternate,
    purple-gradient-shift 3.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  font-weight: 800;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(171, 71, 188, 0.6);
}

.tariff-individual .tariff-btn span {
  position: relative;
  z-index: 1;
}

/* Сверкающий эффект - диагональная полоса света */
.tariff-individual .tariff-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(225, 190, 231, 0.9) 50%,
    transparent 70%
  );
  animation: purple-shine 3.5s infinite;
  z-index: 0;
  pointer-events: none;
}

/* Пульсирующее свечение от центра */
.tariff-individual .tariff-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(171, 71, 188, 0.4) 0%,
    transparent 70%
  );
  animation: purple-pulse 2.5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.tariff-individual .tariff-btn:hover {
  background: linear-gradient(
    135deg,
    #7b1fa2 0%,
    #9c27b0 25%,
    #ba68c8 50%,
    #ce93d8 75%,
    #f3e5f5 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 6px 35px rgba(123, 31, 162, 0.8),
    0 0 30px rgba(156, 39, 176, 0.7),
    0 0 60px rgba(186, 104, 200, 0.5),
    inset 0 1px 3px rgba(243, 229, 245, 0.5);
  transform: translateY(-3px) scale(1.02);
}

@keyframes purple-glow {
  0% {
    box-shadow:
      0 4px 25px rgba(106, 27, 154, 0.6),
      0 0 20px rgba(142, 36, 170, 0.5),
      0 0 40px rgba(171, 71, 188, 0.3),
      inset 0 1px 3px rgba(225, 190, 231, 0.4);
  }
  100% {
    box-shadow:
      0 6px 35px rgba(123, 31, 162, 0.8),
      0 0 30px rgba(156, 39, 176, 0.7),
      0 0 60px rgba(186, 104, 200, 0.5),
      inset 0 1px 3px rgba(243, 229, 245, 0.5);
  }
}

@keyframes purple-gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes purple-shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

@keyframes purple-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

/* Адаптивность для меню */
@media (max-width: 1024px) {
  .navbar .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .burger-menu {
    display: flex;
    order: 2;
  }

  .nav-logo {
    order: 1;
    flex: 1;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 80px 24px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-overlay {
    display: none;
  }

  .nav-menu li {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 14px 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: left;
    font-weight: 600;
    min-height: auto;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link:active {
    color: var(--color-accent-primary);
    transition: color 0.3s ease;
  }
}

@media (max-width: 600px) {
  .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
  }
}

/* Адаптивность */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    text-align: center;
    align-items: center;
  }

  .hero-right {
    order: -1;
  }

  .hero-image {
    max-width: 500px;
    min-width: auto;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 4rem;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
    padding-top: 120px;
  }

  .hero-content {
    gap: 30px;
  }

  .hero-start {
    margin-bottom: 25px;
    padding: 6px 12px;
  }

  .hero-start-dot {
    font-size: 1rem;
  }

  .hero-start-date {
    font-size: 0.9rem;
  }

  .hero-start-text {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding-left: 15px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .btn-glow {
    padding: 20px 50px;
    font-size: 1.2rem;
    min-width: 280px;
  }

  .hero-image {
    max-width: 350px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    flex: 0 0 auto;
    max-width: 350px;
    margin: 0 auto;
  }

  .about-text h2 {
    font-size: 2.2rem;
  }

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

  .problem-title {
    font-size: 1.5rem;
  }

  .problem-group {
    padding: 30px 25px;
  }

  .problems-slider-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  /* Show navigation controls as flex container on mobile */
  .problems-nav-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-bottom: 10px;
  }

  .problems-nav-controls .problems-nav-prev,
  .problems-nav-controls .problems-nav-next {
    position: static !important;
    order: unset;
    margin: 0;
    transform: none !important;
  }

  .problems-nav-next,
  .problems-nav-prev {
    width: 48px;
    height: 48px;
  }

  .problems-nav-next svg,
  .problems-nav-prev svg {
    width: 20px;
    height: 20px;
  }

  .problems-slider-wrapper {
    width: 100%;
  }

  .tariffs-grid {
    grid-template-columns: 1fr;
  }

  .motivation-content {
    flex-direction: column;
    gap: 40px;
  }

  .motivation-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .motivation-text-block {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
  }

  .motivation-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .motivation-text {
    font-size: 1.2rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 20px;
    padding-top: 100px;
  }

  .hero-content {
    gap: 25px;
  }

  .hero-start {
    margin-bottom: 20px;
    padding: 5px 10px;
    gap: 6px;
  }

  .hero-start-dot {
    font-size: 0.9rem;
  }

  .hero-start-date {
    font-size: 0.8rem;
  }

  .hero-start-text {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding-left: 12px;
  }

  .hero-subtitle::before {
    width: 2px;
    height: 15px;
  }

  .problems-slider-container {
    gap: 15px;
    padding: 0 10px;
  }

  /* Adjust navigation controls for smaller screens */
  .problems-nav-controls {
    gap: 20px;
  }

  .problems-nav-next,
  .problems-nav-prev {
    width: 44px;
    height: 44px;
  }

  .problems-nav-next svg,
  .problems-nav-prev svg {
    width: 18px;
    height: 18px;
  }

  .problems-slider-wrapper {
    width: 100%;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .btn-glow {
    padding: 18px 40px;
    font-size: 1rem;
    min-width: 100%;
    max-width: 300px;
  }

  .hero-image {
    max-width: 280px;
  }

  .about-text h2,
  .section-title {
    font-size: 2rem;
  }

  .tariff-price {
    font-size: 2rem;
  }

  .tariff-card {
    padding: 30px 25px;
  }

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

  .motivation-text {
    font-size: 1.1rem;
  }

  .motivation-image {
    max-width: 300px;
  }

  .problem-group {
    padding: 25px 20px;
  }
}

/* ========== Animation Styles ========== */

/* Particles Background */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Typewriter Effect */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-cursor {
  50% {
    border-color: transparent;
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(196, 30, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Number Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.count-up {
  animation: countUp 1s ease-out forwards;
}

/* Enhanced Glow Animation */
@keyframes enhanced-glow {
  0% {
    box-shadow:
      0 0 10px rgba(196, 30, 58, 0.5),
      0 0 20px rgba(196, 30, 58, 0.3),
      0 0 30px rgba(196, 30, 58, 0.1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(196, 30, 58, 0.8),
      0 0 30px rgba(196, 30, 58, 0.6),
      0 0 40px rgba(196, 30, 58, 0.4);
  }
  100% {
    box-shadow:
      0 0 10px rgba(196, 30, 58, 0.5),
      0 0 20px rgba(196, 30, 58, 0.3),
      0 0 30px rgba(196, 30, 58, 0.1);
  }
}

/* Parallax Effect */
.parallax {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth Reveal Animation */
@keyframes smoothReveal {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.smooth-reveal {
  animation: smoothReveal 0.8s ease-out forwards;
}

/* 3D Card Effect */
.tariff-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.tariff-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 20px 40px rgba(196, 30, 58, 0.2);
}

/* Loading Animation */
@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* AOS Custom Settings */
[data-aos] {
  will-change: transform, opacity;
}

/* Fix for AOS elements not animating properly */
.aos-animate {
  opacity: 1 !important;
}

/* Ensure sections don't block AOS animations */
section {
  overflow-x: hidden;
}

.for-whom,
.tariffs {
  overflow: visible !important;
}

/* Ensure AOS elements are initially hidden but not blocking interaction */
[data-aos] {
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Only hide elements that haven't been initialized */
[data-aos]:not(.aos-init) {
  opacity: 0;
}

[data-aos].aos-animate {
  opacity: 1 !important;
  pointer-events: auto;
}

/* Fix specific AOS animation visibility */
[data-aos='fade-up'] {
  transform: translateY(30px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos='fade-up'].aos-animate {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

[data-aos='zoom-in'] {
  transform: scale(0.9);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos='zoom-in'].aos-animate {
  transform: scale(1) !important;
  opacity: 1 !important;
}

[data-aos='fade-left'] {
  transform: translateX(30px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos='fade-left'].aos-animate {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

[data-aos='fade-right'] {
  transform: translateX(-30px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos='fade-right'].aos-animate {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

/* Smooth transitions for all interactive elements */
button,
a,
.clickable {
  transition: all 0.3s ease;
}

/* Simple fade-in animation as fallback */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to sections if AOS doesn't work */
.for-whom .section-title:not([data-aos]),
.for-whom .intro-text:not([data-aos]),
.tariffs .section-title:not([data-aos]) {
  animation: fadeInUp 0.8s ease-out forwards;
}
/* Footer Styles */
.footer {
  background-color: #f8f9fa;
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid #eee;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-info h3 {
  color: var(--color-accent-primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-info p {
  color: #666;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent-primary);
}

.footer-payments p {
  margin-bottom: 10px;
  font-weight: 600;
}

.payment-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-logo {
  background: #fff;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 50px;
  transition: all 0.3s ease;
}

.pay-logo:hover {
  border-color: var(--color-accent-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pay-logo img {
  height: 24px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.footer-copyright {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--color-accent-primary);
}

.modal h2 {
  color: var(--color-accent-primary);
  margin-bottom: 10px;
  text-align: center;
}

.modal-tariff-name {
  text-align: center;
  font-weight: 600;
  margin-bottom: 25px;
  color: #555;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input[type='text'],
.form-group input[type='tel'],
.form-group input[type='email'] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: var(--color-accent-primary);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.4;
}

.checkbox-group a {
  color: var(--color-accent-primary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--color-accent-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
  background: #a01830;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .payment-logos {
    justify-content: center;
  }

  .modal-content {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 25px 15px;
    width: 95%;
  }
}
.tariff-card:not([data-aos]) {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.tariff-card:nth-child(1) {
  --i: 1;
}
.tariff-card:nth-child(2) {
  --i: 2;
}
.tariff-card:nth-child(3) {
  --i: 3;
}
.tariff-card:nth-child(4) {
  --i: 4;
}

/* =========================================
   NEW TARIFF PRICE STYLES (Added Manually)
   ========================================= */

.tariff-price-block {
  text-align: center;
  margin-top: auto; /* Push to bottom of content area */
  margin-bottom: 15px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.old-price {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.1rem;
  color: #94a3b8; /* Slate 400 */
  text-decoration: line-through;
  font-weight: 500;
  margin-bottom: 2px;
}

.new-price {
  font-family: var(--font-heading);
  font-size: 2.5rem; /* Larger and impactful */
  font-weight: 700;
  color: var(--color-accent-primary);
  background: linear-gradient(
    135deg,
    var(--color-accent-primary) 0%,
    #ff1744 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 2px 4px rgba(196, 30, 58, 0.1));
}

/* Ensure the button has space above it */
.tariff-btn {
  margin-top: 10px;
}

/* Adjustments for tariff content layout */
.tariff-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Make definition lists or features expand to fill space so price is at bottom */
.tariff-features,
.tariff-description {
  flex-grow: 1;
}

/* =========================================
   TARIFF LAYOUT FIX (Manually Approved)
   ========================================= */

/* Remove the aggressive auto margin that pushes price too far down */
.tariff-price-block {
  margin-top: 40px !important; /* Fixed but generous spacing */
  margin-bottom: 20px !important;
  border-top: none !important; /* Remove line if it looks weird with gap */
  padding-top: 0 !important;
}

/* Let the content fill the space naturally, but don't force price to VERY bottom */
.tariff-content {
  justify-content: flex-start !important; /* Start from top */
}

/* Add a separator line above the price block */
.tariff-price-block::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent-primary);
  margin-bottom: 15px;
  opacity: 0.3;
  border-radius: 2px;
}

/* Make sure the card itself is flex column to push footer down if needed? 
   No, user wants LESS gap. So we let it sit closer. 
   But if cards are height:100%, the button needs to sit somewhere. 
   Let's try just fixed spacing. */

.tariff-card {
  display: flex;
  flex-direction: column;
}

/* Ensure button is centered */
.tariff-btn {
  align-self: center;
  margin-top: 10px;
  width: 100%;
}

/* =========================================
   COMPACT LAYOUT OVERRIDES (Fix for "Empty Space")
   ========================================= */

/* 1. Make grid items (cards) only as tall as their content */
.tariffs-grid {
  align-items: flex-start !important;
}

/* 2. Stop content area from growing to fill space */
.tariff-content {
  flex: 0 0 auto !important;
  margin-bottom: 10px !important;
}

/* 3. Pull button up closer to price */
.tariff-btn {
  margin-top: 20px !important;
}

/* 4. Ensure previous margin fix is maintained */
.tariff-price-block {
  margin-top: 30px !important;
  margin-bottom: 0 !important;
}

/* Optional: Make cards look consistent even if shorter */
.tariff-card {
  height: auto !important;
  min-height: 0 !important;
}

/* =========================================
   BALANCED "BEAUTIFUL" LAYOUT (Final Attempt)
   ========================================= */

/* 1. Revert to Equal Heights (Symmetry = Beauty) */
.tariffs-grid {
  align-items: stretch !important;
}

/* 2. Card Layout structure */
.tariff-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* 3. Content Area Logic */
.tariff-content {
  flex: 1 1 auto !important; /* Grow to fill space */
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
}

/* 4. Anchor Price/Button to Bottom */
.tariff-price-block {
  margin-top: 20px !important; /* Standard spacing above price */
  margin-bottom: 5px !important;
}

.tariff-btn {
  margin-top: 0 !important; /* Close to price */
  align-self: flex-end !important; /* Stick to bottom */
}

/* 5. THE MAGIC FIX: Distribute space in Short Cards (1 & 4) 
   Instead of a giant gap at the bottom, we centre the content vertically 
   or distribute the whitespace evenly. */

.tariff-card:nth-child(1) .tariff-content,
.tariff-card:nth-child(4) .tariff-content {
  justify-content: center !important; /* Center text in the "void" */
  padding-bottom: 20px;
}

/* Ensure the Access text sits nicely at the bottom of the content block */
.tariff-access {
  margin-top: auto !important; /* Push it down to price */
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separator */
  width: 100%;
}

/* =========================================
   RED ANIMATED BUTTON (Tariff 2)
   ========================================= */

.tariff-card:nth-child(2) .tariff-btn {
  background: linear-gradient(
    135deg,
    var(--color-accent-primary-dark) 0%,
    var(--color-accent-primary) 25%,
    #ff5277 50%,
    var(--color-accent-primary) 75%,
    var(--color-accent-primary-dark) 100%
  );
  background-size: 200% 100%;
  animation: red-sparkle 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.tariff-card:nth-child(2) .tariff-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    /* Softer shine for red */ transparent 70%
  );
  animation: silver-shine 3.5s infinite; /* Reuse shine animation */
  z-index: 0;
  pointer-events: none;
}

@keyframes red-sparkle {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 4px 15px rgba(196, 30, 58, 0.4),
      0 0 10px rgba(196, 30, 58, 0.2);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 6px 25px rgba(196, 30, 58, 0.6),
      0 0 20px rgba(255, 82, 119, 0.4);
  }
}

/* =========================================
   PAYMENT TYPE SELECTOR (Partial Payment)
   ========================================= */

.payment-type-group {
  margin-bottom: 20px;
}

.payment-type-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1rem;
}

.payment-type-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: #f8f9fa;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option:hover {
  border-color: var(--color-accent-primary);
  background: rgba(196, 30, 58, 0.03);
}

.payment-option input[type='radio'] {
  width: 20px;
  height: 20px;
  margin-right: 14px;
  accent-color: var(--color-accent-primary);
  cursor: pointer;
}

.payment-option input[type='radio']:checked + .payment-option-text {
  color: var(--color-accent-primary);
}

.payment-option:has(input[type='radio']:checked) {
  border-color: var(--color-accent-primary);
  background: rgba(196, 30, 58, 0.05);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
}

.payment-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.payment-option-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  word-break: break-word;
  hyphens: auto;
}

.payment-option-price {
  font-size: 0.9rem;
  color: var(--color-accent-primary);
  font-weight: 700;
  word-break: break-word;
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .payment-option {
    padding: 12px 14px;
  }

  .payment-option-title {
    font-size: 0.95rem;
  }

  .payment-option-price {
    font-size: 0.85rem;
  }
}

/* =========================================
   CURRENCY/PAYMENT METHOD SELECTOR
   ========================================= */

.currency-group {
  margin-bottom: 24px;
}

.currency-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1rem;
}

.currency-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.currency-option {
  cursor: pointer;
}

.currency-option input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.currency-option-box {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.currency-option:hover .currency-option-box {
  border-color: var(--color-accent-primary);
  background: rgba(196, 30, 58, 0.03);
}

.currency-option input[type='radio']:checked + .currency-option-box {
  border-color: var(--color-accent-primary);
  background: rgba(196, 30, 58, 0.06);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

.currency-icon {
  font-size: 2rem;
  margin-right: 16px;
  line-height: 1;
}

.currency-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.currency-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  word-break: break-word;
  hyphens: auto;
}

.currency-desc {
  font-size: 0.85rem;
  color: #64748b;
  word-break: break-word;
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .currency-option-box {
    padding: 14px 16px;
  }

  .currency-icon {
    font-size: 1.6rem;
    margin-right: 12px;
  }

  .currency-title {
    font-size: 0.95rem;
  }

  .currency-desc {
    font-size: 0.8rem;
  }
}

/* Telegram Floating Button */
.telegram-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(42, 171, 238, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: transparent;
}

.telegram-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.6);
}

.telegram-float svg,
.telegram-float img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.whatsapp-float {
  bottom: 95px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.whatsapp-float:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
  .telegram-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .telegram-float svg,
  .telegram-float img {
    width: 50px;
    height: 50px;
  }
  .whatsapp-float {
    bottom: 80px;
  }
}

.sold-out-plate {
  font-family: var(--font-heading);
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    135deg,
    #180005 0%,
    #3a000d 50%,
    #180005 100%
  ) !important;
  background-size: 200% 100% !important;
  color: #fff !important;
  border: 1px solid rgba(196, 30, 58, 0.5) !important;
  border-radius: 12px;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  text-align: center;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 15px rgba(196, 30, 58, 0.4) !important;
  position: relative;
  overflow: hidden;
  cursor: not-allowed !important;
  animation: bg-shift-sold-out 3s infinite alternate !important;
  transform: none !important;
}

.sold-out-plate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 100, 120, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  animation: swipe-sold-out 4s infinite !important;
  z-index: 0;
}

.sold-out-plate span {
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, #ffccd5, #ffffff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 10px rgba(196, 30, 58, 0.8) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sold-out-plate:hover {
  transform: none !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 15px rgba(196, 30, 58, 0.4) !important;
}

@keyframes bg-shift-sold-out {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes swipe-sold-out {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

/* Gray out the old price slightly darker to emphasize it's no longer available */
.tariff-vip .tariff-price-block,
.tariff-individual .tariff-price-block {
  opacity: 0.7;
}

/* Also style a "lock" icon for the span */
.sold-out-plate span::before {
  content: '🔒';
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(196, 30, 58, 0.8));
  -webkit-text-fill-color: initial;
}

/* ============================================ */
/* Блок: Отзывы (бесконечная лента)              */
/* ============================================ */
.reviews {
  padding: 100px 20px;
  background-color: var(--bg-body);
  position: relative;
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.2),
    transparent
  );
}

.reviews .container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Лента отзывов — бесконечная автокарусель */
.reviews-marquee {
  position: relative;
  margin-top: 50px;
  /* Выходим за горизонтальные поля секции (.reviews padding 20px) */
  margin-left: -20px;
  margin-right: -20px;
  padding: 24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

.reviews-track {
  display: flex;
  width: max-content;
  /* 110s — скорость прокрутки ленты, можно менять */
  animation: reviews-scroll 110s linear infinite;
  will-change: transform;
}

/* Пауза при наведении — удобно рассмотреть отзыв */
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

/* Сдвиг ровно на одну копию (трек содержит набор дважды) */
@keyframes reviews-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.review-shot {
  flex: 0 0 auto;
  height: 440px;
  width: auto;
  margin: 0 22px 0 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid rgba(196, 30, 58, 0.12);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(196, 30, 58, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-shot img {
  display: block;
  height: 100%;
  width: auto;
}

.review-shot:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.09),
    0 4px 12px rgba(196, 30, 58, 0.1);
}

.review-shot:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
  }
  .reviews-marquee {
    overflow-x: auto;
  }
}

/* Лайтбокс */
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(15, 23, 42, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.review-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.review-lightbox-img {
  max-width: min(92vw, 720px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.review-lightbox-close,
.review-lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.review-lightbox-close:hover,
.review-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.review-lightbox-close {
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.review-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
}

.review-lightbox-prev {
  left: 20px;
}

.review-lightbox-next {
  right: 20px;
}

/* Адаптив */
@media (max-width: 768px) {
  .reviews {
    padding: 70px 16px;
  }
  .reviews-marquee {
    margin-top: 30px;
    margin-left: -16px;
    margin-right: -16px;
  }
  .review-shot {
    height: 340px;
    margin-right: 16px;
    border-radius: 14px;
  }
  .reviews-track {
    animation-duration: 78s;
  }
  .review-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
  .review-lightbox-prev {
    left: 8px;
  }
  .review-lightbox-next {
    right: 8px;
  }
  .review-lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .review-shot {
    height: 280px;
  }
  .reviews-track {
    animation-duration: 60s;
  }
}

/* ============================================ */
/* Блок: Описание лекций тренинга               */
/* ============================================ */
.lectures {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: visible;
}

.lectures .container {
  overflow: visible;
}

.lectures::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.2),
    transparent
  );
}

.lectures-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

.lectures-nav-controls {
  display: contents;
}

/* Desktop positioning for navigation buttons */
@media (min-width: 769px) {
  .lectures-slider-container {
    position: relative;
  }

  .lectures-nav-controls .lectures-nav-prev {
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lectures-nav-controls .lectures-nav-next {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .lectures-slider-container {
    padding: 0 60px;
  }

  .lectures-nav-controls .lectures-nav-prev {
    left: 0;
  }

  .lectures-nav-controls .lectures-nav-next {
    right: 0;
  }
}

.lectures-slider-wrapper {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  order: 0;
}

.lectures-swiper {
  width: 100%;
  padding-bottom: 60px;
  overflow: visible;
}

.lectures-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* Navigation Buttons */
.lectures-nav-next,
.lectures-nav-prev {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border: 2px solid var(--color-accent-primary);
  border-radius: 50%;
  color: var(--color-accent-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.lectures-nav-next svg,
.lectures-nav-prev svg {
  width: 24px;
  height: 24px;
}

.lectures-nav-next:hover,
.lectures-nav-prev:hover {
  background: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
  transform: scale(1.05);
}

.lectures-nav-next:active,
.lectures-nav-prev:active {
  transform: scale(0.95);
}

/* Pagination */
.lectures-pagination {
  bottom: 20px !important;
  position: relative;
  margin-top: 20px;
}

.lectures-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #e2e8f0;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 5px;
  border-radius: 50%;
}

.lectures-pagination .swiper-pagination-bullet-active {
  background: var(--color-accent-primary);
  width: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* Lecture Card Styling */
.lecture-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 45px 50px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.lectures-swiper .swiper-slide-active .lecture-card {
  border-color: var(--color-accent-primary);
  box-shadow: 0 10px 35px rgba(196, 30, 58, 0.08);
}

.lecture-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-primary);
  box-shadow: 0 15px 40px rgba(196, 30, 58, 0.1);
}

.lecture-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.lecture-number {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-primary);
  background: rgba(196, 30, 58, 0.08);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(196, 30, 58, 0.15);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lecture-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0;
}

.lecture-description {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.lecture-description::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--color-accent-primary-light);
  border-radius: 2px;
}

.lecture-learn-block {
  margin-bottom: 35px;
}

.lecture-learn-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lecture-learn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 35px;
}

.lecture-learn-list li {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  padding-left: 32px;
  position: relative;
  color: var(--text-body);
}

.lecture-learn-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-checkmark);
  font-size: 1.4rem;
  font-weight: 900;
  top: -2px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(196, 30, 58, 0.2);
}

.lecture-conclusion {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  font-weight: 500;
  color: var(--text-body);
  background: rgba(196, 30, 58, 0.03);
  border-left: 4px solid var(--color-accent-primary);
  padding: 22px 28px;
  border-radius: 6px;
  margin-top: auto;
  box-shadow: inset 0 0 10px rgba(196, 30, 58, 0.02);
}

/* Responsive Lectures styling */
@media (max-width: 991px) {
  .lecture-title {
    font-size: 1.8rem;
  }
  
  .lecture-card {
    padding: 35px 35px;
  }

  .lecture-learn-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .lectures {
    padding: 60px 16px;
  }

  .lectures-slider-container {
    padding: 0 12px;
  }

  .lectures-slider-wrapper {
    width: 100%;
    min-width: 0; /* Предотвращает распирание Flexbox контейнера */
  }

  .lectures-swiper {
    width: 100%;
    overflow: hidden; /* Обрезает боковой слайд на мобильных, чтобы избежать горизонтального скролла */
  }

  .lectures-nav-controls {
    display: none;
  }

  .lecture-card {
    padding: 24px 18px; /* Дает больше места под текст на экранах телефонов */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  }

  .lecture-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    gap: 10px;
  }

  .lecture-number {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .lecture-title {
    font-size: 1.45rem;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .lecture-description {
    font-size: 1.05rem;
    padding-left: 15px;
    margin-bottom: 22px;
    line-height: 1.6;
  }

  .lecture-description::before {
    top: 4px;
    bottom: 4px;
  }

  .lecture-learn-block {
    margin-bottom: 25px;
  }

  .lecture-learn-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .lecture-learn-list li {
    font-size: 1.02rem;
    padding-left: 28px;
    line-height: 1.5;
  }

  .lecture-learn-list li::before {
    font-size: 1.2rem;
    top: -2px;
  }

  .lecture-conclusion {
    padding: 16px 18px;
    font-size: 1.02rem;
    line-height: 1.6;
  }
}

