/* Site footer */
.site-footer {
	--footer-bg: #1c2b2a;
	--footer-bg-soft: #243836;
	--footer-text: rgba(255, 255, 255, 0.88);
	--footer-muted: rgba(255, 255, 255, 0.62);
	margin-top: auto;
	background: var(--footer-bg);
	color: var(--footer-text);
}

/* CTA strip */
.site-footer__cta {
	padding: 28px 0;
	background: linear-gradient(
		115deg,
		var(--medik-accent, #47aaa5) 0%,
		#3d9590 42%,
		#5f2281 100%
	);
}

.site-footer__cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}

.site-footer__cta-title {
	margin: 0;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
}

.site-footer__cta-sub {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9);
}

.site-footer__cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.site-footer__cta-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: var(--medik-radius, 8px);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__cta-phone:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-1px);
}

.site-footer__cta-phone-icon svg {
	width: 20px;
	height: 20px;
	color: #fff;
}

.site-footer__cta-btn {
	min-height: 48px;
	padding-inline: 24px;
	background: #fff;
	color: var(--medik-brand, #5f2281);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.site-footer__cta-btn:hover {
	background: var(--medik-brand-light, #f7f4f8);
	color: var(--medik-brand-hover, #4a1a66);
}

/* Main grid */
.site-footer__main {
	padding: 48px 0 40px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) minmax(200px, 1.1fr);
	gap: 32px 28px;
	align-items: start;
}

.site-footer__logo {
	display: inline-block;
	max-width: 180px;
	margin-bottom: 14px;
	text-decoration: none;
}

.site-footer__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.site-footer__tagline {
	margin: 0 0 18px;
	max-width: 280px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--footer-muted);
}

.site-footer__social {
	display: flex;
	gap: 10px;
}

.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
}

.site-footer__col-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border: 0;
	background: none;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}

.site-footer__col-chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.site-footer__col.is-open .site-footer__col-chevron {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.site-footer__col-title,
.site-footer__contacts-title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
}

.site-footer__col .site-footer__col-title {
	display: block;
}

.site-footer__links,
.site-footer__contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links a,
.site-footer__contact-list a {
	display: inline-block;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--footer-muted);
	text-decoration: none;
	transition: color 0.15s ease, padding-left 0.15s ease;
}

.site-footer__links a:hover,
.site-footer__contact-list a:hover {
	color: var(--medik-accent-light, #d8f2f1);
	padding-left: 4px;
}

.site-footer__contact-list li {
	margin-bottom: 6px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--footer-muted);
}

.site-footer__contacts-btn {
	margin-top: 14px;
	width: 100%;
	max-width: 200px;
}

/* Bottom bar */
.site-footer__bottom {
	padding: 18px 0 22px;
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.site-footer__copy {
	margin: 0;
	font-size: 13px;
	color: var(--footer-muted);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.site-footer__legal a {
	font-size: 13px;
	color: var(--footer-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__legal a:hover {
	color: #fff;
}

.site-footer__col-title--desk {
	display: block;
}

@media (min-width: 769px) {
	.site-footer__col-toggle {
		display: none !important;
	}

	.site-footer__col .site-footer__links {
		display: block !important;
	}
}

@media (max-width: 768px) {
	.site-footer__col-title--desk {
		display: none;
	}
}

@media (max-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.site-footer__contacts {
		grid-column: span 1;
	}
}

@media (max-width: 768px) {
	.site-footer__main {
		padding: 32px 0 28px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.site-footer__brand {
		margin-bottom: 20px;
		padding-bottom: 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.site-footer__col {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.site-footer__col-toggle {
		display: flex;
	}

	.site-footer__col:not(.is-open) .site-footer__links {
		display: none;
	}

	.site-footer__col.is-open .site-footer__links {
		padding-bottom: 12px;
	}

	.site-footer__contacts {
		padding-top: 20px;
	}

	.site-footer__contacts-btn {
		max-width: none;
	}
}
