:root{
  --bg:#edf4fb;
  --bg-strong:#dce9f7;
  --card:rgba(255,255,255,.84);
  --card-solid:#ffffff;
  --text:#0f2540;
  --muted:#60748a;
  --brand:#0f63af;
  --brand-deep:#093b67;
  --accent:#f08a24;
  --accent-soft:#fff1de;
  --line:#d2dfeb;
  --line-strong:#b6c9db;
  --ok:#0a7f42;
  --warn:#b45309;
  --shadow:0 22px 48px rgba(17,41,71,.12);
  --shadow-soft:0 10px 24px rgba(17,41,71,.08);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:"Avenir Next","Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(15,99,175,.14), transparent 24%),
    radial-gradient(circle at top right, rgba(240,138,36,.12), transparent 20%),
    linear-gradient(180deg, #f8fbfe 0%, var(--bg) 48%, #eef4fa 100%);
}

header{
  padding:28px 24px 94px;
  color:#fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.16), transparent 18%),
    radial-gradient(circle at 90% 20%, rgba(240,138,36,.22), transparent 16%),
    linear-gradient(135deg, #0f63af 0%, #0b4f8a 45%, #082d50 100%);
  position:relative;
  overflow:hidden;
}

header::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-110px;
  width:320px;
  height:320px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 70%);
}

.hero-shell{
  max-width:1320px;
  margin:0 auto;
  position:relative;
  z-index:1;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:800;
  margin-bottom:14px;
}

header h1{
  margin:0 0 10px;
  font-size:40px;
  line-height:1;
  letter-spacing:-.02em;
  max-width:760px;
}

header p{
  margin:0;
  max-width:680px;
  font-size:18px;
  line-height:1.5;
  color:#dce8f5;
}

.container{
  max-width:1320px;
  margin:-58px auto 0;
  padding:0 16px 28px;
  position:relative;
  z-index:2;
}

.grid{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:20px;
  align-items:start;
}

.panel{
  background:var(--card);
  border:1px solid rgba(255,255,255,.75);
  border-radius:24px;
  padding:18px;
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(14px);
}

.panel h2{
  margin:0 0 14px;
  font-size:18px;
  letter-spacing:-.01em;
}

.control-panel{
  position:relative;
  overflow:hidden;
}

.control-panel::before{
  content:"";
  position:absolute;
  inset:auto -40px -45px auto;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(15,99,175,.12) 0%, rgba(15,99,175,0) 72%);
  pointer-events:none;
}

.small{font-size:12px;color:var(--muted)}

label{
  display:block;
  margin:10px 0 6px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#294863;
}

select,
input{
  width:100%;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.98);
  color:var(--text);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

select:focus,
input:focus{
  outline:none;
  border-color:rgba(15,99,175,.52);
  box-shadow:0 0 0 4px rgba(15,99,175,.12);
}

.select-shell{
  position:relative;
}

.select-shell::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid var(--brand);
  border-bottom:2px solid var(--brand);
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}

#profileSelect{
  appearance:none;
  -webkit-appearance:none;
  padding:16px 48px 16px 16px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--brand-deep);
  border:1px solid rgba(15,99,175,.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(240,246,253,.98) 100%);
  box-shadow:0 10px 22px rgba(15,99,175,.08);
}

#profileSelect:focus{
  border-color:rgba(15,99,175,.45);
  box-shadow:0 0 0 4px rgba(15,99,175,.12), 0 12px 24px rgba(15,99,175,.10);
}

.highlight-input{
  padding:16px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--brand-deep);
  border:1px solid rgba(15,99,175,.18);
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(240,246,253,.98) 100%);
  box-shadow:0 10px 22px rgba(15,99,175,.08);
}

.highlight-input:focus{
  border-color:rgba(15,99,175,.45);
  box-shadow:0 0 0 4px rgba(15,99,175,.12), 0 12px 24px rgba(15,99,175,.10);
}

input[type="checkbox"]{
  width:auto;
  margin-right:8px;
  accent-color:var(--brand);
}

input[type="range"]{
  padding:0;
  border:0;
  background:transparent;
  accent-color:var(--brand);
}

button{
  appearance:none;
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg, var(--brand) 0%, #2d84d7 100%);
  box-shadow:0 14px 28px rgba(15,99,175,.24);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(15,99,175,.28);
  filter:saturate(1.05);
}

button:active{transform:translateY(0)}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(135deg, #fff8ee 0%, #ffefd8 100%);
  border:1px solid #f3ddbf;
  color:#805719;
  line-height:1.5;
}

.section-gap{margin-top:18px}

.profile-description{
  margin-bottom:16px;
  padding:18px 20px;
  font-size:15px;
  line-height:1.6;
  color:#15324e;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(244,249,255,.92) 100%);
  border:1px solid rgba(255,255,255,.8);
}

.kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}

.kpi{
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,249,253,.98) 100%);
  border:1px solid rgba(255,255,255,.88);
  border-radius:22px;
  padding:16px;
  box-shadow:var(--shadow-soft);
  min-height:112px;
}

.kpi .label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.kpi .value{
  margin-top:10px;
  font-size:26px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.02em;
}

.results-panel{
  background:rgba(255,255,255,.9);
}

.table-wrap{
  overflow:auto;
  border-radius:20px;
  border:1px solid #dfe8f1;
  background:var(--card-solid);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

th,
td{
  padding:14px 12px;
  border-bottom:1px solid #e6edf5;
  vertical-align:top;
}

th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f5f9fd;
  text-align:left;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#4a627b;
}

tbody tr{
  transition:background .16s ease;
}

tbody tr:hover{
  background:#f8fbff;
}

.rank{
  font-weight:800;
  color:var(--brand);
}

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.badge.high{background:#e9f8ef;color:var(--ok)}
.badge.review{background:#fff5e6;color:var(--warn)}

.bar{
  width:132px;
  height:8px;
  margin-top:8px;
  border-radius:999px;
  overflow:hidden;
  background:#e8eef5;
}

.bar > span{
  display:block;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--brand) 0%, #62b0ff 100%);
}

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

.slider-field{
  padding:10px 12px 8px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(245,249,253,.95) 0%, rgba(255,255,255,.95) 100%);
  border:1px solid #e1eaf3;
}

.slider-field label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:0;
}

.slider-field label span{
  color:var(--brand);
  font-weight:800;
  font-size:14px;
  letter-spacing:0;
}

.methodology-note{
  margin-top:24px;
  padding:1px;
  border-radius:20px;
  background:linear-gradient(135deg, rgba(15,99,175,.16), rgba(240,138,36,.14));
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
}

.methodology-inner{
  padding:18px 20px;
  border-radius:19px;
  background:linear-gradient(180deg, #f7fbff 0%, #f2f7fc 100%);
}

.methodology-eyebrow{
  margin-bottom:6px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand);
}

.methodology-note h2{
  margin:0 0 10px;
  font-size:18px;
}

.faq-list{
  display:grid;
  gap:12px;
}

.faq-item{
  padding:14px 15px;
  border-radius:16px;
  background:rgba(255,255,255,.66);
  border:1px solid #dfe8f1;
}

.faq-item h3{
  margin:0 0 6px;
  font-size:14px;
  color:var(--text);
}

.methodology-note p{
  margin:0;
  line-height:1.58;
  color:#29445d;
}

footer{
  padding:18px 4px 8px;
  color:var(--muted);
  font-size:12px;
}

@media (max-width:1040px){
  .grid{grid-template-columns:1fr}
}

@media (max-width:960px){
  header{
    padding:24px 20px 82px;
  }

  header h1{
    font-size:32px;
  }

  header p{
    font-size:16px;
  }

  .container{
    margin:-50px auto 0;
  }

  .kpis{
    grid-template-columns:1fr;
  }

  .form-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .panel{
    border-radius:20px;
    padding:16px;
  }

  th,
  td{
    padding:12px 10px;
  }

  .bar{
    width:104px;
  }
}
