/*
 * bizbank/hero, all variants. Values follow the sections the block
 * reproduces: "promo" the hero of /fop/rahunky-ta-taryfni-pakety/, "card"
 * the product hero of the credit pages, "qr" the first screen of the
 * BISeshka page mock-up (the card-promo section of the card pages with the
 * mock-up's description, link, QR code and note), "metric" the first screen
 * of the Factoring page mock-up.
 */

/*
 * Promo. From 1024px the container is a formatting root, so the box margins
 * stay inside the section; below that they collapse through it, as on the
 * production page.
 */
.bb-hero--promo {
	position: relative;
	margin-top: 70px;
}

.bb-hero--promo .bb-hero__decor {
	position: absolute;
	z-index: 1;
	line-height: 0;
	pointer-events: none;
}

.bb-hero--promo .bb-hero__decor--start {
	top: -40px;
	left: 0;
}

.bb-hero--promo .bb-hero__decor--end {
	top: 100px;
	right: 0;
}

.bb-hero--promo .bb-hero__box {
	position: relative;
	z-index: 2;
	margin-top: 10px;
	margin-bottom: 28px;
	padding: 16px;
	border-radius: 16px;
	background: var(--bb-white);
}

.bb-hero--promo .bb-hero__title {
	padding: 0;
	font-size: 32px;
	font-weight: 800;
	line-height: 40px;
}

.bb-hero--promo .bb-hero__desc {
	margin-top: 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 20px;
}

.bb-hero--promo .bb-hero__items {
	margin-top: 16px;
	margin-bottom: 16px;
}

.bb-hero--promo .bb-hero__item {
	margin-bottom: 8px;
	padding: 4px 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.bb-hero--promo .bb-hero__item-text {
	display: inline-block;
	margin-left: 8px;
}

.bb-hero .bb-hero__btn {
	transition: all 0.2s ease;
}

.bb-hero--promo .bb-hero__btn {
	display: block;
	width: 100%;
	margin: 16px 0;
	padding: 10px 15px;
	border-radius: 50px;
	font-size: 16px;
	line-height: 24px;
}

.bb-hero--promo .bb-hero__image {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 390px;
	margin: 13px auto 0;
	overflow: hidden;
}

.bb-hero--promo .bb-hero__image img {
	max-width: 100%;
	height: auto;
	vertical-align: baseline;
}

.bb-hero--promo .bb-hero__apps-caption {
	margin-top: 14px;
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: center;
}

.bb-hero--promo .bb-hero__badges {
	display: flex;
	align-items: center;
	justify-content: center;
}

.bb-hero--promo .bb-badges__link {
	display: block;
	font-size: 0;
	line-height: 0;
}

.bb-hero--promo .bb-badges__link + .bb-badges__link {
	margin-left: 8px;
}

@media (min-width: 768px) {

	.bb-hero--promo .bb-hero__box {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
	}

	.bb-hero--promo .bb-hero__main {
		display: flex;
		flex: 1;
		flex-direction: column;
		justify-content: center;
		max-width: 580px;
		margin-right: 26px;
		padding-left: 20px;
	}

	.bb-hero--promo .bb-hero__aside {
		display: flex;
		flex: 2;
		flex-direction: column;
		align-items: flex-start;
		max-width: 300px;
	}

	.bb-hero--promo .bb-hero__btn {
		max-width: 360px;
	}
}

@media (min-width: 1024px) {

	.bb-hero--promo > .bb-container {
		display: flow-root;
	}

	.bb-hero--promo .bb-hero__btn {
		display: inline-block;
		width: auto;
		padding: 10px 30px;
	}

	.bb-hero--promo .bb-hero__image {
		margin-top: 0;
	}
}

/* Card. */
.bb-hero--card {
	padding: 10px 0 30px;
}

.bb-hero--card .bb-hero__card {
	border-radius: 16px;
	background: var(--bb-white);
}

.bb-hero--card .bb-hero__main {
	position: relative;
	padding: 16px;
	border-radius: 20px;
	background: var(--bb-white);
	overflow: hidden;
}

.bb-hero--card .bb-hero__title {
	margin-top: 10px;
	padding: 34px 0 29px;
	font-size: 56px;
	font-weight: 800;
	line-height: 1.2;
}

.bb-hero--card .bb-hero__tags {
	font-weight: 300;
	line-height: 1.2;
}

.bb-hero--card .bb-hero__tag {
	display: inline-block;
	margin: 0 4px 2px 0;
	padding: 2px 10px 3px;
	border-radius: 4px;
	background: var(--bb-body);
	font-size: 14px;
}

.bb-hero--card .bb-hero__lines {
	padding-bottom: 25px;
}

.bb-hero--card .bb-hero__btn {
	margin-bottom: 30px;
}

.bb-hero--card .bb-hero__media {
	position: relative;
	display: grid;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-radius: 20px;
	overflow: hidden;
}

.bb-hero--card .bb-hero__media img {
	display: block;
	max-width: 100%;
	height: auto;
}

@media screen and (min-width: 992px) {

	.bb-hero--card .bb-hero__card {
		display: grid;
		grid-template-columns: calc(63% - 10px) auto;
		align-content: stretch;
		gap: 10px;
	}

	.bb-hero--card .bb-hero__main {
		display: grid;
		grid-template-rows: auto;
		gap: 0;
	}

	.bb-hero--card .bb-hero__tags {
		margin-top: -28px;
		padding: 0 0 28px;
	}

	.bb-hero--card .bb-hero__lines {
		max-width: 750px;
	}

	.bb-hero--card .bb-hero__bottom {
		align-self: end;
		margin-top: auto;
	}

	.bb-hero--card .bb-hero__btn {
		margin-bottom: 90px;
	}

	.bb-hero--card .bb-hero__media {
		align-self: start;
	}

	.bb-hero--card .bb-hero__media img {
		width: 360px;
		margin-right: 50px;
	}
}

@media screen and (max-width: 991px) {

	.bb-hero--card .bb-hero__card {
		display: flex;
		flex-direction: column;
	}

	.bb-hero--card .bb-hero__main {
		order: 2;
		padding-top: 7px;
	}

	.bb-hero--card .bb-hero__title {
		margin-top: 0;
		padding: 0 0 5px;
		font-size: 32px;
	}

	.bb-hero--card .bb-hero__tags {
		padding-bottom: 19px;
	}

	.bb-hero--card .bb-hero__tag {
		margin-bottom: 6px;
	}

	.bb-hero--card .bb-hero__lines {
		padding-bottom: 5px;
		font-size: 20px;
		font-weight: 300;
	}

	.bb-hero--card .bb-hero__btn {
		display: block;
		width: 100%;
		margin: 34px auto 0;
		padding: 11px 30px 10px;
		font-size: 16px;
		line-height: 1.1;
		text-align: center;
	}

	.bb-hero--card .bb-hero__media {
		order: 1;
	}

	.bb-hero--card .bb-hero__media img {
		width: auto;
		max-height: 160px;
	}
}

/*
 * QR. From 1024px the card and the picture stand in a row and the card keeps
 * its top margin inside the section; below that they stack and the margin
 * collapses through the section, as on the production card pages. The
 * shadow under the picture spreads past the section on every side; the
 * section clips it only horizontally, so it still falls over the top of the
 * next section.
 */
.bb-hero--qr {
	overflow-x: clip;
}

.bb-hero--qr .bb-hero__box {
	margin-top: 10px;
	padding: 16px;
	border-radius: 16px;
	background: var(--bb-white);
}

.bb-hero--qr .bb-hero__title {
	margin: 0;
	padding: 0;
	font-size: 32px;
	font-weight: 800;
	line-height: 40px;
	letter-spacing: 0;
}

.bb-hero--qr .bb-hero__desc {
	max-width: 560px;
	margin: 0 0 26px;
	color: #2b333a;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
}

.bb-hero--qr .bb-hero__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	margin: 6px 0 0;
}

.bb-hero--qr .bb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.bb-hero--qr .bb-hero__actions .bb-hero__btn {
	display: block;
	margin: 16px 0 24px;
	padding: 10px 15px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: center;
	transition: all 0.25s ease;
}

.bb-hero--qr .bb-hero__link {
	display: block;
	margin: 0;
	padding: 0;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: underline;
}

.bb-hero--qr .bb-hero__link:hover {
	text-decoration: none;
}

.bb-hero--qr .bb-hero__qr {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid #e3e9ef;
	border-radius: 18px;
	background: var(--bb-white);
}

.bb-hero--qr .bb-hero__qr-code {
	display: block;
	flex: none;
	line-height: 0;
}

.bb-hero--qr .bb-hero__qr-img {
	display: block;
	width: 110px;
	max-width: none;
	height: 110px;
}

.bb-hero--qr .bb-hero__qr-caption {
	max-width: 150px;
	margin: 0;
	color: #4b555f;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.bb-hero--qr .bb-hero__note {
	max-width: 640px;
	margin: 18px 0 0;
	color: #6b7680;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.bb-hero--qr .bb-hero__visual {
	position: relative;
}

.bb-hero--qr .bb-hero__phone {
	position: relative;
	z-index: 1;
	max-width: 234px;
	height: 235px;
	margin: 54px auto 0;
	overflow: hidden;
}

.bb-hero--qr .bb-hero__phone img {
	display: inline;
	max-width: 100%;
	height: auto;
	vertical-align: baseline;
}

.bb-hero--qr .bb-hero__shadow {
	--bb-hero-shadow: url('data:image/svg+xml,<svg width="375" height="445" viewBox="0 0 375 800" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(%23filter0_f_32_1299)"><ellipse cx="188" cy="247" rx="159" ry="67" fill="black"/></g><defs><filter id="filter0_f_32_1299" x="-151" y="0" width="678" height="494" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="90" result="effect1_foregroundBlur_32_1299"/></filter></defs></svg>');

	position: relative;
	width: 375px;
	margin: auto;
	pointer-events: none;
}

.bb-hero--qr .bb-hero__shadow::before,
.bb-hero--qr .bb-hero__shadow::after {
	content: "";
	position: absolute;
	bottom: -150px;
	width: 700px;
	height: 300px;
	background-image: var(--bb-hero-shadow);
	background-repeat: no-repeat;
}

.bb-hero--qr .bb-hero__shadow::before {
	left: -80px;
}

.bb-hero--qr .bb-hero__shadow::after {
	left: 80px;
}

@media (min-width: 1024px) {

	.bb-hero--qr .bb-hero__row {
		display: flex;
		flex-wrap: nowrap;
	}

	.bb-hero--qr .bb-hero__box {
		flex: 1;
		min-width: 0;
	}

	.bb-hero--qr .bb-hero__visual {
		flex: none;
	}

	.bb-hero--qr .bb-hero__actions .bb-hero__btn {
		display: inline-block;
		padding: 10px 30px;
	}

	.bb-hero--qr .bb-hero__phone {
		height: auto;
		margin-top: 0;
	}
}

@media (max-width: 1024px) {

	.bb-hero--qr .bb-hero__qr {
		display: none;
	}
}

@media (max-width: 767px) {

	.bb-hero--qr .bb-hero__cta {
		gap: 16px;
	}

	.bb-hero--qr .bb-hero__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		width: 100%;
	}

	.bb-hero--qr .bb-hero__actions .bb-hero__btn {
		width: 100%;
	}
}

/*
 * Metric. Values follow the first screen of the Factoring page mock-up; its
 * breakpoints (1200px, 1000px, 650px) are kept. The section margin sits on
 * the root with two classes, so it also holds in the editor canvas, where the
 * blocks reset their margins. The top margin keeps the white card the
 * mock-up's distance below the site header, whose breadcrumbs are smaller.
 */
.bb.bb-hero--metric {
	margin: 56px 0 20px;
	padding: 0;
}

.bb-hero--metric .bb-hero__duo {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 16px;
}

.bb-hero--metric .bb-hero__box {
	padding: 40px 30px;
	border-radius: 22px;
	background: var(--bb-white);
}

.bb-hero--metric .bb-hero__box:only-child {
	grid-column: 1 / -1;
}

.bb-hero--metric .bb-hero__title {
	margin: 0 0 36px;
	padding: 0;
	font-size: 54px;
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -1.5px;
}

.bb-hero--metric .bb-hero__lead {
	margin: 0 0 20px;
	font-size: 29px;
	font-weight: 400;
	line-height: 1.4;
}

.bb-hero--metric .bb-hero__desc {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}

.bb-hero--metric .bb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px;
	margin: 32px 0 0;
}

.bb.bb-hero--metric .bb-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0;
	padding: 14px 28px;
	border-radius: 100px;
	background: var(--bb-yellow-strong);
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.bb.bb-hero--metric .bb-hero__btn:hover,
.bb.bb-hero--metric .bb-hero__btn:focus-visible {
	background: #efc300;
	color: #000;
}

/* The theme removes the outline of focused buttons; the ring restores it. */
.bb.bb-hero--metric .bb-hero__btn:focus-visible {
	outline: 2px solid var(--bb-blue);
	outline-offset: 2px;
}

.bb-hero--metric .bb-hero__link {
	display: block;
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-decoration: none;
}

/* The theme removes the outline of focused links; the underline stands in. */
.bb-hero--metric .bb-hero__link:focus-visible {
	text-decoration: underline;
}

.bb-hero--metric .bb-hero__accent {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 38px 32px;
	border-radius: 22px;
	background: var(--bb-yellow);
}

.bb-hero--metric .bb-hero__accent-title {
	margin: 0 0 12px;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.35;
}

.bb-hero--metric .bb-hero__accent-value {
	margin: 12px 0 24px;
	font-size: 66px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -2px;
}

.bb-hero--metric .bb-hero__accent-text {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}

.bb-hero--metric .bb-hero__icon {
	position: absolute;
	top: 42px;
	right: 24px;
	width: 128px;
	line-height: 0;
	pointer-events: none;
}

.bb-hero--metric .bb-hero__icon img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	opacity: 0.4;
}

.editor-styles-wrapper .bb-hero--metric .bb-hero__icon {
	pointer-events: auto;
}

.bb-hero--metric .bb-hero__example {
	margin-top: 32px;
	padding: 22px;
	border-radius: 20px;
	background: var(--bb-white);
}

.bb-hero--metric .bb-hero__example-label {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}

.bb-hero--metric .bb-hero__example-result {
	margin: 0 0 12px;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.35;
}

@media (max-width: 1200px) {

	.bb-hero--metric .bb-hero__icon {
		width: 90px;
	}

	.bb-hero--metric .bb-hero__accent-value {
		font-size: 56px;
	}
}

@media (max-width: 1000px) {

	.bb-hero--metric .bb-hero__title {
		font-size: 42px;
	}

	.bb-hero--metric .bb-hero__lead {
		font-size: 24px;
	}

	.bb-hero--metric .bb-hero__icon {
		display: none;
	}
}

@media (max-width: 991px) {

	.bb.bb-hero--metric {
		margin-top: 42px;
	}
}

@media (max-width: 650px) {

	.bb.bb-hero--metric {
		margin-top: 27px;
	}

	.bb-hero--metric .bb-hero__duo {
		grid-template-columns: minmax(0, 1fr);
	}

	.bb-hero--metric .bb-hero__box {
		padding: 28px 24px;
		border-radius: 18px;
	}

	.bb-hero--metric .bb-hero__title {
		margin-bottom: 26px;
		font-size: 34px;
		letter-spacing: -0.6px;
	}

	.bb-hero--metric .bb-hero__lead {
		font-size: 23px;
	}

	.bb-hero--metric :is(.bb-hero__desc, .bb-hero__accent-text, .bb-hero__example-label) {
		font-size: 16px;
	}

	.bb-hero--metric .bb-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.bb-hero--metric .bb-hero__link {
		text-align: center;
	}

	.bb-hero--metric .bb-hero__accent {
		padding: 28px 24px;
		border-radius: 18px;
	}

	.bb-hero--metric :is(.bb-hero__accent-title, .bb-hero__example-result) {
		font-size: 22px;
	}

	.bb-hero--metric .bb-hero__accent-value {
		font-size: 54px;
	}

	.bb-hero--metric .bb-hero__icon {
		display: block;
		top: 32px;
		right: 20px;
		width: 100px;
	}
}

/* Editor canvas: the optional mobile image below the main one. */
.bb-hero__mobile-image {
	margin-top: 12px;
	font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bb-hero__mobile-label {
	display: block;
	margin-bottom: 4px;
	color: #757575;
}
