.library-page { padding-bottom: var(--site-section-gap, 110px); font-size: 18px; }
.library-page .library-section + .library-section { margin-top: 56px; }
.library-page .library-section-card { max-width: 680px; min-height: 0; border-radius: 30px; }
.library-page .library-card-description { font-size: 17px; font-weight: 400; line-height: 1.6; color: #b8c9ca; }
.library-page .library-card-link { font-size: 15px; color: #37d696; }
.library-page .library-empty { padding: clamp(24px, 4vw, 48px); border-radius: 30px; background: rgba(16, 30, 29, .94); }
.library-page .library-empty p { max-width: 780px; font-size: 18px; line-height: 1.6; }
.library-page .library-search { margin-bottom: 32px; }
.library-page .library-search-summary { margin-bottom: 24px; font-size: 16px; line-height: 1.5; }
.library-page .library-search-summary a { color: #37d696; }
.library-page .poverka-catalog__card h3 { margin: 0; font-size: inherit; font-weight: 400; }
.library-page .poverka-catalog__card > a { height: 100%; color: inherit; }
.library-page .library-pagination { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.library-page .library-pagination a, .library-page .library-pagination span { padding: 12px; border: 1px solid #426762; border-radius: 12px; }
.library-page .library-article-content { max-width: 900px; color: #edf2f6; font-size: 18px; line-height: 1.7; }
.library-page .library-article-content h2, .library-page .library-article-content h3 { margin: 40px 0 20px; line-height: 1.3; }
.library-page .library-article-content p, .library-page .library-article-content ul, .library-page .library-article-content ol { margin: 0 0 20px; }
.library-page .library-article-content ul { list-style: disc; padding-left: 24px; }
.library-page .library-article-content ol { list-style: decimal; padding-left: 24px; }
.library-page .library-article-content a { color: #37d696; text-decoration: underline; }
.library-page .library-article-content img { max-width: 100%; height: auto; }
.library-page .library-article-content table { display: block; max-width: 100%; overflow-x: auto; }
.library-page--article .poverka-catalog__hero h1 { font-size: clamp(29px, 3.8vw, 56px); line-height: 1.18; }
.library-page .library-article-content h2 { font-size: clamp(24px, 2.4vw, 34px); font-family: Radiotechnika, sans-serif; font-weight: 400; }
.library-page .library-article-content h3 { font-size: 23px; font-weight: 600; }
.library-page .library-article-intro { color: #d6e5e5; font-size: 20px; }
.library-page .library-article-toc, .library-page .library-article-note { padding: clamp(22px, 3vw, 32px); margin: 30px 0; background: rgba(16, 30, 29, .94); border: 1px solid rgba(115, 193, 194, .28); border-radius: 30px; }
.library-page .library-article-toc ul { margin: 16px 0 0; }
.library-page .library-article-note strong { display: block; margin-bottom: 12px; color: #37d696; }
.library-page .library-article-note p:last-child { margin-bottom: 0; }
.library-page .library-article-content .library-process { list-style: none; padding: 0; counter-reset: library-step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.library-page .library-process li { padding: 24px; border: 1px solid rgba(115, 193, 194, .28); border-radius: 24px; background: rgba(16, 45, 48, .88); }
.library-page .library-process li::before { counter-increment: library-step; content: '0' counter(library-step); display: block; margin-bottom: 16px; font-family: Radiotechnika, sans-serif; font-size: 28px; color: #37d696; }
.library-page .library-process strong, .library-page .library-process span { display: block; }
.library-page .library-process span { margin-top: 8px; font-size: 16px; line-height: 1.6; color: #b8c9ca; }
.library-page .library-table-wrap { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid #426762; border-radius: 20px; }
.library-page .library-table-wrap table { width: 100%; display: table; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.library-page .library-table-wrap caption { padding: 18px; text-align: left; color: #37d696; font-size: 18px; }
.library-page .library-table-wrap th, .library-page .library-table-wrap td { padding: 16px; text-align: left; vertical-align: top; border-top: 1px solid #426762; overflow-wrap: anywhere; }
.library-page .library-table-wrap thead { background: rgba(16, 45, 48, .88); }
.library-page .library-article-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid #426762; font-size: 16px; overflow-wrap: anywhere; }
.library-page .library-section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.library-page--documents .poverka-catalog__hero h1 { font-size: clamp(32px, 4vw, 60px); line-height: 1.18; }
.library-page .library-group-description { max-width: 900px; margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: #b8c9ca; }
.library-page .library-document-card { scroll-margin-top: 120px; }
.library-page .library-document-card .poverka-catalog__card-body { justify-content: flex-start; }
.library-page .library-document-card p { margin: 0; }
.library-page .library-document-details { color: #edf2f6; font-size: 15px; line-height: 1.6; }
.library-page .library-document-note { padding-top: 16px; border-top: 1px solid #426762; color: #b8c9ca; font-size: 15px; line-height: 1.6; }
.library-page .library-document-links { display: grid; gap: 16px; margin-top: auto; padding-top: 8px; }
.library-page .library-document-links a { line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.library-page .library-document-links a:focus-visible { outline: 2px solid #37d696; outline-offset: 5px; }
.library-page .library-article-note h2 { margin-top: 0; }
.library-page .library-document-reviewed { color: #9ac7c6; font-size: 15px; }
.library-page--documents h2[id] { scroll-margin-top: 120px; }
.library-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.library-page--faq .poverka-catalog__hero h1 { font-size: clamp(30px, 4vw, 60px); line-height: 1.18; }
.library-page--faq [hidden] { display: none !important; }
.library-page .library-faq-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; font-size: 16px; }
.library-page .library-faq-topics label { margin: 0; }
.library-page .library-faq-topics select { max-width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid #426762; border-radius: 12px; background: #e6edf0; color: #172d30; font: inherit; }
.library-page .library-faq-topics option { background: #e6edf0; color: #172d30; }
.library-page .library-faq-topics a { color: #37d696; text-decoration: underline; }
.library-page .library-faq-item { padding: 0 24px; margin-top: 12px; border: 1px solid #426762; border-radius: 24px; background: rgba(16, 30, 29, .94); scroll-margin-top: 110px; }
.library-page .library-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 20px; line-height: 1.5; }
.library-page .library-faq-item summary::-webkit-details-marker { display: none; }
.library-page .library-faq-item summary:focus-visible { outline: 2px solid #37d696; outline-offset: 3px; }
.library-page .library-faq-icon { position: relative; flex: 0 0 20px; width: 20px; height: 20px; color: #37d696; }
.library-page .library-faq-icon::before, .library-page .library-faq-icon::after { content: ''; position: absolute; background: currentColor; left: 0; top: 9px; width: 20px; height: 2px; }
.library-page .library-faq-icon::after { transform: rotate(90deg); }
.library-page .library-faq-item[open] .library-faq-icon::after { display: none; }
.library-page .library-faq-answer { border-top: 1px solid #426762; padding: 22px 0 26px; color: #b8c9ca; font-size: 18px; line-height: 1.7; }
.library-page .library-faq-answer p { margin: 0 0 18px; }
.library-page .library-faq-answer .library-document-links { gap: 12px; }
@media (max-width: 680px) {
  .library-page--article .poverka-catalog__hero h1 { font-size: clamp(21px, 6.15vw, 29px); hyphens: auto; }
  .library-page .library-faq-item { padding-inline: 18px; }
  .library-page .library-faq-item summary { font-size: 18px; }
  .library-page .library-faq-answer { font-size: 17px; }
  .library-page .library-section-grid { grid-template-columns: 1fr; }
  .library-page .library-section + .library-section { margin-top: 36px; }
  .library-page .library-empty p { font-size: 16px; }
  .library-page .poverka-catalog__hero-links a { width: 100%; }
  .library-page .library-article-content { font-size: 17px; }
  .library-page .library-article-intro { font-size: 18px; }
  .library-page .library-article-content .library-process { grid-template-columns: 1fr; }
  .library-page .library-table-wrap th, .library-page .library-table-wrap td { padding: 10px; font-size: 14px; }
  .library-page .library-table-wrap thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .library-page .library-table-wrap tbody, .library-page .library-table-wrap tr, .library-page .library-table-wrap th, .library-page .library-table-wrap td { display: block; width: auto; }
  .library-page .library-table-wrap tr { padding: 18px; border-top: 1px solid #426762; }
  .library-page .library-table-wrap th, .library-page .library-table-wrap td { border: 0; padding: 0; font-size: 16px; overflow-wrap: normal; }
  .library-page .library-table-wrap th { color: #37d696; font-size: 18px; }
  .library-page .library-table-wrap td { margin-top: 14px; }
  .library-page .library-table-wrap td::before { display: block; content: attr(data-label); margin-bottom: 4px; font-weight: 700; }
}

.library-page .library-reviewed { margin: 28px 0 0; color: #a5bdbb; font-size: 14px; line-height: 1.5; }
.library-page .library-reviewed small { font-size: inherit; }
