* {
  box-sizing: border-box;
}

body {
  margin: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fafafa;
  color: #2e2f42;
  line-height: 1.5;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Task-1 */

#categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  width: 440px;
}

.item {
  background-color: #f6f6fe;
  border-radius: 8px;
  border: 1px solid #f6f6fe;
  padding: 16px;
  min-width: 392px;
  height: 100%;
}
.item h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  margin-top: 0;
}

li {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.item ul {
  margin-top: 16px;
}

.item ul li {
  padding: 8px 16px;
  margin-bottom: 8px;
  border-radius: 4px;
  border: 1px solid #808080;
}

.item ul li:last-child {
  margin-bottom: 0;
}
/* Task-2 */
.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}

.gallery img {
  display: block;
  width: 360px;
  height: 300px;
}
/* Task-3 */
#name-input {
  width: 360px;
  height: 40px;
  padding: 8px;
  border: 1px solid #808080;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background-color: #ffffff;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

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

h1 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  
}


/* Task-4 */
.login-form {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 408px;
  height: 256px;
  box-sizing: border-box;
}

.login-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
 
}

.login-form input {
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid #808080;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 16px;
  font-family: inherit;
  background-color: #ffffff;
  box-sizing: border-box;
}

.login-form button {
  background-color: #4e75ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  margin-top: 16px;
}

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

/* Task-5*/
.widget {
  width: 345px;
  height: 280px;
  padding: 100px 88px;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.widget p {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin-bottom: 16px;
}

.change-color {
  width: 148px;
  height: 40px;
  background-color: #4e75ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.change-color:hover {
  background-color: #6c8cff;}