:root {
  --orange: #e4570e;
  --orange-dark: #c4470a;
  --ink: #142033;
  --muted: #5c6b7a;
  --line: #e6ebf1;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--orange-dark); }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}
.logo img { height: 42px; width: auto; display: block; }
.nav-toggle { display: none; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 8px 9px;
  border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); background: #fff4ee; }
.search {
  display: flex;
  gap: 6px;
}
.search input {
  width: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.search button, .cta, button.cta {
  background: var(--orange);
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cta:hover, .search button:hover { background: var(--orange-dark); }
.hero {
  margin: 22px 0 8px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  margin: 18px auto 40px;
}
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 34px;
}
article h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.content h2 { margin-top: 1.6em; font-size: 1.45rem; }
.content h3 { margin-top: 1.2em; font-size: 1.12rem; }
.content table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: #fff6f1; }
.content .cta { margin: 8px 0 16px; }
.side .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.side h2 { font-size: 1rem; margin: 0 0 10px; }
.side ul { margin: 0; padding-left: 18px; }
.side li { margin: 6px 0; }
.crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
footer {
  background: var(--ink);
  color: #d5deea;
  padding: 28px 0 18px;
  font-size: 14px;
}
footer a { color: #fff; text-decoration: none; }
.footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.notice {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #b7c3d2;
}
.age {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-weight: 800;
  margin-right: 8px;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 700; }
  .nav, .search { display: none; width: 100%; }
  .topbar .wrap { flex-wrap: wrap; padding: 10px 0; }
  #navbox:checked ~ .nav, #navbox:checked ~ .search { display: flex; }
  .search { padding-bottom: 10px; }
  .search input { flex: 1; width: auto; }
  .layout, .footgrid { grid-template-columns: 1fr; }
  article { padding: 18px 16px 24px; }
  article h1 { font-size: 1.6rem; }
}
