.doc-list-new,
.doc-list-new-modal {
	--c-text: #222228;
	--c-muted: #8a8a93;
	--c-value: #555558;
	--c-bg: #f8f8fc;
	--c-line: #ebecef;
	--c-accent: #a40a06;
	--c-valid: #1b8a57;
}
.doc-list-new {
	font-family: Manrope, Arial, sans-serif;
	color: var(--c-text);
}

.doc-list-new__intro { margin-bottom: 48px; }
.doc-list-new__title { margin: 0 0 24px; font-size: 36px; line-height: 44px; font-weight: 500; }
.doc-list-new__lead { font-size: 16px; line-height: 26px; color: var(--c-value); }
.doc-list-new__lead p { margin: 0; }

.doc-list-new__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.doc-list-new__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px var(--c-line);
	overflow: hidden;
}

.doc-list-new__preview {
	position: relative;
	height: 217px;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-line);
	overflow: hidden;
}
.doc-list-new__preview-img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doc-list-new__preview-empty { height: 100%; background: #eef0f4; }
.doc-list-new__preview-fade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 76px;
	background: linear-gradient(0deg, rgba(34,34,40,.34), transparent);
	pointer-events: none;
}

.doc-list-new__badge {
	position: absolute; bottom: 13px; z-index: 1;
	display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
	border-radius: 999px; box-shadow: 0 1px 6px rgba(34,34,40,.22);
	font-size: 12px; line-height: 16px; white-space: nowrap;
}
.doc-list-new__badge--valid { left: 12px; gap: 6px; background: #fff; color: var(--c-valid); font-weight: 600; }
.doc-list-new__badge--pages { right: 12px; background: rgba(255,255,255,.92); font-weight: 500; }
.doc-list-new__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-valid); }

.doc-list-new__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 0; }
.doc-list-new__name { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.doc-list-new__subtitle { margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--c-muted); }

.doc-list-new__number-box { margin-top: 16px; padding: 12px 14px 14px; background: var(--c-bg); border-radius: 8px; }
.doc-list-new__number-label { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.doc-list-new__number { margin-top: 5px; font-size: 15px; line-height: 21px; font-weight: 700; word-break: break-word; }
.doc-list-new__series { margin-top: 3px; font-size: 13px; line-height: 18px; color: var(--c-value); }

.doc-list-new__meta { margin: 16px 0 0; padding: 0; }
.doc-list-new__meta-row { display: grid; grid-template-columns: 116px 1fr; gap: 8px; margin-top: 10px; }
.doc-list-new__meta-row:first-child { margin-top: 0; }
.doc-list-new__meta dt, .doc-list-new__meta dd { margin: 0; font-size: 13px; line-height: 18px; }
.doc-list-new__meta dt { color: var(--c-muted); }
.doc-list-new__meta dd { color: var(--c-value); }

.doc-list-new__actions { margin-top: 10px; padding: 19px 20px 20px; border-top: 1px solid var(--c-line); }
.doc-list-new__view-btn {
	width: 100%; height: 50px; border: 0; border-radius: 8px;
	background: var(--c-accent); color: #fff; font: 500 16px/24px inherit; cursor: pointer;
}
.doc-list-new__view-btn:hover { background: #8c0905; }

.doc-list-new__links { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.doc-list-new__link { font-size: 13px; line-height: 18px; text-decoration: none; }
.doc-list-new__link:hover { opacity: .8; }
.doc-list-new__link--download { color: #777f8c; }
.doc-list-new__link--registry { color: var(--c-accent); font-weight: 600; }

.doc-list-new__info { margin-top: 48px; padding: 26px 28px; background: var(--c-bg); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--c-line); }
.doc-list-new__info-title { margin: 0 0 16px; font-size: 20px; line-height: 26px; font-weight: 600; }
.doc-list-new__info-list { margin: 0; padding: 0 0 0 20px; }
.doc-list-new__info-list li { font-size: 15px; line-height: 23px; }
.doc-list-new__info-list li + li { margin-top: 11px; }

.doc-list-new-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	box-sizing: border-box;
}
.doc-list-new-modal[hidden] { display: none !important; }
.doc-list-new-modal__overlay { position: absolute; inset: 0; background: rgba(34,34,40,.55); }
.doc-list-new-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 1040px;
	max-width: 100%;
	height: min(860px, calc(100vh - 64px));
	max-height: calc(100vh - 64px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 70px -20px rgba(0,0,0,.6);
	overflow: hidden;
}
.doc-list-new-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-shrink: 0;
	padding: 18px 24px;
	border-bottom: 1px solid var(--c-line);
	background: #fff;
}
.doc-list-new-modal__title { font-size: 18px; line-height: 24px; font-weight: 600; }
.doc-list-new-modal__subtitle { margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--c-muted); }
.doc-list-new-modal__close {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 8px;
	background: var(--c-bg);
	color: var(--c-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}
.doc-list-new-modal__body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: var(--c-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 70px 36px;
	overflow: hidden;
}
.doc-list-new-modal__stage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.doc-list-new-modal__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 4px 22px rgba(34,34,40,.22);
}
.doc-list-new-modal__pdf {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 4px 22px rgba(34,34,40,.22);
}
.doc-list-new-modal__empty {
	max-width: 320px;
	padding: 24px;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	color: var(--c-value);
	font-size: 15px;
	line-height: 22px;
}
.doc-list-new-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 12px rgba(34,34,40,.24);
	font-size: 22px;
	cursor: pointer;
	z-index: 2;
}
.doc-list-new-modal__nav:disabled { opacity: .35; }
.doc-list-new-modal__nav--prev { left: 14px; }
.doc-list-new-modal__nav--next { right: 14px; }
.doc-list-new-modal__counter {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(34,34,40,.78);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	z-index: 2;
}
.doc-list-new-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-shrink: 0;
	min-height: 77px;
	padding: 15px 20px;
	border-top: 1px solid var(--c-line);
	background: #fff;
}
.doc-list-new-modal__download,
.doc-list-new-modal__registry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 24px;
	font-weight: 500;
	text-decoration: none;
}
.doc-list-new-modal__download {
	background: #a40a06;
	color: #fff !important;
}
.doc-list-new-modal__download:hover {
	background: #8c0905;
	color: #fff !important;
}
.doc-list-new-modal__registry {
	color: #222228 !important;
	box-shadow: inset 0 0 0 1px #ebecef;
	background: #fff;
}
.doc-list-new-modal__download[hidden],
.doc-list-new-modal__registry[hidden],
.doc-list-new-modal__nav[hidden],
.doc-list-new-modal__image[hidden],
.doc-list-new-modal__pdf[hidden],
.doc-list-new-modal__empty[hidden] { display: none !important; }

body.doc-list-new-modal-open { overflow: hidden; }

@media (max-width: 1199px) {
	.doc-list-new__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.doc-list-new__title { font-size: 30px; line-height: 38px; }
	.doc-list-new-modal__body { padding: 16px 56px 36px; }
}

@media (max-width: 767px) {
	.doc-list-new__list { grid-template-columns: 1fr; gap: 16px; }
	.doc-list-new__intro { margin-bottom: 24px; }
	.doc-list-new__title { margin-bottom: 12px; font-size: 24px; line-height: 32px; }
	.doc-list-new__lead { font-size: 15px; line-height: 24px; }
	.doc-list-new__preview { height: 200px; }
	.doc-list-new__meta-row { grid-template-columns: 100px 1fr; }
	.doc-list-new__info { margin-top: 32px; padding: 20px; }
	.doc-list-new-modal { padding: 12px; }
	.doc-list-new-modal__dialog { height: calc(100vh - 24px); max-height: calc(100vh - 24px); }
	.doc-list-new-modal__header { padding: 14px 16px; }
	.doc-list-new-modal__body { padding: 10px 44px 32px; }
	.doc-list-new-modal__nav { width: 34px; height: 34px; }
	.doc-list-new-modal__footer { flex-wrap: wrap; min-height: 0; }
	.doc-list-new-modal__download,
	.doc-list-new-modal__registry { flex: 1 1 auto; }
}

@media (max-width: 600px) {
	.doc-list-new__intro { margin-bottom: 18px; }
	.doc-list-new__title { margin-bottom: 14px; font-size: 26px; line-height: 34px; }
	.doc-list-new__lead { font-size: 15px; line-height: 24px; }
	.doc-list-new__list { gap: 16px; padding-top: 6px; }
	.doc-list-new__preview { height: 200px; }
	.doc-list-new__badge { height: 24px; padding: 0 10px; font-size: 11px; bottom: 10px; }
	.doc-list-new__badge--valid { left: 10px; }
	.doc-list-new__badge--pages { right: 10px; }
	.doc-list-new__body { padding: 18px 16px 0; gap: 0; }
	.doc-list-new__name { font-size: 18px; line-height: 24px; }
	.doc-list-new__subtitle { margin-top: 6px; font-size: 13px; line-height: 19px; }
	.doc-list-new__number-box { margin-top: 14px; padding: 12px 14px; }
	.doc-list-new__meta { margin-top: 14px; }
	.doc-list-new__meta-row {
		display: flex;
		flex-direction: column;
		gap: 2px;
		margin-top: 10px;
	}
	.doc-list-new__meta dt { font-size: 12px; line-height: 16px; }
	.doc-list-new__meta dd { font-size: 13px; line-height: 18px; }
	.doc-list-new__actions { padding: 18px 16px 20px; }
	.doc-list-new__view-btn { height: 50px; font-size: 15px; line-height: 24px; }
	.doc-list-new__links { margin-top: 12px; gap: 12px; }
	.doc-list-new__info { margin-top: 32px; padding: 22px 18px; }
	.doc-list-new__info-title { margin-bottom: 16px; font-size: 18px; line-height: 24px; }
	.doc-list-new__info-list { padding-left: 18px; }
	.doc-list-new__info-list li { font-size: 14px; line-height: 22px; }

	.doc-list-new-modal {
		padding: 0;
		align-items: stretch;
		justify-content: stretch;
	}
	.doc-list-new-modal__dialog {
		width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
		box-shadow: none;
	}
	.doc-list-new-modal__header {
		padding: 12px 16px;
		min-height: 72px;
		gap: 12px;
	}
	.doc-list-new-modal__title { font-size: 15px; line-height: 20px; }
	.doc-list-new-modal__subtitle { margin-top: 3px; font-size: 12px; line-height: 17px; }
	.doc-list-new-modal__close {
		width: 34px;
		height: 34px;
		font-size: 20px;
	}
	.doc-list-new-modal__body { padding: 0 0 28px; }
	.doc-list-new-modal__image {
		max-width: calc(100% - 20px);
		border-radius: 4px;
	}
	.doc-list-new-modal__nav {
		width: 36px;
		height: 36px;
		font-size: 18px;
		background: rgba(255, 255, 255, .94);
	}
	.doc-list-new-modal__nav--prev { left: 6px; }
	.doc-list-new-modal__nav--next { right: 6px; }
	.doc-list-new-modal__counter {
		bottom: 8px;
		padding: 4px 12px;
		font-size: 11px;
		line-height: 16px;
	}
	.doc-list-new-modal__footer {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 5px;
		min-height: 0;
		padding: 10px 12px 12px;
	}
	.doc-list-new-modal__download,
	.doc-list-new-modal__registry {
		width: 100%;
		flex: 0 0 auto;
		min-height: 48px;
		padding: 0 16px;
		font-size: 15px;
		line-height: 24px;
		box-sizing: border-box;
	}
}
