/* Ecoset MTC: public funnel styles (banner, steps, roles, glossary). */

.mtc-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	background: #1f5c3d;
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
}

/* Кнопки баннера — в ряд с зазором (задание Виктора 24.09, п. 1:
   «Поехали» и «Скрыть» были впритык). */
.mtc-banner__actions {
	display: inline-flex;
	gap: 14px;
	align-items: center;
}

.mtc-banner__go {
	display: inline-block;
	padding: 6px 18px;
	border-radius: 18px;
	background: #fff;
	color: #1f5c3d;
	font-weight: 600;
	text-decoration: none;
}

.mtc-banner__hide {
	padding: 6px 10px;
	border: 0;
	background: none;
	color: rgba( 255, 255, 255, 0.8 );
	font-size: 14px;
	cursor: pointer;
}

.mtc-banner__hide:hover {
	color: #fff;
	text-decoration: underline;
}

/* Fallback output (themes without wp_body_open): pin to the top. */
.mtc-banner--fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.25 );
}

.mtc-entry {
	max-width: 720px;
	margin: 0 auto;
}

.mtc-step {
	display: none;
}

.mtc-step.is-active {
	display: block;
}

.mtc-step h2 {
	margin: 24px 0 12px;
	font-size: 26px;
	line-height: 1.25;
}

.mtc-step__lead p {
	font-size: 17px;
	line-height: 1.55;
}

.mtc-step__actions {
	margin: 20px 0 32px;
}

.mtc-next {
	padding: 12px 28px;
	border: 0;
	border-radius: 24px;
	background: #1f5c3d;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.mtc-cycle {
	width: 100%;
	height: auto;
	margin: 16px 0;
}

.mtc-cycle__box {
	fill: #eef5f0;
	stroke: #1f5c3d;
	stroke-width: 1.5;
}

.mtc-cycle__label {
	fill: #22332a;
	font-size: 12px;
	font-family: inherit;
}

.mtc-cycle__arrow {
	fill: none;
	stroke: #1f5c3d;
	stroke-width: 2;
}

.mtc-cycle__arrowhead {
	fill: none;
	stroke: #1f5c3d;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtc-cycle__caption {
	fill: #5a6b61;
	font-size: 12px;
	font-family: inherit;
}

.mtc-roles {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 12px;
	margin: 16px 0 40px;
}

.mtc-role {
	border: 1px solid #d5e0d9;
	border-radius: 12px;
	overflow: hidden;
}

.mtc-role__head {
	width: 100%;
	padding: 16px;
	border: 0;
	background: #f4f8f5;
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.mtc-role__body {
	display: none;
	padding: 0 16px 16px;
}

.mtc-role.is-open .mtc-role__body {
	display: block;
}

.mtc-role__body ul {
	margin: 12px 0;
	padding-left: 18px;
}

.mtc-role__body li {
	margin: 6px 0;
	line-height: 1.45;
}

.mtc-role__honest {
	margin: 8px 0 0;
	color: #5a6b61;
	font-size: 14px;
	border-top: 1px dashed #d5e0d9;
	padding-top: 8px;
}

.mtc-term {
	position: relative;
	border-bottom: 1px dotted #1f5c3d;
	cursor: help;
}

.mtc-term__tip {
	display: none;
	position: absolute;
	z-index: 30;
	left: 0;
	bottom: calc( 100% + 6px );
	width: max-content;
	max-width: 280px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #22332a;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.mtc-term:hover .mtc-term__tip,
.mtc-term:focus .mtc-term__tip {
	display: block;
}

/* Screen 3: "One month" simulation. */
.mtc-sim {
	margin: 16px 0 40px;
}

.mtc-sim__card {
	padding: 20px;
	border: 1px solid #d5e0d9;
	border-radius: 12px;
	background: #fbfdfb;
}

.mtc-sim__q {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
}

.mtc-sim__num {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.55;
}

.mtc-sim__note {
	margin: 0 0 16px;
	color: #5a6b61;
	font-size: 14px;
	line-height: 1.5;
}

.mtc-sim__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mtc-sim__choice {
	padding: 10px 22px;
	border: 1px solid #1f5c3d;
	border-radius: 22px;
	background: #fff;
	color: #1f5c3d;
	font-size: 16px;
	cursor: pointer;
}

.mtc-sim__choice:hover {
	background: #1f5c3d;
	color: #fff;
}

.mtc-sim__slider {
	width: 100%;
	margin: 8px 0 4px;
	accent-color: #1f5c3d;
}

.mtc-sim__scale {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin: 4px 0 16px;
}

.mtc-sim__scale-note {
	color: #5a6b61;
	font-size: 12px;
}

.mtc-sim__scale-val {
	font-weight: 600;
	color: #1f5c3d;
	font-size: 14px;
}

.mtc-sim__result {
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 1.5;
	color: #1f5c3d;
}

.mtc-sim__solo {
	margin: 0 0 16px;
	color: #5a6b61;
	font-size: 14px;
}

.mtc-sim__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mtc-sim__ghost {
	padding: 12px 24px;
	border: 1px solid #d5e0d9;
	border-radius: 24px;
	background: none;
	color: #22332a;
	font-size: 15px;
	cursor: pointer;
}

.mtc-sim__ghost:hover {
	border-color: #1f5c3d;
}

/* Screen 4: first-step action cards and forms. */
.mtc-actions {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 12px;
	margin: 16px 0 40px;
}

.mtc-action {
	border: 1px solid #d5e0d9;
	border-radius: 12px;
	overflow: hidden;
}

.mtc-action__head {
	width: 100%;
	padding: 16px;
	border: 0;
	background: #f4f8f5;
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.mtc-action__body {
	display: none;
	padding: 0 16px 16px;
}

.mtc-action.is-open .mtc-action__body {
	display: block;
}

.mtc-action__lead {
	margin: 12px 0 16px;
	font-size: 15px;
	line-height: 1.5;
}

.mtc-action__note {
	margin: 0 0 12px;
	color: #5a6b61;
	font-size: 14px;
}

.mtc-form__label {
	display: block;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.4;
}

.mtc-form__input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid #d5e0d9;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 16px;
}

.mtc-form__input:focus {
	border-color: #1f5c3d;
	outline: none;
}

.mtc-form__area {
	resize: vertical;
}

.mtc-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
}

.mtc-form__slots {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

.mtc-form__slots legend {
	padding: 0;
}

.mtc-form__slot {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	align-items: center;
	margin: 0 0 8px;
	padding: 10px 12px;
	border: 1px solid #d5e0d9;
	border-radius: 8px;
	cursor: pointer;
}

.mtc-form__slot input {
	grid-row: span 2;
	accent-color: #1f5c3d;
}

.mtc-form__slot-place {
	color: #5a6b61;
	font-size: 13px;
}

.mtc-form__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 4px 0 8px;
	font-size: 13px;
	line-height: 1.45;
}

.mtc-form__consent input {
	margin-top: 2px;
	accent-color: #1f5c3d;
}

.mtc-form__consent a {
	color: #1f5c3d;
}

.mtc-form__error {
	display: block;
	margin-top: 4px;
	color: #a33a2a;
	font-size: 13px;
}

.mtc-form__error:empty {
	display: none;
}

.mtc-thanks__title {
	margin: 12px 0 8px;
	font-size: 18px;
	color: #1f5c3d;
}

.mtc-thanks__text {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.5;
}

@media ( max-width: 600px ) {
	.mtc-step h2 {
		font-size: 22px;
	}

	.mtc-cycle__label {
		font-size: 14px;
	}
}

/* Game cabinet (slice 3) */

.mtc-game {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #d9e5de;
	border-radius: 12px;
	background: #f7faf8;
}

.mtc-game__hello {
	color: #4a5a51;
}

.mtc-game__btn {
	display: inline-block;
	padding: 10px 22px;
	border: 0;
	border-radius: 8px;
	background: #1f5c3d;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.mtc-game__level {
	margin: 12px 0 18px;
}

.mtc-game__level-num {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 10px;
	border-radius: 10px;
	background: #1f5c3d;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.mtc-game__level-title {
	font-size: 16px;
	font-weight: 600;
}

.mtc-game__progress {
	max-width: 420px;
	margin-top: 8px;
}

.mtc-game__progress-track {
	height: 8px;
	border-radius: 4px;
	background: #dbe7e0;
	overflow: hidden;
}

.mtc-game__progress-fill {
	height: 100%;
	border-radius: 4px;
	background: #3d8f63;
}

.mtc-game__progress-note {
	display: block;
	margin-top: 4px;
	color: #4a5a51;
	font-size: 13px;
}

.mtc-game__tokens {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.mtc-game__token {
	min-width: 130px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #d9e5de;
	border-radius: 10px;
	background: #fff;
}

.mtc-game__token-label {
	display: block;
	color: #4a5a51;
	font-size: 13px;
}

.mtc-game__token-value {
	display: block;
	margin-top: 2px;
	font-size: 20px;
	font-weight: 700;
	color: #1f5c3d;
}

.mtc-game__token--trust .mtc-game__token-value {
	color: #8a6d1f;
}

.mtc-game__history {
	margin-top: 8px;
	border-collapse: collapse;
}

.mtc-game__history th,
.mtc-game__history td {
	padding: 6px 12px;
	border-bottom: 1px solid #e3ece7;
	text-align: left;
	font-size: 14px;
}

.mtc-game__history .is-credit {
	color: #1f5c3d;
	font-weight: 600;
}

.mtc-game__history .is-debit {
	color: #a33a2a;
	font-weight: 600;
}

.mtc-game__achievements {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mtc-game__achievement {
	flex: 1 1 240px;
	padding: 10px 14px;
	border: 1px solid #d9e5de;
	border-radius: 10px;
	background: #fff;
}

.mtc-game__achievement.is-locked {
	opacity: 0.55;
	background: #f4f6f5;
}

.mtc-game__achievement-mark {
	color: #3d8f63;
	font-weight: 700;
}

.mtc-game__achievement-title {
	display: inline;
	margin-left: 4px;
	font-weight: 600;
}

.mtc-game__achievement-description {
	display: block;
	margin-top: 2px;
	color: #4a5a51;
	font-size: 13px;
}

.mtc-tests {
	margin: 20px 0;
	padding: 16px 18px;
	border: 1px dashed #b9cfc2;
	border-radius: 12px;
	background: #fbfdfc;
}

.mtc-tests h3 {
	margin: 0 0 6px;
	font-size: 17px;
}

.mtc-tests__lead {
	margin: 0 0 12px;
	color: #4a5a51;
	font-size: 14px;
	line-height: 1.5;
}

.mtc-tests__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mtc-tests__item {
	flex: 1 1 240px;
}

.mtc-tests__item a {
	color: #1f5c3d;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid #9fc4af;
}

.mtc-tests__item a:hover {
	border-bottom-color: #1f5c3d;
}

.mtc-tests__note {
	display: block;
	margin-top: 2px;
	color: #6b7a72;
	font-size: 13px;
}

.mtc-game__course {
	padding: 12px 16px;
	border: 1px solid #d9e5de;
	border-radius: 10px;
	background: #fff;
}

.mtc-game__course a {
	color: #1f5c3d;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid #9fc4af;
}

.mtc-game__course-status {
	margin-left: 8px;
	color: #8a6d1f;
	font-size: 13px;
}

.mtc-game__course-status.is-done {
	color: #1f5c3d;
}

.mtc-game__course-note {
	margin: 6px 0 0;
	color: #4a5a51;
	font-size: 13px;
}

.mtc-team__note {
	color: #4a5a51;
	font-size: 14px;
}

.mtc-team__forms {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mtc-team__form {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px;
	border: 1px solid #d9e5de;
	border-radius: 10px;
	background: #fff;
}

.mtc-team__form input[type="text"] {
	padding: 9px 12px;
	border: 1px solid #c6d6cc;
	border-radius: 8px;
	font-size: 15px;
}

.mtc-team__code {
	margin-left: 10px;
	color: #8a6d1f;
	font-size: 13px;
}

.mtc-team__roster {
	margin: 8px 0 14px;
	padding-left: 18px;
}

.mtc-team__roster li {
	margin: 3px 0;
}

.mtc-team__quests {
	margin: 6px 0 0;
	padding-left: 0;
	list-style: none;
}

.mtc-team__quests li {
	margin: 8px 0;
	padding: 8px 12px;
	border: 1px solid #e3ece7;
	border-radius: 8px;
}

.mtc-team__quests li.is-done {
	border-color: #9fc4af;
	background: #f2f8f4;
}

.mtc-team__quest-mark {
	color: #3d8f63;
	font-weight: 700;
}

.mtc-team__quest-note {
	display: block;
	color: #6b7a72;
	font-size: 13px;
}

.mtc-mentor__invite code {
	padding: 2px 8px;
	border-radius: 6px;
	background: #eef5f0;
	font-size: 13px;
	word-break: break-all;
}

.mtc-mentor__note,
.mtc-mentor__invite {
	color: #4a5a51;
	font-size: 14px;
}

.mtc-mentor__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.mtc-mentor__form input[type="text"] {
	flex: 1 1 200px;
	padding: 9px 12px;
	border: 1px solid #c6d6cc;
	border-radius: 8px;
	font-size: 15px;
}

/* Mobile refinement (срез 5): cabinet, teams, mentorship.
   Экраны до 600px — тач-цели не меньше 44px, кнопки во всю
   ширину, таблица истории скроллится, формы столбиком,
   жетоны — две в ряд. */

@media ( max-width: 600px ) {
	.mtc-banner {
		padding: 8px 10px;
		font-size: 14px;
	}

	.mtc-banner__actions {
		flex: 1 1 100%;
		justify-content: center;
	}

	.mtc-banner__go {
		flex: 1 1 auto;
		text-align: center;
	}

	.mtc-entry {
		padding: 0 4px;
	}

	.mtc-next,
	.mtc-game__btn {
		display: block;
		width: 100%;
		min-height: 44px;
		padding: 12px 16px;
		box-sizing: border-box;
	}

	.mtc-role__head {
		min-height: 44px;
		font-size: 16px;
	}

	.mtc-tests {
		padding: 12px;
	}

	.mtc-game {
		margin: 12px 0;
		padding: 12px;
	}

	.mtc-game__level-title {
		font-size: 15px;
	}

	.mtc-game__tokens {
		gap: 8px;
	}

	.mtc-game__token {
		flex: 1 1 calc( 50% - 4px );
		min-width: 0;
		padding: 10px 12px;
	}

	.mtc-game__history {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.mtc-game__history th,
	.mtc-game__history td {
		white-space: nowrap;
		padding: 8px 10px;
	}

	.mtc-team__forms,
	.mtc-mentor__form {
		display: flex;
		flex-direction: column;
	}

	.mtc-team__form {
		flex-basis: auto;
	}

	.mtc-team__form .mtc-game__btn,
	.mtc-mentor__form button {
		width: 100%;
		min-height: 44px;
	}

	.mtc-team__code {
		display: block;
		margin: 4px 0 0;
		word-break: break-all;
	}

	.mtc-mentor__form input[type="text"] {
		flex-basis: auto;
		width: 100%;
		box-sizing: border-box;
	}

	.mtc-game__course {
		padding: 10px 12px;
	}
}
