/*
 * FAQ: light section in one column. Header (heading left, intro right), questions as rows on
 * lines across the full width; the open row becomes a white card with an orange edge, the
 * toggle turns from + to -. Below the list: "Not found the answer?" strip with a link.
 */

.mj-faq {
	/* Small top padding: the section follows Kako radimo on the same cream background. */
	padding: clamp(2.5rem, 3.5vw, 3rem) 0 clamp(2rem, 3.5vw, 3rem);
	background: var(--mj-cream);
	color: var(--mj-graphite);
	scroll-margin-top: var(--mj-bar-h);
}

/* One column: no side column, so an open question never leaves an empty block */

/* Header: heading left, intro right (same as the other sections) */
.mj-faq__head {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: end;
	gap: 1.5rem clamp(2.5rem, 6vw, 6rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.mj-faq__title {
	margin: 0;
	font-size: clamp(2.25rem, 3.8vw, 3.25rem);
	letter-spacing: -0.015em;
}

/* "Not found the answer?" strip under the questions, text in line with the question text */
.mj-faq__more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 3rem;
	margin-top: 2rem;
	padding-inline: 1.5rem;
}

.mj-faq__more-title {
	margin: 0 0 0.375rem;
	font-family: var(--mj-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: var(--mj-lh-display);
}

.mj-faq__more-text {
	max-width: 36rem;
	margin: 0;
	color: rgba(22, 24, 29, 0.68);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.mj-faq__accent {
	display: inline-block;
	background: linear-gradient(var(--mj-orange), var(--mj-orange)) 0 100% / 100% 0.12em no-repeat;
}

.mj-faq__intro {
	max-width: 30rem;
	margin: 0;
	padding: 0.125rem 0 0.125rem 1.25rem;
	border-left: 2px solid var(--mj-orange);
	color: rgba(22, 24, 29, 0.68);
	font-size: 1rem;
	line-height: 1.65;
}

.mj-faq__link {
	display: inline-block;
	padding-bottom: 0.25rem;
	border-bottom: 2px solid var(--mj-orange);
	color: var(--mj-graphite);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s;
}

.mj-faq__link:hover {
	border-color: var(--mj-graphite);
}

/* Question rows, full width */
.mj-faq__list {
	border-top: 1px solid rgba(22, 24, 29, 0.14);
}

.mj-faq__item {
	position: relative;
	border-bottom: 1px solid rgba(22, 24, 29, 0.14);
	transition: background-color 0.25s, box-shadow 0.25s;
}

/* Open row: white card, orange edge on the left */
.mj-faq__item[open] {
	border-bottom-color: transparent;
	background: #fff;
	box-shadow: 0 18px 40px -28px rgba(22, 24, 29, 0.35);
}

.mj-faq__item[open]::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--mj-orange);
}

.mj-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.375rem 1.5rem;
	cursor: pointer;
	list-style: none;
}

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

.mj-faq__q-text {
	margin: 0;
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
	line-height: 1.35;
}

/* Toggle: square with a plus; the vertical bar disappears when open */
.mj-faq__toggle {
	position: relative;
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(22, 24, 29, 0.22);
	border-radius: var(--mj-radius);
	transition: background-color 0.25s, border-color 0.25s;
}

.mj-faq__toggle::before,
.mj-faq__toggle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.875rem;
	height: 2px;
	background: var(--mj-graphite);
	transform: translate(-50%, -50%);
	transition: transform 0.25s;
}

.mj-faq__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.mj-faq__item[open] .mj-faq__toggle {
	border-color: var(--mj-orange);
	background: var(--mj-orange);
}

.mj-faq__item[open] .mj-faq__toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.mj-faq__q:hover .mj-faq__toggle {
	border-color: var(--mj-graphite);
}

.mj-faq__item[open] .mj-faq__q:hover .mj-faq__toggle {
	border-color: var(--mj-orange);
}

.mj-faq__a {
	padding: 0 4.75rem 1.5rem 1.5rem;
}

.mj-faq__a p {
	max-width: 60rem;
	margin: 0;
	color: rgba(22, 24, 29, 0.74);
	font-size: 1rem;
	line-height: 1.7;
}

@media (max-width: 960px) {
	.mj-faq__head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}

@media (max-width: 600px) {
	.mj-faq__q {
		padding: 1.125rem 1rem;
		gap: 1rem;
	}

	.mj-faq__a {
		padding: 0 1rem 1.25rem;
	}

	.mj-faq__more {
		padding-inline: 1rem;
	}
}
