/**
 * Adaptant — соцсети: тёмные иконки + подпись (как на референсе).
 * Подписаться / футер / мобильное меню.
 */

:root {
	--adaptant-social-ink: var(--global-palette3, #1f2a37);
	--adaptant-social-ink-hover: var(--global-palette2, #2b6cb0);
}

/* ---- Общий ряд: иконка + текст ---- */
.adaptant-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.5rem;
}

.adaptant-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4em;
	padding: 0;
	border: 0;
	background: none;
	text-decoration: none;
	color: var(--adaptant-social-ink);
	line-height: 1.2;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.adaptant-social__link:hover,
.adaptant-social__link:focus {
	color: var(--adaptant-social-ink-hover);
	text-decoration: none;
}

.adaptant-social__icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.15em !important;
	height: 1.15em !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	line-height: 0;
}

.adaptant-social__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

/* Сброс старых цветных кругов, если где-то ещё остались правила */
.adaptant-social__link--telegram .adaptant-social__icon,
.adaptant-social__link--vk .adaptant-social__icon,
.adaptant-social__link--youtube .adaptant-social__icon,
.adaptant-social__link--dzen .adaptant-social__icon,
.adaptant-social__link--rutube .adaptant-social__icon,
.adaptant-social__link--ok .adaptant-social__icon,
.adaptant-social__link--max .adaptant-social__icon,
.adaptant-social__link--custom .adaptant-social__icon {
	background: transparent !important;
	color: inherit !important;
}

.adaptant-social__label {
	font-size: 1em;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
}

/* ---- Блок «Подписаться» под статьёй ---- */
.adaptant-subscribe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 2rem;
	margin: 0.35em 0 0.75em;
	padding: 0;
	border: 0;
}

.adaptant-subscribe__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--adaptant-social-ink);
}

.adaptant-subscribe__desc {
	display: none;
}

.adaptant-social--subscribe {
	gap: 0.9rem 1.75rem;
}

.adaptant-social--subscribe .adaptant-social__link {
	font-size: 1.08rem;
	gap: 0.5em;
}

.adaptant-social--subscribe .adaptant-social__icon {
	width: 1.4em !important;
	height: 1.4em !important;
}

/* ---- Мобильное меню ---- */
#mobile-drawer .site-header-item-mobile-navigation,
#mobile-drawer .mobile-drawer-content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}

#mobile-drawer .site-header-item-mobile-navigation .menu,
#mobile-drawer .site-header-item-mobile-navigation nav {
	width: 100%;
}

.adaptant-drawer-social {
	display: block;
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	box-sizing: border-box;
	margin-top: 1.75rem;
	padding-top: 0;
	border-top: 0;
	text-align: right;
}

.adaptant-drawer-social__title {
	display: none;
}

/* Тёмное меню: крупные иконки в один ряд справа, без текста */
#mobile-drawer .adaptant-social--drawer,
.popup-drawer .adaptant-social--drawer,
.mobile-drawer .adaptant-social--drawer {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 1.65rem;
	width: 100%;
}

#mobile-drawer .adaptant-social--drawer .adaptant-social__link,
.popup-drawer .adaptant-social--drawer .adaptant-social__link,
.mobile-drawer .adaptant-social--drawer .adaptant-social__link {
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 7px;
	font-size: 1rem;
	color: #fff !important;
}

#mobile-drawer .adaptant-social--drawer .adaptant-social__link:last-child,
.popup-drawer .adaptant-social--drawer .adaptant-social__link:last-child,
.mobile-drawer .adaptant-social--drawer .adaptant-social__link:last-child {
	padding-right: 0;
	justify-content: flex-end;
}

#mobile-drawer .adaptant-social--drawer .adaptant-social__link:hover,
#mobile-drawer .adaptant-social--drawer .adaptant-social__link:focus,
.popup-drawer .adaptant-social--drawer .adaptant-social__link:hover,
.popup-drawer .adaptant-social--drawer .adaptant-social__link:focus,
.mobile-drawer .adaptant-social--drawer .adaptant-social__link:hover,
.mobile-drawer .adaptant-social--drawer .adaptant-social__link:focus {
	color: rgba(255, 255, 255, 0.75) !important;
}

#mobile-drawer .adaptant-social--drawer .adaptant-social__icon,
.popup-drawer .adaptant-social--drawer .adaptant-social__icon,
.mobile-drawer .adaptant-social--drawer .adaptant-social__icon {
	width: 30px !important;
	height: 30px !important;
	color: inherit !important;
	background: transparent !important;
}

#mobile-drawer .adaptant-social--drawer .adaptant-social__label,
.popup-drawer .adaptant-social--drawer .adaptant-social__label,
.mobile-drawer .adaptant-social--drawer .adaptant-social__label {
	display: none !important;
}

.adaptant-social--drawer {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 1.65rem;
	width: 100%;
}

.adaptant-social--drawer .adaptant-social__link {
	font-size: 1rem;
}

.adaptant-social--drawer .adaptant-social__label {
	display: none;
}

.content-align-right .adaptant-social--drawer,
.content-align-center .adaptant-social--drawer,
.content-align-left .adaptant-social--drawer {
	align-items: center;
	justify-content: flex-end;
}

.content-align-right .adaptant-drawer-social,
.content-align-center .adaptant-drawer-social,
.content-align-left .adaptant-drawer-social {
	text-align: right;
}

/* ---- Футер: столбик иконка + подпись ---- */
.adaptant-social--footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	width: 100%;
}

.adaptant-social--footer .adaptant-social__link {
	font-size: 1.02rem;
	padding: 0.15rem 0;
	gap: 0.55em;
}

.adaptant-social--footer .adaptant-social__icon {
	width: 24px !important;
	height: 24px !important;
}

@media (min-width: 769px) {
	.adaptant-social--footer .adaptant-social__icon {
		width: 32px !important;
		height: 32px !important;
	}

	.adaptant-social--footer .adaptant-social__link {
		gap: 0.65em;
	}
}

/* Родной WP Social Links в футере — в тот же стиль, если вдруг остался. */
.site-footer .wp-block-social-links,
.site-footer .wp-block-social-links.is-horizontal,
.site-footer .wp-block-social-links.is-layout-flex {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	flex-wrap: nowrap !important;
	gap: 0.65rem !important;
}

.site-footer .wp-block-social-links .wp-social-link {
	width: auto;
	background: transparent !important;
}

.site-footer .wp-block-social-links .wp-social-link a {
	min-width: 0;
	min-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4em;
	padding: 0;
	background: transparent !important;
	color: var(--adaptant-social-ink) !important;
}

.site-footer .wp-block-social-links .wp-social-link svg {
	width: 24px;
	height: 24px;
}

@media (min-width: 769px) {
	.site-footer .wp-block-social-links .wp-social-link svg {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 640px) {
	.adaptant-subscribe {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
	}

	.adaptant-social--subscribe {
		gap: 0.75rem 1.25rem;
	}
}
