/**
* Theme Name: Talk Therapy Child
* Description: This is a child theme of Talk Therapy.
* Author: <a href="https://cmsmasters.studio/">cmsmasters</a>
* Template: talk-therapy
* Version: 1.0.0
* Tested up to: 6.6
* Requires PHP: 7.4
* License:
* License URI:
* Text Domain: talk-therapy-child
* Copyright: cmsmasters 2025 / All Rights Reserved
*/
/*
.hero-right {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: 40% !important;
}

.hero-clean{
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: 10% !important;
}

@media (max-width: 1024px) {
    .hero-right {
        width: 100% !important;
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .hero-right {
        width: 100% !important;
        min-height: 450px;
    }
}
*/

/* Улучшает качество отображения шрифтов */

body,
h1, h2, h3, h4, h5, h6,
blockquote,
.entry-content {
    font-feature-settings: 'kern' on, 'liga' on, 'calt' on;
}


/* ═══ 2. СГЛАЖИВАНИЕ ШРИФТОВ ═══ */

/* Onest (sans-serif) — с сглаживанием */
body,
p,
li,
a,
.button,
.entry-content {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lora (serif) — без сглаживания (естественное отображение) */
h1, h2, h3, h4, h5, h6,
blockquote,
.entry-title {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

/* В ЦИТАТАХ — Lora Italic */
.lora_italic,
blockquote,
blockquote em,
blockquote p,
p em, li em {
    font-family: 'Lora', serif;
    font-style: italic;
}

/* ─── Contact Cards (футер) ─────────────────────────────────────────────── */

.sb-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sb-contact-card {
    display: block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.2;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.sb-contact-card:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
    text-decoration: none;
}

.sb-contact-card--wa    { background: #187a3b; }
.sb-contact-card--tg    { background: #005f8e; }
.sb-contact-card--email { background: #a34900; }

.sb-contact-card__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.sb-contact-card__sub {
    display: block;
    font-size: 12px;
    color: #ffffff;
    margin-top: 4px;
}

/* Яркий цвет ссылки на политику */

.cn-text-container a {
    color: #edb39b !important;
}



/* ─── Фон сайта: бумага васи ────────────────────────────────────────────
   Решено с Сергеем 13.10.2026: цвет #FAF7F1 (приглушённее #FFFCF3 темы)
   и фактура бумаги с волокнами. Плитка 384px, цвет уже запечён в неё;
   генератор — {WORKIS}/site/tools/make_paper_washi.py.
   Тема рисует фон body через свои переменные и по умолчанию ставит
   no-repeat по центру — без повтора плитка видна одна посреди страницы. */

body {
    --cmsmasters-body-bg-color: #FAF7F1;
    --cmsmasters-body-bg-image: url('https://sborisov.pro/wp-content/themes/talk-therapy-child/assets/site/paper-washi.webp');
    --cmsmasters-body-bg-repeat: repeat;
    --cmsmasters-body-bg-position: 0 0;
    --cmsmasters-body-bg-size: auto;
}


/* ─── Листание /blog/ ──────────────────────────────────────────────────
   Решено с Сергеем 13.10.2026: кнопки без заливки (у демо были лиловые
   круги и оранжевый текущий), номера — фиолетовый заголовков, текущая
   страница — медная, как ссылки статьи. Виджет Posts Grid в шаблоне
   архива 91 пишет цвета правилами с ID элемента, поэтому !important. */

.cmsmasters-pagination--pagination ul.page-numbers .page-numbers:not(ul) {
    background-color: transparent !important;
    color: #312473 !important;
    border: 1px solid rgba(49, 36, 115, .25) !important;
}
.cmsmasters-pagination--pagination ul.page-numbers .page-numbers.dots {
    border-color: transparent !important;
}
.cmsmasters-pagination--pagination ul.page-numbers a.page-numbers:hover,
.cmsmasters-pagination--pagination ul.page-numbers a.page-numbers:focus-visible {
    color: #A0612A !important;
    border-color: #A0612A !important;
}
.cmsmasters-pagination--pagination ul.page-numbers .page-numbers.current {
    background-color: #A0612A !important;
    border-color: #A0612A !important;
    color: #fff !important;
}
.cmsmasters-pagination--pagination ul.page-numbers .page-numbers .cmsmasters-wrap-icon {
    color: inherit !important;
}


/* Обложки карточек /blog/ и /blog/page/N/. */
body.blog .cmsmasters-blog-grid .cmsmasters-blog__post .elementor-widget-cmsmasters-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* В портрете оставляем в кадре макушку и подбородок. */
body.blog .cmsmasters-blog-grid .cmsmasters-blog__post .elementor-widget-cmsmasters-post-featured-image img.wp-image-21716 {
    object-position: 50% 26%;
}

/* ─── /services/ — карточка кликается целиком ─────────────────────────
   Решено с Сергеем 13.10.2026: кнопку «Подробнее» в карточке (шаблон 136)
   убрали — дублировала заголовок. Ссылку заголовка растягиваем на всю
   карточку, при наведении карточка чуть темнеет. */

.post-type-archive-services .cmsmasters-blog__post {
    position: relative;
}
/* виджет заголовка у Elementor — position: relative; снимаем, чтобы слой
   ссылки мерился по всей карточке, а не по блоку заголовка. Без relative
   заголовок уходит под слой затемнения (::before контейнера) — опускаем
   затемнение под текст: контейнер с z-index — свой контекст наложения,
   -1 рисуется над его фоном-картинкой, но под содержимым */
.post-type-archive-services .cmsmasters-blog__post .elementor-136 .cmsmasters-widget-title {
    position: static;
}
.post-type-archive-services .cmsmasters-blog__post .elementor-136 .e-con::before {
    z-index: -1;
}
.post-type-archive-services .cmsmasters-blog__post .elementor-136 .entry-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 30px;
}
.post-type-archive-services .cmsmasters-blog__post .elementor-136 .e-con {
    transition: filter .25s ease;
}
.post-type-archive-services .cmsmasters-blog__post:hover .elementor-136 .e-con {
    filter: brightness(.9);
}
.post-type-archive-services .cmsmasters-blog__post .elementor-136 .entry-title a:focus-visible::after {
    outline: 2px solid #A0612A;
    outline-offset: 3px;
}

/* ─── Вопросы аккордеоном — блок «Подробности» (details) с классом sb-faq ─
   Вид — как аккордеон темы в шаблоне услуги («Why Therapy Works»): карточка
   #FFFEFC, рамка #F1ECEE, радиус 20, открытая и под курсором — #F3E3D6,
   две точки слева, шеврон справа. Нативный <details>: без JS и плагинов,
   переживает выгрузку в статику (14.10.2026). */
.wp-block-details.sb-faq {
	background: #FFFEFC;
	border: 1px solid #F1ECEE;
	border-radius: 20px;
	padding: 28px 30px;
	margin: 0 0 10px;
	transition: background-color .2s, border-color .2s;
}
.wp-block-details.sb-faq:hover,
.wp-block-details.sb-faq[open] {
	background: #F3E3D6;
	border-color: #F3E3D6;
}
.wp-block-details.sb-faq > summary {
	display: flex;
	align-items: center;
	gap: 18px;
	list-style: none;
	cursor: pointer;
	font-family: "Lora", serif;
	font-size: 22px;
	line-height: 1.3;
	color: #312473;
}
.wp-block-details.sb-faq > summary::-webkit-details-marker { display: none; }
.wp-block-details.sb-faq > summary::before {
	content: "";
	flex: none;
	width: 15px;
	height: 6px;
	background:
		radial-gradient(circle at 3px 3px, #B87333 2.8px, transparent 3.3px),
		radial-gradient(circle at 12px 3px, #6B5B8B 2.8px, transparent 3.3px);
}
.wp-block-details.sb-faq > summary::after {
	content: "";
	flex: none;
	margin-left: auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .2s;
}
.wp-block-details.sb-faq[open] > summary { color: #6B5B8B; }
.wp-block-details.sb-faq[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.wp-block-details.sb-faq > summary:focus-visible { outline: 2px solid #A0612A; outline-offset: 4px; border-radius: 4px; }
.wp-block-details.sb-faq > :not(summary) { margin: 18px 0 0 33px; }
@media (max-width: 767px) {
	.wp-block-details.sb-faq { padding: 22px 20px; }
	.wp-block-details.sb-faq > summary { font-size: 19px; gap: 14px; }
	.wp-block-details.sb-faq > :not(summary) { margin-left: 0; }
}

/* ─── «Первая встреча» — общий блок страниц проблем (sb-offer) ──────────
   Синхронизированный блок Gutenberg, один на все страницы рубрики «С чем
   работаю». Вид — тёмная карточка, как на «Методах» (стандарт —
   pages/blok_pervaya_vstrecha.md, 14.10.2026). Классическая тема оборачивает
   содержимое групп в .wp-block-group__inner-container — правила учитывают. */
.sb-offer {
	background: #312473;
	border-radius: 30px;
	padding: 56px;
	margin: 64px 0 48px;
	color: #FFFCF3;
}
.sb-offer p,
.sb-offer .wp-block-group { margin: 0; }
.sb-offer .sb-offer__fact { padding: 0; min-height: 0; }
.sb-offer .sb-offer__eyebrow {
	font-family: "Onest", sans-serif;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #E0B48A;
}
.sb-offer h2.wp-block-heading {
	font-family: "Lora", serif;
	font-weight: 400;
	font-size: 34px;
	line-height: 1.2;
	color: #FFFCF3;
	margin: 12px 0 30px;
}
.sb-offer .sb-offer__facts {
	padding-bottom: 26px;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .15);
}
.sb-offer .sb-offer__facts > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sb-offer .sb-offer__fact > .wp-block-group__inner-container {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.sb-offer .sb-offer__label,
.sb-offer .sb-offer__value {
	font-family: "Onest", sans-serif;
	font-size: 16px;
	line-height: 1.4;
}
.sb-offer .sb-offer__label { color: #B9AEDB; flex: none; }
.sb-offer .sb-offer__value { color: #FFFCF3; text-align: right; }
.sb-offer .sb-offer__note {
	font-family: "Onest", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #FFFCF3;
	margin-top: 26px;
}
.sb-offer .sb-offer__offer {
	font-family: "Lora", serif;
	font-style: italic;
	font-size: 19px;
	line-height: 1.55;
	color: #EDE8F5;
	margin: 18px 0 36px;
}
.sb-offer .wp-block-buttons { margin: 0; }
.sb-offer .wp-block-button { width: 100%; }
.sb-offer .wp-block-button__link {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	background: #FFFCF3;
	color: #312473;
	border: 0;
	border-radius: 999px;
	padding: 20px;
	font-family: "Onest", sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: background-color .2s, color .2s;
}
.sb-offer .wp-block-button__link:hover,
.sb-offer .wp-block-button__link:focus-visible {
	background: #B87333;
	color: #FFFFFF;
}
.sb-offer .sb-offer__reply {
	font-family: "Onest", sans-serif;
	font-size: 13px;
	color: #B9AEDB;
	text-align: center;
	margin-top: 12px;
}
@media (max-width: 767px) {
	.sb-offer { padding: 32px 24px; margin: 48px 0 36px; }
	.sb-offer h2.wp-block-heading { font-size: 28px; }
	.sb-offer .sb-offer__offer { font-size: 18px; }
}

/* ─── «Обо мне»: блок «Как проходит работа» + «Первая встреча» (about-cta) ─
   Перенесено 14.10.2026 из сниппета HFCM №4 «CTA Card» (выключен; был только
   на «Обо мне»). Глобальный сброс отступов и правило для ссылок ограничены
   блоком .about-cta — раньше действовали на всю страницу. Палитра — фиолет
   вместо бордо, оффер по стандарту pages/blok_pervaya_vstrecha.md. Имена
   переменных --wine* сохранены, значения — фиолетовые. */
/* сброс с нулевой специфичностью, как прежний «*»: элементные отступы темы (h3, p) его перебивают */
:where(.about-cta),
:where(.about-cta) *,
:where(.about-cta) *::before,
:where(.about-cta) *::after { margin: 0; padding: 0; box-sizing: border-box; }



.about-cta{

  --wine:       #312473;

  --wine-dark:  #312473;

  --wine-deep:  #300E0E;

  --wine-mid:   #602020;

  --wine-light: #8A3232;

  --cream:      #F5F1E8;

  --cream-warm: #EDE7D9;

  --rose:       #C9A8A8;

  --copper:     #B87333;

  --text-dark:  #1E1E1E;

}



:where(.about-cta) a { text-decoration: none; }



.about-cta{

  display: grid;

  grid-template-columns: 1fr 1fr;

  min-height: 640px;

}



.about-cta .about-cta__steps{

  background: var(--cream);

  padding: 72px 56px 72px 64px;

  display: flex;

  flex-direction: column;

}



.about-cta .about-cta__label{

  font-size: 12px;

  font-weight: 400;

  letter-spacing: 0.32em;

  text-transform: uppercase;

  color: rgba(30,30,30,0.55);

  margin-bottom: 20px;

}



.about-cta .about-cta__heading{

  font-weight: 600;

  font-size: clamp(24px, 2.2vw, 34px);

  line-height: 1.25;

  color: var(--text-dark);

  margin-bottom: 48px;

}



.about-cta .about-steps__list{

  display: flex;

  flex-direction: column;

  flex: 1;

}



.about-cta .about-step{

  display: flex;

  gap: 28px;

}



.about-cta .about-step__left{

  display: flex;

  flex-direction: column;

  align-items: center;

  width: 44px;

  flex-shrink: 0;

}



.about-cta .about-step__num{

  font-size: 17px;

  font-weight: 600;

  color: var(--wine);

  width: 44px; height: 44px;

  border: 1px solid rgba(49,36,115,0.30);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



.about-cta .about-step__line{

  width: 1px;

  flex: 1;

  background: rgba(49,36,115,0.12);

  margin: 8px 0;

  min-height: 20px;

}



.about-cta .about-step__body{

  padding-bottom: 36px;

  flex: 1;

}

.about-cta .about-step:last-child .about-step__body{ padding-bottom: 0; }



.about-cta .about-step__title{

  font-size: clamp(20px, 1.8vw, 26px);

  font-weight: 600;

  color: var(--text-dark);

  margin-bottom: 8px;

  padding-top: 5px;

}



.about-cta .about-step__desc{

  font-size: 16px;

  line-height: 1.7;

  color: rgba(30,30,30,0.72);

  font-weight: 300;

}



.about-cta .about-steps__footer{

  font-style: italic;

  font-size: clamp(17px, 1.6vw, 22px);

  color: var(--wine);

  border-top: 1px solid rgba(49,36,115,0.12);

  padding-top: 36px;

  margin-top: 48px;

}



.about-cta .about-cta__offer{

  background: var(--wine);

  padding: 72px 64px 72px 56px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  position: relative;

  overflow: hidden;

}



.about-cta .about-cta__offer::before{

  content: '';

  position: absolute;

  top: -100px; right: -100px;

  width: 380px; height: 380px;

  border-radius: 50%;

  border: 1px solid rgba(245,241,232,0.06);

  pointer-events: none;

}

.about-cta .about-cta__offer::after{

  content: '';

  position: absolute;

  top: -30px; right: -30px;

  width: 220px; height: 220px;

  border-radius: 50%;

  border: 1px solid rgba(184,115,51,0.12);

  pointer-events: none;

}



.about-cta .about-offer__content{

  position: relative;

  z-index: 2;

  display: flex;

  flex-direction: column;

  height: 100%;

}



.about-cta .about-offer__title{

  font-weight: 300;

  font-size: clamp(24px, 2.2vw, 36px);

  line-height: 1.35;

  color: var(--cream);

  margin-bottom: 40px;

}



.about-cta .about-offer__details{

  border-top: 1px solid rgba(245,241,232,0.18);

  margin-bottom: 36px;

}



.about-cta .about-offer__row{

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-bottom: 1px solid rgba(245,241,232,0.18);

  padding: 16px 0;

}



.about-cta .about-offer__key{

  font-size: 12px;

  letter-spacing: 0.2em;

  text-transform: uppercase;

  color: rgba(245,241,232,0.65);

  font-weight: 400;

}



.about-cta .about-offer__val{

  font-size: 16px;

  color: var(--cream);

  font-weight: 400;

  text-align: right;

}



.about-cta .about-offer__note{

  font-style: italic;

  font-size: clamp(17px, 1.6vw, 22px);

  color: rgba(245,241,232,0.75);

  line-height: 1.65;

  margin-bottom: 40px;

  flex: 1;

}



.about-cta .about-offer__cta{

  display: block;

  font-size: 13px;

  letter-spacing: 0.22em;

  text-transform: uppercase;

  color: var(--wine-dark);

  background: var(--cream);

  padding: 20px 36px;

  text-align: center;

  transition: background 0.3s ease;

  font-weight: 500;

  position: relative;

  z-index: 2;

}



.about-cta .about-offer__cta:hover{

  background: var(--cream-warm);

}



@media (max-width: 768px) {

  .about-cta{

    grid-template-columns: 1fr;

  }



  .about-cta .about-cta__steps{

    padding: 56px 28px;

  }



  .about-cta .about-cta__offer{

    padding: 56px 28px;

  }



  .about-cta .about-offer__title{

    font-size: 26px;

  }



  .about-cta .about-cta__heading{

    font-size: 26px;

    margin-bottom: 36px;

  }

}




/* 14.10.2026 — оффер по стандарту сайта (pages/blok_pervaya_vstrecha.md):
   фиолет #312473 вместо бордо, вид как на «Методах». */
.about-cta__offer::before,
.about-cta .about-cta__offer::after{ display: none; }
.about-cta .about-offer__eyebrow{
  font-family: "Onest", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E0B48A;
}
.about-cta .about-offer__title{
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: #FFFCF3;
  margin: 12px 0 30px;
}
.about-cta .about-offer__details{
  border-top: 0;
  margin-bottom: 0;
  padding-bottom: 26px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-cta .about-offer__row{
  border-bottom: 0;
  padding: 0;
  gap: 16px;
}
.about-cta .about-offer__key{
  font-family: "Onest", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: #B9AEDB;
}
.about-cta .about-offer__val{
  font-family: "Onest", sans-serif;
  font-size: 16px;
  color: #FFFCF3;
}
.about-cta .about-offer__lead{
  font-family: "Onest", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFCF3;
  margin-top: 26px;
}
.about-cta .about-offer__note{
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: #EDE8F5;
  margin: 18px 0 36px;
  flex: 0 0 auto;
}
.about-cta .about-offer__cta{
  margin-top: auto;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #312473;
  background: #FFFCF3;
  border-radius: 999px;
  padding: 20px;
  transition: background-color 0.2s, color 0.2s;
}
.about-cta .about-offer__cta:hover,
.about-cta .about-offer__cta:focus-visible{
  background: #B87333;
  color: #FFFFFF;
}
.about-cta .about-offer__alt{
  font-family: "Onest", sans-serif;
  font-size: 13px;
  color: #B9AEDB;
  text-align: center;
  margin-top: 12px;
}
@media (max-width: 768px) {
  .about-cta .about-offer__title{ font-size: 28px; }
  .about-cta .about-offer__note{ font-size: 18px; }
}

/* ─── «Обо мне»: форма в блоке about-cta ─────────────────────────────────
   Форма sb-inq (data-form="about") — третий элемент сетки .about-cta
   (14.10.2026). Десктоп: левая колонка под этапами, оффер справа на обе
   строки — кнопки формы и Telegram оказываются рядом. Мобила: этапы →
   оффер → форма, «Или напишите здесь» идёт после кнопки Telegram. */
.about-cta .about-cta__steps { grid-column: 1; grid-row: 1; padding-bottom: 0; }
.about-cta .about-cta__offer { grid-column: 2; grid-row: 1 / span 2; }
.about-cta .about-cta__form {
	grid-column: 1;
	grid-row: 2;
	background: var(--cream);
	padding: 40px 56px 40px 64px;
}
.about-cta .about-cta__form .sb-inq {
	padding: 32px 0 0;
	border-top: 1px solid rgba(0, 0, 0, .1);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.about-cta .about-cta__form .sb-inq__inner,
.about-cta .about-cta__form .sb-inq__body { max-width: none; margin: 0; }
.about-cta .about-cta__form .sb-inq__head { text-align: left; margin-bottom: 18px; }
.about-cta .about-cta__form .sb-inq__title {
	font-size: 24px;
	font-style: normal;
	line-height: 1.3;
	margin: 0;
}

/* Правки Сергея 15.10.2026: плашка «Терапия подлинного присутствия» над
   «Как проходит работа» лишняя; на фото меньше пространства над головой
   (у img инлайновый object-position 50% 20% — перебиваем); под формой
   меньше воздуха. */
.about-cta .about-cta__label { display: none; }
.about-cta .about-cta__heading { margin-top: 0; } /* верх заголовка — на линии верха фото в оффере */
.about-cta .about-offer__photo img { object-position: 50% 42% !important; }
/* фото с подписью и оффер — разные по смыслу части: между ними воздух (у figure инлайновый margin 0 0 28px) */
.about-cta .about-offer__photo { margin-bottom: 56px !important; }
@media (max-width: 768px) {
	.about-cta .about-cta__steps,
	.about-cta .about-cta__offer,
	.about-cta .about-cta__form { grid-column: auto; grid-row: auto; }
	.about-cta .about-cta__steps { padding-bottom: 56px; }
	.about-cta .about-cta__form { padding: 48px 28px 56px; }
	.about-cta .about-cta__form .sb-inq { padding-top: 0; border-top: 0; }
}

/* H1 страниц services на мобиле (18.10.2026): шрифт 44px не вмещал длинные слова
   («подавленности», «неуверенности») — слово рвалось без дефиса. Размер идёт от
   ширины экрана: 100vw − 82px — ширина заголовка в карточке, 7.8 — самое длинное
   слово в em с запасом. От ~420px и шире остаются 44px. */
@media (max-width: 480px) {
	.single-services .elementor-widget-cmsmasters-post-title .cmsmasters-widget-title__heading {
		font-size: min(44px, calc((100vw - 82px) / 7.8));
	}
}

/* Кнопка «наверх» (29.10.2026): виджет 4c09039d в подвале (Elementor, fixed)
   стоит на 80px от низа и в видимом состоянии поднимается ещё на 20 (transform)
   — на десктопе висела в 100px от низа, на телефоне посреди текста. Видимый
   отступ — 32 на десктопе, 24 на телефоне; на телефоне кнопка 48 и стрелка
   по центру (паддинг кнопки 18 рассчитан на 56). */
.elementor-element.elementor-element-4c09039d.elementor-fixed {
	bottom: 12px !important;
}
@media (max-width: 767px) {
	.elementor-element.elementor-element-4c09039d.elementor-fixed {
		bottom: 4px !important;
		right: 16px !important;
		--container-widget-width: 48px;
		width: 48px !important;
	}
	.elementor-element.elementor-element-4c09039d.elementor-fixed .cmsmasters-button-link {
		width: 48px;
		height: 48px;
		padding: 14px !important;
	}
}

/* Соседние большие пути, шаблон services 51058 (15.11.2026).
   Фон, радиус и padding карточки остаются в Elementor. */
.sb-path-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sb-path-nav li {
	margin: 0;
	padding: 0;
}
.sb-path-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 9px 0;
	font-size: 18px;
	line-height: 1.45;
	color: var(--cmsmasters-colors-secondary, #312473);
	text-decoration: none;
}
.sb-path-nav a span {
	min-width: 0;
}
.sb-path-nav a svg {
	flex: 0 0 12px;
}
.sb-path-nav a:hover {
	color: var(--cmsmasters-colors-primary, #6b5b8b);
}
.sb-path-nav a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}
