/**
 * Global Premium 3D Footer Styles (Theme: Самодвижец / НАЕКС)
 * Pure White & Porcelain Theme - NO Grey, NO Dark Backgrounds, Radius <= 6px
 */

.samodvizhec-main-footer {
	background: #ffffff;
	color: #334155;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	border-top: 2px solid rgba(255, 183, 3, 0.45);
	position: relative;
	overflow: hidden;
	box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.04);
}

.samodvizhec-main-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 5%;
	width: 90%;
	height: 1.5px;
	background: linear-gradient(90deg, transparent, #ffb703, #ffd043, transparent);
	opacity: 0.8;
}

.samodvizhec-footer-inner {
	padding: 30px 20px 25px !important;
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   1. 4-COLUMN FOOTER GRID
   ========================================================================== */
.samodvizhec-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	margin-bottom: 45px;
}

@media (min-width: 640px) {
	.samodvizhec-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.samodvizhec-footer-grid {
		grid-template-columns: 1.25fr 0.95fr 1.05fr 1.45fr;
		gap: 28px;
	}
}

/* Column 1: Brand */
.footer-logo-wrap {
	margin-top: 0;
	margin-bottom: 16px;
}

.footer-logo-img {
	height: 42px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	filter: drop-shadow(0 3px 8px rgba(255, 183, 3, 0.30));
	transition: transform 0.3s ease;
}

.footer-logo-link:hover .footer-logo-img {
	transform: scale(1.03);
}

.footer-tagline {
	color: #0f172a;
	font-size: 1.02rem;
	font-weight: 800;
	margin-bottom: 10px;
	line-height: 1.35;
}

.footer-desc {
	color: #475569;
	font-size: 0.9rem;
	line-height: 1.55;
	margin-bottom: 20px;
}

.footer-social-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.footer-social-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.25s ease;
}

.btn-whatsapp {
	background: rgba(37, 211, 102, 0.1);
	color: #15803d;
	border: 1px solid rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
	background: #25d366;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
	transform: translateY(-2px);
}

.btn-telegram {
	background: rgba(0, 136, 204, 0.1);
	color: #0369a1;
	border: 1px solid rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
	background: #0088cc;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
	transform: translateY(-2px);
}

/* Titles */
.footer-col-title {
	color: #0f172a;
	font-size: 1.15rem;
	font-weight: 800;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 8px;
}

.footer-col-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-col-title a:hover {
	color: #ff7a00;
}

.footer-col-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 28px;
	height: 2.5px;
	background: #ffb703;
	border-radius: 2px;
}

/* Links list */
.footer-links-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links-list li {
	margin-bottom: 9px;
}

.footer-links-list li a {
	color: #475569;
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	display: inline-block;
}

.footer-links-list li a:hover {
	color: #ffb703;
	transform: translateX(4px);
}

/* Branches List (Column 4) */
.footer-branches-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.footer-branch-item {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 7px;
	border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
}

.footer-branch-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.branch-city {
	font-size: 0.86rem;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

.branch-phone {
	font-size: 0.90rem;
	font-weight: 800;
	color: #ffb703;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
	display: inline-block;
	white-space: nowrap;
}

.branch-phone:hover {
	color: #d97706;
	transform: translateX(2px);
}

/* 3 Contact Infoboxes Row */
.samodvizhec-footer-infobars {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
	.samodvizhec-footer-infobars {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

.footer-infobox {
	background: #f8fafc;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 6px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-infobox:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 183, 3, 0.6);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	background: #ffffff;
}

.infobox-icon {
	font-size: 1.35rem;
	flex-shrink: 0;
}

.infobox-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.infobox-title {
	font-size: 0.98rem;
	font-weight: 800;
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

a.infobox-title:hover {
	color: #ffb703;
}

.infobox-desc {
	font-size: 0.82rem;
	color: #64748b;
	margin: 0;
	line-height: 1.35;
}

/* ==========================================================================
   2. BOTTOM BAR & LEGAL
   ========================================================================== */
.samodvizhec-footer-bottom {
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	padding-top: 20px;
}

.footer-bottom-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 0.82rem;
	color: #64748b;
}

.footer-copyright strong {
	color: #0f172a;
}

.footer-legal-link {
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-legal-link:hover {
	color: #ffb703;
}

.legal-sep {
	margin: 0 6px;
	color: #cbd5e1;
}

/* ==========================================================================
   3. MOBILE STICKY QUICK ACTION BAR (<= 768px)
   ========================================================================== */
.samodvizhec-mobile-bar {
	display: none;
}

@media (max-width: 768px) {
	.samodvizhec-footer-inner {
		padding: 26px 16px 20px !important;
	}

	.footer-logo-wrap {
		margin-top: 2px !important;
		margin-bottom: 16px !important;
	}

	body {
		padding-bottom: 64px !important;
	}

	.samodvizhec-mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1.08fr 1fr;
		gap: 6px;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		padding: 8px 8px;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		border-top: 1px solid rgba(15, 23, 42, 0.12);
		box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
		z-index: 9999;
		box-sizing: border-box;
	}

	.mob-bar-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		height: 44px;
		border-radius: 6px;
		font-size: 0.82rem;
		font-weight: 800;
		text-decoration: none;
		transition: all 0.18s ease;
		box-sizing: border-box;
	}

	.mob-bar-call {
		background: linear-gradient(135deg, #ffc727 0%, #ffb703 100%);
		color: #0f172a !important;
		box-shadow: 0 2px 8px rgba(255, 183, 3, 0.4);
	}

	.mob-bar-catalog {
		background: #f8fafc;
		color: #0f172a !important;
		border: 1px solid rgba(15, 23, 42, 0.12);
	}

	/* Mobile Bottom Bar Gauge Widget */
	.mob-bar-gauge {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: 44px;
		padding: 3px 6px;
		background: #ffffff;
		border: 1.5px solid rgba(255, 183, 3, 0.45);
		border-radius: 6px;
		box-sizing: border-box;
		box-shadow: 0 2px 8px rgba(255, 183, 3, 0.12);
	}

	.mob-gauge-header {
		display: flex;
		align-items: center;
		gap: 4px;
		line-height: 1;
	}

	.mob-gauge-dot {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: #ffb703;
		box-shadow: 0 0 6px rgba(255, 183, 3, 0.8);
		animation: mobGaugePulse 1.8s infinite ease-in-out;
	}

	@keyframes mobGaugePulse {
		0%, 100% { transform: scale(1); opacity: 1; }
		50% { transform: scale(1.3); opacity: 0.6; }
	}

	.mob-gauge-title {
		font-size: 0.62rem;
		font-weight: 700;
		color: #64748b;
		text-transform: uppercase;
		letter-spacing: 0.3px;
	}

	.mob-gauge-track {
		width: 100%;
		height: 3.5px;
		border-radius: 2px;
		background: rgba(15, 23, 42, 0.08);
		overflow: hidden;
		margin: 3px 0 2px;
	}

	.mob-gauge-bar-fill {
		width: 100%;
		height: 100%;
		background: linear-gradient(90deg, #ffb703, #ffd043);
		transform: scaleX(0);
		transform-origin: 0 50%;
		transition: transform 0.05s linear;
	}

	.mob-gauge-val {
		font-size: 0.72rem;
		font-weight: 800;
		font-family: ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
		color: #0f172a;
		line-height: 1;
	}

	.mob-bar-btn:active {
		transform: scale(0.97);
	}

	.mob-btn-icon {
		font-size: 1.05rem;
	}
}
