body.pp-open {
	overflow: hidden;
}

.pp-overlay {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	padding: 20px;
	background: rgba(33, 26, 18, .5);
	backdrop-filter: blur(6px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	animation: ppFade .25s ease;
}

/* display:flex сильнее стандартного [hidden], поэтому прячем явно */
.pp-overlay[hidden],
.pp-view[hidden] {
	display: none;
}

.pp-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: auto;
	padding: clamp(36px, 6vh, 44px) clamp(20px, 6vw, 36px) clamp(22px, 4vh, 30px);
	border-radius: 28px;
	text-align: center;
	color: #2A2118;
	background: linear-gradient(165deg, #FFFDF9 0%, #FBF4E9 45%, #F3E1C4 100%);
	box-shadow: 0 50px 100px -40px rgba(20, 16, 10, .75), inset 0 0 0 1px rgba(255, 255, 255, .6);
	animation: ppIn .35s cubic-bezier(.2, .8, .2, 1);
}

.pp-view {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pp-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(42, 33, 24, .12);
	background: rgba(255, 253, 249, .7);
	color: #4A3B2C;
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, transform .2s ease;
}

.pp-close:hover {
	background: #FFFDF9;
	transform: rotate(90deg);
}

.pp-badge {
	display: inline-flex;
	background: #F3E1C4;
	border: 1px solid rgba(201, 160, 99, .45);
	color: #8A5A2E;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.pp-title {
	font-family: 'Playfair Display', serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.pp-sub {
	font-size: 15px;
	line-height: 1.6;
	color: #6B5B48;
	margin: 0 0 28px;
	max-width: 320px;
	text-wrap: pretty;
}

.pp-note {
	font-size: 13px;
	line-height: 1.55;
	color: #8A7A66;
	margin: 18px 0 0;
	max-width: 300px;
	text-wrap: pretty;
}

/* ---- Форма CF7 ---- */
.pp-modal .wpcf7 {
	width: 100%;
}

.pp-fields {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pp-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: left;
}

.pp-field > span {
	font-size: 13px;
	font-weight: 600;
	color: #4A3B2C;
}

.pp-modal .wpcf7-form-control-wrap {
	display: block;
}

.pp-modal input[type="text"],
.pp-modal input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 253, 249, .85);
	border: 1px solid rgba(42, 33, 24, .14);
	color: #2A2118;
	padding: 15px 18px;
	border-radius: 14px;
	font-size: 15px;
	font-family: 'Jost', sans-serif;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pp-modal input::placeholder {
	color: #A0917C;
}

.pp-modal input[type="text"]:focus,
.pp-modal input[type="tel"]:focus {
	border-color: #C9A063;
	background: #FFFDF9;
	box-shadow: 0 0 0 4px rgba(231, 184, 118, .25);
}

.pp-modal .wpcf7-submit {
	width: 100%;
	margin-top: 8px;
	background: linear-gradient(180deg, #6A4228 0%, #4A2E1E 100%);
	color: #FBF4E9;
	border: none;
	padding: 17px 30px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 14px 26px -14px rgba(74, 46, 30, .7);
	transition: transform .2s ease, box-shadow .2s ease;
}

.pp-modal .wpcf7-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 30px -14px rgba(74, 46, 30, .75);
}

.pp-modal .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 6px;
}

.pp-modal .wpcf7-response-output {
	margin: 14px 0 0 !important;
	border-radius: 10px;
	font-size: 13px;
}

.pp-modal .wpcf7-form.sent .wpcf7-response-output {
	display: none;
}

.pp-modal .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

/* ---- Экран "Дякуємо" ---- */
.pp-done {
	padding: 12px 0 6px;
}

.pp-check {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #F3E1C4;
	border: 1px solid rgba(201, 160, 99, .45);
	color: #8A5A2E;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin-bottom: 22px;
}

.pp-done .pp-sub {
	margin-bottom: 26px;
	max-width: 300px;
}

.pp-back {
	background: transparent;
	color: #4A2E1E;
	border: 1.5px solid #4A2E1E;
	padding: 13px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.pp-back:hover {
	background: #4A2E1E;
	color: #FBF4E9;
}

@keyframes ppFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes ppIn {
	from { opacity: 0; transform: translateY(18px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
	.pp-overlay { padding: 12px; }
	.pp-modal { border-radius: 22px; }
	.pp-title { font-size: 27px; }
	.pp-modal input[type="text"],
	.pp-modal input[type="tel"] { padding: 14px 16px; font-size: 16px; }
}

@media (max-width: 360px) {
	.pp-overlay { padding: 8px; }
	.pp-title { font-size: 24px; }
	.pp-badge { font-size: 10px; letter-spacing: .1em; }
}

@media (max-height: 640px) {
	.pp-modal { padding-top: 30px; padding-bottom: 20px; }
	.pp-title { font-size: 26px; margin-bottom: 8px; }
	.pp-sub { margin-bottom: 18px; }
	.pp-fields { gap: 12px; }
	.pp-note { margin-top: 12px; }
}