:root {
  --c-bg: #ffffff;
  --c-text: #1a1a1a;
  --c-muted: #5a6470;
  --c-primary: #c8102e;
  --c-primary-dark: #9c0c23;
  --c-accent: #ffb400;
  --c-surface: #f5f7fa;
  --c-border: #e3e7ec;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --max-width: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--c-primary); }

nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
nav a {
  color: var(--c-text);
  font-weight: 500;
}
nav a:hover { color: var(--c-primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #c8102e 0%, #9c0c23 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}
.hero p {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 24px;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--c-accent);
  color: #1a1a1a;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

/* Page header */
.page-header {
  background: var(--c-surface);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--c-border);
}
.page-header h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page-header p { margin: 0; color: var(--c-muted); font-size: 1.1rem; }

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 12px;
}
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs span { margin: 0 6px; }

/* Content */
main { padding: 40px 0; }
article h2 { margin-top: 2.2em; font-size: 1.6rem; }
article h3 { margin-top: 1.8em; font-size: 1.25rem; }
article p, article li { font-size: 1.05rem; }
article ul, article ol { padding-left: 1.4em; }
article ul li, article ol li { margin-bottom: 6px; }

.lead {
  font-size: 1.15rem;
  color: var(--c-muted);
  border-left: 4px solid var(--c-primary);
  padding-left: 16px;
  margin: 1.5em 0;
}

.tip {
  background: #fff8e1;
  border-left: 4px solid var(--c-accent);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 1.5em 0;
}
.tip strong { color: #8a6500; }

.warning {
  background: #fdecec;
  border-left: 4px solid var(--c-primary);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 1.5em 0;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 32px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card h3 a { color: var(--c-text); }
.card p { margin: 0 0 12px; color: var(--c-muted); }
.card .more { font-weight: 600; }

/* Ad slots */
.ad-slot {
  margin: 32px 0;
  text-align: center;
  min-height: 90px;
}
.ad-slot small {
  display: block;
  color: #999;
  font-size: 0.75rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ad-placeholder {
  background: #fafafa;
  border: 1px dashed #ddd;
  color: #aaa;
  padding: 30px;
  border-radius: var(--radius);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #cfd2d6;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #888;
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-border); }
th { background: var(--c-surface); font-weight: 600; }

/* Mobile */
@media (max-width: 700px) {
  nav ul { gap: 14px; font-size: 0.95rem; }
  .hero { padding: 50px 0; }
  main { padding: 28px 0; }
}
