:root {
  --stx-primary: #8B0000;
  --stx-primary-dark: #5f0000;
  --stx-dark: #070707;
  --stx-light: #ffffff;
  --stx-accent: #D4AF37;
  --stx-muted: #f6f1ee;
  --stx-line: rgba(12, 12, 12, .12);
  --stx-text: #191919;
  --stx-subtext: #5f5f5f;
  --stx-radius: clamp(18px, 2vw, 30px);
  --stx-shadow: 0 18px 60px rgba(0, 0, 0, .12);
  --stx-shell: min(1180px, calc(100vw - clamp(32px, 6vw, 96px)));
}

.stx,
.stx * { box-sizing: border-box; }

.stx {
  color: var(--stx-text);
  font-family: inherit;
  line-height: 1.55;
}

.stx-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.stx-shell {
  width: var(--stx-shell);
  margin-inline: auto;
}

.stx-section {
  padding-block: clamp(56px, 8vw, 112px);
  background: var(--stx-light);
}

.stx-muted { background: var(--stx-muted); }

.stx h1,
.stx h2,
.stx h3,
.stx p { margin-top: 0; }

.stx h1 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: -0.06em;
  margin-bottom: clamp(18px, 2vw, 28px);
}

.stx h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: clamp(14px, 1.5vw, 22px);
}

.stx h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  margin-bottom: .55rem;
}

.stx a { color: inherit; }

.stx-eyebrow,
.stx-kicker {
  color: var(--stx-primary);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(.72rem, .8vw, .82rem);
  font-weight: 800;
  margin-bottom: .85rem;
}

.stx-section-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.stx-section-head p:not(.stx-eyebrow) {
  color: var(--stx-subtext);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.stx-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
}

.stx-hero {
  min-height: clamp(620px, 86vh, 920px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, .25), transparent 30%),
    linear-gradient(130deg, rgba(0, 0, 0, .92), rgba(95, 0, 0, .94)),
    var(--stx-primary);
  color: var(--stx-light);
  padding-block: clamp(80px, 10vw, 150px);
  overflow: hidden;
}

.stx-hero .stx-eyebrow { color: var(--stx-accent); }

.stx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.stx-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
}

.stx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
}

.stx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
}

.stx-btn-primary { background: var(--stx-primary); color: var(--stx-light) !important; }
.stx-btn-primary:hover { background: var(--stx-primary-dark); }
.stx-btn-light { background: var(--stx-light); color: var(--stx-primary) !important; }
.stx-btn-ghost { border-color: rgba(255,255,255,.35); color: var(--stx-light) !important; background: rgba(255,255,255,.08); }
.stx-btn-ghost-dark { border-color: var(--stx-line); color: var(--stx-dark) !important; background: #fff; }

.stx-hero-panel {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--stx-radius);
  padding: clamp(20px, 4vw, 38px);
  display: grid;
  gap: 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--stx-shadow);
}

.stx-stat {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.stx-stat:last-child { border-bottom: 0; }
.stx-stat strong { font-size: clamp(1.3rem, 3vw, 2.3rem); color: var(--stx-accent); }
.stx-stat span { color: rgba(255,255,255,.76); text-align: right; }

.stx-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.stx-program-card,
.stx-deadline-card,
.stx-fact-panel,
.stx-fee-output,
.stx-acc-item {
  background: var(--stx-light);
  border: 1px solid var(--stx-line);
  border-radius: var(--stx-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.stx-program-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.stx-card-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
}

.stx-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stx-card-body { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; flex: 1; }
.stx-card-body p { color: var(--stx-subtext); }
.stx-card-body h3 a { text-decoration: none; }
.stx-card-body h3 a:hover { color: var(--stx-primary); }

.stx-mini-meta {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
}

.stx-mini-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--stx-line);
  padding-top: 10px;
}

.stx-mini-meta dt { color: var(--stx-subtext); font-size: .85rem; }
.stx-mini-meta dd { margin: 0; font-weight: 800; text-align: right; }

.stx-card-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.stx-link {
  color: var(--stx-primary) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.stx-link:hover { text-decoration: underline !important; }

.stx-filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, .7fr));
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 36px);
  background: #fff;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--stx-line);
  border-radius: var(--stx-radius);
}

.stx input,
.stx select,
.stx textarea {
  width: 100%;
  border: 1px solid var(--stx-line);
  border-radius: 14px;
  min-height: 48px;
  padding: 0 14px;
  background: #fff;
  color: var(--stx-text);
  font: inherit;
}

.stx-label { display: block; font-weight: 800; margin-bottom: 8px; }

.stx-detail-grid,
.stx-fee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.stx-richtext { color: var(--stx-subtext); font-size: clamp(1rem, 1.2vw, 1.12rem); }

.stx-fact-panel { padding: clamp(20px, 3vw, 34px); position: sticky; top: 24px; }
.stx-fact { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--stx-line); padding: 14px 0; }
.stx-fact span { color: var(--stx-subtext); }
.stx-fact strong { text-align: right; }

.stx-checklist { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.stx-checklist li { padding-left: 28px; position: relative; }
.stx-checklist li:before { content: '✓'; position: absolute; left: 0; color: var(--stx-primary); font-weight: 900; }

.stx-accordion { display: grid; gap: 14px; }
.stx-acc-item { overflow: hidden; }
.stx-acc-item summary {
  cursor: pointer;
  padding: clamp(16px, 2vw, 22px);
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.stx-acc-item summary span { color: var(--stx-primary); font-size: .92rem; }

.stx-table-wrap { overflow-x: auto; }
.stx-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.stx-table th,
.stx-table td { padding: 15px 16px; border-top: 1px solid var(--stx-line); text-align: left; vertical-align: top; }
.stx-table th { background: #111; color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.stx-table small { color: var(--stx-subtext); }

.stx-timeline { display: grid; gap: 18px; position: relative; }
.stx-timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--stx-line);
  border-radius: var(--stx-radius);
  background: #fff;
}
.stx-timeline-item time { font-weight: 900; color: var(--stx-primary); }
.stx-chip { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--stx-muted); color: var(--stx-dark) !important; font-size: .9rem; }

.stx-deadline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.stx-deadline-card { padding: clamp(18px, 2vw, 26px); }
.stx-deadline-card time { color: var(--stx-primary); font-weight: 900; }
.stx-deadline-card p { color: var(--stx-subtext); margin-bottom: 0; }

.stx-fee-output { padding: clamp(20px, 3vw, 34px); min-height: 280px; }
.stx-fee-output h3 { margin-bottom: 4px; }
.stx-fee-total { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--stx-primary); font-weight: 950; margin: 18px 0; }
.stx-fee-breakdown { display: grid; gap: 10px; margin-top: 18px; }
.stx-fee-breakdown div { display: flex; justify-content: space-between; border-top: 1px solid var(--stx-line); padding-top: 10px; }
.stx-installments { display: grid; gap: 10px; margin-top: 18px; }
.stx-installments article { border: 1px solid var(--stx-line); border-radius: 16px; padding: 12px; }
.stx-installments strong { display: block; }
.stx-installments span { color: var(--stx-subtext); }

.stx-cta-band {
  background: linear-gradient(120deg, var(--stx-primary), var(--stx-dark));
  color: #fff;
  padding-block: clamp(42px, 6vw, 74px);
}
.stx-cta-band p { color: rgba(255,255,255,.76); margin-bottom: 0; }

.stx-empty {
  padding: 18px;
  border: 1px dashed var(--stx-line);
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  color: var(--stx-subtext);
}

@media (max-width: 980px) {
  .stx-hero-grid,
  .stx-detail-grid,
  .stx-fee-grid { grid-template-columns: 1fr; }
  .stx-filterbar { grid-template-columns: 1fr 1fr; }
  .stx-between { align-items: flex-start; flex-direction: column; }
  .stx-fact-panel { position: static; }
}

@media (max-width: 640px) {
  .stx-filterbar { grid-template-columns: 1fr; }
  .stx-timeline-item { grid-template-columns: 1fr; }
  .stx-actions { flex-direction: column; }
  .stx-btn { width: 100%; }
}

@media print {
  .stx-btn,
  .stx-filterbar,
  .stx-actions { display: none !important; }
  .stx-full { width: auto; margin: 0; }
  .stx-section { padding-block: 24px; }
}
