/* Страница «Оплата» — стили виджета.
   Цвета и размеры приходят из CSS-переменных (Elementor → вкладка «Стиль»).
   Шрифт: два оттенка (--ppe-heading, --ppe-text) и единая шкала размеров.
   Шрифтовое семейство наследуется от темы сайта. */

.ppe {
	/* colors */
	--ppe-primary: #ff4242;
	--ppe-heading: #15181c;
	--ppe-text: #4a5058;
	--ppe-icon: #ff4242;
	--ppe-tile-bg: #ffe4e3;
	--ppe-card-bg: transparent;
	--ppe-delivery-bg: #fff1f1;
	--ppe-banner-bg: #fff1f1;
	--ppe-divider: #e1cfcf;
	--ppe-qr-bg: transparent;
	--ppe-badge: #ff4242;
	--ppe-callout-bg: transparent;
	--ppe-step-text: #fff;
	--ppe-security-bg: #fff1f1;
	--ppe-why-bg: transparent;
	--ppe-sign: #ff4242;
	--ppe-stamp: #ff4242;
	--ppe-page-bg: transparent;

	/* sizes */
	--ppe-gap: 24px;
	--ppe-pill-text: #b42323;
	--ppe-check-bg: #ffe4e3;
	--ppe-radius: 18px;
	--ppe-pad: 25px;
	--ppe-tile: 60px;
	--ppe-glyph: 33px;

	/* type scale: H1 46 / intro 17 / H2 20 / H3 16 / body 13 / small 12 */
	--ppe-fs-h1: 46px;
	--ppe-fs-intro: 17px;
	--ppe-fs-h2: 22px;
	--ppe-fs-h3: 16px;
	--ppe-fs-body: 14px;
	--ppe-fs-small: 12px;
	--ppe-lh-body: 1.65;

	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	background: var(--ppe-page-bg);
	color: var(--ppe-text);
	font-size: var(--ppe-fs-body);
	line-height: var(--ppe-lh-body);
	word-wrap: break-word;
	overflow-wrap: break-word;
	-webkit-text-size-adjust: 100%;
}
.ppe *,
.ppe *::before,
.ppe *::after {
	box-sizing: border-box;
}
.ppe p,
.ppe ul,
.ppe li {
	margin: 0;
	padding: 0;
}
.ppe strong {
	color: var(--ppe-heading);
	font-weight: 600;
}

/* ---------- Head ---------- */
.ppe__head {
	width: 100%;
	margin-bottom: 36px;
}
.ppe__bar {
	display: block;
	width: 56px;
	height: 3px;
	margin-bottom: 18px;
	border-radius: 2px;
	background: var(--ppe-primary);
}
.ppe .ppe__title {
	margin: 0 0 14px;
	padding: 0;
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-h1);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.ppe .ppe__intro {
	width: 100%;
	max-width: none;
	color: var(--ppe-text);
	font-size: var(--ppe-fs-intro);
	line-height: 1.55;
}

/* ---------- Icon tile (same size everywhere) ---------- */
.ppe .ppe-tile {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ppe-tile);
	height: var(--ppe-tile);
	border-radius: calc(var(--ppe-radius) * 0.8);
	background: var(--ppe-tile-bg);
	color: var(--ppe-icon);
	line-height: 1;
}
.ppe .ppe-svg {
	display: block;
	width: var(--ppe-glyph);
	height: var(--ppe-glyph);
	max-width: none;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ppe .ppe-svg .ppe-fill {
	fill: currentColor;
	stroke: none;
}
.ppe .ppe-svg .ppe-badge-circle {
	fill: var(--ppe-primary);
	stroke: var(--ppe-tile-bg);
	stroke-width: 3;
}
.ppe .ppe-svg .ppe-white {
	stroke: #fff;
	stroke-width: 3;
}
.ppe .ppe-tile__font {
	display: flex;
	font-size: var(--ppe-glyph);
	line-height: 1;
}
.ppe .ppe-tile__font svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- Cards ---------- */
.ppe__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ppe-gap);
	align-items: stretch;
}
.ppe .ppe-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 0;
	background: var(--ppe-card-bg);
	border-radius: var(--ppe-radius);
}
.ppe .ppe-card__head {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: calc(var(--ppe-tile) + 20px);
	padding-bottom: 19px;
	border-bottom: 1px solid var(--ppe-divider);
}
.ppe .ppe-card__headtext {
	flex: 1 1 auto;
	min-width: 0;
}
.ppe .ppe-card__title {
	margin: 0;
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-h2);
	font-weight: 600;
	line-height: 1.25;
}
.ppe .ppe-card__sub {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--ppe-tile-bg);
	color: var(--ppe-pill-text);
	font-size: var(--ppe-fs-body);
	font-weight: 600;
	line-height: 20px;
}

/* delivery pill */
.ppe .ppe-delivery {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 62px;
	padding: 12px 16px;
	border-radius: calc(var(--ppe-radius) * 0.7);
	background: var(--ppe-delivery-bg);
}
.ppe .ppe-delivery--empty {
	background: transparent;
	padding: 0;
}
.ppe .ppe-delivery__icon {
	flex: 0 0 auto;
	display: flex;
	color: var(--ppe-icon);
}
.ppe .ppe-delivery__icon .ppe-svg {
	width: 26px;
	height: 26px;
}
.ppe .ppe-delivery__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}
.ppe .ppe-delivery__main {
	display: block;
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-body);
	font-weight: 600;
	line-height: 1.45;
}
.ppe .ppe-delivery__note {
	display: block;
	color: var(--ppe-text);
	font-size: var(--ppe-fs-small);
	line-height: 1.45;
}

/* ---------- Rows (check / num) ---------- */
.ppe ul.ppe-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ppe ul.ppe-rows > li.ppe-row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ppe ul.ppe-rows > li.ppe-row::before,
.ppe ul.ppe-rows > li.ppe-row::after {
	content: none;
	display: none;
}
.ppe .ppe-row__mark {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.ppe .ppe-row__text {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--ppe-text);
	font-size: var(--ppe-fs-body);
	line-height: var(--ppe-lh-body);
}
.ppe .ppe-row--lead .ppe-row__text {
	color: var(--ppe-heading);
	font-weight: 600;
}

/* check: soft circle with a coloured tick */
.ppe .ppe-rows--check .ppe-row__mark {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	border-radius: 50%;
	background: var(--ppe-check-bg);
}
.ppe .ppe-rows--check .ppe-row__mark::after {
	content: "";
	width: 11px;
	height: 11px;
	background: var(--ppe-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.3 2.3 4.5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.3 2.3 4.5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* num (steps with a thin timeline) */
.ppe .ppe-rows--num {
	gap: 16px;
}
.ppe .ppe-rows--num .ppe-row {
	gap: 14px;
}
.ppe .ppe-rows--num .ppe-row__mark {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ppe-primary);
	color: var(--ppe-step-text);
	font-size: var(--ppe-fs-body);
	font-weight: 600;
}
.ppe .ppe-rows--num .ppe-row__text {
	padding-top: 3px;
}
.ppe .ppe-rows--num .ppe-row:not(:last-child)::after {
	content: "";
	display: block;
	position: absolute;
	left: 13px;
	top: 34px;
	bottom: -10px;
	width: 2px;
	background: var(--ppe-divider);
}

/* ---------- Receipt banner ---------- */
.ppe .ppe-banner {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: var(--ppe-gap);
	padding: 18px var(--ppe-pad);
	background: var(--ppe-banner-bg);
	border-radius: var(--ppe-radius);
}
.ppe .ppe-banner .ppe-tile {
	background: #fff;
}
.ppe .ppe-banner .ppe-svg .ppe-badge-circle {
	stroke: #fff;
}
.ppe .ppe-banner__body {
	min-width: 0;
}
.ppe .ppe-banner__title {
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-h3);
	font-weight: 600;
	line-height: 1.35;
}
.ppe .ppe-banner__text {
	margin-top: 1px;
	color: var(--ppe-text);
	font-size: var(--ppe-fs-body);
	line-height: 1.5;
}

/* ---------- Bottom row ---------- */
.ppe__bottom {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: var(--ppe-gap);
	margin-top: var(--ppe-gap);
	align-items: stretch;
}
/* QR block: one column */
.ppe .ppe-qr {
	min-width: 0;
	padding: 0;
	background: var(--ppe-qr-bg);
	border-radius: var(--ppe-radius);
}
.ppe .ppe-qr__head {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--ppe-tile);
	margin-bottom: 18px;
}
.ppe .ppe-qr__badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ppe-badge);
	color: #fff;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
}
.ppe .ppe-qr__title {
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-h2);
	font-weight: 600;
	line-height: 1.25;
}
.ppe .ppe-qr__text {
	margin: 0;
	color: var(--ppe-text);
	font-size: var(--ppe-fs-body);
	line-height: var(--ppe-lh-body);
}
.ppe .ppe-qr__callout {
	margin-top: 16px;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--ppe-primary);
	border-radius: 2px;
	background: var(--ppe-callout-bg);
}
.ppe .ppe-qr__sub {
	margin: 28px 0 10px;
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-h3);
	font-weight: 600;
	line-height: 1.35;
}
.ppe .ppe-qr .ppe-rows--num {
	margin-top: 18px;
}

/* security */
.ppe .ppe-sec {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--ppe-pad);
	background: var(--ppe-security-bg);
	border-radius: var(--ppe-radius);
}
.ppe .ppe-sec__head {
	display: flex;
	align-items: center;
	gap: 15px;
	min-height: var(--ppe-tile);
	margin-bottom: 18px;
}
.ppe .ppe-sec .ppe-tile {
	background: #fff;
}
.ppe .ppe-sec__title {
	min-width: 0;
	padding-left: 15px;
	border-left: 1px solid var(--ppe-divider);
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-h2);
	font-weight: 600;
	line-height: 1.25;
}
.ppe .ppe-sec__text {
	margin: 0;
	color: var(--ppe-text);
	font-size: var(--ppe-fs-body);
	line-height: var(--ppe-lh-body);
}
.ppe .ppe-sec__hr {
	height: 0;
	margin: 16px 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--ppe-divider);
	background: none;
}

/* signature + stamp */
.ppe .ppe-seal {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 26px;
}
.ppe .ppe-sign {
	flex: 0 1 150px;
	min-width: 0;
}
.ppe .ppe-sign__art {
	color: var(--ppe-sign);
}
.ppe .ppe-sign__art img {
	display: block;
	max-width: 100%;
	height: auto;
}
.ppe .ppe-sign__svg {
	display: block;
	width: 100%;
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ppe .ppe-sign__caption {
	margin-top: 4px;
	padding-top: 5px;
	border-top: 1px solid var(--ppe-divider);
	color: var(--ppe-text);
	font-size: var(--ppe-fs-small);
	line-height: 1.3;
}
.ppe .ppe-stamp {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	color: var(--ppe-stamp);
	opacity: 0.8;
	transform: rotate(-10deg);
}
.ppe .ppe-stamp__svg,
.ppe .ppe-stamp img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* full-width sections: "what to do" and "why us" */
.ppe .ppe-todo,
.ppe .ppe-why {
	min-width: 0;
	margin-top: calc(var(--ppe-gap) * 2);
	padding: 0;
	border-radius: var(--ppe-radius);
}
.ppe .ppe-card.ppe-has-bg,
.ppe .ppe-qr.ppe-has-bg,
.ppe .ppe-todo.ppe-has-bg,
.ppe .ppe-why.ppe-has-bg {
	padding: var(--ppe-pad);
}
.ppe .ppe-todo { background: var(--ppe-qr-bg); }
.ppe .ppe-why { background: var(--ppe-why-bg); }
.ppe .ppe-todo__title,
.ppe .ppe-why__title {
	margin: 0 0 var(--ppe-gap);
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-h2);
	font-weight: 600;
	line-height: 1.25;
}
.ppe .ppe-todo__lead {
	margin-bottom: 22px;
}

/* why us: items in one row on desktop */
.ppe ul.ppe-why__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ppe ul.ppe-why__list > li.ppe-why__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ppe .ppe-why__item .ppe-tile {
	width: calc(var(--ppe-tile) * 0.8);
	height: calc(var(--ppe-tile) * 0.8);
	border-radius: calc(var(--ppe-radius) * 0.7);
}
.ppe .ppe-why__item .ppe-svg {
	width: calc(var(--ppe-glyph) * 0.8);
	height: calc(var(--ppe-glyph) * 0.8);
}
.ppe .ppe-why__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.ppe .ppe-why__item-title {
	display: block;
	color: var(--ppe-heading);
	font-size: var(--ppe-fs-body);
	font-weight: 600;
	line-height: 1.4;
}
.ppe .ppe-why__item-text {
	display: block;
	color: var(--ppe-text);
	font-size: var(--ppe-fs-body);
	line-height: 1.55;
}

/* steps in one horizontal row on desktop */
@media (min-width: 1025px) {
	.ppe .ppe-todo ul.ppe-rows--num {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.ppe .ppe-todo .ppe-rows--num > li.ppe-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.ppe .ppe-todo .ppe-rows--num .ppe-row__text {
		padding-top: 0;
	}
	.ppe .ppe-todo .ppe-rows--num .ppe-row:not(:last-child)::after {
		left: 38px;
		right: -18px;
		top: 13px;
		bottom: auto;
		width: auto;
		height: 2px;
	}
}

/* ---------- Wide: align card rows across all three cards ---------- */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 1025px) {
		.ppe__cards {
			grid-template-rows: auto auto 1fr;
			row-gap: 0;
		}
		.ppe .ppe-card {
			display: grid;
			grid-row: span 3;
			grid-template-rows: subgrid;
			row-gap: 20px;
		}
		.ppe .ppe-card__head,
		.ppe .ppe-delivery {
			min-height: 0;
		}
		.ppe .ppe-card .ppe-rows {
			align-self: start;
		}
	}
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.ppe {
		--ppe-fs-h1: 40px;
		--ppe-fs-intro: 16px;
		--ppe-fs-body: 14px;
	}
	.ppe__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ppe__cards .ppe-card--3 { grid-column: 1 / -1; }
	.ppe__bottom { grid-template-columns: minmax(0, 1fr); }
	.ppe .ppe-delivery { min-height: 70px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.ppe {
		--ppe-fs-h1: 32px;
		--ppe-fs-intro: 15px;
		--ppe-fs-h2: 20px;
		--ppe-fs-h3: 15px;
		--ppe-fs-body: 14px;
		--ppe-fs-small: 12px;
	}
	.ppe__head { margin-bottom: 22px; }
	.ppe__bar { width: 44px; margin-bottom: 14px; }
	.ppe .ppe__title { margin-bottom: 12px; }

	.ppe__cards { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
	.ppe__cards .ppe-card--3 { grid-column: auto; }

	.ppe .ppe-card { gap: 16px; }
	.ppe .ppe-card__head { gap: 14px; min-height: 0; padding-bottom: 16px; }
	.ppe .ppe-delivery { min-height: 0; padding: 12px 14px; }
	.ppe .ppe-delivery--empty { display: none; }

	.ppe .ppe-banner { gap: 14px; padding: 16px var(--ppe-pad); }

	.ppe .ppe-qr__head { gap: 12px; min-height: 0; margin-bottom: 16px; }
	.ppe .ppe-qr__badge { width: 40px; height: 40px; font-size: 22px; }
	.ppe .ppe-qr__sub { margin-top: 24px; }
	.ppe .ppe-qr__callout { padding: 12px 14px; }

	.ppe .ppe-sec__head { gap: 12px; min-height: 0; margin-bottom: 16px; }
	.ppe .ppe-sec__title { padding-left: 12px; }
	.ppe .ppe-seal { padding-top: 22px; }
	.ppe .ppe-qr__head { margin-top: 0; }
	.ppe .ppe-stamp { width: 88px; height: 88px; }
}

/* very small phones */
@media (max-width: 380px) {
	.ppe { --ppe-fs-h1: 29px; --ppe-fs-h2: 19px; }
	.ppe .ppe-seal { flex-wrap: wrap; }
}

/* nicer line breaks in headings */
.ppe .ppe__title,
.ppe .ppe-card__title,
.ppe .ppe-qr__title,
.ppe .ppe-qr__sub,
.ppe .ppe-sec__title,
.ppe .ppe-why__title,
.ppe .ppe-banner__title {
	text-wrap: balance;
}

/* tablet: two columns, no connector lines */
@media (min-width: 768px) and (max-width: 1024px) {
	.ppe ul.ppe-why__list,
	.ppe .ppe-todo ul.ppe-rows--num {
		display: grid;
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
	.ppe .ppe-todo .ppe-rows--num > li.ppe-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.ppe .ppe-todo .ppe-rows--num .ppe-row__text { padding-top: 0; }
	.ppe .ppe-todo .ppe-rows--num .ppe-row::after { display: none; }
}

/* mobile: one column, icon beside text */
@media (max-width: 767px) {
	.ppe .ppe-todo,
	.ppe .ppe-why { margin-top: calc(var(--ppe-gap) * 2); }
	.ppe .ppe-todo__title,
	.ppe .ppe-why__title { margin-bottom: 16px; }
	.ppe ul.ppe-why__list {
		grid-auto-flow: row;
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.ppe ul.ppe-why__list > li.ppe-why__item {
		flex-direction: row;
		gap: 14px;
	}
	.ppe .ppe-why__item .ppe-tile {
		width: calc(var(--ppe-tile) * 0.8);
		height: calc(var(--ppe-tile) * 0.8);
	}
}
