* {
  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: none;
  margin: 0;
  padding: 0;
}
#categories .item {
  background-color: #f6f6fe;
  width: 392px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}
#categories .item:last-child {
  margin-bottom: 0;
}
#categories .item > h2 {
  font-weight: 600;
  font-style: SemiBold;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  list-style: none;
  margin-top: 16px;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list li {
  width: 360px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: transparent;
}
.list-item {
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 16px);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border-radius: 0;
}

#name-input {
  display: block;
  width: 360px;
  height: 40px;
  margin-bottom: 16px;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 0 8px;
  border: 1px solid #808080;
  border-radius: 4px;
}
h1 {
  font-weight: 600;
  font-style: semi-bold;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #212121;
}

#name-output {
  font-weight: 600;
  font-style: semi-bold;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #212121;
}
.login-form {
  display: flex;
  flex-direction: column;
  width: 360px;
  gap: 8px;
  margin-top: 8px;
  align-items: flex-start;
}

.login-form label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  width: 100%;
  color: #2e2f42;
}

.login-form input {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid #808080;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-form button {
  width: 86px;
  height: 40px;
  background-color: #4e75ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-top: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #48c448;
}
.widget p {
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.widget button.change-color {
  width: 148px;
  height: 40px;
  background-color: #4e75ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-style: medium;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
}
