/* ===== Раздел «Кейсы» ===== */
#cases .hidden {
	display:none !important;
}
#cases>.description.lead {
	max-width:var(--1000);
	font-size:var(--24);
	line-height:var(--35);
	margin:var(---40) 0 var(--60);
}

#cases>#sections {
	margin-bottom:var(--60);
}
.mobile #cases>#sections {
	width:auto;
	max-width:none;
	margin:0 calc(var(--MainPadding)*-1) 30px;
}

/* фильтр */
#cases .filter {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:var(--30);
	margin-bottom:var(--40);
}
#cases .filter .items {
	display:flex;
	flex-wrap:wrap;
	gap:var(--12);
}
#cases .filter .item {
	border:2px solid var(--Black);
	border-radius:var(--40);
	background:var(--White);
	color:var(--Black);
	font-family:inherit;
	font-weight:700;
	font-size:var(--18);
	line-height:var(--24);
	padding:var(--10) var(--25) var(--8);
	cursor:pointer;
	transition:all 0.3s ease;
}
#cases .filter .item:hover,
#cases .filter .item.current {
	background:var(--Black);
	color:var(--White);
}
#cases .filter .shown {
	flex-shrink:0;
	font-size:var(--16);
	color:var(--Gray);
}

/* карточки */
#cases .list {
	display:grid;
	grid-template-columns:repeat(3,1fr);
	gap:var(--30);
}
#cases .case,
#case .other .case {
	display:flex;
	flex-direction:column;
	border:2px solid var(--LGray);
	border-radius:var(--20);
	overflow:hidden;
	color:var(--Black);
	background:var(--White);
	transition:border-color 0.3s ease;
}
#cases .case:hover,
#case .other .case:hover {
	border-color:var(--Black);
}
#cases .case .cover,
#case .other .case .cover {
	display:block;
	aspect-ratio:566/360;
	background:var(--ULGray);
	overflow:hidden;
}
#cases .case .cover img,
#case .other .case .cover img {
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
}
#cases .case .info,
#case .other .case .info {
	flex:1;
	display:flex;
	flex-direction:column;
	gap:var(--12);
	padding:var(--25) var(--30) var(--30);
}
#cases .case .meta,
#case .other .case .meta {
	font-size:var(--14);
	line-height:var(--20);
	color:var(--Gray);
}
#cases .case .title,
#case .other .case .title {
	font-weight:700;
	font-size:var(--24);
	line-height:var(--30);
}
#cases .case .directions {
	font-size:var(--14);
	line-height:var(--20);
	font-weight:700;
	color:var(--Kaizen);
}
#cases .case .metric,
#case .other .case .metric {
	margin-top:auto;
	padding-top:var(--15);
	border-top:1px solid var(--LGray);
	font-size:var(--16);
	line-height:var(--22);
	color:var(--Gray);
}
#cases .case .metric .value,
#case .other .case .metric .value {
	font-weight:700;
	font-size:var(--32);
	line-height:var(--40);
	color:var(--Black);
}
#cases .case .more,
#case .other .case .more {
	font-weight:700;
	font-size:var(--16);
}
#cases .case .more:after,
#case .other .case .more:after,
#case .back-link:before {
	content:" →";
}
#case .back-link:before {
	content:"← ";
}
#cases .empty {
	font-size:var(--20);
	color:var(--Gray);
	padding:var(--40) 0;
}

/* призыв к действию в списке */
#cases .cta {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:var(--60);
	margin-top:var(--100);
	background:var(--ULGray);
	border-radius:var(--20);
	padding:var(--60) var(--80);
}
#cases .cta .title {
	font-size:var(--40);
	line-height:var(--48);
	font-weight:700;
}
#cases .cta .description {
	font-size:var(--20);
	line-height:var(--30);
	margin-top:var(--12);
}
#cases .cta .btn {
	flex-shrink:0;
}

/* страница кейса */
#case .back-link {
	display:inline-block;
	font-size:var(--16);
	font-weight:700;
	color:var(--Gray);
	margin-bottom:var(--30);
}
#case .back-link:hover {
	color:var(--Black);
}
#case>h1.title {
	text-transform:none;
	margin-bottom:var(--60);
}
#case .other {
	margin-top:var(--100);
}
#case .other header.header {
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	gap:var(--30);
	margin-bottom:var(--30);
}
#case .other header.header h2.title {
	font-size:var(--48);
	line-height:var(--56);
	font-weight:500;
	margin:0;
}
#case .other header.header .more {
	font-weight:700;
	font-size:var(--18);
	color:var(--Black);
	border-bottom:2px solid var(--Black);
}
#case .other .list {
	display:grid;
	grid-template-columns:repeat(3,1fr);
	gap:var(--30);
}

/* мобильная версия */
.mobile #cases,
.mobile #case {
	padding:0 var(--MainPadding);
}
.mobile #case #sections {
	width:auto;
	max-width:none;
	margin:0 calc(var(--MainPadding)*-1);
}
.mobile #cases>.description.lead {
	font-size:18px;
	line-height:normal;
	margin:0 0 20px;
}
.mobile #cases .filter {
	flex-direction:column;
	align-items:flex-start;
	gap:10px;
	margin-bottom:20px;
}
.mobile #cases .filter .items {
	gap:8px;
}
.mobile #cases .filter .item {
	font-size:14px;
	line-height:normal;
	padding:7px 14px 5px;
	border-radius:20px;
}
.mobile #cases .filter .shown {
	font-size:13px;
}
.mobile #cases .list,
.mobile #case .other .list {
	grid-template-columns:1fr;
	gap:15px;
}
.mobile #cases .case,
.mobile #case .other .case {
	border-radius:12px;
}
.mobile #cases .case .info,
.mobile #case .other .case .info {
	gap:8px;
	padding:15px 20px 20px;
}
.mobile #cases .case .meta,
.mobile #cases .case .directions,
.mobile #case .other .case .meta {
	font-size:13px;
	line-height:normal;
}
.mobile #cases .case .title,
.mobile #case .other .case .title {
	font-size:18px;
	line-height:normal;
}
.mobile #cases .case .metric,
.mobile #case .other .case .metric {
	font-size:14px;
	padding-top:10px;
}
.mobile #cases .case .metric .value,
.mobile #case .other .case .metric .value {
	font-size:24px;
	line-height:normal;
}
.mobile #cases .case .more,
.mobile #case .other .case .more,
.mobile #case .back-link {
	font-size:14px;
}
.mobile #cases .cta {
	flex-direction:column;
	align-items:flex-start;
	gap:20px;
	margin-top:40px;
	padding:25px 20px;
	border-radius:12px;
}
.mobile #cases .cta .title {
	font-size:22px;
	line-height:normal;
}
.mobile #cases .cta .description {
	font-size:16px;
	line-height:normal;
}
.mobile #case .back-link {
	margin-bottom:15px;
}
.mobile #case>h1.title {
	font-size:28px;
	line-height:normal;
	margin-bottom:20px;
}
.mobile #case .other {
	margin-top:40px;
}
.mobile #case .other header.header {
	margin-bottom:15px;
}
.mobile #case .other header.header h2.title {
	font-size:24px;
	line-height:normal;
}
.mobile #case .other header.header .more {
	font-size:14px;
}
