:root {
  --container-max: clamp(576px, 90vw, 1320px);
}

.header {
  padding-top: 20px;
  background-color: #000;
}

.header__container {
  margin: 0 auto;
  padding: 0 1rem;
  max-width: var(--container-max);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__title a {
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.header__title a:hover {
  color: #fff;
}

.pager {
  margin: 30px 0;
}

.pager__item.is-active a {
  border-bottom: solid 3px #d31616;
  font-weight: bold;
  padding: 0.2rem;
}

footer {
  background-color: #000;
  border-top: solid 5px #d31616;
  margin-top: 20px;
  text-align: center;
  color: #fff;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 850px) {
  .content {
    padding: 10px;
  }

  .header__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #search-block-form {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .form-item,
  .form-actions {
    margin: 0;
  }

  .header__search {
    margin: 10px;
  }
}
