
.catalog-page {
  padding-top: 140px;
  padding-bottom: 60px;
  background-color: rgba(5, 10, 30, 0.9);
}

.header-alt {
 background-color: rgba(10, 10, 10, 0.5);
}

.mb-head-alt {
 background-color: rgba(10, 10, 10, 0.5);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.catalog-title {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: bold;
}

.breadcrumbs {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 30px;
}

.catalog-layout {
  display: flex;
  gap: 40px;
  min-height: 800px;
}

/* Меню слева */
.catalog-menu {
  width: 380px; /* было 240px — увеличили */
  min-height: 800px;
}

.catalog-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalog-menu li {
  margin-bottom: 12px;
}

.catalog-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);;
  color: #FFD600;
  font-weight: bold;
  text-decoration: none;
  font-size: 17px;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.menu-text {
  background: linear-gradient(
    90deg,
    #fceabb 0%,
    #f8b500 25%,
    #fceabb 50%,
    #f8b500 75%,
    #fceabb 100%
  );
  background-size: 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldPulse 5s ease-in-out infinite alternate;
}

.catalog-menu li.active .menu-text {
  background: none;
  -webkit-text-fill-color: white;
  animation: none;
}

/* при наведении — белый текст */
.catalog-menu a:hover .menu-text {
  background: none;
  -webkit-text-fill-color: white;
  animation: none;
}

.catalog-menu li.active a,
.catalog-menu a:hover {
  transform: translateY(-4px);
  background: #1a1e33;
  transition: all 0.3s ease;
}

.catalog-menu img {
  width: 80px;
  height: auto;
  margin-left: 12px;
  flex-shrink: 0;
}

.catalog-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
}

.catalog-card {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
  color: white;
  overflow: hidden;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.catalog-card:hover {
  transform: translateY(-4px);
}

.catalog-card img {
  width: 210px;
  border-radius: 15px;
  padding: 15px;
  box-sizing: border-box;
  object-fit: cover;  /* или contain, если хочешь, чтобы всё влезало */
  height: auto; /* или фиксированную высоту, если нужно */
}


.card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.card-info h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: bold;
}

.card-info p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #ccc;
}

.catalog-btn {
  align-self: flex-start;
  padding: 10px 20px;
  background: linear-gradient(90deg, #fceabb, #f8b500);
  color: black;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: box-shadow 0.3s;
}

.catalog-btn:hover {
  box-shadow: 0 0 10px #FFD600;
}

.tech-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* можешь выбрать нужный цвет */
}

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

@media (max-width: 768px) {


  .header-alt {
    display: none;
  }

  .mobile-header {
    display: flex;
  }
}

@media (max-width: 768px) {
  .mobile-header.mb-head-alt {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;          /* обязательно! */
    width: 90vw;      /* на всю ширину экрана */
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.3);

  }

  .catalog-page {
    padding-top: 60px; /* поднимаем, чтобы не залезала под хедер */
  }
  .catalog-menu {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .catalog-menu a {
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px;
  }

  .catalog-menu img {
    width: 50px;
    margin-left: 8px;
  }

  .menu-text {
    font-size: 15px;
  }

  .catalog-layout {
    flex-direction: column;
    gap: 20px;
  }

  .catalog-cards {
    gap: 16px;
  }

  .catalog-card {
    flex-direction: column;
    border-radius: 12px;
  }

  .catalog-card img {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
  }

  .card-info {
    padding: 15px;
  }

  .tech-title {
    font-size: 24px;
  }
}

.animate-on-scroll {
  animation: none !important;
}

html {
  overflow-y: scroll;
}
