body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  color: white;
  padding: 10px 20px;
}

.nav-left a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
}

.nav-left a:hover {
  text-decoration: underline;
}

.nav-right {
  display: none;
  /* скрыто до входа */
  align-items: center;
}

.nav-right span {
  margin-right: 10px;
}

.nav-right button {
  padding: 4px 8px;
  background: #4caf50;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.nav-right button:hover {
  background: #45a049;
}

.hero {
  height: 80vh;
  background: url("../images/melozoic.jpg") center top/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 60px;
  color: #fff;
  text-shadow: none;
  margin: 0;
}

#authContainer {
  position: fixed;
  top: 70px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  width: 250px;
  z-index: 1000;
}

#authContainer input {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#authContainer button {
  width: 100%;
  padding: 8px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#authContainer button:hover {
  background: #45a049;
}

#authContainer .switch {
  text-align: center;
  margin-top: 5px;
  cursor: pointer;
  color: #007bff;
  font-size: 14px;
}

#catalog {
  display: none;
  padding: 20px;
}

#catalog h2 {
  text-align: center;
}

.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 200px;
  text-align: center;
}

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

.card button {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.card button:hover {
  background: #0056b3;
}

#loginMessage {
  text-align: center;
  margin: 20px;
}

footer {
  text-align: center;
  padding: 10px;
  background: #333;
  color: white;
}
