/* BeVisible A: layout of the case pages («було / стало», 15 cases in 4 languages).
   The markup is the parent's (_migration/gen_case_*.py + case_craft.py, kept in the database, classes .bv-case-*);
   this file re-lays it out in the language of the new home page: one background, wide spacing, thin lines
   instead of boxed cards, one soft panel for the comparison, a dark block for the final call.
   Loaded after the parent's style.css and a-inner.css, only on pages that have .bv-case. */

/* ---------- Page frame: same width and gutters as the header and the home page ---------- */

.bv-case .lp-section,
.bv-case .lp-section.lp-white {
	background: transparent;
	padding: 120px 28px 0;
}

.bv-case .lp-wrap {
	max-width: 1184px;
}

.bv-case .lp-section h1,
.bv-case .lp-section h2 {
	font-weight: 400;
}

.bv-case .lp-section h2 {
	font-size: clamp(30px, 3.9vw, 54px);
	line-height: 1.06;
}

.bv-case .lp-lead {
	font-size: 19px;
	max-width: 640px;
}

/* sections that used to share a white band: the parent pulled them together, here every section breathes the same */
.bv-case .bv-case-why + .bv-case-how,
.bv-case .lp-white + .lp-white,
.bv-case .bv-case-why + .bv-case-why {
	padding-top: 120px;
}

/* ---------- Hero: headline on the left, the story and the buttons on the right ---------- */

.bv-case .lp-hero {
	padding-top: 156px;
}

.bv-case .lp-hero .lp-wrap {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	column-gap: 56px;
	align-items: end;
}

.bv-case .lp-hero .lp-eyebrow {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 26px;
}

.bv-case .lp-hero .lp-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--a-red);
}

.bv-case .lp-hero h1 {
	grid-column: 1;
	grid-row: 2 / span 2;
	margin: 0;
	font-size: clamp(38px, 4.8vw, 68px);
	line-height: 1.03;
	letter-spacing: -0.04em;
}

.bv-case .lp-hero .lp-lead {
	grid-column: 2;
	grid-row: 2;
	font-size: 18px;
	max-width: none;
}

.bv-case .lp-hero .lp-cta {
	grid-column: 2;
	grid-row: 3;
	margin-top: 26px;
	gap: 10px;
}

.bv-case .lp-cta .wp-block-button__link {
	min-height: 48px;
	padding: 0 24px;
	font-size: 16px;
	font-weight: 500;
	border-width: 1px;
}

/* ---------- Was / became: one soft panel with two white cards ---------- */

.bv-case #bulo-stalo {
	padding-top: 72px;
}

.bv-case-compare {
	gap: 10px;
	margin-top: 40px;
	padding: 10px;
	background: var(--a-soft);
	border: 1px solid var(--a-line);
	border-radius: 28px;
}

.bv-case-card {
	background: #fff;
	border-radius: 20px;
	padding: 32px;
}

.bv-case-tag,
.bv-case-card.is-after .bv-case-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin-bottom: 24px;
	background: none;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--a-mut);
}

.bv-case-card.is-after .bv-case-tag {
	color: var(--a-fg);
}

.bv-case-card.is-after .bv-case-tag::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--a-red);
}

.bv-case-card video,
.bv-case-msg {
	max-width: 320px;
	border-radius: 22px;
	margin-bottom: 26px;
}

.bv-case-card.is-after video {
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}

.bv-case-sent {
	font-weight: 500;
	margin-top: -10px;
}

.bv-case-card ul {
	border-top: 1px solid var(--a-line);
}

.bv-case-card li {
	margin: 0;
	padding: 13px 0 13px 28px;
	border-bottom: 1px solid var(--a-line);
	font-size: 16px;
}

.bv-case-card li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.bv-case-card li::before {
	left: 2px;
	top: 13px;
}

.bv-case-card.is-after li::before {
	color: var(--a-fg);
	font-weight: 500;
}

.bv-case-card summary {
	color: var(--a-fg);
	font-weight: 500;
}

/* ---------- Why it works: three columns divided by lines, no boxes ---------- */

.bv-case-craft {
	gap: 0;
	margin-top: 48px;
	border-top: 1px solid var(--a-line);
}

.bv-craft-card {
	background: none;
	border: 0;
	border-radius: 0;
	border-right: 1px solid var(--a-line);
	padding: 28px 28px 12px 0;
}

.bv-craft-card + .bv-craft-card {
	padding-left: 28px;
}

.bv-craft-card:last-child {
	border-right: 0;
	padding-right: 0;
}

.bv-craft-kicker {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--a-mut);
	margin-bottom: 12px;
}

.bv-craft-card h3 {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
}

.bv-craft-card p {
	color: var(--a-text);
}

.bv-craft-quote {
	padding: 16px 18px;
	border-left: 0;
	border-radius: 16px 16px 16px 4px;
	background: var(--a-soft);
	font-style: normal;
}

.bv-craft-types span {
	font-weight: 400;
	background: none;
}

.bv-craft-types span.is-on {
	background: var(--a-fg);
	border-color: var(--a-fg);
	font-weight: 500;
}

.bv-craft-arc li::before {
	background: var(--a-soft);
	color: var(--a-fg);
	font-weight: 500;
}

.bv-craft-arc strong {
	font-weight: 500;
}

/* «how we checked the trends»: the rejected trend is quiet, the chosen one carries the accent */
.bv-trend-no {
	background: none;
}

.bv-trend-yes {
	border: 0;
	border-right: 1px solid var(--a-line);
	box-shadow: inset 0 2px 0 var(--a-red);
}

.bv-trend-yes:last-child {
	border-right: 0;
}

.bv-trend-yes .bv-craft-kicker {
	color: var(--a-fg);
}

.bv-trend-note {
	text-align: left;
	margin-left: 0;
}

/* ---------- What we did: numbered rows ---------- */

.bv-case-steps {
	gap: 0;
	margin-top: 40px;
	border-top: 1px solid var(--a-line);
}

.bv-case-steps li {
	padding: 24px 0 24px 54px;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--a-line);
	border-radius: 0;
	color: var(--a-mut);
}

.bv-case-steps li::before {
	content: counter(step, decimal-leading-zero);
	left: 0;
	top: 29px;
	width: auto;
	height: auto;
	display: block;
	background: none;
	border-radius: 0;
	color: var(--a-mut);
	font-size: 13px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.bv-case-steps strong {
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 6px;
}

/* ---------- The process with the client (cartoon cases): rows divided by lines ---------- */

.bv-proc {
	gap: 0;
	margin-top: 48px;
	border-top: 1px solid var(--a-line);
}

.bv-proc-step {
	gap: 56px;
	padding: 48px 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--a-line);
	border-radius: 0;
}

.bv-proc-step h3 {
	font-size: 26px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.bv-proc-step .bv-proc-ok {
	background: var(--a-soft);
	color: var(--a-fg);
	font-weight: 500;
	border-radius: 14px;
}

.bv-proc-media img {
	border-radius: 20px;
}

.bv-proc-script {
	background: var(--a-soft);
	border: 0;
	border-radius: 20px;
	padding: 24px 26px;
}

.bv-proc-script strong {
	font-weight: 500;
}

/* ---------- Several Reels from one batch, Shorts from a long video ---------- */

.bv-case-trio {
	gap: 16px;
	margin-top: 40px;
}

.bv-case-trio figure {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.bv-case-trio video,
.bv-case-shorts video {
	border-radius: 22px;
}

.bv-case-trio figcaption strong,
.bv-case-shorts figcaption strong {
	font-weight: 500;
}

.bv-yt {
	border-radius: 22px;
}

.bv-case-shorts {
	gap: 16px;
}

.bv-case-shorts figure {
	flex-basis: calc((100% - 4 * 16px) / 5);
}

/* ---------- Final call: the dark block, as the request block of the home page ---------- */

.bv-case .lp-section.lp-center {
	padding-top: 120px;
}

.bv-case .lp-section.lp-center .lp-narrow {
	max-width: 1184px;
	padding: 80px 56px;
	background: var(--a-fg);
	border-radius: 28px;
}

.bv-case .lp-section.lp-center h2 {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	color: #fff;
}

.bv-case .lp-section.lp-center .lp-lead {
	color: #b9b9bf;
}

.bv-case .lp-section.lp-center .lp-cta .wp-block-button__link {
	background: #fff;
	border-color: #fff;
	color: #000;
}

.bv-case .lp-section.lp-center .lp-cta .wp-block-button__link:hover {
	background: #e9e9e9;
	border-color: #e9e9e9;
}

.bv-case .lp-section.lp-center .lp-cta .lp-ghost .wp-block-button__link {
	background: transparent;
	border-color: #3a3a42;
	color: #fff;
}

.bv-case .lp-section.lp-center .lp-cta .lp-ghost .wp-block-button__link:hover {
	background: #202026;
	border-color: #fff;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1000px) {
	.bv-case .lp-section,
	.bv-case .lp-section.lp-white,
	.bv-case .bv-case-why + .bv-case-how,
	.bv-case .lp-white + .lp-white,
	.bv-case .bv-case-why + .bv-case-why,
	.bv-case .lp-section.lp-center {
		padding-top: 88px;
	}

	.bv-case .lp-hero {
		padding-top: 112px;
	}

	.bv-case .lp-hero .lp-wrap {
		display: block;
	}

	.bv-case .lp-hero .lp-eyebrow {
		display: flex;
	}

	.bv-case .lp-hero .lp-lead {
		margin-top: 24px;
	}

	.bv-case #bulo-stalo {
		padding-top: 56px;
	}

	.bv-case-shorts figure {
		flex-basis: calc((100% - 16px) / 2);
	}
}

@media (max-width: 960px) {
	.bv-craft-card,
	.bv-craft-card + .bv-craft-card,
	.bv-trend-yes {
		border-right: 0;
		border-bottom: 1px solid var(--a-line);
		padding: 26px 0 14px;
	}

	.bv-craft-card:last-child {
		border-bottom: 0;
	}

	.bv-proc-step {
		gap: 24px;
		padding: 36px 0;
	}
}

@media (max-width: 760px) {
	.bv-case-compare {
		margin-left: -8px;
		margin-right: -8px;
		padding: 6px;
		gap: 6px;
		border-radius: 22px;
	}

	.bv-case-card {
		padding: 22px 18px;
	}

	.bv-case-steps li {
		padding: 20px 0 20px 44px;
	}

	.bv-case-steps li::before {
		left: 0;
		top: 25px;
	}

	.bv-case .lp-section.lp-center .lp-narrow {
		padding: 48px 22px;
	}
}

@media (max-width: 560px) {
	.bv-case .lp-section,
	.bv-case .lp-section.lp-white {
		padding-left: 18px;
		padding-right: 18px;
	}
}
