/* Галочка согласия и cookie-баннер. Токены темы РПЖ, с запасными значениями. */
.rpj-consent-field { margin: 20px 0 8px; }
.rpj-consent-field label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.rpj-consent-field input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rpj-blue, #204990); }
.rpj-consent-field a { color: var(--rpj-blue, #204990); text-decoration: underline; }
.rpj-consent-field input:focus-visible { outline: 2px solid var(--rpj-blue, #204990); outline-offset: 2px; }

.rpj-cookie {
	position: fixed; left: 28px; right: 28px; bottom: 16px; z-index: 1050;
	display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
	padding: 12px 16px; background: #fff; border: 1px solid #d5dbe6;
	box-shadow: 0 8px 24px rgba(20, 33, 63, .18);
	font-family: "Golos Text", system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: var(--rpj-ink, #14161c);
	animation: rpj-cookie-in .25s ease-out;
}
.rpj-cookie p { flex: 1 1 280px; margin: 0; }
.rpj-cookie a { color: var(--rpj-blue, #204990); text-decoration: underline; }
.rpj-cookie-btn {
	min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--rpj-blue, #204990); border-radius: 0;
	font: 600 13px/1.2 "Golos Text", system-ui, sans-serif; white-space: nowrap; cursor: pointer;
	transition: transform .1s ease-out, background-color .15s, color .15s;
}
.rpj-cookie-necessary { background: #fff; color: var(--rpj-blue, #204990); }
.rpj-cookie-all { background: var(--rpj-blue, #204990); color: #fff; }
.rpj-cookie-necessary:hover { background: var(--rpj-tint, #f2f5fa); }
.rpj-cookie-all:hover { background: #1a3b78; }
.rpj-cookie-btn:active { transform: translateY(1px); }
.rpj-cookie-btn:focus-visible, .rpj-cookie a:focus-visible { outline: 2px solid var(--rpj-blue, #204990); outline-offset: 2px; }
.rpj-cookie-all:focus-visible { outline-offset: 3px; }
@keyframes rpj-cookie-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
	.rpj-cookie { left: 12px; right: 12px; bottom: 12px; }
	.rpj-cookie-btn { flex: 1 1 140px; min-height: 44px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .rpj-cookie { animation: none; } .rpj-cookie-btn { transition: none; } }
html[data-motion="off"] .rpj-cookie { animation: none; }
html[data-motion="off"] .rpj-cookie-btn { transition: none; }
