/* Слайдер кейсов (inc/block-cases.php): карточка «клиент + цифры + общий график». Тёмная версия по умолчанию, .white-block — светлая. */
.owl-carousel.cases-slider.lp-cases {
	--c-card: linear-gradient(160deg, #1b1924 0%, #101015 100%);
	--c-line: rgba(255,255,255,.09);
	--c-ink: #fff;
	--c-muted: rgba(255,255,255,.6);
	--c-tile: rgba(255,255,255,.05);
	--c-chip: rgba(255,255,255,.08);
	--c-panel: rgba(255,255,255,.035);
	--c-violet: #9271F7;
	--c-teal: #0CAEB8;
	--c-mint: #5BF5A0;
}
.owl-carousel.cases-slider.lp-cases.white-block {
	--c-card: #fff;
	--c-line: rgba(28,28,28,.1);
	--c-ink: #1C1C1C;
	--c-muted: #6b6b75;
	--c-tile: #F6F5F8;
	--c-chip: #F0EEF6;
	--c-panel: #F8F7FB;
	--c-violet: #6E50E0;
}
.owl-carousel.cases-slider.lp-cases .owl-stage { padding-bottom: 64px; }
.owl-carousel.cases-slider.lp-cases .owl-dots { bottom: 8px; }

.owl-carousel.cases-slider.lp-cases .item.lp-case {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px;
	align-items: stretch;
	padding: 40px !important;
	border-radius: 28px;
	border: 1px solid var(--c-line);
	background: var(--c-card);
	box-shadow: 0 24px 80px rgba(0,0,0,.25);
	color: var(--c-ink);
}
.owl-carousel.cases-slider.lp-cases.white-block .item.lp-case { box-shadow: 0 20px 60px rgba(20,16,69,.06); }

.lp-cases .lp-case__info { display: flex; flex-direction: column; min-width: 0; }
.lp-cases .lp-case__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.lp-cases .lp-case__logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 112px; height: 64px; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(28,28,28,.06); }
.lp-cases .lp-case__logo img { display: block; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lp-cases .lp-case__meta { margin-bottom: 6px; font: 400 13px/1.2 "GTWalsheimPro-Regular", sans-serif; color: var(--c-muted); }
.lp-cases .lp-case__name { margin: 0; font: 400 26px/1.15 "GTWalsheimPro-Bold", sans-serif; letter-spacing: -.02em; color: var(--c-ink); }
.lp-cases .lp-case__name a { color: inherit; text-decoration: none; }
.lp-cases .lp-case__name a:hover { color: var(--c-violet); }
.lp-cases .lp-case__descr { margin: 0 0 18px; font: 400 16px/1.45 "GTWalsheimPro-Regular", sans-serif; color: var(--c-muted); }
.lp-cases .lp-case__task { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; }
.lp-cases .lp-case__task span { margin-right: 4px; font: 400 13px/1 "GTWalsheimPro-Regular", sans-serif; color: var(--c-muted); }
.lp-cases .lp-case__task b { padding: 7px 11px; border-radius: 9px; background: var(--c-chip); font: 400 13px/1 "GTWalsheimPro-Medium", sans-serif; color: var(--c-ink); }

.lp-cases .lp-case__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.lp-cases .lp-case__kpi { padding: 18px; border-radius: 18px; background: var(--c-tile); }
.lp-cases .lp-case__kpi strong { display: block; margin-bottom: 8px; font: 400 40px/1 "GTWalsheimPro-Bold", sans-serif; letter-spacing: -.04em; color: var(--c-violet); }
.lp-cases .lp-case__kpi:nth-child(2) strong { color: var(--c-teal); }
.owl-carousel.cases-slider.lp-cases:not(.white-block) .lp-case__kpi:nth-child(2) strong { color: var(--c-mint); }
.lp-cases .lp-case__kpi span { display: block; font: 400 15px/1.25 "GTWalsheimPro-Medium", sans-serif; color: var(--c-ink); }
.lp-cases .lp-case__kpi small { display: block; margin-top: 6px; font: 400 13px/1.2 "GTWalsheimPro-Regular", sans-serif; font-variant-numeric: tabular-nums; color: var(--c-muted); }

.lp-cases .lp-case__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; }
.lp-cases .lp-case__btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px; background: linear-gradient(118.75deg, #9271F7 0%, #6E50E0 100%); color: #fff !important; font: 400 16px/1 "GTWalsheimPro-Medium", sans-serif; text-decoration: none; transition: filter .2s ease; }
.lp-cases .lp-case__btn:hover { filter: brightness(1.08); }
.lp-cases .lp-case__btn i, .lp-cases .lp-case__site i { font-style: normal; }
.lp-cases .lp-case__site { font: 400 15px/1 "GTWalsheimPro-Regular", sans-serif; color: var(--c-muted) !important; text-decoration: none; border-bottom: 1px solid var(--c-line); padding-bottom: 3px; transition: color .2s ease; }
.lp-cases .lp-case__site:hover { color: var(--c-ink) !important; }

.lp-cases .lp-case__chart { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 14px; border-radius: 22px; background: var(--c-panel); border: 1px solid var(--c-line); }
.lp-cases .lp-case__chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lp-cases .lp-case__legend { display: flex; flex-wrap: wrap; gap: 16px; font: 400 14px/1 "GTWalsheimPro-Medium", sans-serif; color: var(--c-ink); }
.lp-cases .lp-case__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lp-cases .lp-case__legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.lp-cases .lp-case__legend .is-visits::before { border-radius: 50%; background: var(--c-violet); box-shadow: 0 0 0 3px rgba(146,113,247,.22); }
.lp-cases .lp-case__legend .is-leads::before { background: var(--c-teal); }
.lp-cases .lp-case__period { font: 400 13px/1 "GTWalsheimPro-Regular", sans-serif; color: var(--c-muted); white-space: nowrap; }
.lp-cases .lp-case__canvas { position: relative; flex: 1 1 auto; min-height: 320px; }
.lp-cases .lp-case__canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

@media (max-width: 1050px) {
	.owl-carousel.cases-slider.lp-cases .item.lp-case { grid-template-columns: 1fr; gap: 28px; padding: 28px !important; }
	.lp-cases .lp-case__canvas { min-height: 280px; }
}
@media (max-width: 640px) {
	.owl-carousel.cases-slider.lp-cases .item.lp-case { gap: 20px; padding: 20px !important; border-radius: 22px; }
	.lp-cases .lp-case__brand { gap: 12px; margin-bottom: 14px; }
	.lp-cases .lp-case__logo { width: 84px; height: 50px; padding: 6px 8px; border-radius: 11px; }
	.lp-cases .lp-case__name { font-size: 21px; }
	.lp-cases .lp-case__descr { font-size: 15px; margin-bottom: 14px; }
	.lp-cases .lp-case__task { margin-bottom: 16px; }
	.lp-cases .lp-case__kpis { margin-bottom: 18px; }
	.lp-cases .lp-case__kpi { padding: 14px; border-radius: 14px; }
	.lp-cases .lp-case__kpi strong { font-size: 32px; }
	.lp-cases .lp-case__kpi span { font-size: 14px; }
	.lp-cases .lp-case__btn { width: 100%; justify-content: center; }
	.lp-cases .lp-case__chart { padding: 16px 12px 8px; border-radius: 18px; }
	.lp-cases .lp-case__chart-head { padding: 0 4px; }
	.lp-cases .lp-case__canvas { min-height: 230px; }
}

/* Навигация по кейсам: вкладки с клиентами + стрелки */
.lp-cases-nav { --n-ink: #fff; --n-muted: rgba(255,255,255,.6); --n-bg: rgba(255,255,255,.06); --n-line: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.lp-cases-nav.is-light { --n-ink: #1C1C1C; --n-muted: #6b6b75; --n-bg: #F6F5F8; --n-line: rgba(28,28,28,.1); }
.lp-cases-nav__tabs { display: flex; gap: 6px; min-width: 0; padding: 4px; border-radius: 14px; background: var(--n-bg); overflow-x: auto; scrollbar-width: none; }
.lp-cases-nav__tabs::-webkit-scrollbar { display: none; }
.lp-cases-nav__tabs button { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--n-muted); font: 400 15px/1 "GTWalsheimPro-Medium", sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s ease, color .2s ease; }
.lp-cases-nav__tabs button:hover { color: var(--n-ink); }
.lp-cases-nav__tabs button.is-active { background: linear-gradient(118.75deg, #9271F7 0%, #6E50E0 100%); color: #fff; }
.lp-cases-nav__arrows { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lp-cases-nav__count { margin-right: 6px; font: 400 15px/1 "GTWalsheimPro-Regular", sans-serif; color: var(--n-muted); font-variant-numeric: tabular-nums; }
.lp-cases-nav__count b { font-family: "GTWalsheimPro-Bold", sans-serif; font-weight: 400; color: var(--n-ink); }
.lp-cases-nav__arrows button { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--n-line); border-radius: 14px; background: transparent; color: var(--n-ink); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.lp-cases-nav__arrows button:hover { background: var(--n-bg); border-color: transparent; }
.lp-cases-nav__arrows button:focus-visible, .lp-cases-nav__tabs button:focus-visible { outline: 2px solid #9271F7; outline-offset: 2px; }
.owl-carousel.cases-slider.lp-cases .owl-dots { display: none; }
.owl-carousel.cases-slider.lp-cases .owl-stage { padding-bottom: 40px; }

/* Панель «что сделали» для кейсов без графика */
.lp-cases .lp-case__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 8px; padding: 0; list-style: none; }
.lp-cases .lp-case__steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--c-tile); }
.lp-cases .lp-case__steps b { flex: 0 0 auto; display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: rgba(146,113,247,.2); color: var(--c-violet); font: 400 12px/1 "GTWalsheimPro-Bold", sans-serif; }
.lp-cases .lp-case__steps strong { display: block; margin-bottom: 4px; font: 400 15px/1.25 "GTWalsheimPro-Medium", sans-serif; color: var(--c-ink); }
.lp-cases .lp-case__steps span { display: block; font: 400 13px/1.35 "GTWalsheimPro-Regular", sans-serif; color: var(--c-muted); }
.lp-cases .lp-case__product .lp-case__legend { font-family: "GTWalsheimPro-Bold", sans-serif; font-size: 16px; }

@media (max-width: 640px) {
	.lp-cases-nav { flex-direction: column; align-items: stretch; gap: 10px; }
	.lp-cases-nav__tabs button { height: 36px; padding: 0 12px; font-size: 14px; }
	.lp-cases-nav__arrows { justify-content: space-between; }
	.lp-cases-nav__arrows button { width: 44px; height: 44px; }
	.lp-cases-nav__count { margin-right: auto; }
	.lp-cases .lp-case__steps { grid-template-columns: 1fr; }
}
