/* BeerHabits custom footer owner. */

.site-footer {
	display: none;
}

.bh-footer {
	position: relative;
	overflow: hidden;
	background: rgba(3, 13, 21, 0.28);
	color: rgba(224, 237, 243, 0.72);
	font-size: 0.875rem;
	line-height: 1.6;
}

.bh-footer__main {
	padding: 36px 32px 26px;
}

.bh-footer__grid {
	display: grid;
	grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.9fr) minmax(150px, 0.78fr) minmax(270px, 1.5fr);
	gap: 36px;
	align-items: start;
	width: min(1320px, 100%);
	margin: 0 auto;
}

.bh-footer .bh-footer__col,
.bh-footer .bh-footer__col * {
	box-sizing: border-box;
	text-align: left;
}

.bh-footer__brand-link {
	display: inline-block;
	text-decoration: none;
}

.bh-footer__logo {
	display: block;
	width: 138px;
	max-width: 100%;
	height: auto;
	margin: 0 0 14px;
	filter: brightness(1.06);
}

.bh-footer__tagline {
	max-width: 250px;
	margin: 0 0 18px;
	color: rgba(224, 237, 243, 0.70);
	font-size: 0.9375rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.bh-footer__socials {
	display: flex;
	gap: 10px;
}

.bh-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(99, 194, 225, 0.20);
	border-radius: 50%;
	background: rgba(14, 54, 72, 0.72);
	color: rgba(205, 233, 243, 0.72);
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.bh-footer__social:hover {
	transform: translateY(-2px);
	border-color: rgba(69, 197, 238, 0.52);
	background: rgba(24, 109, 139, 0.72);
	color: #ffffff;
}

.bh-footer__col-title,
.bh-footer__nl-title {
	position: relative;
	margin: 0;
	color: #ffffff;
	font-family: var(--bh-font-display);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	letter-spacing: 0;
	line-height: var(--bh-leading-card-title);
	text-transform: none;
}

.bh-footer__col-title {
	margin-bottom: 15px;
	padding-bottom: 9px;
	font-size: var(--bh-type-card-title);
}

.bh-footer__accordion-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: left;
	text-transform: inherit;
	/* Заголовок колонки — кнопка, а не текст: выделение при клике или тапе здесь
	   только мешает и выглядит как случайная подсветка. */
	-webkit-user-select: none;
	user-select: none;
}

/* На десктопе theme.js отключает аккордеон и ставит aria-disabled="true".
   Курсор должен это отражать, иначе кнопка обещает клик, которого не будет. */
.bh-footer__accordion-toggle[aria-disabled="true"] {
	cursor: default;
}

.bh-footer__accordion-icon {
	display: none;
	width: 9px;
	height: 9px;
	flex: 0 0 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 160ms ease;
}

.bh-footer__col-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 46px;
	height: 1px;
	background: linear-gradient(90deg, #e2a12f, rgba(226, 161, 47, 0));
}

.bh-footer__links,
.bh-footer__meta,
.bh-footer__contacts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bh-footer__links {
	display: grid;
	gap: 8px;
}

.bh-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(218, 237, 244, 0.74);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 180ms ease, transform 180ms ease;
}

.bh-footer__links a::before {
	content: "";
	flex: 0 0 5px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(61, 196, 239, 0.54);
}

.bh-footer__links a:hover {
	color: #ffffff;
	transform: translateX(3px);
}

.bh-footer__meta {
	display: grid;
	gap: 7px;
	color: rgba(214, 230, 236, 0.64);
	font-size: 0.82rem;
}

.bh-footer__meta-name {
	margin-bottom: 4px;
	color: rgba(244, 249, 251, 0.88);
	font-size: 0.92rem;
	font-weight: 750;
}

.bh-footer__contacts {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}

.bh-footer__contacts li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	min-width: 0;
	color: rgba(214, 230, 236, 0.68);
	font-size: 0.875rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.bh-footer__contacts svg {
	width: 15px;
	height: 15px;
	margin-top: 3px;
	color: #3bc4ef;
}

.bh-footer__contacts a {
	color: rgba(222, 241, 247, 0.78);
	text-decoration: none;
	transition: color 180ms ease;
}

.bh-footer__contacts a:hover {
	color: #56d0f4;
}

.bh-footer__nl {
	padding-top: 14px;
	border-top: 1px solid rgba(104, 198, 228, 0.14);
}

.bh-footer__nl-title {
	margin-bottom: 8px;
	font-size: var(--bh-type-card-title);
}

.bh-footer__nl-label {
	max-width: 31rem;
	margin: 0 0 12px;
	color: rgba(214, 230, 236, 0.66);
	font-size: 0.78rem;
	line-height: 1.52;
}

.bh-footer__nl-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px;
	overflow: hidden;
	min-height: 44px;
	border: 1px solid rgba(93, 186, 217, 0.26);
	border-radius: 10px;
	background: rgba(3, 24, 36, 0.72);
	transition: border-color 180ms ease, background 180ms ease;
}

.bh-footer__nl-row:focus-within {
	border-color: rgba(70, 201, 242, 0.58);
	background: rgba(7, 39, 54, 0.84);
}

.bh-footer__nl-consent {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	margin-top: 9px;
	color: rgba(214, 230, 236, 0.58);
	font-size: 0.72rem;
	line-height: 1.42;
	cursor: pointer;
}

.bh-footer__nl-consent input {
	width: 14px;
	height: 14px;
	margin: 2px 0 0;
	accent-color: var(--bh-cyan);
}

.bh-footer__nl-input {
	min-width: 0;
	padding: 10px 13px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #ffffff;
	font: inherit;
	font-size: 0.82rem;
}

.bh-footer__nl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	min-width: 46px;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(145deg, #179bd0, #0c6f9b);
	color: #ffffff;
	cursor: pointer;
	transition: filter 180ms ease, transform 160ms ease;
}

.bh-footer__nl-btn:hover {
	filter: brightness(1.12);
}

.bh-footer__nl-btn:active {
	transform: scale(0.96);
}

.bh-footer__nl-status {
	margin: 9px 0 0;
	color: #f0be61;
	font-size: 0.76rem;
	line-height: 1.4;
}

.bh-footer__commerce {
	width: min(1320px, 100%);
	margin: 22px auto 0;
	border-top: 1px solid rgba(105, 195, 224, 0.14);
}

.bh-footer__commerce-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: center;
	padding: 16px 0 0;
}

.bh-footer__commerce-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	text-align: center;
}

.bh-footer__commerce-title {
	display: block;
	margin-bottom: 7px;
	color: rgba(244, 249, 251, 0.70);
	font-size: 0.67rem;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.bh-footer__payment-badges,
.bh-footer__delivery-badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
}

.bh-footer__payment-badge,
.bh-footer__payment-provider,
.bh-footer__delivery-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	border-radius: 6px;
}

.bh-footer__payment-badge {
	min-width: 40px;
	padding: 3px 6px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.94);
}

.bh-footer__payment-badge img {
	display: block;
	width: auto;
	height: 18px;
	max-width: 96px;
	object-fit: contain;
}

.bh-footer__payment-badge--montonio {
	min-width: 88px;
}

.bh-footer__payment-badge--montonio img {
	width: 92px;
	height: auto;
}

.bh-footer__payment-provider {
	padding: 0 7px;
	border: 1px solid rgba(226, 161, 47, 0.18);
	background: rgba(226, 161, 47, 0.08);
	color: rgba(246, 204, 125, 0.86);
	font-size: 0.69rem;
	font-weight: 820;
	line-height: 1;
}

.bh-footer__delivery-badge {
	width: 66px;
	min-width: 0;
	padding: 3px 4px;
	border: 0;
	background: transparent;
}

.bh-footer__delivery-badge img {
	display: block;
	width: auto;
	max-width: 62px;
	height: 18px;
	max-height: 18px;
	object-fit: contain;
}

.bh-footer__bottom {
	border-top: 1px solid rgba(105, 195, 224, 0.11);
	background: transparent;
}

.bh-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(1320px, 100%);
	min-height: 44px;
	margin: 0 auto;
	padding: 11px 32px;
	color: rgba(209, 226, 232, 0.42);
	font-size: 0.73rem;
	letter-spacing: 0;
}

@media (max-width: 1000px) {
	.bh-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 48px;
	}

	.bh-footer__col--brand,
	.bh-footer__col--contact {
		grid-column: 1 / -1;
	}

	.bh-footer__col--brand {
		display: grid;
		grid-template-columns: 160px minmax(0, 1fr);
		gap: 0 24px;
		align-items: center;
	}

	.bh-footer__brand-link,
	.bh-footer__socials {
		grid-column: 1;
	}

	.bh-footer__tagline {
		grid-column: 2;
		grid-row: 1 / span 2;
		max-width: 32rem;
	}

	.bh-footer__commerce-inner {
		gap: 16px 28px;
	}
}

@media (max-width: 640px) {
	.bh-footer__main {
		padding: 24px 20px 18px;
	}

	.bh-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 18px;
		width: min(420px, 100%);
	}

	.bh-footer__col--collapsible .bh-footer__col-title {
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.bh-footer__accordion-toggle {
		min-height: 44px;
		padding: 8px 2px 12px;
		cursor: pointer;
	}

	.bh-footer__accordion-toggle:focus-visible {
		outline: 2px solid #56d0f4;
		outline-offset: 3px;
		border-radius: 4px;
	}

	.bh-footer__accordion-icon {
		display: block;
	}

	.bh-footer__accordion-toggle[aria-expanded="true"] .bh-footer__accordion-icon {
		transform: rotate(225deg);
	}

	.bh-footer__col--collapsible.is-open .bh-footer__col-title {
		margin-bottom: 10px;
	}

	.bh-footer__col--collapsible [data-bh-footer-panel][hidden] {
		display: none;
	}

	.bh-footer__col--brand,
	.bh-footer__col--contact {
		grid-column: 1 / -1;
	}

	.bh-footer__col--brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0;
		text-align: center;
	}

	.bh-footer .bh-footer__col--brand,
	.bh-footer .bh-footer__col--brand * {
		text-align: center;
	}

	.bh-footer__logo {
		width: 132px;
		margin-bottom: 11px;
	}

	.bh-footer__tagline {
		max-width: 310px;
		margin-bottom: 16px;
	}

	.bh-footer__links {
		grid-template-columns: 1fr;
		gap: 9px;
	}

	.bh-footer__meta {
		grid-template-columns: 1fr;
		gap: 7px;
	}

	.bh-footer__meta-name {
		grid-column: auto;
	}

	.bh-footer__contacts {
		margin-bottom: 18px;
	}

	.bh-footer__nl-row {
		width: 100%;
	}

	.bh-footer__commerce-inner {
		grid-template-columns: 1fr;
		gap: 8px;
		padding-top: 14px;
	}

	.bh-footer__commerce-title {
		margin-bottom: 4px;
	}

	.bh-footer__payment-badges,
	.bh-footer__delivery-badges {
		justify-content: center;
	}

	.bh-footer__payment-badge,
	.bh-footer__payment-provider,
	.bh-footer__delivery-badge {
		min-height: 30px;
	}

	.bh-footer__payment-badge:not(.bh-footer__payment-badge--montonio) img,
	.bh-footer__delivery-badge img {
		width: auto;
		max-width: 48px;
		height: 16px;
		max-height: 16px;
	}

	.bh-footer__delivery-badge {
		width: 54px;
		padding-inline: 3px;
	}

	.bh-footer__payment-badge--montonio img {
		width: 84px;
		height: auto;
	}

	.bh-footer__bottom-inner {
		flex-direction: column;
		justify-content: center;
		min-height: 58px;
		padding: 10px 20px;
		text-align: center;
	}
}
