:root{
  --jsp-red:#b91c1c;
  --jsp-dark:#111827;
  --jsp-gold:#c9972b;
  --jsp-muted:#6b7280;
  --jsp-soft:#fff7f7;
  --jsp-line:#eadcdc;
  --jsp-bg:#ffffff;
}

.jsp-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:42px 18px 64px;
  color:var(--jsp-dark);
  font-family:inherit;
}

.jsp-hero{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:54px 46px;
  background:
    radial-gradient(circle at top right, rgba(201,151,43,.24), transparent 32%),
    linear-gradient(135deg, var(--jsp-dark) 0%, #2b0d12 52%, var(--jsp-red) 100%);
  color:#fff;
  box-shadow:0 24px 60px rgba(17,24,39,.22);
}

.jsp-hero:after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-90px;
  width:260px;
  height:260px;
  border:28px solid rgba(255,255,255,.08);
  border-radius:50%;
}

.jsp-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  color:#fff8e5;
  font-weight:700;
  font-size:13px;
  letter-spacing:.07em;
  text-transform:uppercase;
  background:rgba(255,255,255,.08);
}

.jsp-hero h1{
  margin:18px 0 8px;
  font-size:clamp(38px, 6vw, 72px);
  line-height:.95;
  color:#fff;
  font-weight:800;
}

.jsp-hero p{
  max-width:760px;
  margin:0;
  color:rgba(255,255,255,.9);
  font-size:20px;
}

.jsp-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.jsp-meta span{
  padding:9px 13px;
  border-radius:999px;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.1);
  font-size:14px;
}

.jsp-print{
  margin-top:24px;
  border:0;
  border-radius:14px;
  padding:13px 20px;
  background:#fff;
  color:var(--jsp-red);
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.jsp-print:hover{
  transform:translateY(-1px);
}

.jsp-alert,
.jsp-form-notice{
  margin:24px 0;
  padding:20px 22px;
  border-radius:22px;
  background:linear-gradient(135deg, #fff 0%, var(--jsp-soft) 100%);
  border:1px solid var(--jsp-line);
  box-shadow:0 14px 40px rgba(185,28,28,.08);
  line-height:1.75;
}

.jsp-alert strong,
.jsp-form-notice strong{
  color:var(--jsp-red);
}

.jsp-layout{
  display:grid;
  grid-template-columns:300px minmax(0, 1fr);
  gap:26px;
  align-items:start;
}

.jsp-toc{
  position:sticky;
  top:22px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--jsp-line);
  box-shadow:0 18px 50px rgba(17,24,39,.08);
  padding:22px;
  max-height:calc(100vh - 44px);
  overflow:auto;
}

.jsp-toc h2{
  margin:0 0 14px;
  font-size:18px;
  color:var(--jsp-dark);
}

.jsp-toc nav{
  display:grid;
  gap:7px;
}

.jsp-toc a{
  color:#374151;
  text-decoration:none;
  border-radius:12px;
  padding:9px 10px;
  font-size:14px;
  line-height:1.35;
  border:1px solid transparent;
}

.jsp-toc a:hover,
.jsp-toc a.is-active{
  color:var(--jsp-red);
  background:var(--jsp-soft);
  border-color:var(--jsp-line);
}

.jsp-content{
  display:grid;
  gap:18px;
}

.jsp-intro-card,
.jsp-card,
.jsp-contact-card{
  border-radius:26px;
  background:#fff;
  border:1px solid var(--jsp-line);
  box-shadow:0 18px 50px rgba(17,24,39,.07);
  padding:30px;
}

.jsp-card{
  scroll-margin-top:24px;
}

.jsp-intro-card{
  background:linear-gradient(135deg, #fff 0%, #fff8eb 100%);
  border-color:#f3ddac;
}

.jsp-card h2,
.jsp-intro-card h2,
.jsp-contact-card h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  color:var(--jsp-dark);
  font-size:clamp(22px, 3vw, 30px);
  line-height:1.2;
}

.jsp-card h2:before,
.jsp-contact-card h2:before,
.jsp-intro-card h2:before{
  content:"";
  width:10px;
  height:30px;
  flex:0 0 10px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--jsp-red), var(--jsp-gold));
}

.jsp-card p,
.jsp-intro-card p,
.jsp-contact-card p{
  margin:0 0 14px;
  line-height:1.85;
  color:#374151;
  font-size:16px;
}

.jsp-card p:last-child,
.jsp-intro-card p:last-child,
.jsp-contact-card p:last-child{
  margin-bottom:0;
}

.jsp-card ul{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 14px;
  margin:16px 0 18px;
  padding:0;
  list-style:none;
}

.jsp-card li{
  position:relative;
  padding:13px 14px 13px 38px;
  border-radius:16px;
  background:#fafafa;
  border:1px solid #f0e7e7;
  color:#374151;
  line-height:1.45;
}

.jsp-card li:before{
  content:"✓";
  position:absolute;
  left:14px;
  top:12px;
  width:18px;
  height:18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--jsp-red);
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.jsp-contact-card{
  background:
    radial-gradient(circle at top right, rgba(185,28,28,.11), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.jsp-contact-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:13px 18px;
  border-radius:14px;
  color:#fff !important;
  background:linear-gradient(135deg, var(--jsp-red), #7f1d1d);
  text-decoration:none !important;
  font-weight:800;
  box-shadow:0 14px 30px rgba(185,28,28,.22);
}

.jsp-form-notice{
  margin:14px 0;
}

@media (max-width: 980px){
  .jsp-layout{
    grid-template-columns:1fr;
  }
  .jsp-toc{
    position:relative;
    top:auto;
    max-height:none;
  }
  .jsp-toc nav{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px){
  .jsp-wrap{
    padding:26px 14px 44px;
  }
  .jsp-hero{
    border-radius:22px;
    padding:34px 24px;
  }
  .jsp-hero p{
    font-size:17px;
  }
  .jsp-card,
  .jsp-intro-card,
  .jsp-contact-card{
    border-radius:20px;
    padding:22px;
  }
  .jsp-card ul,
  .jsp-toc nav{
    grid-template-columns:1fr;
  }
}

@media print{
  .jsp-print,
  .jsp-toc{
    display:none !important;
  }
  .jsp-wrap{
    padding:0;
    max-width:none;
  }
  .jsp-layout{
    display:block;
  }
  .jsp-hero,
  .jsp-card,
  .jsp-intro-card,
  .jsp-contact-card,
  .jsp-alert{
    box-shadow:none;
    break-inside:avoid;
  }
  .jsp-hero{
    color:#111;
    background:#fff;
    border:1px solid #ddd;
  }
  .jsp-hero h1,
  .jsp-hero p{
    color:#111;
  }
}
