* {
  box-sizing: border-box;
}

body {
  margin: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Open Sans', 'Helvetica Neue', 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fafafa;
  color: #212121;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: currentColor;
  text-decoration: none;
}

button {
  cursor: pointer;
}

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

#categories {
  max-width: 440px;
  padding: 24px;
}

.item {
  background-color: #f6f6fe;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.item:last-child {
  margin-bottom: 0;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: 0.04em;
  color: #2e2f42;

  margin-bottom: 16px;
}

.list-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;

  border: 1px solid #808080;
  border-radius: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  margin-bottom: 8px;
}

.list-item:last-child {
  margin-bottom: 0;
}

.gallery {
  display: flex;
  /* flex-direction: row; */
  flex-wrap: wrap;
  gap: 48px 24px;
}

.gallery-item {
  width: calc((100% - 48px) / 3);
}

#name-input {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
  border: 1px solid #808080;
  border-radius: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  margin-top: 24px;
  margin-left: 24px;
  margin-bottom: 16px;
  width: 360px;
  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

#name-input:hover,
#name-input:focus {
  outline: none;
  border: 1px solid #000;
}

#name-input:placeholder-shown {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.title-anon {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin-left: 24px;
}

.login-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.login-form label {
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin-bottom: 8px;
}

.login-form input {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
  border: 1px solid #808080;
  border-radius: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;

  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  margin-bottom: 8px;
  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form input:hover,
.login-form input:focus {
  outline: none;
  border: 1px solid #000;
}

.login-form input:last-child {
  margin-bottom: 16px;
}

.login-form button {
  cursor: pointer;
  border: none;

  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 8px;

  padding: 8px 16px;
  width: 86px;
  background: #4e75ff;
  transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form button:hover,
.login-form button:focus {
  background: #6c8cff;
}

.widget {
  padding-top: 100px;
  padding-right: 88px;
  padding-bottom: 100px;
  padding-left: 88px;
}

.widget p {
    font-family: 'Montserrat', sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.04em;
color: #2e2f42;
margin-bottom: 16px;
}

.change-color {
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.04em;
color: #fff;

border-radius: 8px;
padding: 8px 16px;
max-width: 148px;

background: #4e75ff;
  transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

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