/* Edgun Market — оформление SEO-описаний разделов и карточек.
   Marker: NICKHUNTER PATCH multisite edgun seo content
   Подключается только на s3 из nh_seo.php. Вёрстка намеренно другая, чем
   .seo-content-wrapper на nickhunter.ru: вертикальный акцент вместо подчёркиваний,
   шаги-таймлайн вместо плиток с иконками, таблица вместо списка, FAQ-аккордеон. */

.em-desc {
	--em-accent: var(--theme-base-color, #e11d2e);
	--em-radius: var(--theme-outer-border-radius, 14px);
	--em-card: var(--card_bg_black, #fff);
	--em-muted-bg: var(--darkgrey_bg_black, #f5f6f8);
	--em-border: var(--stroke_black, #e6e6e6);
	--em-text: var(--white_text_black, #23262b);
	--em-dim: var(--lite_basic_text_black, #7b8089);

	color: var(--basic_text_black, var(--em-text));
	font-size: 1rem;
	line-height: 1.72;
	max-width: 100%;
}

.em-desc > *:first-child { margin-top: 0 !important; }
.em-desc p { margin: 0 0 1.05rem; }
.em-desc p:last-child { margin-bottom: 0; }
.em-desc strong { color: var(--em-text); font-weight: 700; }

/* ---- заголовки: вертикальная акцентная полоса слева ---- */
.em-desc h2 {
	position: relative;
	margin: 2.5rem 0 1.1rem;
	padding: 0.1rem 0 0.1rem 1rem;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--em-text);
	border: 0;
}
.em-desc h2::before {
	content: "";
	position: absolute;
	left: 0; top: 0.15em; bottom: 0.15em;
	width: 4px;
	border-radius: 4px;
	background: var(--em-accent);
}
.em-desc h2:first-child { margin-top: 0; }

.em-desc h3 {
	margin: 1.8rem 0 0.8rem;
	font-size: 1.13rem;
	font-weight: 700;
	color: var(--em-text);
}

/* ---- вводный блок ---- */
.em-lead {
	margin: 0 0 1.6rem;
	padding: 1.05rem 1.2rem;
	border-left: 3px solid var(--em-accent);
	border-radius: 0 var(--em-radius) var(--em-radius) 0;
	background: var(--em-muted-bg);
	font-size: 1.02rem;
}
.em-lead p:last-child { margin-bottom: 0; }

/* ---- шаги-таймлайн ---- */
.em-steps { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; position: relative; }
.em-steps li {
	position: relative;
	margin: 0 0 1.15rem;
	padding: 0 0 0 3.1rem;
	min-height: 2.1rem;
}
.em-steps li:last-child { margin-bottom: 0; }
.em-steps li::before {
	counter-increment: em-step;
	content: counter(em-step);
	position: absolute;
	left: 0; top: 0;
	width: 2.1rem; height: 2.1rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--em-accent);
	color: #fff;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1;
}
.em-steps li::after {
	content: "";
	position: absolute;
	left: 1.03rem; top: 2.35rem; bottom: -1.15rem;
	width: 2px;
	background: var(--em-border);
}
.em-steps li:last-child::after { display: none; }
.em-steps { counter-reset: em-step; }
.em-steps b { display: block; color: var(--em-text); font-weight: 700; margin-bottom: 0.15rem; }

/* ---- таблица характеристик ---- */
.em-table-wrap { overflow-x: auto; margin: 1.1rem 0 1.6rem; border-radius: var(--em-radius); border: 1px solid var(--em-border); }
.em-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--em-card); }
.em-table th, .em-table td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; border: 0; }
.em-table th { width: 42%; font-weight: 600; color: var(--em-dim); white-space: normal; }
.em-table td { color: var(--em-text); }
.em-table tr + tr { border-top: 1px solid var(--em-border); }
.em-table tbody tr:nth-child(odd) { background: var(--em-muted-bg); }

/* ---- подсказка ---- */
.em-note {
	display: flex;
	gap: 0.8rem;
	margin: 1.2rem 0 1.6rem;
	padding: 0.95rem 1.1rem;
	border: 1px dashed color-mix(in srgb, var(--em-accent) 45%, var(--em-border));
	border-radius: var(--em-radius);
	background: color-mix(in srgb, var(--em-accent) 5%, transparent);
	font-size: 0.95rem;
}
.em-note::before {
	content: "!";
	flex: 0 0 auto;
	width: 1.55rem; height: 1.55rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--em-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1;
}
.em-note p { margin: 0; }

/* ---- чипсы-теги ---- */
.em-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.6rem; padding: 0; list-style: none; }
.em-tags li { margin: 0; }
.em-tags li:before { display: none !important; }
.em-tags a, .em-tags span {
	display: inline-block;
	padding: 0.42rem 0.85rem;
	border: 1px solid var(--em-border);
	border-radius: 999px;
	background: var(--em-card);
	font-size: 0.87rem;
	line-height: 1.3;
	color: var(--em-text);
	text-decoration: none;
}
.em-tags a:hover { border-color: var(--em-accent); color: var(--em-accent); }
/* подпись перед списком ссылок: не «чип», а обычный текст */
.em-tags .em-tags__label {
	padding: 0.42rem 0;
	border: 0;
	background: none;
	color: var(--em-text-muted, #6b7280);
	font-size: 0.87rem;
}

/* ---- FAQ-аккордеон ---- */
.em-faq { margin: 1.1rem 0 1.6rem; border: 1px solid var(--em-border); border-radius: var(--em-radius); overflow: hidden; }
.em-faq details { background: var(--em-card); }
.em-faq details + details { border-top: 1px solid var(--em-border); }
.em-faq summary {
	position: relative;
	cursor: pointer;
	list-style: none;
	padding: 0.9rem 2.6rem 0.9rem 1.05rem;
	font-weight: 600;
	color: var(--em-text);
}
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after {
	content: "";
	position: absolute;
	right: 1.1rem; top: 1.25rem;
	width: 9px; height: 9px;
	border-right: 2px solid var(--em-dim);
	border-bottom: 2px solid var(--em-dim);
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}
.em-faq details[open] summary::after { transform: rotate(-135deg); }
.em-faq .em-faq__body { padding: 0 1.05rem 1rem; color: var(--basic_text_black, var(--em-text)); font-size: 0.96rem; }
.em-faq .em-faq__body p:last-child { margin-bottom: 0; }

/* ---- финальная плашка ---- */
.em-cta {
	margin: 1.6rem 0 0;
	padding: 1.15rem 1.3rem;
	border-radius: var(--em-radius);
	background: var(--em-muted-bg);
	border: 1px solid var(--em-border);
}
.em-cta__title { margin: 0 0 0.4rem; font-weight: 700; color: var(--em-text); }
.em-cta p { margin: 0; font-size: 0.95rem; color: var(--basic_text_black, var(--em-text)); }
.em-cta a { color: var(--em-accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--em-accent) 40%, transparent); }
.em-cta a:hover { border-bottom-color: var(--em-accent); }

/* ---- список плюсов ---- */
.em-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.em-list li { position: relative; margin: 0 0 0.55rem; padding-left: 1.6rem; }
.em-list li:before {
	content: "";
	position: absolute;
	left: 0; top: 0.62em;
	width: 8px; height: 8px;
	border-radius: 2px;
	background: var(--em-accent);
	transform: rotate(45deg);
}

@media (max-width: 767px) {
	.em-desc { font-size: 0.96rem; }
	.em-desc h2 { font-size: 1.24rem; margin: 1.9rem 0 0.9rem; }
	.em-table th { width: 48%; }
	.em-table th, .em-table td { padding: 0.62rem 0.75rem; font-size: 0.9rem; }
	.em-steps li { padding-left: 2.7rem; }
	.em-steps li::before { width: 1.85rem; height: 1.85rem; font-size: 0.8rem; }
	.em-steps li::after { left: 0.9rem; top: 2.05rem; }
}

/* NICKHUNTER PATCH edgun faq themes: навигация между темами FAQ и ссылки
   в ответах. Раньше эти правила лежали инлайном на одной странице FAQ,
   теперь тем одиннадцать — держим стиль в одном месте. */
.em-faq-page .em-lead a,
.em-faq-page .em-faq__body a {
	color: var(--em-accent);
	text-decoration: none;
	border-bottom: 1px solid rgba(225, 29, 46, 0.45);
}
.em-faq-page .em-lead a:hover,
.em-faq-page .em-faq__body a:hover { border-bottom-color: var(--em-accent); }
.em-faq-page .em-faq { margin-bottom: 2rem; }

.em-faq-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	list-style: none;
	margin: 0.75rem 0 1rem;
	padding: 0;
}
.em-faq-nav li { margin: 0; }
.em-faq-nav a,
.em-faq-nav__current {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border-radius: 6px;
	font-size: 0.94em;
	line-height: 1.25;
	border: 1px solid rgba(128, 128, 128, 0.35);
	text-decoration: none;
}
.em-faq-nav a { color: inherit; }
.em-faq-nav a:hover { border-color: var(--em-accent); color: var(--em-accent); }
.em-faq-nav__current {
	border-color: var(--em-accent);
	color: var(--em-accent);
	cursor: default;
}
.em-faq-nav--hub a { padding-right: 0.5rem; }
.em-faq-hub__n {
	display: inline-block;
	margin-left: -0.35rem;
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
	font-size: 0.82em;
	opacity: 0.65;
}
