:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #182230;
  --muted: #5f6b7a;
  --line: #d9e1ea;
  --primary: #175cd3;
  --primary-dark: #0b4db3;
  --success: #117a55;
  --warning-bg: #fff8e8;
  --warning-border: #efc35a;
  --danger-bg: #fff1f1;
  --danger-border: #ef9a9a;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(24, 34, 48, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .14em; }
a:hover { color: var(--primary-dark); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brandmark { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brandmark-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--primary); color: #fff; font-size: 18px; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.hero { padding: 70px 0 42px; background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 42px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); background: #eaf2ff; border-radius: 999px; padding: 7px 11px; font-weight: 750; font-size: .84rem; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.15rem, 5vw, 4.25rem); margin: 18px 0 18px; max-width: 850px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 0 0 14px; }
h3 { font-size: 1.16rem; margin: 0 0 8px; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 720px; }
.search-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px; padding: 24px; }
.search-card h2 { font-size: 1.2rem; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .86rem; font-weight: 750; color: #344054; }
input, select { width: 100%; border: 1px solid #b8c4d1; border-radius: 12px; padding: 12px 13px; background: #fff; color: var(--text); min-height: 46px; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(23,92,211,.22); outline-offset: 2px; }
.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; background: var(--primary); color: #fff; min-height: 46px; }
.btn:hover { background: var(--primary-dark); }
.helper { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }
.section { padding: 54px 0; }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 18px rgba(24,34,48,.035); }
.card p { color: var(--muted); margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .14s ease, border-color .14s ease; }
.card-link:hover { transform: translateY(-2px); border-color: #a9bfdf; color: inherit; }
.icon-tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #edf4ff; color: var(--primary); margin-bottom: 14px; font-size: 1.25rem; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #edf4ff; color: var(--primary-dark); font-size: .78rem; font-weight: 800; }
.badge.muted { background: #eef0f3; color: #667085; }
.brand-list { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-chip:hover { border-color: #9db4d5; color: var(--primary); }
.free-search { display: flex; gap: 10px; }
.free-search input { flex: 1; }
.search-results { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.search-results-list { margin: 0; padding: 0; list-style: none; }
.search-results-list li + li { border-top: 1px solid var(--line); }
.search-results-list a { display: grid; gap: 4px; padding: 14px 16px; color: inherit; text-decoration: none; }
.search-results-list a:hover { background: #f7faff; }
.search-results-list span:last-child { color: var(--muted); font-size: .9rem; }
.result-type { color: var(--primary); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.search-empty { padding: 14px 16px; margin: 0; color: var(--muted); }
.notice { border-radius: 14px; padding: 15px 16px; border: 1px solid; }
.notice.safe { background: #effaf5; border-color: #a9dfc9; }
.notice.warning { background: var(--warning-bg); border-color: var(--warning-border); }
.notice.danger { background: var(--danger-bg); border-color: var(--danger-border); }
.notice strong { display: block; margin-bottom: 4px; }
.breadcrumbs { font-size: .9rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #98a2b3; }
.page-hero { padding: 34px 0 26px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 830px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.article section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.article ul, .article ol { padding-left: 1.2rem; }
.article li + li { margin-top: 8px; }
.quick-answer { background: #edf5ff; border: 1px solid #b9d5ff; padding: 20px; border-radius: 16px; margin-bottom: 28px; }
.quick-answer p { margin: 5px 0 0; font-size: 1.05rem; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { position: relative; padding: 0 0 0 48px; min-height: 36px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 88px; }
.sidebar .card { padding: 18px; }
.meta-list { display: grid; gap: 10px; margin: 0; }
.meta-list div { display: grid; gap: 2px; }
.meta-list dt { color: var(--muted); font-size: .8rem; }
.meta-list dd { margin: 0; font-weight: 700; }
.code-list { display: grid; gap: 12px; }
.code-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.code { font-size: 1.25rem; font-weight: 900; letter-spacing: .02em; }
.code-row p { margin: 0; color: var(--muted); }
.code-row a { font-weight: 800; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f7f9fc; }
.footer { margin-top: 60px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { padding: 38px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h2 { font-size: 1rem; }
.footer p, .footer a { color: var(--muted); font-size: .9rem; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: .84rem; }
.legal-draft { border: 2px dashed #d19b2f; background: #fffaf0; border-radius: 14px; padding: 16px; margin-bottom: 22px; }
.not-found { text-align: center; padding: 80px 0; }
.not-found .big { font-size: 5rem; font-weight: 900; line-height: 1; color: var(--primary); }
.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; }
@media (max-width: 900px) {
  .hero-grid, .content-layout, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 60px; }
  .nav a:not(:last-child) { display: none; }
  .hero { padding: 44px 0 26px; }
  .hero-grid { gap: 24px; }
  .finder-grid, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .free-search { flex-direction: column; }
  .section { padding: 38px 0; }
  .code-row { grid-template-columns: 70px 1fr; }
  .code-row a { grid-column: 1 / -1; }
  .article { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
