/* РиК: соответствие 152-ФЗ */

/* ---------- галочки согласия в формах ---------- */
.wpcf7-form .wpcf7-acceptance { display: block; }
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0 0 8px 0; }
.wpcf7-form .wpcf7-acceptance label { cursor: pointer; }
.wpcf7-form .rik152-hint {
	display: block;
	margin: 2px 0 12px 27px;
	font-size: 12px;
	line-height: 1.35;
	color: #6f6f6f;
}
.wpcf7-form.rik152-accepted .rik152-hint { display: none; }
.rik152-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------- окно cookie ---------- */
.rik152-cookie {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147483000;
	width: 620px;
	max-width: calc(100% - 32px);
	box-sizing: border-box;
	background: #fff;
	color: #0d0d0d;
	border: 1px solid #d9dee3;
	border-top: 3px solid #126db8;
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(13, 13, 13, .18);
	font-size: 14px;
	line-height: 1.45;
}
.rik152-cookie *, .rik152-cookie *::before, .rik152-cookie *::after { box-sizing: border-box; }
html.rik152-has-consent .rik152-cookie:not(.rik152-open) { display: none; }
.rik152-cookie__in { padding: 16px 18px; }
.rik152-cookie__text { margin: 0 0 14px 0; }
.rik152-cookie__text a { color: #126db8; text-decoration: underline; }
.rik152-cookie__text a:hover { color: #0b538f; }
.rik152-cookie__opts { margin: 0 0 14px 0; padding: 12px 0 0 0; border-top: 1px solid #e6e9ec; }
.rik152-cookie__opts[hidden] { display: none; }
.rik152-cookie__opt { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px 0; font-weight: 400; cursor: pointer; }
.rik152-cookie__opt input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0 0;
	opacity: 1;
	position: static;
	visibility: visible;
	-webkit-appearance: checkbox;
	appearance: auto;
	accent-color: #126db8;
}
.rik152-cookie__opt input[disabled] { opacity: .6; cursor: default; }
.rik152-cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rik152-cookie .rik152-btn--save { display: none; }
.rik152-cookie--cfg .rik152-btn--save { display: inline-block; }
.rik152-cookie--cfg .rik152-btn--accept,
.rik152-cookie--cfg .rik152-btn--cfg { display: none; }
.rik152-btn {
	display: inline-block;
	width: auto;
	height: auto;
	min-height: 38px;
	margin: 0;
	padding: 8px 18px;
	border: 1px solid #126db8;
	border-radius: 19px;
	background: #fff;
	color: #126db8;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	opacity: 1;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.rik152-btn:focus-visible { outline: 2px solid #0b538f; outline-offset: 2px; }
.rik152-btn--primary { background: #e28400; border-color: #e28400; color: #fff; }
.rik152-btn--link { border-color: transparent; background: transparent; padding-left: 8px; padding-right: 8px; text-decoration: underline; }
@media (hover: hover) {
	.rik152-btn:hover { background: #126db8; color: #fff; }
	.rik152-btn--primary:hover { background: #cf7900; border-color: #cf7900; color: #fff; }
	.rik152-btn--link:hover { background: transparent; color: #0b538f; }
}

@media (max-width: 600px) {
	.rik152-cookie { left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: 13px; }
	.rik152-cookie__in { padding: 14px; }
	.rik152-btn { flex: 1 1 auto; }
	/* кнопка чата amoCRM не должна закрывать окно cookie на телефоне */
	html.rik152-cookie-shown .amo-button-holder { bottom: calc(var(--rik152-cookie-h, 0px) + 20px) !important; }
}

/* ---------- строка с реквизитами ---------- */
.rik152-legal {
	position: relative;
	z-index: 1;
	clear: both;
	background: #f4f6f8;
	border-top: 1px solid #e1e5e9;
	color: #4a4a4a;
	font-size: 13px;
	line-height: 1.5;
}
.rik152-legal__in {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 16px;
	text-align: center;
}
.rik152-legal a { color: #126db8; text-decoration: underline; }
.rik152-legal a:hover { color: #e28400; }

/* ---------- значки MAX и Дзена на месте значков темы ---------- */
.rik152-ico::before { content: none !important; display: none !important; }
.rik152-ico svg {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	vertical-align: -0.18em;
	fill: currentColor;
	border-radius: 0;
}
/* круглые кнопки соцсетей: размер как у соседних значков */
.soc-menu-link .rik152-ico,
.mob-soc-net-link .rik152-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.soc-menu-link .rik152-ico svg,
.mob-soc-net-link .rik152-ico svg,
.mob-soc-net .rik152-ico svg { width: 1.25em; height: 1.25em; vertical-align: middle; border-radius: 0; }
