/* =============================================
   СТРАНИЦА «ПАЦИЕНТАМ» — табы с боковой навигацией
   ============================================= */

.patients {
	padding: 40px 0 80px;
}

.patients__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.patients__body {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* --- Левая навигация (сайдбар) --- */

.patients__sidebar {
	flex-shrink: 0;
	width: 340px;
	position: sticky;
	top: 20px;
}

.patients-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.patients-nav__item {
	display: block;
	padding: 14px 20px;
	border-radius: 10px;
	background: #f0f7f0;
	color: #333;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
	cursor: pointer;
	border-left: 4px solid transparent;
}

.patients-nav__item:hover {
	background: #e0f0e0;
	color: #2e7d32;
}

.patients-nav__item--active {
	background: #4caf50;
	color: #fff;
	border-left-color: #2e7d32;
}

.patients-nav__item--active:hover {
	background: #43a047;
	color: #fff;
}

/* --- Правая часть с контентом --- */

.patients__content {
	flex: 1;
	min-width: 0;
}

/* --- Секции: скрыты по умолчанию, видна только активная --- */

.patients-section {
	display: none;
}

.patients-section--active {
	display: block;
}

/* --- Стили секции --- */

.patients-section__title {
	font-size: 24px;
	font-weight: 600;
	color: #222;
	margin: 0 0 24px;
	line-height: 1.3;
}

.patients-section__subtitle {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 28px 0 16px;
	line-height: 1.3;
}

.patients-section__text h3 {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 28px 0 12px;
	line-height: 1.3;
}

.patients-section__text h3:first-child {
	margin-top: 0;
}

.patients-section__text {
	font-size: 15px;
	line-height: 1.65;
	color: #444;
}

.patients-section__text p {
	margin: 0 0 12px;
}

.patients-section__text p:last-child {
	margin-bottom: 0;
}

.patients-section__text strong {
	color: #222;
	font-weight: 600;
}

.patients-section__text a {
	color: #4caf50;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.patients-section__text a:hover {
	border-bottom-color: #4caf50;
}

.patients-section__text ul,
.patients-section__text ol {
	margin: 12px 0;
	padding-left: 24px;
}

.patients-section__text li {
	margin-bottom: 6px;
	line-height: 1.55;
}

.patients-section__text li ul {
	margin-top: 8px;
}

/* --- Поля с метками (Адрес:, Телефон:, E-mail:) --- */

.patients-field {
	color: #333;
}

.patients-field__label {
	color: #888;
	font-size: 14px;
}

/* --- Кнопки-ссылки на документы --- */

.patients-section__docs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0;
}

.patients-doc {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	border: 1.5px solid #4caf50;
	border-radius: 10px;
	color: #4caf50;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	max-width: fit-content;
}

.patients-doc:hover {
	background: #4caf50;
	color: #fff;
}

.patients-doc__text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.patients-doc__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* --- Блок органа власти --- */

.patients-authority {
	margin-bottom: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid #f0f0f0;
}

.patients-authority:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.patients-authority .patients-section__subtitle {
	margin-top: 0;
}

/* --- Список ДМС партнёров --- */

.patients-section__list {
	list-style: disc;
	padding-left: 24px;
	margin: 16px 0 0;
}

.patients-section__list li {
	padding: 4px 0;
	font-size: 15px;
	color: #444;
	line-height: 1.5;
}

/* =============================================
   АДАПТИВ
   ============================================= */

@media (max-width: 1024px) {
	.patients__body {
		gap: 24px;
	}

	.patients__sidebar {
		width: 280px;
	}
}

@media (max-width: 768px) {
	.patients {
		padding: 24px 0 48px;
	}

	.patients__body {
		flex-direction: column;
		gap: 24px;
	}

	.patients__sidebar {
		width: 100%;
		position: static;
	}

	.patients-nav {
		flex-direction: row;
		overflow-x: auto;
		gap: 8px;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.patients-nav::-webkit-scrollbar {
		display: none;
	}

	.patients-nav__item {
		flex-shrink: 0;
		white-space: nowrap;
		font-size: 13px;
		padding: 10px 16px;
		border-radius: 8px;
	}

	.patients-section__title {
		font-size: 20px;
	}

	.patients-section__subtitle,
	.patients-section__text h3 {
		font-size: 16px;
	}

	.patients-doc {
		width: 100%;
		max-width: 100%;
	}
}