/* Все правила ограничены новыми страницами и карточками. */
.sp-page { min-width:0; }
.sp-breadcrumbs { font-size:14px; line-height:1.7; margin-bottom:16px; overflow-wrap:anywhere; color:var(--text-muted,#617282); }
.sp-breadcrumbs a,.sp-read-link,.sp-back-link a { color:var(--primary-color,#315f85); }
.sp-rich-content { font-size:1.05rem; line-height:1.8; overflow-wrap:anywhere; }
.sp-rich-content p { margin:0 0 1.2em; }
.sp-rich-content h2,.sp-rich-content h3 { margin:1.5em 0 .7em; line-height:1.35; }
.sp-rich-content img { max-width:100%!important; height:auto!important; border-radius:8px; }
.sp-rich-content figure { margin:22px 0; text-align:center; }
.sp-rich-content figcaption,.sp-rich-content .sp-image-caption { font-size:.9rem; color:var(--text-muted,#617282); line-height:1.5; margin-top:8px; }
.sp-rich-content .sp-photo-row,.sp-rich-content .sp-photo-grid { display:grid; gap:18px; margin:25px 0; }
.sp-rich-content .sp-photo-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sp-rich-content .sp-photo-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.sp-rich-content .sp-photo-row figure,.sp-rich-content .sp-photo-grid figure { margin:0; min-width:0; }
.sp-rich-content .sp-photo-row img,.sp-rich-content .sp-photo-grid img { width:100%; object-fit:contain; }
.sp-rich-content table { max-width:100%; width:100%; border-collapse:collapse; font-size:.95em; }
.sp-rich-content td,.sp-rich-content th { border:1px solid #d4dfe8; padding:9px; overflow-wrap:anywhere; }
.sp-rich-content blockquote { border-left:4px solid var(--primary-color,#79afd0); padding:12px 20px; margin:20px 0; background:var(--gray-light,#edf5fa); }
.sp-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:20px 0; }
.sp-card { min-width:0; border:1px solid var(--gray,#dce5ed); border-radius:10px; overflow:hidden; background:var(--card-bg,#fff); box-shadow:0 2px 8px #0000000d; transition:transform .2s,box-shadow .2s; }
.sp-card img { display:block; width:100%; height:210px; object-fit:cover; }
.sp-card-body { padding:18px; }
.sp-card-body h3 { margin:0 0 10px; font-size:1.15rem; line-height:1.4; }
.sp-card-body p { color:var(--text-muted,#617282); line-height:1.6; margin:0 0 15px; overflow-wrap:anywhere; }
.sp-card-body a { text-decoration:none; }
.sp-card-body a:hover { text-decoration:underline; }
.sp-section-pages,.sp-family-pages { margin:30px 0; }
.sp-back-link { margin:30px 0 10px; }
.sp-preview-notice { background:#fff3cf; color:#654d12; padding:15px; border-radius:8px; margin-bottom:20px; }
@media(hover:hover) { .sp-card:hover { transform:translateY(-3px); box-shadow:0 5px 15px #00000014; } }
@media(max-width:600px) { .sp-card-grid{grid-template-columns:1fr}.sp-rich-content .sp-photo-row,.sp-rich-content .sp-photo-grid{grid-template-columns:1fr}.sp-rich-content{font-size:1rem} }
@media(prefers-reduced-motion:reduce) { .sp-card{transition:none}.sp-card:hover{transform:none} }
