/* NEXTMEN v2.5.5 Final Test Polish */

.nm-final-hero{
  min-height:82vh;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--nm-border);
  background:
    linear-gradient(90deg,var(--nm-bg) 0%,rgba(0,0,0,.84) 44%,rgba(0,0,0,.45) 76%,var(--nm-bg) 100%),
    url('/assets/images/nextmen-final-hero.svg') center right/cover no-repeat;
}

html[data-theme="clean-blue"] .nm-final-hero{
  background:
    linear-gradient(90deg,rgba(244,248,255,.98) 0%,rgba(244,248,255,.92) 48%,rgba(244,248,255,.62) 78%,rgba(244,248,255,.96) 100%),
    url('/assets/images/nextmen-final-hero.svg') center right/cover no-repeat;
}

.nm-final-hero-content{
  max-width:880px;
  padding:7% 6%;
  position:relative;
  z-index:2;
}

.nm-final-kicker{
  display:inline-flex;
  border:1px solid var(--nm-border);
  color:var(--nm-accent);
  background:var(--nm-accent-soft);
  border-radius:999px;
  padding:8px 13px;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.nm-final-title{
  font-size:clamp(42px,6vw,76px);
  line-height:1;
  margin:20px 0 14px;
  color:var(--nm-accent);
}

html[data-theme="clean-blue"] .nm-final-title{
  color:var(--nm-text);
}

.nm-final-text{
  color:var(--nm-muted);
  font-size:19px;
  line-height:1.7;
  max-width:760px;
}

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

.nm-final-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.nm-final-card{
  border:1px solid var(--nm-border);
  border-radius:28px;
  background:var(--nm-card);
  box-shadow:var(--nm-shadow);
  padding:24px;
  position:relative;
  overflow:hidden;
  transition:.18s ease;
}

.nm-final-card:hover{
  transform:translateY(-3px);
  border-color:var(--nm-border-strong);
}

.nm-final-card:after{
  content:"";
  position:absolute;
  right:-45px;
  bottom:-55px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:var(--nm-accent-soft);
}

.nm-final-card img{
  width:54px;
  height:54px;
  object-fit:contain;
  margin-bottom:14px;
}

.nm-final-card h3{
  margin:0 0 10px;
}

.nm-final-card p{
  color:var(--nm-muted);
  line-height:1.6;
}

.nm-academy-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
}

.nm-academy-card{
  border:1px solid var(--nm-border);
  border-radius:28px;
  background:var(--nm-card);
  box-shadow:var(--nm-shadow);
  overflow:hidden;
  transition:.18s ease;
}

.nm-academy-card:hover{
  transform:translateY(-3px);
  border-color:var(--nm-border-strong);
}

.nm-academy-img{
  height:210px;
  background:var(--nm-bg-soft);
  border-bottom:1px solid var(--nm-border);
}

.nm-academy-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.nm-academy-body{
  padding:20px;
}

.nm-academy-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--nm-accent-soft);
  border:1px solid var(--nm-border);
  font-size:24px;
  margin-bottom:12px;
}

.nm-gallery-grid-final{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}

.nm-gallery-card-final{
  border:1px solid var(--nm-border);
  background:var(--nm-card);
  border-radius:24px;
  padding:14px;
  box-shadow:var(--nm-shadow);
}

.nm-gallery-card-final img{
  width:100%;
  height:210px;
  object-fit:cover;
  border-radius:18px;
  background:var(--nm-bg-soft);
}

.nm-program-grid-final{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.nm-program-card-final{
  border:1px solid var(--nm-border);
  background:var(--nm-card);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--nm-shadow);
}

.nm-risk-low{color:var(--nm-ok)}
.nm-risk-medium{color:var(--nm-warning)}
.nm-risk-high{color:var(--nm-danger)}

.nm-test-banner{
  border:1px solid rgba(255,211,107,.35);
  background:rgba(255,211,107,.08);
  color:var(--nm-warning);
  border-radius:22px;
  padding:18px;
  margin:20px 0;
}

.nm-legal-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}

.nm-legal-link{
  border:1px solid var(--nm-border);
  border-radius:20px;
  padding:16px;
  background:var(--nm-card);
}
