/* ЛФМЛ — стилі для контенту сторінок (rich text у .page)
   Один файл замість усіх попередніх фрагментів. */

/* Текст */
.page p.lead { font-size: 20px; line-height: 1.6; color: #1f2a22; }
.page h2 { margin: 48px 0 16px; font-size: 28px; scroll-margin-top: 24px; }
.page h3 { margin: 28px 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #1f5226; }
.page h4 { margin: 24px 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #1f5226; }
.page p:empty { display: none; }
.page ul, .page ol { margin: 8px 0 22px; padding-left: 22px; }
.page li { margin: 6px 0; }
.page li::marker { color: #2b6e33; }
.page a.more { font-weight: 600; text-decoration: none; }
.page a.button { display: inline-flex; align-items: center; min-height: 48px; background: #2b6e33; color: #fff; font-weight: 600; padding: 12px 22px; border-radius: 8px; text-decoration: none; }
.page .closing { text-align: center; font-family: 'Source Serif 4', Georgia, serif; font-size: 26px; color: #1f5226; margin-top: 40px; }
.page code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; color: #1f5226; word-break: break-all; }

/* Зображення */
.page img { width: 100%; height: auto; border-radius: 10px; }
.page figure { margin: 32px 0 8px; }
.page figcaption { margin-top: 10px; font-size: 14px; color: #4a554c; }
.page .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.page .gallery figure { margin: 0; }
.page .gallery img { aspect-ratio: 4/3; object-fit: cover; }
.page h2 img.logo { display: inline-block; width: 64px; height: 64px; max-width: 64px; object-fit: contain; vertical-align: middle; margin: 0 16px 0 0; padding: 4px; background: #fff; border: 1px solid #e3e8df; border-radius: 10px; }
.page iframe { width: 100%; height: 420px; border: 0; border-radius: 10px; }

/* Картки та блоки */
.page .toc { background: #fff; border: 1px solid #e3e8df; border-radius: 10px; padding: 16px 20px; margin-bottom: 32px; }
.page .toc ul { margin: 0; }
.page .contact-card { background: #fff; border: 1px solid #e3e8df; border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; }
.page .notice { background: #fff; border: 1px solid #e3e8df; border-radius: 8px; padding: 14px 18px; }
.page .callout { background: #fff; border: 1px solid #e3e8df; border-top: 3px solid #2b6e33; border-radius: 8px; padding: 18px 20px; }
.page .callout strong { font-size: 36px; color: #1f5226; margin-right: 8px; }
.page .sample { background: #fff; border: 1px dashed #b9c6b6; border-radius: 10px; padding: 24px 28px; font-size: 15px; }
.page .sample-title { text-align: center; font-weight: 700; letter-spacing: .1em; }

/* Списки документів, цифр, медалей, телефонів */
.page ul.docs { list-style: none; padding: 0; }
.page ul.docs li { background: #fff; border: 1px solid #e3e8df; border-radius: 10px; padding: 14px 18px; margin: 0 0 10px; }
.page ul.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.page ul.facts li { background: #fff; border: 1px solid #e3e8df; border-top: 3px solid #2b6e33; border-radius: 8px; padding: 18px; font-size: 14px; margin: 0; }
.page ul.facts strong { display: block; font-size: 36px; color: #1f5226; line-height: 1.1; margin-bottom: 8px; }
.page ul.medals { list-style: none; padding: 0 0 14px; margin: 0; border-bottom: 1px solid #e3e8df; font-size: 15px; }
.page ul.phones { list-style: none; padding: 0; background: #fff; border: 1px solid #e3e8df; border-radius: 10px; }
.page ul.phones li { padding: 14px 20px; border-top: 1px solid #e3e8df; margin: 0; }
.page ul.phones li:first-child { border-top: 0; }
.page ul.phones strong { font-size: 17px; color: #1f5226; white-space: nowrap; }

/* Таблиці — базові */
.page table { width: 100%; border-collapse: collapse; border: 1px solid #e3e8df; margin: 0 0 22px; }
.page th { text-align: left; padding: 12px 18px; background: #edf2ec; color: #1f5226; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.page td { padding: 12px 18px; border-top: 1px solid #e3e8df; vertical-align: top; }
.page th[scope="row"] { text-align: left; vertical-align: top; border-top: 1px solid #e3e8df; }
.page .table-wrap { overflow-x: auto; border: 1px solid #e3e8df; border-radius: 10px; margin-bottom: 22px; }
.page .table-wrap table { margin: 0; border: 0; }

/* Таблиці — варіанти */
.page table.details { font-size: 15px; }
.page table.details th[scope="row"] { width: 30%; font-weight: 500; color: #4a554c; background: none; text-transform: none; letter-spacing: 0; font-size: 15px; }
.page table.stats td:last-child, .page table.stats th:last-child { text-align: right; font-weight: 600; color: #1f5226; width: 120px; }
.page table.stats tr.sub td:first-child { padding-left: 40px; color: #4a554c; }
.page table.archive { min-width: 560px; font-size: 15px; }
.page table.archive thead th { border-left: 1px solid #fff; }
.page table.archive th[scope="row"] { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; white-space: nowrap; background: none; color: #1f2a22; text-transform: none; letter-spacing: 0; }
.page table.archive .fmt { font-size: 12px; color: #4a554c; }
.page table.plan { min-width: 680px; font-size: 14px; }
.page table.plan tr.group th { background: #2b6e33; color: #fff; text-transform: none; font-size: 14px; }
.page table.plan tr.subgroup th { background: #f4f6f2; text-transform: none; font-size: 14px; }