.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.marquee-content {
  display: inline-block;
  padding-right: 100%;
  animation: marquee 20s linear infinite;
  font-size: 24px;
  color: #000;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

  /* Адаптивные стили с замедленной анимацией */
  @media (min-width: 1921px) { 
    .marquee-content { 
      animation-duration: 70s; /* Очень медленно для 4K+ */
      font-size: 28px; 
    } 
  }
  
  @media (max-width: 1920px) { 
    .marquee-content { 
      animation-duration: 70s; /* Медленно для Full HD */
      font-size: 26px; 
    } 
  }
  
  @media (max-width: 1440px) { 
    .marquee-content { 
      animation-duration: 70s; 
      font-size: 24px; 
    } 
  }
  
  @media (max-width: 1200px) { 
    .marquee-content { 
      animation-duration: 70s; 
      font-size: 22px; 
    } 
  }
  
  @media (max-width: 960px) { 
    .marquee-content { 
      animation-duration: 70s; 
      font-size: 20px; 
    } 
  }
  
  @media (max-width: 640px) { 
    .marquee-content { 
      animation-duration: 40s; 
      font-size: 18px; 
    } 
  }
  
  @media (max-width: 480px) { 
    .marquee-content { 
      animation-duration: 40s; 
      font-size: 16px; 
    } 
  }
  
  @media (max-width: 320px) { 
    .marquee-content { 
      animation-duration: 40s; /* Быстрее на мобильных */
      font-size: 14px; 
    } 
  }



  .running-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
  }
  
  .running-text-right {
    display: inline-block;
    padding-left: 100%; /* Ключевое отличие для движения вправо */
    animation: runRight 15s linear infinite;
    will-change: transform;
    font-size: 24px;
    color: #000;
  }
  
  @keyframes runRight {
    0% { transform: translateX(-100%); } /* Начинаем слева */
    100% { transform: translateX(100%); } /* Двигаем вправо */
  }

  /* Адаптация скорости под разрешения */
  @media (min-width: 1921px) { .running-text-right { animation-duration: 70s; font-size: 28px; } }
  @media (max-width: 1920px) { .running-text-right { animation-duration: 70s; font-size: 26px; } }
  @media (max-width: 1440px) { .running-text-right { animation-duration: 70s; font-size: 24px; } }
  @media (max-width: 1200px) { .running-text-right { animation-duration: 70s; font-size: 22px; } }
  @media (max-width: 960px) { .running-text-right { animation-duration: 70s; font-size: 20px; } }
  @media (max-width: 640px) { .running-text-right { animation-duration: 40; font-size: 18px; } }
  @media (max-width: 480px) { .running-text-right { animation-duration: 40s; font-size: 16px; } }
  @media (max-width: 320px) { .running-text-right { animation-duration: 40s; font-size: 14px; } }



/* Контейнер для анимации */
.text-shifting {
  overflow: hidden;
  height: 1em; /* Высота одной строки текста */
  position: relative;
  font-size: 24px; /* Размер текста */
  font-weight: bold;
}

/* Общие стили для строк текста */
.text-row-1,
.text-row-2,
.text-row-3 {
  position: absolute;
  top: 100%; /* Начальное положение: ниже контейнера */
  left: 0;
  width: 100%;
  line-height: 1em; /* Высота строки */
  opacity: 0; /* Начальная прозрачность */
  animation: textShift 9s infinite ease-in-out; /* Анимация */
}

/* Ключевые кадры анимации */
@keyframes textShift {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  10% {
    opacity: 1;
    transform: translateY(0%);
  }
  30% {
    opacity: 1;
    transform: translateY(0%);
  }
  40% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* Настройки для разрешения до 960px */
@media (max-width: 960px) {
  .text-shifting {
    animation-delay: 0s;
  }
  .text-row-1 {
    animation-delay: 4.0s;
  }
  .text-row-2 {
    animation-delay: 7.5s;
  }
  .text-row-3 {
    animation-delay: 10.5s;
  }
}

/* Настройки для разрешения 960-1200px */
@media (min-width: 961px) and (max-width: 1200px) {
  .text-shifting {
    animation-delay: 0s;
  }
  .text-row-1 {
    animation-delay: 2.0s;
  }
  .text-row-2 {
    animation-delay: 5.0s;
  }
  .text-row-3 {
    animation-delay: 8.0s;
  }
}

/* Настройки для разрешения 1200-1440px */
@media (min-width: 1201px) and (max-width: 1440px) {
  .text-shifting {
    animation-delay: 0s;
  }
  .text-row-1 {
    animation-delay: 5.0s;
  }
  .text-row-2 {
    animation-delay: 8.0s;
  }
  .text-row-3 {
    animation-delay: 11.0s;
  }
}

/* Настройки для разрешения 1440-1920px */
@media (min-width: 1441px) and (max-width: 1920px) {
  .text-shifting {
    animation-delay: 0s;
  }
  .text-row-1 {
    animation-delay: 5.0s;
  }
  .text-row-2 {
    animation-delay: 8.0s;
  }
  .text-row-3 {
    animation-delay: 11.0s;
  }
}

/* Настройки для разрешения выше 1920px */
@media (min-width: 1921px) {
  .text-shifting {
    animation-delay: 0s;
  }
  .text-row-1 {
    animation-delay: 1.0s;
  }
  .text-row-2 {
    animation-delay: 4.0s;
  }
  .text-row-3 {
    animation-delay: 7.0s;
  }
}



/* Класс для элемента, который будет "биться" */
.heartbeat {
  animation: heartbeat 2.5s infinite ease-in-out; /* Анимация сердцебиения */
}

/* Ключевые кадры анимации */
@keyframes heartbeat {
  0% {
    transform: scale(1); /* Начальный размер */
  }
  14% {
    transform: scale(1.3); /* Увеличение */
  }
  28% {
    transform: scale(1); /* Возврат к исходному размеру */
  }
  42% {
    transform: scale(1.3); /* Увеличение */
  }
  70% {
    transform: scale(1); /* Возврат к исходному размеру */
  }
}
