:root {
  --red: #960000;
  --red-dark: #700000;
  --white: #fff;
  --text: #1f1f1f;
  --muted: #666;
  --background: #f6f6f6;
  --shadow: 0 6px 18px rgba(0, 0, 0, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--background);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.topbar {
  overflow: hidden;
  padding: 8px 12px;
  color: var(--white);
  background: var(--red);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.topbar-text { animation: ticker 18s linear infinite; white-space: nowrap; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .topbar-text { animation: none; white-space: normal; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow);
}
.nav-container {
  width: min(1200px, calc(100% - 32px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 54px; height: 58px; object-fit: contain; }
.brand span { color: var(--red); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 800; }
.nav-panel { display: flex; align-items: center; gap: 22px; }
.main-menu { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.main-menu a { position: relative; text-decoration: none; font-weight: 700; font-size: .92rem; }
.main-menu a:hover, .main-menu a.active { color: var(--red); }
.main-menu a.active::after {
  content: ""; position: absolute; right: 0; bottom: -7px; left: 0;
  height: 2px; border-radius: 2px; background: var(--red);
}
.search-form { display: flex; }
.search-form input {
  width: 155px; padding: 9px 11px; border: 1px solid #ccc;
  border-right: 0; border-radius: 8px 0 0 8px; font: inherit; outline: none;
}
.search-form input:focus { border-color: var(--red); }
.search-form button {
  padding: 0 12px; border: 0; border-radius: 0 8px 8px 0;
  color: var(--white); background: var(--red); cursor: pointer; font-weight: 700;
}
.menu-toggle { display: none; padding: 7px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 27px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--red); transition: .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.content-placeholder {
  width: min(1200px, calc(100% - 28px));
  min-height: 560px;
  margin: 22px auto;
  flex: 1;
}
.empty-content {
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 2px dashed #c8c8c8;
  border-radius: 14px;
  color: var(--muted);
  background: var(--white);
}
.empty-content p { margin: 0; font-weight: 700; }

.site-footer { color: var(--white); background: linear-gradient(180deg, #9a0000, #700000); }
.footer-container {
  width: min(1200px, calc(100% - 32px));
  margin: auto;
  padding: 34px 0 26px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer-column h2 { margin: 0 0 14px; font-size: 1.05rem; }
.footer-column p { margin: 7px 0; line-height: 1.7; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 8px 0; }
.footer-column a { text-decoration: none; }
.footer-column a:hover { text-decoration: underline; }
.footer-bottom {
  padding: 14px;
  display: flex;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.14);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1100;
  width: 44px; height: 44px; display: none; place-items: center;
  border: 2px solid var(--white); border-radius: 50%; color: var(--white);
  background: var(--red); box-shadow: var(--shadow); cursor: pointer; font-size: 1.3rem;
}
.to-top.show { display: grid; }

@media (max-width: 920px) {
  .nav-container { min-height: 74px; flex-wrap: wrap; padding: 8px 0; }
  .brand img { width: 48px; height: 52px; }
  .menu-toggle { display: block; }
  .nav-panel {
    width: 100%; max-height: 0; overflow: hidden; display: block;
    opacity: 0; transition: max-height .35s ease, opacity .25s ease;
  }
  .nav-panel.open { max-height: 520px; padding: 8px 0 14px; opacity: 1; }
  .main-menu { display: block; border-top: 1px solid #ddd; }
  .main-menu li { border-bottom: 1px solid #eee; }
  .main-menu a { display: block; padding: 12px 4px; }
  .main-menu a.active::after { display: none; }
  .search-form { margin-top: 12px; }
  .search-form input { width: 100%; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brand span { max-width: 210px; }
  .footer-container { grid-template-columns: 1fr; gap: 22px; }
  .empty-content { min-height: 400px; }
}
