/* Ритм текста — одно правило на весь сайт (решение владельца от
   18.11.2026: вариант Л2, макет docs/design/blog/article-leading.html).

   Межстрочный многострочного текста — 1.42 (было 1.45–1.65 в двух
   десятках стилей: строки стояли редко, текст выглядел как документ
   Word). Абзацы — через 0.7 строки, а не «пустой строкой»; заголовок
   текста — далеко от предыдущего раздела и близко к своему.

   Файл подключается последним, после всех стилей, и общих, и постраничных
   (layouts/app.blade.php), — поэтому перебивает их на любой странице, в
   том числе !important из mobile-fixes.css. Новый стиль длинного текста
   ставь в список ниже, а не задавай свой межстрочный. Держит
   TextRhythmTest. */

:root {
    --ic-lh: 1.42;
    --ic-p-gap: .7em;
}

/* ── межстрочный ── */
p, li, dd, blockquote,
.typo, .typo__wrap,
.typo p, .typo li, .typo dd, .typo blockquote,
.typo__wrap p, .typo__wrap li,
.cp-about, .cp-about p,
.listing-intro, .listing-intro p,
.lst-text p, .lst-text li,
.blog-article__lead,
.hero-cta__desc,
.hh__lead,
.block_first-text,
.text-form-footer,
.ic-trust__pay-sub,
.bl-ex,
.dr-teaser__sub,
.lc__desc,
.soon-block__lead,
.tp-note, .tp-def, .tp-text, .tp-text p,
.topic-def,
.info-lead, .info-qa, .info-a-pass__f, .info-a-sub, .info-ct-chip,
.info-greens, .info-route__st, .info-vow, .info-wrong,
.info-ct-docs, .info-ct-guard,
.cc-map__ph,
.icw-empty, .icw-opt .m,
.ic-faq-card p, .ic-faq-card div,
.ic-review-card p {
    line-height: var(--ic-lh) !important;
}

/* ── абзацы и списки длинного текста ── */
/* padding тоже: тема (stylesheet.css) даёт .typo p ещё 16 px снизу —
   вместе с отступом это и была «пустая строка» между абзацами. */
.typo p, .typo__wrap p, .cp-about p, .tp-text p, .listing-intro p, .lst-text p {
    margin-top: 0 !important;
    margin-bottom: var(--ic-p-gap) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.typo p:last-child, .typo__wrap p:last-child, .cp-about p:last-child,
.tp-text p:last-child, .listing-intro p:last-child, .lst-text p:last-child {
    margin-bottom: 0 !important;
}
.typo ul, .typo ol, .typo__wrap ul, .typo__wrap ol {
    margin-top: 0 !important;
    margin-bottom: var(--ic-p-gap) !important;
}
/* У темы у каждого пункта 6 px сверху и снизу — пункты стояли реже строк. */
.typo li, .typo__wrap li {
    margin: 0 !important;
}
.typo li + li, .typo__wrap li + li {
    margin-top: .25em !important;
}

/* ── заголовки внутри текста: далеко сверху, близко снизу ── */
.typo h2, .typo__wrap h2 {
    line-height: 1.18 !important;
    margin: 1.5em 0 .38em !important;
}
.typo h3, .typo__wrap h3 {
    line-height: 1.28 !important;
    margin: 1.2em 0 .3em !important;
}
.typo h2:first-child, .typo__wrap h2:first-child,
.typo h3:first-child, .typo__wrap h3:first-child {
    margin-top: 0 !important;
}

/* ── заголовки-абзацы ── */
/* Призывы и заголовки окон стали абзацами ради оглавления для поиска
   (разбор «поиск и AI-поиск» 24.11.2026, П7), но по виду это заголовки:
   межстрочный абзаца их не касается — остаётся тот, что был у H2. Цвет
   окон — прежний цвет заголовков темы (stylesheet.css). */
p.cta-band__title { line-height: 1.25 !important; }
p.dr-teaser__title { line-height: 1.35 !important; }
p.dr-title { line-height: 1.3 !important; color: #444; }
p.revf-modal__title { line-height: 1.1 !important; color: #444; }

@media (max-width: 767.98px) {
    p.revf-modal__title { line-height: 1.3 !important; }
}
