html.cookie-consent-open,
body.cookie-consent-open {
	overflow: hidden;
}
.cookie-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	background: rgba(0, 0, 0, 0.52);
}
.cookie-consent-overlay[hidden] {
	display: none !important;
}
.cookie-consent-overlay.is-policy-page {
	inset: auto 0 0;
	display: block;
	background: transparent;
	pointer-events: none;
}
.cookie-consent-overlay.is-policy-page
.cookie-consent-main {
	pointer-events: auto;
	box-shadow: 0 -5px 24px rgba(0, 0, 0, 0.14);
}
.cookie-consent-overlay.is-settings-open,
.cookie-consent-overlay.is-policy-page.is-settings-open {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.52);
	pointer-events: auto;
}
.cookie-consent {
	width: 100%;
	color: #111;
	font-family: inherit;
}
.cookie-consent-overlay.is-settings-open
.cookie-consent {
	display: flex;
	align-items: center;
	justify-content: center;
}
.cookie-consent__view[hidden] {
	display: none !important;
}
.cookie-consent-main {
    width: 30%;
    padding: 42px 42px;
    background: #fff;
    box-sizing: border-box;
    margin: 0 auto;
    bottom: 70px;
    position: fixed;
    left: 0;
    right: 0;
    border-radius: 20px;
    display: flex;
    gap: 40px;
}
.cookie-consent__container {
	display: flex;
    flex-flow: column;
    width: calc(100% - 260px);
    margin: 0 auto;
}
.cookie-consent__buttons-top {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.cookie-consent__title {
	font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    text-align: left;
    position: relative;
}
.cookie-consent__container-left {
    width: 220px;
	position: relative; 
}
.cookie-consent__text {
	font-size: 15px;
    line-height: 1.55;
    gap: 0;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}
.cookie-consent__buttons-bottom {
    display: flex;
    gap: 10px;
}
.cookie-consent__links {
	display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 26px;
    justify-content: center;
}
.cookie-consent__link {
    color: #646464;
    text-decoration: none;
    border-bottom: 1px solid;
}
.cookie-consent__link:hover {
	color: #9d2f24;
}
.cookie-consent__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cookie-consent__button {
    width: 100%;
    min-height: 42px;
    padding: 14px 0px;
    color: #9d2f24;
    background: #fff;
    border: 2px solid #9d2f24;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.cookie-consent__button:focus-visible,
.cookie-settings__back:focus-visible,
.cookie-settings__save:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}
.cookie-consent__button--primary {
	color: #fff;
    background: #9d2f24;
    border-color: #9d2f24;
}
.cookie-consent__button--primary:hover {
	background: #78231a;
}
.cookie-consent__container-left-img {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 240px;
    left: 0;
    background-image: url("../images/cookies.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.cookie-settings {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 20px;
	box-sizing: border-box;
}
.cookie-settings__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 66px;
	height: auto;
	padding: 0 32px;
	border-bottom: 1px solid #ddd;
}
.cookie-settings__back {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 34px;
	height: 34px;
	margin: 0 16px 0 -8px;
	padding: 0 14px 0 0;
	color: #333;
	background: transparent;
	border: 0;
	border-right: 1px solid #ddd;
	border-radius: 0;
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
}
.cookie-settings__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
}
.cookie-settings__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}
.cookie-settings__intro {
	padding: 30px 32px 28px;
	border-bottom: 1px solid #ddd;
}

.cookie-settings__intro p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	display: block;
	padding-bottom: 0;
	border: none;
}
.cookie-settings__intro a {
	color: #087ac1;
	text-decoration: none;
}
.cookie-settings__intro a:hover {
	text-decoration: underline;
}
.cookie-settings__select-all {
	padding: 24px 32px;
	border-bottom: 1px solid #ddd;
}
.cookie-category {
	padding: 25px 32px 27px;
	border-bottom: 1px solid #ddd;
}
.cookie-category__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.cookie-category__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 500;
	cursor: pointer;
}
.cookie-category__description {
	margin: 6px 0 0;
	padding-right: 48px;
	color: #666;
	font-size: 15px;
	line-height: 1.55;
	border: none;
	gap: 0;
	display: block !important;
	padding-bottom: 0;
}
.cookie-toggle {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	width: 38px;
	height: 22px;
	margin: 0;
}
.cookie-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.cookie-toggle__slider {
	position: absolute;
	inset: 0;
	background: #b9b9b9;
	border-radius: 22px;
	cursor: pointer;
	transition: background-color 0.2s ease,
  box-shadow 0.2s ease;
}
.cookie-toggle__slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}
.cookie-toggle input:checked + .cookie-toggle__slider {
	background: #4fae55;
}
.cookie-toggle input:checked + .cookie-toggle__slider::before {
	transform: translateX(16px);
}
.cookie-toggle input:focus-visible + .cookie-toggle__slider {
	outline: 2px solid #111;
	outline-offset: 3px;
}
.cookie-toggle--required input:checked + .cookie-toggle__slider {
	background: #bce8ae;
}
.cookie-toggle--required
.cookie-toggle__slider {
	cursor: default;
}
.cookie-settings__footer {
	flex: 0 0 auto;
	padding: 32px;
	background: #fff;
	border-top: 1px solid #ddd;
}
.cookie-settings__save {
	width: 100%;
	min-height: 44px;
	padding: 11px 18px;
	color: #fff;
	background: #008b1f;
	border: 1px solid #008b1f;
	border-radius: 2px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.cookie-settings__save:hover {
	background: #01781c;
}
.cookie-map-placeholder {
	width: 100%;
	overflow: hidden;
	border: 1px solid #dedede;
	background: #ffffff;
	box-sizing: border-box;
}

.cookie-map-placeholder__image-wrap {
	position: relative;
	width: 100%;
	min-height: 100%;
	overflow: hidden;
	background: #f2f2f2;
}

.cookie-map-placeholder__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cookie-map-placeholder__content {
	padding: 20px;
	text-align: center;
	box-sizing: border-box;
}

.cookie-map-placeholder__text {
	margin: 0 0 15px;
	color: #444444;
	font-size: 15px;
	line-height: 1.5;
}

.cookie-map-placeholder__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 20px;
	color: #ffffff;
	background: #008b1f;
	border: 1px solid #008b1f;
	border-radius: 3px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease,
          border-color 0.2s ease;
}

.cookie-map-placeholder__button:hover {
	background: #01781c;
	border-color: #01781c;
}

.cookie-map-placeholder__button:focus-visible {
	outline: 2px solid #008b1f;
	outline-offset: 3px;
}
#cookie-reject {
    background: #9d2f24;
    color: #fff;
}
@media (max-width: 1440px) {
	.cookie-consent-main {
		width: min(900px, calc(100% - 48px));
		bottom: 32px;
		max-height: calc(100vh - 64px);
		max-height: calc(100dvh - 64px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.cookie-consent__container-left {
		flex: 0 0 220px;
	}

	.cookie-consent__container {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
}

@media (max-width: 768px) {
	.cookie-consent-main {
		width: calc(100% - 32px);
		bottom: 16px;
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		padding: 28px;
		gap: 24px;
	}

	.cookie-consent__container-left {
		flex-basis: 160px;
		width: 160px;
	}

	.cookie-consent__title {
		margin-top: 0;
		font-size: 22px;
		line-height: 1.25;
	}

	.cookie-consent__container-left-img {
		height: 180px;
	}

	.cookie-consent__text {
		font-size: 14px;
		line-height: 1.5;
	}

	.cookie-consent__button {
		box-sizing: border-box;
		min-width: 0;
		min-height: 44px;
		height: auto;
		padding: 12px 10px;
		font-size: 14px;
		line-height: 1.35;
		white-space: normal;
	}

	.cookie-consent__buttons-bottom > .cookie-consent__button {
		flex: 1 1 0;
	}

	.cookie-consent__links {
		gap: 12px 20px;
		margin-top: 20px;
	}

	.cookie-consent__link {
		font-size: 12px;
		line-height: 1.5;
		overflow-wrap: anywhere;
	}

	/* Окно настроек */

	.cookie-settings {
		display: flex;
		flex-direction: column;
		min-height: 0;
		max-height: calc(100vh - 40px);
		max-height: calc(100dvh - 40px);
		overflow: hidden;
	}

	/* Сброс общих стилей header сайта */
	.cookie-settings > .cookie-settings__header {
		position: static;
		inset: auto;
		transform: none;
		float: none;

		display: flex;
		flex: 0 0 auto;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;

		box-sizing: border-box;
		width: 100%;
		height: auto;
		min-height: 66px;
		margin: 0;
		padding: 14px 24px;

		background: #fff;
		border-bottom: 1px solid #ddd;
	}

	.cookie-settings__header > .cookie-settings__back {
		position: static;
		flex: 0 0 34px;
		margin: 0 16px 0 0;
	}

	.cookie-settings__header > .cookie-settings__title {
		position: static;
		min-width: 0;
		margin: 0;
		padding: 0;
		font-size: 20px;
		line-height: 1.3;
	}

	.cookie-settings > .cookie-settings__content {
		position: static;
		flex: 1 1 auto;
		min-width: 0;
		min-height: 0;
		margin: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.cookie-settings__intro {
		padding: 24px;
	}

	.cookie-settings__intro p {
		margin: 0;
	}

	.cookie-settings__select-all {
		padding: 20px 24px;
	}

	.cookie-category {
		padding: 20px 24px;
	}

	.cookie-category__description {
		padding-right: 0;
	}

	.cookie-settings > .cookie-settings__footer {
		position: static;
		flex: 0 0 auto;
		width: 100%;
		box-sizing: border-box;
		margin: 0;
		padding: 20px 24px;
	}

	.cookie-settings__save {
		box-sizing: border-box;
		min-width: 0;
		height: auto;
		white-space: normal;
	}
}

@media (max-width: 560px) {
	.cookie-consent-main {
		flex-direction: column;
		gap: 16px;
		width: calc(100% - 24px);
		bottom: 12px;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 24px 20px;
		border-radius: 16px;
	}

	.cookie-consent__container-left,
	.cookie-consent__container {
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
		margin: 0;
	}

	.cookie-consent__title {
		margin: 0;
		font-size: 22px;
		line-height: 1.25;
	}

	.cookie-consent__container-left-img {
		display: none;
	}

	.cookie-consent__text {
		margin: 0 0 16px;
		font-size: 14px;
		line-height: 1.5;
	}

	.cookie-consent__buttons-bottom {
		flex-direction: column;
	}

	.cookie-consent__buttons-bottom > .cookie-consent__button {
		flex: 0 0 auto;
	}

	.cookie-consent__links {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cookie-consent-overlay.is-settings-open,
	.cookie-consent-overlay.is-policy-page.is-settings-open {
		padding: 12px;
	}

	.cookie-settings {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: 16px;
	}

	.cookie-settings > .cookie-settings__header {
		min-height: 60px;
		padding: 12px 20px;
	}

	.cookie-settings__header > .cookie-settings__title {
		font-size: 18px;
	}

	.cookie-settings__intro {
		padding: 20px;
	}

	.cookie-settings__intro p,
	.cookie-category__description {
		font-size: 14px;
		line-height: 1.5;
	}

	.cookie-settings__select-all,
	.cookie-category {
		padding: 18px 20px;
	}

	.cookie-category__header {
		gap: 12px;
	}

	.cookie-category__title {
		min-width: 0;
		font-size: 15px;
	}

	.cookie-settings > .cookie-settings__footer {
		padding: 16px 20px;
	}
}