/*
 * Teleffon — восстановленные стили (слайдер, заголовки, primary)
 * Специфичность body + селектор чтобы перебить стили Elementor.
 */

:root,
body {
	--e-global-color-primary: #F2BC44 !important;
}

/* Кружок слева от заголовков — цвет бордера напрямую, не через переменную */
.elementor-element.elementor-widget-spacer {
	border-color: #F2BC44 !important;
}

/* Заголовок в слайдере на главной — 23px, шрифт как на сайте */
.acf-hero-inner .acf-hero-title,
.acf-hero-slider .acf-hero-title {
	font-size: 23px !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Шрифт на слайдерах — единый с сайтом */
.acf-hero-slider,
.acf-hero-slider .swiper-slide,
.swiper {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Кнопка «Подробнее» в слайдере — фон 175×54, текст по центру */
.acf-hero-slider .acf-hero-btn,
.acf-hero-slider a.acf-hero-btn,
body .acf-hero-btn,
a.acf-hero-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 175px !important;
	width: max-content !important;
	height: 54px !important;
	padding: 0 36px !important;
	box-sizing: border-box !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #f7c045, #d4a017) !important;
	color: #1a1a1a !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer !important;
	box-shadow: 0 4px 20px rgba(247, 192, 69, 0.3) !important;
	transition: all 0.2s ease !important;
	text-transform: uppercase !important;
}

.acf-hero-slider .acf-hero-btn:hover,
.acf-hero-slider a.acf-hero-btn:hover,
body .acf-hero-btn:hover,
a.acf-hero-btn:hover {
	background: linear-gradient(135deg, #e6b23e, #c29114) !important;
	color: #1a1a1a !important;
}

/* Заголовки h2 (Последние статьи и т.п.) — через виджет заголовка как у кружка */
.elementor-widget-heading .elementor-heading-title.elementor-size-default,
body .elementor-heading-title.elementor-size-default {
	color: #1a1a1a !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	font-family: 'Inter', sans-serif !important;
}

/* Блоки «Последние статьи» — контейнер с виджетом постов: фон #222222 */
.e-con.e-flex.e-child:has(> .elementor-widget-posts) {
	background-color: #222222 !important;
}

/* Заголовок статьи (ссылка) — белый */
.e-con:has(> .elementor-widget-posts) .elementor-post__title,
.e-con:has(> .elementor-widget-posts) .elementor-post__title a {
	color: #fff !important;
}

/* Дата статьи — 12px, полупрозрачный белый #FFFFFF99 */
.e-con:has(> .elementor-widget-posts) .elementor-post-date {
	font-size: 12px !important;
	color: #FFFFFF99 !important;
}

/* ========== Футер (шаблон Elementor post-286) ========== */
/* Фон футера — основной контейнер #222222 */
.elementor-286 .elementor-element.elementor-element-a1d334e,
.elementor-location-footer .e-con.e-con-boxed.e-parent {
	background-color: #222222 !important;
}

/* Текст в футере: описание под логотипом, заголовок «Подписаться на рассылку» — белый */
.elementor-286 .elementor-image-box-description,
.elementor-286 .elementor-image-box-title,
.elementor-286 .elementor-heading-title.elementor-size-default,
.elementor-location-footer .elementor-image-box-description,
.elementor-location-footer .elementor-heading-title.elementor-size-default {
	color: #fff !important;
}

/* Ссылки и label в футере — без подчёркивания */
.elementor-286 a,
.elementor-286 label,
.elementor-286 .b-unisender-form a,
.elementor-286 .b-unisender-form label,
.elementor-286 .elementor-icon-list-text,
.elementor-location-footer a,
.elementor-location-footer label {
	text-decoration: none !important;
}

/* Кнопка «Подписаться» в форме рассылки — только убираем подчёркивание текста, фон оранжевый не трогаем */
.elementor-286 .b-unisender-form__submit-button,
.elementor-location-footer .b-unisender-form__submit-button,
.b-unisender-form__submit-button {
	text-decoration: none !important;
}

/* Нижняя полоса футера (копирайт) — чёрный фон */
.elementor-element.elementor-element-bdd8fd0,
.elementor-286 .elementor-element.elementor-element-bdd8fd0 {
	background-color: #222222 !important;
}

/* ========== Страницы статей (single post) ========== */
/* Хлебные крошки: первые две ссылки — 16px sans-serif, последний элемент — жирный */
body.single #breadcrumbs,
body.single .elementor-widget-breadcrumbs p {
	font-size: 16px !important;
	font-family: sans-serif !important;
}
body.single #breadcrumbs a {
	font-size: 16px !important;
	font-family: sans-serif !important;
	font-weight: 400 !important;
}
body.single #breadcrumbs .breadcrumb_last {
	font-weight: 700 !important;
}

/* Весь текст в статье (контент поста) — цвет #222222 */
body.single .elementor-widget-theme-post-content,
body.single .elementor-widget-theme-post-content p,
body.single .elementor-widget-theme-post-content h3,
body.single .elementor-widget-theme-post-content h4,
body.single .elementor-widget-theme-post-content ul,
body.single .elementor-widget-theme-post-content li,
body.single .elementor-widget-theme-post-content blockquote,
body.single .elementor-widget-theme-post-content .wp-block-heading,
body.single .elementor-widget-theme-post-content .ez-toc-title,
body.single .elementor-widget-theme-post-content .ez-toc-link,
body.single .elementor-widget-theme-post-content a:not(.ad-button) {
	color: #222222 !important;
}

/* H1 заголовок статьи — 31px, Inter, белый */
body.single h1.elementor-heading-title.elementor-size-default {
	font-size: 31px !important;
	font-family: 'Inter', sans-serif !important;
	color: #fff !important;
}

/* Подзаголовок под H1 (excerpt) — полупрозрачный белый */
body.single .elementor-widget-theme-post-excerpt {
	color: #FFFFFF99 !important;
}

/* Мета-список под заголовком (автор, дата, время, сложность) — белый текст */
body.single .elementor-post-info,
body.single .elementor-post-info a,
body.single .elementor-post-info .elementor-icon-list-text,
body.single .elementor-post-info .elementor-post-info__item,
body.single .elementor-post-info .elementor-post-info__item-prefix,
body.single .elementor-post-info time {
	color: #fff !important;
}

/* Кружок слева от «Похожие посты» — круглый, размер 20×21 */
body.single .elementor-element.elementor-element-81c1dc3 {
	width: 20px !important;
	max-width: 20px !important;
	--spacer-size: 21px !important;
	min-height: 21px !important;
	height: 21px !important;
	border-radius: 100% !important;
	border-style: solid !important;
	border-width: 4px !important;
	border-color: #F2BC44 !important;
}

/* H2 «Похожие посты» — 15px, Inter, чёрный */
body.single h2.elementor-heading-title.elementor-size-default {
	font-size: 15px !important;
	font-family: 'Inter', sans-serif !important;
	color: #000 !important;
}

/* Заголовки постов в блоке «Похожие посты» — 18px, чёрный, не жирный */
body.single .elementor-post__title,
body.single .elementor-post__title a {
	font-size: 18px !important;
	font-weight: 400 !important;
	color: #000 !important;
}

/* Дата в блоке «Похожие посты» — 14px, полупрозрачный чёрный */
body.single .elementor-post-date {
	font-size: 14px !important;
	color: #00000099 !important;
}

/* Блок списка постов .ekit_post_list_content_wraper — белый текст, 16px */
body.single .ekit_post_list_content_wraper .elementor-icon-list-text,
body.single .ekit_post_list_content_wraper .meta-date,
body.single .ekit_post_list_content_wraper .meta-lists,
.e-con:has(> .elementor-widget-posts) .ekit_post_list_content_wraper .elementor-icon-list-text,
.e-con:has(> .elementor-widget-posts) .ekit_post_list_content_wraper .meta-date,
.e-con:has(> .elementor-widget-posts) .ekit_post_list_content_wraper .meta-lists {
	font-size: 16px !important;
	color: #fff !important;
}

/* Навигация «Назад»/«Вперед» под статьёй — подпись чёрная, заголовок 16px чёрный, жирнее */
body.single .post-navigation__prev--label,
body.single .post-navigation__next--label {
	color: #000 !important;
}
body.single .post-navigation__prev--title,
body.single .post-navigation__next--title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #000 !important;
}

/* Список рубрик (О капитале, Библиотека, Путь к гармонии) только в .ekit-wid-con — синий #0B34F2, жирнее, в одну строку */
body.single .ekit-wid-con .elementor-icon-list-items .elementor-icon-list-text,
body.single .ekit-wid-con .elementor-icon-list-items a {
	color: #0B34F2 !important;
	font-weight: 700 !important;
}
body.single .ekit-wid-con .elementor-icon-list-items {
	white-space: nowrap !important;
	flex-wrap: nowrap !important;
}
/* В футере список остаётся белым */
body.single .elementor-286 .elementor-icon-list-items a,
body.single .elementor-286 .elementor-icon-list-items .elementor-icon-list-text {
	color: #fff !important;
}
/* Мета под заголовком (Автор, дата, время, сложность) — белый */
body.single .elementor-post-info .elementor-icon-list-text,
body.single .elementor-post-info a {
	color: #fff !important;
}

/* Блок .ekit_post_list_content_wraper (название поста + дата) — белый текст; перебивает синий от родителя .ekit-wid-con .elementor-icon-list-items a */
.ekit_post_list_content_wraper .elementor-icon-list-text,
.ekit_post_list_content_wraper .meta-date,
.ekit_post_list_content_wraper .meta-lists,
.ekit_post_list_content_wraper a,
a .ekit_post_list_content_wraper .elementor-icon-list-text,
a .ekit_post_list_content_wraper .meta-date,
a .ekit_post_list_content_wraper .meta-lists {
	color: #fff !important;
}
/* То же с высокой специфичностью (body.single как у синего правила), когда блок внутри .ekit-wid-con */
body.single .ekit-wid-con .ekit_post_list_content_wraper .elementor-icon-list-text,
body.single .ekit-wid-con .ekit_post_list_content_wraper .meta-date,
body.single .ekit-wid-con .ekit_post_list_content_wraper .meta-lists {
	color: #fff !important;
}

/* Блок тегов под статьёй (виджет post-info c2f15ec) — чёрный текст, жирнее */
body.single .elementor-element.elementor-element-c2f15ec .elementor-icon-list-text,
body.single .elementor-element.elementor-element-c2f15ec .elementor-post-info__terms-list,
body.single .elementor-element.elementor-element-c2f15ec .elementor-post-info__terms-list-item,
body.single .elementor-element.elementor-element-c2f15ec .elementor-post-info a {
	color: #000 !important;
	font-weight: 700 !important;
}

/* Ссылки «Изменить свой профиль», «Выйти?» в форме комментария — синий */
body.single .logged-in-as a {
	color: #0B34F2 !important;
}

/* Иконка входа в правом верхнем углу: серый когда не залогинен, аватар когда залогинен */
.header-profile-icon {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
}
.header-profile-icon--login {
	color: #94a3b8 !important;
	font-size: 1.25rem !important;
}
.header-profile-icon--avatar {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	overflow: hidden !important;
}
.header-profile-avatar {
	width: 48px !important;
	height: 48px !important;
	object-fit: cover !important;
	border-radius: 50% !important;
	display: block !important;
}
