html {
  scrollbar-color: #161648 rgb(4, 1, 18);
}
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* скрываем горизонтальный скролл */
  overflow-y: scroll;
  scroll-behavior: smooth;
  background: #000812;
  background: linear-gradient(90deg, rgb(1, 1, 18) 0%, rgb(4, 0, 25) 100%);

  }

.templates-section {
  margin-top: 80px; /* Добавляем отступ сверху, чтобы опустить блок */
  padding: 60px 20px;
  text-align: center;
}

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

.templates-section__container h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.templates-section__container p {
  font-size: 1rem;
  color: #d8d8d8;
  margin-bottom: 40px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.template-card {
  background: #fff;
  border: 1px solid #ddd; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

.template-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.template-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.select-template-btn {
  display: inline-block;
  background-color: #54AFE4;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.select-template-btn:hover {
  background-color: #2b8aca;
}
