:root{
  --bg:#0b1220;
  --bg2:#0f172a;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.10);
  --text:#eaf2ff;
  --muted:rgba(234,242,255,.72);
  --muted2:rgba(234,242,255,.58);
  --brand:#1f6feb;
  --brand2:#22c55e;
  --warn:#f59e0b;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --focus:0 0 0 3px rgba(31,111,235,.22);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #152b55 0%, var(--bg) 58%),
    linear-gradient(180deg, #0b1220 0%, #09111f 100%);
}

a{color:inherit}
img{max-width:100%;display:block}

:focus-visible{
  outline:none;
  box-shadow:var(--focus);
  border-radius:12px;
}

.skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:14px;
  top:14px;
  width:auto;
  height:auto;
  z-index:9999;
  padding:10px 12px;
  border-radius:12px;
  background:#08101d;
  color:#fff;
  border:1px solid var(--line);
}

.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:18px;
}

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
}
.brand img{
  width:30px;
  height:30px;
}
.brand span{
  font-weight:800;
  letter-spacing:.2px;
}

nav a{
  color:var(--muted);
  text-decoration:none;
  margin-left:12px;
  font-size:14px;
}
nav a:hover{color:var(--text)}
.nav-active{
  color:var(--text);
  font-weight:800;
}

.crumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 14px;
  color:var(--muted2);
  font-size:13px;
}
.crumbs a{
  text-decoration:none;
  color:var(--muted2);
}
.crumbs a:hover{color:var(--text)}

.hero{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
  margin-bottom:16px;
  overflow:hidden;
  position:relative;
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -80px -80px auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(31,111,235,.18), transparent 62%);
  pointer-events:none;
}
.hero h1{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.15;
}
.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  max-width:840px;
}

.heroStats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.stat{
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}
.stat strong{
  display:block;
  font-size:18px;
  line-height:1.1;
  margin-bottom:4px;
}
.stat span{
  display:block;
  color:var(--muted2);
  font-size:13px;
}

.controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px 140px;
  gap:10px;
  margin-top:14px;
}

input, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
  font-size:16px;
}

input:focus, select:focus{
  border-color:rgba(31,111,235,.55);
  box-shadow:0 0 0 3px rgba(31,111,235,.18);
}

select{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.8) 50%),
    linear-gradient(135deg, rgba(255,255,255,.8) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:34px;
}

.btn{
  appearance:none;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:800;
  color:var(--text);
  background:rgba(255,255,255,.08);
  text-decoration:none;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn.primary{
  background:var(--brand);
  border-color:rgba(31,111,235,.55);
}
.btn:hover{filter:brightness(1.04)}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.chip{
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(255,255,255,.06);
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  cursor:pointer;
  user-select:none;
}
.chip:hover{
  color:var(--text);
  border-color:rgba(255,255,255,.18);
}
.chip.active{
  border-color:rgba(31,111,235,.55);
  color:var(--text);
  background:rgba(31,111,235,.14);
}

.note{
  margin-top:10px;
  color:rgba(234,242,255,.62);
  font-size:13px;
  line-height:1.55;
}
.note-tight{margin-top:0}

.section{margin-top:18px}

.sectionHead{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
.sectionHead h2{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.sectionHead p{
  margin:0;
  color:var(--muted2);
  font-size:14px;
}

.popularGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.featureCard{
  display:block;
  text-decoration:none;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.045));
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
  min-height:160px;
}
.featureCard:hover{
  border-color:rgba(31,111,235,.4);
  transform:translateY(-1px);
}
.featureTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:10px;
}
.featureCat{
  color:var(--muted2);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}
.featureCard h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
}
.featureCard p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  border:1px solid transparent;
  white-space:nowrap;
}
.badge.popular{
  background:rgba(31,111,235,.15);
  color:#b9d7ff;
  border-color:rgba(31,111,235,.28);
}
.badge.new{
  background:rgba(34,197,94,.14);
  color:#bcf7d0;
  border-color:rgba(34,197,94,.28);
}
.badge.match{
  background:rgba(245,158,11,.16);
  color:#fde7b0;
  border-color:rgba(245,158,11,.28);
}

.recommended{
  display:none;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
  margin-top:16px;
}
.recommended.show{display:block}
.recommended h2{
  margin:0 0 8px;
  font-size:18px;
}
.recommendList{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
.miniCard{
  display:block;
  text-decoration:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  padding:12px;
}
.miniCard:hover{border-color:rgba(31,111,235,.35)}
.miniCard strong{
  display:block;
  font-size:15px;
  line-height:1.35;
  margin-bottom:6px;
}
.miniCard span{
  display:block;
  color:var(--muted2);
  font-size:13px;
  line-height:1.45;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
}
.cardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}
.cardHead h2{
  margin:0;
  font-size:18px;
}
.count{
  color:var(--muted2);
  font-size:12px;
  font-weight:700;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 8px;
  background:rgba(255,255,255,.04);
}

.list{
  margin:0;
  padding-left:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.list li{
  color:var(--muted);
  line-height:1.48;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
  border-radius:14px;
  padding:12px;
}
.list a{
  color:var(--text);
  text-decoration:none;
}
.list a:hover{text-decoration:underline}
.guideTitleRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.guideTitle{
  font-weight:800;
  font-size:15px;
  line-height:1.4;
}
.meta{
  display:block;
  font-size:12px;
  color:rgba(234,242,255,.64);
  margin-top:6px;
  line-height:1.45;
}
.meta a{color:inherit}
.meta a:hover{color:var(--text)}

.empty{
  display:none;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-size:13px;
}

.cta{
  margin-top:18px;
  background:linear-gradient(135deg, rgba(31,111,235,.24), rgba(34,197,94,.10));
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow);
}
.cta h3{
  margin:0 0 6px;
  font-size:18px;
}
.cta p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}
.cta .row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.footerLinks{
  margin-top:16px;
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
}
.footerLinks a{
  color:var(--muted);
  text-decoration:none;
}
.footerLinks a:hover{color:var(--text)}
.footerLine{margin-bottom:8px}
.hr{
  height:1px;
  background:var(--line);
  margin:16px 0;
}

.hidden{display:none !important}

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

@media (max-width: 760px){
  header{
    flex-direction:column;
    align-items:flex-start;
  }
  nav{display:none}
  .controls{grid-template-columns:1fr}
  .sectionHead{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .wrap{padding:14px}
  .hero h1{font-size:24px}
  .btn{width:100%}
  .cta .row{flex-direction:column}
  .guideTitleRow{flex-direction:column}
  .heroStats{grid-template-columns:1fr}
}
