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

button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 4%;
  line-height: 1.5;
  color: rgba(255, 255, 255, 1);

  background-color: rgba(78, 117, 255, 1);
  padding: 8px 16px;
  border-radius: 8px;
  border: none;

  margin-top: 16px;
}

button:hover,
button:focus {
  background-color: rgba(108, 140, 255, 1);
}

/* task 1 */
.item {
  border-radius: 8px;
  padding: 16px;
  width: 392px;
  background: #f6f6fe;
  margin-bottom: 24px;
}

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

.item ul {
  margin: 0;
  padding: 0;
}

.item > ul > li {
  /* width: 360px; */
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #2e2f42;

  padding: 8px 16px;

  border: #808080 1px solid;
  border-radius: 4px;
}

.item > ul > li:not(:last-child) {
  margin-bottom: 8px;
}

/* task 2 */

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

  width: calc(1440px - 2 * 156px);
  margin: 0 auto;
}

.gallery li {
  width: calc((100% - 2 * 24px) / 3);
}

.gallery li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* task 3 */
h1 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

/* task-4 */

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

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

input {
  width: 360px;
  height: 40px;
  border-color: #808080;
  border-radius: 4px;
  outline: none;
  padding: 8px 16px;

  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

input:focus {
  border-color: #000000;
}

/* task-5 */

.widget {
  padding: 100px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color {
  /* margin-bottom: 16px; */
}

/* task-2 */

ul {
  list-style-type: none;
}
