.ad-banner {
  width: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #ffffff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.18);
  text-transform: uppercase;
  overflow: hidden;
}

.ad-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 52px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-banner__text {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.ad-banner__text::before,
.ad-banner__text::after {
  content: "⬅";
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  animation-duration: 1.4s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.ad-banner__text::before {
  transform: rotate(180deg);
  animation-name: arrowLeftPulse;
}

.ad-banner__text::after {
  animation-name: arrowRightPulse;
}

.ad-banner__close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease, transform 150ms ease;
}

.ad-banner__close:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-50%) scale(1.05);
}

.ad-banner--hidden {
  display: none;
}

@keyframes arrowLeftPulse {
  0% {
    transform: translateX(-14px) rotate(180deg);
    opacity: 0.35;
  }
  50% {
    transform: translateX(-2px) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-14px) rotate(180deg);
    opacity: 0.35;
  }
}

@keyframes arrowRightPulse {
  0% {
    transform: translateX(14px);
    opacity: 0.35;
  }
  50% {
    transform: translateX(2px);
    opacity: 1;
  }
  100% {
    transform: translateX(14px);
    opacity: 0.35;
  }
}

@media (max-width: 640px) {
  .ad-banner__inner {
    min-height: 56px;
    padding: 10px 52px 10px 14px;
  }

  .ad-banner__text {
    font-size: 14px;
    gap: 12px;
  }

  .ad-banner__text::before,
  .ad-banner__text::after {
    font-size: 16px;
  }

  .ad-banner__close {
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}