* {
  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,
ol {
  list-style-type: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

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

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

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

#categories {
 display: flex;
 flex-direction: column;
 gap: 24px;
}

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

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

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

.item li {
  padding: 8px 16px;
border: 1px solid #808080;
  border-radius: 4px;
  max-width: 360px;
  
}


.gallery {
 display: flex;
 flex-wrap: wrap;
 column-gap: 24px;
 row-gap: 48px;
 justify-content: center;

}

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

.gallery-image {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}





#name-input {
  border: 1px solid #808080;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    width: 360px;
    height: 40px;
    padding: 8px 16px;
    font-size: 16px;
      letter-spacing: 0.04em;
      color: #2e2f42;

}

#name-input:hover {
  border-color: #000000;
}

#name-input:focus {
  border-color: #808080;
  outline: none;
}

#name-input::placeholder {
  font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: #808080;
}

h1 {
  font-weight: 600;
    font-size: 24px;
    line-height: 1.33;
    letter-spacing: 0.04em;
    color: #2e2f42;
    margin-top: 16px;
}




.login-form {
 width: 408px;
 display: flex;
 flex-direction: column;
 border-radius: 8px;
 padding: 24px;
 gap: 16px;
background-color: #fff;

}

.login-form input {
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #808080;
    border-radius: 4px;
    width: 360px;
    height: 40px;
    padding: 8px 16px;
}

.login-form input:hover {
  border-color: #000000;
}

.login-form input:focus {
  border-color:  #808080;
  outline: none;
}

.login-form label {
  display: flex;
    flex-direction: column;
    font-size: 16px;
    letter-spacing: 0.04em;
    gap: 8px;
    color: #2e2f42;
}

.login-form button {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
   padding: 8px 16px;
    background-color:#4e75ff;
    border: none;
    font-weight: 500;
      font-size: 16px;
      letter-spacing: 0.04em;
      align-self: flex-start;
      color: #fff;
}

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



body .widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 100px auto;
  width: 345px;
  min-height: 280px;
  padding: 32px;
  gap: 16px;
  background-color: #fff;
}

.widget p {
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.04em;
    color: #2e2f42;
}


.change-color {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 8px 16px;
    border: none;
    background-color: #4e75ff;
    font-weight: 500;
      font-size: 16px;
      line-height: 1.5;
      letter-spacing: 0.04em;
      color: #fff;
}
.change-color:hover {
background-color: #6c8cff;
}
