/* ProClinic — the five patient pages. One sheet: they share a layout and
   differ only in what fills it. */


.pc-doc__head {
	margin-bottom: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--pc-line);
}

.pc-doc__title {
	margin-bottom: 18px;
}

.pc-doc__intro {
	max-width: 760px;
	font-size: 16px;
	line-height: 1.75;
}

.pc-doc__updated {
	margin-bottom: 32px;
	font-size: 14px;
	color: var(--pc-muted);
}

.pc-doc__body {
	font-size: 16px;
	line-height: 1.8;
}

.pc-doc__body h2,
.pc-doc__body h3 {
	margin: 40px 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: var(--pc-ink);
}

.pc-doc__body ul,
.pc-doc__body ol {
	margin: 0 0 1em;
	padding-left: 22px;
	list-style: revert;
}

/* Rights and duties */

.pc-doc__block + .pc-doc__block {
	margin-top: 56px;
}

.pc-doc__subtitle {
	margin-bottom: 24px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pc-ink);
}

.pc-doc__list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding-left: 26px;
	font-size: 16px;
	line-height: 1.75;
}

/* The source document numbers one block, letters the next and bullets the
   third, so the marker is a choice in the admin rather than a fixed style. */

.pc-doc__list--decimal { list-style: decimal; }
.pc-doc__list--lower-alpha { list-style: lower-alpha; }
.pc-doc__list--bullet { list-style: disc; }

.pc-doc__list li {
	padding-left: 6px;
}

.pc-doc__list li::marker {
	color: var(--pc-accent);
	font-weight: 600;
}

.pc-doc__note {
	margin-top: 22px;
	padding: 18px 22px;
	border-radius: var(--pc-radius-sm);
	background: var(--pc-bg-soft);
	font-size: 15px;
	line-height: 1.7;
}

/* Legislation */

.pc-doc__laws {
	display: grid;
	gap: 12px;
}

.pc-doc__law {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 24px;
	border-radius: var(--pc-radius-sm);
	background: var(--pc-bg-soft);
	transition: background-color 0.2s ease;
}

.pc-doc__law:hover {
	background: var(--pc-accent-soft);
}

.pc-doc__law-title {
	font-size: 16px;
	line-height: 1.6;
	color: var(--pc-ink);
}

.pc-doc__law-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--pc-accent-dark);
}

/* Clinic structure */

.pc-doc__scheme {
	margin: 0;
}

.pc-doc__scheme img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--pc-radius);
}

.pc-doc__caption {
	margin-top: 16px;
	font-size: 14px;
	color: var(--pc-muted);
}

/* Documents */

/* Wide tables scroll inside their own box, never the page. */

.pc-doc__table-wrap {
	overflow-x: auto;
}

.pc-doc__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.pc-doc__table th {
	padding: 0 20px 14px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pc-muted);
}

.pc-doc__table td {
	padding: 18px 20px;
	border-top: 1px solid var(--pc-line);
	line-height: 1.6;
	color: var(--pc-ink);
	vertical-align: top;
}

.pc-doc__size {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--pc-muted);
}

.pc-doc__view {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 20px;
	border-radius: var(--pc-pill);
	background: var(--pc-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.pc-doc__pending {
	font-size: 14px;
	color: var(--pc-muted);
}

.pc-doc__source {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--pc-line);
	font-size: 15px;
	font-weight: 600;
}

.pc-doc__source a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pc-accent-dark);
}

.pc-doc__view:hover {
	background: var(--pc-accent-dark);
}


@media (max-width: 1024px) {
	.pc-doc__head {
		margin-bottom: 28px;
		padding-bottom: 22px;
	}

	.pc-doc__intro,
	.pc-doc__body,
	.pc-doc__list,
	.pc-doc__law-title {
		font-size: 15px;
	}

	.pc-doc__block + .pc-doc__block {
		margin-top: 36px;
	}

	.pc-doc__subtitle {
		font-size: 19px;
	}

	.pc-doc__law {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 16px 18px;
	}

	/* The table turns into stacked cards: three columns will not fit, and a
	   horizontal scrollbar on a phone hides the action button. */

	.pc-doc__table thead {
		display: none;
	}

	.pc-doc__table,
	.pc-doc__table tbody,
	.pc-doc__table tr,
	.pc-doc__table td {
		display: block;
	}

	.pc-doc__table tr {
		margin-bottom: 12px;
		padding: 16px 18px;
		border-radius: var(--pc-radius-sm);
		background: var(--pc-bg-soft);
	}

	.pc-doc__table td {
		padding: 0;
		border: 0;
	}

	.pc-doc__table td + td {
		margin-top: 10px;
	}

	.pc-doc__table td[data-label="Дата обновления"]::before {
		content: attr(data-label) ": ";
		color: var(--pc-muted);
	}
}
