.card {
  width: 190px;
  height: 254px;
  border-radius: 20px;
  padding: 5px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB);
}

.card__content {
  background: rgb(5, 6, 45);
  border-radius: 17px;
  width: 100%;
  height: 100%;
}

.banners-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Центрируем баннеры */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.banner {
    position: relative;
    flex: 1 1 calc(33.333% - 20px); /* Три баннера в ряд */
    max-width: 370px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.banner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.banner-text-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    color: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.banner-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

.banner-text {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .banner {
        flex: 1 1 calc(50% - 20px); /* Два баннера в ряд на планшетах */
        max-width: none;
    }
}

@media (max-width: 600px) {
    .banner {
        flex: 1 1 100%; /* Один баннер в ряд на мобилках */
        max-width: none;
    }
}
