/* ══════════════════════════════════════════════
   CASE SUBPAGES — /kejsy/<slug>/
   and HUB /kejsy/ (contact-choice modal)
   (loaded by case-page.php and kejsy/index.php)
   ══════════════════════════════════════════════ */

.case-page {
	color: #161616;
	padding-bottom: 48px;
}

.case-page section {
	margin-bottom: 56px;
}

/* ── Breadcrumbs ───────────────────────────────── */
.case-breadcrumbs {
	margin-bottom: 22px;
	font-size: 15px;
	color: #666;
}

.case-breadcrumbs a {
	color: inherit;
}

.case-breadcrumbs span:before {
	content: "/ ";
}

/* ── Hero ──────────────────────────────────────── */
.case-hero {
	padding: 54px;
	border-radius: 32px;
	background: #ffffff;
}

.case-eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6a5b00;
}

.case-hero h1 {
	max-width: 820px;
	font-size: 42px;
	line-height: 1.15;
	margin-bottom: 18px;
}

.case-hero p {
	max-width: 820px;
	font-size: 18px;
	line-height: 1.55;
}

.case-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-top: 28px;
}

.case-service-link {
	color: #161616;
	font-weight: 700;
}

/* ── Client / expert ───────────────────────────── */
.case-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
}

.case-client,
.case-expert {
	background: #fff;
	border: 1px solid #e3e8ec;
	border-radius: 8px;
	padding: 28px;
}

.case-client h2,
.case-expert h2 {
	font-size: 26px;
	line-height: 1.25;
	margin-bottom: 18px;
}

.case-client-list {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
}

.case-client-list div {
	background: #f7fafc;
	border-radius: 8px;
	padding: 16px;
}

.case-client-list dt {
	color: #667988;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.case-client-list dd {
	font-size: 16px;
	line-height: 1.45;
	margin: 0;
}

.case-expert {
	background: #f3f8fb;
}

.case-expert p {
	font-size: 17px;
	line-height: 1.55;
}

/* ── Content panels ────────────────────────────── */
.case-panel,
.case-result,
.case-links,
.case-cta,
.case-faq,
.case-similar {
	border: 1px solid #e3e8ec;
	border-radius: 8px;
	padding: 28px;
	background: #fff;
}

.case-panel h2,
.case-result h2,
.case-links h2,
.case-cta h2,
.case-faq h2,
.case-similar h2 {
	font-size: 26px;
	line-height: 1.25;
	margin-bottom: 18px;
}

.case-panel p,
.case-panel li,
.case-result p,
.case-cta p,
.case-faq p {
	font-size: 17px;
	line-height: 1.55;
}

.case-panel ul {
	margin: 0;
	padding-left: 20px;
}

.case-panel li + li {
	margin-top: 10px;
}

/* ── Result ────────────────────────────────────── */
.case-result {
	background: #fff7df;
	border-color: #f0d98b;
}

.case-result-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.case-result-list p {
	background: #fff;
	border-radius: 8px;
	margin: 0;
	padding: 18px;
}

/* ── Links / similar ───────────────────────────── */
.case-links div,
.case-similar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.case-links a,
.case-similar a {
	border: 1px solid #e3e8ec;
	border-radius: 8px;
	color: #161616;
	display: flex;
	flex-direction: column;
	min-height: 112px;
	padding: 18px;
	text-decoration: none;
}

.case-links a:hover,
.case-similar a:hover {
	border-color: #c9a900;
}

.case-similar span,
.case-similar em {
	color: #667988;
	font-size: 14px;
	font-style: normal;
}

.case-similar strong {
	margin: 8px 0;
}

/* ── Illustration ─────────────────────────────── */
.case-illustration {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	line-height: 0;
}

.case-illustration img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

/* ── Recommended services ──────────────────────── */
.case-recommended {
	border: 1px solid #fbdd40;
	border-radius: 8px;
	padding: 28px;
	background: #fffbea;
}

.case-recommended h2 {
	font-size: 26px;
	line-height: 1.25;
	margin-bottom: 18px;
}

.case-recommended__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.case-recommended__item {
	border: 1px solid #e3e8ec;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	text-decoration: none;
	color: #161616;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.case-recommended__item strong {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.case-recommended__item span {
	font-size: 14px;
	color: #c9a900;
	font-weight: 700;
	margin-top: auto;
}

.case-recommended__item:hover {
	border-color: #fbdd40;
}

/* ── CTA ───────────────────────────────────────── */
.case-cta {
	align-items: center;
	background: #fbdd40;
	border-color: #fbdd40;
	color: #161616;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	border-radius: 12px;
}

.case-cta-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid #1f2937;
	border-radius: 8px;
	background: #fff;
	color: #1f2937;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}

.case-cta-link:hover {
	background: #f5f6f7;
	color: #1f2937;
	text-decoration: none;
}

.case-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	flex-shrink: 0;
}

.case-cta p {
	max-width: 720px;
}

/* ── FAQ ───────────────────────────────────────── */
.case-faq details {
	border-top: 1px solid #e3e8ec;
	padding: 16px 0;
}

.case-faq details:last-child {
	border-bottom: 1px solid #e3e8ec;
}

.case-faq summary {
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
}

.case-faq p {
	margin-top: 12px;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 991px) {
	.case-hero {
		padding: 32px;
	}

	.case-hero h1 {
		font-size: 34px;
	}

	.case-grid,
	.case-client-list,
	.case-result-list,
	.case-links div,
	.case-similar-grid {
		grid-template-columns: 1fr;
	}

	.case-cta {
		align-items: flex-start;
		flex-direction: column;
	}

	.case-recommended__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.case-hero,
	.case-client,
	.case-expert,
	.case-panel,
	.case-result,
	.case-links,
	.case-cta,
	.case-faq,
	.case-similar {
		padding: 22px;
	}

	.case-hero h1 {
		font-size: 28px;
	}

	.case-recommended__grid {
		grid-template-columns: 1fr;
	}

	.case-recommended {
		padding: 22px;
	}
}

/* ── Contact-choice modal (shared: subpages + hub) ── */
.contact-choice-open {
	overflow: hidden;
}

.contact-choice[hidden] {
	display: none;
}

.contact-choice {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.contact-choice__overlay {
	position: absolute;
	inset: 0;
	background: rgba(32, 33, 36, .62);
}

.contact-choice__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 30px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 22px 70px rgba(15, 23, 42, .26);
	outline: none;
}

.contact-choice__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 6px;
	background: #f3f4f6;
	color: #202124;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.contact-choice__dialog h2 {
	margin: 0 48px 10px 0;
	font-size: 28px;
	line-height: 1.2;
	color: #202124;
}

.contact-choice__dialog p {
	margin: 0;
	color: #4b5563;
	font-size: 16px;
	line-height: 1.55;
}

.contact-choice__actions {
	display: grid;
	gap: 12px;
	margin-top: 22px;
}

.contact-choice__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 16px;
	border: 1px solid #202124;
	border-radius: 6px;
	background: #202124;
	color: #fff !important;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.contact-choice__button--secondary {
	background: #f7d94b;
	color: #202124 !important;
}

@media (max-width: 575px) {
	.contact-choice {
		padding: 12px;
	}

	.contact-choice__dialog {
		max-height: calc(100vh - 24px);
		padding: 24px 18px 18px;
	}

	.contact-choice__dialog h2 {
		margin-right: 46px;
		font-size: 24px;
	}
}
