* {
  box-sizing: border-box;
}

body {
  margin: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fafafa;
  color: #212121;
  line-height: 1.5;
}
.categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.item {
  background-color: #f6f6fe;
  padding: 16px;
  border-radius: 8px;
  width: 392px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item > h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-list li {
  border: 1px solid #808080;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 16px;
  background-color: #ffffff;
}
ul {
  list-style: none;
  padding-left: 0;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.gallery li {
  flex-basis: calc(33.33% - 16px);
  box-sizing: border-box;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.input {
  width: 360px;
  height: 40px;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
}
.login-form {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 300px;
}

.login-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #333;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.login-form button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  width: 100%;
  background-color: #4c80ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #3366ff;
}

.widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 169px;
  height: 80px;
}

.widget p {
  margin: 0;
  font-size: 14px;
  color: #2e2f42;
}

.change-color {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background-color: #4e75ff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.change-color:hover {
  background-color: #6c8cff;
}
