* {
  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;
}

h1 {
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

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

img {
  display: block;
  max-width: 100%;
}

input {
  padding-left: 16px;
  padding-right: 16px;
  width: 360px;
  height: 40px;
  border: 1px solid #808080;
  border-radius: 4px;
  font-family: 'Montserrat';
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  outline: transparent;
}

input:hover,
input:focus {
  border: 1px solid #000;
}

label {
  font-family: 'Montserrat';
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

button {
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Montserrat';
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: #4e75ff;
  border: none;
  outline: transparent;
}

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

#categories {
  border-radius: 8px;
  padding: 24px;
  width: 440px;
  background-color: #fff;
}

.item:not(:last-child) {
  margin-bottom: 24px;
}

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

.item h2 {
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.item li:not(:last-child) {
  margin-bottom: 8px;
}

.item li {
  font-family: 'Montserrat';
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  border: 1px solid #808080;
  border-radius: 4px;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.gallery {
  margin: 0 auto;
  padding: 100px 0;
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 48px;
  column-gap: 24px;
  background-color: #fff;
}

.gallery-image {
  width: 360px;
  height: 300px;
}

.login-form {
  border-radius: 8px;
  padding: 24px;
  width: 408px;
  background-color: #fff;
}

.login-form label:first-child {
  margin-bottom: 8px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.login-form button {
  margin-top: 16px;
}

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

.widget p {
  margin: 0 0 16px 0;
  font-family: 'Montserrat';
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.widget button {
  display: block;
}
