* {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

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 {
  list-style: none;
  padding: 0;
  max-width: 392px;
}

.item {
  background: #f6f6fe;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}
.item h2 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.item ul {
  list-style: none;
  padding: 0;
}

.item ul li {
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #808080;
  padding: 8px;
  margin-bottom: 8px;
  text-align: left;
}

.gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
  justify-content: center;
  padding: 100px 156px;
  list-style: none;
}

.gallery-item {
  min-width: 360px;
  min-height: 300px;
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

.gallery-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

input {
  width: 360px;
  height: 40px;
  padding: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  border: 1px solid #808080;
  border-radius: 4px;
  outline: none;
}

h1 {
  font-weight: 600;
  font-size: 24px;
  color: #2e2f42;
  margin-top: 16px;
}

.login-form {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 8px;
  padding: 24px;
  width: 408px;
}

label {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  width: 86px;
  height: 40px;
  background-color: #4e75ff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 16px;
}

.widget {
  border-radius: 8px;
  padding-top: 100px;
  padding-bottom: 100px;
  padding-right: 88px;
  padding-left: 88px;
  width: 345px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
}

.color {
  color: #2e2f42;
}

button.change-color {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  min-width: 149px;
  background: #4e75ff;
  border: none;
  cursor: pointer;
}
