:root{
  --bg:#f6f8fc;
  --bg2:#eef2ff;
  --panel:#ffffff;
  --panel2:#f8fafc;

  --text:#0f172a;
  --muted:#475569;
  --line: rgba(15,23,42,.10);

  --brand:#6d28d9;    
  --brand2:#0ea5e9;    
  --brandSoft: rgba(14,165,233,.12);

  --shadow: 0 12px 28px rgba(15,23,42,.10);

  --radius: 10px;
  --radius2: 14px;
  --max: 1120px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none;}
.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto;}

header{
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:grid;
  grid-template-columns: 1fr;
  padding: 14px 0;
}

.navlinks{
  display:flex;
  justify-content:space-between; 
  align-items:center;
  gap: 18px;
  flex-wrap:wrap;
}

.navlinks a{
  color: var(--muted);
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 10px;
}

.navlinks a:hover{
  color: var(--text);
  background: rgba(15,23,42,.04);
}

main{padding: 28px 0 60px;}

.hero{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.herogrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  padding: 28px;
}

.h1{
  margin:0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -.9px;
  font-weight: 950;
}

.sub{
  margin:0;
  color: var(--muted);
  line-height:1.65;
  font-size: 16px;
  max-width: 720px;
}

.chiprow{display:flex; gap:10px; flex-wrap:wrap; margin-top: 6px;}
.chip{
  padding:8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  color: var(--muted);
  font-size: 13px;
}


.card{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card.pad{padding:22px;}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 6px;
}
@media (max-width: 920px){ .kpis{grid-template-columns:1fr;} }

.kpi{
  padding:14px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background: var(--panel2);
}
.kpi b{display:block; font-size:22px; letter-spacing:-.2px;}
.kpi span{display:block; color:var(--muted); font-size:13px; margin-top:2px;}

.tiles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:16px;
}
@media (max-width: 920px){ .tiles{grid-template-columns:1fr;} }

.tile{
  padding:16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(15,23,42,.10);
  background: var(--panel2);
}
.tile h3{margin:0 0 8px; font-size:16px;}
.tile p{margin:0; color:var(--muted); line-height:1.55;}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: var(--panel);
  color: var(--text);
  cursor:pointer;
  font-weight: 750;
}
.btn:hover{background: rgba(15,23,42,.03);}

.btn.primary{
  border-color: rgba(14,165,233,.40);
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color: #ffffff;
  font-weight: 850;
}

.btn.ghost{
  background: var(--brandSoft);
  border-color: rgba(14,165,233,.35);
  color: #0b3b66;
}


.pagehead{
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom: 14px;
}
.pagehead h2{margin:0; font-size:28px; letter-spacing:-.25px;}
.pagehead p{margin:0; color:var(--muted);}


.form{display:grid; gap:12px;}
label{font-size:13px; color:var(--muted); font-weight: 650;}

input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.14);
  background: #ffffff;
  color: var(--text);
  outline:none;
}
textarea{min-height:110px; resize:vertical;}

input:focus, textarea:focus, select:focus{
  border-color: rgba(14,165,233,.60);
  box-shadow: 0 0 0 4px rgba(14,165,233,.14);
}


.msg{
  padding:12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: var(--panel2);
  color: var(--muted);
}

.msg.ok{
  border-color: rgba(14,165,233,.35);
  background: rgba(14,165,233,.10);
  color: #0b3b66;
}

.msg.bad{
  border-color: rgba(220,38,38,.30);
  background: rgba(220,38,38,.08);
  color: #7f1d1d;
}


.footer{
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer .row{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;}
.smalllink{color: #1d4ed8;}
.smalllink:hover{text-decoration:underline;}
