/* Экоград — шаблон страниц ФККО. Шрифты и размеры заголовков берутся из темы сайта. */

.efk {
	--efk-accent: #2e7d32;
	--efk-text: #1f2a1f;
	--efk-muted: #5f6b5f;
	--efk-line: #dfe5df;
	--efk-soft: #f3f7f3;
	color: inherit;
	line-height: 1.6;
}

.efk h2 {
	margin-top: 1.8em;
	margin-bottom: 0.6em;
}

.efk p {
	margin: 0 0 1em;
}

.efk-note {
	padding: 10px 14px;
	border: 1px dashed #c9a227;
	background: #fff8e1;
	font-size: 14px;
}

.efk-lead {
	font-size: 1.1em;
}

.efk-muted {
	color: var(--efk-muted);
	font-size: 0.92em;
}

/* Карточка отхода */
.efk-card {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
	border: 1px solid var(--efk-line);
	background: #fff;
	font-size: 0.97em;
}

.efk-card th,
.efk-card td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--efk-line);
	text-align: left;
	vertical-align: top;
}

.efk-card tr:last-child th,
.efk-card tr:last-child td {
	border-bottom: 0;
}

.efk-card th {
	width: 34%;
	background: var(--efk-soft);
	font-weight: 600;
	color: var(--efk-text);
}

/* Кнопки */
.efk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.2em 0 0.4em;
}

.efk-btn,
.efk .efk-btn {
	display: inline-block;
	padding: 11px 18px;
	border: 2px solid var(--efk-accent);
	border-radius: 6px;
	background: #fff;
	color: var(--efk-accent);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.efk-btn:hover,
.efk-btn:focus {
	background: var(--efk-soft);
	color: var(--efk-accent);
}

.efk-btn--primary,
.efk .efk-btn--primary {
	background: var(--efk-accent);
	color: #fff;
}

.efk-btn--primary:hover,
.efk-btn--primary:focus {
	background: var(--efk-accent);
	color: #fff;
	filter: brightness(1.1);
}

/* Списки и шаги */
.efk-list {
	margin: 0 0 1em 1.2em;
	padding: 0;
}

.efk-list li {
	margin-bottom: 0.3em;
}

.efk-steps {
	counter-reset: efk-step;
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.efk-steps li {
	counter-increment: efk-step;
	position: relative;
	margin: 0 0 0.7em;
	padding-left: 2.6em;
	min-height: 1.9em;
}

.efk-steps li::before {
	content: counter(efk-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 1.9em;
	height: 1.9em;
	border-radius: 50%;
	background: var(--efk-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.9em;
	text-align: center;
}

.efk-callout {
	padding: 12px 16px;
	border-left: 4px solid var(--efk-accent);
	background: var(--efk-soft);
}

/* Похожие отходы */
.efk-related {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 8px 16px;
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.efk-related a {
	display: block;
	padding: 8px 10px;
	border: 1px solid var(--efk-line);
	border-radius: 6px;
	text-decoration: none;
}

.efk-related a:hover {
	border-color: var(--efk-accent);
}

.efk-related__code {
	display: block;
	color: var(--efk-muted);
	font-size: 0.85em;
	font-variant-numeric: tabular-nums;
}

.efk-more {
	font-weight: 600;
}

/* Вопросы и ответы */
.efk-faq details {
	border: 1px solid var(--efk-line);
	border-radius: 6px;
	margin-bottom: 8px;
	background: #fff;
}

.efk-faq summary {
	padding: 12px 16px;
	font-weight: 600;
	cursor: pointer;
}

.efk-faq details p {
	padding: 0 16px 12px;
	margin: 0;
}

/* Форма */
.efk-form-wrap {
	margin: 2em 0 1.5em;
	padding: 20px;
	border: 1px solid var(--efk-line);
	border-radius: 8px;
	background: var(--efk-soft);
	scroll-margin-top: 80px;
}

.efk-form-wrap h2 {
	margin-top: 0;
}

.efk-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	margin-bottom: 12px;
}

.efk-grid label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.95em;
	font-weight: 600;
}

.efk-grid .efk-wide {
	grid-column: 1 / -1;
}

.efk-grid input,
.efk-grid textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 11px;
	border: 1px solid #c5cdc5;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-weight: 400;
}

.efk-grid input[type="file"] {
	padding: 7px;
}

.efk-req {
	color: #b3261e;
}

.efk-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 4px 0 14px;
	font-size: 0.92em;
}

.efk-consent input {
	margin-top: 4px;
}

.efk-policy {
	margin: -8px 0 14px;
	font-size: 0.92em;
}

.efk-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.efk-alert {
	padding: 12px 16px;
	margin: 0 0 14px;
	border-radius: 6px;
	font-weight: 600;
}

.efk-alert--ok {
	background: #e3f4e5;
	color: #1b5e20;
}

.efk-alert--error {
	background: #fdecea;
	color: #8a1c14;
}

.efk-contacts {
	color: var(--efk-muted);
	font-size: 0.92em;
}

/* Панель на телефонах */
.efk-sticky {
	display: none;
}

@media (max-width: 767px) {
	.efk-card th,
	.efk-card td {
		display: block;
		width: auto;
		border-bottom: 0;
	}

	.efk-card th {
		padding-bottom: 2px;
	}

	.efk-card td {
		padding-top: 2px;
		border-bottom: 1px solid var(--efk-line);
	}

	.efk-grid {
		grid-template-columns: 1fr;
	}

	.efk-actions .efk-btn {
		flex: 1 1 100%;
		text-align: center;
	}

	.efk-sticky {
		--efk-accent: #2e7d32;
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	}

	.efk-sticky a {
		flex: 1;
		padding: 14px 8px;
		font-weight: 700;
		text-align: center;
		text-decoration: none;
	}

	.efk-sticky__call {
		background: #fff;
		color: var(--efk-accent);
	}

	.efk-sticky__form {
		background: var(--efk-accent);
		color: #fff;
	}

	.efk-sticky.efk-sticky--hidden {
		display: none;
	}

	body {
		padding-bottom: 56px;
	}
}
