/* ===== Footer — стиль Адам и Ева (red #e30016, dark #292929) ===== */

footer {
	padding: 0;
	border-top: 2px solid var(--red, #e30016);
	letter-spacing: 0.02em;
	background: var(--dark-gray, #292929) !important;
}

.footer-main {
	padding: 40px 0 36px;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 36px;
	align-items: flex-start;
}

/* --- Бренд + CTA (блок слева) --- */
.footer-brand {
	flex: 0 0 auto;
	min-width: 240px;
	max-width: 300px;
	padding-right: 24px;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-link {
	display: block;
	margin-bottom: 20px;
}

.footer-logo-img {
	display: block;
	max-width: 140px;
	height: auto;
	border-radius: 0;
}

.footer-cta {
	flex-direction: column;
	gap: 12px;
}

.footer-phone-main {
	display: inline-block;
	font-size: 19px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	transition: color 0.2s ease, opacity 0.2s ease;
	position: relative;
	padding-left: 28px;
}

.footer-phone-main::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background: var(--red, #e30016);
	border-radius: 50%;
	opacity: 0.9;
}

.footer-phone-main:hover {
	color: var(--red, #e30016) !important;
}

.footer-phone-main:hover::before {
	opacity: 1;
	box-shadow: 0 0 8px rgba(227, 0, 22, 0.5);
}

.footer-email {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.footer-email:hover {
	color: var(--red, #e30016) !important;
}

.footer-socials {
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.footer-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	text-decoration: none !important;
	transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-icon:hover {
	background: var(--red, #e30016);
	border-color: var(--red, #e30016);
	transform: translateY(-2px);
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(227, 0, 22, 0.35);
}

.footer-social-icon i {
	font-size: 18px;
}

/* --- Навигация — колонки --- */
.footer-nav {
	display: flex;
	flex-wrap: wrap;
	flex: 1 1 auto;
	gap: 28px 40px;
	min-width: 0;
	align-items: flex-start;
	justify-content: center;
}

.footer-col {
	flex: 1 1 150px;
	min-width: 150px;
	max-width: 200px;
}

.footer-col-contacts {
	max-width: 220px;
}

.footer-col-stores {
	max-width: 260px;
	min-width: 180px;
}

/* Триггер аккордеона (мобильный) — min 48px touch target (PageSpeed) */
.footer-col-trigger {
	display: none;
	width: 100%;
	min-height: 48px;
	padding: 16px 0;
	margin-bottom: 4px;
	background: none;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	transition: color 0.2s ease;
	font-family: inherit;
}

.footer-col-trigger:hover {
	color: var(--red, #e30016);
}

.footer-col-trigger i {
	font-size: 12px;
	transition: transform 0.25s ease;
	color: rgba(255, 255, 255, 0.7);
}

.footer-col-trigger[aria-expanded="true"],
.footer-col-trigger.is-expanded {
	color: var(--red, #e30016);
}

.footer-col-trigger[aria-expanded="true"] i,
.footer-col-trigger.is-expanded i {
	transform: rotate(180deg);
	color: var(--red, #e30016);
}

/* Каталог: ссылка + кнопка раскрытия */
.footer-col-trigger-catalog {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.footer-col-trigger-link {
	color: inherit;
	text-decoration: none !important;
	pointer-events: auto;
}

.footer-col-trigger-link:hover {
	color: var(--red, #e30016);
}

.footer-col-trigger-btn {
	background: none;
	border: none;
	min-width: 48px;
	min-height: 48px;
	padding: 12px;
	margin: -8px -8px -8px 0;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.7);
}

.footer-col-trigger-btn:hover {
	color: var(--red, #e30016);
}

/* Скрываем дублирующий заголовок — используется trigger */
.footer-col-title {
	display: none !important;
}

.footer-col-content {
	display: block;
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-list li {
	margin: 0;
	padding: 0;
}

.footer-list li + li {
	margin-top: 4px;
}

.footer-list a {
	display: inline-block;
	min-height: 48px;
	padding: 12px 0;
	line-height: 1.4;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: none !important;
	transition: color 0.2s ease, padding-left 0.2s ease;
	word-break: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

.footer-list a:hover {
	color: var(--red, #e30016) !important;
	padding-left: 4px;
}

/* Длинные ссылки не выходят за границы */
.footer-list a {
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

/* Длинные ссылки — перенос, без overflow */
.footer-list a {
	word-break: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

.footer-col-content h3,
.footer-col-content h4 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(227, 0, 22, 0.4);
	display: inline-block;
}

.footer-list-phones a {
	white-space: nowrap;
}

.footer-stores-title {
	margin: 20px 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: block;
}

.footer-list-stores a {
	font-size: 13px;
	line-height: 1.6;
	white-space: normal;
}

/* Длинные ссылки — перенос, без горизонтального overflow */
.footer-list a {
	word-break: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

.footer-list-tracking {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Desktop: колонки всегда видны, по центру (1200px+) --- */
@media (min-width: 1200px) {
	.footer-phone-main::before {
		display: none;
	}

	.footer-phone-main {
		padding-left: 0;
	}

	.footer-col-trigger {
		display: block !important;
		pointer-events: none;
		cursor: default;
		border: none;
		padding: 0 0 14px;
		margin-bottom: 6px;
		font-size: 16px;
		font-weight: 600;
		color: #fff;
		border-bottom: 2px solid rgba(227, 0, 22, 0.4);
		width: fit-content;
	}

	.footer-col-trigger:hover {
		color: #fff;
	}

	.footer-col-trigger i {
		display: none;
	}

	.footer-col-content {
		display: block !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.footer-col-content h3,
	.footer-col-content h4 {
		display: none;
	}
}

/* --- Tablet (992–1199px): без горизонтального скролла --- */
@media (min-width: 992px) and (max-width: 1199px) {
	footer, .wrappower {
		overflow-x: hidden;
		max-width: 100%;
	}
	footer .container, .wrappower .container {
		max-width: 100%;
		overflow-x: hidden;
	}
	.footer-list a {
		word-break: break-word;
		overflow-wrap: break-word;
	}
}

/* --- Mobile + планшет: accordion, колонки свёрнуты (до 1199px) --- */
@media (max-width: 1199px) {
	footer {
		border-top-width: 3px;
		overflow-x: hidden;
		max-width: 100%;
	}
	footer .container {
		max-width: 100% !important;
		overflow-x: hidden;
	}

	.footer-main {
		padding: 28px 0 24px;
	}

	.footer-top {
		flex-direction: column;
		gap: 0;
	}

	.footer-brand {
		max-width: 100%;
		text-align: center;
		margin-bottom: 28px;
		padding-bottom: 28px;
		padding-right: 0;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.footer-logo-link {
		display: flex;
		justify-content: center;
		margin-bottom: 20px;
	}

	.footer-logo-img {
		max-width: 110px;
	}

	.footer-cta {
		align-items: center;
		width: 100%;
	}

	.footer-phone-main {
		padding-left: 0;
		text-align: center;
		display: block;
	}

	.footer-phone-main::before {
		display: none;
	}

	.footer-email {
		text-align: center;
	}

	.footer-socials {
		justify-content: center;
	}

	.footer-nav {
		width: 100%;
		flex-direction: column;
		gap: 0;
	}

	.footer-col {
		flex: none;
		min-width: 100%;
		max-width: 100%;
	}

	.footer-col-trigger {
		display: flex !important;
		align-items: center;
		justify-content: center;
		text-align: center;
		pointer-events: auto;
		cursor: pointer;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding: 16px 36px;
		position: relative;
	}
	.footer-col-trigger span,
	.footer-col-trigger .footer-col-trigger-link {
		flex: 0 0 auto;
	}
	.footer-col-trigger i,
	.footer-col-trigger .footer-col-trigger-btn {
		position: absolute;
		right: 12px;
		top: 50%;
		transform: translateY(-50%);
	}

	/* Свёрнуто по умолчанию — плавное разворачивание по клику */
	footer .footer-nav .footer-col .footer-col-content {
		max-height: 0 !important;
		overflow: hidden !important;
		opacity: 0;
		transition: max-height 0.4s ease-out, opacity 0.3s ease;
	}

	footer .footer-col-trigger[aria-expanded="true"] + .footer-col-content,
	footer .footer-col-trigger.is-expanded + .footer-col-content {
		max-height: 1000px !important;
		overflow: visible !important;
		opacity: 1;
	}

	/* Текст по центру в раскрытом содержимом */
	.footer-col-content {
		padding: 12px 20px 20px;
		text-align: center;
	}

	.footer-col-content .footer-list {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.footer-col-content .footer-list a {
		text-align: center;
	}
	.footer-col-content .footer-list a:hover {
		padding-left: 0; /* сохраняем центрирование при наведении */
	}

	.footer-list li + li {
		margin-top: 12px;
	}

	.footer-list-stores a {
		font-size: 14px;
	}

	/* Перенос длинных ссылок, чтобы не вызывать overflow */
	.footer-col-content .footer-list a {
		word-wrap: break-word;
		overflow-wrap: break-word;
		max-width: 100%;
	}

	/* wrappower (копирайт, баннер) — без горизонтального overflow */
	.wrappower {
		max-width: 100%;
		overflow-x: hidden;
		box-sizing: border-box;
	}
}

/* Мобильное выезжающее меню (бургер): «Скидки» между Каталог и информационными ссылками */
@keyframes mobileMenuSalePulse {
	0%,
	100% {
		opacity: 1;
		color: #e30016;
		text-shadow: 0 0 0 rgba(227, 0, 22, 0);
		transform: scale(1);
	}
	50% {
		opacity: 0.82;
		color: #ff3344;
		text-shadow: 0 0 12px rgba(227, 0, 22, 0.5);
		transform: scale(1.03);
	}
}

@media (max-width: 767px) {
	body .mobile_menu_container .mobile-menu-sale {
		border-bottom: 1px solid #eee;
	}
	body .mobile_menu_container .mobile-menu-sale__link {
		display: block;
		padding: 14px 15px 14px 18px;
		font-weight: 600;
		font-size: 15px;
		text-decoration: none;
		color: #e30016;
		line-height: 1.35;
	}
	body .mobile_menu_container .mobile-menu-sale__link:hover,
	body .mobile_menu_container .mobile-menu-sale__link:focus {
		background: rgba(227, 0, 22, 0.07);
		color: #c40012;
	}
	body .mobile_menu_container .mobile-menu-sale__text {
		display: inline-block;
		animation: mobileMenuSalePulse 2s ease-in-out infinite;
	}
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	body .mobile_menu_container .mobile-menu-sale__text {
		animation: none;
		text-shadow: none;
		transform: none;
	}
}
