/* Footer Styles */
.site-footer {
	background-color: var(--black-is-back);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 60px 0 40px 0;
	margin-top: auto;
}

.site-footer .container {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.5fr;
	gap: 48px;
	width: 100%;
	margin-bottom: 40px;
}

/* Branding */
.footer-branding {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-logo-link {
	text-decoration: none;
	display: inline-block;
}

.footer-logo-title {
	font-family: var(--font-primary);
	font-size: 22px;
	font-weight: 700;
	color: #FFFFFF;
	letter-spacing: 0.5px;
}

.footer-description {
	font-size: 13px;
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin: 0;
}

/* Headings */
.footer-title {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-primary);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin: 0 0 20px 0;
}

/* Navigation List */
.footer-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-nav-list a {
	color: var(--color-text-secondary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.footer-nav-list a:hover {
	color: var(--color-text-primary);
}

/* Request Block */
.footer-request-text {
	font-size: 13px;
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin: 0 0 16px 0;
}

.footer-cta-btn {
	height: 44px;
	padding: 0 24px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border-radius: 4px;
	box-shadow: none;
}

/* Social Channels */
.footer-social-wrapper {
	margin-top: 32px;
}

.footer-social-wrapper .footer-title {
	margin-bottom: 16px;
}

.footer-social-icons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.social-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background-color: rgba(15, 21, 27, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: var(--color-text-secondary);
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	text-decoration: none;
}

.social-icon-btn:hover {
	background-color: rgba(39, 54, 69, 0.8);
	color: var(--color-text-primary);
	border-color: var(--rusted-iron);
}

/* Значок каналу. Раніше тут був вбудований <svg>, який сам займав усю кнопку;
   тепер це <img> із файла, завантаженого в адмінці (ctables/soc.php), і розмір
   йому треба задати.

   100% від кнопки плюс object-fit: contain — значок займає те саме місце, що й
   колишній svg, а пропорції не спотворюються, хоч би якої форми був файл. */
.social-icon-btn img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Запас на випадок, коли значок ще не завантажили: у кнопці лишається перша
   літера вузла. Порожній квадрат виглядав би як несправність. */
.social-icon-letter {
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

/* Legal Row */
.footer-legal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding-top: 24px;
	width: 100%;
}

.footer-copyright {
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
}

.footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 12px 24px;
}

.footer-legal-links a {
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-legal-links a:hover {
	color: var(--color-text-primary);
}

/* Responsive Footer overrides */
@media (max-width: 991px) {
	.footer-main {
		gap: 36px;
	}
}

@media (max-width: 768px) {
	.site-footer {
		padding: 48px 0 32px 0;
	}
	.footer-main {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.footer-legal-row {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 16px;
	}
	.footer-legal-links {
		flex-direction: column;
		gap: 8px;
	}
}

/* Custom Footer Contact Info (Phone & Email) */
.footer-contact-info {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer-phone-link,
.footer-email-link {
	font-family: var(--font-mono, monospace);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-secondary, #8E9EA6);
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
}

.footer-phone-link:hover,
.footer-email-link:hover {
	color: var(--color-text-primary, #FFFFFF);
}

.footer-phone-link .prefix,
.footer-email-link .prefix {
	color: var(--rusted-iron, #D45603);
	margin-right: 8px;
	font-weight: 700;
}

/* Custom Footer Requisites */
.footer-requisites {
	margin-top: 16px;
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	line-height: 1.6;
	color: var(--color-text-secondary, #8E9EA6);
	opacity: 0.75;
}

.footer-requisites > div {
	margin-bottom: 4px;
}

.footer-requisites > div:last-child {
	margin-bottom: 0;
}

