.privileges-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: center;
  padding: 20px;
}

.privileges-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* Две колонки */
  gap: 20px;
  width: 100%;
  max-width: 1360px; /* Максимальная ширина контейнера */
}

.privilege-card {
  border: 1px solid var(--bottom-line-table);
  background-color: var(--card);
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  width: 100%;
  max-width: 622px;
  position: relative;
  transition: background-color 0.3s ease;
box-shadow: 0 0 5px 4px #cb7de5;
}

.privilege-card img {
  margin-left: 20px;
  width: 250px;
  height: 250px;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.privilege-card:hover img {
  transform: scale(1.13) translateY(-15px); 
  transition: transform 0.3s ease;
}

.privilege-card .text-content {
  text-align: left;
}

.privilege-card .text-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.privilege-card .text-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.discount {
  color: var(--span);
  font-size: 18px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
color: rgb(245,245,245);
text-shadow: 0 -1px rgba(0,0,0,.1);
-webkit-animation: pulsate 1.2s linear infinite;
animation: pulsate 1.2s linear infinite;
}

.arrow {
  font-size: 24px;
  font-weight: bold;
  color: white;
  position: absolute;
  bottom: 20px;
  right: 20px;
  transition: transform 0.3s ease;
}

.privilege-card:hover .arrow {
  transform: translateX(10px);
  transition: transform 0.3s ease;
}

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

  .privilege-card {
      height: auto;
      flex-direction: column;
      padding: 10px;
      border-radius: 15px;
  }

  .privilege-card img {
      width: 100%;
      height: auto;
      margin: 0;
      transform: none;
  }

  .privilege-card:hover img {
      transform: none;
  }

  .privilege-card .text-content h2 {
      font-size: 22px;
      margin-bottom: 8px;
  text-align: center
  }

  .privilege-card .text-content p {
      font-size: 14px;
      margin-bottom: 15px;
  }

  .discount {
      font-size: 16px;
      top: 8px;
      right: 8px;
  }

  .arrow {
      font-size: 20px;
      bottom: 10px;
      right: 10px;
  }
}

/* Дополнительная адаптация для очень узких экранов */
@media (max-width: 480px) {
  .privileges-container {
      margin-top: 30px;
      gap: 25px;
  }

  .privilege-card {
      padding: 5px;
  }

  .privilege-card .text-content h2 {
      font-size: 20px;
  text-align: center
  }

  .privilege-card .text-content p {
      font-size: 12px;
  }

  .discount {
      font-size: 14px;
  }

  .arrow {
      font-size: 18px;
  }
}

@-webkit-keyframes pulsate {
50% { color: #fff; text-shadow: 0 -1px rgba(0,0,0,.3), 0 0 5px #ffd, 0 0 8px #fff; }
}
@keyframes pulsate {
50% { color: #fff; text-shadow: 0 -1px rgba(0,0,0,.3), 0 0 5px #ffd, 0 0 8px #fff; }
}
