* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2328;
  background: #f6f7f9;
  line-height: 1.55;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.header { background: #fff; border-bottom: 1px solid #e3e5e8; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; color: #c8102e; text-decoration: none; font-size: 18px; }
nav a { margin-left: 20px; color: #1f2328; text-decoration: none; }
nav a:hover { color: #c8102e; }

main { padding: 32px 16px 48px; }

.hero { padding: 32px 0; }
.hero h1 { font-size: 32px; margin: 0 0 12px; }
.lead { font-size: 18px; color: #4b5260; max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; padding: 20px; }
.card h3 { margin-top: 0; }

.btn {
  display: inline-block; background: #c8102e; color: #fff; border: 0;
  padding: 10px 22px; border-radius: 8px; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #a50d26; }

.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form input[type=text], .form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #c9ced6; border-radius: 8px; background: #fff;
}
.form .checkbox { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.error { color: #c8102e; font-size: 14px; font-weight: 400; }

.footer { border-top: 1px solid #e3e5e8; padding: 20px 0; color: #6b7280; font-size: 14px; background: #fff; }

@media (max-width: 600px) {
  nav a { margin-left: 12px; }
  .hero h1 { font-size: 26px; }
}

/* Таблица заявок */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e5e8; font-size: 14px; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid #e3e5e8; text-align: left; vertical-align: top; }
.table th { background: #f0f2f5; }
.table .msg { white-space: pre-wrap; max-width: 360px; }
.nowrap { white-space: nowrap; }
.badge { background: #c8102e; color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
