* {
  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: #ffffff;
  color: #212121;
  line-height: 1.5;
}

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

a {
  text-decoration: none;
}

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

button {
  cursor: pointer;
  border: none;
}

ul {
  list-style: none;
}

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

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

.title-list {
  font-weight: 600;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: 0.04em;
  color: #2e2f42;

  margin-bottom: 16px;
}

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

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

  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;

  padding: 8px 16px;
}

.gallery {
  padding: 24px;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 48px;
  column-gap: 24px;
}

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

.gallery-image {
}

.form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;

  padding: 8px 16px;
}

.login-form {
  padding: 24px;

  display: flex;
  flex-direction: column;

  width: 408px;
  height: 256px;
}

.form-label {
  display: flex;
  flex-direction: column;

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

.input-text {
  margin-top: 8px;
  margin-bottom: 8px;

  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;

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

  padding: 8px 16px;

  outline: transparent;
}

.input-text:hover {
  border: 1px solid #000;
}

.input-text::placeholder{
  opacity: 0;
}

input:focus::placeholder {
  opacity: 1;
}

.btn-log {
  display: block;
  max-width:86px;
  height: 40px;
  border-radius: 8px;
  padding: 8px 16px;

  background: #4e75ff;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #fff;

  transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-log:hover {
  background: #6c8cff;
}

.widget {
  padding: 100px 88px;
}

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

  margin-bottom: 16px;
}

.change-color {
  border-radius: 8px;
  padding: 8px 16px;
  max-width: 148px;
  height: 40px;

  background: #4e75ff;

  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #fff;

  transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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