/* Cases listing + detail pages */

.stk-cases-page {
	background: #f1f9fe;
	padding: 0 0 72px;
}

.stk-cases-page__inner {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.stk-cases-page__hero {
	padding: 28px 0 24px;
}

.stk-cases-page__hero .stk-breadcrumbs {
	margin-bottom: 16px;
}

.stk-cases-page__title {
	margin: 0 0 14px;
	font-size: clamp(34px, 5vw, 52px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #12151a;
}

.stk-cases-page__lead {
	margin: 0;
	max-width: 52rem;
	font-size: 17px;
	line-height: 1.55;
	color: #5b6b7c;
}

.stk-cases-page__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 14px;
	margin: 0 0 24px;
	padding: 16px;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.12);
	border-radius: 14px;
}

.stk-cases-page__filter {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: min(200px, 100%);
	flex: 1 1 180px;
}

.stk-cases-page__filter-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7a8a;
}

.stk-cases-page__select {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(36, 151, 220, 0.22);
	border-radius: 10px;
	background: #f8fcff;
	color: #12151a;
	font-size: 14px;
}

.stk-cases-page__filter-reset {
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #2497dc;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.stk-cases-page__filter-reset:hover {
	color: #1a7eb8;
}

.stk-cases-page__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 48px;
}

.stk-cases-page__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(36, 151, 220, 0.1);
	box-shadow: 0 10px 28px rgba(21, 32, 43, 0.07);
}

.stk-cases-page__card[hidden] {
	display: none !important;
}

.stk-cases-page__media,
.stk-cases-page__single-media {
	min-height: 180px;
	background: #d9ecf8 center / cover no-repeat;
}

.stk-cases-page__single-media {
	min-height: 320px;
	border-radius: 16px;
	margin-bottom: 24px;
}

.stk-cases-page__body,
.stk-cases-page__single-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 20px;
	flex: 1;
}

.stk-cases-page__single-body {
	padding: 0;
	max-width: 48rem;
	font-size: 17px;
	line-height: 1.6;
	color: #3d4a57;
}

.stk-cases-page__name {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #66bbf0;
}

.stk-cases-page__slogan {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
	color: #12151a;
}

.stk-cases-page__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #4b5866;
}

.stk-cases-page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 4px 0 0;
	font-size: 12px;
	color: #7a8896;
}

.stk-cases-page__meta span::after {
	content: "·";
	margin-left: 10px;
	color: #b7c3ce;
}

.stk-cases-page__meta span:last-child::after {
	content: none;
}

.stk-cases-page__meta_single {
	margin-top: 8px;
	font-size: 14px;
}

.stk-cases-page__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: auto;
	min-height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, #2aa3e6 0%, #2497dc 100%);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(36, 151, 220, 0.22);
}

.stk-cases-page__btn:hover {
	background: #1a7eb8;
	color: #fff !important;
}

.stk-cases-page__btn_ghost {
	background: #fff;
	color: #2497dc !important;
	border: 1px solid rgba(36, 151, 220, 0.35);
	box-shadow: none;
	margin-left: 10px;
}

.stk-cases-page__btn_ghost:hover {
	background: #eef7fd;
	color: #1a7eb8 !important;
}

.stk-cases-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.stk-cases-page__empty {
	grid-column: 1 / -1;
	margin: 12px 0 0;
	padding: 24px;
	text-align: center;
	color: #5b6b7c;
	background: #fff;
	border-radius: 12px;
}

.stk-cases-page__categories {
	margin: 8px 0 40px;
}

.stk-cases-page__categories-title {
	margin: 0 0 16px;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.2;
	font-weight: 800;
	color: #12151a;
}

.stk-cases-page__categories-rail {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 4px 2px 14px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #66bbf0 transparent;
}

.stk-cases-page__cat {
	flex: 0 0 min(240px, 78vw);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.1);
	text-decoration: none !important;
	color: inherit;
	scroll-snap-align: start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stk-cases-page__cat:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(21, 32, 43, 0.1);
}

.stk-cases-page__cat-media {
	display: block;
	min-height: 140px;
	background: #d9ecf8 center / cover no-repeat;
}

.stk-cases-page__cat-title {
	display: block;
	padding: 12px 14px 14px;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 700;
	color: #12151a;
}

.stk-cases-page .stk-blog-questions {
	margin-top: 8px;
}

/* ---- Case detail template (TZ) ---- */

.stk-case {
	padding-bottom: 8px;
}

.stk-case__hero {
	padding: 28px 0 8px;
}

.stk-case__hero .stk-breadcrumbs {
	margin-bottom: 16px;
}

.stk-case__title {
	margin: 0 0 20px;
	font-size: clamp(34px, 5vw, 52px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #12151a;
}

.stk-case__params {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.stk-case__param {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.12);
	border-radius: 14px;
}

.stk-case__param-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7a8a;
}

.stk-case__param-value {
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
	color: #12151a;
}

.stk-case__section {
	margin: 0 0 36px;
}

.stk-case__h2 {
	margin: 0 0 16px;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.2;
	font-weight: 800;
	color: #12151a;
}

.stk-case__h3 {
	margin: 18px 0 8px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 800;
	color: #12151a;
}

.stk-case__about {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 22px;
	align-items: start;
}

.stk-case__about-media {
	min-height: 280px;
	border-radius: 16px;
	background: #d9ecf8 center / cover no-repeat;
}

.stk-case__about-text {
	font-size: 16px;
	line-height: 1.6;
	color: #3d4a57;
}

.stk-case__about-text p {
	margin: 0 0 10px;
}

.stk-case__table-wrap {
	overflow-x: auto;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.12);
	border-radius: 14px;
}

.stk-case__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
}

.stk-case__table th,
.stk-case__table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(36, 151, 220, 0.1);
	font-size: 14px;
	line-height: 1.4;
}

.stk-case__table th {
	background: #eaf6fd;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5b6b7c;
}

.stk-case__table tr:last-child td {
	border-bottom: 0;
}

.stk-case__table a {
	color: #2497dc;
	font-weight: 700;
	text-decoration: none;
}

.stk-case__table a:hover {
	color: #1a7eb8;
	text-decoration: underline;
}

.stk-case__result {
	margin: 0;
	max-width: 46rem;
	font-size: 17px;
	line-height: 1.6;
	color: #3d4a57;
}

.stk-case__review {
	margin: 16px 0 0;
	padding: 16px 18px;
	max-width: 46rem;
	background: #fff;
	border-left: 4px solid #66bbf0;
	border-radius: 0 12px 12px 0;
	color: #3d4a57;
	font-size: 16px;
	line-height: 1.55;
}

.stk-case__review p {
	margin: 0;
}

.stk-case__related {
	margin-bottom: 0;
}

.stk-case .stk-blog-questions,
.stk-cases-page .stk-case + .stk-blog-questions {
	margin-top: 8px;
}

@media screen and (max-width: 980px) {
	.stk-cases-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stk-cases-page__single-media {
		min-height: 240px;
	}

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

	.stk-case__about {
		grid-template-columns: 1fr;
	}

	.stk-case__about-media {
		min-height: 220px;
	}
}

@media screen and (max-width: 640px) {
	.stk-cases-page__grid {
		grid-template-columns: 1fr;
	}

	.stk-cases-page__filters {
		padding: 14px;
	}

	.stk-cases-page__btn_ghost {
		margin-left: 0;
	}

	.stk-case__params {
		grid-template-columns: 1fr;
	}
}
