/**
 * FAQ — Časté dotazy (Život hvězdy)
 */

.zh-faq,
.zh-faq *,
.zh-faq *::before,
.zh-faq *::after {
	box-sizing: border-box;
}

.zh-faq {
	--faq-pink: var(--zh-pink, #e84393);
	--faq-navy: var(--zh-navy, #2d2d5f);
	--faq-text: var(--zh-text, #1a1a2e);
	--faq-muted: var(--zh-muted, #6b6b8a);
	--faq-blush: var(--zh-blush, #fff8fb);
	--faq-font: var(--zh-font, "DM Sans", Figtree, system-ui, sans-serif);

	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: min(720px, 100%);
	margin: 0 auto;
	padding: 36px 16px 56px;
	font-family: var(--faq-font);
	color: var(--faq-text);
	-webkit-font-smoothing: antialiased;
}

.zh-faq__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(70% 50% at 10% 0%, rgba(232, 67, 147, 0.12), transparent 55%),
		radial-gradient(60% 40% at 95% 8%, rgba(224, 173, 0, 0.14), transparent 50%);
}

.zh-faq__hero {
	text-align: left;
	margin-bottom: 28px;
}

.zh-faq__brand {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 4vw, 2.15rem);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--faq-navy);
	background: linear-gradient(120deg, var(--faq-navy) 0%, var(--faq-pink) 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.zh-faq__title {
	margin: 0 0 10px;
	font-size: clamp(1.15rem, 2.6vw, 1.35rem);
	font-weight: 650;
	letter-spacing: -0.01em;
	color: var(--faq-text);
	line-height: 1.3;
}

.zh-faq__lead {
	margin: 0;
	max-width: 36ch;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--faq-muted);
}

.zh-faq__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(232, 67, 147, 0.14);
}

.zh-faq__filter {
	appearance: none;
	border: none;
	background: transparent;
	padding: 4px 0;
	margin: 0;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--faq-muted);
	cursor: pointer;
	position: relative;
	transition: color 0.25s ease;
}

.zh-faq__filter::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -14px;
	height: 2px;
	background: var(--faq-pink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.zh-faq__filter:hover,
.zh-faq__filter.is-active {
	color: var(--faq-pink);
}

.zh-faq__filter.is-active::after {
	transform: scaleX(1);
}

.zh-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.zh-faq__empty {
	margin: 0;
	color: var(--faq-muted);
}

.zh-faq__item {
	margin: 0;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(45, 45, 95, 0.08);
	box-shadow: 0 4px 18px rgba(45, 45, 95, 0.04);
	overflow: hidden;
	transition:
		border-color 0.25s ease,
		box-shadow 0.35s ease,
		opacity 0.3s ease,
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.zh-faq__item[hidden] {
	display: none !important;
}

.zh-faq__item[open] {
	border-color: rgba(232, 67, 147, 0.22);
	box-shadow: 0 10px 28px rgba(232, 67, 147, 0.08);
}

.zh-faq__q {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"cat icon"
		"q icon";
	gap: 4px 12px;
	align-items: center;
	padding: 16px 18px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.zh-faq__q::-webkit-details-marker {
	display: none;
}

.zh-faq__cat {
	grid-area: cat;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faq-pink);
}

.zh-faq__q-text {
	grid-area: q;
	font-size: 1.02rem;
	font-weight: 650;
	line-height: 1.35;
	color: var(--faq-navy);
}

.zh-faq__icon {
	grid-area: icon;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--faq-blush);
	border: 1px solid rgba(232, 67, 147, 0.16);
	position: relative;
	flex-shrink: 0;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.zh-faq__icon::before,
.zh-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--faq-pink);
	border-radius: 1px;
}

.zh-faq__icon::before {
	width: 12px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.zh-faq__icon::after {
	width: 2px;
	height: 12px;
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.zh-faq__item[open] .zh-faq__icon {
	background: linear-gradient(135deg, var(--faq-pink), #f36bab);
	border-color: transparent;
	transform: rotate(90deg);
}

.zh-faq__item[open] .zh-faq__icon::before,
.zh-faq__item[open] .zh-faq__icon::after {
	background: #fff;
}

.zh-faq__item[open] .zh-faq__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}

.zh-faq__a {
	padding: 0 18px 18px;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--faq-muted);
	animation: zh-faq-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.zh-faq__a a {
	color: var(--faq-pink);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(232, 67, 147, 0.35);
}

.zh-faq__a a:hover {
	border-bottom-color: var(--faq-pink);
}

@keyframes zh-faq-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.zh-faq__foot {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(232, 67, 147, 0.14);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
}

.zh-faq__foot-text {
	margin: 0;
	font-size: 0.98rem;
	color: var(--faq-muted);
}

.zh-faq__foot-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--faq-pink) 0%, #f36bab 100%);
	color: #fff !important;
	font-weight: 650;
	font-size: 0.94rem;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(232, 67, 147, 0.26);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.zh-faq__foot-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(232, 67, 147, 0.34);
	color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
	.zh-faq__item,
	.zh-faq__icon,
	.zh-faq__filter,
	.zh-faq__foot-cta,
	.zh-faq__a {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 560px) {
	.zh-faq {
		padding: 28px 14px 48px;
	}

	.zh-faq__foot {
		flex-direction: column;
		align-items: flex-start;
	}
}
