/* GRU list + pagination (section#prokatka.gru-film-registry .desc) */

section#prokatka .desc {
	background: #f5f7f9;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	position: relative;
	overflow: hidden;
}

/* «Киноплёнка»: полосы + перфорация слева (поверх базового фона) */


/*section#prokatka.gru-film-registry .desc::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 16px;
	bottom: 16px;
	width: 8px;
	background-image: radial-gradient(circle at 50% 50%, rgba(61, 104, 125, 0.35) 0 2px, transparent 2.5px);
	background-size: 8px 14px;
	background-repeat: repeat-y;
	pointer-events: none;
	opacity: 0.85;
	border-radius: 2px;
}
*/
@media (prefers-reduced-motion: no-preference) {
	/* Без JS класса gru-js-effects список остаётся видимым */
	section#prokatka.gru-film-registry.gru-js-effects .desc > ul > li:not(.gru-revealed) {
		opacity: 0;
		transform: translateY(14px);
	}

	section#prokatka.gru-film-registry.gru-js-effects .desc > ul > li.gru-revealed {
		opacity: 1;
		transform: translateY(0);
		transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	}


}

section#prokatka .desc ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

section#prokatka .desc li {
	background: #ffffff;
	border-left: 4px solid #3d687d;
	border-radius: 0px;
	padding: 0;
	margin: 0;
	position: relative;
	transition: all 0.2s ease;
}

section#prokatka .desc li:hover {
	box-shadow: 0 4px 12px rgba(61, 104, 125, 0.15);
	transform: translateX(2px);
}

section#prokatka .desc li a {
	display: block;
	padding: 18px 24px 12px 24px;
	text-decoration: none;
	color: #2c3e50;
	font-size: 18px;
	font-weight: 600;
	border-bottom: 1px solid #e8ecef;
	transition: color 0.2s ease;
	letter-spacing: -0.2px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

section#prokatka .desc li a:hover {
	color: #3d687d;
}

section#prokatka .desc li a::before {
	content: "📄 ";
	font-size: 18px;
	opacity: 0.7;
}

section#prokatka .desc li small {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 16px;
	align-items: baseline;
	padding: 16px 24px 18px 24px;
	background: #fafcfd;
	font-size: 13px;
	line-height: 1.7;
	color: #4a5b6e;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	position: relative;
}

section#prokatka .desc li small br {
	display: none;
}

section#prokatka .desc li small strong {
	color: #3d687d;
	font-weight: 600;
	min-width: 140px;
	display: inline-block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

section#prokatka .desc li small strong:last-of-type {
	color: #2c5a6e;
	font-weight: 700;
}

section#prokatka .desc li small::before {
	content: "";
	display: block;
	grid-column: 1 / -1;
	height: 1px;
	background: linear-gradient(90deg, transparent, #d0dee5, transparent);
	margin-bottom: 12px;
}

section#prokatka .desc li::after {
	content: "⦿";
	position: absolute;
	bottom: 12px;
	right: 20px;
	font-size: 28px;
	color: #3d687d;
	opacity: 0.1;
	font-family: serif;
	pointer-events: none;
}

/* Номер удостоверения (из метаполя), не порядковый счётчик */
section#prokatka .desc li .gru-li-cert-no {
	position: absolute;
	top: 12px;
	right: 20px;
	font-size: 11px;
	color: #3d687d;
	font-weight: 500;
	background: #eef3f7;
	padding: 2px 8px;
	border-radius: 12px;
	letter-spacing: 0.5px;
	font-family: monospace;
	max-width: 45%;
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	z-index: 1;
}

section#prokatka .gru-pagination {
	margin-top: 40px;
	text-align: center;
	padding: 20px;
	border-top: 1px solid #d0dee5;
}

section#prokatka .gru-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	background: transparent;
	color: #3d687d;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-weight: 500;
	font-size: 14px;
	border: 1px solid transparent;
}

section#prokatka .gru-pagination .page-numbers.current {
	background: #3d687d;
	color: #ffffff;
	border-color: #3d687d;
}

section#prokatka .gru-pagination .page-numbers:hover:not(.current) {
	background: #eef3f7;
	border-color: #3d687d;
}

@media (max-width: 768px) {
	section#prokatka .desc {
		padding: 20px 15px;
	}

	section#prokatka .desc li a {
		font-size: 16px;
		padding: 15px 20px 10px 20px;
	}

	section#prokatka .desc li a::before {
		font-size: 16px;
	}

	section#prokatka .desc li small {
		padding: 12px 20px 15px 20px;
		grid-template-columns: 1fr;
		gap: 6px;
	}

	section#prokatka .desc li small strong {
		min-width: auto;
		display: inline;
	}

	section#prokatka .desc li small::before {
		margin-bottom: 8px;
	}

	section#prokatka .desc li .gru-li-cert-no {
		font-size: 9px;
		top: 8px;
		right: 12px;
		max-width: 42%;
	}

	section#prokatka .desc li::after {
		font-size: 20px;
		bottom: 8px;
		right: 12px;
	}
}
