/* MoreFX cookie consent
-------------------------------------------------------------- */

.morefx-cookie-banner[hidden],
.morefx-cookie-modal[hidden],
.morefx-cookie-reopen[hidden] {
	display: none !important;
}

.morefx-cookie-banner,
.morefx-cookie-modal,
.morefx-cookie-reopen {
	font-family: inherit;
	box-sizing: border-box;
}

.morefx-cookie-banner *,
.morefx-cookie-modal *,
.morefx-cookie-reopen * {
	box-sizing: border-box;
}

.morefx-cookie-banner {
	position: fixed;
	z-index: 99990;
	right: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	left: 24px;
}

.morefx-cookie-banner__inner {
	display: grid;
	grid-template-columns: auto minmax(300px, 1fr) auto;
	gap: 22px;
	align-items: center;
	width: min(1480px, 100%);
	margin: 0 auto;
	padding: 20px 22px;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid rgba(28, 28, 28, 0.08);
	border-radius: 18px;
	box-shadow:
		0 22px 60px rgba(17, 17, 17, 0.16),
		0 4px 14px rgba(17, 17, 17, 0.07);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	animation: morefx-cookie-in 0.35s ease both;
}

.morefx-cookie-banner__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	color: #fa4b05;

}

.morefx-cookie-banner__icon svg,
.morefx-cookie-reopen svg {
	width: 38px;
	height: 38px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.morefx-cookie-banner__content {
	min-width: 0;
}

.morefx-cookie-banner__title {
	margin: 0 0 5px;
	color: #1d1d1f;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.morefx-cookie-banner__text {
	max-width: 720px;
	margin: 0;
	color: #55565a;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

.morefx-cookie-banner__text a,
.morefx-cookie-modal__privacy {
	color: #e84605;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.morefx-cookie-banner__text a:hover,
.morefx-cookie-modal__privacy:hover {
	color: #ba3804;
}

.morefx-cookie-banner__actions {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: 10px;
	align-items: center;
}

.morefx-cookie-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.morefx-cookie-button:hover {
	transform: translateY(-1px);
}

.morefx-cookie-button:active {
	transform: translateY(0);
}

.morefx-cookie-button:focus-visible,
.morefx-cookie-modal__close:focus-visible,
.morefx-cookie-reopen:focus-visible,
.morefx-cookie-switch input:focus-visible + .morefx-cookie-switch__visual {
	outline: 3px solid rgba(250, 75, 5, 0.25);
	outline-offset: 3px;
}

.morefx-cookie-button--primary {
	color: #fff;
	background: #fa4b05;
	box-shadow: 0 8px 20px rgba(250, 75, 5, 0.2);
}

.morefx-cookie-button--primary:hover {
	color: #fff;
	background: #df4103;
	box-shadow: 0 10px 24px rgba(250, 75, 5, 0.28);
}

.morefx-cookie-button--secondary {
	color: #e84605;
	background: #fff;
	border-color: rgba(250, 75, 5, 0.72);
}

.morefx-cookie-button--secondary:hover {
	color: #d43e03;
	background: rgba(250, 75, 5, 0.05);
	border-color: #fa4b05;
}

.morefx-cookie-button--neutral {
	color: #29292c;
	background: #fff;
	border-color: rgba(29, 29, 31, 0.17);
}

.morefx-cookie-button--neutral:hover {
	color: #111;
	background: #f6f6f7;
	border-color: rgba(29, 29, 31, 0.28);
}

/* Reopen button */

.morefx-cookie-reopen {
	position: fixed;
	z-index: 99980;
	left: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: #fa4b05;
	background: #fff;
	border: 1px solid rgba(29, 29, 31, 0.12);
	border-radius: 50%;
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.14);
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.morefx-cookie-reopen svg {
	width: 27px;
	height: 27px;
	stroke-width: 1.6;
}

.morefx-cookie-reopen:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(17, 17, 17, 0.18);
}

/* Settings modal */

.morefx-cookie-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.morefx-cookie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 15, 0.52);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	animation: morefx-cookie-fade 0.2s ease both;
}

.morefx-cookie-modal__panel {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: calc(100dvh - 40px);
	overflow: auto;
	padding: 30px;
	background: #fff;
	border: 1px solid rgba(29, 29, 31, 0.08);
	border-radius: 20px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
	animation: morefx-cookie-modal-in 0.28s ease both;
}

.morefx-cookie-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0 0 2px;
	color: #4d4d50;
	background: #f4f4f5;
	border: 0;
	border-radius: 50%;
	font: inherit;
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.morefx-cookie-modal__close:hover {
	color: #111;
	background: #e9e9eb;
}

.morefx-cookie-modal__eyebrow {
	margin: 0 48px 8px 0;
	color: #fa4b05;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.morefx-cookie-modal h2 {
	margin: 0 48px 12px 0;
	color: #1d1d1f;
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 750;
	line-height: 1.15;
}

.morefx-cookie-modal__intro {
	margin: 0 0 22px;
	color: #606064;
	font-size: 15px;
	line-height: 1.55;
}

.morefx-cookie-option {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	border-top: 1px solid rgba(29, 29, 31, 0.1);
}

.morefx-cookie-option:last-of-type {
	border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}

.morefx-cookie-option__title {
	display: block;
	margin: 0 0 4px;
	color: #1d1d1f;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.morefx-cookie-option__description {
	display: block;
	margin: 0;
	color: #6b6b70;
	font-size: 13px;
	line-height: 1.45;
}

.morefx-cookie-option__status {
	flex: 0 0 auto;
	color: #478a55;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.morefx-cookie-option--toggle {
	cursor: pointer;
}

.morefx-cookie-switch {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
}

.morefx-cookie-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.morefx-cookie-switch__visual {
	position: absolute;
	inset: 0;
	background: #c9c9cc;
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

.morefx-cookie-switch__visual::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.morefx-cookie-switch input:checked + .morefx-cookie-switch__visual {
	background: #fa4b05;
}

.morefx-cookie-switch input:checked + .morefx-cookie-switch__visual::after {
	transform: translateX(20px);
}

.morefx-cookie-modal__actions {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
}

.morefx-cookie-modal__privacy {
	font-size: 13px;
	line-height: 1.4;
}

/* Tablet */

@media (max-width: 1180px) {
	.morefx-cookie-banner__inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.morefx-cookie-banner__actions {
		grid-column: 2;
		grid-template-columns: repeat(3, minmax(0, max-content));
	}
}

/* Mobile */

@media (max-width: 767px) {
	.morefx-cookie-banner {
		right: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom, 0px));
		left: 10px;
	}

	.morefx-cookie-banner__inner {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 12px 13px;
		padding: 16px;
		border-radius: 16px;
	}

	.morefx-cookie-banner__icon {
		width: 44px;
		height: 44px;
	}

	.morefx-cookie-banner__icon svg {
		width: 30px;
		height: 30px;
	}

	.morefx-cookie-banner__title {
		margin-top: 1px;
		font-size: 16px;
	}

	.morefx-cookie-banner__text {
		font-size: 13px;
		line-height: 1.48;
	}

	.morefx-cookie-banner__actions {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
		width: 100%;
	}

	.morefx-cookie-button {
		width: 100%;
		min-height: 46px;
		white-space: normal;
	}

	.morefx-cookie-button--primary {
		order: 1;
	}

	.morefx-cookie-button--secondary {
		order: 2;
	}

	.morefx-cookie-button--neutral {
		order: 3;
	}

	.morefx-cookie-reopen {
		left: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		width: 44px;
		height: 44px;
		box-shadow: none;
	}

	.morefx-cookie-modal {
		align-items: end;
		padding: 10px;
	}

	.morefx-cookie-modal__panel {
		width: 100%;
		max-height: calc(100dvh - 20px);
		padding: 24px 18px 20px;
		border-radius: 18px;
	}

	.morefx-cookie-modal__eyebrow {
		margin-right: 42px;
		font-size: 11px;
	}

	.morefx-cookie-modal h2 {
		margin-right: 42px;
		font-size: 25px;
	}

	.morefx-cookie-option {
		align-items: flex-start;
	}

	.morefx-cookie-option__status {
		margin-top: 2px;
		white-space: normal;
		text-align: right;
	}

	.morefx-cookie-modal__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.morefx-cookie-modal__privacy {
		text-align: center;
	}
}

@media (max-width: 390px) {
	.morefx-cookie-banner__inner {
		grid-template-columns: 38px minmax(0, 1fr);
		padding: 14px;
	}

	.morefx-cookie-banner__icon {
		width: 38px;
		height: 38px;
	}

	.morefx-cookie-banner__icon svg {
		width: 26px;
		height: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.morefx-cookie-banner__inner,
	.morefx-cookie-modal__backdrop,
	.morefx-cookie-modal__panel {
		animation: none;
	}

	.morefx-cookie-button,
	.morefx-cookie-reopen,
	.morefx-cookie-switch__visual,
	.morefx-cookie-switch__visual::after {
		transition: none;
	}
}

@keyframes morefx-cookie-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes morefx-cookie-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes morefx-cookie-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
/*Убираем печеньку*/
/* Убираем иконку печеньки из основного баннера */
.morefx-cookie-banner__icon {
	display: none !important;
}

/* Десктоп: текст слева, кнопки справа */
.morefx-cookie-banner__inner {
	grid-template-columns: minmax(0, 1fr) auto !important;
}

.morefx-cookie-banner__actions {
	grid-column: auto !important;
}

/* Планшет */
@media (max-width: 1180px) {
	.morefx-cookie-banner__inner {
		grid-template-columns: 1fr !important;
	}

	.morefx-cookie-banner__actions {
		grid-column: 1 !important;
		grid-template-columns: repeat(3, max-content) !important;
	}
}

/* Мобильный */
@media (max-width: 767px) {
	.morefx-cookie-banner__inner {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}

	.morefx-cookie-banner__actions {
		grid-column: 1 !important;
		grid-template-columns: 1fr !important;
	}
}