/*
 * Страницы «Почему ТРЕК» (why-trek.php) и «Вопросы и ответы» (faq.php).
 * Подключается только на них (enqueue-scripts.php), в site.css не собирается
 * (исключён в gulpfile.js). Ничего не прячется: нет скрытия блоков, нулевых
 * размеров и смещений за экран, FAQ раскрывается штатным details/summary.
 */

.answers {
	padding: 24px 0 56px;
	color: #0e1e38;
}

/* wrapperPage темы даёт боковые отступы 16px; добавляем безопасные зоны телефона. */
.answers__wrap {
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	margin-bottom: 0;
}

.answers__h1 {
	font-family: Jost, serif;
	font-size: 40px;
	font-weight: 300;
	line-height: 1.15;
	color: #4b4b4b;
	margin: 0 0 16px;
}

.answers__lead {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.5;
	margin: 0 0 24px;
}

.answers__block {
	max-width: 760px;
	margin: 0 0 8px;
}

.answers__block .answers__h2 {
	font-size: 26px;
	margin: 28px 0 10px;
	text-align: left; /* .h2 темы на телефоне центрирует, текст блока слева */
}

.answers__text {
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
}

.answers__list {
	margin: 10px 0 0;
	padding: 0 0 0 22px;
	font-size: 17px;
	line-height: 1.6;
}

.answers__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.answers__links a {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid #7c8aa5;
	border-radius: 6px;
	color: #0e1e38;
	text-decoration: none;
	line-height: 1.3;
}

.answers__links a:hover {
	border-color: #0e1e38;
}

.answers__faq {
	max-width: 760px;
	margin: 0 0 10px;
	padding: 0 18px;
	border: 1px solid #dfe3ea;
	border-radius: 8px;
	background: #fff;
}

.answers__question {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 14px 32px 14px 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.answers__question::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 12px;
	font-size: 22px;
	font-weight: 300;
	color: #7c8aa5;
}

.answers__faq[open] .answers__question::after {
	content: '-';
}

.answers__answer {
	padding: 0 0 16px;
	font-size: 16px;
	line-height: 1.6;
}

.answers__answer p {
	margin: 0 0 10px;
}

.answers__answerLinks a {
	color: #0e1e38;
}

.answers__more {
	max-width: 760px;
	margin: 28px 0 0;
	font-size: 17px;
	line-height: 1.5;
}

.answers__signature {
	max-width: 760px;
	margin: 24px 0 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 700px) {
	.answers__h1 {
		font-size: 30px;
	}

	.answers__block .answers__h2 {
		font-size: 22px;
	}

	.answers__question {
		font-size: 16px;
	}
}
