:root {
  --anthracite: #1c1c1e;
  --anthracite-light: #2c2c2e;
  --gold: #c9a24b;
  --text: #1c1c1e;
  --text-muted: #6b6b6f;
  --bg: #fafaf9;
  --white: #ffffff;
  --green: #2e7d32;
  --orange: #e08a00;
  --red: #c62828;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header.site-header {
  background: var(--white);
  color: var(--anthracite);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e6;
}

header.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--anthracite);
  text-decoration: none;
}

header.site-header .brand .logo-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
}

header.site-header nav a {
  color: var(--anthracite);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.75;
}
header.site-header nav a:hover { opacity: 1; text-decoration: underline; }
header.site-header nav button { color: var(--anthracite) !important; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

h1 { font-size: 1.8rem; margin-top: 0; }
h2 { font-size: 1.3rem; }

.btn {
  display: inline-block;
  background: var(--anthracite);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--anthracite-light); }
.btn.btn-gold { background: var(--gold); color: var(--anthracite); font-weight: 600; }

.price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: var(--anthracite);
}
.price-tag .period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

form p { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.92rem; }
input, select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d4d4d6;
  border-radius: 6px;
  font-size: 1rem;
}

.errorlist { color: var(--red); padding-left: 1.1rem; margin: 0.2rem 0; }

.pan-form {
  border: 1px solid #e5e5e6;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.footer-contact {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 1rem;
}
.footer-contact a { color: var(--text-muted); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.status-badge.normal { background: var(--green); }
.status-badge.surveillance { background: var(--orange); }
.status-badge.anomalie { background: var(--red); }

.messages { list-style: none; padding: 0; }
.messages li { background: #fff3cd; border-radius: 6px; padding: 0.6rem 1rem; margin-bottom: 0.5rem; }
