.rotating {
  position: relative;
  height: 4em;
  overflow: hidden;
  background-color: #6FE3D0;
  z-index: 100;
-webkit-box-shadow: inset 0px -24px 46px -30px rgba(0,0,0,0.14); 
box-shadow: inset 0px -24px 46px -30px rgba(0,0,0,0.14);
}

.rotating-text {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: fade 27s infinite; 


  font-weight: 600;
  font-size: 2.5rem;
  color: white;
  text-decoration: none;
  transform: translateY(-50%);
}

.rotating-text:nth-child(1) { animation-delay: 0s; }
.rotating-text:nth-child(2) { animation-delay: 8s; }
.rotating-text:nth-child(3) { animation-delay: 16s; }

@keyframes fade {
  0%   { opacity: 0; }
  2%   { opacity: 1; }   /* szybki fade in */
  28%  { opacity: 1; }   /* długo widoczny */
  30%  { opacity: 0; }   /* szybki fade out */
  100% { opacity: 0; }   /* przerwa (2s) */
}

@media screen and (max-width: 768px) {
  .rotating-text {
    font-size: 1.5rem;
  }
}