/* Техно-Гранд: баннер и настройки cookie */
.tg-cc-banner,
.tg-cc-modal {
	--tg-cc-accent: rgb(242, 118, 6);
	--tg-cc-accent-hover: rgb(222, 104, 0);
	--tg-cc-dark: #61666f;
	--tg-cc-text: #2b2f36;
	--tg-cc-muted: #6b7079;
	--tg-cc-border: #e3e6eb;
	font-family: inherit;
	color: var(--tg-cc-text);
	box-sizing: border-box;
}
.tg-cc-banner *,
.tg-cc-modal * {
	box-sizing: border-box;
}
.tg-cc-banner[hidden],
.tg-cc-modal[hidden] {
	display: none !important;
}

/* баннер */
.tg-cc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 10040;
	max-width: 1140px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--tg-cc-border);
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(20, 24, 31, .18);
	animation: tg-cc-in .35s ease;
}
.tg-cc-banner-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 18px 22px;
}
.tg-cc-text {
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.5;
}
.tg-cc-text a,
.tg-cc-modal a {
	color: var(--tg-cc-accent);
	text-decoration: underline;
}
.tg-cc-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

/* кнопки */
.tg-cc-btn {
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	padding: 11px 18px;
	border-radius: 6px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tg-cc-btn:focus-visible,
.tg-cc-close:focus-visible,
.tg-cc-switch input:focus-visible + span {
	outline: 2px solid var(--tg-cc-accent);
	outline-offset: 2px;
}
.tg-cc-btn-primary {
	background: var(--tg-cc-accent);
	color: #fff;
}
.tg-cc-btn-primary:hover {
	background: var(--tg-cc-accent-hover);
}
.tg-cc-btn-secondary {
	background: var(--tg-cc-dark);
	color: #fff;
}
.tg-cc-btn-secondary:hover {
	background: #4d5159;
}
.tg-cc-btn-link {
	background: transparent;
	color: var(--tg-cc-text);
	border-color: var(--tg-cc-border);
}
.tg-cc-btn-link:hover {
	border-color: var(--tg-cc-dark);
}

/* окно настроек */
html.tg-cc-locked {
	overflow: hidden;
}
.tg-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 24, 31, .55);
}
.tg-cc-modal-box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	padding: 28px 28px 24px;
	box-shadow: 0 12px 40px rgba(20, 24, 31, .25);
}
.tg-cc-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: var(--tg-cc-muted);
	cursor: pointer;
}
.tg-cc-modal-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 40px 10px 0;
}
.tg-cc-modal-intro {
	font-size: 14px;
	line-height: 1.5;
	color: var(--tg-cc-muted);
	margin: 0 0 18px;
}
.tg-cc-category {
	border: 1px solid var(--tg-cc-border);
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.tg-cc-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.tg-cc-category-name {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	cursor: pointer;
}
.tg-cc-category-desc {
	font-size: 13px;
	line-height: 1.5;
	color: var(--tg-cc-muted);
}
.tg-cc-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
}

/* переключатель */
.tg-cc-switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	margin: 0;
	cursor: pointer;
}
.tg-cc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: inherit;
}
.tg-cc-switch span {
	position: absolute;
	inset: 0;
	background: #c9cdd4;
	border-radius: 24px;
	transition: background-color .15s ease;
	pointer-events: none;
}
.tg-cc-switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s ease;
}
.tg-cc-switch input:checked + span {
	background: var(--tg-cc-accent);
}
.tg-cc-switch input:checked + span::after {
	transform: translateX(20px);
}
.tg-cc-switch.is-disabled {
	cursor: not-allowed;
	opacity: .6;
}

@keyframes tg-cc-in {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

/* планшеты и телефоны */
@media (max-width: 991px) {
	.tg-cc-banner-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}
	.tg-cc-actions {
		flex-wrap: wrap;
	}
	.tg-cc-actions .tg-cc-btn {
		flex: 1 1 auto;
	}
}
@media (max-width: 575px) {
	.tg-cc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
	}
	.tg-cc-banner-inner {
		padding: 14px;
	}
	.tg-cc-text {
		font-size: 13px;
	}
	.tg-cc-actions {
		flex-direction: column-reverse;
	}
	.tg-cc-actions .tg-cc-btn,
	.tg-cc-modal-actions .tg-cc-btn {
		width: 100%;
	}
	.tg-cc-modal-actions {
		flex-direction: column-reverse;
	}
	.tg-cc-modal-box {
		padding: 22px 18px 18px;
	}
}
