:root{
  --primary:#29265B;
  --primary-2:#413d80;
  --accent:#6c63ff;
  --bg:#f4f5f9;
  --card:#ffffff;
  --text:#202033;
  --muted:#6b6b7b;
  --border:#e3e4ec;
  --ok:#147a49;
  --warning:#a55b00;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
}

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

.container{
  width:min(1100px,calc(100% - 32px));
  margin-inline:auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(16px);
}

.nav-wrap{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
}

.brand:hover{text-decoration:none}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--primary);
  font-weight:800;
  font-size:1.1rem;
}

.brand strong,.brand small{display:block}
.brand small{font-size:.76rem;color:var(--muted);font-weight:600}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.nav a{
  padding:9px 12px;
  border-radius:10px;
  color:var(--muted);
  font-size:.92rem;
}

.nav a.active,.nav a:hover{
  color:var(--primary);
  background:#eeeff7;
  text-decoration:none;
}

.main-content{padding:44px 0 70px}

.hero,.page-head{
  padding:42px;
  border-radius:24px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  margin-bottom:26px;
  box-shadow:0 20px 50px rgba(41,38,91,.16);
}

.hero h1,.page-head h1{
  margin:8px 0 14px;
  max-width:850px;
  font-size:clamp(2rem,5vw,3.6rem);
  line-height:1.08;
}

.page-head h1{font-size:clamp(1.9rem,4vw,3rem)}

.hero p,.page-head p{
  max-width:790px;
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:1.05rem;
}

.eyebrow{
  font-size:.76rem;
  letter-spacing:.16em;
  font-weight:800;
  color:#d9d6ff;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid transparent;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.btn:hover{text-decoration:none}

.btn.primary{background:var(--accent);color:#fff}
.btn.secondary{background:#fff;color:var(--primary);border-color:var(--border)}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.card,.result-box{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:24px;
  box-shadow:0 10px 30px rgba(30,30,55,.05);
}

.card h2,.result-box h2{margin-top:10px;color:var(--primary)}
.card p{color:var(--muted)}

.status{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
}

.status.ok{background:#e7f6ee;color:var(--ok)}
.status.info{background:#ecebff;color:var(--primary)}
.status.warning{background:#fff0dd;color:var(--warning)}

.result-box{margin-top:22px}

.details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0;
}

.details div{
  padding:15px;
  border:1px solid var(--border);
  border-radius:12px;
}

.details dt{font-size:.78rem;color:var(--muted);font-weight:700}
.details dd{margin:4px 0 0;font-weight:800;word-break:break-word}

.test-form{display:grid;gap:12px}
.test-form label{display:grid;gap:6px;font-weight:700;font-size:.88rem}

input{
  width:100%;
  min-height:44px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:10px;
  font:inherit;
}

input:focus{
  outline:3px solid rgba(108,99,255,.15);
  border-color:var(--accent);
}

.table-wrap{overflow:auto}

table{
  width:100%;
  border-collapse:collapse;
}

th,td{
  padding:13px 14px;
  border:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}

th{
  background:#f0f1f7;
  color:var(--primary);
}

code,pre{
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

code{word-break:break-word}

pre{
  overflow:auto;
  background:#171725;
  color:#f2f2f7;
  padding:16px;
  border-radius:12px;
}

.notice,.empty{
  margin-top:18px;
  padding:16px 18px;
  border-radius:12px;
  background:#eeefff;
  border-left:5px solid var(--accent);
}

.prose li{margin-bottom:8px}

.site-footer{
  border-top:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  text-align:center;
  padding:22px 0;
  font-size:.9rem;
}

@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:680px){
  .nav-wrap{align-items:flex-start;flex-direction:column;padding:14px 0}
  .nav{width:100%}
  .hero,.page-head{padding:28px 22px}
  .grid,.details{grid-template-columns:1fr}
}
