/**
 * Модуль «4ЕГЭ онлайн» — стили (modd/online/vpr-online.css)
 * Шрифт и цвета страницы наследуются с body; акценты в духе шаблона сайта
 */

/* ——— страница модуля (modd/online/online.php) ——— */
.vpr-online {
	--vpr-text: #000;
	--vpr-muted: #666;
	--vpr-muted2: #687385;
	--vpr-bg: #fff;
	--vpr-surface: #f9f9f9;
	--vpr-border: #dde4ea;
	--vpr-teal: #006089;
	--vpr-teal-hover: #004d6e;
	--vpr-green: #038231;
	--vpr-link-hover: #f30;
	--vpr-radius: 4px;
	--vpr-chip-bg: #f9fafa;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: var(--vpr-text);
	box-sizing: border-box;
}

.vpr-online *,
.vpr-online *::before,
.vpr-online *::after {
	box-sizing: inherit;
}

.vpr-online-wrap,
[class~="4vpr-online-wrap"] {
	max-width: 100%;
	margin: 0 auto;
	width: 100%;
	overflow-x: hidden;
}

.vpr-online-card,
.vpr-online-menu-box {
	background: var(--vpr-bg);
	border: 1px solid var(--vpr-border);
	border-radius: var(--vpr-radius);
	padding: 10px 12px;
	margin-bottom: 12px;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* только для скринридеров */
.vpr-online-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vpr-online-nav__sticky {
	position: sticky;
	top: 0;
	z-index: 8;
	background: var(--vpr-bg);
	padding-bottom: 8px;
	margin: -2px -2px 6px;
	padding-left: 2px;
	padding-right: 2px;
	box-shadow: 0 10px 12px -12px rgba(0, 0, 0, 0.18);
}

.vpr-online-bc {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 0;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--vpr-muted);
}

.vpr-online-bc__item {
	display: inline-flex;
	align-items: baseline;
	max-width: 100%;
}

.vpr-online-bc__item:not(:last-child)::after {
	content: "/";
	margin: 0 6px;
	color: #b8c5d0;
	font-weight: 400;
}

.vpr-online-bc__link {
	color: var(--vpr-teal);
	text-decoration: none;
	font-weight: 500;
}

.vpr-online-bc__link:hover {
	color: var(--vpr-link-hover);
	text-decoration: underline;
}

.vpr-online-bc__text {
	color: var(--vpr-text);
	font-weight: 600;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.vpr-online-nav__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 6px 8px;
}

.vpr-online-nav__select {
	flex: 1 1 140px;
	min-width: 0;
}

.vpr-online-nav__sep {
	align-self: center;
	color: #b8c5d0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	padding: 0 2px;
	flex: 0 0 auto;
}

@media screen and (max-width: 520px) {
	.vpr-online-nav__sep {
		display: none;
	}

	.vpr-online-nav__select {
		flex: 1 1 100%;
	}
}

.vpr-online-select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 5px 8px;
	font: inherit;
	font-size: 13px;
	line-height: 1.35;
	color: var(--vpr-text);
	background: #fff;
	border: 1px solid var(--vpr-border);
	border-radius: var(--vpr-radius);
}

.vpr-online-select:hover {
	border-color: #b8c5d0;
}

.vpr-online-select:focus {
	outline: none;
	border-color: var(--vpr-teal);
	box-shadow: 0 0 0 1px var(--vpr-teal);
}

.vpr-online-nav__levels {
	padding-top: 4px;
}

.vpr-online-menu-level {
	margin: 0;
	padding: 8px 0 0;
	border-top: 1px solid var(--vpr-border);
}

.vpr-online-menu-level:first-child {
	padding-top: 6px;
	border-top: none;
}

.vpr-online-menu-topics {
	padding-bottom: 14px;
}

.vpr-online-chips-scroll {
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 2px;
}

.vpr-online-chips-scroll--nums {
	overflow-x: auto;
}

.vpr-online-chips {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
	vertical-align: top;
}

.vpr-online-menu-problems .vpr-online-chips-scroll .vpr-online-task-grid {
	flex-wrap: nowrap;
}

.vpr-online-chips li {
	margin: 0;
	flex-shrink: 0;
}

@media screen and (min-width: 720px) {
	.vpr-online-chips {
		flex-wrap: wrap;
		white-space: normal;
	}

	.vpr-online-menu-problems .vpr-online-chips-scroll .vpr-online-task-grid {
		flex-wrap: wrap;
	}
}

/* как .butnew: обводка бирюзой */
.vpr-online-chips a {
	display: inline-block;
	padding: 4px 14px;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none !important;
	color: var(--vpr-teal) !important;
	background: var(--vpr-chip-bg) !important;
	border: 2px solid var(--vpr-teal) !important;
	border-radius: var(--vpr-radius) !important;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vpr-online-chips a:hover {
	background: var(--vpr-teal) !important;
	color: #ffeded !important;
	border-color: var(--vpr-teal) !important;
}

.vpr-online-chips a.vpr-online-active {
	background: var(--vpr-teal) !important;
	color: #ffeded !important;
	font-weight: 400;
}

.vpr-online-task-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.vpr-online-task-grid li {
	margin: 0;
	flex-shrink: 0;
}

/* как .butnew5 — компактные номера */
.vpr-online-task-grid a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none !important;
	color: var(--vpr-teal) !important;
	background: var(--vpr-chip-bg) !important;
	border: 2px solid var(--vpr-teal) !important;
	border-radius: var(--vpr-radius) !important;
	transition: background 0.15s, color 0.15s;
}

.vpr-online-task-grid a:hover {
	background: var(--vpr-teal) !important;
	color: #ffeded !important;
}

.vpr-online-task-grid a.vpr-online-active {
	background: var(--vpr-teal) !important;
	color: #ffeded !important;
}

.vpr-online-content {
	margin-top: 12px;
}

/* страница экзамена (/online/slug/): задания и темы кнопками */
.vpr-online-exam-map__task {
	padding-top: 14px;
	margin-top: 14px;
	border-top: 1px solid var(--vpr-border);
}

.vpr-online-exam-map__task:first-child {
	padding-top: 0;
	margin-top: 0;
	border-top: none;
}

.vpr-online-exam-map__task-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--vpr-text);
}

.vpr-online-content-card {
	background: var(--vpr-bg);
	border: 1px solid var(--vpr-border);
	border-radius: var(--vpr-radius);
	padding: 16px 18px;
	margin: 0 0 20px;
	min-width: 0;
	overflow-x: auto;
}

.vpr-online-problem-text {
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: break-word;
	word-break: break-word;
}

.vpr-online-problem-text img,
.vpr-online-content-card img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.vpr-online-problem-text table {
	max-width: 100%;
	display: block;
	overflow-x: auto;
}

.vpr-online-source {
	margin: 18px 0 0;
	padding: 0;
	font-size: 11px;
	line-height: 1.45;
	color: #888;
	background: transparent;
	border: none;
	border-radius: 0;
	overflow-wrap: break-word;
}

.vpr-online-source--embed {
	margin-top: 12px;
	font-size: 11px;
}

.vpr-online-source__label {
	font-weight: 400;
	color: #999;
}

.vpr-online-source__text {
	color: #888;
}

.vpr-online-details {
	margin: 14px 0 0;
	border: 1px solid var(--vpr-border);
	border-radius: var(--vpr-radius);
	background: #fff;
	overflow: hidden;
}

.vpr-online-problem-text + .vpr-online-solution.vpr-online-details {
	margin-top: 24px;
}

.vpr-online-details__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 400;
	list-style: none;
	color: var(--vpr-text);
	user-select: none;
}

.vpr-online-details__summary::-webkit-details-marker {
	display: none;
}

.vpr-online-details__summary::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 2px solid var(--vpr-teal);
	border-bottom: 2px solid var(--vpr-teal);
	transform: rotate(-45deg);
	transition: transform 0.2s;
	flex-shrink: 0;
}

.vpr-online-details[open] .vpr-online-details__summary::after {
	transform: rotate(135deg);
	margin-top: 2px;
}

.vpr-online-details__summary:hover {
	background: rgba(0, 96, 137, 0.06);
}

.vpr-online-details__body {
	padding: 12px 14px 14px;
	border-top: 1px solid var(--vpr-border);
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: break-word;
}

.vpr-online-next,
[class~="4vpr-online-next"] {
	margin: 0;
}

/* полноширинные кнопки под карточкой */
.vpr-online-next--below {
	margin: 12px 0 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.vpr-online-complaint-line {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.4;
}

.vpr-online-source + .vpr-online-complaint-line {
	margin-top: 6px;
}

.vpr-online-complaint-link {
	color: #888;
	text-decoration: underline;
}

.vpr-online-complaint-link:hover {
	color: var(--vpr-link-hover);
}

.vpr-online-edit-note--full {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.vpr-online-edit-note.vpr-online-edit-note--full {
	margin: 14px 0 0;
}

.vpr-online-next--below a,
.vpr-online-edit-note--full a {
	width: 100%;
	max-width: 100%;
	justify-content: center;
	box-sizing: border-box;
}

.vpr-online-btn--ghost {
	display: inline-flex;
	align-items: center;
	padding: 6px 18px;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none !important;
	color: var(--vpr-teal) !important;
	background: var(--vpr-chip-bg) !important;
	border: 2px solid var(--vpr-teal) !important;
	border-radius: var(--vpr-radius) !important;
	transition: background 0.15s, color 0.15s;
}

.vpr-online-btn--ghost:hover {
	background: var(--vpr-teal) !important;
	color: #ffeded !important;
}

.vpr-online-hint {
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--vpr-radius);
	border: 1px solid #a6d1b0;
	background: #e9fdee;
	color: var(--vpr-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* главная модуля: две кнопки выбора экзамена внутри блока меню (без выбранного предмета) */
.vpr-online-landing-picks {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.vpr-online-landing-picks--in-menu {
	justify-content: stretch;
	flex-wrap: nowrap;
	width: calc(100% + 24px);
	max-width: none;
	margin: 8px -12px 0;
	padding: 12px 12px 10px;
	border-top: 1px solid var(--vpr-border);
}

.vpr-online-landing-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
	padding: 18px 12px 16px;
	text-decoration: none !important;
	color: var(--vpr-text) !important;
	background: var(--vpr-surface);
	border: 2px solid var(--vpr-border);
	border-radius: 10px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}

.vpr-online-landing-card:hover {
	border-color: var(--vpr-teal);
	background: #fff;
	box-shadow: 0 4px 14px -6px rgba(0, 96, 137, 0.35);
	color: var(--vpr-teal) !important;
}

.vpr-online-landing-card:focus-visible {
	outline: none;
	border-color: var(--vpr-teal);
	box-shadow: 0 0 0 2px var(--vpr-teal);
}

.vpr-online-landing-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--vpr-border);
	color: var(--vpr-teal);
}

.vpr-online-landing-card:hover .vpr-online-landing-card__icon {
	border-color: rgba(0, 96, 137, 0.35);
}

.vpr-online-landing-card__svg {
	display: block;
	width: 40px;
	height: 40px;
}

.vpr-online-landing-card__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
}

@media screen and (max-width: 440px) {
	.vpr-online-landing-picks--in-menu {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.vpr-online-landing-picks--in-menu .vpr-online-landing-card {
		flex: 1 1 auto;
		width: 100%;
	}
}

.mathml-container {
	font-family: math;
	max-width: 100%;
}

div.mathml-block {
	font-size: 1.05em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.12em 0.3em;
}

div.mathml-block .katex {
	font-size: 1.05em;
}

/* ——— виджет в новости ——— */
.vpr-online-widget-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	align-items: stretch;
	margin: 18px 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.vpr-online-widget-group > .vpr-online-widget--embed {
	margin: 0;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.vpr-online-widget--embed .vpr-online-problem-text--widget-cut {
	margin: 0;
	font: inherit;
	color: inherit;
	line-height: inherit;
}

.vpr-online-widget--embed .vpr-online-problem-text--widget-cut br {
	line-height: inherit;
}

.vpr-online-widget.vpr-online-widget--embed {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: #000;
	max-width: 100%;
	width: 100%;
	min-width: 0;
	margin: 18px 0;
	padding: 14px 16px;
	border: 1px solid #dde4ea;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	clear: both;
	overflow-wrap: anywhere;
}

.vpr-online-widget__cap {
	display: block;
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	color: #000;
}

.vpr-online-widget__cap-err {
	color: #c00;
	font-size: 14px;
	font-weight: 600;
}

.vpr-online-widget__meta {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: #666;
	line-height: 1.45;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.vpr-online-widget__meta .vpr-online-widget__meta-link {
	color: #3763c2;
	text-decoration: none;
	font-weight: 500;
}

.vpr-online-widget__meta .vpr-online-widget__meta-link:hover,
.vpr-online-widget__meta .vpr-online-widget__meta-link:focus-visible {
	text-decoration: underline;
	color: #2c5098;
}

.vpr-online-widget__meta .vpr-online-widget__meta-plain {
	color: #666;
	font-weight: 500;
}

.vpr-online-widget__meta .vpr-online-widget__meta-sep {
	color: #999;
	font-weight: 400;
}

.vpr-online-widget__teaser {
	display: block;
	margin: 8px 0 0;
	font-style: normal;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.vpr-online-widget--embed .vpr-online-problem-box {
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0 0 12px;
	background: transparent;
}

.vpr-online-widget--embed .vpr-online-problem-text {
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: break-word;
	word-break: break-word;
}

.vpr-online-widget--embed .vpr-online-problem-text img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.vpr-online-widget--embed .vpr-online-problem-text table {
	max-width: 100%;
	display: block;
	overflow-x: auto;
}

.vpr-online-widget--embed .mathml-container {
	font-family: math;
	max-width: 100%;
}

.vpr-online-widget--embed div.mathml-block {
	font-size: 1.05em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.12em 0.3em;
}

.vpr-online-widget--embed div.mathml-block .katex {
	font-size: 1.05em;
}

.vpr-online-widget__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 18px;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none !important;
	color: #ffeded !important;
	background: #006089 !important;
	border: 2px solid #006089 !important;
	border-radius: 4px !important;
	transition: background 0.15s, border-color 0.15s;
}

.vpr-online-widget__go:hover {
	background: #004d6e !important;
	border-color: #004d6e !important;
	color: #fff !important;
}
