/* ---------- Текст послуги «Детальніше про…» (.bt-prose.bt-seo) ----------
   Вигляд блоку SEO-тексту макетів ServiceBuh / Main: текст у полі — звичайна розмітка редактора (p, h2, h3, ul, ol,
   table, blockquote, strong, a) + класи з меню «Формати» (bip-core/includes/editor.php). Розділи (h2, а якщо їх
   немає — h3) і номери розставляє шаблон parts/service/seo.php. Цей самий файл підключається в редакторі
   (TinyMCE, body_class «bt-prose bt-seo»), тож назви класів — спільні для сайту й адмінки.
   Правила — під .bt-seo: загальний .bt-prose з theme.css (короткі тексти інших блоків) не змінюється; те, що він
   задає (відступи li, рамки клітинок, display таблиці), тут перекрито. */

.bt-seo{container-type:inline-size;color:#3A4468;font-size:17px;line-height:1.75}
.bt-seo > *:first-child,.bt-sec > *:first-child{margin-top:0}
.bt-sec > *:last-child,.bt-seo li > *:last-child,.bt-box > *:last-child{margin-bottom:0 !important}

/* розділи */
.bt-sec{scroll-margin-top:96px}
.bt-sec + .bt-sec{margin-top:48px;padding-top:40px;border-top:1px solid #E6EAF2}
.bt-seo .bt-title{font-family:'e-Ukraine',system-ui,sans-serif;font-size:clamp(30px,6.5vw,42px);line-height:1.15;margin:0 0 20px;color:#252D55}
.bt-seo .sec-h{margin:0 0 16px}
.bt-seo .sec-h:has(+ .bt-table){margin-bottom:20px}
.bt-seo .sec-h > h2,.bt-seo .sec-h > h3{font-family:'e-Ukraine',system-ui,sans-serif;font-size:26px;font-weight:700;line-height:1.25;color:#252D55;margin:0}
.bt-num{flex:none;width:40px;height:40px;border-radius:12px;background:#E3EAFE;color:#1C54F3;font-size:16px;display:flex;align-items:center;justify-content:center}

/* текст */
.bt-seo p{margin:0 0 16px}
.bt-seo p:has(+ :not(p)),.bt-seo p:has(+ p[class]){margin-bottom:18px}
.bt-seo p:has(+ .bt-cta){margin-bottom:24px}
.bt-seo p:has(+ .bt-box){margin-bottom:14px}
.bt-seo a{color:#1C54F3}
.bt-seo strong,.bt-seo b{font-weight:700}
.bt-seo img{max-width:100%;height:auto;border-radius:16px}
.bt-seo p.bt-lead{color:#252D55;font-weight:700}
/* підзаголовок усередині розділу (у макеті — жирний рядок перед списком) */
.bt-seo h3,.bt-seo h4,.bt-seo h5{font-family:inherit;font-size:inherit;line-height:inherit;font-weight:700;color:#252D55;margin:18px 0 12px}

/* ul — чек-лист з галочками */
.bt-seo ul{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-direction:column;gap:8px}
.bt-seo li{margin:0}
.bt-seo ul > li{position:relative;padding-left:28px}
.bt-seo ul > li::before{content:"";position:absolute;left:0;top:calc(.875em - 9px);width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C54F3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
.bt-seo li ul,.bt-seo li ol{margin:8px 0 0}

/* ol — кроки: номер у колі, лінія між кроками, останній крок темний */
.bt-seo ol{list-style:none;padding:0;margin:0 0 22px;position:relative;counter-reset:bt-step}
.bt-seo ol::before{content:"";position:absolute;left:17px;top:18px;bottom:18px;width:2px;background:#E3EAFE}
.bt-seo ol > li{position:relative;box-sizing:border-box;min-height:50px;padding:6px 0 14px 52px;font-size:15px;line-height:1.6;counter-increment:bt-step}
.bt-seo ol > li::before{content:counter(bt-step);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:#1C54F3;color:#FFFFFF;font-weight:700;display:flex;align-items:center;justify-content:center}
.bt-seo ol > li:last-child{padding-bottom:7px;min-height:43px}
.bt-seo ol > li:last-child::before{background:#252D55}
.bt-seo li ol::before{display:none}
.bt-seo li ol > li{min-height:0;padding:0 0 6px 28px}
.bt-seo li ol > li::before{width:20px;height:20px;top:2px;font-size:12px}

/* «Картки» — ul.bt-cards: сітка сірих карток з іконкою */
.bt-seo ul.bt-cards{display:grid;gap:12px;margin:0 0 22px}
@media (max-width: 720px){.bt-seo ul.bt-cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}} /* з 721 px — .fit-grid */
.bt-seo ul.bt-cards > li{background:#F5F7FC;border-radius:16px;padding:16px 16px 16px 50px;font-size:15px;line-height:1.6}
.bt-seo ul.bt-cards > li::before{left:16px;top:18px;width:22px;height:22px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C54F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6M9 15l2 2 4-4'/%3E%3C/svg%3E")}

/* «Теги» — ul.bt-tags: чипси з іконкою документа */
.bt-seo ul.bt-tags{flex-direction:row;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.bt-seo ul.bt-tags > li{display:inline-flex;align-items:center;gap:8px;border:1.5px solid #E6EAF2;border-radius:12px;padding:8px 14px;font-weight:700;color:#252D55;font-size:15px}
.bt-seo ul.bt-tags > li::before{position:static;flex:none;width:18px;height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C54F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6'/%3E%3C/svg%3E")}

/* «Рамка» — div.bt-box; «Мітка» — p.bt-badge; список у рамці — у дві колонки */
.bt-seo .bt-box{border:1.5px solid #E6EAF2;border-radius:18px;padding:20px;margin:0 0 18px}
.bt-seo p.bt-badge{display:table;font-weight:700;color:#FFFFFF;background:#252D55;border-radius:8px;padding:2px 10px;margin:0 0 12px}
.bt-seo .bt-box ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 20px;font-size:15px;line-height:1.55}
.bt-seo .bt-box ul > li::before{top:3px}

/* «Колонки» — ul.bt-cols: рамки поруч (тарифи, групи); остання — виділена */
.bt-seo ul.bt-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:0 0 18px}
.bt-seo ul.bt-cols > li{border:1.5px solid #E6EAF2;border-radius:18px;padding:20px;font-size:15px;line-height:1.65}
.bt-seo ul.bt-cols > li::before{display:none}
.bt-seo ul.bt-cols > li:last-child{border-color:#C7D5FB;background:#F5F8FF}
.bt-seo ul.bt-cols > li > p{margin:0}
.bt-seo ul.bt-cols p.bt-badge{margin-bottom:10px}
.bt-seo ul.bt-cols > li:last-child p.bt-badge{background:#1C54F3}
.bt-seo p.bt-price{font-family:'e-Ukraine',system-ui,sans-serif;font-size:20px;line-height:1.3;font-weight:700;color:#252D55;margin:-2px 0 8px !important}
.bt-seo ul.bt-cols > li:last-child p.bt-price{color:#1C54F3}
.bt-seo p.bt-small{font-size:14px;color:#5C677D;margin:8px 0 0 !important}

/* нотатки: p.bt-note (зелена), p.bt-info і blockquote (синя), p.bt-warn (жовта) */
.bt-seo .bt-note,.bt-seo .bt-info,.bt-seo .bt-warn,.bt-seo blockquote{position:relative;border-radius:16px;padding:18px 20px 18px 58px;margin:0 0 18px;font-size:15px;line-height:1.65;background:#E7F6EC no-repeat 20px 19px/24px 24px;color:#1E5631}
.bt-seo .bt-note{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E")}
.bt-seo .bt-info,.bt-seo blockquote{background-color:#EEF3FF;color:#1E3A8A;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C54F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6z'/%3E%3Cpath d='M12 9v3M12 15h.01'/%3E%3C/svg%3E")}
.bt-seo .bt-warn{background-color:#FDF3E6;color:#7A3E00;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 3.9 2.4 18a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E")}
.bt-seo blockquote p{margin:0 0 8px}

/* «Заклик» — p.bt-cta: синя смуга, текст + посилання-кнопка (#order — відкриває заявку) */
.bt-seo p.bt-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;background:#1C54F3;color:#FFFFFF;border-radius:20px;padding:22px 26px;margin:0 0 22px}
.bt-seo .bt-cta-t{font-weight:700;font-size:17px;flex:1 1 280px;line-height:1.5}
.bt-seo p.bt-cta a{background:#FFFFFF;color:#1C54F3;font-weight:700;padding:0 20px;min-height:50px;border-radius:12px;display:inline-flex;align-items:center;gap:8px;text-decoration:none}

/* таблиці; table.bt-compare — порівняння: 1-ша колонка — критерій, 2-га виділена */
.bt-seo .bt-table{border:1px solid #E6EAF2;border-radius:18px;overflow:auto hidden;margin:0 0 22px}
.bt-seo table{display:table;overflow:visible;width:100%;border-collapse:collapse;font-size:15px;line-height:1.55;margin:0}
.bt-seo th,.bt-seo td{padding:14px 18px;border:0;border-top:1px solid #E6EAF2;background:none;text-align:left;vertical-align:top}
.bt-seo tr:first-child > th,.bt-seo tr:first-child > td{border-top:0}
.bt-seo thead th{font-weight:700;font-size:14px;background:#F2F4F8;color:#252D55}
.bt-seo td > p{margin:0 0 6px}
.bt-seo table.bt-compare{table-layout:fixed}
.bt-seo table.bt-compare tr > :first-child{width:24.6%;font-weight:700;color:#252D55}
.bt-seo table.bt-compare tr > :nth-child(2){width:40.4%;background:#EEF3FF;color:#252D55}
.bt-seo table.bt-compare td:nth-child(3){color:#5C677D}
.bt-seo table.bt-compare thead th:first-child{background:none;color:#5C677D}
.bt-seo table.bt-compare thead th:nth-child(2){background:#1C54F3;color:#FFFFFF}
.bt-seo table.bt-compare tbody tr:hover > :nth-child(2){background:#E3EAFE}
@media (max-width: 720px){
  .bt-seo table,.bt-seo tbody,.bt-seo tr,.bt-seo th,.bt-seo td{display:block;width:auto !important}
  .bt-seo thead{display:none}
  .bt-seo tr{padding:10px 0;border-top:1px solid #E6EAF2}
  .bt-seo tbody tr:first-child{border-top:0}
  .bt-seo th,.bt-seo td{border-top:0;padding:4px 16px;background:transparent !important}
  .bt-seo td[data-l]::before{content:attr(data-l);display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#646D82}
  .bt-seo td:nth-child(2)[data-l]::before{color:#1C54F3}
  .bt-seo td:first-child{font-weight:700;color:#252D55}
  .bt-seo td:first-child[data-l]::before{content:none}
}
/* телефон: смуга-заклик — кнопка на всю ширину, підпис в один рядок (менші поля) */
@media (max-width: 480px){
  .bt-seo p.bt-cta{padding:18px 16px}
  .bt-seo p.bt-cta a{width:100%;justify-content:center;padding:0 12px;font-size:15px;white-space:nowrap}
}
