/* ==========================================================================
   ФУТЕР — єдині стилі (css/components/footer.css)
   Це ПОВНІ стилі футера сайту. Усі зміни футера робимо тільки тут.
   Виняток: відступ над футером (.footer { margin-top }) задається у файлі стилів
   самої сторінки, бо залежить від її верстки.
   Підключається на всіх сторінках після custom.css/style.css (functions-assets.php).
   ========================================================================== */


/* ---- 1. Каркас футера: підписка, меню, контакти, соцмережі, копірайт (база з legal/style.css) ---- */

.footer {
	background: #0B0B0B;
}

.footer__top-inner {
	padding: 85px 0;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.footer__title {
	width: 515px;
	font-weight: 700;
	font-size: 24px;
	line-height: 130%;
	letter-spacing: 0.04rem;
}

.footer__search {
	width: 100%;
	max-width: 576px;
	position: relative;
}

.footer__search input {
	width: 100%;
	padding: 17px 16px;
	padding-right: 156px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid #222222;
	color: #fff;
}

.footer__search input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 14px;
}

.footer__search input::-moz-placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 14px;
}

.footer__search input:-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 14px;
}

.footer__search input::-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 14px;
}

.footer__search input::placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 14px;
}

.footer__search-btn {
	display: inline-block;
	min-width: 136px;
	min-height: 48px;
	padding: 10px;
	background: #F21940;
	border-radius: 6px;
	font-size: 14px;
	line-height: 14px;
	font-weight: bold;
	letter-spacing: 0.05rem;
	text-transform: uppercase;
	color: #fff;
	position: absolute;
	top: 3px;
	right: 4px;
	transition: all 0.2s ease;
}

.footer__search-btn:hover,
.footer__search-btn:focus {
	background: #F43B5D;
}

.footer__menu {
	padding: 55px 0 60px;
	color: #fff;
	background: #0F0F0F;
	font-weight: 700;
	font-size: 14px;
	line-height: 24px;
}

.footer__menu-inner {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
}

.footer__address {
	width: 250px;
	margin-bottom: 17px;
	margin-right: 60px;
	font-style: normal;
}

.footer__contact {
	margin-top: 38px;
}

.footer__contact li:not(:first-child) {
	margin-top: 7px;
}

.footer__soc {
	margin-top: 43px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.footer__soc li:not(:last-child) {
	margin-right: 16px;
}

.footer__soc a {
	display: -ms-inline-flexbox;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 48px;
	min-height: 32px;
	background: #1B1B1B;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.footer__soc a:hover,
.footer__soc a:focus {
	background: #272727;
}

.footer__nav {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
}

.footer__nav-chapter {
	margin-right: 57px;
	margin-bottom: 20px;
}

.footer__nav-chapter:nth-child(2) {
	margin-right: 100px;
}

.footer__nav-title {
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 0.05rem;
	text-transform: uppercase;
	color: #3D3D3D;
}

.footer__nav-list {
	margin-top: 20px;
}

.footer__nav-list li:not(:last-child) {
	margin-bottom: 10px;
}

.footer__nav-list a {
	position: relative;
}

.footer__nav-list a::after {
	content: '';
	position: absolute;
	width: 0;
	bottom: 0;
	left: auto;
	right: 0;
	height: 1px;
	background: #fff;
	transition: all .3s ease;
}

.footer__nav-list a:hover::after,
.footer__nav-list a:focus::after {
	width: 100%;
	left: 0;
	right: auto;
}

.footer__nav .footer__nav-more {
	display: inline-block;
	padding-right: 15px;
	color: #F21940;
	position: relative;
}

.footer__nav .footer__nav-more::before {
	position: absolute;
	width: 4px;
	height: 6px;
	right: 0;
	top: -5%;
}

.footer__nav .footer__nav-more::after {
	display: none;
}

.footer__copy {
	padding: 64px 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 160%;
	letter-spacing: -0.03rem;
}

.footer__copy-title {
	margin-bottom: 5px;
	font-weight: 500;
}

.footer__copy-text {
	margin-bottom: 24px;
}

.footer__copy-rights {
	margin-top: 35px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	letter-spacing: -0.018rem;
}

.footer__copy-rights__left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.footer__copy-rights__right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	font-weight: 700;
}

.footer__copy-rights__design {
	margin-right: 12px;
	padding-right: 14px;
	font-weight: 400;
	position: relative;
}

.footer__copy-rights__design::after {
	content: '';
	position: absolute;
	right: 0;
	top: 12px;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: #787878;
}

.footer__copy-rights__design a {
	text-decoration: underline;
}

.footer__copy-rights__design a:hover,
.footer__copy-rights__design a:focus {
	color: #fff;
}

.footer__copy-rights__link {
	opacity: 0.5;
	transition: all .2s ease;
}

.footer__copy-rights__link:hover,
.footer__copy-rights__link:focus {
	opacity: 1;
}

.footer__copy-list {
	margin-left: 12px;
	display: flex;
	flex-wrap: wrap;
}

.footer__copy-list li:not(:first-child) {
	margin-left: 12px;
}

.footer__copy-list a {
	padding-left: 14px;
	position: relative;
}

.footer__copy-list a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2px;
	height: 2px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
}

.footer__copy-list a::after {
	content: '';
	position: absolute;
	right: 0;
	left: 14px;
	bottom: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.5);
}

.footer__copy-list a:hover,
.footer__copy-list a:focus {
	color: #fff;
}

.footer__copy-list a:hover::after,
.footer__copy-list a:focus::after {
	background: #fff;
}


/* ---- 2. Адаптив футера (база з legal/adaptive.css) ---- */

@media screen and (max-width: 1200px) {
	.footer__top-inner {
		padding: 55px 0;
		flex-direction: column;
		align-items: flex-start;
	}

	.footer__title {
		width: 100%;
		margin-bottom: 24px;
	}

	.footer__menu {
		padding-bottom: 31px;
	}

	.footer__nav {
		margin-top: 24px;
	}

	.footer__nav-chapter {
		margin-bottom: 24px;
	}
}

@media screen and (max-width: 900px) {
	.footer__copy-rights {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer__copy-rights__right {
		margin-top: 10px;
	}
}

@media screen and (max-width: 767px) {
	.footer__title {
		font-size: 22px;
	}

	.footer__search input {
		padding-right: 16px;
	}

	.footer__search-btn {
		position: static;
		margin-top: 24px;
		width: 100%;
		padding: 14px;
		min-height: 56px;
	}

	.footer__menu {
		padding-bottom: 56px;
	}

	.footer__address {
		max-width: 355px;
		width: 100%;
		margin: 0;
		display: flex;
		flex-wrap: wrap;
	}

	.footer__contact {
		width: 100%;
		margin-top: 26px;
		order: 1;
	}

	.footer__soc {
		margin-top: 0;
		margin-left: auto;
	}

	.footer__nav {
		width: 100%;
		margin-top: 45px;
		border-top: 1px solid #272727;
		flex-direction: column;
		align-items: stretch;
	}

	.footer__nav-title {
		width: 100%;
		padding: 25px 16px;
		color: #fff;
		position: relative;
		cursor: pointer;
	}

	.footer__nav-title::after {
		content: '';
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 8px;
		height: 5px;
		background-repeat: no-repeat;
		background-size: contain;
		opacity: 0.5;
		transition: all 0.2s ease;
	}

	.footer__nav-title.active::after {
		opacity: 1;
		transform: rotate(-180deg);
	}

	.footer__nav-list {
		margin-top: 0;
		padding: 0 16px;
		max-height: 0;
		overflow: hidden;
		transition: all 0.2s ease;
	}

	.footer__nav-list.active {
		max-height: 100vh;
		padding-bottom: 24px;
	}

	.footer__nav-chapter {
		margin: 0;
		border-bottom: 1px solid #272727;
	}

	.footer__nav-chapter:nth-child(2) {
		margin-right: 0;
	}

	.footer__copy {
		padding-top: 48px;
	}

	.footer__copy-rights__left {
		display: block;
	}

	.footer__copy-list {
		margin-left: 0;
		margin-top: 16px;
		color: #fff;
	}

	.footer__copy-list a::after {
		background: #fff;
	}

	.footer__copy-list li:first-child a {
		padding-left: 0;
	}

	.footer__copy-list li:first-child a::before {
		display: none;
	}

	.footer__copy-list li:first-child a::after {
		left: 0;
	}
}


/* ---- 3. Правки меню футера (перенесено з custom.css) ---- */

.footer__nav-chapter.menu .menu-item-has-children>a::after {
	display: none;
}

.footer__nav-chapter.menu a {
	position: relative;
	font-size: 14px;
	line-height: 24px;
}

.footer__nav-chapter.menu .sub-menu a {
	font-weight: 700;
}

.footer__nav-chapter.menu a::after {
	content: '';
	position: absolute;
	width: 0;
	bottom: 0;
	left: auto;
	right: 0;
	height: 1px;
	background: #fff;
	transition: all .3s ease;
}

.footer__nav-chapter.menu a:hover::after {
	width: 100%;
	left: 0;
	right: auto;
}

.footer__nav-chapter {
	max-width: 255px;
}

.footer__nav-chapter.menu {
	display: flex;
	margin-right: 0 !important;
	max-width: none;
}

.footer__nav-chapter>li>a {
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 0.05rem;
	text-transform: uppercase;
	color: #3D3D3D;
	padding: 0 !important;
}

.footer__nav-chapter .sub-menu {
	margin-top: 13px;
}

.footer__nav-chapter .menu-item .sub-menu li:not(:last-child) {
	margin-bottom: 10px;
}

.footer__nav-chapter>li {
	max-width: 280px;
	margin-right: 57px;
	margin-bottom: 20px;
}

.footer__nav-list a,
.footer__nav-chapter.menu a {
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	display: -webkit-inline-box;
	-webkit-line-clamp: 1;
}

.footer__address {
	margin-bottom: 25px;
}

.footer {
	background: #0B0B0B;
}

@media screen and (max-width: 1200px) {
	.footer__nav-chapter .sub-menu {
		overflow: visible;
	}

	.footer__nav-chapter>li:nth-child(1) {
		margin-right: 50px;
		max-width: 220px;
	}
}

@media screen and (max-width: 767px) {
	.footer__nav-chapter.menu .menu-item-has-children>a::after {
		display: block;
		width: 8px;
		height: 5px;
		left: auto;
		right: 0;
	}

	.footer__nav-chapter.menu {
		flex-wrap: wrap;
		border-bottom: none;
	}

	.footer__nav-chapter.menu>li {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: none;
		padding: 25px 16px;
		color: #fff;
		position: relative;
		cursor: pointer;
		border-bottom: 1px solid #272727;
		margin-right: 0;
		margin-bottom: 0;
	}

	.footer__nav-chapter.menu>li>a {
		width: 100%;
		color: #fff;
		font-size: 14px;
		line-height: 24px;
		letter-spacing: 0.05rem;
	}

	.footer__nav-chapter.menu .sub-menu {
		margin-top: 0;
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: all 0.2s ease;
	}

	.footer__nav-chapter.menu .sub-menu.active {
		max-height: 100vh;
		padding-top: 25px;
	}

	.footer__nav-chapter.menu .menu-item-has-children>a::after {
		content: '';
	}

	.footer__nav-title::after {
		content: '';
		right: 16px;
		opacity: 1;
	}

	.footer__nav-chapter.menu>li>a.active::after {
		transform: rotate(-180deg) !important;
		margin-top: -3px !important;
	}

	.footer__nav-chapter.menu .sub-menu .menu-item:last-child {
		margin-bottom: 0;
	}

	.footer__nav-chapter.menu .sub-menu a {
		font-weight: 700;
		font-size: 14px;
		line-height: 16px;
	}

	.footer__nav-chapter {
		max-width: none;
	}

	[lang="de-DE"] .footer__copy {
		font-size: 11px;
	}
}