.topic-page { color: #242439; background: #fff; }
.topic-nav, .topic-footer, .topic-page main { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topic-nav, .topic-footer { display: flex; align-items: center; gap: 24px; padding-block: 22px; }
.topic-nav { justify-content: space-between; border-bottom: 1px solid var(--line); }
.topic-footer { flex-wrap: wrap; border-top: 1px solid var(--line); }
.topic-footer .brand { margin-right: auto; }
.topic-page main { padding-block: clamp(32px, 6vw, 78px); }
.crumb { color: #56586d; font-size: .9rem; margin-bottom: 32px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.topic-page h1 { font-size: clamp(2.15rem, 5vw, 4.3rem); max-width: 20ch; line-height: 1.06; overflow-wrap: anywhere; }
.topic-page h2 { font-size: clamp(1.55rem, 3.2vw, 2.45rem); line-height: 1.16; }
.topic-lead { max-width: 54ch; margin-block: 20px 24px; font-size: 1.12rem; color: #51556b; line-height: 1.6; }
.topic-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.topic-scene { margin: 0; min-width: 0; border: 1px solid #dcdaf0; border-radius: 18px; overflow: hidden; background: #f9f8ff; }
.topic-scene figcaption { display: grid; gap: 8px; padding: 21px; font-size: 1.25rem; font-weight: 720; }
.topic-scene figcaption small { color: #544bac; font-size: .8rem; }
.topic-scene table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; background: white; }
.topic-scene :is(td, th) { padding: 11px 14px; border-top: 1px solid #e6e5f1; overflow-wrap: anywhere; }
.topic-scene thead { color: #54526f; background: #f4f3fc; }
.topic-scene tbody th { font-weight: 550; }
.topic-section { margin-top: clamp(46px, 7vw, 84px); }
.topic-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0; list-style: none; }
.topic-steps li { border-top: 2px solid #d8d5fa; padding-top: 16px; }
.topic-steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.topic-steps p { color: #51556b; line-height: 1.58; }
.topic-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.topic-links a { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border: 1px solid #dedcec; border-radius: 12px; font-weight: 650; color: #403777; }
.topic-links a:hover { background: #f3f2ff; border-color: #ada7ed; }
.home-topic-links { margin-top: 28px; }
@media (max-width: 760px) {
  .topic-layout, .topic-steps, .topic-links { grid-template-columns: 1fr; }
  .topic-nav, .topic-footer, .topic-page main { width: min(100% - 32px, 600px); }
  .topic-scene :is(td, th) { padding: 9px 7px; }
  .topic-footer { gap: 16px; }
  .topic-layout { gap: 28px; }
}
