/* Сброс базовых отступов */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Фон всей страницы и базовые стили */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f5fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Хедер */
header {
  background-color: #000;
  color: #eee;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  user-select: none;
}

/* Иконка в хедере */
header::before {
  content: "👥";
  font-size: 20px;
}

/* Основной контейнер карточки */
main {
  background-color: #fff;
  max-width: 460px;
  margin: 32px auto 48px;
  padding: 24px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.08);
  flex-grow: 1;
}

/* Заголовки */
h2 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  text-align: center;
  color: #1c1c1c;
}

/* Список пользователей */
ul {
  list-style: none;
  margin-bottom: 36px;
}

li {
  background-color: #f9fafe;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #222;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
  cursor: default;
}

li span {
  color: #545454;
  font-weight: 400;
}

/* Форма */
form {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Поля ввода */
input[type="text"],
input[type="number"] {
  border: 1px solid #cbd2d8;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  width: 160px;
  outline-offset: 2px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #000;
}

/* Кнопка */
button {
  background-color: #000;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  user-select: none;
}

button:hover,
button:focus {
  background-color: #333;
  outline: none;
}

/* Футер */
footer {
  background-color: #222;
  color: #aaa;
  font-size: 14px;
  padding: 14px 0;
  text-align: center;
  user-select: none;
  border-top: 1px solid #444;
}

footer a {
  color: #ddd;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}
