* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

main {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease;
  /* Убираем все transform */
}

.card:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  /* Только смена градиента */
}

.card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  margin-bottom: 10px;
  object-fit: cover;
  pointer-events: none; /* ← Изображение не перехватывает клики */
}

.card h3 {
  font-size: 1.3em;
  margin-bottom: 5px;
}

.card p {
  font-size: 0.9em;
  opacity: 0.9;
}

.list-item {
  background: #f8f9fa;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  user-select: none; /* Запрещаем выделение текста при наведении */
}

.list-item:hover {
  background: #130222;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.list-item:active {
  background: #260e48;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

.list-item .price {
  color: #667eea;
  font-weight: bold;
  font-size: 1.2em;
}
.dates {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.date-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s;
}

.date-item:hover {
  transform: scale(1.02);
}

.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.time-item {
  background: #667eea;
  color: white;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;
}

.time-item:hover {
  background: #764ba2;
}

#booking-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#booking-form input {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1em;
}

#booking-form input:focus {
  outline: none;
  border-color: #667eea;
}

.submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.2em;
  cursor: pointer;
  transition: transform 0.3s;
}

.submit-btn:hover {
  transform: scale(1.02);
}

.back-btn,
.home-btn {
  margin-top: 20px;
  background: #6c757d;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.back-btn:hover,
.home-btn:hover {
  background: #5a6268;
}

footer {
  text-align: center;
  color: white;
  margin-top: 30px;
}

footer a {
  color: white;
  text-decoration: underline;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.8em;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .times {
    grid-template-columns: repeat(3, 1fr);
  }
}
header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

.logo {
  width: 150px;
  height: 150px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

h1 {
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2em;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
/* Ошибки валидации */
.error-message {
  color: #e74c3c;
  font-size: 0.9em;
  margin-top: 5px;
  padding: 10px;
  background: #fee;
  border-left: 3px solid #e74c3c;
  border-radius: 5px;
}

#client-phone:invalid {
  border-color: #e74c3c;
}

#client-phone:valid {
  border-color: #27ae60;
}

#client-name:invalid {
  border-color: #e74c3c;
}

#client-name:valid {
  border-color: #27ae60;
}
