/**
 * Reviews feed — mobile-first listing.
 */

.zp-resenas {
	--zr-pad: max(16px, env(safe-area-inset-left, 0px));
	--zr-pad-r: max(16px, env(safe-area-inset-right, 0px));
	/* Clear fixed 2026 header + safe area so the first card is never covered. */
	--zr-header-gap: calc(env(safe-area-inset-top, 0px) + 72px);
	padding: var(--zr-header-gap) var(--zr-pad-r) calc(96px + env(safe-area-inset-bottom, 0px)) var(--zr-pad);
	background:
		radial-gradient(120% 60% at 50% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
		#f8fafc;
	min-height: 60vh;
	box-sizing: border-box;
}

body.zp-resenas-feed .zp-resenas {
	padding-top: var(--zr-header-gap) !important;
}

.zp-resenas__shell {
	max-width: 560px;
	margin: 0 auto;
}

.zp-resenas__head {
	margin: 8px 0 18px;
}

.zp-resenas__title {
	margin: 0 0 6px;
	font-size: clamp(26px, 6.5vw, 32px);
	line-height: 1.15;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.zp-resenas__lead {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: #475569;
}

.zp-resenas__empty {
	margin: 24px 0;
	padding: 20px 16px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #64748b;
	text-align: center;
	font-size: 15px;
}

.zp-resenas__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zp-resenas-card {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	padding: 14px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.zp-resenas-card__media {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: #e2e8f0;
}

.zp-resenas-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zp-resenas-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.zp-resenas-card__top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.zp-resenas-card__stars {
	color: #f59e0b;
	font-size: 14px;
	letter-spacing: 0.04em;
	line-height: 1;
}

.zp-resenas-card__score {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

.zp-resenas-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: #1e293b;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zp-resenas-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
}

.zp-resenas-card__name {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

.zp-resenas-card__service {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin-top: 2px;
	padding: 0;
	font-size: 13px;
	font-weight: 650;
	color: #2563eb;
	text-decoration: none;
	line-height: 1.3;
}

.zp-resenas-card__service:active,
.zp-resenas-card__service:hover {
	text-decoration: underline;
}

@media (min-width: 900px) {
	.zp-resenas {
		--zr-header-gap: calc(env(safe-area-inset-top, 0px) + 88px);
		padding-bottom: 48px;
	}

	.zp-resenas-card {
		grid-template-columns: 80px 1fr;
		padding: 18px;
		gap: 16px;
	}

	.zp-resenas-card__media {
		width: 80px;
		height: 80px;
	}

	.zp-resenas-card__text {
		font-size: 16px;
		-webkit-line-clamp: 5;
	}
}
