.topic-page { padding-bottom: 48px; overflow-wrap: anywhere; }
.topic-shell { max-width: 760px; }
.topic-page :is(section[id], h2[id]) { scroll-margin-top: 96px; }
.topic-page :is(a, summary):focus-visible { outline: 3px solid #2e7169; outline-offset: 4px; border-radius: 3px; }
.topic-header { padding: 24px 0 22px; border-bottom: 1px solid #d7e2df; background: #eff6f2; }
.topic-header .breadcrumb { font-size: 14px; margin-bottom: 16px; }
.topic-label { margin: 0 0 8px; color: #526c68; font-size: 14px; }
.topic-header h1 { margin: 0 0 12px; color: #14333a; font-size: clamp(28px, 4vw, 42px); line-height: 1.4; letter-spacing: normal; }
.topic-introduction { margin: 0; color: #28474c; font-size: 17px; line-height: 1.9; }
.topic-jumps { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.topic-jumps a { display: inline-flex; align-items: center; min-height: 44px; color: #2e7169; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.topic-section { padding-top: 30px; }
.topic-section h2 { margin: 0 0 14px; color: #14333a; font-size: 25px; line-height: 1.6; }
.topic-section h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.65; }
.topic-section :is(p, li) { color: #28474c; font-size: 17px; line-height: 1.9; }
.topic-section p { margin: 0 0 14px; }
.topic-section ul { margin: 0; padding-left: 24px; }
.topic-section li { margin-bottom: 8px; }
.topic-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; margin-bottom: 14px; }
.topic-section-heading h2 { margin: 0; }
.topic-section-heading > span { color: #617579; font-size: 14px; }
.topic-note-list { display: grid; gap: 16px; }
.topic-note { padding: 20px; border: 1px solid #c7d8d4; border-radius: 10px; }
.topic-note h3 a { color: #244c35; text-decoration: underline; text-underline-offset: 4px; }
.topic-note p { margin: 0 0 10px; }
.topic-note .topic-note__exams { color: #617579; font-size: 14px; }
.topic-note__link { display: inline-flex; align-items: center; min-height: 44px; color: #2e7169; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.topic-study-path { margin: 0; padding-left: 28px; }
.topic-study-path > li { padding: 0 0 16px 8px; border-bottom: 1px solid #d7e2df; margin-bottom: 20px; }
.topic-study-path > li::marker { color: #2e7169; font-weight: 700; }
.topic-study-path p { margin: 0; }
.topic-question { margin: 10px 0; border: 1px solid #c7d8d4; border-radius: 8px; }
.topic-question summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px; color: #244c35; font-size: 16px; font-weight: 700; line-height: 1.8; list-style: none; cursor: pointer; }
.topic-question summary::-webkit-details-marker { display: none; }
.topic-question summary::after { content: '+'; flex-shrink: 0; font: 500 22px/1 Inter, sans-serif; }
.topic-question[open] summary { background: #eff6f2; border-bottom: 1px solid #d7e2df; }
.topic-question[open] summary::after { content: '−'; }
.topic-question > p { margin: 0; padding: 16px 18px; }
.topic-mistakes { margin-top: 28px; padding: 20px; border-radius: 10px; background: #f1f7f5; }
.topic-empty a, .topic-editorial a { color: #2e7169; text-decoration: underline; text-underline-offset: 4px; }
.topic-editorial { padding-top: 24px; color: #617579; font-size: 14px; line-height: 1.9; }
@media (max-width: 599px) {
    .topic-header { padding: 18px 0; }
    .topic-introduction, .topic-section :is(p, li) { font-size: 16px; }
    .topic-section { padding-top: 24px; }
    .topic-section h2 { font-size: 23px; }
    .topic-note { padding: 18px; }
}
