:root {
	--footer-bg: #fbfcfe;
	--footer-surface: #ffffff;
	--footer-text: #101828;
	--footer-muted: #475467;
	--footer-soft: #667085;
	--footer-border: rgba(16, 24, 40, 0.08);
	--footer-border-strong: rgba(16, 24, 40, 0.1);
	--footer-primary: var(--home-primary, #635bff);
	--footer-primary-soft: #f6f5ff;
}

#colophon.site-footer,
#colophon.site-footer * {
	box-sizing: border-box;
}

#colophon.site-footer {
	width: 100%;
	margin: 0;
	padding: 34px 0 0;
	border-top: 1px solid var(--footer-border);
	background: var(--footer-bg);
	color: var(--footer-text);
}

#colophon.site-footer .site-footer-inner {
	width: min(var(--site-content-max, 1360px), calc(100% - 48px));
	margin-inline: auto;
	padding: 0;
}

#colophon.site-footer .site-footer-grid {
	display: grid;
	grid-template-columns:
		minmax(220px, 1.25fr)
		minmax(140px, 0.7fr)
		minmax(190px, 0.9fr)
		minmax(190px, 0.95fr)
		minmax(340px, 1.4fr);
	gap: 28px;
	align-items: start;
}

#colophon.site-footer .site-footer-grid > * {
	min-width: 0;
	margin: 0;
	align-self: start;
}

#colophon.site-footer .site-footer-brand-logo img {
	display: block;
	width: auto;
	height: 44px;
	max-width: 245px;
	object-fit: contain;
}

body.tfm-light-mode #colophon.site-footer .site-footer-brand-logo .ainews-custom-logo.hidden-light-theme,
body[data-color-mode="light"]:not(.tfm-dark-mode) #colophon.site-footer .site-footer-brand-logo .ainews-custom-logo.hidden-light-theme,
body.custom-background.tfm-light-mode #colophon.site-footer .site-footer-brand-logo .ainews-custom-logo.hidden-light-theme,
body.tfm-dark-mode #colophon.site-footer .site-footer-brand-logo .ainews-custom-logo.hidden-dark-theme,
body[data-color-mode="dark"]:not(.tfm-light-mode) #colophon.site-footer .site-footer-brand-logo .ainews-custom-logo.hidden-dark-theme,
body.custom-background.tfm-dark-mode #colophon.site-footer .site-footer-brand-logo .ainews-custom-logo.hidden-dark-theme {
	display: none;
}

#colophon.site-footer .site-footer-site-title {
	color: var(--footer-text);
	font-size: 22px;
	font-weight: 800;
	text-decoration: none;
}

#colophon.site-footer .site-footer-brand-description {
	max-width: 260px;
	margin: 12px 0 0;
	color: var(--footer-soft);
	font-size: 13.5px;
	line-height: 1.6;
}

#colophon.site-footer .site-footer-socials {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

#colophon.site-footer .site-footer-social-link {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--footer-border-strong);
	border-radius: 50%;
	background: var(--footer-surface);
	color: var(--footer-muted);
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.045);
	transition:
		transform 160ms ease,
		color 160ms ease,
		border-color 160ms ease,
		background-color 160ms ease,
		box-shadow 160ms ease;
}

#colophon.site-footer .site-footer-social-link svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#colophon.site-footer .site-footer-social-link:focus-visible {
	outline: 2px solid rgba(99, 91, 255, 0.35);
	outline-offset: 3px;
}

#colophon.site-footer .site-footer-heading {
	margin: 0 0 12px;
	color: var(--footer-text);
	font-size: 13.5px;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

#colophon.site-footer .site-footer-links {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon.site-footer .site-footer-links a,
#colophon.site-footer .site-footer-legal-links a {
	color: var(--footer-muted);
	font-size: 13.5px;
	line-height: 1.5;
	text-decoration: none;
	transition: color 160ms ease;
}

#colophon.site-footer .site-footer-category-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	line-height: 1.5;
}

#colophon.site-footer .site-footer-category-icon {
	display: inline-grid;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	place-items: center;
	color: var(--footer-primary);
	line-height: 1;
}

#colophon.site-footer .site-footer-category-icon svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#colophon.site-footer .site-footer-category-icon-image,
#colophon.site-footer .site-footer-category-icon-code {
	color: #2d7dff;
}

#colophon.site-footer .site-footer-category-icon-video {
	color: #18a979;
}

#colophon.site-footer .site-footer-category-icon-text {
	color: #7657f6;
}

#colophon.site-footer .site-footer-category-icon-audio {
	color: #ef476f;
}

#colophon.site-footer .site-footer-category-icon-business {
	color: #e3a008;
}

#colophon.site-footer .site-footer-category-icon-marketing,
#colophon.site-footer .site-footer-category-icon-education {
	color: #f47b20;
}

#colophon.site-footer .site-footer-category-icon-design {
	color: #e84cb4;
}

#colophon.site-footer .site-footer-category-icon-assistant {
	color: #444ce7;
}

#colophon.site-footer .site-footer-category-icon-data {
	color: #039855;
}

#colophon.site-footer .site-footer-category-icon-medical {
	color: #e31b54;
}

#colophon.site-footer .site-footer-category-icon-other {
	color: #667085;
}

#colophon.site-footer .site-footer-category-icon-more {
	color: #667085;
}

#colophon.site-footer .site-footer-subscription {
	min-width: 0;
}

#colophon.site-footer .site-footer-subscribe-card {
	position: relative;
	overflow: hidden;
	padding: 26px 26px 24px;
	border: 1px solid rgba(99, 91, 255, 0.16);
	border-radius: 24px;
	background:
		radial-gradient(circle at 92% 18%, rgba(99, 91, 255, 0.16), transparent 34%),
		radial-gradient(circle at 100% 100%, rgba(42, 171, 238, 0.12), transparent 38%),
		linear-gradient(135deg, #ffffff 0%, #f9fbff 52%, #f3efff 100%);
	box-shadow: 0 16px 42px rgba(15, 23, 42, 0.075);
}

#colophon.site-footer .site-footer-subscribe-card::before {
	content: "";
	position: absolute;
	right: -72px;
	bottom: -82px;
	width: 210px;
	height: 210px;
	border: 1px solid rgba(99, 91, 255, 0.14);
	border-radius: 50%;
	opacity: 0.7;
	pointer-events: none;
}

#colophon.site-footer .site-footer-subscribe-card::after {
	content: "";
	position: absolute;
	top: 78px;
	right: 58px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(99, 91, 255, 0.5);
	box-shadow:
		36px 48px 0 rgba(99, 91, 255, 0.28),
		-22px 92px 0 rgba(42, 171, 238, 0.32);
	opacity: 0.65;
	pointer-events: none;
}

#colophon.site-footer .site-footer-subscribe-badge {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	margin-bottom: 18px;
	padding: 5px 14px 5px 5px;
	border-radius: 999px;
	background: rgba(99, 91, 255, 0.08);
	color: #3156c9;
	font-size: 13px;
	font-weight: 700;
}

#colophon.site-footer .site-footer-subscribe-badge-icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(145deg, #2aabee, #229ed9);
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(34, 158, 217, 0.26);
}

#colophon.site-footer .site-footer-subscribe-title {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin: 0;
	color: #101828;
	font-size: clamp(26px, 2.5vw, 38px);
	font-weight: 820;
	line-height: 1.08;
	letter-spacing: -0.045em;
}

#colophon.site-footer .site-footer-subscribe-title span {
	display: block;
	background: linear-gradient(90deg, #3156c9, #635bff, #2aabee);
	background-clip: text;
	color: transparent;
	-webkit-background-clip: text;
}

#colophon.site-footer .site-footer-subscribe-text {
	position: relative;
	z-index: 1;
	max-width: 420px;
	margin: 16px 0 0;
	color: #667085;
	font-size: 15px;
	line-height: 1.55;
}

#colophon.site-footer .site-footer-subscribe-button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	width: 100%;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
	padding: 0 22px;
	border-radius: 12px;
	background: linear-gradient(135deg, #6d5cff, #4d32ff);
	color: #ffffff;
	font-size: 15px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 12px 26px rgba(77, 50, 255, 0.22);
	transition:
		transform 180ms ease,
		box-shadow 180ms ease;
}

#colophon.site-footer .site-footer-subscribe-button span:last-child {
	min-width: 0;
	white-space: nowrap;
}

#colophon.site-footer .site-footer-subscribe-button:hover,
#colophon.site-footer .site-footer-subscribe-button:focus-visible {
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(77, 50, 255, 0.3);
}

#colophon.site-footer .site-footer-subscribe-button:focus-visible {
	outline: 3px solid rgba(99, 91, 255, 0.28);
	outline-offset: 4px;
}

#colophon.site-footer .site-footer-subscribe-benefits {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 18px;
	color: #344054;
	font-size: 12.5px;
	font-weight: 600;
}

#colophon.site-footer .site-footer-subscribe-benefits span {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

#colophon.site-footer .site-footer-subscribe-card svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#colophon.site-footer .site-footer-subscribe-badge-icon svg,
#colophon.site-footer .site-footer-subscribe-button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	stroke: currentColor;
}

#colophon.site-footer .site-footer-subscribe-benefits svg {
	width: 15px;
	height: 15px;
	color: #635bff;
}

#colophon.site-footer .site-footer-bottom {
	display: grid;
	width: 100%;
	grid-template-columns:
		minmax(max-content, 1fr)
		minmax(420px, 1.5fr)
		minmax(max-content, 1fr)
		36px;
	align-items: center;
	gap: 18px 24px;
	margin-top: 16px;
	min-height: 50px;
	padding: 10px 0;
	border-top: 1px solid rgba(16, 24, 40, 0.08);
	color: #667085;
	font-size: 12.5px;
	line-height: 1.4;
}

#colophon.site-footer .site-footer-legal-links {
	display: flex;
	min-width: 0;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-evenly;
	gap: 24px;
}

#colophon.site-footer .site-footer-legal-links a {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	text-decoration: none;
}

#colophon.site-footer .site-footer-copyright {
	justify-self: start;
}

#colophon.site-footer .site-footer-made-in-ukraine {
	justify-self: end;
	white-space: nowrap;
}

#colophon.site-footer .site-footer-back-to-top {
	display: grid;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	place-items: center;
	border: 1px solid var(--footer-border-strong);
	border-radius: 50%;
	background: #f7f8fb;
	color: var(--footer-muted);
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

#colophon.site-footer .site-footer-legal-links a:focus-visible {
	color: var(--footer-primary);
}

@media (hover: hover) and (pointer: fine) {
	#colophon.site-footer .site-footer-links a:hover,
	#colophon.site-footer .site-footer-legal-links a:hover {
		color: var(--footer-primary);
	}

	#colophon.site-footer .site-footer-social-link:hover,
	#colophon.site-footer .site-footer-back-to-top:hover {
		border-color: rgba(99, 91, 255, 0.35);
		background: var(--footer-primary-soft);
		color: var(--footer-primary);
		box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
		transform: translateY(-2px);
	}

}

#colophon.site-footer .site-footer-social-link.is-telegram:hover {
	color: #229ed9;
}

#colophon.site-footer .site-footer-social-link.is-x:hover {
	color: #101828;
}

#colophon.site-footer .site-footer-social-link.is-facebook:hover {
	color: #1877f2;
}

#colophon.site-footer .site-footer-social-link.is-youtube:hover {
	color: #ff0033;
}

#colophon.site-footer .site-footer-social-link.is-linkedin:hover {
	color: #0a66c2;
}

#colophon.site-footer .site-footer-social-link.is-tiktok:hover {
	color: #111827;
}

body.tfm-dark-mode {
	--footer-bg: #08142f;
	--footer-surface: #101e3d;
	--footer-text: #ffffff;
	--footer-muted: rgba(255, 255, 255, 0.78);
	--footer-soft: rgba(255, 255, 255, 0.66);
	--footer-border: rgba(255, 255, 255, 0.1);
	--footer-border-strong: rgba(255, 255, 255, 0.14);
	--footer-primary-soft: rgba(109, 93, 246, 0.16);
}

body.tfm-dark-mode #colophon.site-footer .site-footer-brand-logo img {
	filter: brightness(0) invert(1);
}

body.tfm-dark-mode #colophon.site-footer .site-footer-social-link {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.72);
	box-shadow: none;
}

body.tfm-dark-mode #colophon.site-footer .site-footer-social-link:hover,
body.tfm-dark-mode #colophon.site-footer .site-footer-social-link:focus-visible {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

body.tfm-dark-mode #colophon.site-footer .site-footer-subscribe-card {
	border-color: rgba(255, 255, 255, 0.12);
	background:
		radial-gradient(circle at 92% 18%, rgba(99, 91, 255, 0.26), transparent 34%),
		radial-gradient(circle at 100% 100%, rgba(42, 171, 238, 0.18), transparent 38%),
		linear-gradient(135deg, #101e3d 0%, #111b3c 52%, #19184a 100%);
	box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

body.tfm-dark-mode #colophon.site-footer .site-footer-subscribe-title {
	color: #ffffff;
}

body.tfm-dark-mode #colophon.site-footer .site-footer-subscribe-text {
	color: rgba(255, 255, 255, 0.7);
}

body.tfm-dark-mode #colophon.site-footer .site-footer-subscribe-badge {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

body.tfm-dark-mode #colophon.site-footer .site-footer-subscribe-benefits {
	color: rgba(255, 255, 255, 0.78);
}

body.tfm-dark-mode #colophon.site-footer .site-footer-back-to-top {
	background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1179px) {
	#colophon.site-footer .site-footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#colophon.site-footer .site-footer-subscription {
		grid-column: span 2;
	}

	#colophon.site-footer .site-footer-bottom {
		grid-template-columns: 1fr auto 36px;
		gap: 14px 24px;
	}

	#colophon.site-footer .site-footer-legal-links {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: flex-start;
	}

	#colophon.site-footer .site-footer-made-in-ukraine {
		justify-self: end;
	}

	#colophon.site-footer .site-footer-back-to-top {
		grid-column: 3;
		grid-row: 1;
	}
}

@media (max-width: 1023px) {
	#colophon.site-footer .site-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#colophon.site-footer .site-footer-subscription {
		grid-column: span 2;
	}

}

@media (max-width: 767px) {
	#colophon.site-footer {
		padding-top: 28px;
	}

	#colophon.site-footer .site-footer-inner {
		width: calc(100% - 32px);
	}

	#colophon.site-footer .site-footer-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	#colophon.site-footer .site-footer-socials {
		gap: 9px;
		margin-top: 12px;
	}

	#colophon.site-footer .site-footer-social-link {
		width: 36px;
		height: 36px;
	}

	#colophon.site-footer .site-footer-brand-logo img {
		height: 38px;
		max-width: 210px;
	}

	#colophon.site-footer .site-footer-subscription {
		grid-column: auto;
	}

	#colophon.site-footer .site-footer-subscribe-card {
		padding: 18px 16px;
		border-radius: 18px;
	}

	#colophon.site-footer .site-footer-subscribe-card::before {
		right: -112px;
		bottom: -112px;
	}

	#colophon.site-footer .site-footer-subscribe-card::after {
		top: 56px;
		right: 34px;
	}

	#colophon.site-footer .site-footer-subscribe-badge {
		min-height: 34px;
		margin-bottom: 12px;
		font-size: 12.5px;
	}

	#colophon.site-footer .site-footer-subscribe-badge-icon {
		width: 30px;
		height: 30px;
	}

	#colophon.site-footer .site-footer-subscribe-badge-icon svg {
		width: 18px;
		height: 18px;
	}

	#colophon.site-footer .site-footer-subscribe-title {
		font-size: 24px;
		line-height: 1.1;
	}

	#colophon.site-footer .site-footer-subscribe-text {
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.55;
	}

	#colophon.site-footer .site-footer-subscribe-button {
		width: 100%;
		min-height: 46px;
		margin-top: 16px;
		padding-inline: 18px;
		font-size: 14px;
	}

	#colophon.site-footer .site-footer-subscribe-button svg {
		width: 20px;
		height: 20px;
	}

	#colophon.site-footer .site-footer-subscribe-benefits {
		gap: 8px 14px;
		margin-top: 14px;
		font-size: 12px;
	}

	#colophon.site-footer .site-footer-category-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 18px;
	}

	#colophon.site-footer .site-footer-category-link {
		align-items: flex-start;
	}

	#colophon.site-footer .site-footer-category-link span:last-child {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	#colophon.site-footer .site-footer-category-icon {
		margin-top: 3px;
	}

	#colophon.site-footer .site-footer-bottom {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		text-align: center;
	}

	#colophon.site-footer .site-footer-copyright,
	#colophon.site-footer .site-footer-legal-links {
		flex-basis: 100%;
		justify-content: flex-start;
		gap: 10px 18px;
	}

	#colophon.site-footer .site-footer-made-in-ukraine {
		justify-self: auto;
		white-space: normal;
	}

	#colophon.site-footer .site-footer-back-to-top {
		align-self: flex-end;
	}
}
