/* GModLab 21.0.1: единый вертикальный ритм публичной части и админки. */
:where(.php-shell,.php-narrow,.php-admin-grid,.php-admin-content,.launch-page,.growth-page,.advanced-page,.final-page,.community-page,.tools-page,.catalog-page-content) { line-height: 1.6; }
:where(.php-shell,.php-narrow,.php-admin-grid,.php-admin-content,.launch-page,.growth-page,.advanced-page,.final-page,.community-page,.tools-page,.catalog-page-content) :where(p,li,dd,dt,label,small,td,th) { line-height: 1.58; }

.php-page-title { margin-top: 18px !important; margin-bottom: 18px !important; line-height: 1.08 !important; text-wrap: balance; }

:where(.php-panel,.php-content,.rich-content,.php-card,.answer-card,.solution-card,.error-card,.php-notice,.php-admin-content section,.php-admin-grid > section) > :first-child { margin-top: 0; }
:where(.php-panel,.php-content,.rich-content,.php-card,.answer-card,.solution-card,.error-card,.php-notice,.php-admin-content section,.php-admin-grid > section) > :last-child { margin-bottom: 0; }

:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section,.php-admin-grid > section) :where(h2,h3,h4) { text-wrap: balance; }
:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section,.php-admin-grid > section) h2 { margin: 1.45em 0 .65em; line-height: 1.2 !important; }
:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section,.php-admin-grid > section) h3 { margin: 1.3em 0 .58em; line-height: 1.24 !important; }
:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section,.php-admin-grid > section) h4 { margin: 1.2em 0 .5em; line-height: 1.28 !important; }
:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section,.php-admin-grid > section) p { margin: .78em 0; }
:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section,.php-admin-grid > section) :where(ul,ol) { margin: .9em 0 1.05em; padding-left: 1.65em; }
:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section,.php-admin-grid > section) li { margin: .38em 0; padding-left: .12em; }
:where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section) li > :where(ul,ol) { margin-top: .5em; margin-bottom: .5em; }
:where(.php-panel,.php-content,.rich-content,.php-admin-content section) :where(blockquote,pre,table,figure) { margin-top: 1.2em; margin-bottom: 1.2em; }
:where(.php-panel,.php-content,.rich-content,.php-admin-content section) hr { margin: 1.6em 0; }

.php-notice,.php-flash { padding-top: 12px; padding-bottom: 12px; line-height: 1.55; }
:where(.launch-page,.growth-page,.advanced-page,.final-page,.php-narrow,.php-admin-content,.php-admin-grid > section) > :where(.php-panel,.php-notice,.php-form,.php-table-wrap,section) + :where(.php-panel,.php-notice,.php-form,.php-table-wrap,.php-button,section) { margin-top: 16px; }

.php-form { row-gap: 17px; }
.php-form > :where(h2,h3,p) + :where(label,.php-form-grid,.php-field-row) { margin-top: 10px; }
.php-form label,.php-form .help-text,.php-field-help { line-height: 1.5; }
.php-form label > :where(span,small,strong) { display: block; margin-bottom: 6px; }
.php-form :where(input,select,textarea) + small { display: block; margin-top: 6px; }

.php-table :where(th,td) { padding-top: 12px; padding-bottom: 12px; vertical-align: top; line-height: 1.5; }
.php-table td small { display: block; margin-top: 5px; white-space: normal; }
.php-admin-menu a,.php-tabs a,.php-subnav a { line-height: 1.38; }
.php-admin-menu { row-gap: 5px; }

.site-footer.php-footer :where(p,a,span,small) { line-height: 1.55; }
.site-footer.php-footer > div { row-gap: 10px; }

@media (max-width: 760px) {
  .php-page-title { margin-top: 14px !important; margin-bottom: 15px !important; line-height: 1.12 !important; }
  :where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section) :where(ul,ol) { padding-left: 1.4em; }
  :where(.php-panel,.php-content,.rich-content,.answer-card,.solution-card,.error-card,.php-admin-content section) li { margin: .45em 0; }
}
