/* clean — „Текст“ на услуга на чисто (партида 4, 02.10.2026): правилата на assets/css/modules/b-svc-text.css (мерени на живо 01.10,
   виж коментара там), числата от азбуката (custom.svc-text). Отметките, цитатът и бутонът — clean.more.css, телефонът — clean.phone.css. */
.xp-b-svc-text { --t-pt: var(--wp--custom--svc-text--top-s); --t-w: var(--wp--custom--svc-text--w-wide); --t-hw: var(--t-w); position: relative; box-sizing: border-box; padding: var(--t-pt) 0 var(--wp--custom--svc-text--bottom) var(--wp--custom--svc-text--left); }
@media (min-width: 981px) {
	.xp-b-svc-text:is(.is-inset > *) { padding-left: var(--wp--custom--svc-text--left-inset); }
	.xp-b-svc-text.is-right { padding-left: var(--wp--custom--svc-text--right-indent); }
	.xp-b-svc-text.is-w-medium { --t-w: var(--wp--custom--svc-text--w-medium); }
	.xp-b-svc-text.is-w-narrow { --t-w: var(--wp--custom--svc-text--w-narrow); --t-hw: var(--wp--custom--svc-text--head-w-narrow); }
	.xp-b-svc-text > * { max-width: var(--t-w); }
	.xp-b-svc-text > :is(h2, h3, h4, h5, h6) { max-width: var(--t-hw); }
	/* ширината на заглавията от Divi (настройка „Ширина на заглавията“ / „…само на първото“, % от екрана; 04.10.2026): копието 1440 —
	   колона 1/2 33vw (475 px), 3/5 26vw, модул 70vw (1008 px) */
	.xp-b-svc-text.has-head-w { --t-hw: calc(var(--t-hw-n) * var(--wp--custom--vw)); }
	.xp-b-svc-text.has-head-w-first > :is(h2, h3, h4, h5, h6):not(:is(h2, h3, h4, h5, h6) ~ *) { max-width: calc(var(--t-hwf-n) * var(--wp--custom--vw)); }
	.xp-b-svc-text.has-top-none { --t-pt: var(--wp--custom--svc-text--top-none); }
	.xp-b-svc-text.has-top-m { --t-pt: var(--wp--custom--svc-text--top-m); }
	.xp-b-svc-text.has-top-l { --t-pt: var(--wp--custom--svc-text--top-l); }
	.xp-b-svc-text.has-top-xl { --t-pt: var(--wp--custom--svc-text--top-xl); }
}
/* заглавия, абзаци, списъци; нулата за списъците стои преди отстоянията под заглавието. Отстоянията с „.is-service > … .xp-b“ —
   над нулата на лентата (0,2,1) */
.xp-b-svc-text :is(ul, ol) { margin: 0; }
.xp-b-svc-text :is(h2, h3, h4, h5, h6) { padding-bottom: var(--wp--custom--space--10); }
.is-service > .xp-b-svc-text.xp-b > * + :is(h2, h3, h4, h5, h6), .is-service > .xp-b-svc-text.xp-b > :not(.xp-mv) ~ .xp-mv > :is(h2, h3, h4, h5, h6):first-child, .is-service > .xp-b-svc-text.xp-b > .xp-mv > * + :is(h2, h3, h4, h5, h6) { margin-top: var(--wp--custom--svc-text--gap); }
.is-service > .xp-b-svc-text.xp-b > :is(h2, h3, h4, h5, h6) + *, .is-service > .xp-b-svc-text.xp-b > .xp-mv > :is(h2, h3, h4, h5, h6) + *, .is-service > .xp-b-svc-text.xp-b > .xp-mv:where(:has(> :is(h2, h3, h4, h5, h6):last-child)) + :is(p, ul, ol) { margin-top: var(--wp--custom--svc-text--gap-head); }
.xp-b-svc-text p { padding-bottom: var(--wp--custom--text--para); }
.xp-b-svc-text p:last-of-type, .xp-b-svc-text p:has(+ :is(h2, h3, h4, h5, h6, .wp-block-buttons)) { padding-bottom: 0; }
.xp-b-svc-text :is(ul, ol):not([class*="pa-bullet-list-"]) { padding: 0 0 var(--wp--custom--svc-text--list-after) var(--wp--custom--text--para); }
/* връзките в текста: цветът според лентата или избран, подчертани; с .xp-b-band — над цвета на връзките в лентата (0,4,1) */
.xp-b-svc-text.has-links-band:is(.is-cool > *), .xp-b-svc-text.has-links-green { --t-a: var(--wp--preset--color--link); }
.xp-b-svc-text.has-links-band:is(.is-warm > *), .xp-b-svc-text.has-links-blue { --t-a: var(--wp--preset--color--link); }
.xp-b-svc-text.has-links-pink { --t-a: var(--wp--preset--color--link); }
/* абзац с връзки от модул в друг цвят (04.10.2026, tools/family_bricks.php xp_bk_link_marks: Academy „den Blog“ зелено до синьото) */
.xp-b-svc-text .xp-link-green { --t-a: var(--wp--preset--color--link); } .xp-b-svc-text .xp-link-blue { --t-a: var(--wp--preset--color--link); } .xp-b-svc-text .xp-link-pink { --t-a: var(--wp--preset--color--link); }
.xp-b-svc-text.xp-b a:not(.wp-block-button__link), .xp-b-band.is-service > .xp-b-svc-text.xp-b a:not(.wp-block-button__link) { color: var(--t-a, currentColor); text-decoration: underline; }
/* варианти на текста по ширина (xp-mv): само видимият */
@media (min-width: 981px) { .xp-b-svc-text .xp-hide-desktop { display: none; } }
@media (min-width: 768px) and (max-width: 980px) { .xp-b-svc-text .xp-hide-tablet { display: none; } }
@media (max-width: 980px) {
	.xp-b-svc-text { --t-pt: var(--wp--custom--svc-text--top-s-tablet); padding: var(--t-pt) max(var(--wp--custom--svc-text--right-tablet), var(--t-gr)) var(--wp--custom--svc-text--bottom-tablet) max(var(--wp--custom--svc-text--left-tablet), var(--t-gl)); }
	.xp-b-svc-text:is(.is-inset > *) { padding-left: max(var(--wp--custom--svc-text--left-inset), var(--t-gl)); }
	.xp-b-svc-text.has-mtop-none { --t-pt: var(--wp--custom--svc-text--top-none-tablet); }
	.xp-b-svc-text.has-mtop-m { --t-pt: var(--wp--custom--svc-text--top-m); }
	.xp-b-svc-text.has-mtop-l { --t-pt: var(--wp--custom--svc-text--top-l); }
	.xp-b-svc-text.has-mtop-xl { --t-pt: var(--wp--custom--svc-text--top-xl); }
}
.xp-b-svc-text:is(.editor-styles-wrapper *) { min-height: var(--wp--custom--svc-text--edit-min); }
/* (026 В-2, 22.10.2026) под 981 px Divi слага 30 px под всеки модул в колоната (копието, style-static.min.css: @media (max-width:980px)
   .et_pb_column .et_pb_module { margin-bottom: 30px }); заглавието и текстът след него са отделни модули → +30 px под заглавието
   (мярка eyes-v8 Remarketing 390: „КАКВА Е ПОЛЗАТА…“ → абзац 80 px на живо, 27 у нас; видеокартите 55 / 64 срещу 26 / 27) */
@media (max-width: 980px) {
	.is-service > .xp-b-svc-text.xp-b > :is(h2, h3, h4, h5, h6):not([class*="xp-h-mb-"]) + *, .is-service > .xp-b-svc-text.xp-b > .xp-mv > :is(h2, h3, h4, h5, h6):not([class*="xp-h-mb-"]) + * { margin-top: calc(var(--wp--custom--svc-text--gap-head) + 30px); } /* заглавие със свое поле (В-3, xp-h-mb-*) — само него */
}
