/* Баннер согласия на cookie — макет «Итог · 6c».
   Зелёный взят фирменный (#1D3A37), а не #14322B из макета: на сайте всё
   приведено к одному значению. Шрифт — сайтовый Jost, как на кабинете и 404. */

.tk-cookie {
	--tkc-green: #1D3A37;
	--tkc-green-dark: #122825;
	--tkc-card: #FFFDF9;
	--tkc-line: #E4DCCF;
	--tkc-btn-line: #D3C9B8;
	--tkc-ink: #55504A;
	--tkc-muted: #7C756C;
	--tkc-faint: #8A8279;
	--tkc-cream: #F7F4EF;
	--tkc-chip: #F3EDE2;

	position: fixed;
	left: 32px;
	bottom: 32px;
	z-index: 99998;
	width: 464px;
	max-width: calc(100vw - 64px);
	font-family: inherit;
}

.tk-cookie[hidden] { display: none; }

.tk-cookie *,
.tk-cookie *::before,
.tk-cookie *::after { box-sizing: border-box; }

.tk-cookie__card {
	background: var(--tkc-card);
	border: 1px solid var(--tkc-line);
	box-shadow: 0 1px 2px rgba(29, 58, 55, 0.05), 0 26px 50px -14px rgba(29, 58, 55, 0.26);
	padding: 28px 30px 24px;
	animation: tkCookieIn 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tkCookieIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

.tk-cookie__view {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tk-cookie__view[hidden] { display: none; }

/* ---------- шапка ---------- */

.tk-cookie__head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.tk-cookie .tk-cookie__icon {
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 50%;
	background: var(--tkc-chip);
	border: 1px solid var(--tkc-line);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	line-height: 1;
	padding: 0;
}

.tk-cookie button.tk-cookie__back {
	font-size: 16px;
	color: var(--tkc-green);
	font-family: inherit;
	cursor: pointer;
	transition: background 160ms ease;
}

.tk-cookie button.tk-cookie__back:hover { background: #EAE3D6; }

.tk-cookie__headtext {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 2px;
}

.tk-cookie .tk-cookie__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--tkc-green);
	text-transform: none;
}

.tk-cookie .tk-cookie__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tkc-ink);
	text-wrap: pretty;
}

.tk-cookie .tk-cookie__text--small {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--tkc-muted);
}

/* ---------- кнопки ---------- */

.tk-cookie__actions {
	display: flex;
	gap: 10px;
}

.tk-cookie button.tk-cookie__btn {
	flex: 1;
	height: 52px;
	padding: 0 10px;
	border: 1px solid var(--tkc-btn-line);
	border-radius: 0;
	background: transparent;
	color: var(--tkc-green);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tk-cookie button.tk-cookie__btn:hover {
	border-color: var(--tkc-green);
	background: #F6F2EA;
}

.tk-cookie button.tk-cookie__btn--primary {
	border-color: var(--tkc-green);
	background: var(--tkc-green);
	color: var(--tkc-cream);
}

.tk-cookie button.tk-cookie__btn--primary:hover {
	border-color: var(--tkc-green-dark);
	background: var(--tkc-green-dark);
	color: var(--tkc-cream);
	transform: translateY(-1px);
}

/* ---------- сноска ---------- */

.tk-cookie__foot {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13.5px;
	color: #A9A093;
}

.tk-cookie .tk-cookie__link {
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 13.5px;
	color: var(--tkc-faint);
	text-decoration: none;
	cursor: pointer;
	transition: color 160ms ease;
}

.tk-cookie .tk-cookie__link:hover { color: var(--tkc-green); }

/* ---------- ссылка «изменить выбор» ---------- */

.tk-cookie-reopen {
	padding: 0 0 22px;
	text-align: center;
	background: transparent;
}

.tk-cookie-reopen[hidden] { display: none; }

.tk-cookie-reopen .tk-cookie__link {
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 13px;
	color: #8A8279;
	text-decoration: none;
	cursor: pointer;
}

.tk-cookie-reopen .tk-cookie__link:hover {
	color: #1D3A37;
	text-decoration: underline;
}

/* ---------- мобильные: лист снизу ---------- */

@media (max-width: 767px) {
	.tk-cookie {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
	}

	.tk-cookie__card {
		padding: 22px 20px 20px;
		border-left: none;
		border-right: none;
		border-bottom: none;
	}

	.tk-cookie__actions {
		flex-direction: column;
	}

	.tk-cookie button.tk-cookie__btn {
		/* flex: none обязателен: в колоночном флексе flex: 1 обнуляет basis,
		   и заданная высота схлопывается до содержимого. */
		flex: none;
		width: 100%;
		height: 54px;
	}

	/* Сноска в столбик — иначе разделитель «·» повисает в конце строки. */
	.tk-cookie__foot {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.tk-cookie__foot > span[aria-hidden] {
		display: none;
	}

	.tk-cookie .tk-cookie__text {
		font-size: 14.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tk-cookie__card,
	.tk-cookie__view {
		animation: none;
	}

	.tk-cookie button.tk-cookie__btn--primary:hover {
		transform: none;
	}
}
