/* Health Code FAQ. Цвета и скругления меняются переменными ниже. */
.hc-faq {
	--hcfaq-accent: #2f7d5b;          /* основной цвет бренда */
	--hcfaq-accent-contrast: #fff;    /* текст на акцентном фоне */
	--hcfaq-accent-soft: rgba(47, 125, 91, .1);
	--hcfaq-text: #1f2933;
	--hcfaq-muted: #6b7785;
	--hcfaq-border: #e3e8ee;
	--hcfaq-surface: #fff;
	--hcfaq-radius: 14px;
	--hcfaq-gap: 16px;

	box-sizing: border-box;
	margin: 0 auto;
	color: var(--hcfaq-text);
	font-family: inherit;
	line-height: 1.55;
}
.hc-faq *, .hc-faq *::before, .hc-faq *::after { box-sizing: inherit; }

.hc-faq__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Заголовок */
.hc-faq__head { margin: 0 0 24px; }
.hc-faq .hc-faq__title { margin: 20px 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2;padding-bottom: 0; }
.hc-faq .hc-faq__intro { margin: 0; color: var(--hcfaq-muted); font-size: 1.05em;padding-bottom: 0; }

/* Поиск */
.hc-faq__tools { display: grid; gap: var(--hcfaq-gap); margin-bottom: 12px; }
.hc-faq__search { position: relative; margin: 0; }
.hc-faq .hc-faq__input {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 48px 0 18px;
	border: 1px solid var(--hcfaq-border);
	border-radius: 999px;
	background: var(--hcfaq-surface);
	color: inherit;
	font: inherit;
	font-size: 16px; /* 16px — чтобы iOS не увеличивал страницу при фокусе */
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.hc-faq .hc-faq__input:focus {
	outline: none;
	border-color: var(--hcfaq-accent);
	box-shadow: 0 0 0 3px var(--hcfaq-accent-soft);
}
.hc-faq .hc-faq__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hc-faq .hc-faq__clear {
	position: absolute;
	top: 50%; right: 8px;
	width: 36px; height: 36px;
	margin: -18px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hcfaq-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.hc-faq .hc-faq__clear:hover { background: var(--hcfaq-accent-soft); color: var(--hcfaq-text); }
.hc-faq .hc-faq__clear[hidden] { display: none; }

/* Категории: на телефоне — одна прокручиваемая строка, на широких экранах — перенос */
.hc-faq__cats {
	position: relative;
	display: flex;
	gap: 8px;
	margin: 0 -16px;
	padding: 2px 16px 6px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.hc-faq__cats::-webkit-scrollbar { display: none; }
.hc-faq .hc-faq__cat {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--hcfaq-border);
	border-radius: 999px;
	background: var(--hcfaq-surface);
	color: var(--hcfaq-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	scroll-snap-align: start;
	transition: background-color .15s, border-color .15s, color .15s;
}
.hc-faq .hc-faq__cat:hover { border-color: var(--hcfaq-accent); }
.hc-faq .hc-faq__cat.is-active {
	background: var(--hcfaq-accent);
	border-color: var(--hcfaq-accent);
	color: var(--hcfaq-accent-contrast);
}
.hc-faq .hc-faq__cat.is-empty:not(.is-active) { opacity: .45; }
.hc-faq__count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--hcfaq-accent-soft);
	font-size: 12px;
	text-align: center;
}
.hc-faq .hc-faq__cat.is-active .hc-faq__count { background: rgba(255, 255, 255, .25); }

@media (min-width: 768px) {
	.hc-faq {
		padding: 0 15px;
	}
	.hc-faq__cats { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}

.hc-faq__status { min-height: 1.5em; margin: 8px 0 12px; color: var(--hcfaq-muted); font-size: 14px; }

/* Список вопросов */
.hc-faq__list { border-top: 1px solid var(--hcfaq-border); }
.hc-faq__item { border-bottom: 1px solid var(--hcfaq-border); }
.hc-faq__item[hidden] { display: none; }
.hc-faq .hc-faq__q { margin: 0; font-size: inherit; line-height: inherit; }
.hc-faq button.hc-faq__trigger {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 18px 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: clamp(16px, 2.2vw, 18px);
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.hc-faq button.hc-faq__trigger:hover .hc-faq__qtext { color: var(--hcfaq-accent); }
.hc-faq button.hc-faq__trigger:focus-visible { outline: 2px solid var(--hcfaq-accent); outline-offset: 2px; }
.hc-faq__qtext { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.hc-faq__qtext mark { padding: 0 1px; border-radius: 3px; background: #fff1a8; color: inherit; }
.hc-faq__hint {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--hcfaq-accent-soft);
	color: var(--hcfaq-accent);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}
.hc-faq__hint[hidden] { display: none; }

/* Иконка «+» → «×» */
.hc-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--hcfaq-accent-soft);
	transition: transform .25s ease, background-color .15s;
}
.hc-faq__icon::before, .hc-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 12px; height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--hcfaq-accent);
}
.hc-faq__icon::after { transform: rotate(90deg); }
.hc-faq__item.is-open .hc-faq__icon { transform: rotate(45deg); background: var(--hcfaq-accent); }
.hc-faq__item.is-open .hc-faq__icon::before, .hc-faq__item.is-open .hc-faq__icon::after { background: var(--hcfaq-accent-contrast); }

/* Ответ: плавное раскрытие без JS-замеров высоты */
.hc-faq__a {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows .25s ease, visibility 0s linear .25s;
}
.hc-faq__item.is-open .hc-faq__a {
	grid-template-rows: 1fr;
	visibility: visible;
	transition-delay: 0s;
	border-top: 1px dashed var(--hcfaq-border);
    padding-top: 20px;
}
.page-id-91361 .page_wr .wr>h1{
	display: none;
}
.hc-faq__a-inner { min-height: 0; overflow: hidden; }
.hc-faq__content { padding: 0 4px 20px; }
.hc-faq__content > :first-child { margin-top: 0; }
.hc-faq__content > :last-child { margin-bottom: 0; }
.hc-faq__content p { margin: 0 0 .8em;font-size: inherit; }
.hc-faq__content ul, .hc-faq__content ol { margin: 0 0 .8em; padding-left: 1.4em; }
.hc-faq__content li { margin: 0 0 .3em; }
.hc-faq__content a { color: var(--hcfaq-accent); text-decoration: underline; overflow-wrap: anywhere; }
.hc-faq__content img { max-width: 100%; height: auto; }
.hc-faq__content table { display: block; max-width: 100%; overflow-x: auto; }

/* Ничего не найдено */
.hc-faq__empty {
	padding: 40px 16px;
	text-align: center;
	color: var(--hcfaq-muted);
}
.hc-faq__empty[hidden] { display: none; }
.hc-faq .hc-faq__reset {
	margin-top: 4px;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--hcfaq-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--hcfaq-accent);
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.hc-faq .hc-faq__reset:hover { background: var(--hcfaq-accent); color: var(--hcfaq-accent-contrast); }

/* Блок «популярные»: ссылки-категории, форма поиска с кнопкой, ссылка «Все вопросы» */
.hc-faq a.hc-faq__cat { text-decoration: none; }
.hc-faq--teaser .hc-faq__tools { margin-bottom: 20px; }
.hc-faq--teaser .hc-faq__input { padding-right: 110px; }
.hc-faq .hc-faq__go {
	position: absolute;
	top: 6px; right: 6px;
	height: 40px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--hcfaq-accent);
	color: var(--hcfaq-accent-contrast);
	font: inherit;
	font-size: 15px;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.hc-faq .hc-faq__go:hover { filter: brightness(.92); }
.hc-faq__more-wrap { margin: 24px 0 0; text-align: center; }
.hc-faq a.hc-faq__more {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--hcfaq-accent);
	border-radius: 999px;
	color: var(--hcfaq-accent);
	text-decoration: none;
}
.hc-faq a.hc-faq__more:hover { background: var(--hcfaq-accent); color: var(--hcfaq-accent-contrast); }

/* Без JS: поиск и фильтры скрыты, все ответы раскрыты и читаются */
.hc-faq:not(.hc-faq--teaser):not(.is-ready) .hc-faq__tools,
.hc-faq:not(.is-ready) .hc-faq__status,
.hc-faq:not(.is-ready) .hc-faq__icon { display: none; }
.hc-faq:not(.is-ready) .hc-faq__a { grid-template-rows: 1fr; visibility: visible; }

@media (max-width: 480px) {
	.hc-faq button.hc-faq__trigger { padding: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.hc-faq__a, .hc-faq__icon, .hc-faq .hc-faq__cat { transition: none; }
}
