:root {
  --accent: #d7332f;
  --accent-dark: #b02824;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1a1d21;
  --muted: #5b6169;
  --border: #e3e6ea;
  --success: #1f8a56;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(20, 24, 29, 0.12);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.logo-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}
.logo-tagline {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover {
  color: var(--accent-dark);
  background: #f4f5f7;
}

main { padding: 32px 20px 56px; }

h1 { font-size: 28px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 21px; margin: 32px 0 12px; }
a { color: var(--accent-dark); }

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 20px;
}

.answer {
  background: #fff8e6;
  border: 1px solid #f0dfae;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0 24px;
}
.answer strong { color: var(--accent-dark); }

.fines-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--card);
}
.fines-table th, .fines-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
}
.fines-table th { background: #f0f2f5; }

.badge {
  display: inline-block;
  background: #ffe9e8;
  color: var(--accent-dark);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.badge.no-discount { background: #eef1f4; color: var(--muted); }

.calculator { margin: 28px 0; }
.calculator label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
  font-size: 15px;
}
.calculator input[type="number"],
.calculator input[type="date"] {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
}
.calculator .row { margin-bottom: 8px; }
.calculator button {
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.calculator button:hover { background: var(--accent-dark); }
.calc-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #f0f7f3;
  border: 1px solid #cfe6d9;
}
.calc-result .big { font-size: 24px; font-weight: 800; color: var(--success); }
.calc-result .muted { color: var(--muted); font-size: 14px; }
.calc-result .error { color: var(--accent-dark); font-weight: 600; }

ol, ul { padding-left: 22px; }
li { margin: 6px 0; }

.faq-item { margin: 14px 0; }
.faq-item h3 { font-size: 17px; margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--muted); }

.related ul { list-style: none; padding: 0; }
.related li { margin: 8px 0; }
.related a { text-decoration: none; font-weight: 600; }
.related a:hover { text-decoration: underline; }

.violation-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.violation-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: block;
  text-decoration: none;
  color: var(--text);
}
.violation-card:hover { border-color: var(--accent); }
.violation-card .amount {
  color: var(--accent-dark);
  font-weight: 700;
}
.category-title {
  margin: 36px 0 12px;
  font-size: 22px;
}

.site-footer {
  background: #14181d;
  color: #b9c0c9;
  padding: 40px 0 24px;
  margin-top: 56px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin: 12px 0 0;
  color: #8d97a3;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 340px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 16px;
}
.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 4px 0 14px;
}
.footer-col a {
  display: block;
  color: #b9c0c9;
  text-decoration: none;
  padding: 4px 0;
  font-size: 14px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #262c34;
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 0;
  color: #7d8794;
  font-size: 12.5px;
  max-width: 640px;
}

.disclaimer {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .violation-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 32px; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 6px;
    min-height: 0;
  }
  .logo { justify-content: flex-start; }
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    white-space: nowrap;
    padding: 7px 9px;
    font-size: 13.5px;
  }
}
@media (max-width: 480px) {
  .logo img { width: 36px; height: 36px; }
  .logo-name { font-size: 15px; }
  .logo-tagline { display: none; }
}
}

.footer-legal {
  margin-top: 6px;
}
.footer-legal a {
  color: #b9c0c9;
  text-decoration: none;
}
.footer-legal a:hover { color: #fff; }

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #14181d;
  color: #dfe4ea;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #2a323c;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 640px; flex: 1 1 320px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.cookie-banner button:hover { background: var(--accent-dark); }

@media (max-width: 560px) {
  .cookie-banner {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 14px;
    gap: 12px;
  }
  .cookie-banner button {
    width: 100%;
  }
}

.card-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.sources {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 20px;
}
.sources li { margin: 4px 0; }
.sources a { color: var(--accent-dark); }

.verified {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 16px;
}
.verified a { color: var(--muted); text-decoration: underline; }
