* {
  box-sizing: border-box;
}

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

ul {
  list-style: none;
  padding: 0;
}
input{
  width: 360px;
    height: 40px;
font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  padding: 0 0 0 16px;
}
h1{
  font-weight: 600;
    font-size: 24px;
    line-height: 1.33333;
    letter-spacing: 0.04em;
    color: #2e2f42;
}
h2 {
  margin: 0 0 16px 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.item {
  letter-spacing: 0.04em;
  color: #2e2f42;
  background: #f6f6fe;
  border-radius: 8px;
  margin-bottom: 24px;
  width: 392px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.item>ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item>ul>li {
  border: 1px solid #808080;
  border-radius: 4px;
  height: 40px;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.gallery{
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
  margin: 100px 156px;
}
.gallery-item{
  flex-basis: calc((100% - 48px) / 3);
  height: 300px;
}
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #2e2f42;
}
.login-form{
  display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
}
button{
  margin-top: 16px;
  border-radius: 8px;
  border: none;
    width: 86px;
    height: 40px;
    background: #4e75ff;
    color: #fff;
}
button:hover{
  background: #6c8cff;
}

.change-color{
  border-radius: 8px;
    padding: 8px 16px;
    width: 148px;
    height: 40px;
}
p{
  font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #2e2f42;
}
.widget {
  width: fit-content;
  margin: 0 auto;
}
.change-color:hover{
  background: #6c8cff;
}