/* === Сброс и базовые стили === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #222;
  line-height: 1.6;
  padding-bottom: 60px;
}

/* === Хедер === */
header {
  background: #111;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 a {
  color: #0ff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #0ff;
}

/* === Основной контейнер === */
main {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

/* === Формы === */
form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fafafa;
}

form textarea {
  resize: vertical;
  min-height: 80px;
}

form .btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: #0ff;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s;
}

form .btn:hover {
  background: #0cc;
}

form .btn-secondary {
  background: #ddd;
  color: #333;
}

form .btn-secondary:hover {
  background: #bbb;
}

/* === Таблицы === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

th {
  background: #f0f0f0;
  text-align: left;
}

/* === Футер === */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}
.component-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.component-card {
  background: #1a1a1a;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px;
  width: 200px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.component-card:hover {
  border-color: #0ff;
  box-shadow: 0 0 10px #0ff33f44;
}

.component-card input[type="radio"] {
  display: none;
}

.component-card img {
  display: block;
  margin: 0 auto;
  max-height: 100px;
  object-fit: contain;
  width: 100%;
  transition: transform 0.3s ease;
}

.component-card:hover img {
  transform: scale(1.1);
}


.component-info {
  text-align: left;
  font-size: 14px;
  color: #ddd;
}

.price {
  color: #0ff;
  font-weight: bold;
}
