* {
  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;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 8px;
  padding: 24px;
  width: 440px;
  height: 888px;
  background: #fff;
}
.item {
  border-radius: 8px;
  padding: 16px;
  width: 392px;
  height: auto;
  background-color: #f6f6fe;
}
h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  color: #2e2f42;
  margin: 0 0 16px 0;
}

.item > ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item > ul > li {
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;
  padding: 8px 16px;
  color: #2e2f42;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
}
.gallery img {
  object-fit:cover; 
  border-radius: 8px;
}
#name-input{
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;
  outline: none;
  color: #2e2f42;
  padding: 8px 16px;
}
#name-input:focus {
  border: 1px solid #000;
  box-shadow: 0 0 5px rgba(69, 137, 215, 0.5);
}
#name-input::placeholder {
  color: #2e2f4297; 
}
h1{
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  color: #2e2f42;
}
.login-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-radius: 8px;
  padding: 24px;
  width: 408px;
  height: 256px;
  background: #fff;
}
.login-form label{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #2e2f42;
}
.login-form input {
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;
  outline: none;
}
.login-form input:focus {
  border: 1px solid #000;
  box-shadow: 0 0 5px rgba(69, 137, 215, 0.5);
}
.js-btn {
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  width: 86px;
  height: 40px;
  background: #4e75ff;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}
.js-btn:hover {
  background: #6c8cff;
}
.js-btn:active {
  background: #4e75ff;
}
.widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  padding: 100px 88px;
  width: 345px;
  height: 280px;
  background-color: #fff;
}
.widget p {
  color: #2e2f42;
}
.widget button {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  width: 148px;
  height: 40px;
  background: #4e75ff;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}
.widget button:hover {
  background: #6c8cff;
}
.widget button:active {
  background: #4e75ff;
}