* {
  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;
}
/*task-1*/
.categories-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.item {
  width: 392px;
  background-color: #f6f6fe;
  border-radius: 8px;
}
.title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #2e2f42;
  padding-left: 16px;
  margin-bottom: 16px;
}
.sublist {
  padding-inline-start: 0;
}
.subitem {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  display: block;
  padding: 8px 16px;
  margin: 8px;
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
}
/*task-2*/
.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 48px;
}
.gallery-item {
  flex: 0 0 calc((100% - 32px) / 3);
}
.gallery-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}
/*task-3*/
.title-task-3 {
  padding-left: 0;
  margin-bottom: 0;
}
.form-input {
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;
  color: #2e2f42;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
/*task-4*/
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 408px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}
.login-form input {
  height: 40px;
  width: 360px;
  padding: 8px 24px;
  border: 1px solid #808080;
  border-radius: 4px;
  outline: none;
}
.login-form input:focus {
  border-color: #4e75ff;
}
.login-form button {
  width: fit-content;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background-color: #4e75ff;
  color: #fff;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.login-form button:hover {
  background-color: #6c8cff;
}
/*task-5*/
.widget {
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 8px;
  padding: 100px 88px;
  width: 345px;
  background-color: #f9f9f9;
}
.widget-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}
.change-color {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #4e75ff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}
