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

input {
  padding: 8px;
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  list-style-type: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  margin-bottom: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
.task-button {
  display: inline-block;
  border-radius: 8px;
  background-color: #4e75ff;
  color: #fff;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;

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

  padding: 8px 16px;
  margin-bottom: 15px;
}

.task-button:hover {
  background-color: #6c8cff;
}
.button-blue {
  border-radius: 8px;
  background-color: #4e75ff;
  color: #fff;
  border: none;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;

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

  padding: 8px 16px;
}

.button-blue:hover {
  background-color: #6c8cff;
}
/* =============== task-1 ====================== */
#categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.item {
  max-width: 360px;
  border-radius: 8px;
  background-color: #f6f6fe;

  padding: 16px;
}

.categories-tittle {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.04em;

  margin-bottom: 16px;
}

.item-list li {
  border-radius: 4px;
  border: 1px solid #808080;

  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;

  padding: 8px 16px;
}

.item-list li:not(:last-child) {
  margin-bottom: 8px;
}
/* ============= task-2 ====================== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  row-gap: 48px;
}

.gallery img {
  max-width: 360px;
  height: 100%;
}
/* ============== task-3 ==================== */
#name-input {
  border-radius: 4px;
  border: 1px solid #808080;
  outline: transparent;

  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;

  padding: 8px 16px;
  margin-bottom: 16px;
}

#name-input:focus {
  border: 1px solid #000;
}
/* ============== task-4 ==================== */

.login-form {
  display: flex;
  flex-direction: column;
  max-width: 320px;
}

.login-form label {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;

  margin-bottom: 16px;
}

.login-form input {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #808080;
  outline: transparent;

  padding: 8px 16px;
  margin-top: 8px;
}

.login-form input:focus {
  border: 1px solid #000;
}

.login-form .button-blue {
  width: 86px;
  height: 40px;
}
/* ============== task-5 ==================== */
.widget {
  text-align: center;
}

.widget p,
.widget span {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
