/**
 * Стили страницы врача (single-doctor)
 *
 * @package ArtroKlinika
 */

/* === Основной контейнер === */
.doctor-page {
	background: #F8F7F8;
}

/* === Хлебные крошки и навигация на странице врача === */
.doctor-page .page-breadcrumbs {
	background-color: #F8F7F8;
}

.doctor-page .service-anchors-nav {
	background-color: #F8F7F8;
}

/* === Инфо-блок врача === */
.doctor-info {
	padding: 0px 0 40px;
}

.doctor-info__container {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
	background: #fff;
	border-radius: 20px;
	display: flex;
	overflow: hidden;
}

/* === Декоративные элементы (справа сзади) === */
.doctor-info__decor {
	position: absolute;
	right: -50px;
	top: 30px;
	pointer-events: none;
	opacity: 0.6;
}

/* === Фото врача === */
.doctor-info__photo {
	position: absolute;
	right: 0;
	top: 0;
	width: 508px;
	height: 100%;
	border-radius: 15px 0 0 0;
	overflow: hidden;
}

.doctor-info__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.doctor-info__photo img.is-logo-fallback {
	object-fit: none;
	object-position: center;
}

/* === Контент слева === */
.doctor-info__content {
	position: relative;
	z-index: 2;
	width: 601px;
	padding: 31px 34px;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* === ФИО и специализация === */
.doctor-info__header {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.doctor-info__name {
	font-family: var(--font-heading);
	font-size: 59px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--color-primary-dark, #243674);
	margin: 0;
}

.doctor-info__specialization {
	font-family: 'Manrope', sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.37;
	color: var(--color-primary-dark, #243674);
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.doctor-info__separator {
	color: #BEC3D6;
}

.doctor-info__category {
	color: var(--color-primary-dark, #243674);
	opacity: 0.7;
}

/* === Факты: стаж и рейтинг === */
.doctor-info__facts {
	display: flex;
	gap: 45px;
}

.doctor-info__fact {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.doctor-info__fact-value {
	font-family: var(--font-heading);
	font-size: 42px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--color-primary-dark, #243674);
}

.doctor-info__fact-label {
	font-family: 'Manrope', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.37;
	color: var(--color-primary-dark, #243674);
	text-decoration: none;
}

a.doctor-info__fact-label:hover {
	text-decoration: underline;
}

/* === Рейтинг === */
.doctor-info__rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.doctor-info__stars {
	display: flex;
	gap: 1px;
}

.doctor-info__stars svg {
	width: 24px;
	height: 22px;
}

.doctor-info__stars svg:last-child {
	width: 12px;
}

/* === Карточка консультации === */
.doctor-info__consultation {
	position: relative;
	background: #F0EFF0;
	border-radius: 20px;
	padding: 21px 27px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.doctor-info__consultation-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.doctor-info__consultation-left {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.doctor-info__consultation-title {
	font-family: 'Manrope', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.37;
	color: var(--color-primary-dark, #243674);
}

.doctor-info__consultation-tags {
	display: flex;
	gap: 4px;
}

.doctor-info__consultation-tag {
	background: #fff;
	padding: 4px 10px;
	border-radius: 200px;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.37;
	color: var(--color-primary-dark, #243674);
}

/* === Блок цены === */
.doctor-info__consultation-price-row {
	flex-shrink: 0;
}

.doctor-info__consultation-prices {
	background: #fff;
	border-radius: 15px;
	padding: 6px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
}

.doctor-info__consultation-price-block {
	display: flex;
	align-items: baseline;
	gap: 8px;
	justify-content: center;
	width: 100%;
}

.doctor-info__consultation-price {
	font-family: 'Manrope', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.37;
	color: var(--color-primary-dark, #243674);
}

.doctor-info__consultation-old-price {
	font-family: 'Manrope', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.37;
	color: #A2A5AA;
	text-decoration: line-through;
}

.doctor-info__consultation-saving {
	display: block;
	background: var(--color-primary-dark, #243674);
	color: #fff;
	padding: 5px 12px;
	border-radius: 32px;
	font-family: 'Manrope', sans-serif;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.37;
	text-align: center;
	width: 100%;
}

/* === Кнопка записи === */
.doctor-info__consultation-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-accent, #EA976A);
	color: var(--color-primary, #243674);
	padding: 12px 24px;
	border-radius: 200px;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.37;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-top: auto;
}

.doctor-info__consultation-btn:hover {
	background: #d88559;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(234, 151, 106, 0.4);
}

/* === Адаптив === */
@media (max-width: 1199px) {
	.doctor-info__container {
		flex-direction: column;
		min-height: auto;
	}
	
	.doctor-info__photo {
		position: relative;
		width: 100%;
		height: 400px;
		order: -1;
		border-radius: 15px 15px 0 0;
	}
	
	.doctor-info__content {
		width: 100%;
		padding: 24px 0px;
	}
	
	.doctor-info__name {
		font-size: 42px;
	}
	
	.doctor-info__decor {
		display: none;
	}
}

@media (max-width: 767px) {
	.doctor-info {
		padding: 24px 0 40px;
	}
	
	.doctor-info__name {
		font-size: 32px;
	}
	
	.doctor-info__fact-value {
		font-size: 32px;
	}
	
	.doctor-info__facts {
		gap: 24px;
	}
	
	.doctor-info__consultation {
		padding: 16px;
	}
	
	.doctor-info__consultation-header {
		flex-direction: column;
		gap: 12px;
	}
	
	.doctor-info__consultation-price-row {
		width: 100%;
	}
	
	.doctor-info__consultation-prices {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.doctor-info__consultation-price-block {
		gap: 0px;
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 575px) {
	.doctor-info__photo {
		height: 300px;
	}
	
	.doctor-info__name {
		font-size: 26px;
	}
	
	.doctor-info__specialization {
		font-size: 16px;
	}
	
	.doctor-info__fact-value {
		font-size: 26px;
	}
	
	.doctor-info__fact-label {
		font-size: 14px;
	}
	
	.doctor-info__consultation-title {
		font-size: 18px;
	}
}

/* ============================================
   Секция контента врача
   ============================================ */

.doctor-content {
	background: #F8F7F8;
}

/* === Блок "О враче" (не аккордеон) === */
.doctor-about-block {
	background: var(--color-white, #fff);
	border-radius: var(--radius-md, 12px);
	padding: 20px;
}

.doctor-about-block__title {
	font-family: var(--font-heading);
	font-size: 42px;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--color-primary, #243674);
	margin: 0 0 20px;
}

.doctor-about-block__text {
	font-family: var(--font-primary, 'Manrope', sans-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.37;
	color: var(--color-primary, #243674);
}

.doctor-about-block__text p {
	margin: 0 0 1em;
}

.doctor-about-block__text p:last-child {
	margin-bottom: 0;
}

/* === Блок "Ключевые направления" === */
.doctor-services-block {
	background: var(--color-white, #fff);
	border-radius: var(--radius-md, 12px);
	padding: 20px;
}

.doctor-services-block__title {
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-primary, #243674);
	margin: 0 0 20px;
}

/* Табы в блоке врача */
.doctor-services-block .services-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

/* Списки услуг */
.doctor-services-block .services-lists {
	margin-bottom: 20px;
}

.doctor-services-block .services-list {
	display: none;
}

.doctor-services-block .services-list.active {
	display: block;
}

/* Сетка услуг - 2 колонки */
.doctor-services-block .services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.doctor-services-block .service-item {
	background: #F8F7F8;
}

/* Кнопка "Показать все" */
.doctor-services-block .services-show-all {
	font-family: var(--font-primary);
	font-size: var(--font-size-lg);
	font-weight: 500;
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: opacity var(--transition-base);
	align-self: flex-start;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.doctor-services-block .services-show-all:hover {
	opacity: 0.7;
}

.doctor-services-block .services-show-all.expanded {
	display: none;
}

/* === Галерея сертификатов === */
.doctor-certificates-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.doctor-certificate {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-certificate:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.doctor-certificate img {
	width: 100%;
	height: auto;
	display: block;
}

/* === Sticky sidebar для страницы врача === */
.doctor-content.service-content {
	overflow: visible;
	padding-bottom: 0;
}

.doctor-content .service-content__sidebar {
	position: sticky;
	top: calc(var(--header-height, 80px) + 60px);
	align-self: flex-start;
	max-height: calc(100vh - var(--header-height, 80px) - 70px);
	overflow-y: auto;
}

/* Скрываем скроллбар но оставляем прокрутку */
.doctor-content .service-content__sidebar::-webkit-scrollbar {
	width: 4px;
}

.doctor-content .service-content__sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.doctor-content .service-content__sidebar::-webkit-scrollbar-thumb {
	background: rgba(36, 54, 116, 0.2);
	border-radius: 4px;
}

.doctor-content .service-content__sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(36, 54, 116, 0.4);
}

/* === Секции отзывов врача === */
.doctor-reviews-section,
.doctor-video-reviews-section {
	background: #F8F7F8;
	padding-top: 0;
}

/* === FAQ секция врача === */
.doctor-faq-section {
	position: relative;
	background: var(--color-bg-gradient-start);
	padding: 50px var(--spacing-4xl) 80px;
	overflow: hidden;
}

/* Фоновое изображение */
.doctor-faq-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('https://artro.vitmax.pro/app/uploads/2025/01/faq-bg.jpg');
	background-size: cover;
	background-position: center right;
	opacity: 0.3;
	z-index: 0;
}

.doctor-faq-container {
	position: relative;
	z-index: 1;
	max-width: var(--container-content-width);
	margin: 0 auto;
}

.doctor-faq-title {
	font-family: var(--font-heading);
	font-size: 42px;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--color-primary);
	margin: 0 0 30px;
	line-height: 1.1;
}

/* Обёртка двух колонок */
.doctor-faq-wrapper {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
}

/* Левая колонка - аккордеоны */
.doctor-faq-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 820px;
}

/* Элемент FAQ */
.doctor-faq-item {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

/* Вопрос (кнопка) */
.doctor-faq-question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 400;
	color: var(--color-primary);
	transition: background 0.2s ease;
}

.doctor-faq-question:hover {
	background: rgba(36, 54, 116, 0.03);
}

.doctor-faq-question svg {
	flex-shrink: 0;
	color: var(--color-primary);
	transition: transform 0.3s ease;
}

.doctor-faq-item.active .doctor-faq-question svg {
	transform: rotate(180deg);
}

/* Ответ */
.doctor-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.doctor-faq-item.active .doctor-faq-answer {
	max-height: 500px;
}

.doctor-faq-answer-content {
	padding: 24px 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text);
}

.doctor-faq-answer-content p {
	margin: 0 0 12px;
}

.doctor-faq-answer-content p:last-child {
	margin-bottom: 0;
}

/* Правая колонка - контакты */
.doctor-faq-contact {
	flex-shrink: 0;
	width: 420px;
	padding: 24px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 20px;
	backdrop-filter: blur(12px);
}

.doctor-faq-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 18px;
}

.doctor-faq-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--color-accent);
	color: var(--color-primary);
	border: 2px solid var(--color-accent);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all var(--transition-base);
}

.doctor-faq-btn-primary:hover {
	background: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
}

.doctor-faq-social-btn {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(36, 54, 116, 0.10);
	text-decoration: none;
	transition: transform 0.15s ease, background 0.2s ease;
}

.doctor-faq-social-btn:hover {
	transform: translateY(-1px);
	background: #fff;
}

.doctor-faq-contact-item {
	margin-top: 14px;
}

.doctor-faq-contact-label {
	margin: 0 0 6px;
	font-size: 12px;
	color: var(--color-text-muted);
}

.doctor-faq-contact-title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 400;
	color: var(--color-primary);
	margin: 0 0 12px;
	line-height: 1.3;
}

.doctor-faq-contact-text {
	font-size: 14px;
	color: var(--color-text);
	margin: 0 0 20px;
	line-height: 1.5;
}

.doctor-faq-phone {
	display: block;
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 500;
	color: var(--color-primary);
	text-decoration: none;
	margin-bottom: 12px;
	transition: color 0.2s ease;
}

.doctor-faq-email {
	display: inline-block;
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.doctor-faq-email:hover {
	color: var(--color-accent);
}

.doctor-faq-phone:hover {
	color: var(--color-accent);
}

.doctor-faq-hours {
	display: flex;
    flex-direction: row;
    gap: 24px;
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
}

/* Адаптив для FAQ */
@media (max-width: 992px) {
	.doctor-faq-wrapper {
		flex-direction: column;
		gap: 40px;
	}
	
	.doctor-faq-list {
		max-width: 100%;
	}
	
	.doctor-faq-contact {
		width: 100%;
	}
	
	.doctor-faq-hours {
		flex-direction: column;
		gap: 4px;
	}
}

@media (max-width: 768px) {
	.doctor-faq-section {
		padding: 40px var(--spacing-md) 60px;
	}
	
	.doctor-faq-title {
		font-size: 28px;
	}
	
	.doctor-faq-question {
		padding: 16px 20px;
		font-size: 15px;
	}
}

/* === Адаптив для контента врача === */
@media (max-width: 1024px) {
	.doctor-services-block .services-grid {
		grid-template-columns: 1fr;
	}
	
	.doctor-services-block .services-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 768px) {
	.doctor-about-block__title {
		font-size: 32px;
	}
	
	.doctor-services-block__title {
		font-size: 22px;
	}
	
	.doctor-certificates-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
