/* ===============================
   STARTER KIT — BASE STYLESHEET
   =============================== */

/* Общие обнуления и базовая типографика */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background-color: #fff;
}

/* Ссылки */
a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #0056b3;
}

/* Кнопки */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #0069d9;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: scale(0.97);
}

button:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

/* Поля ввода */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #222;
  transition: border-color 0.2s ease;
      border-radius: 8px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

input:disabled,
textarea:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Селекты */
select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Чекбоксы и радиокнопки */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #007bff;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Формы */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em 0;
  font-weight: 700;
  line-height: 1.2;
}

/* Абзацы */
p {
  margin: 0 0 1em 0;
}

/* Списки */
ul, ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

/* Таблицы (минимально) */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* Utility: скрытие элемента */
.hidden {
  display: none !important;
}