/* ===== SECTION: Footer - Start =====
   Чотири колонки на сітці з п'яти слотів (четвертий порожній — там була
   знята колонка «Каталог»). Числа зняті мостом з компонентів
   268:1585 (1920×640), 476:44537 (1480×640), 312:4269 (375×1026).
   Крок колонок: 380 на 1920 і 292 на 1480 = 5 колонок з gap 20,
   тобто та сама сітка, що й ряд з п'яти карток товару.
   ===== */
footer {
	position: relative;
	width: 100%;
	padding: 48px 0;
	background: var(--primary);
	overflow: hidden;
}

/* .container у базі — сітка на 12 колонок; у футері він тримає лише два ряди
   (колонки + низ), тому перетворюємо його на колонку і фіксуємо висоту 640. */
footer > .container {
	display: flex;
	flex-direction: column;
	min-height: 544px;
}

/* Footer Content */
footer .footer-content {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--blocks-indent);
}
footer .footer-contacts-block {
	grid-column: 5;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

footer .footer-logo {
	display: inline-block;
}
footer .footer-logo img {
	width: 159px;
	height: 100px;
	object-fit: contain;
}

/* Заголовки колонок — приглушені білим 64% (268:1491) */
footer .footer-block-title {
	color: rgb(255 255 255 / 64%);
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
	margin-bottom: 10px;
}
footer .footer-nav-block .footer-block-title,
footer .footer-clients-block .footer-block-title {
	margin-bottom: 7px;
}
footer .footer-socials-group .footer-block-title {
	margin-bottom: 11px;
}

/* Footer Menu — крок пунктів 36 = рядок 22 + padding 7+7 (макет: 351 → 387).
   Ритм задає padding пункту, gap списку не використовуємо (navigation.md). */
footer .footer-menu {
	font-size: 16px;
	line-height: 22px;
}
footer .footer-menu > .menu-item {
	padding: 7px 0;
}
footer .footer-menu li a {
	color: var(--white);
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
	transition: opacity 0.3s ease;
}
footer .footer-menu li a:hover {
	opacity: 0.7;
}

/* Контакти: підпис приглушений, значення — Manrope Light 24/36 (268:1518) */
footer .footer-contact-value {
	display: inline-block;
	color: var(--white);
	font-family: var(--font-family-1);
	font-size: 24px;
	line-height: 36px;
	font-weight: 300;
	transition: opacity 0.3s ease;
}
footer .footer-contact-value:hover {
	opacity: 0.7;
}

/* П'ять круглих іконок 56×56 з проміжком 8, підкладка — біле 10% (268:1532) */
footer .footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
footer .footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: rgb(255 255 255 / 10%);
	border-radius: var(--radius-max);
	color: var(--white);
	transition: background 0.3s ease;
}
footer .footer-social-link:hover {
	background: rgb(255 255 255 / 20%);
}
footer .footer-social-link .icon-mask {
	--icon-base: 20px;
}

/* Footer Bottom — рядок притиснутий до низу футера, лінії-роздільника в макеті немає */
footer .footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--blocks-indent);
	margin-top: auto;
	padding-top: 40px;
}
footer .copyright-text {
	color: rgb(255 255 255 / 64%);
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
}
footer .design-by {
	color: var(--white);
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
}

/* Adaptive 1680 (тир макета 1480) */
@media (max-width: 1680px) {
	footer .footer-logo img {
		width: 158px;
	}
	footer .footer-contact-value {
		font-size: 20px;
		line-height: 30px;
	}
}

/* Adaptive 1279 (тир макета 375): одна колонка, контакти піднімаються
   під лого, «Навігація» і «Клієнтам» ідуть одна під одною від лівого краю. */
@media (max-width: 1279px) {
	footer {
		padding: 24px 0;
	}
	footer > .container {
		min-height: 0;
	}
	footer .footer-content {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	footer .footer-logo-block {
		order: 1;
	}
	footer .footer-contacts-block {
		order: 2;
		grid-column: 1;
		gap: 34px;
	}
	footer .footer-nav-block {
		order: 3;
	}
	footer .footer-clients-block {
		order: 4;
	}
	footer .footer-logo img {
		width: 127px;
		height: 80px;
	}
	footer .footer-block-title {
		font-size: 14px;
		line-height: 20px;
		margin-bottom: 12px;
	}
	footer .footer-nav-block .footer-block-title,
	footer .footer-clients-block .footer-block-title {
		margin-bottom: 7px;
	}
	footer .footer-socials-group .footer-block-title {
		margin-bottom: 6px;
	}
	footer .footer-menu {
		font-size: 14px;
		line-height: 20px;
	}
	footer .footer-menu li a {
		font-size: 14px;
		line-height: 20px;
	}
	footer .footer-contact-value {
		font-size: 18px;
		line-height: 27px;
	}
	footer .footer-social-link {
		width: 48px;
		height: 48px;
	}
	footer .footer-social-link .icon-mask {
		--icon-base: 17px;
	}
	footer .footer-bottom {
		margin-top: 0;
		padding-top: 86px;
	}
	footer .copyright-text,
	footer .design-by {
		font-size: 14px;
		line-height: 20px;
	}
}
/* Планшетна доводка (769–1279): тира 768 в макеті немає — виводимо самі (responsive.md).
   В одну колонку на планшеті футер розтягується на півтора екрана порожнечі. */
@media (min-width: 769px) and (max-width: 1279px) {
	footer .footer-content {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px var(--blocks-indent);
	}
}
/* ===== SECTION: Footer - End ===== */
