:root{
  --bg: #ffffff;
  --panel: #f6f7f9;
  --text: #121417;
  --muted: #5b6572;
  --border: #e3e7ee;
  --link: #0b5fff;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --radius: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

.skiplink{
  position:absolute; left:-999px; top: 10px;
  background: var(--text); color: white; padding: 10px 12px; border-radius: 10px;
}
.skiplink:focus{ left: 16px; z-index: 1000; }

.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand__title{ font-weight: 800; font-size: 20px; letter-spacing: 0.2px; }
.brand__subtitle{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.nav{
  display:flex; align-items:center; gap: 10px;
}
.nav__link{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.nav__link:hover{ background: var(--panel); text-decoration: none; }
.nav__link--active{ background: var(--panel); border: 1px solid var(--border); }

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 10px;
}
.nav-toggle__bar{
  display:block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

main{ padding: 26px 0 42px; }

.hero{
  background: linear-gradient(180deg, var(--panel), rgba(246,247,249,0));
  border-bottom: 1px solid var(--border);
  padding: 26px 0 18px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}
.h1{ font-size: 34px; line-height: 1.15; margin: 0 0 8px; font-weight: 850; }
.lede{ color: var(--muted); margin: 0; }

.card{
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card__title{ font-weight: 800; margin: 0 0 10px; }
.kv{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}
.kv div:nth-child(odd){ color: var(--muted); }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.section-title{
  font-size: 18px;
  font-weight: 850;
  margin: 0 0 10px;
}
.muted{ color: var(--muted); }

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}
table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td{
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
  font-size: 14px;
}
th{
  position: sticky; top: 0;
  background: var(--panel);
  text-align: left;
  font-weight: 850;
}

.badge{
  display:inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.site-footer{
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 24px 0;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
}
.footer__title{ font-weight: 850; margin-bottom: 8px; }
.footer__links{ list-style:none; padding:0; margin:0; }
.footer__links li{ margin: 6px 0; }
.footer__bottom{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-block; }
  .nav{
    display:none;
    position:absolute;
    right: 16px;
    top: 62px;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
    min-width: 220px;
  }
  .nav.nav--open{ display:flex; }
}
