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

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

h1,
h2,
p {
  margin: 0;
}

.list {
  margin: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

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

.item-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.item-list {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
}

.item-list li {
  letter-spacing: 0.04em;
  border-radius: 8px;
  border: 1px solid #212121;
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.gallery {
  margin: 100px 156px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
}

.gallery-item {
  flex-basis: calc((100% - (24px * 2)) / 3);
}

.gallery-item-img {
  display: block;
  width: 100%;
  height: 300px;
}

#name-input {
  margin-top: 24px;
  margin-left: 24px;
  margin-bottom: 16px;
  font-size: 16px;
  letter-spacing: 0.04em;
  border: 1px solid black;
  border-radius: 8px;
  padding: 8px 16px;
  width: 360px;
  height: 40px;
}

.hello-name {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.04em;
  margin-left: 24px;
}

.login-form {
  margin: 24px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  letter-spacing: 0.04em;
}

.login-form input {
  border: 1px solid black;
  border-radius: 8px;
  padding: 8px 16px;
  width: 360px;
  height: 40px;
}

.login-form button {
  border-radius: 8px;
  width: 86px;
  height: 40px;
  background-color: #4e75ff;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
  border: transparent;
}

.widget {
  margin-top: 100px;
  margin-left: 88px;
}

.widget p {
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.widget button {
  border-radius: 8px;
  width: 148px;
  height: 40px;
  background-color: #4e75ff;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
  border: transparent;
}
