.catalog-section {
  padding: 80px 20px;
  background-color: #0a0a23;
  position: relative;
  overflow: hidden;
}


.catalog-wrapper {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.catalog-title {
  font-size: 32px;
  color: white;
  text-align: center;
  margin-bottom: 60px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.catalog-card {
  box-sizing: border-box; /* ← это ключевое */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  border: 2px solid #FFD700;
  border-radius: 20px;
  background-color: #0a0a23;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 300px;
  height: 320px;
}

.catalog-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  /* всё остальное уже есть: background, box-shadow и т.д. */
}

.catalog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.catalog-card:hover {
  transform: translateY(-10px);
  background-color: #1f1f47;
}

.catalog-card img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
}

.catalog-card h3 {
  font-size: 18px;
  color: white;
  margin-bottom: 12px;
}

.catalog-card button {
  padding: 10px 18px;
  background-color: #FFD600;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.catalog-card button:hover {
  background-color: #ffeb3b;
}

.catalog-more-wrapper {
  text-align: center;
}

.catalog-more {
  position: relative;
  background: linear-gradient(
    90deg,
    #fceabb 0%,
    #f8b500 25%,
    #fceabb 50%,
    #f8b500 75%,
    #fceabb 100%
  );
  background-size: 400%;
  background-position: 0%;
  animation: goldPulse 5s linear infinite alternate;

  color: black;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.catalog-more:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}


@keyframes goldPulse {
  0% {
    background-position: 0%;
  }
  50% {
    background-position: 100%;
  }
  100% {
    background-position: 0%;
  }
}

@media (max-width: 768px) {

  .catalog-section::before {
    display: none;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
    justify-content: center;
  }

  .catalog-card {
    max-width: 100%;
    height: auto;
    padding: 16px;
  }

  .catalog-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .catalog-card button {
    font-size: 14px;
    padding: 10px 16px;
    background-color: #FFD600;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: black;
    text-decoration: none;
  }

  .catalog-card button:hover {
    background-color: #ffeb3b;
  }
}