/**
 * Ежедневные чек-листы — modd/cl/cl.css
 */

.ecl {
	--ecl-text: #1a2332;
	--ecl-muted: #5c6b7a;
	--ecl-border: #dde4ea;
	--ecl-surface: #f4f7fa;
	--ecl-card: #fff;
	--ecl-teal: #006089;
	--ecl-teal-soft: #e8f4fa;
	--ecl-green: #038231;
	--ecl-green-soft: #e8f5ec;
	--ecl-oge: #6b4c9a;
	--ecl-oge-soft: #f0eaf8;
	--ecl-radius: 10px;
	--ecl-shadow: 0 4px 24px rgba(0, 40, 80, 0.08);
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 16px 32px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ecl-text);
}

.ecl *,
.ecl *::before,
.ecl *::after {
	box-sizing: border-box;
}

/* ——— Главная ——— */
.ecl-home__hero {
	text-align: center;
	padding: 28px 12px 32px;
}

.ecl-home__eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ecl-teal);
	background: var(--ecl-teal-soft);
	border-radius: 999px;
}

.ecl-home__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.ecl-home__lead {
	margin: 0 auto;
	max-width: 32em;
	font-size: 15px;
	color: var(--ecl-muted);
}

.ecl-home__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.ecl-subject-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 18px 20px;
	background: var(--ecl-card);
	border: 1px solid var(--ecl-border);
	border-radius: var(--ecl-radius);
	box-shadow: var(--ecl-shadow);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s;
}

.ecl-subject-card:hover {
	border-color: var(--ecl-teal);
}

.ecl-subject-card__badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-radius: 6px;
	background: var(--ecl-teal-soft);
	color: var(--ecl-teal);
}

.ecl-subject-card__badge--oge {
	background: var(--ecl-oge-soft);
	color: var(--ecl-oge);
}

.ecl-subject-card__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.ecl-subject-card__hint {
	margin-top: auto;
	font-size: 13px;
	font-weight: 500;
	color: var(--ecl-teal);
}

/* ——— Лист заданий ——— */
.ecl-sheet__hero {
	margin-bottom: 20px;
	padding: 20px;
	background: linear-gradient(135deg, var(--ecl-teal-soft) 0%, var(--ecl-card) 55%);
	border: 1px solid var(--ecl-border);
	border-radius: var(--ecl-radius);
}

.ecl-sheet__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ecl-teal);
	text-decoration: none;
}

.ecl-sheet__back:hover {
	text-decoration: underline;
}

.ecl-sheet__title {
	margin: 0 0 16px;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
}

.ecl-progress {
	position: relative;
	margin-top: 12px;
	height: 8px;
	background: rgba(0, 96, 137, 0.12);
	border-radius: 999px;
	overflow: hidden;
}

.ecl-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, var(--ecl-teal), var(--ecl-green));
	border-radius: 999px;
	transition: width 0.35s ease;
}

.ecl-progress__label {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ecl-muted);
}

.ecl-sheet__tasks {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ——— Задание ——— */
.ecl-task {
	background: var(--ecl-card);
	border: 1px solid var(--ecl-border);
	border-radius: var(--ecl-radius);
	overflow: hidden;
	transition: border-color 0.2s, opacity 0.2s;
}

.ecl-task--done {
	border-color: var(--ecl-green);
	background: var(--ecl-green-soft);
}

.ecl-task--done .ecl-task__title {
	color: var(--ecl-muted);
	text-decoration: line-through;
	text-decoration-color: rgba(0, 0, 0, 0.25);
}

.ecl-task__title-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: linear-gradient(90deg, rgba(0, 96, 137, 0.12) 0%, rgba(0, 96, 137, 0.04) 42%, var(--ecl-card) 100%);
	border-bottom: 1px solid var(--ecl-border);
}

.ecl-task--done .ecl-task__title-bar {
	background: linear-gradient(90deg, rgba(3, 130, 49, 0.12) 0%, rgba(3, 130, 49, 0.04) 42%, var(--ecl-green-soft) 100%);
}

.ecl-task__check {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--ecl-border);
	border-radius: 8px;
	background: var(--ecl-card);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.ecl-task__check:hover {
	border-color: var(--ecl-teal);
}

.ecl-task__check-icon {
	display: block;
	width: 100%;
	height: 100%;
	background: transparent center/14px no-repeat;
}

.ecl-task--done .ecl-task__check {
	border-color: var(--ecl-green);
	background: var(--ecl-green);
}

.ecl-task--done .ecl-task__check-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

.ecl-task__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	top: -1px;
	min-width: 1.6em;
	margin: 0 6px 0 0;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--ecl-teal);
	border-radius: 6px;
	vertical-align: middle;
}

.ecl-task--done .ecl-task__num {
	color: #fff;
	background: var(--ecl-green);
}

.ecl-task__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: #1a2b33;
}

.ecl-task__text {
	display: inline;
}

.ecl-task__body {
	padding: 16px 18px 18px;
	font-size: 14px;
	line-height: 1.6;
}

.ecl-task__body .quote,
.ecl-task__body .title_spoiler,
.ecl-task__body .text_spoiler {
	margin: 12px 0;
	padding: 12px 14px;
	background: var(--ecl-surface);
	border: 1px solid var(--ecl-border);
	border-radius: 8px;
}

.ecl-task__body .table-wrap {
	overflow-x: auto;
	margin: 12px 0;
	-webkit-overflow-scrolling: touch;
}

.ecl-task__body table {
	width: 100%;
	max-width: 100%;
	margin: 12px 0;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 13px;
	line-height: 1.45;
	background: var(--ecl-card);
}

.ecl-task__body .table-wrap table {
	margin: 0;
}

.ecl-task__body th,
.ecl-task__body td {
	padding: 8px 10px;
	border: 1px solid var(--ecl-border);
	vertical-align: top;
	text-align: left;
}

.ecl-task__body th {
	background: var(--ecl-surface);
	font-weight: 700;
}

.ecl-task__body tr:nth-child(even) td {
	background: rgba(0, 96, 137, 0.03);
}

/* ——— Навигация ——— */
.ecl-sheet__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--ecl-border);
}

.ecl-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ecl-teal);
	background: var(--ecl-card);
	border: 1px solid var(--ecl-border);
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

.ecl-nav-btn:hover {
	background: var(--ecl-teal-soft);
	border-color: var(--ecl-teal);
}

.ecl-nav-btn--next {
	margin-left: auto;
}

/* ——— Ошибка ——— */
.ecl-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--ecl-muted);
}

.page-cl .header__logo-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	text-decoration: none;
}

.page-cl .header__logo {
	flex-shrink: 0;
}

.page-cl .header__logo-suffix {
	flex-shrink: 0;
	margin-top: 6px;
	font-weight: 700;
	font-size: 17px;
	line-height: 1;
	color: #000c2d;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.page-cl a.header__button-login.fhhhei {
	margin-right: 0;
}

@media screen and (max-width: 950px) {
	.page-cl .header__box-top {
		grid-template-columns: auto 1fr 30px 30px;
		grid-column-gap: 12px;
	}

	.page-cl .header__logo-link {
		grid-column: 1 / 2;
		max-width: calc(100vw - 108px);
	}

	.page-cl .header__logo-suffix {
		font-size: 15px;
	}

	.page-cl .header__search {
		grid-column: 1 / -1;
		width: 100%;
		box-sizing: border-box;
	}

	.page-cl .header__search .form-search {
		flex: 1;
		min-width: 0;
		width: 100%;
	}

	.page-cl .header__search .search__input {
		flex: 1;
		width: auto;
		min-width: 0;
	}
}

@media screen and (max-width: 420px) {
	.page-cl .header__logo-link {
		gap: 6px;
		max-width: calc(100vw - 96px);
	}

	.page-cl .header__logo-suffix {
		font-size: 13px;
	}
}

.page-cl #dle-content {
	max-width: none;
	padding: 0;
}

@media (max-width: 600px) {
	.ecl {
		padding-left: 12px;
		padding-right: 12px;
	}

	.ecl-task__title {
		font-size: 17px;
	}

	.ecl-task__title-bar {
		padding: 14px 14px;
		gap: 12px;
	}

	.ecl-task__body {
		padding: 14px;
	}

	.ecl-nav-btn {
		width: 100%;
		justify-content: center;
	}

	.ecl-nav-btn--next {
		margin-left: 0;
	}
}
